File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/wedocs/assets/build/index.js
(()=>{var e,t,r={902:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(143);const a={docs:[],pages:[],parents:[],loading:!1,sorting:!1,userDocIds:[],helpfulDocs:[],needSorting:!1,restrictedArticleList:[]},o={setDocs:e=>({type:"SET_DOCS",docs:e}),setDoc:e=>({type:"SET_DOC",doc:e}),setParentDocs:e=>({type:"SET_PARENT_DOCS",parents:e}),setPages:e=>({type:"SET_PAGES",pages:e}),setLoading:e=>({type:"SET_LOADING",loading:e}),setSortingStatus:e=>({type:"SET_SORTING_STATUS",sorting:e}),setNeedSortingStatus:e=>({type:"SET_NEED_SORTING_STATUS",needSorting:e}),setUserDocIds:e=>({type:"SET_USER_DOC_IDS",userDocIds:e}),setUserDocId:e=>({type:"SET_USER_DOC_ID",userDocId:e}),fetchFromAPI:e=>({type:"FETCH_FROM_API",path:e}),setHelpfulDocs:e=>({type:"SET_HELPFUL_DOCS",helpfulDocs:e}),createDocsToAPI:e=>({type:"UPDATE_TO_API",path:"/wp/v2/docs",data:e}),removeDoc:e=>({type:"REMOVE_DOC",docId:e}),setRestrictedArticles:e=>({type:"SET_RESTRICTED_ARTICLES",restrictedArticleList:e}),setRestrictedArticle:e=>({type:"SET_RESTRICTED_ARTICLE",restrictedArticle:e}),*createDoc(e){const t=yield o.createDocsToAPI(e);return yield o.setUserDocId(t.id),yield o.setDoc(t),t},*updateDoc(e,t){const r=wp.hooks.applyFilters("wedocs_documentation_fetching_path","/wp/v2/docs?per_page=-1&status=publish"+("undefined"!=typeof weDocsAdminVars?",draft":"")),n="/wp/v2/docs/"+e;yield{type:"UPDATE_TO_API",path:n,data:t};const a=yield o.fetchFromAPI(r),s=a.filter((e=>!e.parent)),i=s?.sort(((e,t)=>e.menu_order-t.menu_order));return yield o.setParentDocs(i),o.setDocs(a)},*updateDocs(e){yield{type:"UPDATE_TO_API",path:"/wp/v2/docs/update_docs_status",data:e};const t=yield o.fetchFromAPI("/wp/v2/docs?per_page=-1&status=publish,draft,private"),r=t.filter((e=>!e.parent)),n=r?.sort(((e,t)=>e.menu_order-t.menu_order));return yield o.setParentDocs(n),o.setDocs(t)},*updateNeedSortingStatus(e){yield{type:"UPDATE_TO_API",path:"/wp/v2/docs/need_sorting_status",data:e};const t=yield o.fetchFromAPI("/wp/v2/docs/need_sorting_status");return o.setNeedSortingStatus(t)},*updateSortingStatus(e){yield{type:"UPDATE_TO_API",path:"/wp/v2/docs/sorting_status",data:e};const t=yield o.fetchFromAPI("/wp/v2/docs/sorting_status");return yield o.setNeedSortingStatus(t),o.setSortingStatus(t)},*updateDocMeta(e,t){const r="/wp/v2/docs/"+e+"/meta",n=yield{type:"UPDATE_TO_API",path:r,data:t};return yield o.setRestrictedArticle({id:e,value:n}),n},*deleteDoc(e){const t="/wp/v2/docs/"+e;return yield{type:"DELETE_TO_API",path:t},o.removeDoc(e)},*updateParentDocs(){const e=wp.hooks.applyFilters("wedocs_documentation_fetching_path","/wp/v2/docs?per_page=-1&status=publish"+("undefined"!=typeof weDocsAdminVars?",draft":"")),t=yield o.fetchFromAPI(e),r=t.filter((e=>!e.parent)),n=r?.sort(((e,t)=>e.menu_order-t.menu_order));return yield o.setParentDocs(n),o.setDocs(t)},*sendMessage(e){return yield{type:"UPDATE_TO_API",path:"/wp/v2/docs/message",data:e}}},s=o,i={getDocs:e=>{const{docs:t}=e;return t},getParentDocs:e=>{const{parents:t}=e;return t},getDoc:(e,t)=>{const{docs:r}=e;return r.find((e=>e.id===t))},getPages:e=>{const{pages:t}=e;return t},getLoading:e=>{const{loading:t}=e;return t},getSortingStatus:e=>{const{sorting:t}=e;return t},getNeedSortingStatus:e=>{const{needSorting:t}=e;return t},getUserDocIds:e=>{const{userDocIds:t}=e;return t},getSectionsDocs:(e,t)=>{const{docs:r}=e,n=r.filter((e=>e.parent===t)),a=n?.sort(((e,t)=>e.menu_order-t.menu_order));return a},getDocArticles:(e,t)=>{const{docs:r}=e,n=r.filter((e=>e.parent===t)),a=[];n.forEach((e=>{const t=r.filter((t=>t.parent===e.id));a.push(...t)}));const o=a?.sort(((e,t)=>e.menu_order-t.menu_order));return o},getSectionArticles:(e,t)=>{const{docs:r}=e,n=r.filter((e=>e.parent===t)),a=n?.sort(((e,t)=>e.menu_order-t.menu_order));return a},getArticleChildrens:(e,t)=>{const{docs:r}=e,n=r?.filter((e=>e.parent===t))?.reverse(),a=n?.sort(((e,t)=>e.menu_order-t.menu_order));return a},getHelpfulDocs:e=>{const{helpfulDocs:t}=e;return t},getRestrictedArticles(e){const{restrictedArticleList:t}=e;return t},getRestrictedArticle(e,t){const{restrictedArticleList:r}=e;return r.find((e=>e.id===t))}},l=i;var c=r(455),d=r.n(c);const u={FETCH_FROM_API:e=>d()({path:e.path}),UPDATE_TO_API:e=>d()({path:e.path,data:e.data,method:"POST"}),DELETE_TO_API:e=>d()({path:e.path,method:"DELETE"})},m=wp.hooks.applyFilters("wedocs_documentation_fetching_path","/wp/v2/docs?per_page=-1&status=publish"+("undefined"!=typeof weDocsAdminVars?",draft":"")),p={*getDocs(){yield s.setLoading(!0);const e=yield s.fetchFromAPI(m);yield s.setDocs(e);const t=e.filter((e=>!e.parent)),r=t?.sort(((e,t)=>e.menu_order-t.menu_order));return yield s.setParentDocs(r),s.setLoading(!1)},*getDoc(e){yield s.setLoading(!0);let t="/wp/v2/docs/"+e;const r=yield s.fetchFromAPI(t);return yield s.setDoc(r),s.setLoading(!1)},*getPages(){const e=yield s.fetchFromAPI("/wp/v2/pages");return s.setPages(e)},*getSortingStatus(){const e=yield s.fetchFromAPI("/wp/v2/docs/sorting_status");return s.setSortingStatus(e)},*getNeedSortingStatus(){const e=yield s.fetchFromAPI("/wp/v2/docs/need_sorting_status");return s.setNeedSortingStatus(e)},*getUserDocIds(){const e=yield s.fetchFromAPI("/wp/v2/docs/users/ids");return s.setUserDocIds(e)},*getHelpfulDocs(){const e=yield s.fetchFromAPI(m);yield s.setDocs(e);const t=yield s.fetchFromAPI("/wp/v2/docs/helpfulness"),r=e.sort(((e,r)=>t.indexOf(e.id)-t.indexOf(r.id))).filter((e=>t?.includes(e?.id)));yield s.setHelpfulDocs(r)},*getRestrictedArticles(){const e=yield s.fetchFromAPI("/wp/v2/docs/meta?key=wedocs_restrict_admin_article_access");return yield s.setRestrictedArticles(e)},*getRestrictedArticle(e,t){const{restrictedArticleList:r}=e;return r.find((e=>e.id===t))}},f=p,h=(0,n.createReduxStore)("wedocs/docs",{reducer:(e=a,t)=>{switch(t.type){case"SET_DOCS":return{...e,docs:[...t.docs]};case"SET_DOC":const r={...e,docs:[...e.docs,t.doc]},n=!e.parents.some((e=>e?.id===t?.doc?.id));return!t.doc.parent&&n&&(r.parents=[{...t.doc},...e.parents]),r;case"SET_USER_DOC_IDS":return{...e,userDocIds:[...e.userDocIds,...t.userDocIds]};case"SET_USER_DOC_ID":return{...e,userDocIds:[...e.userDocIds,t.userDocId]};case"SET_PAGES":return{...e,pages:[...t.pages]};case"SET_PARENT_DOCS":return{...e,parents:[...t.parents]};case"SET_LOADING":return{...e,loading:t.loading};case"SET_SORTING_STATUS":return{...e,sorting:t.sorting};case"SET_NEED_SORTING_STATUS":return{...e,needSorting:t.needSorting};case"SET_HELPFUL_DOCS":return{...e,helpfulDocs:t.helpfulDocs};case"REMOVE_DOC":return{...e,docs:[...e.docs?.filter((e=>e.id!==t.docId))],parents:[...e.parents?.filter((e=>e.id!==t.docId))]};case"SET_RESTRICTED_ARTICLES":return{...e,restrictedArticleList:[...t.restrictedArticleList]};case"SET_RESTRICTED_ARTICLE":return{...e,restrictedArticleList:[...e.restrictedArticleList,{...t.restrictedArticle}]};default:return e}},selectors:l,actions:s,resolvers:f,controls:u})},387:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(143);const a={roles:{},settings:{general:{docs_home:"",email:"on",email_to:"",helpful:"on",comments:"off",print:"on",enable_search:"on",collapse_articles:"off"},permission:{global_permission:["administrator","editor"],role_wise_permission:["administrator"]},assistant:{assist_enable:"on",integrate_ai:{ai_enabled:"off",sync_data:"off",ai_response:{}},explore:{explore_enable:"on"},message:{messaging_enable:"on",turnstile_site_key:""},placement:{order:["integrate_ai","explore","message"]},preference:{color_settings:{preview_colors:{widgetBg:{r:99,g:102,b:241,a:1},activeTabBg:{r:255,g:255,b:255,a:1},activeTabFont:{r:55,g:65,b:81,a:1},inactiveTabBg:{r:67,g:56,b:202,a:1},inactiveTabFont:{r:199,g:210,b:254,a:1},tabTitleFont:{r:255,g:255,b:255,a:1},tabDescriptionFont:{r:199,g:210,b:254,a:1},breadcrumbColor:{r:67,g:56,b:202,a:1},bubbleBg:{r:87,g:116,b:241,a:1},bubbleIcon:{r:255,g:255,b:255,a:1}}}}},layout:{column:"2",nav_icon:"on",right_bar:"on",template:"default",active_text:{r:59,g:130,b:246,a:1},active_nav_bg:{r:59,g:130,b:246,a:1},active_nav_text:{r:255,g:255,b:255,a:1}}},loading:!1,saving:!1,needUpgrade:!1},o={getSettings(e){const{settings:t}=e;return t},getSettingsOption(e,t){const{settings:r}=e;return r[t]},getGeneralSettingsOption(e,t){const{settings:r}=e;return r?.general?.[t]},getPermissionSettingsOption(e,t){const{settings:r}=e;return r?.permission?.[t]},getAssistantSettingsOption(e,t){const{settings:r}=e;return r?.assistant?.[t]},getRoles(e){const{roles:t}=e;return t},getLoading(e){const{loading:t}=e;return t},getUpgradeInfo(e){const{needUpgrade:t}=e;return t},getSaving(e){const{saving:t}=e;return t},getTurnstileSiteKey(e){const{settings:t}=e;return t?.assistant?.message?.turnstile_site_key}},s=o,i={setSettings:e=>({type:"SET_SETTINGS",settings:e}),setSettingsOption:(e,t)=>({type:"SET_SETTINGS_OPTION",option:e,value:t}),setLoading:e=>({type:"SET_LOADING",loading:e}),setUpgradeInfo:e=>({type:"SET_UPGRADE_INFO",needUpgrade:e}),setMigrateInfo:e=>({type:"SET_MIGRATE_INFO",needMigrate:e}),setSaving:e=>({type:"SET_SAVING",saving:e}),setRoles:e=>({type:"SET_ROLES",roles:e}),setTurnstileSiteKey:e=>({type:"SET_TURNSTILE_SITE_KEY",siteKey:e}),*updateSettings(e){const t=yield{type:"UPDATE_TO_API",path:"/wp/v2/docs/settings",data:e};return yield i.setSettings(t.data),t.data},*wedocsUpgrade(e){const t=yield{type:"UPDATE_TO_API",path:"/wp/v2/docs/upgrade",data:e};return yield i.setUpgradeInfo(!1),t},*makeUpdateDone(){return yield{type:"UPDATE_TO_API",path:"/wp/v2/docs/upgrade/done"}}},l=i,c={*getSettings(){yield l.setLoading(!0);const e=yield{type:"FETCH_SETTINGS"};return yield l.setSettings(e),l.setLoading(!1)},*getUpgradeInfo(){yield l.setLoading(!0);const e=yield{type:"FETCH_UPGRADE_INFO"};return yield l.setUpgradeInfo(e),l.setLoading(!1)},*getRoles(){yield l.setLoading(!0);const e=yield{type:"FETCH_ROLES"};return yield l.setRoles(e),l.setLoading(!1)},*getTurnstileSiteKey(){yield l.setLoading(!0);const e=yield{type:"FETCH_SITE_KEY"};return yield l.setTurnstileSiteKey(e),l.setLoading(!1)}},d=c;var u=r(455),m=r.n(u);const p={FETCH_SETTINGS:()=>m()({path:"/wp/v2/docs/settings?data=wedocs_settings"}),FETCH_ROLES:()=>m()({path:"/wp/v2/docs/users"}),FETCH_UPGRADE_INFO:()=>m()({path:"/wp/v2/docs/upgrade"}),FETCH_SITE_KEY:()=>m()({path:"/wp/v2/docs/settings/turnstile-site-key"}),UPDATE_TO_API:e=>m()({path:e.path,data:e.data,method:"POST"})},f=(0,n.createReduxStore)("wedocs/settings",{reducer:(e=a,t)=>{switch(t.type){case"SET_SETTINGS":return{...e,settings:{...e.settings,...t.settings}};case"SET_LOADING":return{...e,loading:t.loading};case"SET_ROLES":return{...e,roles:t.roles};case"SET_SETTINGS_OPTION":return{...e,settings:{...e.settings,[t.option]:t.value}};case"SET_UPGRADE_INFO":return{...e,needUpgrade:t.needUpgrade};case"SET_SAVING":return{...e,saving:t.saving};case"SET_TURNSTILE_SITE_KEY":return{...e,settings:{...e.settings,assistant:{...e.settings.assistant,message:{...e.settings.assistant.message,turnstile_site_key:t.siteKey}}}};default:return e}},selectors:s,actions:l,resolvers:d,controls:p})},648:(e,t,r)=>{"use strict";var n=r(143),a=r(902),o=r(387);(0,n.register)(a.A),(0,n.register)(o.A)},485:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var s=a.apply(null,r);s&&e.push(s)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},67:function(e,t,r){var n;e=r.nmd(e),function(){var a=(e&&e.exports,"object"==typeof r.g&&r.g);a.global!==a&&a.window;var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,i=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,c={"":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp"," ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","°":"deg","©":"copy","®":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78",𝒶:"ascr",𝕒:"aopf",𝔞:"afr",𝔸:"Aopf",𝔄:"Afr",𝒜:"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig",𝒷:"bscr",𝕓:"bopf",𝔟:"bfr",𝔹:"Bopf",ℬ:"Bscr",𝔅:"Bfr",𝔠:"cfr",𝒸:"cscr",𝕔:"copf",ℭ:"Cfr",𝒞:"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare",𝔡:"dfr",ⅆ:"dd",𝕕:"dopf",𝒹:"dscr",𝒟:"Dscr",𝔇:"Dfr",ⅅ:"DD",𝔻:"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr",𝔢:"efr",𝕖:"eopf",ℰ:"Escr",𝔈:"Efr",𝔼:"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr",𝔣:"ffr",𝕗:"fopf",𝒻:"fscr",𝔉:"Ffr",𝔽:"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr",𝕘:"gopf",𝔤:"gfr",𝒢:"Gscr",𝔾:"Gopf",𝔊:"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil",𝔥:"hfr",ℎ:"planckh",𝒽:"hscr",𝕙:"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok",𝕚:"iopf",𝔦:"ifr",𝒾:"iscr",ⅈ:"ii",𝕀:"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath",𝒿:"jscr",𝕛:"jopf",𝔧:"jfr",𝒥:"Jscr",𝔍:"Jfr",𝕁:"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath",𝕜:"kopf",𝓀:"kscr",𝔨:"kfr",𝒦:"Kscr",𝕂:"Kopf",𝔎:"Kfr",ķ:"kcedil",Ķ:"Kcedil",𝔩:"lfr",𝓁:"lscr",ℓ:"ell",𝕝:"lopf",ℒ:"Lscr",𝔏:"Lfr",𝕃:"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot",𝔪:"mfr",𝕞:"mopf",𝓂:"mscr",𝔐:"Mfr",𝕄:"Mopf",ℳ:"Mscr",𝔫:"nfr",𝕟:"nopf",𝓃:"nscr",ℕ:"Nopf",𝒩:"Nscr",𝔑:"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG",𝕠:"oopf",𝔬:"ofr",ℴ:"oscr",𝒪:"Oscr",𝔒:"Ofr",𝕆:"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig",𝔭:"pfr",𝓅:"pscr",𝕡:"popf",ℙ:"Popf",𝔓:"Pfr",𝒫:"Pscr",𝕢:"qopf",𝔮:"qfr",𝓆:"qscr",𝒬:"Qscr",𝔔:"Qfr",ℚ:"Qopf",ĸ:"kgreen",𝔯:"rfr",𝕣:"ropf",𝓇:"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil",𝕤:"sopf",𝓈:"sscr",𝔰:"sfr",𝕊:"Sopf",𝔖:"Sfr",𝒮:"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig",𝔱:"tfr",𝓉:"tscr",𝕥:"topf",𝒯:"Tscr",𝔗:"Tfr",𝕋:"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok",𝓊:"uscr",𝕦:"uopf",𝔲:"ufr",𝕌:"Uopf",𝔘:"Ufr",𝒰:"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr",𝔳:"vfr",𝕧:"vopf",𝓋:"vscr",𝔙:"Vfr",𝕍:"Vopf",𝒱:"Vscr",𝕨:"wopf",𝓌:"wscr",𝔴:"wfr",𝒲:"Wscr",𝕎:"Wopf",𝔚:"Wfr",ŵ:"wcirc",Ŵ:"Wcirc",𝔵:"xfr",𝓍:"xscr",𝕩:"xopf",𝕏:"Xopf",𝔛:"Xfr",𝒳:"Xscr",𝔶:"yfr",𝓎:"yscr",𝕪:"yopf",𝒴:"Yscr",𝔜:"Yfr",𝕐:"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml",𝓏:"zscr",𝔷:"zfr",𝕫:"zopf",ℨ:"Zfr",ℤ:"Zopf",𝒵:"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},d=/["&'<>`]/g,u={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},m=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,p=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,h={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"",zwnj:""},g={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},b={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},w=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],v=String.fromCharCode,x={}.hasOwnProperty,y=function(e,t){return x.call(e,t)},E=function(e,t){if(!e)return t;var r,n={};for(r in t)n[r]=y(e,r)?e[r]:t[r];return n},k=function(e,t){var r="";return e>=55296&&e<=57343||e>1114111?(t&&A("character reference outside the permissible Unicode range"),"�"):y(b,e)?(t&&A("disallowed character reference"),b[e]):(t&&function(e,t){for(var r=-1,n=e.length;++r<n;)if(e[r]==t)return!0;return!1}(w,e)&&A("disallowed character reference"),e>65535&&(r+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=v(e))},N=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},S=function(e){return"&#"+e+";"},A=function(e){throw Error("Parse error: "+e)},D=function(e,t){(t=E(t,D.options)).strict&&p.test(e)&&A("forbidden code point");var r=t.encodeEverything,n=t.useNamedReferences,a=t.allowUnsafeSymbols,u=t.decimal?S:N,m=function(e){return u(e.charCodeAt(0))};return r?(e=e.replace(s,(function(e){return n&&y(c,e)?"&"+c[e]+";":m(e)})),n&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),n&&(e=e.replace(l,(function(e){return"&"+c[e]+";"})))):n?(a||(e=e.replace(d,(function(e){return"&"+c[e]+";"}))),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(l,(function(e){return"&"+c[e]+";"}))):a||(e=e.replace(d,m)),e.replace(o,(function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return u(1024*(t-55296)+r-56320+65536)})).replace(i,m)};D.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var C=function(e,t){var r=(t=E(t,C.options)).strict;return r&&m.test(e)&&A("malformed character reference"),e.replace(f,(function(e,n,a,o,s,i,l,c,d){var u,m,p,f,b,w;return n?h[b=n]:a?(b=a,(w=o)&&t.isAttributeValue?(r&&"="==w&&A("`&` did not start a character reference"),e):(r&&A("named character reference was not terminated by a semicolon"),g[b]+(w||""))):s?(p=s,m=i,r&&!m&&A("character reference was not terminated by a semicolon"),u=parseInt(p,10),k(u,r)):l?(f=l,m=c,r&&!m&&A("character reference was not terminated by a semicolon"),u=parseInt(f,16),k(u,r)):(r&&A("named character reference was not terminated by a semicolon"),e)}))};C.options={isAttributeValue:!1,strict:!1};var I={version:"1.2.0",encode:D,decode:C,escape:function(e){return e.replace(d,(function(e){return u[e]}))},unescape:C};void 0===(n=function(){return I}.call(t,r,t,e))||(e.exports=n)}()},694:(e,t,r)=>{"use strict";var n=r(925);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,s){if(s!==n){var i=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 i.name="Invariant Violation",i}}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:o,resetWarningCache:a};return r.PropTypes=r,r}},556:(e,t,r)=>{e.exports=r(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},410:function(e,t,r){var n,a,o;a=[t,r(206)],n=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=(r=t)&&r.__esModule?r:{default:r};e.default=n.default},void 0===(o=n.apply(t,a))||(e.exports=o)},206:function(e,t,r){var n,a,o;a=[t,r(609),r(556)],n=function(e,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=c;var n=o(t),a=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var l=!1;function c(e){l=e}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){c(!0)}}))}catch(e){}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return l?e:e.capture}function u(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var m=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(n)));return o._handleSwipeStart=o._handleSwipeStart.bind(o),o._handleSwipeMove=o._handleSwipeMove.bind(o),o._handleSwipeEnd=o._handleSwipeEnd.bind(o),o._onMouseDown=o._onMouseDown.bind(o),o._onMouseMove=o._onMouseMove.bind(o),o._onMouseUp=o._onMouseUp.bind(o),o._setSwiperRef=o._setSwiperRef.bind(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(e){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(e))}},{key:"_onMouseMove",value:function(e){this.mouseDown&&this._handleSwipeMove(e)}},{key:"_onMouseUp",value:function(e){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(e)}},{key:"_handleSwipeStart",value:function(e){var t=u(e),r=t.x,n=t.y;this.moveStart={x:r,y:n},this.props.onSwipeStart(e)}},{key:"_handleSwipeMove",value:function(e){if(this.moveStart){var t=u(e),r=t.x,n=t.y,a=r-this.moveStart.x,o=n-this.moveStart.y;this.moving=!0,this.props.onSwipeMove({x:a,y:o},e)&&e.cancelable&&e.preventDefault(),this.movePosition={deltaX:a,deltaY:o}}}},{key:"_handleSwipeEnd",value:function(e){this.props.onSwipeEnd(e);var t=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-t?this.props.onSwipeLeft(1,e):this.movePosition.deltaX>t&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.tagName,e.className),r=e.style,a=e.children,o=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return n.default.createElement(this.props.tagName,s({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:r},o),a)}}]),t}(t.Component);m.displayName="ReactSwipe",m.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},m.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=m},void 0===(o=n.apply(t,a))||(e.exports=o)},845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t,r){var n=0===e?e:e+t;return"translate3d("+("horizontal"===r?[n,0,0]:[0,n,0]).join(",")+")"}},613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fadeAnimationHandler=t.slideStopSwipingHandler=t.slideSwipeAnimationHandler=t.slideAnimationHandler=void 0;var n,a=r(609),o=(n=r(845))&&n.__esModule?n:{default:n},s=r(929);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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.slideAnimationHandler=function(e,t){var r={},n=t.selectedItem,i=n,c=a.Children.count(e.children)-1;if(e.infiniteLoop&&(n<0||n>c))return i<0?e.centerMode&&e.centerSlidePercentage&&"horizontal"===e.axis?r.itemListStyle=(0,s.setPosition)(-(c+2)*e.centerSlidePercentage-(100-e.centerSlidePercentage)/2,e.axis):r.itemListStyle=(0,s.setPosition)(100*-(c+2),e.axis):i>c&&(r.itemListStyle=(0,s.setPosition)(0,e.axis)),r;var d=(0,s.getPosition)(n,e),u=(0,o.default)(d,"%",e.axis),m=e.transitionTime+"ms";return r.itemListStyle={WebkitTransform:u,msTransform:u,OTransform:u,transform:u},t.swiping||(r.itemListStyle=l(l({},r.itemListStyle),{},{WebkitTransitionDuration:m,MozTransitionDuration:m,OTransitionDuration:m,transitionDuration:m,msTransitionDuration:m})),r},t.slideSwipeAnimationHandler=function(e,t,r,n){var o={},i="horizontal"===t.axis,l=a.Children.count(t.children),c=(0,s.getPosition)(r.selectedItem,t),d=t.infiniteLoop?(0,s.getPosition)(l-1,t)-100:(0,s.getPosition)(l-1,t),u=i?e.x:e.y,m=u;0===c&&u>0&&(m=0),c===d&&u<0&&(m=0);var p=c+100/(r.itemSize/m),f=Math.abs(u)>t.swipeScrollTolerance;return t.infiniteLoop&&f&&(0===r.selectedItem&&p>-100?p-=100*l:r.selectedItem===l-1&&p<100*-l&&(p+=100*l)),(!t.preventMovementUntilSwipeScrollTolerance||f||r.swipeMovementStarted)&&(r.swipeMovementStarted||n({swipeMovementStarted:!0}),o.itemListStyle=(0,s.setPosition)(p,t.axis)),f&&!r.cancelClick&&n({cancelClick:!0}),o},t.slideStopSwipingHandler=function(e,t){var r=(0,s.getPosition)(t.selectedItem,e);return{itemListStyle:(0,s.setPosition)(r,e.axis)}},t.fadeAnimationHandler=function(e,t){var r=e.transitionTime+"ms",n="ease-in-out",a={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:n,msTransitionTimingFunction:n,MozTransitionTimingFunction:n,WebkitTransitionTimingFunction:n,OTransitionTimingFunction:n};return t.swiping||(a=l(l({},a),{},{WebkitTransitionDuration:r,MozTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r})),{slideStyle:a,selectedStyle:l(l({},a),{},{opacity:1,position:"relative"}),prevStyle:l({},a)}}},504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}(r(609)),a=u(r(410)),o=u(r(775)),s=u(r(292)),i=u(r(960)),l=u(r(69)),c=r(929),d=r(613);function u(e){return e&&e.__esModule?e:{default:e}}function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function h(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=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}}),t&&w(e,t)}(E,e);var t,r,u,m,h=(u=E,m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t,r,n=x(u);if(m){var a=x(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return t=this,!(r=e)||"object"!==p(r)&&"function"!=typeof r?v(t):r});function E(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),y(v(t=h.call(this,e)),"thumbsRef",void 0),y(v(t),"carouselWrapperRef",void 0),y(v(t),"listRef",void 0),y(v(t),"itemsRef",void 0),y(v(t),"timer",void 0),y(v(t),"animationHandler",void 0),y(v(t),"setThumbsRef",(function(e){t.thumbsRef=e})),y(v(t),"setCarouselWrapperRef",(function(e){t.carouselWrapperRef=e})),y(v(t),"setListRef",(function(e){t.listRef=e})),y(v(t),"setItemsRef",(function(e,r){t.itemsRef||(t.itemsRef=[]),t.itemsRef[r]=e})),y(v(t),"autoPlay",(function(){n.Children.count(t.props.children)<=1||(t.clearAutoPlay(),t.props.autoPlay&&(t.timer=setTimeout((function(){t.increment()}),t.props.interval)))})),y(v(t),"clearAutoPlay",(function(){t.timer&&clearTimeout(t.timer)})),y(v(t),"resetAutoPlay",(function(){t.clearAutoPlay(),t.autoPlay()})),y(v(t),"stopOnHover",(function(){t.setState({isMouseEntered:!0},t.clearAutoPlay)})),y(v(t),"startOnLeave",(function(){t.setState({isMouseEntered:!1},t.autoPlay)})),y(v(t),"isFocusWithinTheCarousel",(function(){return!(!t.carouselWrapperRef||(0,i.default)().activeElement!==t.carouselWrapperRef&&!t.carouselWrapperRef.contains((0,i.default)().activeElement))})),y(v(t),"navigateWithKeyboard",(function(e){if(t.isFocusWithinTheCarousel()){var r="horizontal"===t.props.axis,n=r?37:38;(r?39:40)===e.keyCode?t.increment():n===e.keyCode&&t.decrement()}})),y(v(t),"updateSizes",(function(){if(t.state.initialized&&t.itemsRef&&0!==t.itemsRef.length){var e="horizontal"===t.props.axis,r=t.itemsRef[0];if(r){var n=e?r.clientWidth:r.clientHeight;t.setState({itemSize:n}),t.thumbsRef&&t.thumbsRef.updateSizes()}}})),y(v(t),"setMountState",(function(){t.setState({hasMount:!0}),t.updateSizes()})),y(v(t),"handleClickItem",(function(e,r){0!==n.Children.count(t.props.children)&&(t.state.cancelClick?t.setState({cancelClick:!1}):(t.props.onClickItem(e,r),e!==t.state.selectedItem&&t.setState({selectedItem:e})))})),y(v(t),"handleOnChange",(function(e,r){n.Children.count(t.props.children)<=1||t.props.onChange(e,r)})),y(v(t),"handleClickThumb",(function(e,r){t.props.onClickThumb(e,r),t.moveTo(e)})),y(v(t),"onSwipeStart",(function(e){t.setState({swiping:!0}),t.props.onSwipeStart(e)})),y(v(t),"onSwipeEnd",(function(e){t.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),t.props.onSwipeEnd(e),t.clearAutoPlay(),t.state.autoPlay&&t.autoPlay()})),y(v(t),"onSwipeMove",(function(e,r){t.props.onSwipeMove(r);var n=t.props.swipeAnimationHandler(e,t.props,t.state,t.setState.bind(v(t)));return t.setState(g({},n)),!!Object.keys(n).length})),y(v(t),"decrement",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem-("number"==typeof e?e:1))})),y(v(t),"increment",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem+("number"==typeof e?e:1))})),y(v(t),"moveTo",(function(e){if("number"==typeof e){var r=n.Children.count(t.props.children)-1;e<0&&(e=t.props.infiniteLoop?r:0),e>r&&(e=t.props.infiniteLoop?0:r),t.selectItem({selectedItem:e}),t.state.autoPlay&&!1===t.state.isMouseEntered&&t.resetAutoPlay()}})),y(v(t),"onClickNext",(function(){t.increment(1)})),y(v(t),"onClickPrev",(function(){t.decrement(1)})),y(v(t),"onSwipeForward",(function(){t.increment(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),y(v(t),"onSwipeBackwards",(function(){t.decrement(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),y(v(t),"changeItem",(function(e){return function(r){(0,c.isKeyboardEvent)(r)&&"Enter"!==r.key||t.moveTo(e)}})),y(v(t),"selectItem",(function(e){t.setState(g({previousItem:t.state.selectedItem},e),(function(){t.setState(t.animationHandler(t.props,t.state))})),t.handleOnChange(e.selectedItem,n.Children.toArray(t.props.children)[e.selectedItem])})),y(v(t),"getInitialImage",(function(){var e=t.props.selectedItem,r=t.itemsRef&&t.itemsRef[e];return(r&&r.getElementsByTagName("img")||[])[0]})),y(v(t),"getVariableItemHeight",(function(e){var r=t.itemsRef&&t.itemsRef[e];if(t.state.hasMount&&r&&r.children.length){var n=r.children[0].getElementsByTagName("img")||[];if(n.length>0){var a=n[0];a.complete||a.addEventListener("load",(function e(){t.forceUpdate(),a.removeEventListener("load",e)}))}var o=(n[0]||r.children[0]).clientHeight;return o>0?o:null}return null}));var r={initialized:!1,previousItem:e.selectedItem,selectedItem:e.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:e.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return t.animationHandler="function"==typeof e.animationHandler&&e.animationHandler||"fade"===e.animationHandler&&d.fadeAnimationHandler||d.slideAnimationHandler,t.state=g(g({},r),t.animationHandler(e,r)),t}return t=E,(r=[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(e,t){e.children||!this.props.children||this.state.initialized||this.setupCarousel(),!e.autoFocus&&this.props.autoFocus&&this.forceFocus(),t.swiping&&!this.state.swiping&&this.setState(g({},this.props.stopSwipingHandler(this.props,this.state))),e.selectedItem===this.props.selectedItem&&e.centerMode===this.props.centerMode||(this.updateSizes(),this.moveTo(this.props.selectedItem)),e.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var e=this;this.bindEvents(),this.state.autoPlay&&n.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},(function(){var t=e.getInitialImage();t&&!t.complete?t.addEventListener("load",e.setMountState):e.setMountState()}))}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.addEventListener("mouseenter",this.stopOnHover),e.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.removeEventListener("mouseenter",this.stopOnHover),e.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,l.default)().addEventListener("resize",this.updateSizes),(0,l.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,i.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,l.default)().removeEventListener("resize",this.updateSizes),(0,l.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var e=this.getInitialImage();e&&e.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,i.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var e;null===(e=this.carouselWrapperRef)||void 0===e||e.focus()}},{key:"renderItems",value:function(e){var t=this;return this.props.children?n.Children.map(this.props.children,(function(r,a){var s=a===t.state.selectedItem,i=a===t.state.previousItem,l=s&&t.state.selectedStyle||i&&t.state.prevStyle||t.state.slideStyle||{};t.props.centerMode&&"horizontal"===t.props.axis&&(l=g(g({},l),{},{minWidth:t.props.centerSlidePercentage+"%"})),t.state.swiping&&t.state.swipeMovementStarted&&(l=g(g({},l),{},{pointerEvents:"none"}));var c={ref:function(e){return t.setItemsRef(e,a)},key:"itemKey"+a+(e?"clone":""),className:o.default.ITEM(!0,a===t.state.selectedItem,a===t.state.previousItem),onClick:t.handleClickItem.bind(t,a,r),style:l};return n.default.createElement("li",c,t.props.renderItem(r,{isSelected:a===t.state.selectedItem,isPrevious:a===t.state.previousItem}))})):[]}},{key:"renderControls",value:function(){var e=this,t=this.props,r=t.showIndicators,a=t.labels,o=t.renderIndicator,s=t.children;return r?n.default.createElement("ul",{className:"control-dots"},n.Children.map(s,(function(t,r){return o&&o(e.changeItem(r),r===e.state.selectedItem,r,a.item)}))):null}},{key:"renderStatus",value:function(){return this.props.showStatus?n.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,n.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==n.Children.count(this.props.children)?n.default.createElement(s.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var e=this;if(!this.props.children||0===n.Children.count(this.props.children))return null;var t=this.props.swipeable&&n.Children.count(this.props.children)>1,r="horizontal"===this.props.axis,s=this.props.showArrows&&n.Children.count(this.props.children)>1,i=s&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,l=s&&(this.state.selectedItem<n.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,c=this.renderItems(!0),d=c.shift(),u=c.pop(),m={className:o.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},p={};if(r){if(m.onSwipeLeft=this.onSwipeForward,m.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var h=this.getVariableItemHeight(this.state.selectedItem);p.height=h||"auto"}}else m.onSwipeUp="natural"===this.props.verticalSwipe?this.onSwipeBackwards:this.onSwipeForward,m.onSwipeDown="natural"===this.props.verticalSwipe?this.onSwipeForward:this.onSwipeBackwards,m.style=g(g({},m.style),{},{height:this.state.itemSize}),p.height=this.state.itemSize;return n.default.createElement("div",{"aria-label":this.props.ariaLabel,className:o.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},n.default.createElement("div",{className:o.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,i,this.props.labels.leftArrow),n.default.createElement("div",{className:o.default.WRAPPER(!0,this.props.axis),style:p},t?n.default.createElement(a.default,f({tagName:"ul",innerRef:this.setListRef},m,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&u,this.renderItems(),this.props.infiniteLoop&&d):n.default.createElement("ul",{className:o.default.SLIDER(!0,this.state.swiping),ref:function(t){return e.setListRef(t)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&u,this.renderItems(),this.props.infiniteLoop&&d)),this.props.renderArrowNext(this.onClickNext,l,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}])&&b(t.prototype,r),E}(n.default.Component);t.default=E,y(E,"displayName","Carousel"),y(E,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:c.noop,onClickThumb:c.noop,onChange:c.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(e,t,r){return n.default.createElement("button",{type:"button","aria-label":r,className:o.default.ARROW_PREV(!t),onClick:e})},renderArrowNext:function(e,t,r){return n.default.createElement("button",{type:"button","aria-label":r,className:o.default.ARROW_NEXT(!t),onClick:e})},renderIndicator:function(e,t,r,a){return n.default.createElement("li",{className:o.default.DOT(t),onClick:e,onKeyDown:e,value:r,key:r,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(r+1)})},renderItem:function(e){return e},renderThumbs:function(e){var t=n.Children.map(e,(function(e){var t=e;if("img"!==e.type&&(t=n.Children.toArray(e.props.children).find((function(e){return"img"===e.type}))),t)return t}));return 0===t.filter((function(e){return e})).length?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):t},statusFormatter:c.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:d.slideSwipeAnimationHandler,stopSwipingHandler:d.slideStopSwipingHandler})},994:()=>{},929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPosition=t.getPosition=t.isKeyboardEvent=t.defaultStatusFormatter=t.noop=void 0;var n,a=r(609),o=(n=r(845))&&n.__esModule?n:{default:n};t.noop=function(){},t.defaultStatusFormatter=function(e,t){return"".concat(e," of ").concat(t)},t.isKeyboardEvent=function(e){return!!e&&e.hasOwnProperty("key")},t.getPosition=function(e,t){if(t.infiniteLoop&&++e,0===e)return 0;var r=a.Children.count(t.children);if(t.centerMode&&"horizontal"===t.axis){var n=-e*t.centerSlidePercentage,o=r-1;return e&&(e!==o||t.infiniteLoop)?n+=(100-t.centerSlidePercentage)/2:e===o&&(n+=100-t.centerSlidePercentage),n}return 100*-e},t.setPosition=function(e,t){var r={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(n){r[n]=(0,o.default)(e,"%",t)})),r}},292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}(r(609)),a=c(r(775)),o=r(619),s=c(r(845)),i=c(r(410)),l=c(r(69));function c(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}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)}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(v,e);var t,r,c,d,w=(c=v,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t,r,n=g(c);if(d){var a=g(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return t=this,!(r=e)||"object"!==u(r)&&"function"!=typeof r?h(t):r});function v(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),b(h(t=w.call(this,e)),"itemsWrapperRef",void 0),b(h(t),"itemsListRef",void 0),b(h(t),"thumbsRef",void 0),b(h(t),"setItemsWrapperRef",(function(e){t.itemsWrapperRef=e})),b(h(t),"setItemsListRef",(function(e){t.itemsListRef=e})),b(h(t),"setThumbsRef",(function(e,r){t.thumbsRef||(t.thumbsRef=[]),t.thumbsRef[r]=e})),b(h(t),"updateSizes",(function(){if(t.props.children&&t.itemsWrapperRef&&t.thumbsRef){var e=n.Children.count(t.props.children),r=t.itemsWrapperRef.clientWidth,a=t.props.thumbWidth?t.props.thumbWidth:(0,o.outerWidth)(t.thumbsRef[0]),s=Math.floor(r/a),i=s<e,l=i?e-s:0;t.setState((function(e,r){return{itemSize:a,visibleItems:s,firstItem:i?t.getFirstItem(r.selectedItem):0,lastPosition:l,showArrows:i}}))}})),b(h(t),"handleClickItem",(function(e,r,n){if(!function(e){return e.hasOwnProperty("key")}(n)||"Enter"===n.key){var a=t.props.onSelectItem;"function"==typeof a&&a(e,r)}})),b(h(t),"onSwipeStart",(function(){t.setState({swiping:!0})})),b(h(t),"onSwipeEnd",(function(){t.setState({swiping:!1})})),b(h(t),"onSwipeMove",(function(e){var r=e.x;if(!t.state.itemSize||!t.itemsWrapperRef||!t.state.visibleItems)return!1;var a=n.Children.count(t.props.children),o=-100*t.state.firstItem/t.state.visibleItems;0===o&&r>0&&(r=0),o===100*-Math.max(a-t.state.visibleItems,0)/t.state.visibleItems&&r<0&&(r=0);var i=o+100/(t.itemsWrapperRef.clientWidth/r);return t.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(e){t.itemsListRef.style[e]=(0,s.default)(i,"%",t.props.axis)})),!0})),b(h(t),"slideRight",(function(e){t.moveTo(t.state.firstItem-("number"==typeof e?e:1))})),b(h(t),"slideLeft",(function(e){t.moveTo(t.state.firstItem+("number"==typeof e?e:1))})),b(h(t),"moveTo",(function(e){e=(e=e<0?0:e)>=t.state.lastPosition?t.state.lastPosition:e,t.setState({firstItem:e})})),t.state={selectedItem:e.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},t}return t=v,(r=[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(e){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==e.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,l.default)().addEventListener("resize",this.updateSizes),(0,l.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,l.default)().removeEventListener("resize",this.updateSizes),(0,l.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(e){var t=e;return e>=this.state.lastPosition&&(t=this.state.lastPosition),e<this.state.firstItem+this.state.visibleItems&&(t=this.state.firstItem),e<this.state.firstItem&&(t=e),t}},{key:"renderItems",value:function(){var e=this;return this.props.children.map((function(t,r){var o=a.default.ITEM(!1,r===e.state.selectedItem),s={key:r,ref:function(t){return e.setThumbsRef(t,r)},className:o,onClick:e.handleClickItem.bind(e,r,e.props.children[r]),onKeyDown:e.handleClickItem.bind(e,r,e.props.children[r]),"aria-label":"".concat(e.props.labels.item," ").concat(r+1),style:{width:e.props.thumbWidth}};return n.default.createElement("li",m({},s,{role:"button",tabIndex:0}),t)}))}},{key:"render",value:function(){var e=this;if(!this.props.children)return null;var t,r=n.Children.count(this.props.children)>1,o=this.state.showArrows&&this.state.firstItem>0,l=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,c=-this.state.firstItem*(this.state.itemSize||0),d=(0,s.default)(c,"px",this.props.axis),u=this.props.transitionTime+"ms";return t={WebkitTransform:d,MozTransform:d,MsTransform:d,OTransform:d,transform:d,msTransform:d,WebkitTransitionDuration:u,MozTransitionDuration:u,MsTransitionDuration:u,OTransitionDuration:u,transitionDuration:u,msTransitionDuration:u},n.default.createElement("div",{className:a.default.CAROUSEL(!1)},n.default.createElement("div",{className:a.default.WRAPPER(!1),ref:this.setItemsWrapperRef},n.default.createElement("button",{type:"button",className:a.default.ARROW_PREV(!o),onClick:function(){return e.slideRight()},"aria-label":this.props.labels.leftArrow}),r?n.default.createElement(i.default,{tagName:"ul",className:a.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:t,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):n.default.createElement("ul",{className:a.default.SLIDER(!1,this.state.swiping),ref:function(t){return e.setItemsListRef(t)},style:t},this.renderItems()),n.default.createElement("button",{type:"button",className:a.default.ARROW_NEXT(!l),onClick:function(){return e.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}])&&p(t.prototype,r),v}(n.Component);t.default=w,b(w,"displayName","Thumbs"),b(w,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350})},775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(485))&&n.__esModule?n:{default:n},o={ROOT:function(e){return(0,a.default)(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({"carousel-root":!0},e||"",!!e))},CAROUSEL:function(e){return(0,a.default)({carousel:!0,"carousel-slider":e})},WRAPPER:function(e,t){return(0,a.default)({"thumbs-wrapper":!e,"slider-wrapper":e,"axis-horizontal":"horizontal"===t,"axis-vertical":"horizontal"!==t})},SLIDER:function(e,t){return(0,a.default)({thumbs:!e,slider:e,animated:!t})},ITEM:function(e,t,r){return(0,a.default)({thumb:!e,slide:e,selected:t,previous:r})},ARROW_PREV:function(e){return(0,a.default)({"control-arrow control-prev":!0,"control-disabled":e})},ARROW_NEXT:function(e){return(0,a.default)({"control-arrow control-next":!0,"control-disabled":e})},DOT:function(e){return(0,a.default)({dot:!0,selected:e})}};t.default=o},619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outerWidth=void 0,t.outerWidth=function(e){var t=e.offsetWidth,r=getComputedStyle(e);return t+(parseInt(r.marginLeft)+parseInt(r.marginRight))}},428:(e,t,r)=>{"use strict";Object.defineProperty(t,"FN",{enumerable:!0,get:function(){return n.default}});var n=a(r(504));r(994),a(r(292));function a(e){return e&&e.__esModule?e:{default:e}}},960:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){return document}},69:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){return window}},465:function(e){e.exports=function(){"use strict";function e(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,r(e,t,"get"))}function t(e,t,n){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,r(e,t,"set"),n),n}function r(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function n(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}const a={},o=e=>new Promise((t=>{if(!e)return t();const r=window.scrollX,n=window.scrollY;a.restoreFocusTimeout=setTimeout((()=>{a.previousActiveElement instanceof HTMLElement?(a.previousActiveElement.focus(),a.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(r,n)})),s="swal2-",i=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),l=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),c="SweetAlert2:",d=e=>e.charAt(0).toUpperCase()+e.slice(1),u=e=>{console.warn("".concat(c," ").concat("object"==typeof e?e.join(" "):e))},m=e=>{console.error("".concat(c," ").concat(e))},p=[],f=(e,t)=>{var r;r='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),p.includes(r)||(p.push(r),u(r))},h=e=>"function"==typeof e?e():e,g=e=>e&&"function"==typeof e.toPromise,b=e=>g(e)?e.toPromise():Promise.resolve(e),w=e=>e&&Promise.resolve(e)===e,v=()=>document.body.querySelector(".".concat(i.container)),x=e=>{const t=v();return t?t.querySelector(e):null},y=e=>x(".".concat(e)),E=()=>y(i.popup),k=()=>y(i.icon),N=()=>y(i.title),S=()=>y(i["html-container"]),A=()=>y(i.image),D=()=>y(i["progress-steps"]),C=()=>y(i["validation-message"]),I=()=>x(".".concat(i.actions," .").concat(i.confirm)),L=()=>x(".".concat(i.actions," .").concat(i.cancel)),T=()=>x(".".concat(i.actions," .").concat(i.deny)),M=()=>x(".".concat(i.loader)),R=()=>y(i.actions),_=()=>y(i.footer),O=()=>y(i["timer-progress-bar"]),B=()=>y(i.close),P=()=>{const e=E();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort(((e,t)=>{const r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0})),n=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),a=Array.from(n).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(r.concat(a))].filter((e=>ee(e)))},j=()=>q(document.body,i.shown)&&!q(document.body,i["toast-shown"])&&!q(document.body,i["no-backdrop"]),z=()=>{const e=E();return!!e&&q(e,i.toast)},F=(e,t)=>{if(e.textContent="",t){const r=(new DOMParser).parseFromString(t,"text/html"),n=r.querySelector("head");n&&Array.from(n.childNodes).forEach((t=>{e.appendChild(t)}));const a=r.querySelector("body");a&&Array.from(a.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},q=(e,t)=>{if(!t)return!1;const r=t.split(/\s+/);for(let t=0;t<r.length;t++)if(!e.classList.contains(r[t]))return!1;return!0},H=(e,t,r)=>{if(((e,t)=>{Array.from(e.classList).forEach((r=>{Object.values(i).includes(r)||Object.values(l).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)}))})(e,t),t.customClass&&t.customClass[r]){if("string"!=typeof t.customClass[r]&&!t.customClass[r].forEach)return void u("Invalid type of customClass.".concat(r,'! Expected string or iterable object, got "').concat(typeof t.customClass[r],'"'));G(e,t.customClass[r])}},U=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(i.popup," > .").concat(i[t]));case"checkbox":return e.querySelector(".".concat(i.popup," > .").concat(i.checkbox," input"));case"radio":return e.querySelector(".".concat(i.popup," > .").concat(i.radio," input:checked"))||e.querySelector(".".concat(i.popup," > .").concat(i.radio," input:first-child"));case"range":return e.querySelector(".".concat(i.popup," > .").concat(i.range," input"));default:return e.querySelector(".".concat(i.popup," > .").concat(i.input))}},W=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},V=(e,t,r)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{r?e.classList.add(t):e.classList.remove(t)})):r?e.classList.add(t):e.classList.remove(t)})))},G=(e,t)=>{V(e,t,!0)},Z=(e,t)=>{V(e,t,!1)},Y=(e,t)=>{const r=Array.from(e.children);for(let e=0;e<r.length;e++){const n=r[e];if(n instanceof HTMLElement&&q(n,t))return n}},J=(e,t,r)=>{r==="".concat(parseInt(r))&&(r=parseInt(r)),r||0===parseInt(r)?e.style[t]="number"==typeof r?"".concat(r,"px"):r:e.style.removeProperty(t)},Q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},X=e=>{e&&(e.style.display="none")},K=(e,t,r,n)=>{const a=e.querySelector(t);a&&(a.style[r]=n)},$=function(e,t){t?Q(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):X(e)},ee=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),te=e=>!!(e.scrollHeight>e.clientHeight),re=e=>{const t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ne=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=O();r&&ee(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout((()=>{r.style.transition="width ".concat(e/1e3,"s linear"),r.style.width="0%"}),10))},ae=()=>"undefined"==typeof window||"undefined"==typeof document,oe='\n <div aria-labelledby="'.concat(i.title,'" aria-describedby="').concat(i["html-container"],'" class="').concat(i.popup,'" tabindex="-1">\n <button type="button" class="').concat(i.close,'"></button>\n <ul class="').concat(i["progress-steps"],'"></ul>\n <div class="').concat(i.icon,'"></div>\n <img class="').concat(i.image,'" />\n <h2 class="').concat(i.title,'" id="').concat(i.title,'"></h2>\n <div class="').concat(i["html-container"],'" id="').concat(i["html-container"],'"></div>\n <input class="').concat(i.input,'" id="').concat(i.input,'" />\n <input type="file" class="').concat(i.file,'" />\n <div class="').concat(i.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(i.select,'" id="').concat(i.select,'"></select>\n <div class="').concat(i.radio,'"></div>\n <label class="').concat(i.checkbox,'">\n <input type="checkbox" id="').concat(i.checkbox,'" />\n <span class="').concat(i.label,'"></span>\n </label>\n <textarea class="').concat(i.textarea,'" id="').concat(i.textarea,'"></textarea>\n <div class="').concat(i["validation-message"],'" id="').concat(i["validation-message"],'"></div>\n <div class="').concat(i.actions,'">\n <div class="').concat(i.loader,'"></div>\n <button type="button" class="').concat(i.confirm,'"></button>\n <button type="button" class="').concat(i.deny,'"></button>\n <button type="button" class="').concat(i.cancel,'"></button>\n </div>\n <div class="').concat(i.footer,'"></div>\n <div class="').concat(i["timer-progress-bar-container"],'">\n <div class="').concat(i["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),se=()=>{a.currentInstance.resetValidationMessage()},ie=e=>{const t=(()=>{const e=v();return!!e&&(e.remove(),Z([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0)})();if(ae())return void m("SweetAlert2 requires document to initialize");const r=document.createElement("div");r.className=i.container,t&&G(r,i["no-transition"]),F(r,oe);const n="string"==typeof(a=e.target)?document.querySelector(a):a;var a;n.appendChild(r),(e=>{const t=E();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&G(v(),i.rtl)})(n),(()=>{const e=E(),t=Y(e,i.input),r=Y(e,i.file),n=e.querySelector(".".concat(i.range," input")),a=e.querySelector(".".concat(i.range," output")),o=Y(e,i.select),s=e.querySelector(".".concat(i.checkbox," input")),l=Y(e,i.textarea);t.oninput=se,r.onchange=se,o.onchange=se,s.onchange=se,l.oninput=se,n.oninput=()=>{se(),a.value=n.value},n.onchange=()=>{se(),a.value=n.value}})()},le=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ce(e,t):e&&F(t,e)},ce=(e,t)=>{e.jquery?de(t,e):F(t,e.toString())},de=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ue=(()=>{if(ae())return!1;const e=document.createElement("div");return void 0!==e.style.webkitAnimation?"webkitAnimationEnd":void 0!==e.style.animation&&"animationend"})(),me=(e,t)=>{const r=R(),n=M();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?Q(r):X(r),H(r,t,"actions"),function(e,t,r){const n=I(),a=T(),o=L();n&&a&&o&&(pe(n,"confirm",r),pe(a,"deny",r),pe(o,"cancel",r),function(e,t,r,n){n.buttonsStyling?(G([e,t,r],i.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,G(e,i["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,G(t,i["default-outline"])),n.cancelButtonColor&&(r.style.backgroundColor=n.cancelButtonColor,G(r,i["default-outline"]))):Z([e,t,r],i.styled)}(n,a,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(a,n)):(e.insertBefore(o,t),e.insertBefore(a,t),e.insertBefore(n,t))))}(r,n,t),F(n,t.loaderHtml||""),H(n,t,"loader"))};function pe(e,t,r){const n=d(t);$(e,r["show".concat(n,"Button")],"inline-block"),F(e,r["".concat(t,"ButtonText")]||""),e.setAttribute("aria-label",r["".concat(t,"ButtonAriaLabel")]||""),e.className=i[t],H(e,r,"".concat(t,"Button"))}const fe=(e,t)=>{const r=v();r&&(function(e,t){"string"==typeof t?e.style.background=t:t||G([document.documentElement,document.body],i["no-backdrop"])}(r,t.backdrop),function(e,t){t&&(t in i?G(e,i[t]):(u('The "position" parameter is not valid, defaulting to "center"'),G(e,i.center)))}(r,t.position),function(e,t){t&&G(e,i["grow-".concat(t)])}(r,t.grow),H(r,t,"container"))};var he={innerParams:new WeakMap,domCache:new WeakMap};const ge=["input","file","range","select","radio","checkbox","textarea"],be=e=>{if(!e.input)return;if(!Ne[e.input])return void m('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ee(e.input),r=Ne[e.input](t,e);Q(t),e.inputAutoFocus&&setTimeout((()=>{W(r)}))},we=(e,t)=>{const r=U(E(),e);if(r){(e=>{for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t].name;["id","type","value","style"].includes(r)||e.removeAttribute(r)}})(r);for(const e in t)r.setAttribute(e,t[e])}},ve=e=>{const t=Ee(e.input);"object"==typeof e.customClass&&G(t,e.customClass.input)},xe=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},ye=(e,t,r)=>{if(r.inputLabel){const n=document.createElement("label"),a=i["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof r.customClass&&G(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ee=e=>Y(E(),i[e]||i.input),ke=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):w(t)||u('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},Ne={};Ne.text=Ne.email=Ne.password=Ne.number=Ne.tel=Ne.url=(e,t)=>(ke(e,t.inputValue),ye(e,e,t),xe(e,t),e.type=t.input,e),Ne.file=(e,t)=>(ye(e,e,t),xe(e,t),e),Ne.range=(e,t)=>{const r=e.querySelector("input"),n=e.querySelector("output");return ke(r,t.inputValue),r.type=t.input,ke(n,t.inputValue),ye(r,e,t),e},Ne.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const r=document.createElement("option");F(r,t.inputPlaceholder),r.value="",r.disabled=!0,r.selected=!0,e.appendChild(r)}return ye(e,e,t),e},Ne.radio=e=>(e.textContent="",e),Ne.checkbox=(e,t)=>{const r=U(E(),"checkbox");r.value="1",r.checked=Boolean(t.inputValue);const n=e.querySelector("span");return F(n,t.inputPlaceholder),r},Ne.textarea=(e,t)=>{ke(e,t.inputValue),xe(e,t),ye(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(E()).width);new MutationObserver((()=>{if(!document.body.contains(e))return;const n=e.offsetWidth+(a=e,parseInt(window.getComputedStyle(a).marginLeft)+parseInt(window.getComputedStyle(a).marginRight));var a;n>r?E().style.width="".concat(n,"px"):J(E(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Se=(e,t)=>{const r=S();r&&(H(r,t,"htmlContainer"),t.html?(le(t.html,r),Q(r,"block")):t.text?(r.textContent=t.text,Q(r,"block")):X(r),((e,t)=>{const r=E();if(!r)return;const n=he.innerParams.get(e),a=!n||t.input!==n.input;ge.forEach((e=>{const n=Y(r,i[e]);n&&(we(e,t.inputAttributes),n.className=i[e],a&&X(n))})),t.input&&(a&&be(t),ve(t))})(e,t))},Ae=(e,t)=>{for(const[r,n]of Object.entries(l))t.icon!==r&&Z(e,n);G(e,t.icon&&l[t.icon]),Ie(e,t),De(),H(e,t,"icon")},De=()=>{const e=E();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<r.length;e++)r[e].style.backgroundColor=t},Ce=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";t.iconHtml?n=Le(t.iconHtml):"success"===t.icon?(n='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',r=r.replace(/ style=".*?"/g,"")):"error"===t.icon?n='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':t.icon&&(n=Le({question:"?",warning:"!",info:"i"}[t.icon])),r.trim()!==n.trim()&&F(e,n)},Ie=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const r of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])K(e,r,"backgroundColor",t.iconColor);K(e,".swal2-success-ring","borderColor",t.iconColor)}},Le=e=>'<div class="'.concat(i["icon-content"],'">').concat(e,"</div>"),Te=(e,t)=>{const r=t.showClass||{};e.className="".concat(i.popup," ").concat(ee(e)?r.popup:""),t.toast?(G([document.documentElement,document.body],i["toast-shown"]),G(e,i.toast)):G(e,i.modal),H(e,t,"popup"),"string"==typeof t.customClass&&G(e,t.customClass),t.icon&&G(e,i["icon-".concat(t.icon)])},Me=e=>{const t=document.createElement("li");return G(t,i["progress-step"]),F(t,e),t},Re=e=>{const t=document.createElement("li");return G(t,i["progress-step-line"]),e.progressStepsDistance&&J(t,"width",e.progressStepsDistance),t},_e=(e,t)=>{((e,t)=>{const r=v(),n=E();if(r&&n){if(t.toast){J(r,"width",t.width),n.style.width="100%";const e=M();e&&n.insertBefore(e,k())}else J(n,"width",t.width);J(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),X(C()),Te(n,t)}})(0,t),fe(0,t),((e,t)=>{const r=D();if(!r)return;const{progressSteps:n,currentProgressStep:a}=t;n&&0!==n.length&&void 0!==a?(Q(r),r.textContent="",a>=n.length&&u("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach(((e,o)=>{const s=Me(e);if(r.appendChild(s),o===a&&G(s,i["active-progress-step"]),o!==n.length-1){const e=Re(t);r.appendChild(e)}}))):X(r)})(0,t),((e,t)=>{const r=he.innerParams.get(e),n=k();if(n){if(r&&t.icon===r.icon)return Ce(n,t),void Ae(n,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(l).indexOf(t.icon))return m('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void X(n);Q(n),Ce(n,t),Ae(n,t),G(n,t.showClass&&t.showClass.icon)}else X(n)}})(e,t),((e,t)=>{const r=A();r&&(t.imageUrl?(Q(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),J(r,"width",t.imageWidth),J(r,"height",t.imageHeight),r.className=i.image,H(r,t,"image")):X(r))})(0,t),((e,t)=>{const r=N();r&&($(r,t.title||t.titleText,"block"),t.title&&le(t.title,r),t.titleText&&(r.innerText=t.titleText),H(r,t,"title"))})(0,t),((e,t)=>{const r=B();r&&(F(r,t.closeButtonHtml||""),H(r,t,"closeButton"),$(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),Se(e,t),me(0,t),((e,t)=>{const r=_();r&&($(r,t.footer,"block"),t.footer&&le(t.footer,r),H(r,t,"footer"))})(0,t);const r=E();"function"==typeof t.didRender&&r&&t.didRender(r)},Oe=()=>{var e;return null===(e=I())||void 0===e?void 0:e.click()},Be=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Pe=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},je=(e,t)=>{var r;const n=P();if(n.length)return(e+=t)===n.length?e=0:-1===e&&(e=n.length-1),void n[e].focus();null===(r=E())||void 0===r||r.focus()},ze=["ArrowRight","ArrowDown"],Fe=["ArrowLeft","ArrowUp"],qe=(e,t,r)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?He(t,e):"Tab"===t.key?Ue(t):[...ze,...Fe].includes(t.key)?We(t.key):"Escape"===t.key&&Ve(t,e,r)))},He=(e,t)=>{if(!h(t.allowEnterKey))return;const r=U(E(),t.input);if(e.target&&r&&e.target instanceof HTMLElement&&e.target.outerHTML===r.outerHTML){if(["textarea","file"].includes(t.input))return;Oe(),e.preventDefault()}},Ue=e=>{const t=e.target,r=P();let n=-1;for(let e=0;e<r.length;e++)if(t===r[e]){n=e;break}e.shiftKey?je(n,-1):je(n,1),e.stopPropagation(),e.preventDefault()},We=e=>{const t=R(),r=I(),n=T(),a=L();if(!(t&&r&&n&&a))return;const o=[r,n,a];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=ze.includes(e)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let e=0;e<t.children.length;e++){if(i=i[s],!i)return;if(i instanceof HTMLButtonElement&&ee(i))break}i instanceof HTMLButtonElement&&i.focus()}},Ve=(e,t,r)=>{h(t.allowEscapeKey)&&(e.preventDefault(),r(Be.esc))};var Ge={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Ze=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Ye="undefined"!=typeof window&&!!window.GestureEvent,Je=()=>{const e=v();if(!e)return;let t;e.ontouchstart=e=>{t=Qe(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Qe=e=>{const t=e.target,r=v(),n=S();return!(!r||!n||Xe(e)||Ke(e)||t!==r&&(te(r)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||te(n)&&n.contains(t)))},Xe=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Ke=e=>e.touches&&e.touches.length>1;let $e=null;const et=e=>{null===$e&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&($e=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat($e+(()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))};function tt(e,t,r,n){z()?ct(e,n):(o(r).then((()=>ct(e,n))),Pe(a)),Ye?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),j()&&(null!==$e&&(document.body.style.paddingRight="".concat($e,"px"),$e=null),(()=>{if(q(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);Z(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ze()),Z([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function rt(e){e=st(e);const t=Ge.swalPromiseResolve.get(this),r=nt(this);this.isAwaitingPromise?e.isDismissed||(ot(this),t(e)):r&&t(e)}const nt=e=>{const t=E();if(!t)return!1;const r=he.innerParams.get(e);if(!r||q(t,r.hideClass.popup))return!1;Z(t,r.showClass.popup),G(t,r.hideClass.popup);const n=v();return Z(n,r.showClass.backdrop),G(n,r.hideClass.backdrop),it(e,t,r),!0};function at(e){const t=Ge.swalPromiseReject.get(this);ot(this),t&&t(e)}const ot=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,he.innerParams.get(e)||e._destroy())},st=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),it=(e,t,r)=>{const n=v(),a=ue&&re(t);"function"==typeof r.willClose&&r.willClose(t),a?lt(e,t,n,r.returnFocus,r.didClose):tt(e,n,r.returnFocus,r.didClose)},lt=(e,t,r,n,o)=>{ue&&(a.swalCloseEventFinishedCallback=tt.bind(null,e,r,n,o),t.addEventListener(ue,(function(e){e.target===t&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback)})))},ct=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},dt=e=>{let t=E();if(t||new qr,t=E(),!t)return;const r=M();z()?X(k()):ut(t,e),Q(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},ut=(e,t)=>{const r=R(),n=M();r&&n&&(!t&&ee(I())&&(t=I()),Q(r),t&&(X(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),G([e,r],i.loading))},mt=e=>e.checked?1:0,pt=e=>e.checked?e.value:null,ft=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,ht=(e,t)=>{const r=E();if(!r)return;const n=e=>{"select"===t.input?function(e,t,r){const n=Y(e,i.select);if(!n)return;const a=(e,t,n)=>{const a=document.createElement("option");a.value=n,F(a,t),a.selected=wt(n,r.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],r=e[1];if(Array.isArray(r)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach((t=>a(e,t[1],t[0])))}else a(n,r,t)})),n.focus()}(r,bt(e),t):"radio"===t.input&&function(e,t,r){const n=Y(e,i.radio);if(!n)return;t.forEach((e=>{const t=e[0],a=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=i.radio,o.value=t,wt(t,r.inputValue)&&(o.checked=!0);const l=document.createElement("span");F(l,a),l.className=i.label,s.appendChild(o),s.appendChild(l),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}(r,bt(e),t)};g(t.inputOptions)||w(t.inputOptions)?(dt(I()),b(t.inputOptions).then((t=>{e.hideLoading(),n(t)}))):"object"==typeof t.inputOptions?n(t.inputOptions):m("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},gt=(e,t)=>{const r=e.getInput();r&&(X(r),b(t.inputValue).then((n=>{r.value="number"===t.input?"".concat(parseFloat(n)||0):"".concat(n),Q(r),r.focus(),e.hideLoading()})).catch((t=>{m("Error in inputValue promise: ".concat(t)),r.value="",Q(r),r.focus(),e.hideLoading()})))};const bt=e=>{const t=[];return e instanceof Map?e.forEach(((e,r)=>{let n=e;"object"==typeof n&&(n=bt(n)),t.push([r,n])})):Object.keys(e).forEach((r=>{let n=e[r];"object"==typeof n&&(n=bt(n)),t.push([r,n])})),t},wt=(e,t)=>!!t&&t.toString()===e.toString(),vt=(e,t)=>{const r=he.innerParams.get(e);if(!r.input)return void m('The "input" parameter is needed to be set when using returnInputValueOn'.concat(d(t)));const n=e.getInput(),a=((e,t)=>{const r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return mt(r);case"radio":return pt(r);case"file":return ft(r);default:return t.inputAutoTrim?r.value.trim():r.value}})(e,r);r.inputValidator?xt(e,a,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage)):"deny"===t?yt(e,a):Nt(e,a)},xt=(e,t,r)=>{const n=he.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>b(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?yt(e,t):Nt(e,t)}))},yt=(e,t)=>{const r=he.innerParams.get(e||void 0);r.showLoaderOnDeny&&dt(T()),r.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(r.preDeny(t,r.validationMessage)))).then((r=>{!1===r?(e.hideLoading(),ot(e)):e.close({isDenied:!0,value:void 0===r?t:r})})).catch((t=>kt(e||void 0,t)))):e.close({isDenied:!0,value:t})},Et=(e,t)=>{e.close({isConfirmed:!0,value:t})},kt=(e,t)=>{e.rejectPromise(t)},Nt=(e,t)=>{const r=he.innerParams.get(e||void 0);r.showLoaderOnConfirm&&dt(),r.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(r.preConfirm(t,r.validationMessage)))).then((r=>{ee(C())||!1===r?(e.hideLoading(),ot(e)):Et(e,void 0===r?t:r)})).catch((t=>kt(e||void 0,t)))):Et(e,t)};function St(){const e=he.innerParams.get(this);if(!e)return;const t=he.domCache.get(this);X(t.loader),z()?e.icon&&Q(k()):At(t),Z([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const At=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?Q(t[0],"inline-block"):!ee(I())&&!ee(T())&&!ee(L())&&X(e.actions)};function Dt(){const e=he.innerParams.get(this),t=he.domCache.get(this);return t?U(t.popup,e.input):null}function Ct(e,t,r){const n=he.domCache.get(e);t.forEach((e=>{n[e].disabled=r}))}function It(e,t){const r=E();if(r&&e)if("radio"===e.type){const e=r.querySelectorAll('[name="'.concat(i.radio,'"]'));for(let r=0;r<e.length;r++)e[r].disabled=t}else e.disabled=t}function Lt(){Ct(this,["confirmButton","denyButton","cancelButton"],!1)}function Tt(){Ct(this,["confirmButton","denyButton","cancelButton"],!0)}function Mt(){It(this.getInput(),!1)}function Rt(){It(this.getInput(),!0)}function _t(e){const t=he.domCache.get(this),r=he.innerParams.get(this);F(t.validationMessage,e),t.validationMessage.className=i["validation-message"],r.customClass&&r.customClass.validationMessage&&G(t.validationMessage,r.customClass.validationMessage),Q(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",i["validation-message"]),W(n),G(n,i.inputerror))}function Ot(){const e=he.domCache.get(this);e.validationMessage&&X(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),Z(t,i.inputerror))}const Bt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Pt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],jt={},zt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ft=e=>Object.prototype.hasOwnProperty.call(Bt,e),qt=e=>-1!==Pt.indexOf(e),Ht=e=>jt[e],Ut=e=>{Ft(e)||u('Unknown parameter "'.concat(e,'"'))},Wt=e=>{zt.includes(e)&&u('The parameter "'.concat(e,'" is incompatible with toasts'))},Vt=e=>{const t=Ht(e);t&&f(e,t)};function Gt(e){const t=E(),r=he.innerParams.get(this);if(!t||q(t,r.hideClass.popup))return void u("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const n=Zt(e),a=Object.assign({},r,n);_e(this,a),he.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Zt=e=>{const t={};return Object.keys(e).forEach((r=>{qt(r)?t[r]=e[r]:u("Invalid parameter to update: ".concat(r))})),t};function Yt(){const e=he.domCache.get(this),t=he.innerParams.get(this);t?(e.popup&&a.swalCloseEventFinishedCallback&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Jt(this)):Qt(this)}const Jt=e=>{Qt(e),delete e.params,delete a.keydownHandler,delete a.keydownTarget,delete a.currentInstance},Qt=e=>{e.isAwaitingPromise?(Xt(he,e),e.isAwaitingPromise=!0):(Xt(Ge,e),Xt(he,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Xt=(e,t)=>{for(const r in e)e[r].delete(t)};var Kt=Object.freeze({__proto__:null,_destroy:Yt,close:rt,closeModal:rt,closePopup:rt,closeToast:rt,disableButtons:Tt,disableInput:Rt,disableLoading:St,enableButtons:Lt,enableInput:Mt,getInput:Dt,handleAwaitingPromise:ot,hideLoading:St,rejectPromise:at,resetValidationMessage:Ot,showValidationMessage:_t,update:Gt});const $t=(e,t,r)=>{t.popup.onclick=()=>{e&&(er(e)||e.timer||e.input)||r(Be.close)}},er=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let tr=!1;const rr=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(tr=!0)}}},nr=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(tr=!0)}}},ar=(e,t,r)=>{t.container.onclick=n=>{tr?tr=!1:n.target===t.container&&h(e.allowOutsideClick)&&r(Be.backdrop)}},or=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const sr=()=>{if(a.timeout)return(()=>{const e=O();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const r=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width="".concat(r,"%")})(),a.timeout.stop()},ir=()=>{if(a.timeout){const e=a.timeout.start();return ne(e),e}};let lr=!1;const cr={};const dr=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in cr){const r=t.getAttribute(e);if(r)return void cr[e].fire({template:r})}};var ur=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||or(e[0])?["title","html","icon"].forEach(((r,n)=>{const a=e[n];"string"==typeof a||or(a)?t[r]=a:void 0!==a&&m("Unexpected type of ".concat(r,'! Expected "string" or "Element", got ').concat(typeof a))})):Object.assign(t,e[0]),t},bindClickHandler:function(){cr[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,lr||(document.body.addEventListener("click",dr),lr=!0)},clickCancel:()=>{var e;return null===(e=L())||void 0===e?void 0:e.click()},clickConfirm:Oe,clickDeny:()=>{var e;return null===(e=T())||void 0===e?void 0:e.click()},enableLoading:dt,fire:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new this(...t)},getActions:R,getCancelButton:L,getCloseButton:B,getConfirmButton:I,getContainer:v,getDenyButton:T,getFocusableElements:P,getFooter:_,getHtmlContainer:S,getIcon:k,getIconContent:()=>y(i["icon-content"]),getImage:A,getInputLabel:()=>y(i["input-label"]),getLoader:M,getPopup:E,getProgressSteps:D,getTimerLeft:()=>a.timeout&&a.timeout.getTimerLeft(),getTimerProgressBar:O,getTitle:N,getValidationMessage:C,increaseTimer:e=>{if(a.timeout){const t=a.timeout.increase(e);return ne(t,!0),t}},isDeprecatedParameter:Ht,isLoading:()=>{const e=E();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!a.timeout||!a.timeout.isRunning()),isUpdatableParameter:qt,isValidParameter:Ft,isVisible:()=>ee(E()),mixin:function(e){return class extends(this){_main(t,r){return super._main(t,Object.assign({},e,r))}}},resumeTimer:ir,showLoading:dt,stopTimer:sr,toggleTimer:()=>{const e=a.timeout;return e&&(e.running?sr():ir())}});class mr{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const pr=["swal-title","swal-html","swal-footer"],fr=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Er(e,["name","value"]);const r=e.getAttribute("name"),n=e.getAttribute("value");t[r]="boolean"==typeof Bt[r]?"false"!==n:"object"==typeof Bt[r]?JSON.parse(n):n})),t},hr=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const r=e.getAttribute("name"),n=e.getAttribute("value");t[r]=new Function("return ".concat(n))()})),t},gr=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Er(e,["type","color","aria-label"]);const r=e.getAttribute("type");t["".concat(r,"ButtonText")]=e.innerHTML,t["show".concat(d(r),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(r,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(r,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t},br=e=>{const t={},r=e.querySelector("swal-image");return r&&(Er(r,["src","width","height","alt"]),r.hasAttribute("src")&&(t.imageUrl=r.getAttribute("src")),r.hasAttribute("width")&&(t.imageWidth=r.getAttribute("width")),r.hasAttribute("height")&&(t.imageHeight=r.getAttribute("height")),r.hasAttribute("alt")&&(t.imageAlt=r.getAttribute("alt"))),t},wr=e=>{const t={},r=e.querySelector("swal-icon");return r&&(Er(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},vr=e=>{const t={},r=e.querySelector("swal-input");r&&(Er(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Er(e,["value"]);const r=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[r]=n}))),t},xr=(e,t)=>{const r={};for(const n in t){const a=t[n],o=e.querySelector(a);o&&(Er(o,[]),r[a.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},yr=e=>{const t=pr.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const r=e.tagName.toLowerCase();t.includes(r)||u("Unrecognized element <".concat(r,">"))}))},Er=(e,t)=>{Array.from(e.attributes).forEach((r=>{-1===t.indexOf(r.name)&&u(['Unrecognized attribute "'.concat(r.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},kr=e=>{const t=v(),r=E();"function"==typeof e.willOpen&&e.willOpen(r);const n=window.getComputedStyle(document.body).overflowY;Dr(t,r,e),setTimeout((()=>{Sr(t,r)}),10),j()&&(Ar(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===v()||e.contains(v())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")||""),e.setAttribute("aria-hidden","true"))}))),z()||a.previousActiveElement||(a.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(r))),Z(t,i["no-transition"])},Nr=e=>{const t=E();if(e.target!==t||!ue)return;const r=v();t.removeEventListener(ue,Nr),r.style.overflowY="auto"},Sr=(e,t)=>{ue&&re(t)?(e.style.overflowY="hidden",t.addEventListener(ue,Nr)):e.style.overflowY="auto"},Ar=(e,t,r)=>{(()=>{if(Ye&&!q(document.body,i.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),G(document.body,i.iosfix),Je()}})(),t&&"hidden"!==r&&et(r),setTimeout((()=>{e.scrollTop=0}))},Dr=(e,t,r)=>{G(e,r.showClass.backdrop),t.style.setProperty("opacity","0","important"),Q(t,"grid"),setTimeout((()=>{G(t,r.showClass.popup),t.style.removeProperty("opacity")}),10),G([document.documentElement,document.body],i.shown),r.heightAuto&&r.backdrop&&!r.toast&&G([document.documentElement,document.body],i["height-auto"])};var Cr=(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),Ir=(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL");function Lr(e){(function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=Cr),"url"===e.input&&(e.inputValidator=Ir))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&u("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(u('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),ie(e)}let Tr;var Mr=new WeakMap;class Rr{constructor(){if(n(this,Mr,{writable:!0,value:void 0}),"undefined"==typeof window)return;Tr=this;for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];const o=Object.freeze(this.constructor.argsToParams(r));this.params=o,this.isAwaitingPromise=!1,t(this,Mr,this._main(Tr.params))}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!1===e.backdrop&&e.allowOutsideClick&&u('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)Ut(t),e.toast&&Wt(t),Vt(t)})(Object.assign({},t,e)),a.currentInstance&&(a.currentInstance._destroy(),j()&&Ze()),a.currentInstance=Tr;const r=Or(e,t);Lr(r),Object.freeze(r),a.timeout&&(a.timeout.stop(),delete a.timeout),clearTimeout(a.restoreFocusTimeout);const n=Br(Tr);return _e(Tr,r),he.innerParams.set(Tr,r),_r(Tr,n,r)}then(t){return e(this,Mr).then(t)}finally(t){return e(this,Mr).finally(t)}}const _r=(e,t,r)=>new Promise(((n,o)=>{const s=t=>{e.close({isDismissed:!0,dismiss:t})};Ge.swalPromiseResolve.set(e,n),Ge.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>{(e=>{const t=he.innerParams.get(e);e.disableButtons(),t.input?vt(e,"confirm"):Nt(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=he.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?vt(e,"deny"):yt(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(Be.cancel)})(e,s)},t.closeButton.onclick=()=>{s(Be.close)},((e,t,r)=>{e.toast?$t(e,t,r):(rr(t),nr(t),ar(e,t,r))})(r,t,s),((e,t,r)=>{Pe(e),t.toast||(e.keydownHandler=e=>qe(t,e,r),e.keydownTarget=t.keydownListenerCapture?window:E(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(a,r,s),((e,t)=>{"select"===t.input||"radio"===t.input?ht(e,t):["text","email","number","tel","textarea"].some((e=>e===t.input))&&(g(t.inputValue)||w(t.inputValue))&&(dt(I()),gt(e,t))})(e,r),kr(r),Pr(a,r,s),jr(t,r),setTimeout((()=>{t.container.scrollTop=0}))})),Or=(e,t)=>{const r=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const r=t.content;return yr(r),Object.assign(fr(r),hr(r),gr(r),br(r),wr(r),vr(r),xr(r,pr))})(e),n=Object.assign({},Bt,t,r,e);return n.showClass=Object.assign({},Bt.showClass,n.showClass),n.hideClass=Object.assign({},Bt.hideClass,n.hideClass),n},Br=e=>{const t={popup:E(),container:v(),actions:R(),confirmButton:I(),denyButton:T(),cancelButton:L(),loader:M(),closeButton:B(),validationMessage:C(),progressSteps:D()};return he.domCache.set(e,t),t},Pr=(e,t,r)=>{const n=O();X(n),t.timer&&(e.timeout=new mr((()=>{r("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(Q(n),H(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ne(t.timer)}))))},jr=(e,t)=>{t.toast||(h(t.allowEnterKey)?zr(e,t)||je(-1,1):Fr())},zr=(e,t)=>t.focusDeny&&ee(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ee(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ee(e.confirmButton)||(e.confirmButton.focus(),0)),Fr=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(e))}Rr.prototype.disableButtons=Tt,Rr.prototype.enableButtons=Lt,Rr.prototype.getInput=Dt,Rr.prototype.disableInput=Rt,Rr.prototype.enableInput=Mt,Rr.prototype.hideLoading=St,Rr.prototype.disableLoading=St,Rr.prototype.showValidationMessage=_t,Rr.prototype.resetValidationMessage=Ot,Rr.prototype.close=rt,Rr.prototype.closePopup=rt,Rr.prototype.closeModal=rt,Rr.prototype.closeToast=rt,Rr.prototype.rejectPromise=at,Rr.prototype.update=Gt,Rr.prototype._destroy=Yt,Object.assign(Rr,ur),Object.keys(Kt).forEach((e=>{Rr[e]=function(){return Tr&&Tr[e]?Tr[e](...arguments):null}})),Rr.DismissReason=Be,Rr.version="11.7.31";const qr=Rr;return qr.default=qr,qr}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')},609:e=>{"use strict";e.exports=window.React},455:e=>{"use strict";e.exports=window.wp.apiFetch},143:e=>{"use strict";e.exports=window.wp.data}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);a.r(o);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&r;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>r[e]));return s.default=()=>r,a.d(o,s),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{"use strict";var e=a(609),t=a.t(e,2),r=a.n(e);a(648);const n=({children:t})=>(0,e.createElement)("div",{className:"pro-docs"},t);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var s;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(s||(s={}));const i="popstate";function l(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,r,n){return void 0===r&&(r=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function p(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function f(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:c=!1}=n,p=a.history,f=s.Pop,h=null,g=b();function b(){return(p.state||{idx:null}).idx}function w(){f=s.Pop;let e=b(),t=null==e?null:e-g;g=e,h&&h({action:f,location:x.location,delta:t})}function v(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:m(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==g&&(g=0,p.replaceState(o({},p.state,{idx:g}),""));let x={get action(){return f},get location(){return e(a,p)},listen(e){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(i,w),h=e,()=>{a.removeEventListener(i,w),h=null}},createHref:e=>t(a,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=s.Push;let n=u(x.location,e,t);r&&r(n,e),g=b()+1;let o=d(n,g),i=x.createHref(n);try{p.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(i)}c&&h&&h({action:f,location:x.location,delta:1})},replace:function(e,t){f=s.Replace;let n=u(x.location,e,t);r&&r(n,e),g=b();let a=d(n,g),o=x.createHref(n);p.replaceState(a,"",o),c&&h&&h({action:f,location:x.location,delta:0})},go:e=>p.go(e)};return x}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));const g=new Set(["lazy","caseSensitive","path","id","index","children"]);function b(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map(((e,a)=>{let s=[...r,a],i="string"==typeof e.id?e.id:s.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=o({},e,t(e),{id:i});return n[i]=r,r}{let r=o({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=b(e.children,t,s,n)),r}}))}function w(e,t,r){void 0===r&&(r="/");let n=M(("string"==typeof t?p(t):t).pathname||"/",r);if(null==n)return null;let a=v(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let e=0;null==o&&e<a.length;++e)o=I(a[e],T(n));return o}function v(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let a=(e,a,o)=>{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};s.relativePath.startsWith("/")&&(l(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let i=B([n,s.relativePath]),c=r.concat(s);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+i+'".'),v(e.children,t,c,i)),(null!=e.path||e.index)&&t.push({path:i,score:C(i,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of x(e.path))a(e,t,r);else a(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let s=x(n.join("/")),i=[];return i.push(...s.map((e=>""===e?o:[o,e].join("/")))),a&&i.push(...s),i.map((t=>e.startsWith("/")&&""===t?"/":t))}const y=/^:\w+$/,E=3,k=2,N=1,S=10,A=-2,D=e=>"*"===e;function C(e,t){let r=e.split("/"),n=r.length;return r.some(D)&&(n+=A),t&&(n+=k),r.filter((e=>!D(e))).reduce(((e,t)=>e+(y.test(t)?E:""===t?N:S)),n)}function I(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let s=r[e],i=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",c=L({path:s.relativePath,caseSensitive:s.caseSensitive,end:i},l);if(!c)return null;Object.assign(n,c.params);let d=s.route;o.push({params:n,pathname:B([a,c.pathname]),pathnameBase:P(B([a,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(a=B([a,c.pathnameBase]))}return o}function L(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(n.push(t),"/([^\\/]+)")));return e.endsWith("*")?(n.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],s=o.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:n.reduce(((e,t,r)=>{if("*"===t){let e=i[r]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(r){return c(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(i[r]||"",t),e}),{}),pathname:o,pathnameBase:s,pattern:e}}function T(e){try{return decodeURI(e)}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function R(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function _(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function O(e,t,r,n){let a;void 0===n&&(n=!1),"string"==typeof e?a=p(e):(a=o({},e),l(!a.pathname||!a.pathname.includes("?"),R("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),R("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),R("#","search","hash",a)));let s,i=""===e||""===a.pathname,c=i?"/":a.pathname;if(n||null==c)s=r;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?p(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:j(n),hash:z(a)}}(a,s),u=c&&"/"!==c&&c.endsWith("/"),m=(i||"."===c)&&r.endsWith("/");return d.pathname.endsWith("/")||!u&&!m||(d.pathname+="/"),d}const B=e=>e.join("/").replace(/\/\/+/g,"/"),P=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class F{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const H=["post","put","patch","delete"],U=new Set(H),W=["get",...H],V=new Set(W),G=new Set([301,302,303,307,308]),Z=new Set([307,308]),Y={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Q={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},X=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)});function $(e,t,r,n,a,o,s){let i,l;if(null!=o&&"path"!==s){i=[];for(let e of t)if(i.push(e),e.route.id===o){l=e;break}}else i=t,l=t[t.length-1];let c=O(a||".",_(i).map((e=>e.pathnameBase)),M(e.pathname,r)||e.pathname,"path"===s);return null==a&&(c.search=e.search,c.hash=e.hash),null!=a&&""!==a&&"."!==a||!l||!l.route.index||Ee(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:B([r,c.pathname])),m(c)}function ee(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(a=n.formMethod,!V.has(a.toLowerCase())))return{path:r,error:pe(405,{method:n.formMethod})};var a;let o,s,i=()=>({path:r,error:pe(400,{type:"invalid-body"})}),c=n.formMethod||"get",d=e?c.toUpperCase():c.toLowerCase(),u=he(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ve(d))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:d,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!ve(d))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:d,formAction:u,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=ie(n.formData),s=n.formData;else if(n.body instanceof FormData)o=ie(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=le(o);else if(null==n.body)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=le(o)}catch(e){return i()}let f={formMethod:d,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(ve(f.formMethod))return{path:r,submission:f};let h=p(r);return t&&h.search&&Ee(h.search)&&o.append("index",""),h.search="?"+o,{path:m(h),submission:f}}function te(e,t,r,n,a,s,i,l,c,d,u,m,p,f){let h=f?Object.values(f)[0]:p?Object.values(p)[0]:void 0,g=e.createURL(t.location),b=e.createURL(a),v=f?Object.keys(f)[0]:void 0,x=function(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));n>=0&&(r=e.slice(0,n))}return r}(r,v).filter(((e,r)=>{if(e.route.lazy)return!0;if(null==e.route.loader)return!1;if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||i.some((t=>t===e.route.id)))return!0;let a=t.matches[r],l=e;return ne(e,o({currentUrl:g,currentParams:a.params,nextUrl:b,nextParams:l.params},n,{actionResult:h,defaultShouldRevalidate:s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||re(a,l)}))})),y=[];return c.forEach(((e,a)=>{if(!r.some((t=>t.route.id===e.routeId)))return;let i=w(u,e.path,m);if(!i)return void y.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(a),p=ke(i,e.path),f=!1;f=!d.has(a)&&(!!l.includes(a)||(c&&"idle"!==c.state&&void 0===c.data?s:ne(p,o({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:h,defaultShouldRevalidate:s})))),f&&y.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:p,controller:new AbortController})})),[x,y]}function re(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ne(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function ae(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];l(a,"No route found in manifest");let s={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||g.has(e)||(s[e]=n[e])}Object.assign(a,s),Object.assign(a,o({},t(a),{lazy:void 0}))}async function oe(e,t,r,n,a,o,s,i){let c,d,u;void 0===i&&(i={});let m=e=>{let n,a=new Promise(((e,t)=>n=t));return u=()=>n(),t.signal.addEventListener("abort",u),Promise.race([e({request:t,params:r.params,context:i.requestContext}),a])};try{let n=r.route[e];if(r.route.lazy)if(n){let e,t=await Promise.all([m(n).catch((t=>{e=t})),ae(r.route,o,a)]);if(e)throw e;d=t[0]}else{if(await ae(r.route,o,a),n=r.route[e],!n){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw pe(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:h.data,data:void 0}}d=await m(n)}else{if(!n){let e=new URL(t.url);throw pe(404,{pathname:e.pathname+e.search})}d=await m(n)}l(void 0!==d,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){c=h.error,d=e}finally{u&&t.signal.removeEventListener("abort",u)}if(null!=(p=d)&&"number"==typeof p.status&&"string"==typeof p.statusText&&"object"==typeof p.headers&&void 0!==p.body){let e,a=d.status;if(G.has(a)){let e=d.headers.get("Location");if(l(e,"Redirects returned/thrown from loaders/actions must have a Location header"),X.test(e)){if(!i.isStaticRequest){let r=new URL(t.url),n=e.startsWith("//")?new URL(r.protocol+e):new URL(e),a=null!=M(n.pathname,s);n.origin===r.origin&&a&&(e=n.pathname+n.search+n.hash)}}else e=$(new URL(t.url),n.slice(0,n.indexOf(r)+1),s,!0,e);if(i.isStaticRequest)throw d.headers.set("Location",e),d;return{type:h.redirect,status:a,location:e,revalidate:null!==d.headers.get("X-Remix-Revalidate"),reloadDocument:null!==d.headers.get("X-Remix-Reload-Document")}}if(i.isRouteRequest)throw{type:c===h.error?h.error:h.data,response:d};let o=d.headers.get("Content-Type");return e=o&&/\bapplication\/json\b/.test(o)?await d.json():await d.text(),c===h.error?{type:c,error:new F(a,d.statusText,e),headers:d.headers}:{type:h.data,data:e,statusCode:d.status,headers:d.headers}}var p,f,g;return c===h.error?{type:c,error:d}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(d)?{type:h.deferred,deferredData:d,statusCode:null==(f=d.init)?void 0:f.status,headers:(null==(g=d.init)?void 0:g.headers)&&new Headers(d.init.headers)}:{type:h.data,data:d}}function se(e,t,r,n){let a=e.createURL(he(t)).toString(),o={signal:r};if(n&&ve(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=ie(n.formData):o.body=n.formData}return new Request(a,o)}function ie(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function le(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ce(e,t,r,n,a,s,i,c){let{loaderData:d,errors:u}=function(e,t,r,n,a){let o,s={},i=null,c=!1,d={};return r.forEach(((r,u)=>{let m=t[u].route.id;if(l(!we(r),"Cannot handle redirect results in processLoaderData"),be(r)){let t=ue(e,m),a=r.error;n&&(a=Object.values(n)[0],n=void 0),i=i||{},null==i[t.route.id]&&(i[t.route.id]=a),s[m]=void 0,c||(c=!0,o=q(r.error)?r.error.status:500),r.headers&&(d[m]=r.headers)}else ge(r)?(a.set(m,r.deferredData),s[m]=r.deferredData.data):s[m]=r.data,null==r.statusCode||200===r.statusCode||c||(o=r.statusCode),r.headers&&(d[m]=r.headers)})),n&&(i=n,s[Object.keys(n)[0]]=void 0),{loaderData:s,errors:i,statusCode:o||200,loaderHeaders:d}}(t,r,n,a,c);for(let t=0;t<s.length;t++){let{key:r,match:n,controller:a}=s[t];l(void 0!==i&&void 0!==i[t],"Did not find corresponding fetcher result");let c=i[t];if(!a||!a.signal.aborted)if(be(c)){let t=ue(e.matches,null==n?void 0:n.route.id);u&&u[t.route.id]||(u=o({},u,{[t.route.id]:c.error})),e.fetchers.delete(r)}else if(we(c))l(!1,"Unhandled fetcher revalidation redirect");else if(ge(c))l(!1,"Unhandled fetcher deferred data");else{let t=De(c.data);e.fetchers.set(r,t)}}return{loaderData:d,errors:u}}function de(e,t,r,n){let a=o({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function ue(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function me(e){let t=e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function pe(e,t){let{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,s="Unknown Server Error",i="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&r&&n?i="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?i="defer() is not supported in actions":"invalid-body"===o&&(i="Unable to encode submission body")):403===e?(s="Forbidden",i='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",i='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",a&&r&&n?i="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(i='Invalid request method "'+a.toUpperCase()+'"')),new F(e||500,s,new Error(i),!0)}function fe(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(we(r))return{result:r,idx:t}}}function he(e){return m(o({},"string"==typeof e?p(e):e,{hash:""}))}function ge(e){return e.type===h.deferred}function be(e){return e.type===h.error}function we(e){return(e&&e.type)===h.redirect}function ve(e){return U.has(e.toLowerCase())}async function xe(e,t,r,n,a,o){for(let s=0;s<r.length;s++){let i=r[s],c=t[s];if(!c)continue;let d=e.find((e=>e.route.id===c.route.id)),u=null!=d&&!re(d,c)&&void 0!==(o&&o[c.route.id]);if(ge(i)&&(a||u)){let e=n[s];l(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await ye(i,e,a).then((e=>{e&&(r[s]=e||r[s])}))}}}async function ye(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:h.data,data:e.deferredData.unwrappedData}}catch(e){return{type:h.error,error:e}}return{type:h.data,data:e.deferredData.data}}}function Ee(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function ke(e,t){let r="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&Ee(r||""))return e[e.length-1];let n=_(e);return n[n.length-1]}function Ne(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:s}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==s?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:s,text:void 0}:void 0}function Se(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ae(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function De(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ce.apply(this,arguments)}Symbol("deferred");const Ie=e.createContext(null),Le=e.createContext(null),Te=e.createContext(null),Me=e.createContext(null),Re=e.createContext({outlet:null,matches:[],isDataRoute:!1}),_e=e.createContext(null);function Oe(){return null!=e.useContext(Me)}function Be(){return Oe()||l(!1),e.useContext(Me).location}function Pe(t){e.useContext(Te).static||e.useLayoutEffect(t)}function je(){let{isDataRoute:t}=e.useContext(Re);return t?function(){let{router:t}=function(){let t=e.useContext(Ie);return t||l(!1),t}(Ge.UseNavigateStable),r=Ye(Ze.UseNavigateStable),n=e.useRef(!1);return Pe((()=>{n.current=!0})),e.useCallback((function(e,a){void 0===a&&(a={}),n.current&&("number"==typeof e?t.navigate(e):t.navigate(e,Ce({fromRouteId:r},a)))}),[t,r])}():function(){Oe()||l(!1);let t=e.useContext(Ie),{basename:r,navigator:n}=e.useContext(Te),{matches:a}=e.useContext(Re),{pathname:o}=Be(),s=JSON.stringify(_(a).map((e=>e.pathnameBase))),i=e.useRef(!1);return Pe((()=>{i.current=!0})),e.useCallback((function(e,a){if(void 0===a&&(a={}),!i.current)return;if("number"==typeof e)return void n.go(e);let l=O(e,JSON.parse(s),o,"path"===a.relative);null==t&&"/"!==r&&(l.pathname="/"===l.pathname?r:B([r,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)}),[r,n,s,o,t])}()}function ze(){let{matches:t}=e.useContext(Re),r=t[t.length-1];return r?r.params:{}}function Fe(t,r){let{relative:n}=void 0===r?{}:r,{matches:a}=e.useContext(Re),{pathname:o}=Be(),s=JSON.stringify(_(a).map((e=>e.pathnameBase)));return e.useMemo((()=>O(t,JSON.parse(s),o,"path"===n)),[t,s,o,n])}function qe(t,r,n){Oe()||l(!1);let{navigator:a}=e.useContext(Te),{matches:o}=e.useContext(Re),i=o[o.length-1],c=i?i.params:{},d=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;let u,m=Be();if(r){var f;let e="string"==typeof r?p(r):r;"/"===d||(null==(f=e.pathname)?void 0:f.startsWith(d))||l(!1),u=e}else u=m;let h=u.pathname||"/",g=w(t,{pathname:"/"===d?h:h.slice(d.length)||"/"}),b=function(t,r,n){var a;if(void 0===r&&(r=[]),void 0===n&&(n=null),null==t){var o;if(null==(o=n)||!o.errors)return null;t=n.matches}let s=t,i=null==(a=n)?void 0:a.errors;if(null!=i){let e=s.findIndex((e=>e.route.id&&(null==i?void 0:i[e.route.id])));e>=0||l(!1),s=s.slice(0,Math.min(s.length,e+1))}return s.reduceRight(((t,a,o)=>{let l=a.route.id?null==i?void 0:i[a.route.id]:null,c=null;n&&(c=a.route.errorElement||Ue);let d=r.concat(s.slice(0,o+1)),u=()=>{let r;return r=l?c:a.route.Component?e.createElement(a.route.Component,null):a.route.element?a.route.element:t,e.createElement(Ve,{match:a,routeContext:{outlet:t,matches:d,isDataRoute:null!=n},children:r})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===o)?e.createElement(We,{location:n.location,revalidation:n.revalidation,component:c,error:l,children:u(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):u()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:B([d,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:B([d,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n);return r&&b?e.createElement(Me.Provider,{value:{location:Ce({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:s.Pop}},b):b}function He(){let t=function(){var t;let r=e.useContext(_e),n=function(){let t=e.useContext(Le);return t||l(!1),t}(Ze.UseRouteError),a=Ye(Ze.UseRouteError);return r||(null==(t=n.errors)?void 0:t[a])}(),r=q(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:a},n):null,null)}const Ue=e.createElement(He,null);class We extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?e.createElement(Re.Provider,{value:this.props.routeContext},e.createElement(_e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ve(t){let{routeContext:r,match:n,children:a}=t,o=e.useContext(Ie);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(Re.Provider,{value:r},a)}var Ge=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ge||{}),Ze=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ze||{});function Ye(t){let r=function(){let t=e.useContext(Re);return t||l(!1),t}(),n=r.matches[r.matches.length-1];return n.route.id||l(!1),n.route.id}const Je=e.startTransition;function Qe(t){let{fallbackElement:r,router:n,future:a}=t,[o,s]=e.useState(n.state),{v7_startTransition:i}=a||{},l=e.useCallback((e=>{i&&Je?Je((()=>s(e))):s(e)}),[s,i]);e.useLayoutEffect((()=>n.subscribe(l)),[n,l]);let c=e.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),d=n.basename||"/",u=e.useMemo((()=>({router:n,navigator:c,static:!1,basename:d})),[n,c,d]);return e.createElement(e.Fragment,null,e.createElement(Ie.Provider,{value:u},e.createElement(Le.Provider,{value:o},e.createElement($e,{basename:d,location:o.location,navigationType:o.historyAction,navigator:c},o.initialized?e.createElement(Xe,{routes:n.routes,state:o}):r))),null)}function Xe(e){let{routes:t,state:r}=e;return qe(t,void 0,r)}function Ke(e){l(!1)}function $e(t){let{basename:r="/",children:n=null,location:a,navigationType:o=s.Pop,navigator:i,static:c=!1}=t;Oe()&&l(!1);let d=r.replace(/^\/*/,"/"),u=e.useMemo((()=>({basename:d,navigator:i,static:c})),[d,i,c]);"string"==typeof a&&(a=p(a));let{pathname:m="/",search:f="",hash:h="",state:g=null,key:b="default"}=a,w=e.useMemo((()=>{let e=M(m,d);return null==e?null:{location:{pathname:e,search:f,hash:h,state:g,key:b},navigationType:o}}),[d,m,f,h,g,b,o]);return null==w?null:e.createElement(Te.Provider,{value:u},e.createElement(Me.Provider,{children:n,value:w}))}function et(t,r){void 0===r&&(r=[]);let n=[];return e.Children.forEach(t,((t,a)=>{if(!e.isValidElement(t))return;let o=[...r,a];if(t.type===e.Fragment)return void n.push.apply(n,et(t.props.children,o));t.type!==Ke&&l(!1),t.props.index&&t.props.children&&l(!1);let s={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(s.children=et(t.props.children,o)),n.push(s)})),n}function tt(t){let r={hasErrorBoundary:null!=t.ErrorBoundary||null!=t.errorElement};return t.Component&&Object.assign(r,{element:e.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(r,{errorElement:e.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),r}function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rt.apply(this,arguments)}new Promise((()=>{})),e.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const nt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function at(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=rt({},t,{errors:ot(t.errors)})),t}function ot(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new F(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}e.startTransition;const st="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,it=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lt=e.forwardRef((function(t,r){let n,{onClick:a,relative:o,reloadDocument:s,replace:i,state:c,target:d,to:u,preventScrollReset:p}=t,f=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(t,nt),{basename:h}=e.useContext(Te),g=!1;if("string"==typeof u&&it.test(u)&&(n=u,st))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=M(t.pathname,h);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:g=!0}catch(e){}let b=function(t,r){let{relative:n}=void 0===r?{}:r;Oe()||l(!1);let{basename:a,navigator:o}=e.useContext(Te),{hash:s,pathname:i,search:c}=Fe(t,{relative:n}),d=i;return"/"!==a&&(d="/"===i?a:B([a,i])),o.createHref({pathname:d,search:c,hash:s})}(u,{relative:o}),w=function(t,r){let{target:n,replace:a,state:o,preventScrollReset:s,relative:i}=void 0===r?{}:r,l=je(),c=Be(),d=Fe(t,{relative:i});return e.useCallback((e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,n)){e.preventDefault();let r=void 0!==a?a:m(c)===m(d);l(t,{replace:r,state:o,preventScrollReset:s,relative:i})}}),[c,l,d,a,o,n,t,s,i])}(u,{replace:i,state:c,target:d,preventScrollReset:p,relative:o});return e.createElement("a",rt({},f,{href:n||b,onClick:g||s?a:function(e){a&&a(e),e.defaultPrevented||w(e)},ref:r,target:d}))}));var ct,dt;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(ct||(ct={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(dt||(dt={}));var ut=a(143),mt=a(902);const pt=function(e,t=60){const r=e?.substr(0,t);return r?.length>=t?`${r}...`:r},ft=window.wp.i18n;var ht=a(67),gt=a.n(ht);const bt=window.wp.element,wt=({doc:t})=>{if(!t)return;const r=(0,ut.useSelect)((e=>e(mt.A).getLoading()),[]);return(0,e.createElement)("div",{className:"docs-heading flex justify-between items-center mb-3.5"},(0,e.createElement)("div",{className:"section-heading flex items-center"},(0,e.createElement)("h1",{className:"flex items-center font-medium text-[#111827] text-xl space-x-3 relative z-0"},r?(0,e.createElement)("div",{className:"flex items-center group space-x-4"},(0,e.createElement)("span",{className:"animate-pulse bg-[#94a3b8] rounded h-4 w-56 border-b hover:bg-gray-50"}),(0,e.createElement)("span",{className:"animate-pulse bg-[#cbd5e1] rounded h-4 w-6 border-b hover:bg-gray-50"}),(0,e.createElement)("span",{className:"animate-pulse bg-[#cbd5e1] rounded h-4 w-6 border-b hover:bg-gray-50"})):(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("a",{target:"_blank",rel:"noreferrer",href:`${weDocsAdminVars.adminUrl}post.php?post=${t?.id}&action=edit`,className:"flex tooltip cursor-pointer items-center group hover:text-black !shadow-none before:max-w-xl z-[90] mr-1","data-tip":gt()?.decode((0,ft.__)(t?.title?.rendered?t?.title?.rendered:"","wedocs"))},(0,e.createElement)("span",{className:"group-hover:underline mr-5",dangerouslySetInnerHTML:{__html:pt(t?.title?.rendered,75)}}),(0,e.createElement)("div",{className:"tooltip cursor-pointer flex items-center","data-tip":(0,ft.__)("Edit","wedocs")},(0,e.createElement)("svg",{width:"18",height:"18",fill:"none",className:"group",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M13.303 1.322a2.4 2.4 0 1 1 3.394 3.394l-.951.951-3.394-3.394.951-.951zm-2.648 2.649L.6 14.025v3.394h3.394L14.049 7.365l-3.394-3.394z",className:"stroke-gray-400 group-hover:stroke-indigo-700",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("a",{target:"_blank",rel:"noreferrer",className:"group tooltip cursor-pointer",href:t?.link,"data-tip":(0,ft.__)("View on Web","wedocs")},(0,e.createElement)("svg",{className:"stroke-gray-400 group-hover:stroke-indigo-700",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M7.118 3.5H3.452c-1.013 0-1.833.821-1.833 1.833V14.5c0 1.012.821 1.833 1.833 1.833h9.167c1.012 0 1.833-.821 1.833-1.833v-3.667m-3.667-9.167h5.5m0 0v5.5m0-5.5l-9.167 9.167",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),"draft"===t?.status&&(0,e.createElement)("div",{className:"docs-draft-status font-medium text-sm text-gray-800 leading-5 bg-[#E3E5E7] rounded-[42px] py-0.5 px-2.5 !ml-4"},(0,ft.__)("Draft","wedocs"))))))};function vt(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function xt(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xt),n}var yt,Et=((yt=Et||{})[yt.None=0]="None",yt[yt.RenderStrategy=1]="RenderStrategy",yt[yt.Static=2]="Static",yt),kt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(kt||{});function Nt({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:o=!0,name:s}){let i=At(t,e);if(o)return St(i,r,n,s);let l=null!=a?a:0;if(2&l){let{static:e=!1,...t}=i;if(e)return St(t,r,n,s)}if(1&l){let{unmount:e=!0,...t}=i;return xt(e?0:1,{0:()=>null,1:()=>St({...t,hidden:!0,style:{display:"none"}},r,n,s)})}return St(i,r,n,s)}function St(t,r={},n,a){let{as:o=n,children:s,refName:i="ref",...l}=It(t,["unmount","static"]),c=void 0!==t.ref?{[i]:t.ref}:{},d="function"==typeof s?s(r):s;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(r));let u={};if(r){let e=!1,t=[];for(let[n,a]of Object.entries(r))"boolean"==typeof a&&(e=!0),!0===a&&t.push(n);e&&(u["data-headlessui-state"]=t.join(" "))}if(o===e.Fragment&&Object.keys(Ct(l)).length>0){if(!(0,e.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let t=d.props,r="function"==typeof(null==t?void 0:t.className)?(...e)=>vt(null==t?void 0:t.className(...e),l.className):vt(null==t?void 0:t.className,l.className),n=r?{className:r}:{};return(0,e.cloneElement)(d,Object.assign({},At(d.props,Ct(It(l,["ref"]))),u,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(d.ref,c.ref),n))}return(0,e.createElement)(o,Object.assign({},It(l,["ref"]),o!==e.Fragment&&c,o!==e.Fragment&&u),d)}function At(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let a=r[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function Dt(t){var r;return Object.assign((0,e.forwardRef)(t),{displayName:null!=(r=t.displayName)?r:t.name})}function Ct(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function It(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}let Lt=(0,e.createContext)(null);Lt.displayName="OpenClosedContext";var Tt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Tt||{});function Mt(){return(0,e.useContext)(Lt)}function Rt({value:t,children:r}){return e.createElement(Lt.Provider,{value:t},r)}var _t=Object.defineProperty,Ot=(e,t,r)=>(((e,t,r)=>{t in e?_t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let Bt=new class{constructor(){Ot(this,"current",this.detect()),Ot(this,"handoffState","pending"),Ot(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Pt=(t,r)=>{Bt.isServer?(0,e.useEffect)(t,r):(0,e.useLayoutEffect)(t,r)};function jt(){let t=(0,e.useRef)(!1);return Pt((()=>(t.current=!0,()=>{t.current=!1})),[]),t}function zt(t){let r=(0,e.useRef)(t);return Pt((()=>{r.current=t}),[t]),r}function Ft(){let r=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in t&&t.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[n,a]=e.useState(Bt.isHandoffComplete);return n&&!1===Bt.isHandoffComplete&&a(!1),e.useEffect((()=>{!0!==n&&a(!0)}),[n]),e.useEffect((()=>Bt.handoff()),[]),!r&&n}let qt=function(t){let r=zt(t);return e.useCallback(((...e)=>r.current(...e)),[r])},Ht=Symbol();function Ut(...t){let r=(0,e.useRef)(t);(0,e.useEffect)((()=>{r.current=t}),[t]);let n=qt((e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return t.every((e=>null==e||(null==e?void 0:e[Ht])))?void 0:n}function Wt(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Vt(){let e=[],t={addEventListener:(e,r,n,a)=>(e.addEventListener(r,n,a),t.add((()=>e.removeEventListener(r,n,a)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return Wt((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:n})}))},group(e){let t=Vt();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Gt(e,...t){e&&t.length>0&&e.classList.add(...t)}function Zt(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Yt(){let[t]=(0,e.useState)(Vt);return(0,e.useEffect)((()=>()=>t.dispose()),[t]),t}function Jt({immediate:e,container:t,direction:r,classes:n,onStart:a,onStop:o}){let s=jt(),i=Yt(),l=zt(r);Pt((()=>{e&&(l.current="enter")}),[e]),Pt((()=>{let e=Vt();i.add(e.dispose);let r=t.current;if(r&&"idle"!==l.current&&s.current)return e.dispose(),a.current(l.current),e.add(function(e,t,r,n){let a=r?"enter":"leave",o=Vt(),s=void 0!==n?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(n):()=>{};"enter"===a&&(e.removeAttribute("hidden"),e.style.display="");let i=xt(a,{enter:()=>t.enter,leave:()=>t.leave}),l=xt(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=xt(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Zt(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Gt(e,...t.base,...i,...c),o.nextFrame((()=>{Zt(e,...t.base,...i,...c),Gt(e,...t.base,...i,...l),function(e,t){let r=Vt();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:a}=getComputedStyle(e),[o,s]=[n,a].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),i=o+s;if(0!==i){r.group((r=>{r.setTimeout((()=>{t(),r.dispose()}),i),r.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&r.dispose()}))}));let n=r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),n())}))}else t();r.add((()=>t())),r.dispose}(e,(()=>(Zt(e,...t.base,...i),Gt(e,...t.base,...t.entered),s())))})),o.dispose}(r,n.current,"enter"===l.current,(()=>{e.dispose(),o.current(l.current)}))),e.dispose}),[r])}function Qt(t=0){let[r,n]=(0,e.useState)(t),a=jt(),o=(0,e.useCallback)((e=>{a.current&&n((t=>t|e))}),[r,a]),s=(0,e.useCallback)((e=>Boolean(r&e)),[r]),i=(0,e.useCallback)((e=>{a.current&&n((t=>t&~e))}),[n,a]),l=(0,e.useCallback)((e=>{a.current&&n((t=>t^e))}),[n]);return{flags:r,addFlag:o,hasFlag:s,removeFlag:i,toggleFlag:l}}function Xt(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Kt=(0,e.createContext)(null);Kt.displayName="TransitionContext";var $t=(e=>(e.Visible="visible",e.Hidden="hidden",e))($t||{});let er=(0,e.createContext)(null);function tr(e){return"children"in e?tr(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function rr(t,r){let n=zt(t),a=(0,e.useRef)([]),o=jt(),s=Yt(),i=qt(((e,t=kt.Hidden)=>{let r=a.current.findIndex((({el:t})=>t===e));-1!==r&&(xt(t,{[kt.Unmount](){a.current.splice(r,1)},[kt.Hidden](){a.current[r].state="hidden"}}),s.microTask((()=>{var e;!tr(a)&&o.current&&(null==(e=n.current)||e.call(n))})))})),l=qt((e=>{let t=a.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):a.current.push({el:e,state:"visible"}),()=>i(e,kt.Unmount)})),c=(0,e.useRef)([]),d=(0,e.useRef)(Promise.resolve()),u=(0,e.useRef)({enter:[],leave:[],idle:[]}),m=qt(((e,t,n)=>{c.current.splice(0),r&&(r.chains.current[t]=r.chains.current[t].filter((([t])=>t!==e))),null==r||r.chains.current[t].push([e,new Promise((e=>{c.current.push(e)}))]),null==r||r.chains.current[t].push([e,new Promise((e=>{Promise.all(u.current[t].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===t?d.current=d.current.then((()=>null==r?void 0:r.wait.current)).then((()=>n(t))):n(t)})),p=qt(((e,t,r)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>r(t)))}));return(0,e.useMemo)((()=>({children:a,register:l,unregister:i,onStart:m,onStop:p,wait:d,chains:u})),[l,i,a,m,p,u,d])}function nr(){}er.displayName="NestingContext";let ar=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function or(e){var t;let r={};for(let n of ar)r[n]=null!=(t=e[n])?t:nr;return r}let sr=Et.RenderStrategy,ir=Dt((function(t,r){let{show:n,appear:a=!1,unmount:o=!0,...s}=t,i=(0,e.useRef)(null),l=Ut(i,r);Ft();let c=Mt();if(void 0===n&&null!==c&&(n=(c&Tt.Open)===Tt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,u]=(0,e.useState)(n?"visible":"hidden"),m=rr((()=>{u("hidden")})),[p,f]=(0,e.useState)(!0),h=(0,e.useRef)([n]);Pt((()=>{!1!==p&&h.current[h.current.length-1]!==n&&(h.current.push(n),f(!1))}),[h,n]);let g=(0,e.useMemo)((()=>({show:n,appear:a,initial:p})),[n,a,p]);(0,e.useEffect)((()=>{if(n)u("visible");else if(tr(m)){let e=i.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,m]);let b={unmount:o},w=qt((()=>{var e;p&&f(!1),null==(e=t.beforeEnter)||e.call(t)})),v=qt((()=>{var e;p&&f(!1),null==(e=t.beforeLeave)||e.call(t)}));return e.createElement(er.Provider,{value:m},e.createElement(Kt.Provider,{value:g},Nt({ourProps:{...b,as:e.Fragment,children:e.createElement(lr,{ref:l,...b,...s,beforeEnter:w,beforeLeave:v})},theirProps:{},defaultTag:e.Fragment,features:sr,visible:"visible"===d,name:"Transition"})))})),lr=Dt((function(t,r){var n,a;let{beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:l,enter:c,enterFrom:d,enterTo:u,entered:m,leave:p,leaveFrom:f,leaveTo:h,...g}=t,b=(0,e.useRef)(null),w=Ut(b,r),v=null==(n=g.unmount)||n?kt.Unmount:kt.Hidden,{show:x,appear:y,initial:E}=function(){let t=(0,e.useContext)(Kt);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),[k,N]=(0,e.useState)(x?"visible":"hidden"),S=function(){let t=(0,e.useContext)(er);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),{register:A,unregister:D}=S;(0,e.useEffect)((()=>A(b)),[A,b]),(0,e.useEffect)((()=>{if(v===kt.Hidden&&b.current)return x&&"visible"!==k?void N("visible"):xt(k,{hidden:()=>D(b),visible:()=>A(b)})}),[k,b,A,D,x,v]);let C=zt({base:Xt(g.className),enter:Xt(c),enterFrom:Xt(d),enterTo:Xt(u),entered:Xt(m),leave:Xt(p),leaveFrom:Xt(f),leaveTo:Xt(h)}),I=function(t){let r=(0,e.useRef)(or(t));return(0,e.useEffect)((()=>{r.current=or(t)}),[t]),r}({beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:l}),L=Ft();(0,e.useEffect)((()=>{if(L&&"visible"===k&&null===b.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[b,k,L]);let T=y&&x&&E,M=!L||E&&!y?"idle":x?"enter":"leave",R=Qt(0),_=qt((e=>xt(e,{enter:()=>{R.addFlag(Tt.Opening),I.current.beforeEnter()},leave:()=>{R.addFlag(Tt.Closing),I.current.beforeLeave()},idle:()=>{}}))),O=qt((e=>xt(e,{enter:()=>{R.removeFlag(Tt.Opening),I.current.afterEnter()},leave:()=>{R.removeFlag(Tt.Closing),I.current.afterLeave()},idle:()=>{}}))),B=rr((()=>{N("hidden"),D(b)}),S);Jt({immediate:T,container:b,classes:C,direction:M,onStart:zt((e=>{B.onStart(b,e,_)})),onStop:zt((e=>{B.onStop(b,e,O),"leave"===e&&!tr(B)&&(N("hidden"),D(b))}))});let P=g,j={ref:w};return T?P={...P,className:vt(g.className,...C.current.enter,...C.current.enterFrom)}:(P.className=vt(g.className,null==(a=b.current)?void 0:a.className),""===P.className&&delete P.className),e.createElement(er.Provider,{value:B},e.createElement(Rt,{value:xt(k,{visible:Tt.Open,hidden:Tt.Closed})|R.flags},Nt({ourProps:j,theirProps:P,defaultTag:"div",features:sr,visible:"visible"===k,name:"Transition.Child"})))})),cr=Dt((function(t,r){let n=null!==(0,e.useContext)(Kt),a=null!==Mt();return e.createElement(e.Fragment,null,!n&&a?e.createElement(ir,{ref:r,...t}):e.createElement(lr,{ref:r,...t}))})),dr=Object.assign(ir,{Child:cr,Root:ir});var ur,mr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(mr||{});function pr(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}let fr=null!=(ur=e.useId)?ur:function(){let t=Ft(),[r,n]=e.useState(t?()=>Bt.nextId():null);return Pt((()=>{null===r&&n(Bt.nextId())}),[r]),null!=r?""+r:void 0};var hr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(hr||{});let gr=Dt((function(e,t){let{features:r=1,...n}=e;return Nt({ourProps:{ref:t,"aria-hidden":!(2&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}},theirProps:n,slot:{},defaultTag:"div",name:"Hidden"})}));function br(e){return Bt.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let wr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var vr,xr,yr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(yr||{}),Er=((xr=Er||{})[xr.Error=0]="Error",xr[xr.Overflow=1]="Overflow",xr[xr.Success=2]="Success",xr[xr.Underflow=3]="Underflow",xr),kr=((vr=kr||{})[vr.Previous=-1]="Previous",vr[vr.Next=1]="Next",vr);var Nr=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Nr||{});function Sr(e,t=0){var r;return e!==(null==(r=br(e))?void 0:r.body)&&xt(t,{0:()=>e.matches(wr),1(){let t=e;for(;null!==t;){if(t.matches(wr))return!0;t=t.parentElement}return!1}})}var Ar=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ar||{});function Dr(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Cr=["textarea","input"].join(",");function Ir(e,t=e=>e){return e.slice().sort(((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let o=n.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Lr(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:a=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?r?Ir(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(wr)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);a.length>0&&s.length>1&&(s=s.filter((e=>!a.includes(e)))),n=null!=n?n:o.activeElement;let i,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(n))-1;if(4&t)return Math.max(0,s.indexOf(n))+1;if(8&t)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=32&t?{preventScroll:!0}:{},u=0,m=s.length;do{if(u>=m||u+m<=0)return 0;let e=c+u;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}i=s[e],null==i||i.focus(d),u+=l}while(i!==o.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Cr))&&r}(i)&&i.select(),2}function Tr(t,r,n){let a=zt(r);(0,e.useEffect)((()=>{function e(e){a.current(e)}return window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)}),[t,n])}var Mr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Mr||{});function Rr(...t){return(0,e.useMemo)((()=>br(...t)),[...t])}function _r(t,r,n,a){let o=zt(n);(0,e.useEffect)((()=>{function e(e){o.current(e)}return(t=null!=t?t:window).addEventListener(r,e,a),()=>t.removeEventListener(r,e,a)}),[t,r,a])}function Or(t,r){let n=(0,e.useRef)([]),a=qt(t);(0,e.useEffect)((()=>{let e=[...n.current];for(let[t,o]of r.entries())if(n.current[t]!==o){let t=a(r,e);return n.current=r,t}}),[a,...r])}function Br(t){let r=qt(t),n=(0,e.useRef)(!1);(0,e.useEffect)((()=>(n.current=!1,()=>{n.current=!0,Wt((()=>{n.current&&r()}))})),[r])}function Pr(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var jr=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(jr||{});let zr=Dt((function(t,r){let n=(0,e.useRef)(null),a=Ut(n,r),{initialFocus:o,containers:s,features:i=30,...l}=t;Ft()||(i=1);let c=Rr(n);!function({ownerDocument:t},r){let n=function(t=!0){let r=(0,e.useRef)(qr.slice());return Or((([e],[t])=>{!0===t&&!1===e&&Wt((()=>{r.current.splice(0)})),!1===t&&!0===e&&(r.current=qr.slice())}),[t,qr,r]),qt((()=>{var e;return null!=(e=r.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(r);Or((()=>{r||(null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&Dr(n())}),[r]),Br((()=>{r&&Dr(n())}))}({ownerDocument:c},Boolean(16&i));let d=function({ownerDocument:t,container:r,initialFocus:n},a){let o=(0,e.useRef)(null),s=jt();return Or((()=>{if(!a)return;let e=r.current;e&&Wt((()=>{if(!s.current)return;let r=null==t?void 0:t.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===r)return void(o.current=r)}else if(e.contains(r))return void(o.current=r);null!=n&&n.current?Dr(n.current):Lr(e,yr.First)===Er.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==t?void 0:t.activeElement}))}),[a]),o}({ownerDocument:c,container:n,initialFocus:o},Boolean(2&i));!function({ownerDocument:e,container:t,containers:r,previousActiveElement:n},a){let o=jt();_r(null==e?void 0:e.defaultView,"focus",(e=>{if(!a||!o.current)return;let s=Pr(r);t.current instanceof HTMLElement&&s.add(t.current);let i=n.current;if(!i)return;let l=e.target;l&&l instanceof HTMLElement?Hr(s,l)?(n.current=l,Dr(l)):(e.preventDefault(),e.stopPropagation(),Dr(i)):Dr(n.current)}),!0)}({ownerDocument:c,container:n,containers:s,previousActiveElement:d},Boolean(8&i));let u=function(){let t=(0,e.useRef)(0);return Tr("keydown",(e=>{"Tab"===e.key&&(t.current=e.shiftKey?1:0)}),!0),t}(),m=qt((e=>{let t=n.current;t&&xt(u.current,{[Mr.Forwards]:()=>{Lr(t,yr.First,{skipElements:[e.relatedTarget]})},[Mr.Backwards]:()=>{Lr(t,yr.Last,{skipElements:[e.relatedTarget]})}})})),p=Yt(),f=(0,e.useRef)(!1),h={ref:a,onKeyDown(e){"Tab"==e.key&&(f.current=!0,p.requestAnimationFrame((()=>{f.current=!1})))},onBlur(e){let t=Pr(s);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(Hr(t,r)||(f.current?Lr(n.current,xt(u.current,{[Mr.Forwards]:()=>yr.Next,[Mr.Backwards]:()=>yr.Previous})|yr.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Dr(e.target)))}};return e.createElement(e.Fragment,null,Boolean(4&i)&&e.createElement(gr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:hr.Focusable}),Nt({ourProps:h,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&i)&&e.createElement(gr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:hr.Focusable}))})),Fr=Object.assign(zr,{features:jr}),qr=[];function Hr(e,t){for(let r of e)if(r.contains(t))return!0;return!1}!function(){function e(){"loading"!==document.readyState&&((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&qr[0]!==e.target&&(qr.unshift(e.target),qr=qr.filter((e=>null!=e&&e.isConnected)),qr.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}();const Ur=window.ReactDOM;let Wr=(0,e.createContext)(!1);function Vr(){return(0,e.useContext)(Wr)}function Gr(t){return e.createElement(Wr.Provider,{value:t.force},t.children)}let Zr=e.Fragment,Yr=e.Fragment,Jr=(0,e.createContext)(null),Qr=(0,e.createContext)(null),Xr=Dt((function(t,r){let n=t,a=(0,e.useRef)(null),o=Ut(function(e,t=!0){return Object.assign(e,{[Ht]:t})}((e=>{a.current=e})),r),s=Rr(a),i=function(t){let r=Vr(),n=(0,e.useContext)(Jr),a=Rr(t),[o,s]=(0,e.useState)((()=>{if(!r&&null!==n||Bt.isServer)return null;let e=null==a?void 0:a.getElementById("headlessui-portal-root");if(e)return e;if(null===a)return null;let t=a.createElement("div");return t.setAttribute("id","headlessui-portal-root"),a.body.appendChild(t)}));return(0,e.useEffect)((()=>{null!==o&&(null!=a&&a.body.contains(o)||null==a||a.body.appendChild(o))}),[o,a]),(0,e.useEffect)((()=>{r||null!==n&&s(n.current)}),[n,s,r]),o}(a),[l]=(0,e.useState)((()=>{var e;return Bt.isServer?null:null!=(e=null==s?void 0:s.createElement("div"))?e:null})),c=(0,e.useContext)(Qr),d=Ft();return Pt((()=>{!i||!l||i.contains(l)||(l.setAttribute("data-headlessui-portal",""),i.appendChild(l))}),[i,l]),Pt((()=>{if(l&&c)return c.register(l)}),[c,l]),Br((()=>{var e;!i||!l||(l instanceof Node&&i.contains(l)&&i.removeChild(l),i.childNodes.length<=0&&(null==(e=i.parentElement)||e.removeChild(i)))})),d&&i&&l?(0,Ur.createPortal)(Nt({ourProps:{ref:o},theirProps:n,defaultTag:Zr,name:"Portal"}),l):null})),Kr=Dt((function(t,r){let{target:n,...a}=t,o={ref:Ut(r)};return e.createElement(Jr.Provider,{value:n},Nt({ourProps:o,theirProps:a,defaultTag:Yr,name:"Popover.Group"}))})),$r=Object.assign(Xr,{Group:Kr}),en=(0,e.createContext)(null);function tn(){let t=(0,e.useContext)(en);if(null===t){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,tn),e}return t}function rn(){let[t,r]=(0,e.useState)([]);return[t.length>0?t.join(" "):void 0,(0,e.useMemo)((()=>function(t){let n=qt((e=>(r((t=>[...t,e])),()=>r((t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))))),a=(0,e.useMemo)((()=>({register:n,slot:t.slot,name:t.name,props:t.props})),[n,t.slot,t.name,t.props]);return e.createElement(en.Provider,{value:a},t.children)}),[r])]}let nn=Dt((function(e,t){let r=fr(),{id:n=`headlessui-description-${r}`,...a}=e,o=tn(),s=Ut(t);return Pt((()=>o.register(n)),[n,o.register]),Nt({ourProps:{ref:s,...o.props,id:n},theirProps:a,slot:o.slot||{},defaultTag:"p",name:o.name||"Description"})})),an=Object.assign(nn,{}),on=(0,e.createContext)((()=>{}));on.displayName="StackContext";var sn=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(sn||{});function ln({children:t,onUpdate:r,type:n,element:a,enabled:o}){let s=(0,e.useContext)(on),i=qt(((...e)=>{null==r||r(...e),s(...e)}));return Pt((()=>{let e=void 0===o||!0===o;return e&&i(0,n,a),()=>{e&&i(1,n,a)}}),[i,n,a,o]),e.createElement(on.Provider,{value:i},t)}function cn(t,r,n){let a=zt(r);(0,e.useEffect)((()=>{function e(e){a.current(e)}return document.addEventListener(t,e,n),()=>document.removeEventListener(t,e,n)}),[t,n])}function dn(t,r,n=!0){let a=(0,e.useRef)(!1);function o(e,n){if(!a.current||e.defaultPrevented)return;let o=n(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of s){if(null===t)continue;let r=t instanceof HTMLElement?t:t.current;if(null!=r&&r.contains(o)||e.composed&&e.composedPath().includes(r))return}return!Sr(o,Nr.Loose)&&-1!==o.tabIndex&&e.preventDefault(),r(e,o)}(0,e.useEffect)((()=>{requestAnimationFrame((()=>{a.current=n}))}),[n]);let s=(0,e.useRef)(null);cn("pointerdown",(e=>{var t,r;a.current&&(s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),cn("mousedown",(e=>{var t,r;a.current&&(s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),cn("click",(e=>{s.current&&(o(e,(()=>s.current)),s.current=null)}),!0),cn("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),Tr("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}const un="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:mn,useEffect:pn,useLayoutEffect:fn,useDebugValue:hn}=t;function gn(e){const t=e.getSnapshot,r=e.value;try{const e=t();return!un(r,e)}catch{return!0}}const bn="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,r){return t()}:function(e,t,r){const n=t(),[{inst:a},o]=mn({inst:{value:n,getSnapshot:t}});return fn((()=>{a.value=n,a.getSnapshot=t,gn(a)&&o({inst:a})}),[e,n,t]),pn((()=>(gn(a)&&o({inst:a}),e((()=>{gn(a)&&o({inst:a})})))),[e]),hn(n),n},wn="useSyncExternalStore"in t?(e=>e.useSyncExternalStore)(t):bn;function vn(){let e;return{before({doc:t}){var r;let n=t.documentElement;e=(null!=(r=t.defaultView)?r:window).innerWidth-n.clientWidth},after({doc:t,d:r}){let n=t.documentElement,a=n.clientWidth-n.offsetWidth,o=e-a;r.style(n,"paddingRight",`${o}px`)}}}function xn(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function yn(){if(!xn())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:r,meta:n}){function a(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}r.microTask((()=>{if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=Vt();e.style(t.documentElement,"scroll-behavior","auto"),r.add((()=>r.microTask((()=>e.dispose()))))}r.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let n=null;r.addEventListener(t,"click",(e=>{if(e.target instanceof HTMLElement)try{let r=e.target.closest("a");if(!r)return;let{hash:o}=new URL(r.href),s=t.querySelector(o);s&&!a(s)&&(n=s)}catch{}}),!0),r.addEventListener(t,"touchmove",(e=>{e.target instanceof HTMLElement&&!a(e.target)&&e.preventDefault()}),{passive:!1}),r.add((()=>{window.scrollTo(0,window.pageYOffset+e),n&&n.isConnected&&(n.scrollIntoView({block:"nearest"}),n=null)}))}))}}}function En(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let kn=function(e,t){let r=new Map,n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...a){let o=t[e].call(r,...a);o&&(r=o,n.forEach((e=>e())))}}}(0,{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:Vt(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:En(r)},a=[yn(),vn(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];a.forEach((({before:e})=>null==e?void 0:e(n))),a.forEach((({after:e})=>null==e?void 0:e(n)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});kn.subscribe((()=>{let e=kn.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&kn.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&kn.dispatch("TEARDOWN",r)}}));let Nn=new Map,Sn=new Map;function An(e,t=!0){Pt((()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let a=null!=(r=Sn.get(n))?r:0;return Sn.set(n,a+1),0!==a||(Nn.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=Sn.get(n))?e:1;if(1===t?Sn.delete(n):Sn.set(n,t-1),1!==t)return;let r=Nn.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,Nn.delete(n))}}),[e,t])}var Dn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Dn||{}),Cn=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Cn||{});let In={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Ln=(0,e.createContext)(null);function Tn(t){let r=(0,e.useContext)(Ln);if(null===r){let e=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Tn),e}return r}function Mn(e,t){return xt(t.type,In,e,t)}Ln.displayName="DialogContext";let Rn=Et.RenderStrategy|Et.Static,On=Dt((function(t,r){var n;let a=fr(),{id:o=`headlessui-dialog-${a}`,open:s,onClose:i,initialFocus:l,__demoMode:c=!1,...d}=t,[u,m]=(0,e.useState)(0),p=Mt();void 0===s&&null!==p&&(s=(p&Tt.Open)===Tt.Open);let f=(0,e.useRef)(null),h=Ut(f,r),g=Rr(f),b=t.hasOwnProperty("open")||null!==p,w=t.hasOwnProperty("onClose");if(!b&&!w)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!b)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!w)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof s)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);if("function"!=typeof i)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let v=s?0:1,[x,y]=(0,e.useReducer)(Mn,{titleId:null,descriptionId:null,panelRef:(0,e.createRef)()}),E=qt((()=>i(!1))),k=qt((e=>y({type:0,id:e}))),N=!!Ft()&&!c&&0===v,S=u>1,A=null!==(0,e.useContext)(Ln),[D,C]=function(){let t=(0,e.useContext)(Qr),r=(0,e.useRef)([]),n=qt((e=>(r.current.push(e),t&&t.register(e),()=>a(e)))),a=qt((e=>{let n=r.current.indexOf(e);-1!==n&&r.current.splice(n,1),t&&t.unregister(e)})),o=(0,e.useMemo)((()=>({register:n,unregister:a,portals:r})),[n,a,r]);return[r,(0,e.useMemo)((()=>function({children:t}){return e.createElement(Qr.Provider,{value:o},t)}),[o])]}(),{resolveContainers:I,mainTreeNodeRef:L,MainTreeNode:T}=function({defaultContainers:t=[],portals:r,mainTreeNodeRef:n}={}){var a;let o=(0,e.useRef)(null!=(a=null==n?void 0:n.current)?a:null),s=Rr(o),i=qt((()=>{var e;let n=[];for(let e of t)null!==e&&(e instanceof HTMLElement?n.push(e):"current"in e&&e.current instanceof HTMLElement&&n.push(e.current));if(null!=r&&r.current)for(let e of r.current)n.push(e);for(let t of null!=(e=null==s?void 0:s.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(o.current)||n.some((e=>t.contains(e)))||n.push(t));return n}));return{resolveContainers:i,contains:qt((e=>i().some((t=>t.contains(e))))),mainTreeNodeRef:o,MainTreeNode:(0,e.useMemo)((()=>function(){return null!=n?null:e.createElement(gr,{features:hr.Hidden,ref:o})}),[o,n])}}({portals:D,defaultContainers:[null!=(n=x.panelRef.current)?n:f.current]}),M=S?"parent":"leaf",R=null!==p&&(p&Tt.Closing)===Tt.Closing,_=!A&&!R&&N,O=(0,e.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==g?void 0:g.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&e.contains(L.current)&&e instanceof HTMLElement)))?t:null}),[L]);An(O,_);let B=!!S||N,P=(0,e.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==g?void 0:g.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(L.current)&&e instanceof HTMLElement)))?t:null}),[L]);An(P,B),dn(I,E,!(!N||S));let j=!(S||0!==v);_r(null==g?void 0:g.defaultView,"keydown",(e=>{j&&(e.defaultPrevented||e.key===mr.Escape&&(e.preventDefault(),e.stopPropagation(),E()))})),function(e,t,r=()=>[document.body]){!function(e,t,r){let n=function(e){return wn(e.subscribe,e.getSnapshot,e.getSnapshot)}(kn),a=e?n.get(e):void 0,o=!!a&&a.count>0;Pt((()=>{if(e&&t)return kn.dispatch("PUSH",e,r),()=>kn.dispatch("POP",e,r)}),[t,e])}(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}(g,!(R||0!==v||A),I),(0,e.useEffect)((()=>{if(0!==v||!f.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&E()}}));return e.observe(f.current),()=>e.disconnect()}),[v,f,E]);let[z,F]=rn(),q=(0,e.useMemo)((()=>[{dialogState:v,close:E,setTitleId:k},x]),[v,x,E,k]),H=(0,e.useMemo)((()=>({open:0===v})),[v]),U={ref:h,id:o,role:"dialog","aria-modal":0===v||void 0,"aria-labelledby":x.titleId,"aria-describedby":z};return e.createElement(ln,{type:"Dialog",enabled:0===v,element:f,onUpdate:qt(((e,t)=>{"Dialog"===t&&xt(e,{[sn.Add]:()=>m((e=>e+1)),[sn.Remove]:()=>m((e=>e-1))})}))},e.createElement(Gr,{force:!0},e.createElement($r,null,e.createElement(Ln.Provider,{value:q},e.createElement($r.Group,{target:f},e.createElement(Gr,{force:!1},e.createElement(F,{slot:H,name:"Dialog.Description"},e.createElement(Fr,{initialFocus:l,containers:I,features:N?xt(M,{parent:Fr.features.RestoreFocus,leaf:Fr.features.All&~Fr.features.FocusLock}):Fr.features.None},e.createElement(C,null,Nt({ourProps:U,theirProps:d,slot:H,defaultTag:"div",features:Rn,visible:0===v,name:"Dialog"}))))))))),e.createElement(T,null))})),Bn=Dt((function(t,r){let n=fr(),{id:a=`headlessui-dialog-backdrop-${n}`,...o}=t,[{dialogState:s},i]=Tn("Dialog.Backdrop"),l=Ut(r);(0,e.useEffect)((()=>{if(null===i.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[i.panelRef]);let c=(0,e.useMemo)((()=>({open:0===s})),[s]);return e.createElement(Gr,{force:!0},e.createElement($r,null,Nt({ourProps:{ref:l,id:a,"aria-hidden":!0},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),Pn=Dt((function(t,r){let n=fr(),{id:a=`headlessui-dialog-panel-${n}`,...o}=t,[{dialogState:s},i]=Tn("Dialog.Panel"),l=Ut(r,i.panelRef),c=(0,e.useMemo)((()=>({open:0===s})),[s]);return Nt({ourProps:{ref:l,id:a,onClick:qt((e=>{e.stopPropagation()}))},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),jn=Dt((function(t,r){let n=fr(),{id:a=`headlessui-dialog-overlay-${n}`,...o}=t,[{dialogState:s,close:i}]=Tn("Dialog.Overlay");return Nt({ourProps:{ref:Ut(r),id:a,"aria-hidden":!0,onClick:qt((e=>{if(e.target===e.currentTarget){if(pr(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),i()}}))},theirProps:o,slot:(0,e.useMemo)((()=>({open:0===s})),[s]),defaultTag:"div",name:"Dialog.Overlay"})})),zn=Dt((function(t,r){let n=fr(),{id:a=`headlessui-dialog-title-${n}`,...o}=t,[{dialogState:s,setTitleId:i}]=Tn("Dialog.Title"),l=Ut(r);(0,e.useEffect)((()=>(i(a),()=>i(null))),[a,i]);let c=(0,e.useMemo)((()=>({open:0===s})),[s]);return Nt({ourProps:{ref:l,id:a},theirProps:o,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),Fn=Object.assign(On,{Backdrop:Bn,Panel:Pn,Overlay:jn,Title:zn,Description:an});var qn=a(465),Hn=a.n(qn);const Un=({classes:t,children:r,docId:n,type:a})=>{const[o,s]=(0,bt.useState)(!1),[i,l]=(0,bt.useState)(!1);return(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("button",{onClick:()=>{s(!0)},className:t},r),(0,e.createElement)(dr,{appear:!0,show:o,as:bt.Fragment},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:()=>s(!1)},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25 z-[50]"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto z-[100]"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-[512px] transform overflow-hidden rounded-2xl bg-white py-6 px-9 align-middle shadow-xl transition-all"},(0,e.createElement)("div",{className:"sm:flex sm:items-start"},(0,e.createElement)("div",{className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"18",fill:"none",className:"text-red-600"},(0,e.createElement)("path",{d:"M10 7v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L11.732 2C10.962.667 9.037.667 8.268 2L1.339 14c-.77 1.333.192 3 1.732 3z",stroke:"#dc2626",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,e.createElement)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},(0,e.createElement)(Fn.Title,{as:"h3",className:"text-lg font-medium text-gray-900 mb-2"},(0,ft.__)("Are you sure you want to delete this ","wedocs")+a+"?"),(0,e.createElement)("p",{className:"text-gray-500 text-base"},(0,ft.__)("Deleting it means it will be permanently lost, and you won't be able to retrieve it again.","wedocs")),(0,e.createElement)("div",{className:"mt-6 space-x-3.5 text-right"},(0,e.createElement)("button",{className:"bg-white hover:bg-gray-200 text-gray-700 font-medium text-base py-2 px-5 border border-gray-300 rounded-md",onClick:()=>s(!1)},(0,ft.__)("Cancel","wedocs")),(0,e.createElement)("button",{className:"bg-red-600 hover:bg-red-700 text-white font-medium text-base py-2 px-5 rounded-md",onClick:()=>{const e=a.charAt(0).toUpperCase()+a.slice(1);l(!0),(0,ut.dispatch)("wedocs/docs").deleteDoc(n).then((t=>{Hn().fire({title:e+(0,ft.__)(" deleted!","wedocs"),text:e+(0,ft.__)(" has been deleted successfully","wedocs"),icon:"success",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:2e3,customClass:{container:"!z-[9999]"}}),s(!1)})).catch((e=>{Hn().fire({title:(0,ft.__)("Error","wedocs"),text:e.message,icon:"error",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:3e3,customClass:{container:"!z-[9999]"}})})).finally((()=>l(!1)))},disabled:i},i?(0,ft.__)("Removing...","wedocs"):(0,ft.__)("I'm sure","wedocs"))))))))))))},Wn=e.forwardRef((function({title:t,titleId:r,...n},a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":r},n),t?e.createElement("title",{id:r},t):null,e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))})),Vn=e.forwardRef((function({title:t,titleId:r,...n},a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":r},n),t?e.createElement("title",{id:r},t):null,e.createElement("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z",clipRule:"evenodd"}))})),Gn=e.forwardRef((function({title:t,titleId:r,...n},a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":r},n),t?e.createElement("title",{id:r},t):null,e.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))}));function Zn(t,r){let[n,a]=(0,e.useState)(t),o=zt(t);return Pt((()=>a(o.current)),[o,a,...r]),n}function Yn(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function Jn(t,r){let[n,a]=(0,e.useState)((()=>Yn(t)));return Pt((()=>{a(Yn(t))}),[t.type,t.as]),Pt((()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&a("button")}),[n,r]),n}function Qn({container:t,accept:r,walk:n,enabled:a=!0}){let o=(0,e.useRef)(r),s=(0,e.useRef)(n);(0,e.useEffect)((()=>{o.current=r,s.current=n}),[r,n]),Pt((()=>{if(!t||!a)return;let e=br(t);if(!e)return;let r=o.current,n=s.current,i=Object.assign((e=>r(e)),{acceptNode:r}),l=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)n(l.currentNode)}),[t,a,o,s])}var Xn=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Xn||{});function Kn(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1,o=(()=>{switch(e.focus){case 0:return r.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=r.slice().reverse().findIndex(((e,r,n)=>!(-1!==a&&n.length-r-1>=a||t.resolveDisabled(e))));return-1===e?e:r.length-1-e}case 2:return r.findIndex(((e,r)=>!(r<=a||t.resolveDisabled(e))));case 3:{let e=r.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:r.length-1-e}case 4:return r.findIndex((r=>t.resolveId(r)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===o?n:o}function $n(e={},t=null,r=[]){for(let[n,a]of Object.entries(e))ta(r,ea(t,n),a);return r}function ea(e,t){return e?e+"["+t+"]":t}function ta(e,t,r){if(Array.isArray(r))for(let[n,a]of r.entries())ta(e,ea(t,n.toString()),a);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):$n(r,t,e)}function ra(e){var t,r;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n){for(let t of n.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(r=n.requestSubmit)||r.call(n)}}function na(t,r,n){let[a,o]=(0,e.useState)(n),s=void 0!==t,i=(0,e.useRef)(s),l=(0,e.useRef)(!1),c=(0,e.useRef)(!1);return!s||i.current||l.current?!s&&i.current&&!c.current&&(c.current=!0,i.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,i.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?t:a,qt((e=>(s||o(e),null==r?void 0:r(e))))]}function aa(e){return[e.screenX,e.screenY]}function oa(){let t=(0,e.useRef)([-1,-1]);return{wasMoved(e){let r=aa(e);return(t.current[0]!==r[0]||t.current[1]!==r[1])&&(t.current=r,!0)},update(e){t.current=aa(e)}}}var sa=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(sa||{}),ia=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ia||{}),la=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(la||{}),ca=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(ca||{});function da(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=Ir(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),a=r?n.indexOf(r):null;return-1===a&&(a=null),{options:n,activeOptionIndex:a}}let ua={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;let r=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:t}=e.dataRef.current,n=e.options.findIndex((e=>t(e.dataRef.current.value)));-1!==n&&(r=n)}return{...e,comboboxState:0,activeOptionIndex:r}},2(e,t){var r,n,a,o;if(null!=(r=e.dataRef.current)&&r.disabled||null!=(n=e.dataRef.current)&&n.optionsRef.current&&(null==(a=e.dataRef.current)||!a.optionsPropsRef.current.static)&&1===e.comboboxState)return e;let s=da(e);if(null===s.activeOptionIndex){let e=s.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(s.activeOptionIndex=e)}let i=Kn(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...s,activeOptionIndex:i,activationTrigger:null!=(o=t.trigger)?o:1}},3:(e,t)=>{var r,n;let a={id:t.id,dataRef:t.dataRef},o=da(e,(e=>[...e,a]));null===e.activeOptionIndex&&null!=(r=e.dataRef.current)&&r.isSelected(t.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(a));let s={...e,...o,activationTrigger:1};return null!=(n=e.dataRef.current)&&n.__demoMode&&void 0===e.dataRef.current.value&&(s.activeOptionIndex=0),s},4:(e,t)=>{let r=da(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},ma=(0,e.createContext)(null);function pa(t){let r=(0,e.useContext)(ma);if(null===r){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,pa),e}return r}ma.displayName="ComboboxActionsContext";let fa=(0,e.createContext)(null);function ha(t){let r=(0,e.useContext)(fa);if(null===r){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,ha),e}return r}function ga(e,t){return xt(t.type,ua,e,t)}fa.displayName="ComboboxDataContext";let ba=e.Fragment,wa=Et.RenderStrategy|Et.Static,va=Dt((function(t,r){let{value:n,defaultValue:a,onChange:o,form:s,name:i,by:l=(e,t)=>e===t,disabled:c=!1,__demoMode:d=!1,nullable:u=!1,multiple:m=!1,...p}=t,[f=(m?[]:void 0),h]=na(n,o,a),[g,b]=(0,e.useReducer)(ga,{dataRef:(0,e.createRef)(),comboboxState:d?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),w=(0,e.useRef)(!1),v=(0,e.useRef)({static:!1,hold:!1}),x=(0,e.useRef)(null),y=(0,e.useRef)(null),E=(0,e.useRef)(null),k=(0,e.useRef)(null),N=qt("string"==typeof l?(e,t)=>{let r=l;return(null==e?void 0:e[r])===(null==t?void 0:t[r])}:l),S=(0,e.useCallback)((e=>xt(A.mode,{1:()=>f.some((t=>N(t,e))),0:()=>N(f,e)})),[f]),A=(0,e.useMemo)((()=>({...g,optionsPropsRef:v,labelRef:x,inputRef:y,buttonRef:E,optionsRef:k,value:f,defaultValue:a,disabled:c,mode:m?1:0,get activeOptionIndex(){if(w.current&&null===g.activeOptionIndex&&g.options.length>0){let e=g.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return g.activeOptionIndex},compare:N,isSelected:S,nullable:u,__demoMode:d})),[f,a,c,m,u,d,g]),D=(0,e.useRef)(null!==A.activeOptionIndex?A.options[A.activeOptionIndex]:null);(0,e.useEffect)((()=>{let e=null!==A.activeOptionIndex?A.options[A.activeOptionIndex]:null;D.current!==e&&(D.current=e)})),Pt((()=>{g.dataRef.current=A}),[A]),dn([A.buttonRef,A.inputRef,A.optionsRef],(()=>P.closeCombobox()),0===A.comboboxState);let C=(0,e.useMemo)((()=>({open:0===A.comboboxState,disabled:c,activeIndex:A.activeOptionIndex,activeOption:null===A.activeOptionIndex?null:A.options[A.activeOptionIndex].dataRef.current.value,value:f})),[A,c,f]),I=qt((e=>{let t=A.options.find((t=>t.id===e));t&&B(t.dataRef.current.value)})),L=qt((()=>{if(null!==A.activeOptionIndex){let{dataRef:e,id:t}=A.options[A.activeOptionIndex];B(e.current.value),P.goToOption(Xn.Specific,t)}})),T=qt((()=>{b({type:0}),w.current=!0})),M=qt((()=>{b({type:1}),w.current=!1})),R=qt(((e,t,r)=>(w.current=!1,e===Xn.Specific?b({type:2,focus:Xn.Specific,id:t,trigger:r}):b({type:2,focus:e,trigger:r})))),_=qt(((e,t)=>(b({type:3,id:e,dataRef:t}),()=>{var t;(null==(t=D.current)?void 0:t.id)===e&&(w.current=!0),b({type:4,id:e})}))),O=qt((e=>(b({type:5,id:e}),()=>b({type:5,id:null})))),B=qt((e=>xt(A.mode,{0:()=>null==h?void 0:h(e),1(){let t=A.value.slice(),r=t.findIndex((t=>N(t,e)));return-1===r?t.push(e):t.splice(r,1),null==h?void 0:h(t)}}))),P=(0,e.useMemo)((()=>({onChange:B,registerOption:_,registerLabel:O,goToOption:R,closeCombobox:M,openCombobox:T,selectActiveOption:L,selectOption:I})),[]),j=null===r?{}:{ref:r},z=(0,e.useRef)(null),F=Yt();return(0,e.useEffect)((()=>{z.current&&void 0!==a&&F.addEventListener(z.current,"reset",(()=>{null==h||h(a)}))}),[z,h]),e.createElement(ma.Provider,{value:P},e.createElement(fa.Provider,{value:A},e.createElement(Rt,{value:xt(A.comboboxState,{0:Tt.Open,1:Tt.Closed})},null!=i&&null!=f&&$n({[i]:f}).map((([t,r],n)=>e.createElement(gr,{features:hr.Hidden,ref:0===n?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ct({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:s,name:t,value:r})}))),Nt({ourProps:j,theirProps:p,slot:C,defaultTag:ba,name:"Combobox"}))))})),xa=Dt((function(t,r){var n;let a=ha("Combobox.Button"),o=pa("Combobox.Button"),s=Ut(a.buttonRef,r),i=fr(),{id:l=`headlessui-combobox-button-${i}`,...c}=t,d=Yt(),u=qt((e=>{switch(e.key){case mr.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&o.openCombobox(),d.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case mr.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&(o.openCombobox(),d.nextFrame((()=>{a.value||o.goToOption(Xn.Last)}))),d.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case mr.Escape:return 0!==a.comboboxState?void 0:(e.preventDefault(),a.optionsRef.current&&!a.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),d.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),m=qt((e=>{if(pr(e.currentTarget))return e.preventDefault();0===a.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),d.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),p=Zn((()=>{if(a.labelId)return[a.labelId,l].join(" ")}),[a.labelId,l]),f=(0,e.useMemo)((()=>({open:0===a.comboboxState,disabled:a.disabled,value:a.value})),[a]);return Nt({ourProps:{ref:s,id:l,type:Jn(t,a.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":0===a.comboboxState,"aria-labelledby":p,disabled:a.disabled,onClick:m,onKeyDown:u},theirProps:c,slot:f,defaultTag:"button",name:"Combobox.Button"})})),ya=Dt((function(t,r){var n,a,o,s;let i=fr(),{id:l=`headlessui-combobox-input-${i}`,onChange:c,displayValue:d,type:u="text",...m}=t,p=ha("Combobox.Input"),f=pa("Combobox.Input"),h=Ut(p.inputRef,r),g=Rr(p.inputRef),b=(0,e.useRef)(!1),w=Yt(),v=qt((()=>{f.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),f.goToOption(Xn.Nothing)}));var x;Or((([e,t],[r,n])=>{if(b.current)return;let a=p.inputRef.current;a&&((0===n&&1===t||e!==r)&&(a.value=e),requestAnimationFrame((()=>{if(b.current||!a||(null==g?void 0:g.activeElement)!==a)return;let{selectionStart:e,selectionEnd:t}=a;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&a.setSelectionRange(a.value.length,a.value.length)})))}),["function"==typeof d&&void 0!==p.value?null!=(x=d(p.value))?x:"":"string"==typeof p.value?p.value:"",p.comboboxState,g]),Or((([e],[t])=>{if(0===e&&1===t){if(b.current)return;let e=p.inputRef.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:n,selectionDirection:a}=e;e.value="",e.value=t,null!==a?e.setSelectionRange(r,n,a):e.setSelectionRange(r,n)}}),[p.comboboxState]);let y=(0,e.useRef)(!1),E=qt((()=>{y.current=!0})),k=qt((()=>{w.nextFrame((()=>{y.current=!1}))})),N=qt((e=>{switch(b.current=!0,e.key){case mr.Enter:if(b.current=!1,0!==p.comboboxState||y.current)return;if(e.preventDefault(),e.stopPropagation(),null===p.activeOptionIndex)return void f.closeCombobox();f.selectActiveOption(),0===p.mode&&f.closeCombobox();break;case mr.ArrowDown:return b.current=!1,e.preventDefault(),e.stopPropagation(),xt(p.comboboxState,{0:()=>{f.goToOption(Xn.Next)},1:()=>{f.openCombobox()}});case mr.ArrowUp:return b.current=!1,e.preventDefault(),e.stopPropagation(),xt(p.comboboxState,{0:()=>{f.goToOption(Xn.Previous)},1:()=>{f.openCombobox(),w.nextFrame((()=>{p.value||f.goToOption(Xn.Last)}))}});case mr.Home:if(e.shiftKey)break;return b.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(Xn.First);case mr.PageUp:return b.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(Xn.First);case mr.End:if(e.shiftKey)break;return b.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(Xn.Last);case mr.PageDown:return b.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(Xn.Last);case mr.Escape:return b.current=!1,0!==p.comboboxState?void 0:(e.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&e.stopPropagation(),p.nullable&&0===p.mode&&null===p.value&&v(),f.closeCombobox());case mr.Tab:if(b.current=!1,0!==p.comboboxState)return;0===p.mode&&f.selectActiveOption(),f.closeCombobox()}})),S=qt((e=>{null==c||c(e),p.nullable&&0===p.mode&&""===e.target.value&&v(),f.openCombobox()})),A=qt((()=>{b.current=!1})),D=Zn((()=>{if(p.labelId)return[p.labelId].join(" ")}),[p.labelId]),C=(0,e.useMemo)((()=>({open:0===p.comboboxState,disabled:p.disabled})),[p]);return Nt({ourProps:{ref:h,id:l,role:"combobox",type:u,"aria-controls":null==(n=p.optionsRef.current)?void 0:n.id,"aria-expanded":0===p.comboboxState,"aria-activedescendant":null===p.activeOptionIndex||null==(a=p.options[p.activeOptionIndex])?void 0:a.id,"aria-labelledby":D,"aria-autocomplete":"list",defaultValue:null!=(s=null!=(o=t.defaultValue)?o:void 0!==p.defaultValue?null==d?void 0:d(p.defaultValue):null)?s:p.defaultValue,disabled:p.disabled,onCompositionStart:E,onCompositionEnd:k,onKeyDown:N,onChange:S,onBlur:A},theirProps:m,slot:C,defaultTag:"input",name:"Combobox.Input"})})),Ea=Dt((function(t,r){let n=fr(),{id:a=`headlessui-combobox-label-${n}`,...o}=t,s=ha("Combobox.Label"),i=pa("Combobox.Label"),l=Ut(s.labelRef,r);Pt((()=>i.registerLabel(a)),[a]);let c=qt((()=>{var e;return null==(e=s.inputRef.current)?void 0:e.focus({preventScroll:!0})})),d=(0,e.useMemo)((()=>({open:0===s.comboboxState,disabled:s.disabled})),[s]);return Nt({ourProps:{ref:l,id:a,onClick:c},theirProps:o,slot:d,defaultTag:"label",name:"Combobox.Label"})})),ka=Dt((function(t,r){let n=fr(),{id:a=`headlessui-combobox-options-${n}`,hold:o=!1,...s}=t,i=ha("Combobox.Options"),l=Ut(i.optionsRef,r),c=Mt(),d=null!==c?(c&Tt.Open)===Tt.Open:0===i.comboboxState;Pt((()=>{var e;i.optionsPropsRef.current.static=null!=(e=t.static)&&e}),[i.optionsPropsRef,t.static]),Pt((()=>{i.optionsPropsRef.current.hold=o}),[i.optionsPropsRef,o]),Qn({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let u=Zn((()=>{var e,t;return null!=(t=i.labelId)?t:null==(e=i.buttonRef.current)?void 0:e.id}),[i.labelId,i.buttonRef.current]),m=(0,e.useMemo)((()=>({open:0===i.comboboxState})),[i]);return Nt({ourProps:{"aria-labelledby":u,role:"listbox","aria-multiselectable":1===i.mode||void 0,id:a,ref:l},theirProps:s,slot:m,defaultTag:"ul",features:wa,visible:d,name:"Combobox.Options"})})),Na=Dt((function(t,r){var n,a;let o=fr(),{id:s=`headlessui-combobox-option-${o}`,disabled:i=!1,value:l,...c}=t,d=ha("Combobox.Option"),u=pa("Combobox.Option"),m=null!==d.activeOptionIndex&&d.options[d.activeOptionIndex].id===s,p=d.isSelected(l),f=(0,e.useRef)(null),h=zt({disabled:i,value:l,domRef:f,textValue:null==(a=null==(n=f.current)?void 0:n.textContent)?void 0:a.toLowerCase()}),g=Ut(r,f),b=qt((()=>u.selectOption(s)));Pt((()=>u.registerOption(s,h)),[h,s]);let w=(0,e.useRef)(!d.__demoMode);Pt((()=>{if(!d.__demoMode)return;let e=Vt();return e.requestAnimationFrame((()=>{w.current=!0})),e.dispose}),[]),Pt((()=>{if(0!==d.comboboxState||!m||!w.current||0===d.activationTrigger)return;let e=Vt();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,m,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let v=qt((e=>{if(i)return e.preventDefault();b(),0===d.mode&&u.closeCombobox(),xn()||/Android/gi.test(window.navigator.userAgent)||requestAnimationFrame((()=>{var e;return null==(e=d.inputRef.current)?void 0:e.focus()}))})),x=qt((()=>{if(i)return u.goToOption(Xn.Nothing);u.goToOption(Xn.Specific,s)})),y=oa(),E=qt((e=>y.update(e))),k=qt((e=>{y.wasMoved(e)&&(i||m||u.goToOption(Xn.Specific,s,0))})),N=qt((e=>{y.wasMoved(e)&&(i||m&&(d.optionsPropsRef.current.hold||u.goToOption(Xn.Nothing)))})),S=(0,e.useMemo)((()=>({active:m,selected:p,disabled:i})),[m,p,i]);return Nt({ourProps:{id:s,ref:g,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":p,disabled:void 0,onClick:v,onFocus:x,onPointerEnter:E,onMouseEnter:E,onPointerMove:k,onMouseMove:k,onPointerLeave:N,onMouseLeave:N},theirProps:c,slot:S,defaultTag:"li",name:"Combobox.Option"})})),Sa=Object.assign(va,{Input:ya,Button:xa,Label:Ea,Options:ka,Option:Na});const Aa=({type:t,docId:r,sections:n,isFormError:a,defaultSection:o,selectSectionId:s})=>{const{id:i}=ze(),l=(...e)=>e.filter(Boolean).join(" "),c=n.map((e=>({id:e.id,name:e?.title?.rendered}))),[d,u]=(0,bt.useState)({title:{raw:""},parent:parseInt(r||i),status:"publish"}),[m,p]=(0,bt.useState)(o||""),[f,h]=(0,bt.useState)(""),g=""===f?c:c.filter((e=>e?.name.toLowerCase().includes(f.toLowerCase())));return(0,bt.useEffect)((()=>{u({...d,menu_order:n?.length})}),[n]),(0,e.createElement)(Sa,{as:"div",value:m,onChange:p},(0,e.createElement)("div",{className:"relative mb-5"},(0,e.createElement)(Sa.Input,{placeholder:t&&"article"===t?(0,ft.__)("Type an article name","wedocs"):(0,ft.__)("Type a section name","wedocs"),required:!0,className:(a?"!border-red-500 focus:ring-red-500 focus:border-red-500":"!border-gray-300 focus:ring-blue-500 focus:border-blue-500")+" h-11 bg-gray-50 text-gray-900 text-base !rounded-md block w-full !py-2 !px-3 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white",onChange:e=>{h(e.target.value),u({...d,title:{raw:e.target.value}})},displayValue:e=>gt().decode(e)}),a?(0,e.createElement)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"},(0,e.createElement)(Wn,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})):(0,e.createElement)(Sa.Button,{className:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},(0,e.createElement)(Vn,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})),(0,e.createElement)(Sa.Options,{className:"absolute z-50 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base text-left shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},g&&g.length>0&&g.map((t=>(0,e.createElement)(Sa.Option,{key:t.id,value:t.name,className:({active:e})=>l("relative cursor-pointer select-none py-2.5 pl-3 pr-9 mb-0",e?"bg-indigo-600 text-white":"text-gray-900"),onClick:()=>{return e=t.id,void s(e);var e}},(({active:r,selected:n})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:l("block truncate",n&&"font-semibold"),dangerouslySetInnerHTML:{__html:t?.name}}),n&&(0,e.createElement)("span",{className:l("absolute inset-y-0 right-0 flex items-center pr-4",r?"text-white":"text-indigo-600")},(0,e.createElement)(Gn,{className:"h-5 w-5","aria-hidden":"true"}))))))),(0,e.createElement)(Sa.Option,{className:"flex items-center bg-gray-100 relative cursor-pointer text-base text-indigo-600 mb-0 select-none py-2 pl-3 pr-9",value:d?.title?.raw,onClick:()=>{""!==d?.title?.raw&&(0,ut.dispatch)(mt.A).createDoc(d).then((e=>{s(e.id),u({...d,title:{raw:""}})})).catch((e=>{}))}},f?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"dashicons dashicons-plus text-xs mt-1.5"}),f):(0,e.createElement)(e.Fragment,null,t&&"article"===t?(0,ft.__)("Type to write the name of new article","wedocs"):(0,ft.__)("Type to write the name of new section","wedocs"))))))},Da=e.forwardRef((function({title:t,titleId:r,...n},a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":r},n),t?e.createElement("title",{id:r},t):null,e.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))})),Ca=(e=0)=>weDocsAdminVars?.hasManageCap,Ia=e=>{(0,bt.useEffect)((()=>{document.addEventListener("keypress",(t=>{if("Enter"===t?.key&&e?.current)return e?.current?.click()}))}),[])},La=({type:t,docId:r,article:n,children:a,sections:o,className:s,defaultSection:i,setShowArticles:l})=>{const c=(0,bt.useRef)(null),[d,u]=(0,bt.useState)(!1),[m,p]=(0,bt.useState)(i?.id||""),[f,h]=(0,bt.useState)(n),[g,b]=(0,bt.useState)({title:!1,sectionId:!1}),w=(0,ut.useSelect)((e=>e(mt.A).getSectionArticles(parseInt(m))),[]),[v,x]=(0,bt.useState)(""),[y,E]=(0,bt.useState)(!1),k=()=>{u(!1)},N=e=>{h({...f,status:e})};return(0,bt.useEffect)((()=>{h({...f,parent:m}),b({...g,sectionId:!1})}),[m]),(0,bt.useEffect)((()=>{h({...f,menu_order:w?.length})}),[w]),Ia(c),(0,bt.useEffect)((()=>{gt().decode(f?.title?.rendered||"")&&x(gt().decode(f?.title?.rendered||""))}),[f?.title?.rendered]),(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),u(!0)},className:s},a),(0,e.createElement)(dr,{appear:!0,show:d,as:bt.Fragment},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:k},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4 text-center"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-full max-w-md transform rounded-2xl bg-white py-8 px-9 text-center align-middle shadow-xl transition-all overflow-visible"},(0,e.createElement)(Fn.Title,{as:"h3",className:"text-lg font-bold text-gray-900 mb-2"},(0,ft.__)("Quickly edit important info of the article","wedocs")),(0,e.createElement)("p",{className:"text-gray-500 text-base"},(0,ft.__)("Edit article details easily","wedocs")),(0,e.createElement)("div",{className:"relative mt-6 mb-4"},(0,e.createElement)("input",{type:"text",name:"doc_title",id:"doc-title",placeholder:(0,ft.__)("Type an article name","wedocs"),required:!0,className:(g.title?"!border-red-500 focus:ring-red-500 focus:border-red-500":"!border-gray-300 focus:ring-blue-500 focus:border-blue-500")+" h-11 bg-gray-50 text-gray-900 text-base !rounded-md block w-full !py-2 !px-3 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white",value:v,onChange:e=>{x(e.target.value),h({...f,title:{raw:e.target.value}}),b({...g,title:0===e.target.value.length})}}),g.title&&(0,e.createElement)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"},(0,e.createElement)(Wn,{className:"h-5 w-5 text-red-500","aria-hidden":"true"}))),(0,e.createElement)("div",{className:"relative mb-4"},(0,e.createElement)("input",{type:"text",name:"doc_slug",id:"doc-slug",placeholder:(0,ft.__)("Enter your slug here","wedocs"),required:!0,className:(g.slug?"!border-red-500 focus:ring-red-500 focus:border-red-500":"!border-gray-300 focus:ring-blue-500 focus:border-blue-500")+" h-11 bg-gray-50 text-gray-900 text-base !rounded-md block w-full !py-2 !px-3 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white",value:f?.slug,onChange:e=>{h({...f,slug:e.target.value}),b({...g,slug:0===e.target.value.length})}}),g.slug&&(0,e.createElement)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"},(0,e.createElement)(Wn,{className:"h-5 w-5 text-red-500","aria-hidden":"true"}))),(0,e.createElement)(Aa,{type:t,docId:r,sections:o,selectSectionId:p,isFormError:g.sectionId,defaultSection:i?.title?.rendered}),(0,e.createElement)("div",{className:"mt-6 flex items-center justify-center space-x-3.5"},(0,e.createElement)("button",{className:"bg-white hover:bg-gray-200 text-gray-700 font-medium text-base py-2 px-5 border border-gray-300 rounded-md",onClick:k},(0,ft.__)("Cancel","wedocs")),(0,e.createElement)("div",{className:"doc-publish-btn group relative"},(0,e.createElement)("button",{className:"inline-flex justify-between items-center cursor-pointer bg-indigo-600 hover:bg-indigo-800 text-white font-medium text-base py-2 px-5 rounded-md min-w-[122px]",ref:c,disabled:y,onClick:()=>{""!==f.title.raw?""!==f.slug?m?(E(!0),(0,ut.dispatch)(mt.A).updateDoc(n?.id,{slug:f?.slug,title:f?.title?.raw,parent:m?parseInt(m):"",status:f?.status}).then((()=>{p(i?.id||""),l&&l(!0),Hn().fire({title:"draft"===f?.status?(0,ft.__)("Article has been drafted!","wedocs"):(0,ft.__)("Article has been published!","wedocs"),text:"draft"===f?.status?(0,ft.__)("The article has been drafted successfully","wedocs"):(0,ft.__)("The article has been published successfully","wedocs"),icon:"success",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:2e3}),k()})).catch((e=>{Hn().fire({title:(0,ft.__)("Error","wedocs"),text:e.message,icon:"error",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:3e3})})).finally((()=>E(!1)))):b({...g,sectionId:!0}):b({...g,slug:!0}):b({...g,title:!0})}},(0,e.createElement)(bt.Fragment,null,"draft"===f?.status?(0,ft.__)("Draft","wedocs"):(0,ft.sprintf)((0,ft.__)("Updat%s","wedocs"),y?"ing...":"e"),(0,e.createElement)(Da,{className:"h-5 w-5 text-white mt-[1px]","aria-hidden":"true"}))),(0,e.createElement)("div",{id:"action-menus",className:"hidden cursor-pointer w-44 z-40 bg-white border border-[#DBDBDB] absolute z-10 shadow right-0 py-1 rounded-md mt-0.5 group-hover:block after:content-[''] before:content-[''] after:absolute before:absolute after:w-[13px] before:w-[70%] before:-right-[1px] after:h-[13px] before:h-3 before:mt-3 after:top-[-7px] before:-top-6 after:right-[1.4rem] after:z-[-1] after:bg-white after:border after:border-[#DBDBDB] after:!rotate-45 after:border-r-0 after:border-b-0"},(0,e.createElement)("span",{onClick:()=>N("draft"),className:"flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},(0,ft.__)("Update and Draft","wedocs")),(0,e.createElement)("span",{onClick:()=>N("publish"),className:"flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},(0,ft.__)("Update and Publish","wedocs"))))))))))))},Ta=({doc:t,type:r,section:n,sections:a,setShowArticles:o})=>{const s=Ca(),i=wp.hooks.applyFilters("wedocs_admin_documentation_action_menu_width","w-[270px]"),l=wp.hooks.applyFilters("wedocs_admin_article_action_menu_width","w-[310px]"),[c,d]=(0,bt.useState)(!1);return(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("div",{className:"documentation-ellipsis-actions relative",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)},(0,e.createElement)("span",{className:"dashicons dashicons-ellipsis d-block cursor-pointer text-sm rotate-90 text-gray-500"}),(0,e.createElement)("div",{id:"action-menus",className:`${"article"===r?l:i} ${c?"block":"hidden"} z-40 bg-white border border-[#DBDBDB] absolute shadow -right-3.5 py-1 rounded-md mt-2.5 hover:block after:content-[''] before:content-[''] after:absolute before:absolute after:w-[13px] before:w-full after:h-[13px] before:h-2.5 after:top-[-7px] before:-top-2.5 after:right-4 after:z-[-1] after:bg-white after:border after:border-[#DBDBDB] after:!rotate-45 after:border-r-0 after:border-b-0`},s&&"article"===r&&(0,e.createElement)(La,{article:t,sections:a,defaultSection:n,setShowArticles:o,className:"group flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none w-full"},(0,ft.__)("Quick Edit","wedocs")),(0,e.createElement)("a",{href:`${weDocsAdminVars.adminUrl}post.php?post=${t?.id}&action=edit`,target:"_blank",className:"group flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none",rel:"noreferrer"},(0,ft.__)("Edit","wedocs")),(0,e.createElement)("a",{target:"_blank",href:t?.link,rel:"noreferrer",className:"group flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},(0,ft.__)("View","wedocs")),(0,e.createElement)("span",{onClick:()=>{(0,ut.dispatch)("wedocs/docs").updateDoc(t?.id,{status:"draft"===t?.status?"publish":"draft"}).then((({docs:e})=>{Hn().fire({icon:"success",toast:!0,title:(0,ft.__)(`${"doc"===r?"Doc":"Article"} ${"draft"===t?.status?"Published":"Drafted"} Successfully!`,"wedocs"),timer:2e3,position:"bottom-end",showConfirmButton:!1,text:(0,ft.__)(`${"doc"===r?"Your documentation":"Your article"} has been successfully ${"draft"===t?.status?"published":"drafted"}`,"wedocs")})})).catch((e=>console.log(e)))},className:"group flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},"draft"===t?.status?(0,ft.__)("Publish Now","wedocs"):(0,ft.__)("Switch to Draft","wedocs")),wp.hooks.applyFilters("wedocs_admin_article_restriction_action","",t?.id,r),(0,e.createElement)(Un,{type:r,docId:t?.id,classes:"w-full group flex items-center py-2 px-4 text-sm font-medium text-red-500 hover:bg-indigo-700 hover:text-white"},(0,ft.__)("Delete","wedocs")))))},Ma="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Ra(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function _a(e){return"nodeType"in e}function Oa(e){var t,r;return e?Ra(e)?e:_a(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function Ba(e){const{Document:t}=Oa(e);return e instanceof t}function Pa(e){return!Ra(e)&&e instanceof Oa(e).HTMLElement}function ja(e){return e?Ra(e)?e.document:_a(e)?Ba(e)?e:Pa(e)?e.ownerDocument:document:document:document}const za=Ma?e.useLayoutEffect:e.useEffect;function Fa(t){const r=(0,e.useRef)(t);return za((()=>{r.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return null==r.current?void 0:r.current(...t)}),[])}function qa(t,r){void 0===r&&(r=[t]);const n=(0,e.useRef)(t);return za((()=>{n.current!==t&&(n.current=t)}),r),n}function Ha(t,r){const n=(0,e.useRef)();return(0,e.useMemo)((()=>{const e=t(n.current);return n.current=e,e}),[...r])}function Ua(t){const r=Fa(t),n=(0,e.useRef)(null),a=(0,e.useCallback)((e=>{e!==n.current&&(null==r||r(e,n.current)),n.current=e}),[]);return[n,a]}function Wa(t){const r=(0,e.useRef)();return(0,e.useEffect)((()=>{r.current=t}),[t]),r.current}let Va={};function Ga(t,r){return(0,e.useMemo)((()=>{if(r)return r;const e=null==Va[t]?0:Va[t]+1;return Va[t]=e,t+"-"+e}),[t,r])}function Za(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.reduce(((t,r)=>{const n=Object.entries(r);for(const[r,a]of n){const n=t[r];null!=n&&(t[r]=n+e*a)}return t}),{...t})}}const Ya=Za(1),Ja=Za(-1);function Qa(e){if(!e)return!1;const{KeyboardEvent:t}=Oa(e.target);return t&&e instanceof t}function Xa(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Oa(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Ka=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Ka.Translate.toString(e),Ka.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),$a="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function eo(e){return e.matches($a)?e:e.querySelector($a)}const to={display:"none"};function ro(e){let{id:t,value:n}=e;return r().createElement("div",{id:t,style:to},n)}const no={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function ao(e){let{id:t,announcement:n}=e;return r().createElement("div",{id:t,style:no,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const oo=(0,e.createContext)(null),so={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},io={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function lo(t){let{announcements:n=io,container:a,hiddenTextDescribedById:o,screenReaderInstructions:s=so}=t;const{announce:i,announcement:l}=function(){const[t,r]=(0,e.useState)("");return{announce:(0,e.useCallback)((e=>{null!=e&&r(e)}),[]),announcement:t}}(),c=Ga("DndLiveRegion"),[d,u]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{u(!0)}),[]),function(t){const r=(0,e.useContext)(oo);(0,e.useEffect)((()=>{if(!r)throw new Error("useDndMonitor must be used within a children of <DndContext>");return r(t)}),[t,r])}((0,e.useMemo)((()=>({onDragStart(e){let{active:t}=e;i(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&i(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;i(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;i(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;i(n.onDragCancel({active:t,over:r}))}})),[i,n])),!d)return null;const m=r().createElement(r().Fragment,null,r().createElement(ro,{id:o,value:s.draggable}),r().createElement(ao,{id:c,announcement:l}));return a?(0,Ur.createPortal)(m,a):m}var co;function uo(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(co||(co={}));const mo=Object.freeze({x:0,y:0});function po(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function fo(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function ho(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}const go=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=ho(t,t.left,t.top),o=[];for(const e of n){const{id:t}=e,n=r.get(t);if(n){const r=(s=ho(n),i=a,Math.sqrt(Math.pow(s.x-i.x,2)+Math.pow(s.y-i.y,2)));o.push({id:t,data:{droppableContainer:e,value:r}})}}var s,i;return o.sort(po)};function bo(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=a-n,i=o-r;if(n<a&&r<o){const r=t.width*t.height,n=e.width*e.height,a=s*i;return Number((a/(r+n-a)).toFixed(4))}return 0}const wo=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=[];for(const e of n){const{id:n}=e,o=r.get(n);if(o){const r=bo(o,t);r>0&&a.push({id:n,data:{droppableContainer:e,value:r}})}}return a.sort(fo)};function vo(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:mo}function xo(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.reduce(((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x})),{...t})}}const yo=xo(1);const Eo={ignoreTransform:!1};function ko(e,t){void 0===t&&(t=Eo);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:n}=Oa(e).getComputedStyle(e);t&&(r=function(e,t,r){const n=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!n)return e;const{scaleX:a,scaleY:o,x:s,y:i}=n,l=e.left-s-(1-a)*parseFloat(r),c=e.top-i-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),d=a?e.width/a:e.width,u=o?e.height/o:e.height;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l}}(r,t,n))}const{top:n,left:a,width:o,height:s,bottom:i,right:l}=r;return{top:n,left:a,width:o,height:s,bottom:i,right:l}}function No(e){return ko(e,{ignoreTransform:!0})}function So(e,t){const r=[];return e?function n(a){if(null!=t&&r.length>=t)return r;if(!a)return r;if(Ba(a)&&null!=a.scrollingElement&&!r.includes(a.scrollingElement))return r.push(a.scrollingElement),r;if(!Pa(a)||function(e){return e instanceof Oa(e).SVGElement}(a))return r;if(r.includes(a))return r;const o=Oa(e).getComputedStyle(a);return a!==e&&function(e,t){void 0===t&&(t=Oa(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,o)&&r.push(a),function(e,t){return void 0===t&&(t=Oa(e).getComputedStyle(e)),"fixed"===t.position}(a,o)?r:n(a.parentNode)}(e):r}function Ao(e){const[t]=So(e,1);return null!=t?t:null}function Do(e){return Ma&&e?Ra(e)?e:_a(e)?Ba(e)||e===ja(e).scrollingElement?window:Pa(e)?e:null:null:null}function Co(e){return Ra(e)?e.scrollX:e.scrollLeft}function Io(e){return Ra(e)?e.scrollY:e.scrollTop}function Lo(e){return{x:Co(e),y:Io(e)}}var To;function Mo(e){return!(!Ma||!e)&&e===document.scrollingElement}function Ro(e){const t={x:0,y:0},r=Mo(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(To||(To={}));const _o={x:.2,y:.2};function Oo(e,t,r,n,a){let{top:o,left:s,right:i,bottom:l}=r;void 0===n&&(n=10),void 0===a&&(a=_o);const{isTop:c,isBottom:d,isLeft:u,isRight:m}=Ro(e),p={x:0,y:0},f={x:0,y:0},h=t.height*a.y,g=t.width*a.x;return!c&&o<=t.top+h?(p.y=To.Backward,f.y=n*Math.abs((t.top+h-o)/h)):!d&&l>=t.bottom-h&&(p.y=To.Forward,f.y=n*Math.abs((t.bottom-h-l)/h)),!m&&i>=t.right-g?(p.x=To.Forward,f.x=n*Math.abs((t.right-g-i)/g)):!u&&s<=t.left+g&&(p.x=To.Backward,f.x=n*Math.abs((t.left+g-s)/g)),{direction:p,speed:f}}function Bo(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:r,right:n,bottom:a}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Po(e){return e.reduce(((e,t)=>Ya(e,Lo(t))),mo)}const jo=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Co(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Io(t)),0)}]];class zo{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=So(t),n=Po(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,a]of jo)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=a(r),s=n[e]-t;return this.rect[o]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Fo{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function qo(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}var Ho,Uo,Wo;function Vo(e){e.preventDefault()}function Go(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Ho||(Ho={})),(Wo=Uo||(Uo={})).Space="Space",Wo.Down="ArrowDown",Wo.Right="ArrowRight",Wo.Left="ArrowLeft",Wo.Up="ArrowUp",Wo.Esc="Escape",Wo.Enter="Enter";const Zo={start:[Uo.Space,Uo.Enter],cancel:[Uo.Esc],end:[Uo.Space,Uo.Enter]},Yo=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case Uo.Right:return{...r,x:r.x+25};case Uo.Left:return{...r,x:r.x-25};case Uo.Down:return{...r,y:r.y+25};case Uo.Up:return{...r,y:r.y-25}}};class Jo{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Fo(ja(t)),this.windowListeners=new Fo(Oa(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ho.Resize,this.handleCancel),this.windowListeners.add(Ho.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Ho.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=ko),!e)return;const{top:r,left:n,bottom:a,right:o}=t(e);Ao(e)&&(a<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(mo)}handleKeyDown(e){if(Qa(e)){const{active:t,context:r,options:n}=this.props,{keyboardCodes:a=Zo,coordinateGetter:o=Yo,scrollBehavior:s="smooth"}=n,{code:i}=e;if(a.end.includes(i))return void this.handleEnd(e);if(a.cancel.includes(i))return void this.handleCancel(e);const{collisionRect:l}=r.current,c=l?{x:l.left,y:l.top}:mo;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const t=Ja(d,c),n={x:0,y:0},{scrollableAncestors:a}=r.current;for(const r of a){const a=e.code,{isTop:o,isRight:i,isLeft:l,isBottom:c,maxScroll:u,minScroll:m}=Ro(r),p=Bo(r),f={x:Math.min(a===Uo.Right?p.right-p.width/2:p.right,Math.max(a===Uo.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(a===Uo.Down?p.bottom-p.height/2:p.bottom,Math.max(a===Uo.Down?p.top:p.top+p.height/2,d.y))},h=a===Uo.Right&&!i||a===Uo.Left&&!l,g=a===Uo.Down&&!c||a===Uo.Up&&!o;if(h&&f.x!==d.x){const e=r.scrollLeft+t.x,o=a===Uo.Right&&e<=u.x||a===Uo.Left&&e>=m.x;if(o&&!t.y)return void r.scrollTo({left:e,behavior:s});n.x=o?r.scrollLeft-e:a===Uo.Right?r.scrollLeft-u.x:r.scrollLeft-m.x,n.x&&r.scrollBy({left:-n.x,behavior:s});break}if(g&&f.y!==d.y){const e=r.scrollTop+t.y,o=a===Uo.Down&&e<=u.y||a===Uo.Up&&e>=m.y;if(o&&!t.x)return void r.scrollTo({top:e,behavior:s});n.y=o?r.scrollTop-e:a===Uo.Down?r.scrollTop-u.y:r.scrollTop-m.y,n.y&&r.scrollBy({top:-n.y,behavior:s});break}}this.handleMove(e,Ya(Ja(d,this.referenceCoordinates),n))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Qo(e){return Boolean(e&&"distance"in e)}function Xo(e){return Boolean(e&&"delay"in e)}Jo.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=Zo,onActivation:a}=t,{active:o}=r;const{code:s}=e.nativeEvent;if(n.start.includes(s)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==a||a({event:e.nativeEvent}),0))}return!1}}];class Ko{constructor(e,t,r){var n;void 0===r&&(r=function(e){const{EventTarget:t}=Oa(e);return e instanceof t?e:ja(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:a}=e,{target:o}=a;this.props=e,this.events=t,this.document=ja(o),this.documentListeners=new Fo(this.document),this.listeners=new Fo(r),this.windowListeners=new Fo(Oa(o)),this.initialCoordinates=null!=(n=Xa(a))?n:mo,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Ho.Resize,this.handleCancel),this.windowListeners.add(Ho.DragStart,Vo),this.windowListeners.add(Ho.VisibilityChange,this.handleCancel),this.windowListeners.add(Ho.ContextMenu,Vo),this.documentListeners.add(Ho.Keydown,this.handleKeydown),t){if(Qo(t))return;if(Xo(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Ho.Click,Go,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ho.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:n,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!n)return;const i=null!=(t=Xa(e))?t:mo,l=Ja(n,i);if(!r&&s){if(Xo(s))return qo(l,s.tolerance)?this.handleCancel():void 0;if(Qo(s))return null!=s.tolerance&&qo(l,s.tolerance)?this.handleCancel():qo(l,s.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),o(i)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Uo.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const $o={move:{name:"pointermove"},end:{name:"pointerup"}};class es extends Ko{constructor(e){const{event:t}=e,r=ja(t.target);super(e,$o,r)}}es.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!(!r.isPrimary||0!==r.button||(null==n||n({event:r}),0))}}];const ts={move:{name:"mousemove"},end:{name:"mouseup"}};var rs;!function(e){e[e.RightClick=2]="RightClick"}(rs||(rs={})),class extends Ko{constructor(e){super(e,ts,ja(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==rs.RightClick&&(null==n||n({event:r}),!0)}}];const ns={move:{name:"touchmove"},end:{name:"touchend"}};var as,os;(class extends Ko{constructor(e){super(e,ns)}static setup(){return window.addEventListener(ns.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ns.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:a}=r;return!(a.length>1||(null==n||n({event:r}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(as||(as={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(os||(os={}));const ss={x:{[To.Backward]:!1,[To.Forward]:!1},y:{[To.Backward]:!1,[To.Forward]:!1}};var is,ls;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(is||(is={})),function(e){e.Optimized="optimized"}(ls||(ls={}));const cs=new Map;function ds(e,t){return Ha((r=>e?r||("function"==typeof t?t(e):e):null),[t,e])}function us(t){let{callback:r,disabled:n}=t;const a=Fa(r),o=(0,e.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(a)}),[n]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function ms(e){return new zo(ko(e),e)}function ps(t,r,n){void 0===r&&(r=ms);const[a,o]=(0,e.useReducer)((function(e){if(!t)return null;var a;if(!1===t.isConnected)return null!=(a=null!=e?e:n)?a:null;const o=r(t);return JSON.stringify(e)===JSON.stringify(o)?e:o}),null),s=function(t){let{callback:r,disabled:n}=t;const a=Fa(r),o=(0,e.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(a)}),[a,n]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(e){if(t)for(const r of e){const{type:e,target:n}=r;if("childList"===e&&n instanceof HTMLElement&&n.contains(t)){o();break}}}}),i=us({callback:o});return za((()=>{o(),t?(null==i||i.observe(t),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==i||i.disconnect(),null==s||s.disconnect())}),[t]),a}const fs=[];function hs(t,r){void 0===r&&(r=[]);const n=(0,e.useRef)(null);return(0,e.useEffect)((()=>{n.current=null}),r),(0,e.useEffect)((()=>{const e=t!==mo;e&&!n.current&&(n.current=t),!e&&n.current&&(n.current=null)}),[t]),n.current?Ja(t,n.current):mo}function gs(t){return(0,e.useMemo)((()=>t?function(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(t):null),[t])}const bs=[];const ws=[{sensor:es,options:{}},{sensor:Jo,options:{}}],vs={current:{}},xs={draggable:{measure:No},droppable:{measure:No,strategy:is.WhileDragging,frequency:ls.Optimized},dragOverlay:{measure:ko}};class ys extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}const Es={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ys,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:uo},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:xs,measureDroppableContainers:uo,windowRect:null,measuringScheduled:!1},ks={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:uo,draggableNodes:new Map,over:null,measureDroppableContainers:uo},Ns=(0,e.createContext)(ks),Ss=(0,e.createContext)(Es);function As(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ys}}}function Ds(e,t){switch(t.type){case co.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case co.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case co.DragEnd:case co.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case co.RegisterDroppable:{const{element:r}=t,{id:n}=r,a=new ys(e.droppable.containers);return a.set(n,r),{...e,droppable:{...e.droppable,containers:a}}}case co.SetDroppableDisabled:{const{id:r,key:n,disabled:a}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;const s=new ys(e.droppable.containers);return s.set(r,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:s}}}case co.UnregisterDroppable:{const{id:r,key:n}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;const o=new ys(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Cs(t){let{disabled:r}=t;const{active:n,activatorEvent:a,draggableNodes:o}=(0,e.useContext)(Ns),s=Wa(a),i=Wa(null==n?void 0:n.id);return(0,e.useEffect)((()=>{if(!r&&!a&&s&&null!=i){if(!Qa(s))return;if(document.activeElement===s.target)return;const e=o.get(i);if(!e)return;const{activatorNode:t,node:r}=e;if(!t.current&&!r.current)return;requestAnimationFrame((()=>{for(const e of[t.current,r.current]){if(!e)continue;const t=eo(e);if(t){t.focus();break}}}))}}),[a,r,o,i,s]),null}const Is=(0,e.createContext)({...mo,scaleX:1,scaleY:1});var Ls;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ls||(Ls={}));const Ts=(0,e.memo)((function(t){var n,a,o,s;let{id:i,accessibility:l,autoScroll:c=!0,children:d,sensors:u=ws,collisionDetection:m=wo,measuring:p,modifiers:f,...h}=t;const g=(0,e.useReducer)(Ds,void 0,As),[b,w]=g,[v,x]=function(){const[t]=(0,e.useState)((()=>new Set)),r=(0,e.useCallback)((e=>(t.add(e),()=>t.delete(e))),[t]);return[(0,e.useCallback)((e=>{let{type:r,event:n}=e;t.forEach((e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)}))}),[t]),r]}(),[y,E]=(0,e.useState)(Ls.Uninitialized),k=y===Ls.Initialized,{draggable:{active:N,nodes:S,translate:A},droppable:{containers:D}}=b,C=N?S.get(N):null,I=(0,e.useRef)({initial:null,translated:null}),L=(0,e.useMemo)((()=>{var e;return null!=N?{id:N,data:null!=(e=null==C?void 0:C.data)?e:vs,rect:I}:null}),[N,C]),T=(0,e.useRef)(null),[M,R]=(0,e.useState)(null),[_,O]=(0,e.useState)(null),B=qa(h,Object.values(h)),P=Ga("DndDescribedBy",i),j=(0,e.useMemo)((()=>D.getEnabled()),[D]),z=(F=p,(0,e.useMemo)((()=>({draggable:{...xs.draggable,...null==F?void 0:F.draggable},droppable:{...xs.droppable,...null==F?void 0:F.droppable},dragOverlay:{...xs.dragOverlay,...null==F?void 0:F.dragOverlay}})),[null==F?void 0:F.draggable,null==F?void 0:F.droppable,null==F?void 0:F.dragOverlay]));var F;const{droppableRects:q,measureDroppableContainers:H,measuringScheduled:U}=function(t,r){let{dragging:n,dependencies:a,config:o}=r;const[s,i]=(0,e.useState)(null),{frequency:l,measure:c,strategy:d}=o,u=(0,e.useRef)(t),m=function(){switch(d){case is.Always:return!1;case is.BeforeDragging:return n;default:return!n}}(),p=qa(m),f=(0,e.useCallback)((function(e){void 0===e&&(e=[]),p.current||i((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),h=(0,e.useRef)(null),g=Ha((e=>{if(m&&!n)return cs;if(!e||e===cs||u.current!==t||null!=s){const e=new Map;for(let r of t){if(!r)continue;if(s&&s.length>0&&!s.includes(r.id)&&r.rect.current){e.set(r.id,r.rect.current);continue}const t=r.node.current,n=t?new zo(c(t),t):null;r.rect.current=n,n&&e.set(r.id,n)}return e}return e}),[t,s,n,m,c]);return(0,e.useEffect)((()=>{u.current=t}),[t]),(0,e.useEffect)((()=>{m||f()}),[n,m]),(0,e.useEffect)((()=>{s&&s.length>0&&i(null)}),[JSON.stringify(s)]),(0,e.useEffect)((()=>{m||"number"!=typeof l||null!==h.current||(h.current=setTimeout((()=>{f(),h.current=null}),l))}),[l,m,f,...a]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:null!=s}}(j,{dragging:k,dependencies:[A.x,A.y],config:z.droppable}),W=function(e,t){const r=null!==t?e.get(t):void 0,n=r?r.node.current:null;return Ha((e=>{var r;return null===t?null:null!=(r=null!=n?n:e)?r:null}),[n,t])}(S,N),V=(0,e.useMemo)((()=>_?Xa(_):null),[_]),G=function(){const e=!1===(null==M?void 0:M.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,r=k&&!e&&!t;return"object"==typeof c?{...c,enabled:r}:{enabled:r}}(),Z=function(e,t){return ds(e,t)}(W,z.draggable.measure);!function(t){let{activeNode:r,measure:n,initialRect:a,config:o=!0}=t;const s=(0,e.useRef)(!1),{x:i,y:l}="boolean"==typeof o?{x:o,y:o}:o;za((()=>{if(!i&&!l||!r)return void(s.current=!1);if(s.current||!a)return;const e=null==r?void 0:r.node.current;if(!e||!1===e.isConnected)return;const t=vo(n(e),a);if(i||(t.x=0),l||(t.y=0),s.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const r=Ao(e);r&&r.scrollBy({top:t.y,left:t.x})}}),[r,i,l,a,n])}({activeNode:N?S.get(N):null,config:G.layoutShiftCompensation,initialRect:Z,measure:z.draggable.measure});const Y=ps(W,z.draggable.measure,Z),J=ps(W?W.parentElement:null),Q=(0,e.useRef)({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:q,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),X=D.getNodeFor(null==(n=Q.current.over)?void 0:n.id),K=function(t){let{measure:r}=t;const[n,a]=(0,e.useState)(null),o=us({callback:(0,e.useCallback)((e=>{for(const{target:t}of e)if(Pa(t)){a((e=>{const n=r(t);return e?{...e,width:n.width,height:n.height}:n}));break}}),[r])}),s=(0,e.useCallback)((e=>{const t=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Pa(t)?t:e}(e);null==o||o.disconnect(),t&&(null==o||o.observe(t)),a(t?r(t):null)}),[r,o]),[i,l]=Ua(s);return(0,e.useMemo)((()=>({nodeRef:i,rect:n,setRef:l})),[n,i,l])}({measure:z.dragOverlay.measure}),$=null!=(a=K.nodeRef.current)?a:W,ee=k?null!=(o=K.rect)?o:Y:null,te=Boolean(K.nodeRef.current&&K.rect),re=vo(ne=te?null:Y,ds(ne));var ne;const ae=gs($?Oa($):null),oe=function(t){const r=(0,e.useRef)(t),n=Ha((e=>t?e&&e!==fs&&t&&r.current&&t.parentNode===r.current.parentNode?e:So(t):fs),[t]);return(0,e.useEffect)((()=>{r.current=t}),[t]),n}(k?null!=X?X:W:null),se=function(t,r){void 0===r&&(r=ko);const[n]=t,a=gs(n?Oa(n):null),[o,s]=(0,e.useReducer)((function(){return t.length?t.map((e=>Mo(e)?a:new zo(r(e),e))):bs}),bs),i=us({callback:s});return t.length>0&&o===bs&&s(),za((()=>{t.length?t.forEach((e=>null==i?void 0:i.observe(e))):(null==i||i.disconnect(),s())}),[t]),o}(oe),ie=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...n})),r):r}(f,{transform:{x:A.x-re.x,y:A.y-re.y,scaleX:1,scaleY:1},activatorEvent:_,active:L,activeNodeRect:Y,containerNodeRect:J,draggingNodeRect:ee,over:Q.current.over,overlayNodeRect:K.rect,scrollableAncestors:oe,scrollableAncestorRects:se,windowRect:ae}),le=V?Ya(V,A):null,ce=function(t){const[r,n]=(0,e.useState)(null),a=(0,e.useRef)(t),o=(0,e.useCallback)((e=>{const t=Do(e.target);t&&n((e=>e?(e.set(t,Lo(t)),new Map(e)):null))}),[]);return(0,e.useEffect)((()=>{const e=a.current;if(t!==e){r(e);const s=t.map((e=>{const t=Do(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,Lo(t)]):null})).filter((e=>null!=e));n(s.length?new Map(s):null),a.current=t}return()=>{r(t),r(e)};function r(e){e.forEach((e=>{const t=Do(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,t]),(0,e.useMemo)((()=>t.length?r?Array.from(r.values()).reduce(((e,t)=>Ya(e,t)),mo):Po(t):mo),[t,r])}(oe),de=hs(ce),ue=hs(ce,[Y]),me=Ya(ie,de),pe=ee?yo(ee,ie):null,fe=L&&pe?m({active:L,collisionRect:pe,droppableRects:q,droppableContainers:j,pointerCoordinates:le}):null,he=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(fe),[ge,be]=(0,e.useState)(null),we=function(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}(te?ie:Ya(ie,ue),null!=(s=null==ge?void 0:ge.rect)?s:null,Y),ve=(0,e.useCallback)(((e,t)=>{let{sensor:r,options:n}=t;if(null==T.current)return;const a=S.get(T.current);if(!a)return;const o=e.nativeEvent,s=new r({active:T.current,activeNode:a,event:o,options:n,context:Q,onStart(e){const t=T.current;if(null==t)return;const r=S.get(t);if(!r)return;const{onDragStart:n}=B.current,a={active:{id:t,data:r.data,rect:I}};(0,Ur.unstable_batchedUpdates)((()=>{null==n||n(a),E(Ls.Initializing),w({type:co.DragStart,initialCoordinates:e,active:t}),v({type:"onDragStart",event:a})}))},onMove(e){w({type:co.DragMove,coordinates:e})},onEnd:i(co.DragEnd),onCancel:i(co.DragCancel)});function i(e){return async function(){const{active:t,collisions:r,over:n,scrollAdjustedTranslate:a}=Q.current;let s=null;if(t&&a){const{cancelDrop:i}=B.current;s={activatorEvent:o,active:t,collisions:r,delta:a,over:n},e===co.DragEnd&&"function"==typeof i&&await Promise.resolve(i(s))&&(e=co.DragCancel)}T.current=null,(0,Ur.unstable_batchedUpdates)((()=>{w({type:e}),E(Ls.Uninitialized),be(null),R(null),O(null);const t=e===co.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=B.current[t];null==e||e(s),v({type:t,event:s})}}))}}(0,Ur.unstable_batchedUpdates)((()=>{R(s),O(e.nativeEvent)}))}),[S]),xe=(0,e.useCallback)(((e,t)=>(r,n)=>{const a=r.nativeEvent,o=S.get(n);if(null!==T.current||!o||a.dndKit||a.defaultPrevented)return;const s={active:o};!0===e(r,t.options,s)&&(a.dndKit={capturedBy:t.sensor},T.current=n,ve(r,t))}),[S,ve]),ye=function(t,r){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{const{sensor:n}=t;return[...e,...n.activators.map((e=>({eventName:e.eventName,handler:r(e.handler,t)})))]}),[])),[t,r])}(u,xe);!function(t){(0,e.useEffect)((()=>{if(!Ma)return;const e=t.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const t of e)null==t||t()}}),t.map((e=>{let{sensor:t}=e;return t})))}(u),za((()=>{Y&&y===Ls.Initializing&&E(Ls.Initialized)}),[Y,y]),(0,e.useEffect)((()=>{const{onDragMove:e}=B.current,{active:t,activatorEvent:r,collisions:n,over:a}=Q.current;if(!t||!r)return;const o={active:t,activatorEvent:r,collisions:n,delta:{x:me.x,y:me.y},over:a};(0,Ur.unstable_batchedUpdates)((()=>{null==e||e(o),v({type:"onDragMove",event:o})}))}),[me.x,me.y]),(0,e.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:a}=Q.current;if(!e||null==T.current||!t||!a)return;const{onDragOver:o}=B.current,s=n.get(he),i=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,l={active:e,activatorEvent:t,collisions:r,delta:{x:a.x,y:a.y},over:i};(0,Ur.unstable_batchedUpdates)((()=>{be(i),null==o||o(l),v({type:"onDragOver",event:l})}))}),[he]),za((()=>{Q.current={activatorEvent:_,active:L,activeNode:W,collisionRect:pe,collisions:fe,droppableRects:q,draggableNodes:S,draggingNode:$,draggingNodeRect:ee,droppableContainers:D,over:ge,scrollableAncestors:oe,scrollAdjustedTranslate:me},I.current={initial:ee,translated:pe}}),[L,W,fe,pe,S,$,ee,q,D,ge,oe,me]),function(t){let{acceleration:r,activator:n=as.Pointer,canScroll:a,draggingRect:o,enabled:s,interval:i=5,order:l=os.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:u,delta:m,threshold:p}=t;const f=function(e){let{delta:t,disabled:r}=e;const n=Wa(t);return Ha((e=>{if(r||!n||!e)return ss;const a=Math.sign(t.x-n.x),o=Math.sign(t.y-n.y);return{x:{[To.Backward]:e.x[To.Backward]||-1===a,[To.Forward]:e.x[To.Forward]||1===a},y:{[To.Backward]:e.y[To.Backward]||-1===o,[To.Forward]:e.y[To.Forward]||1===o}}}),[r,t,n])}({delta:m,disabled:!s}),[h,g]=function(){const t=(0,e.useRef)(null);return[(0,e.useCallback)(((e,r)=>{t.current=setInterval(e,r)}),[]),(0,e.useCallback)((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}(),b=(0,e.useRef)({x:0,y:0}),w=(0,e.useRef)({x:0,y:0}),v=(0,e.useMemo)((()=>{switch(n){case as.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case as.DraggableRect:return o}}),[n,o,c]),x=(0,e.useRef)(null),y=(0,e.useCallback)((()=>{const e=x.current;if(!e)return;const t=b.current.x*w.current.x,r=b.current.y*w.current.y;e.scrollBy(t,r)}),[]),E=(0,e.useMemo)((()=>l===os.TreeOrder?[...d].reverse():d),[l,d]);(0,e.useEffect)((()=>{if(s&&d.length&&v){for(const e of E){if(!1===(null==a?void 0:a(e)))continue;const t=d.indexOf(e),n=u[t];if(!n)continue;const{direction:o,speed:s}=Oo(e,n,v,r,p);for(const e of["x","y"])f[e][o[e]]||(s[e]=0,o[e]=0);if(s.x>0||s.y>0)return g(),x.current=e,h(y,i),b.current=s,void(w.current=o)}b.current={x:0,y:0},w.current={x:0,y:0},g()}else g()}),[r,y,a,g,s,i,JSON.stringify(v),JSON.stringify(f),h,d,E,u,JSON.stringify(p)])}({...G,delta:A,draggingRect:pe,pointerCoordinates:le,scrollableAncestors:oe,scrollableAncestorRects:se});const Ee=(0,e.useMemo)((()=>({active:L,activeNode:W,activeNodeRect:Y,activatorEvent:_,collisions:fe,containerNodeRect:J,dragOverlay:K,draggableNodes:S,droppableContainers:D,droppableRects:q,over:ge,measureDroppableContainers:H,scrollableAncestors:oe,scrollableAncestorRects:se,measuringConfiguration:z,measuringScheduled:U,windowRect:ae})),[L,W,Y,_,fe,J,K,S,D,q,ge,H,oe,se,z,U,ae]),ke=(0,e.useMemo)((()=>({activatorEvent:_,activators:ye,active:L,activeNodeRect:Y,ariaDescribedById:{draggable:P},dispatch:w,draggableNodes:S,over:ge,measureDroppableContainers:H})),[_,ye,L,Y,w,P,S,ge,H]);return r().createElement(oo.Provider,{value:x},r().createElement(Ns.Provider,{value:ke},r().createElement(Ss.Provider,{value:Ee},r().createElement(Is.Provider,{value:we},d)),r().createElement(Cs,{disabled:!1===(null==l?void 0:l.restoreFocus)})),r().createElement(lo,{...l,hiddenTextDescribedById:P}))})),Ms=(0,e.createContext)(null),Rs="button";const _s={timeout:25};function Os(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function Bs(e,t){return e.reduce(((e,r,n)=>{const a=t.get(r);return a&&(e[n]=a),e}),Array(e.length))}function Ps(e){return null!==e&&e>=0}const js=e=>{let{rects:t,activeIndex:r,overIndex:n,index:a}=e;const o=Os(t,n,r),s=t[a],i=o[a];return i&&s?{x:i.left-s.left,y:i.top-s.top,scaleX:i.width/s.width,scaleY:i.height/s.height}:null},zs={scaleX:1,scaleY:1},Fs=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:a,rects:o,overIndex:s}=e;const i=null!=(t=o[r])?t:n;if(!i)return null;if(a===r){const e=o[s];return e?{x:0,y:r<s?e.top+e.height-(i.top+i.height):e.top-i.top,...zs}:null}const l=function(e,t,r){const n=e[t],a=e[t-1],o=e[t+1];return n?r<t?a?n.top-(a.top+a.height):o?o.top-(n.top+n.height):0:o?o.top-(n.top+n.height):a?n.top-(a.top+a.height):0:0}(o,a,r);return a>r&&a<=s?{x:0,y:-i.height-l,...zs}:a<r&&a>=s?{x:0,y:i.height+l,...zs}:{x:0,y:0,...zs}},qs="Sortable",Hs=r().createContext({activeIndex:-1,containerId:qs,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:js,disabled:{draggable:!1,droppable:!1}});function Us(t){let{children:n,id:a,items:o,strategy:s=js,disabled:i=!1}=t;const{active:l,dragOverlay:c,droppableRects:d,over:u,measureDroppableContainers:m}=(0,e.useContext)(Ss),p=Ga(qs,a),f=Boolean(null!==c.rect),h=(0,e.useMemo)((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),g=null!=l,b=l?h.indexOf(l.id):-1,w=u?h.indexOf(u.id):-1,v=(0,e.useRef)(h),x=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(h,v.current),y=-1!==w&&-1===b||x,E=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);za((()=>{x&&g&&m(h)}),[x,h,g,m]),(0,e.useEffect)((()=>{v.current=h}),[h]);const k=(0,e.useMemo)((()=>({activeIndex:b,containerId:p,disabled:E,disableTransforms:y,items:h,overIndex:w,useDragOverlay:f,sortedRects:Bs(h,d),strategy:s})),[b,p,E.draggable,E.droppable,y,h,w,d,f,s]);return r().createElement(Hs.Provider,{value:k},n)}const Ws=e=>{let{id:t,items:r,activeIndex:n,overIndex:a}=e;return Os(r,n,a).indexOf(t)},Vs=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:a,items:o,newIndex:s,previousItems:i,previousContainerId:l,transition:c}=e;return!(!c||!n||i!==o&&a===s||!r&&(s===a||t!==l))},Gs={duration:200,easing:"ease"},Zs="transform",Ys=Ka.Transition.toString({property:Zs,duration:0,easing:"linear"}),Js={roleDescription:"sortable"};function Qs(t){let{animateLayoutChanges:r=Vs,attributes:n,disabled:a,data:o,getNewIndex:s=Ws,id:i,strategy:l,resizeObserverConfig:c,transition:d=Gs}=t;const{items:u,containerId:m,activeIndex:p,disabled:f,disableTransforms:h,sortedRects:g,overIndex:b,useDragOverlay:w,strategy:v}=(0,e.useContext)(Hs),x=function(e,t){var r,n;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(r=null==e?void 0:e.draggable)?r:t.draggable,droppable:null!=(n=null==e?void 0:e.droppable)?n:t.droppable}}(a,f),y=u.indexOf(i),E=(0,e.useMemo)((()=>({sortable:{containerId:m,index:y,items:u},...o})),[m,o,y,u]),k=(0,e.useMemo)((()=>u.slice(u.indexOf(i))),[u,i]),{rect:N,node:S,isOver:A,setNodeRef:D}=function(t){let{data:r,disabled:n=!1,id:a,resizeObserverConfig:o}=t;const s=Ga("Droppable"),{active:i,dispatch:l,over:c,measureDroppableContainers:d}=(0,e.useContext)(Ns),u=(0,e.useRef)({disabled:n}),m=(0,e.useRef)(!1),p=(0,e.useRef)(null),f=(0,e.useRef)(null),{disabled:h,updateMeasurementsFor:g,timeout:b}={..._s,...o},w=qa(null!=g?g:a),v=us({callback:(0,e.useCallback)((()=>{m.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),f.current=null}),b)):m.current=!0}),[b]),disabled:h||!i}),x=(0,e.useCallback)(((e,t)=>{v&&(t&&(v.unobserve(t),m.current=!1),e&&v.observe(e))}),[v]),[y,E]=Ua(x),k=qa(r);return(0,e.useEffect)((()=>{v&&y.current&&(v.disconnect(),m.current=!1,v.observe(y.current))}),[y,v]),za((()=>(l({type:co.RegisterDroppable,element:{id:a,key:s,disabled:n,node:y,rect:p,data:k}}),()=>l({type:co.UnregisterDroppable,key:s,id:a}))),[a]),(0,e.useEffect)((()=>{n!==u.current.disabled&&(l({type:co.SetDroppableDisabled,id:a,key:s,disabled:n}),u.current.disabled=n)}),[a,s,n,l]),{active:i,rect:p,isOver:(null==c?void 0:c.id)===a,node:y,over:c,setNodeRef:E}}({id:i,data:E,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:k,...c}}),{active:C,activatorEvent:I,activeNodeRect:L,attributes:T,setNodeRef:M,listeners:R,isDragging:_,over:O,setActivatorNodeRef:B,transform:P}=function(t){let{id:r,data:n,disabled:a=!1,attributes:o}=t;const s=Ga("Droppable"),{activators:i,activatorEvent:l,active:c,activeNodeRect:d,ariaDescribedById:u,draggableNodes:m,over:p}=(0,e.useContext)(Ns),{role:f=Rs,roleDescription:h="draggable",tabIndex:g=0}=null!=o?o:{},b=(null==c?void 0:c.id)===r,w=(0,e.useContext)(b?Is:Ms),[v,x]=Ua(),[y,E]=Ua(),k=function(t,r){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{let{eventName:n,handler:a}=t;return e[n]=e=>{a(e,r)},e}),{})),[t,r])}(i,r),N=qa(n);return za((()=>(m.set(r,{id:r,key:s,node:v,activatorNode:y,data:N}),()=>{const e=m.get(r);e&&e.key===s&&m.delete(r)})),[m,r]),{active:c,activatorEvent:l,activeNodeRect:d,attributes:(0,e.useMemo)((()=>({role:f,tabIndex:g,"aria-disabled":a,"aria-pressed":!(!b||f!==Rs)||void 0,"aria-roledescription":h,"aria-describedby":u.draggable})),[a,f,g,b,h,u.draggable]),isDragging:b,listeners:a?void 0:k,node:v,over:p,setNodeRef:x,setActivatorNodeRef:E,transform:w}}({id:i,data:E,attributes:{...Js,...n},disabled:x.draggable}),j=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,e.useMemo)((()=>e=>{r.forEach((t=>t(e)))}),r)}(D,M),z=Boolean(C),F=z&&!h&&Ps(p)&&Ps(b),q=!w&&_,H=q&&F?P:null,U=F?null!=H?H:(null!=l?l:v)({rects:g,activeNodeRect:L,activeIndex:p,overIndex:b,index:y}):null,W=Ps(p)&&Ps(b)?s({id:i,items:u,activeIndex:p,overIndex:b}):y,V=null==C?void 0:C.id,G=(0,e.useRef)({activeId:V,items:u,newIndex:W,containerId:m}),Z=u!==G.current.items,Y=r({active:C,containerId:m,isDragging:_,isSorting:z,id:i,index:y,items:u,newIndex:G.current.newIndex,previousItems:G.current.items,previousContainerId:G.current.containerId,transition:d,wasDragging:null!=G.current.activeId}),J=function(t){let{disabled:r,index:n,node:a,rect:o}=t;const[s,i]=(0,e.useState)(null),l=(0,e.useRef)(n);return za((()=>{if(!r&&n!==l.current&&a.current){const e=o.current;if(e){const t=ko(a.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&i(r)}}n!==l.current&&(l.current=n)}),[r,n,a,o]),(0,e.useEffect)((()=>{s&&i(null)}),[s]),s}({disabled:!Y,index:y,node:S,rect:N});return(0,e.useEffect)((()=>{z&&G.current.newIndex!==W&&(G.current.newIndex=W),m!==G.current.containerId&&(G.current.containerId=m),u!==G.current.items&&(G.current.items=u)}),[z,W,m,u]),(0,e.useEffect)((()=>{if(V===G.current.activeId)return;if(V&&!G.current.activeId)return void(G.current.activeId=V);const e=setTimeout((()=>{G.current.activeId=V}),50);return()=>clearTimeout(e)}),[V]),{active:C,activeIndex:p,attributes:T,data:E,rect:N,index:y,newIndex:W,items:u,isOver:A,isSorting:z,isDragging:_,listeners:R,node:S,overIndex:b,over:O,setNodeRef:j,setActivatorNodeRef:B,setDroppableNodeRef:D,setDraggableNodeRef:M,transform:null!=J?J:U,transition:J||Z&&G.current.newIndex===y?Ys:q&&!Qa(I)||!d?void 0:z||Y?Ka.Transition.toString({...d,property:Zs}):void 0}}Uo.Down,Uo.Right,Uo.Up,Uo.Left;const Xs=({article:t,section:r,sections:n,setShowArticles:a,isAllowComments:o})=>{const{modified:s,comment_count:i}=t,l=wp?.hooks?.applyFilters("wedocs_check_is_admin_restricted_article",!1,t?.id);return r?(0,e.createElement)("div",{key:r?.id,className:"flex items-center bg-white border-b border-[#D9D9D9] py-4"},(0,e.createElement)("div",{className:"flex items-center w-full group"},(0,e.createElement)("div",{className:"min-w-0 flex-1 sm:flex sm:items-center sm:justify-between"},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("div",{className:"flex items-center pr-5"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"21",fill:"none",className:"w-auto pr-3.5"},(0,e.createElement)("path",{strokeWidth:"2",stroke:"#6b7280",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 10.02h6m-6 4h6m2 5H3a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707v9.586a2 2 0 0 1-2 2z"})),(0,e.createElement)("a",{target:"_blank",href:Boolean(parseInt(wp?.hooks?.applyFilters("wedocs_check_is_admin_restricted_article",!1,t?.id)))?`${window.location.origin}/?p=${t?.id}`:`${weDocsAdminVars.adminUrl}post.php?post=${t?.id}&action=edit`,className:(Boolean(parseInt(l))?"":"mr-4")+" flex items-center flex-shrink-0 text-base group font-medium text-gray-700 !shadow-none",rel:"noreferrer"},(0,e.createElement)("div",{className:"tooltip mr-6 cursor-pointer before:max-w-xl flex items-center flex-shrink-0 text-base font-medium text-gray-700 !shadow-none z-[9999]","data-tip":gt().decode((0,ft.__)(t?.title?.rendered,"wedocs"))},(0,e.createElement)("span",{className:"hover:underline group-hover:text-black",dangerouslySetInnerHTML:{__html:pt(t?.title?.rendered)}})),"draft"===t?.status&&(0,e.createElement)("div",{className:"docs-draft-status font-medium text-sm text-gray-800 leading-5 bg-[#E3E5E7] rounded-[42px] py-0.5 px-2.5 mr-5"},(0,ft.__)("Draft","wedocs")),!Boolean(parseInt(l))&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(La,{type:"article",article:t,sections:n,docId:r?.parent,defaultSection:r,setShowArticles:a,className:"hidden group-hover:block mr-4"},(0,e.createElement)("span",{className:"tooltip cursor-pointer","data-tip":(0,ft.__)("Quick Edit","wedocs")},(0,e.createElement)("svg",{width:"22",fill:"none",height:"22",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",className:"tooltip cursor-pointer stroke-gray-300 hover:stroke-indigo-700 -mt-[3px]"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})))),(0,e.createElement)("div",{className:"tooltip cursor-pointer flex items-center mr-0.5","data-tip":(0,ft.__)("Edit","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",className:"hidden group-hover:block stroke-gray-300 hover:stroke-indigo-700"},(0,e.createElement)("path",{d:"M13.303 1.322a2.4 2.4 0 1 1 3.394 3.394l-.951.951-3.394-3.394.951-.951zm-2.648 2.649L.6 14.025v3.394h3.394L14.049 7.365l-3.394-3.394z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,e.createElement)("div",{className:"tooltip cursor-pointer flex items-center","data-tip":(0,ft.__)("View on Web","wedocs")},(0,e.createElement)("a",{target:"_blank",className:"hidden group-hover:block !shadow-none",rel:"noreferrer",href:t?.link},(0,e.createElement)("svg",{className:"hidden group-hover:block stroke-gray-300 hover:stroke-indigo-700",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M7.118 3.5H3.452c-1.013 0-1.833.821-1.833 1.833V14.5c0 1.012.821 1.833 1.833 1.833h9.167c1.012 0 1.833-.821 1.833-1.833v-3.667m-3.667-9.167h5.5m0 0v5.5m0-5.5l-9.167 9.167",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))))),(0,e.createElement)("div",{className:"flex items-center gap-5 flex-shrink-0 mt-4 sm:mt-0 sm:ml-5"},(0,e.createElement)("div",{className:"flex items-center gap-10"},wp?.hooks?.applyFilters("wedocs_article_privacy_action",[],t?.id),("on"===o||!Boolean(o))&&(0,e.createElement)("div",{className:"article-comments flex gap-2 items-center"},(0,e.createElement)("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6 9.01904H6.01M10 9.01904H10.01M14 9.01904H14.01M19 9.01904C19 13.4373 14.9706 17.019 10 17.019C8.46073 17.019 7.01172 16.6756 5.74467 16.0701L1 17.019L2.39499 13.2991C1.51156 12.0614 1 10.5933 1 9.01904C1 4.60077 5.02944 1.01904 10 1.01904C14.9706 1.01904 19 4.60077 19 9.01904Z",stroke:"#6B7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("p",{className:"comments-counter font-medium text-sm text-[#6B7280]"},i)),wp?.hooks?.applyFilters("wedocs_article_contributors","",t?.id),(0,e.createElement)("div",{className:"article-updated-date w-44 text-sm text-[#969696]"},(0,ft.sprintf)((0,ft.__)("Updated on %s","wedocs"),(()=>{const e=new Date(s);return e?.toLocaleDateString("en-US",{day:"numeric",month:"short",year:"numeric"})})))))),(0,e.createElement)("div",{className:"ml-8 flex-shrink-0 w-5 h-5"},!Boolean(parseInt(wp?.hooks?.applyFilters("wedocs_check_is_admin_restricted_article",!1,t?.id)))&&(0,e.createElement)(Ta,{type:"article",doc:t,section:r,sections:n,setShowArticles:a})))):null},Ks=({sections:t,className:r,children:n,defaultSection:a,docId:o,setShowArticles:s})=>{const i=(0,bt.useRef)(null),[l,c]=(0,bt.useState)(!1),[d,u]=(0,bt.useState)(a?.id||""),[m,p]=(0,bt.useState)({title:{raw:""},parent:d?parseInt(d):"",status:"publish"}),[f,h]=(0,bt.useState)({title:!1,sectionId:!1}),g=(0,ut.useSelect)((e=>e(mt.A).getSectionArticles(parseInt(d))),[]),[b,w]=(0,bt.useState)(!1),v=()=>{c(!1)},x=e=>{p({...m,status:e})};return(0,bt.useEffect)((()=>{p({...m,parent:d}),h({...f,sectionId:!1})}),[d]),(0,bt.useEffect)((()=>{p({...m,menu_order:g?.length})}),[g]),Ia(i),(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("button",{type:"button",onClick:e=>{e.stopPropagation(),c(!0)},className:r},n),(0,e.createElement)(dr,{appear:!0,show:l,as:bt.Fragment},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:v},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25 z-[50]"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto z-[100]"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4 text-center"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-full max-w-md transform rounded-2xl bg-white py-6 px-9 text-center align-middle shadow-xl transition-all overflow-visible"},(0,e.createElement)(Fn.Title,{as:"h3",className:"text-lg font-bold text-gray-900 mb-2"},(0,ft.__)("Enter your article title","wedocs")),(0,e.createElement)("p",{className:"text-gray-500 text-base"},(0,ft.__)("Describe what the article is about","wedocs")),(0,e.createElement)("div",{className:"relative mt-6 mb-4"},(0,e.createElement)("input",{type:"text",name:"doc_title",id:"doc-title",placeholder:(0,ft.__)("Type an article name","wedocs"),required:!0,className:(f.title?"!border-red-500 focus:ring-red-500 focus:border-red-500":"!border-gray-300 focus:ring-blue-500 focus:border-blue-500")+" h-11 bg-gray-50 text-gray-900 text-base !rounded-md block w-full !py-2 !px-3 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white",value:m?.title?.raw,onChange:e=>{p({...m,title:{raw:e.target.value}}),h({...f,title:0===e.target.value.length})}}),f.title&&(0,e.createElement)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"},(0,e.createElement)(Wn,{className:"h-5 w-5 text-red-500","aria-hidden":"true"}))),void 0===a&&(0,e.createElement)(Aa,{sections:t,selectSectionId:u,defaultSection:a?.title?.rendered,isFormError:f.sectionId,docId:o}),(0,e.createElement)("div",{className:"mt-6 flex items-center justify-center space-x-3.5"},(0,e.createElement)("button",{className:"bg-white hover:bg-gray-200 text-gray-700 font-medium text-base py-2 px-5 border border-gray-300 rounded-md",onClick:v},(0,ft.__)("Cancel","wedocs")),(0,e.createElement)("div",{className:"doc-publish-btn group relative"},(0,e.createElement)("button",{className:"inline-flex justify-between items-center cursor-pointer bg-indigo-600 hover:bg-indigo-800 text-white font-medium text-base py-2 px-5 rounded-md min-w-[122px]",ref:i,disabled:b,onClick:()=>{""!==m.title.raw?d?(w(!0),(0,ut.dispatch)(mt.A).createDoc(m).then((e=>{p({...m,title:{raw:""}}),u(a?.id||""),s&&s(!0),Hn().fire({title:(0,ft.__)("New article added!","wedocs"),text:(0,ft.__)("New article has been added successfully","wedocs"),icon:"success",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:2e3}),v()})).catch((e=>{Hn().fire({title:(0,ft.__)("Error","wedocs"),text:e.message,icon:"error",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:3e3})})).finally((()=>w(!1)))):h({...f,sectionId:!0}):h({...f,title:!0})}},(0,e.createElement)(bt.Fragment,null,"publish"===m?.status?(0,ft.__)("Publish","wedocs"):(0,ft.__)("Draft","wedocs"),b?(0,ft.__)("ing...","wedocs"):"",(0,e.createElement)(Da,{className:"h-5 w-5 text-white mt-[1px]","aria-hidden":"true"}))),(0,e.createElement)("div",{id:"action-menus",className:"hidden cursor-pointer w-44 z-40 bg-white border border-[#DBDBDB] absolute z-10 shadow right-0 py-1 rounded-md mt-0.5 group-hover:block after:content-[''] before:content-[''] after:absolute before:absolute after:w-[13px] before:w-[70%] before:-right-[1px] after:h-[13px] before:h-3 before:mt-3 after:top-[-7px] before:-top-6 after:right-[1.4rem] after:z-[-1] after:bg-white after:border after:border-[#DBDBDB] after:!rotate-45 after:border-r-0 after:border-b-0"},(0,e.createElement)("span",{onClick:()=>x("draft"),className:"flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},(0,ft.__)("Create and Draft","wedocs")),(0,e.createElement)("span",{onClick:()=>x("publish"),className:"flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},(0,ft.__)("Create and Publish","wedocs"))))))))))))},$s=({article:t,articles:r,isAdmin:n,section:a,sections:o,searchValue:s,setShowArticles:i,isAllowComments:l})=>{const{attributes:c,listeners:d,setNodeRef:u,transform:m,transition:p,isDragging:f}=Qs({id:t?.id}),h={transform:Ka?.Transform?.toString(m),zIndex:f?9999:100,position:f?"relative":"",transition:p},{modified:g,comment_count:b}=t,w=(0,ut.useSelect)((e=>e(mt.A).getArticleChildrens(parseInt(t?.id))),[]),v=w?.filter((e=>e?.title?.rendered?.toLowerCase().includes(s.toLowerCase()))),x=wp?.hooks?.applyFilters("wedocs_check_is_admin_restricted_article",!1,t?.id);return a?(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("div",{className:"flex items-center !bg-white border-b border-[#D9D9D9] py-4",style:h,...c,ref:u},(0,e.createElement)("div",{className:"pr-3.5 py-0.5 cursor-grab"},(0,e.createElement)("svg",{width:"20",height:"21",fill:"none",...d,xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M8.5 7.498c0-1.075-.872-1.947-1.947-1.947s-1.947.872-1.947 1.947.872 1.947 1.947 1.947S8.5 8.573 8.5 7.498zm0 6.894c0-1.075-.872-1.947-1.947-1.947s-1.947.872-1.947 1.947.872 1.947 1.947 1.947S8.5 15.467 8.5 14.392zm3-6.894c0-1.075.871-1.947 1.947-1.947s1.947.872 1.947 1.947-.872 1.947-1.947 1.947S11.5 8.573 11.5 7.498zm3.893 6.894c0-1.075-.872-1.947-1.947-1.947s-1.947.872-1.947 1.947.871 1.947 1.947 1.947 1.947-.872 1.947-1.947z",fill:"#d9d9d9"}))),(0,e.createElement)("div",{className:"flex items-center w-full group"},(0,e.createElement)("div",{className:"min-w-0 flex-1 sm:flex sm:items-center sm:justify-between"},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("div",{className:"flex items-center pr-5"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"21",fill:"none",className:"w-auto pr-3.5"},(0,e.createElement)("path",{strokeWidth:"2",stroke:"#6b7280",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 10.02h6m-6 4h6m2 5H3a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707v9.586a2 2 0 0 1-2 2z"})),(0,e.createElement)("a",{target:"_blank",href:Boolean(parseInt(wp?.hooks?.applyFilters("wedocs_check_is_admin_restricted_article",!1,t?.id)))?`${window.location.origin}/?p=${t?.id}`:`${weDocsAdminVars.adminUrl}post.php?post=${t?.id}&action=edit`,className:"flex items-center flex-shrink-0 text-base group font-medium text-gray-700 !shadow-none",rel:"noreferrer"},(0,e.createElement)("div",{className:"tooltip mr-6 cursor-pointer before:max-w-xl flex items-center flex-shrink-0 text-base font-medium text-gray-700 !shadow-none z-[9999]","data-tip":gt().decode((0,ft.__)(t?.title?.rendered,"wedocs"))},(0,e.createElement)("span",{className:"hover:underline group-hover:text-black",dangerouslySetInnerHTML:{__html:pt(t?.title?.rendered)}}))),"draft"===t?.status&&(0,e.createElement)("div",{className:"docs-draft-status font-medium text-sm text-gray-800 leading-5 bg-[#E3E5E7] rounded-[42px] py-0.5 px-2.5 mr-5"},(0,ft.__)("Draft","wedocs")),(0,e.createElement)(Ks,{sections:r,className:"mr-4",defaultSection:t},(0,e.createElement)("div",{className:"tooltip cursor-pointer flex items-center justify-center w-3.5 h-3.5","data-tip":(0,ft.__)("Create","wedocs")},(0,e.createElement)("span",{className:"flex items-center dashicons dashicons-plus-alt2 hidden group-hover:inline-flex text-2xl font-medium text-[#d1d5db] hover:text-indigo-700"}))),(0,e.createElement)("a",{target:"_blank",href:Boolean(parseInt(wp?.hooks?.applyFilters("wedocs_check_is_admin_restricted_article",!1,t?.id)))?`${window.location.origin}/?p=${t?.id}`:`${weDocsAdminVars.adminUrl}post.php?post=${t?.id}&action=edit`,className:(Boolean(parseInt(x))?"":"mr-4")+" flex items-center flex-shrink-0 text-base group font-medium text-gray-700 !shadow-none",rel:"noreferrer"},!Boolean(parseInt(x))&&(0,e.createElement)(bt.Fragment,null,(0,e.createElement)(La,{article:t,sections:o,className:"hidden group-hover:block mr-4",defaultSection:a,setShowArticles:i},(0,e.createElement)("span",{className:"tooltip cursor-pointer","data-tip":(0,ft.__)("Quick Edit","wedocs")},(0,e.createElement)("svg",{width:"22",fill:"none",height:"22",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",className:"tooltip cursor-pointer stroke-gray-300 hover:stroke-indigo-700 -mt-[3px]"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})))),(0,e.createElement)("div",{className:"tooltip cursor-pointer flex items-center mr-0.5","data-tip":(0,ft.__)("Edit","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",className:"hidden group-hover:block stroke-gray-300 hover:stroke-indigo-700"},(0,e.createElement)("path",{d:"M13.303 1.322a2.4 2.4 0 1 1 3.394 3.394l-.951.951-3.394-3.394.951-.951zm-2.648 2.649L.6 14.025v3.394h3.394L14.049 7.365l-3.394-3.394z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,e.createElement)("div",{className:"tooltip cursor-pointer flex items-center","data-tip":(0,ft.__)("View on Web","wedocs")},(0,e.createElement)("a",{target:"_blank",className:"hidden group-hover:block !shadow-none",rel:"noreferrer",href:t?.link},(0,e.createElement)("svg",{className:"hidden group-hover:block stroke-gray-300 hover:stroke-indigo-700",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M7.118 3.5H3.452c-1.013 0-1.833.821-1.833 1.833V14.5c0 1.012.821 1.833 1.833 1.833h9.167c1.012 0 1.833-.821 1.833-1.833v-3.667m-3.667-9.167h5.5m0 0v5.5m0-5.5l-9.167 9.167",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))))),(0,e.createElement)("div",{className:"flex items-center gap-5 flex-shrink-0 mt-4 sm:mt-0 sm:ml-5"},(0,e.createElement)("div",{className:"flex items-center gap-10"},wp?.hooks?.applyFilters("wedocs_article_privacy_action",[],t?.id),("on"===l||!Boolean(l))&&(0,e.createElement)("div",{className:"article-comments flex gap-2 items-center"},(0,e.createElement)("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6 9.01904H6.01M10 9.01904H10.01M14 9.01904H14.01M19 9.01904C19 13.4373 14.9706 17.019 10 17.019C8.46073 17.019 7.01172 16.6756 5.74467 16.0701L1 17.019L2.39499 13.2991C1.51156 12.0614 1 10.5933 1 9.01904C1 4.60077 5.02944 1.01904 10 1.01904C14.9706 1.01904 19 4.60077 19 9.01904Z",stroke:"#6B7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("p",{className:"comments-counter font-medium text-sm text-[#6B7280]"},b)),wp?.hooks?.applyFilters("wedocs_article_contributors","",t?.id),(0,e.createElement)("div",{className:"article-updated-date w-44 text-sm text-[#969696]"},(0,ft.sprintf)((0,ft.__)("Updated on %s","wedocs"),(()=>{const e=new Date(g);return e?.toLocaleDateString("en-US",{day:"numeric",month:"short",year:"numeric"})})))))),(0,e.createElement)("div",{className:"ml-8 flex-shrink-0 w-5 h-5"},!Boolean(parseInt(wp?.hooks?.applyFilters("wedocs_check_is_admin_restricted_article",!1,t?.id)))&&(0,e.createElement)(Ta,{type:"article",doc:t,section:a,sections:o,setShowArticles:i})))),!f&&v?.length>0&&(0,e.createElement)("div",{style:h,className:"my-1 article-children pl-4 sm:pl-16 bg-white"},v?.map((n=>(0,e.createElement)(Xs,{section:t,sections:r,key:n.id,article:n,setShowArticles:i,isAllowComments:l}))))):null},ei=({setItems:t,children:r,setNeedSortingStatus:n})=>{const a=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,e.useMemo)((()=>[...r].filter((e=>null!=e))),[...r])}((o=es,s={activationConstraint:{delay:150,tolerance:5}},(0,e.useMemo)((()=>({sensor:o,options:null!=s?s:{}})),[o,s])));var o,s;return(0,e.createElement)(Ts,{sensors:a,collisionDetection:go,onDragEnd:e=>{const{active:r,over:a}=e;r?.id!==a?.id&&t((e=>{const t=e.find((e=>e?.id===r?.id)),o=e.find((e=>e?.id===a?.id)),s=e.indexOf(t),i=e.indexOf(o),l=Os(e,s,i);return l&&(0,ut.dispatch)(mt.A)?.updateNeedSortingStatus({need_sortable_status:!0})?.then((e=>{n(e?.needSorting)})),l}))},class:"z-10"},r)};var ti=a(387);const ri=({docs:t,section:r,sections:n,searchValue:a})=>{const o=weDocsAdminVars?.hasManageCap,{id:s,title:i}=r,[l,c]=(0,bt.useState)(s===n?.[0]?.id),{attributes:d,listeners:u,setNodeRef:m,transform:p,transition:f,isDragging:h}=Qs({id:r.id}),g={transform:Ka?.Transform?.toString(p),zIndex:h?9999:0,position:h?"relative":"",transition:f},b=(0,ut.useSelect)((e=>e(mt.A).getSectionArticles(parseInt(s))),[]),w=(0,ut.useSelect)((e=>e(mt.A).getSortingStatus()),[]),v=(0,ut.useSelect)((e=>e(mt.A).getNeedSortingStatus()),[]),x=b?.filter((e=>{let r=e?.title?.rendered?.toLowerCase().includes(a.toLowerCase());return r||t?.map((t=>{if(t?.parent!==e?.id)return;let n=t?.title?.rendered?.toLowerCase().includes(a.toLowerCase());return n?r=n:void 0})),r}))||[],[y,E]=(0,bt.useState)([]),[k,N]=(0,bt.useState)(v);(0,bt.useEffect)((()=>{E([...x])}),[b,a]),(0,bt.useEffect)((()=>{k&&(0,ut.dispatch)(mt.A).updateSortingStatus({sortable_status:w,documentations:y}).then((e=>N(e?.sorting))).catch((e=>{}))}),[k]);const S=(0,ut.useSelect)((e=>e(ti.A).getSettings()),[]),{general:{comments:A}}=S;return(0,e.createElement)("div",{className:"space-y-4 mb-3",style:g,...d},(0,e.createElement)("div",{className:"bg-white shadow sm:rounded-md"},(0,e.createElement)("div",{className:"doc-section cursor-pointer px-4 py-5 sm:px-6"},(0,e.createElement)("div",{className:"flex items-center group",onClick:()=>c(!l)},(0,e.createElement)("div",{className:"pr-3.5 py-0.5 cursor-grab"},(0,e.createElement)("svg",{width:"20",height:"21",fill:"none",...u,ref:m,xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"#d9d9d9",fillRule:"evenodd",d:"M8.5 7.498c0-1.075-.872-1.947-1.947-1.947s-1.947.872-1.947 1.947.872 1.947 1.947 1.947S8.5 8.573 8.5 7.498zm0 6.894c0-1.075-.872-1.947-1.947-1.947s-1.947.872-1.947 1.947.872 1.947 1.947 1.947S8.5 15.467 8.5 14.392zm3-6.894c0-1.075.871-1.947 1.947-1.947s1.947.872 1.947 1.947-.872 1.947-1.947 1.947S11.5 8.573 11.5 7.498zm3.893 6.894c0-1.075-.872-1.947-1.947-1.947s-1.947.872-1.947 1.947.871 1.947 1.947 1.947 1.947-.872 1.947-1.947z"}))),(0,e.createElement)("div",{className:"flex items-center w-full"},(0,e.createElement)("div",{className:"min-w-0 flex-1 sm:flex sm:items-center sm:justify-between"},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("div",{className:"flex items-center text-sm pr-5"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-auto pr-3.5",width:"20",height:"17",fill:"none"},(0,e.createElement)("path",{d:"M1 3.945v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-6l-2-2H3a2 2 0 0 0-2 2z",stroke:"#6b7280",strokeWidth:"2",strokeLinejoin:"round"})),(0,e.createElement)("a",{target:"_blank",href:`${weDocsAdminVars.adminUrl}post.php?post=${s}&action=edit`,className:"tooltip cursor-pointer before:max-w-xl flex items-center flex-shrink-0 text-base font-medium text-black !shadow-none z-[9980]","data-tip":gt().decode((0,ft.__)(i?.rendered,"wedocs")),rel:"noreferrer"},(0,e.createElement)("span",{className:"hover:underline group-hover:text-black",dangerouslySetInnerHTML:{__html:pt(i?.rendered)}}))),(0,e.createElement)("div",{className:(l?"bg-[#00A1E4]":"bg-gray-400")+" article-counter grid place-content-center text-white font-medium text-sm w-7 h-7 group-hover:bg-[#00A1E4] rounded-full"},x.length),"draft"===r?.status&&(0,e.createElement)("div",{className:"docs-draft-status font-medium text-sm text-gray-800 leading-5 bg-[#E3E5E7] rounded-[42px] py-0.5 px-2.5 !ml-5"},(0,ft.__)("Draft","wedocs")),(0,e.createElement)(Ks,{sections:n,className:"ml-6 mr-1",defaultSection:r,setShowArticles:c},(0,e.createElement)("div",{className:"tooltip cursor-pointer flex items-center justify-center w-3.5 h-3.5","data-tip":(0,ft.__)("Create","wedocs")},(0,e.createElement)("span",{className:"flex items-center dashicons dashicons-plus-alt2 hidden group-hover:inline-flex text-2xl font-medium text-[#d1d5db] hover:text-indigo-700"}))),(0,e.createElement)("a",{target:"_blank",className:"ml-4 hidden group-hover:block !shadow-none",rel:"noreferrer",href:`${weDocsAdminVars.adminUrl}post.php?post=${s}&action=edit`},(0,e.createElement)("span",{className:"tooltip cursor-pointer","data-tip":(0,ft.__)("Edit","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",className:"tooltip cursor-pointer stroke-gray-300 hover:stroke-indigo-700"},(0,e.createElement)("path",{d:"M13.303 1.322a2.4 2.4 0 1 1 3.394 3.394l-.951.951-3.394-3.394.951-.951zm-2.648 2.649L.6 14.025v3.394h3.394L14.049 7.365l-3.394-3.394z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("a",{target:"_blank",rel:"noreferrer",href:r?.link,className:"flex items-center flex-shrink-0 text-base font-medium text-black !shadow-none ml-4"},(0,e.createElement)("span",{className:"tooltip cursor-pointer flex items-center","data-tip":(0,ft.__)("View on Web","wedocs")},(0,e.createElement)("svg",{className:"hidden group-hover:block stroke-gray-300 hover:stroke-indigo-700",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M7.118 3.5H3.452c-1.013 0-1.833.821-1.833 1.833V14.5c0 1.012.821 1.833 1.833 1.833h9.167c1.012 0 1.833-.821 1.833-1.833v-3.667m-3.667-9.167h5.5m0 0v5.5m0-5.5l-9.167 9.167",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)(Un,{docId:r.id,type:"section",classes:"ml-4 hidden group-hover:block"},(0,e.createElement)("span",{className:"tooltip cursor-pointer flex items-center","data-tip":(0,ft.__)("Delete","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-5 h-5 stroke-gray-300 hover:stroke-red-700"},(0,e.createElement)("path",{strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})))))),y&&y.length>0&&(0,e.createElement)("div",{className:"ml-5 flex-shrink-0"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:(l?"rotate-90 transform":"")+" group-hover:text-[#00A1E4] h-5 w-5 text-gray-400"},(0,e.createElement)("path",{d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"}))))),l&&!Boolean(h)&&(0,e.createElement)("div",{className:"mt-3 section-article pl-4 sm:pl-6"},y?.length>0?(0,e.createElement)(ei,{setItems:E,setNeedSortingStatus:N},(0,e.createElement)(Us,{items:y,strategy:Fs},y?.map((t=>(0,e.createElement)($s,{key:t.id,article:t,isAdmin:o,section:r,articles:y,sections:n,searchValue:a,setShowArticles:c,isAllowComments:A}))))):null,(0,e.createElement)(Ks,{sections:n,defaultSection:r,setShowArticles:c,className:"py-2.5 px-4 mt-7 mb-2 h-fit inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 text-sm text-white hover:text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},(0,e.createElement)("span",{className:"dashicons dashicons-plus-alt2 w-3.5 h-3.5 mr-3 text-base flex items-center"}),(0,ft.__)("Add article","wedocs"))))))},ni=()=>(0,e.createElement)(lt,{to:"/",className:"inline-flex group items-center text-gray-700 hover:text-indigo-700 focus:shadow-none !font-medium !text-base"},(0,e.createElement)("svg",{width:"35",height:"10",viewBox:"0 0 20 10",fill:"none",className:"pr-3 group-hover:!stroke-indigo-700 stroke-gray-500",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M5 9L1 5M1 5L5 1M1 5L19 5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,ft.__)("All Docs","wedocs"));window.backDocPage=ni;const ai=ni,oi=({parent:t,order:r,className:n,children:a})=>{const o=(0,bt.useRef)(null),[s,i]=(0,bt.useState)(!1),[l,c]=(0,bt.useState)({title:{raw:""},parent:parseInt(t),status:"publish"}),[d,u]=(0,bt.useState)(!1),[m,p]=(0,bt.useState)(!1),f=()=>{i(!1)},h=e=>{c({...l,status:e})};return(0,bt.useEffect)((()=>{c({...l,menu_order:r})}),[r]),Ia(o),(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("button",{onClick:()=>{i(!0)},className:n},a),(0,e.createElement)(dr,{appear:!0,show:s,as:bt.Fragment},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:f},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25 z-[50]"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto z-[100]"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4 text-center"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-full max-w-md transform overflow-visible rounded-2xl bg-white py-6 px-9 text-center align-middle shadow-xl transition-all"},(0,e.createElement)(Fn.Title,{as:"h3",className:"text-lg font-bold text-gray-900 mb-2"},(0,ft.__)("Enter your section title","wedocs")),(0,e.createElement)("p",{className:"text-gray-500 text-base"},(0,ft.__)("Use concise section titles for better navigation","wedocs"),(0,e.createElement)("br",null),(0,ft.__)("E.g., Getting Started","wedocs")),(0,e.createElement)("div",{className:"relative mt-4 mb-5"},(0,e.createElement)("input",{type:"text",name:"doc_title",id:"doc-title",placeholder:(0,ft.__)("Type a section name","wedocs"),required:!0,className:(d?"!border-red-500 focus:ring-red-500 focus:border-red-500":"!border-gray-300 focus:ring-blue-500 focus:border-blue-500")+" h-11 bg-gray-50 text-gray-900 text-base !rounded-md block w-full !py-2 !px-3 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white",value:l.title.raw,onChange:e=>{c({...l,title:{raw:e.target.value}}),u(0===e.target.value.length)}}),d&&(0,e.createElement)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"},(0,e.createElement)(Wn,{className:"h-5 w-5 text-red-500","aria-hidden":"true"}))),(0,e.createElement)("div",{className:"mt-6 flex items-center justify-center space-x-3.5"},(0,e.createElement)("button",{className:"bg-white hover:bg-gray-200 text-gray-700 font-medium text-base py-2 px-5 border border-gray-300 rounded-md",onClick:f},(0,ft.__)("Cancel","wedocs")),(0,e.createElement)("div",{className:"doc-publish-btn group relative"},(0,e.createElement)("button",{className:"inline-flex justify-between items-center cursor-pointer bg-indigo-600 hover:bg-indigo-800 text-white font-medium text-base py-2 px-5 rounded-md min-w-[122px]",ref:o,disabled:m,onClick:()=>{""!==l.title.raw?(p(!0),(0,ut.dispatch)(mt.A).createDoc(l).then((e=>{c({...l,title:{...l.title,raw:""}}),Hn().fire({title:(0,ft.__)("New section added!","wedocs"),text:(0,ft.__)("New section has been added successfully","wedocs"),icon:"success",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:2e3}),f()})).catch((e=>{Hn().fire({title:(0,ft.__)("Error","wedocs"),text:e.message,icon:"error",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:3e3})})).finally((()=>p(!1)))):u(!0)}},(0,e.createElement)(bt.Fragment,null,"publish"===l?.status?(0,ft.__)("Publish","wedocs"):(0,ft.__)("Draft","wedocs"),m?(0,ft.__)("ing...","wedocs"):"",(0,e.createElement)(Da,{className:"h-5 w-5 text-white mt-[1px]","aria-hidden":"true"}))),(0,e.createElement)("div",{id:"action-menus",className:"hidden cursor-pointer w-44 z-40 bg-white border border-[#DBDBDB] absolute z-10 shadow right-0 py-1 rounded-md mt-0.5 group-hover:block after:content-[''] before:content-[''] after:absolute before:absolute after:w-[13px] before:w-[70%] before:-right-[1px] after:h-[13px] before:h-3 before:mt-3 after:top-[-7px] before:-top-6 after:right-[1.4rem] after:z-[-1] after:bg-white after:border after:border-[#DBDBDB] after:!rotate-45 after:border-r-0 after:border-b-0"},(0,e.createElement)("span",{onClick:()=>h("draft"),className:"flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},(0,ft.__)("Create and Draft","wedocs")),(0,e.createElement)("span",{onClick:()=>h("publish"),className:"flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},(0,ft.__)("Create and Publish","wedocs"))))))))))))},si=({sections:t})=>{const{id:r}=ze(),n=wp.hooks.applyFilters("wedocs_show_documentation_actions",!0);return(0,e.createElement)(e.Fragment,null,n&&(0,e.createElement)("div",{className:"doc-listing-buttons space-x-3.5 mt-10"},(0,e.createElement)(oi,{parent:r,order:t?.length,className:"py-2.5 px-4 h-fit inline-flex items-center rounded-md border border-gray-300 bg-white text-gray-700 hover:text-white hover:bg-indigo-600 px-4 text-sm shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},(0,e.createElement)("span",{className:"dashicons dashicons-plus-alt2 w-3.5 h-3.5 mr-3 text-base flex items-center"}),(0,ft.__)("Add section","wedocs")),(0,e.createElement)(Ks,{sections:t,className:"py-2.5 px-4 h-fit inline-flex items-center rounded-md border border-gray-300 bg-white text-gray-700 hover:text-white hover:bg-indigo-600 px-4 text-sm shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},(0,e.createElement)("span",{className:"dashicons dashicons-plus-alt2 w-3.5 h-3.5 mr-3 text-base flex items-center"}),(0,ft.__)("Add article","wedocs"))))},ii=()=>(0,e.createElement)(e.Fragment,null,[0,1,2,3,4].map(((t,r)=>(0,e.createElement)("div",{key:r,className:"space-y-4 mb-3 animate-pulse bg-white border-b rounded-md hover:bg-gray-50"},(0,e.createElement)("div",{className:"bg-white shadow sm:rounded-md"},(0,e.createElement)("div",{className:"doc-section cursor-pointer px-4 py-6 sm:px-6 flex justify-between"},(0,e.createElement)("div",{className:"flex items-center group space-x-10 mt-0.5"},(0,e.createElement)("div",{className:"flex justify-center space-x-2"},(0,e.createElement)("span",{className:"animate-pulse bg-slate-200 rounded h-4 w-6 border-b hover:bg-slate-300"}),(0,e.createElement)("span",{className:"animate-pulse bg-slate-200 rounded h-4 w-6 border-b hover:bg-slate-300"}),(0,e.createElement)("span",{className:"ml-2 animate-pulse bg-slate-200 rounded h-4 w-52 border-b hover:bg-slate-300"}),(0,e.createElement)("div",{className:"article-counter grid place-content-center text-white font-medium text-sm h-4 w-6 bg-[#00A1E4] rounded"})),(0,e.createElement)("div",{className:"flex items-center group space-x-2"},(0,e.createElement)("span",{className:"animate-pulse bg-slate-200 rounded h-4 w-6 border-b hover:bg-slate-300"}),(0,e.createElement)("span",{className:"animate-pulse bg-slate-200 rounded h-4 w-6 border-b hover:bg-slate-300"}))),(0,e.createElement)("span",{className:"animate-pulse bg-slate-200 rounded h-4 w-6 border-b hover:bg-slate-300"}))))))),li=({handleChange:t,searchValue:r,listing:n})=>((0,bt.useEffect)((()=>{const e=document.createElement("script");return e.src="https://cdn.headwayapp.co/widget.js",e.async=!0,document.body.appendChild(e),e.onload=()=>{window.Headway.init({selector:"#HW_badge_container",account:"7kzePx"})},()=>document.body.removeChild(e)}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{id:"HW_badge_container",onClick:()=>{window.Headway.show()},className:"flex items-center justify-center tooltip ml-auto"}),(0,e.createElement)("div",{className:"flex items-center space-x-4 text-xl"},(0,e.createElement)("a",{target:"_blank",href:"https://wedocs.canny.io/ideas",className:"hover:!text-indigo-800 focus:shadow-none"},(0,ft.__)("💡 Feedback","wedocs")),(0,e.createElement)("div",{className:"relative rounded-md shadow-sm ml-auto"},(0,e.createElement)("input",{type:"text",placeholder:(0,ft.sprintf)((0,ft.__)("Search by %s","wedocs"),n?(0,ft.__)("article name","wedocs"):(0,ft.__)("document name","wedocs")),value:r,onChange:t,className:"w-80 h-10 text-sm focus:!border-indigo-300 !pl-4 !rounded-md !border-gray-300"}),r&&r.length>0&&(0,e.createElement)("div",{onClick:e=>t(e,!0),className:"cursor-pointer absolute inset-y-0 right-9 flex items-center pr-3"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,className:"w-5 h-5 stroke-[#6b7280]"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),(0,e.createElement)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,className:"w-6 h-6 stroke-[#6b7280]"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}))))))),ci=e.forwardRef((function({title:t,titleId:r,...n},a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":r},n),t?e.createElement("title",{id:r},t):null,e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"}))})),di=({className:t,children:r})=>{const[n,a]=(0,bt.useState)(!1),{need_upgrade:o,status:s}=(0,ut.useSelect)((e=>e(ti.A).getUpgradeInfo()),[]);return(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("button",{disabled:"running"===s,onClick:()=>a(!0),className:t},r),(0,e.createElement)(dr,{appear:!0,show:n,as:bt.Fragment},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:()=>a(!1)},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25 z-[50]"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto z-[100]"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-[512px] transform overflow-hidden rounded-2xl bg-white py-6 px-9 align-middle shadow-xl transition-all"},(0,e.createElement)("div",{className:"sm:flex sm:items-start"},(0,e.createElement)("div",{className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-[#E7E6FF] sm:mx-0 sm:h-10 sm:w-10"},(0,e.createElement)("svg",{width:"19",height:"19",fill:"none"},(0,e.createElement)("path",{d:"M13.085 4.491c0 1.928-1.542 3.491-3.443 3.491S6.199 6.419 6.199 4.491 7.741 1 9.642 1s3.443 1.563 3.443 3.491z",stroke:"#4f46e5",strokeWidth:"2",strokeLinejoin:"round"}),(0,e.createElement)("mask",{id:"A",fill:"#fff"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M14.997 16.756a3.45 3.45 0 0 0 2.983-.995 3.57 3.57 0 0 0 0-4.996 3.45 3.45 0 0 0-4.927 0 3.56 3.56 0 0 0-.981 3.026L10.05 15.84c-.123.124-.192.293-.192.469v2.03c0 .366.293.662.653.662h2.002a.65.65 0 0 0 .462-.194l2.022-2.05zm-.045-1.36c-.225-.061-.465.004-.63.171l-2.079 2.108h-1.079v-1.094l2.079-2.108a.67.67 0 0 0 .169-.638c-.193-.737-.006-1.556.564-2.135a2.16 2.16 0 0 1 3.081 0c.85.863.85 2.262 0 3.124a2.16 2.16 0 0 1-2.105.572z"})),(0,e.createElement)("g",{fill:"#4f46e5"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M14.997 16.756a3.45 3.45 0 0 0 2.983-.995 3.57 3.57 0 0 0 0-4.996 3.45 3.45 0 0 0-4.927 0 3.56 3.56 0 0 0-.981 3.026L10.05 15.84c-.123.124-.192.293-.192.469v2.03c0 .366.293.662.653.662h2.002a.65.65 0 0 0 .462-.194l2.022-2.05zm-.045-1.36c-.225-.061-.465.004-.63.171l-2.079 2.108h-1.079v-1.094l2.079-2.108a.67.67 0 0 0 .169-.638c-.193-.737-.006-1.556.564-2.135a2.16 2.16 0 0 1 3.081 0c.85.863.85 2.262 0 3.124a2.16 2.16 0 0 1-2.105.572z"}),(0,e.createElement)("path",{d:"M14.997 16.756l.591-3.882-1.98-.302-1.407 1.426 2.796 2.757zm2.983-5.991l-2.797 2.757.002.002 2.795-2.758zm-5.909 3.026l2.795 2.758 1.376-1.395-.287-1.938-3.885.575zM10.05 15.84l-2.795-2.758h-.001l2.796 2.758zm4.902-.443l-1.028 3.79.006.002 1.022-3.792zm-2.709 2.28v3.927h1.643l1.153-1.17-2.796-2.757zm-1.079 0H7.237v3.927h3.927v-3.927zm0-1.094l-2.796-2.758-1.131 1.147v1.611h3.927zm2.248-2.747l-3.799.996.001.005 3.797-1.001zm3.645-2.135l2.797-2.756-.003-.003-2.795 2.759zm-2.651 8.938c2.255.343 4.644-.369 6.37-2.12l-5.592-5.515a.48.48 0 0 1 .404-.13l-1.182 7.764zm6.37-2.12a7.5 7.5 0 0 0-.001-10.512l-5.59 5.517c-.081-.082-.112-.184-.112-.261a.38.38 0 0 1 .111-.259l5.592 5.515zm.001-10.51a7.38 7.38 0 0 0-10.52-.001l5.592 5.515c-.177.18-.486.181-.666-.001l5.594-5.513zm-10.52-.001c-1.722 1.746-2.4 4.13-2.07 6.358l7.769-1.15c.013.086-.01.208-.107.307l-5.592-5.515zm-.981 3.025l-2.022 2.049 5.591 5.516 2.022-2.049-5.591-5.516zm-2.022 2.05c-.853.865-1.323 2.027-1.323 3.226h7.854a3.26 3.26 0 0 1-.939 2.289l-5.592-5.515zm-1.323 3.226v2.03h7.854v-2.03H5.931zm0 2.03c0 2.483 1.999 4.589 4.58 4.589v-7.854a3.27 3.27 0 0 1 3.274 3.265H5.931zm4.58 4.589h2.002v-7.854h-2.002v7.854zm2.002 0c1.232 0 2.403-.497 3.258-1.364l-5.592-5.515a3.28 3.28 0 0 1 2.334-.975v7.854zm3.258-1.364l2.022-2.05-5.592-5.515-2.022 2.05 5.592 5.515zm.208-9.957c-1.603-.435-3.302.036-4.453 1.204l5.592 5.515a3.28 3.28 0 0 1-3.194.861l2.056-7.58zm-4.453 1.204l-2.079 2.108 5.592 5.515 2.079-2.108-5.592-5.515zm.717.939h-1.079v7.854h1.079v-7.854zm2.848 3.927v-1.094H7.237v1.094h7.854zm-1.131 1.664l2.079-2.108-5.592-5.515-2.079 2.108 5.592 5.515zm2.079-2.108c1.146-1.162 1.582-2.837 1.17-4.397l-7.594 2.003a3.26 3.26 0 0 1 .832-3.121l5.592 5.515zm1.172-4.392c.14.533.014 1.16-.438 1.619l-5.592-5.515a6.16 6.16 0 0 0-1.567 5.888l7.597-1.992zm-.438 1.619a1.77 1.77 0 0 1-2.51.001l5.589-5.518c-2.387-2.418-6.283-2.42-8.671.001l5.592 5.515zm-2.513-.002c-.655-.665-.658-1.722.001-2.39l5.592 5.515a6.16 6.16 0 0 0 .002-8.637l-5.595 5.512zm.001-2.39c.46-.466 1.125-.62 1.713-.462l-2.044 7.583c2.042.55 4.323.017 5.924-1.606l-5.592-5.515z",mask:"url(#A)"})),(0,e.createElement)("mask",{id:"B",fill:"#fff"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M14.85 13.939a.97.97 0 0 1 0-1.353c.368-.373.966-.373 1.335 0a.97.97 0 0 1 0 1.353c-.368.373-.966.373-1.335 0z"})),(0,e.createElement)("g",{fill:"#4f46e5"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M14.85 13.939a.97.97 0 0 1 0-1.353c.368-.373.966-.373 1.335 0a.97.97 0 0 1 0 1.353c-.368.373-.966.373-1.335 0z"}),(0,e.createElement)("path",{d:"M17.646 11.182a2.96 2.96 0 0 1 0 4.161l-5.592-5.515c-1.876 1.902-1.876 4.966 0 6.868l5.592-5.515zm0 4.161c-1.17 1.186-3.088 1.186-4.257 0l5.592-5.515c-1.906-1.933-5.021-1.933-6.927 0l5.592 5.515zm-4.257 0a2.96 2.96 0 0 1 0-4.161l5.592 5.515c1.876-1.903 1.876-4.966 0-6.868l-5.592 5.515zm0-4.161c1.17-1.186 3.088-1.186 4.257 0l-5.592 5.515c1.906 1.933 5.021 1.933 6.927 0l-5.592-5.515z",mask:"url(#B)"})),(0,e.createElement)("path",{d:"M8.214 17.482H2a1 1 0 0 1-1-1v-1.278c0-.11.016-.219.061-.319.551-1.227 3.026-3.41 9.179-3.41",stroke:"#4f46e5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,e.createElement)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},(0,e.createElement)(Fn.Title,{as:"h3",className:"text-lg font-medium text-gray-900 mb-2"},(0,ft.__)("Are you sure?","wedocs")),(0,e.createElement)("p",{className:"text-gray-500 text-base"},(0,ft.__)("We recommend backing up your database before upgrading to ensure your data is safe. Are you sure you want to run the upgrade now?","wedocs")),(0,e.createElement)("div",{className:"mt-6 space-x-3.5 text-right"},(0,e.createElement)("button",{className:"bg-white hover:bg-gray-200 text-gray-700 font-medium text-base py-2 px-5 border border-gray-300 rounded-md",onClick:()=>a(!1)},(0,ft.__)("Cancel","wedocs")),(0,e.createElement)("button",{className:"bg-indigo-700 hover:bg-indigo-800 text-white font-medium text-base py-2 px-5 rounded-md",onClick:()=>{(0,ut.dispatch)(ti.A).wedocsUpgrade({upgrade:o}).then((e=>{a(!1)})).catch((e=>{Hn().fire({title:(0,ft.__)("Error","wedocs"),text:e.message,icon:"error",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:3e3})}))}},(0,ft.__)("I'm sure","wedocs"))))))))))))},ui=({status:t})=>{const[r,n]=(0,bt.useState)(!0);return(0,e.createElement)(e.Fragment,null,r&&(0,e.createElement)("div",{className:"border-l-4 border-indigo-600 rounded-md bg-white p-4 mb-7"},(0,e.createElement)("div",{className:"flex space-x-8"},(0,e.createElement)("div",{className:"flex flex-shrink-0 relative items-center"},(0,e.createElement)(ci,{className:"h-5 w-5 mt-0.5 text-indigo-600 bg-white absolute -right-1 -top-1 rounded-full z-[1]","aria-hidden":"true"}),(0,e.createElement)("div",{className:"avatar"},(0,e.createElement)("div",{className:"w-24 h-24 mask mask-squircle"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWxuczp2PSJodHRwczovL3ZlY3RhLmlvL25hbm8iIHdpZHRoPSIyNTciIGhlaWdodD0iMjU3IiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjM2Q3YWZmIiBkPSJNLjE2OC45ODNoMjU2djI1NmgtMjU2eiIvPjxwYXRoIGZpbGw9InVybCgjQikiIGQ9Ik0uMTY4Ljk4M2gyNTZ2MjU2aC0yNTZ6Ii8+PHBhdGggZD0iTTU3LjY4OCAxNTIuMDk0Yy0yMy45MTggMzAuOTM3LTQ4LjMxMiAxNS45MjQtNTcuNTIgNC41NVYuOTgzaDE3NC4xODRjLTI5LjA3OSAyMy43MDktMzQuNDk3IDM1LjIyMy0zNC40OTcgMzUuMjIzcy01Mi4yNyA3Ny4yMTctODIuMTY3IDExNS44ODd6IiBmaWxsPSJ1cmwoI0MpIiBmaWxsLW9wYWNpdHk9Ii4wNiIvPjxwYXRoIGQ9Ik04OS40MDggNTcuMjYxYzM1LjY0My0xLjM0IDUxLjk5LTM5LjkzIDU5LjIyNi01Ni4yNzhILjE2OFYxMTcuMjljOC4zOTctMS4yNTEgMjYuODIyIDMuNDExIDQxLjI3LTkuNjQ3IDEzLjkzNS0xMi41OTYgMTYuODY3LTQ5LjIxMyA0Ny45Ny01MC4zODJ6IiBmaWxsPSJ1cmwoI0QpIi8+PHBhdGggZD0iTTYzLjE5NiA0NS44MDRDOTEuMzU4IDQyLjUyOSAxMDMuMjM5IDE0LjA3MSAxMDUuMjEuOTgzSC4xNjh2ODMuODhjMTMuOTY5IDAgMTcuMzkyLTEzLjAwNiAyMC41MjktMTkuMjI3IDIuMjgyLTQuNTI1IDEwLjAxMS0xNi4wNTUgNDIuNDk5LTE5LjgzM3oiIGZpbGw9InVybCgjRSkiIGZpbGwtb3BhY2l0eT0iLjUxIi8+PHBhdGggZD0iTTExOC42MDUgMTEyLjk1QzE2NC4zMjQgNzMuMjQ2IDE2MC41MDIgMzUuOTExIDE2Mi4zMjYuOTgzaDkzLjg0MnYxMTQuODgzYy0xMy45MzkgMC01MC45MzctMi42MTUtOTkuMzY0IDIzLjg1NC0zOS42MjEgMjEuNjU3LTUyLjY1MS0xNC4yMTktMzguMTk5LTI2Ljc3eiIgZmlsbD0idXJsKCNGKSIgZmlsbC1vcGFjaXR5PSIuNDMiLz48cGF0aCBkPSJNMjE3LjY2NyAyMTQuNTcyYzM2LjE4NS05LjUyMyAzOC41MDEtNDAuNjA3IDM4LjUwMS00MC42MDd2ODMuMDE4aC04My45MjFzMi44MDEtMzEuMTk2IDQ1LjQyLTQyLjQxMXoiIGZpbGw9InVybCgjRykiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNODUuOTQ3IDI1Ni4wMzRjMjIuNTQ0LTExOC43ODEgMTIyLjIxLTE0OC43NzYgMTcwLjIyMS0xNDguOTI1djI4Ljk4NnMtNDcuNDU1IDEyLjgzMi02Mi40OTIgNTEuOTk2Yy0yMS43MTIgNTYuNTQ1LTQzLjQyNCA2Ny45NDMtNDMuNDI0IDY3Ljk0M0g4NS45NDd6IiBmaWxsPSJ1cmwoI0gpIiBmaWxsLW9wYWNpdHk9Ii4wNCIvPjxnIGZpbGw9IiNmZmYiPjxjaXJjbGUgY3g9IjE5MS44MTciIGN5PSI2MS4wMzYiIHI9IjQuMjI2Ii8+PGNpcmNsZSBjeD0iMTIwLjEzIiBjeT0iNDEuMDU0IiByPSIyLjA4NyIvPjwvZz48Y2lyY2xlIGN4PSIzMS4xNzIiIGN5PSIxMDMuODc4IiByPSIzLjE5OCIgZmlsbD0iIzgzYzJmZiIvPjxjaXJjbGUgY3g9IjE2My44NCIgY3k9IjIwMC43MTMiIHI9IjYuMTciIGZpbGw9InVybCgjSSkiLz48Y2lyY2xlIGN4PSIyMTMuODgyIiBjeT0iMTc4LjgyIiByPSI0LjAyMiIgZmlsbD0iIzViOTdmZiIvPjxyZWN0IHg9IjE4Mi44NTEiIHk9IjExMC43NDUiIHdpZHRoPSI3LjA2OSIgaGVpZ2h0PSI3LjA2OSIgcng9IjMiIHRyYW5zZm9ybT0icm90YXRlKDMxNSAxODIuODUxIDExMC43NDUpIiBmaWxsPSJ1cmwoI0opIi8+PHJlY3QgeD0iNzUuMTg2IiB5PSI4MC44NjkiIHdpZHRoPSI5LjU0OSIgaGVpZ2h0PSI5LjU0OSIgcng9IjMiIHRyYW5zZm9ybT0icm90YXRlKDMxNSA3NS4xODYgODAuODY5KSIgZmlsbD0idXJsKCNLKSIvPjxyZWN0IHg9IjU0Ljg3MiIgeT0iMTkzLjg1OSIgd2lkdGg9IjExLjYxOSIgaGVpZ2h0PSIxMS42MTkiIHJ4PSIzIiB0cmFuc2Zvcm09InJvdGF0ZSgzMTUgNTQuODcyIDE5My44NTkpIiBmaWxsPSJ1cmwoI0wpIi8+PGcgZmlsdGVyPSJ1cmwoI0EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMzQuNTg3IDE4Mi4yMzlIODMuOTE5di02OC4xNzRjLjAyNi0yMS40NDYgMTcuNTk2LTM4LjgyOCAzOS4yODMtMzguODU0aDExLjM4NWMyMS42ODMuMDMgMzkuMjU4IDE3LjQwNyAzOS4yODQgMzguODU0djI5LjMyMWMtLjAyNiAyMS40NDYtMTcuNTk3IDM4LjgyNy0zOS4yODQgMzguODUzem0tMzkuODItMTAuNzI3aDM5LjgyYzE1LjctLjAyMiAyOC40MTktMTIuNTk4IDI4LjQzNi0yOC4xMjJ2LTI5LjMyMWMtLjAyMi0xNS41MjMtMTIuNzQtMjguMS0yOC40MzYtMjguMTIyaC0xMS4zODVjLTE1LjY5NS4wMTctMjguNDE0IDEyLjU5OC0yOC40MzUgMjguMTIydjU3LjQ0M3ptNDYuNjUxLTI5LjQyMWgtMzEuMTQ1Yy0uMDk1IDAtLjE3Ny4wNzgtLjE3Ny4xNzd2Ny41NzRjMCAuMDk5LjA3OC4xNzcuMTc3LjE3N2gzMS4xNDVjLjA5OSAwIC4xNzYtLjA3OC4xNzYtLjE3N3YtNy41NzRjMC0uMDk5LS4wNzctLjE3Ny0uMTc2LS4xNzd6bS0zMS4xNDUtMTUuOTg3aDM3LjIzNmMuMDk4IDAgLjE3Ni4wNzcuMTc2LjE3NnY3LjU3NWMwIC4wOTgtLjA3OC4xNzYtLjE3Ni4xNzZoLTM3LjIzNmMtLjA5OSAwLS4xNzctLjA3OC0uMTc3LS4xNzZ2LTcuNTc1YS4xOC4xOCAwIDAgMSAuMTc3LS4xNzZ6bTIwLjU2LTE1Ljk4OGgtMjAuNTZhLjE4LjE4IDAgMCAwLS4xNzcuMTc2djcuNTc1YzAgLjA5OS4wNzguMTc2LjE3Ny4xNzZoMjAuNTZjLjA5OSAwIC4xNzYtLjA3Ny4xNzYtLjE3NnYtNy41NzVjMC0uMDk5LS4wNzctLjE3Ni0uMTc2LS4xNzZ6IiBmaWxsPSIjZmZmIi8+PC9nPjxkZWZzPjxmaWx0ZXIgaWQ9IkEiIHg9IjYzLjkxOSIgeT0iNTkuMjExIiB3aWR0aD0iMTI5Ljk1MiIgaGVpZ2h0PSIxNDcuMDI4IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJBIi8+PGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9IkIiLz48ZmVPZmZzZXQgZHk9IjQiLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPjxmZUNvbXBvc2l0ZSBpbjI9IkIiIG9wZXJhdG9yPSJvdXQiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjcgMCIvPjxmZUJsZW5kIGluMj0iQSIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIi8+PC9maWx0ZXI+PGxpbmVhckdyYWRpZW50IGlkPSJCIiB4MT0iNzEuNTY4IiB5MT0iLTEwNy40NDQiIHgyPSIxMjguMTY4IiB5Mj0iMjU2Ljk4MyIgeGxpbms6aHJlZj0iI00iPjxzdG9wIHN0b3AtY29sb3I9IiMzY2JlZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyYzZlZmYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iQyIgeDE9IjEzMS4zNyIgeTE9IjE3MC40NjgiIHgyPSI5MS4wNjMiIHkyPSI0NC43MjEiIHhsaW5rOmhyZWY9IiNNIj48c3RvcCBzdG9wLWNvbG9yPSIjZmZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDA5NGZmIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9IkQiIHgxPSI3NC40MDEiIHkxPSIuOTgzIiB4Mj0iNzQuNDAxIiB5Mj0iMTE3LjI5IiB4bGluazpocmVmPSIjTSI+PHN0b3Agc3RvcC1jb2xvcj0iIzNjYzFmZiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzNjOWJmZiIgc3RvcC1vcGFjaXR5PSIuMjEiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iRSIgeDE9Ii04LjM2MiIgeTE9Ijc0LjMzMSIgeDI9IjExNi4xMyIgeTI9Ii45ODMiIHhsaW5rOmhyZWY9IiNNIj48c3RvcCBzdG9wLWNvbG9yPSIjM2Q2OWZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjM2NhZGZmIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9IkYiIHgxPSIxODQuNTI5IiB5MT0iLjk4MyIgeDI9IjEyOS41MzEiIHkyPSIxMDUuNDc2IiB4bGluazpocmVmPSIjTSI+PHN0b3Agc3RvcC1jb2xvcj0iIzNjZjNmZiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzNjOWJmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9IkciIHgxPSIxNjUuNDMzIiB5MT0iMjQ2LjU1OCIgeDI9IjI3NC43MDEiIHkyPSIxOTQuNTkxIiB4bGluazpocmVmPSIjTSI+PHN0b3Agc3RvcC1jb2xvcj0iIzNjYWRmZiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzViODBmZiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJIIiB4MT0iNzIuMTI0IiB5MT0iMjM3LjMzMyIgeDI9IjI4Mi45MzEiIHkyPSIxMjMuOTcxIiB4bGluazpocmVmPSIjTSI+PHN0b3Agc3RvcC1jb2xvcj0iI2ZmZiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzNjYWRmZiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJJIiB4MT0iMTYzLjg0IiB5MT0iMTk0LjU0MyIgeDI9IjE2My44NCIgeTI9IjIxMC42NzEiIHhsaW5rOmhyZWY9IiNNIj48c3RvcCBzdG9wLWNvbG9yPSIjYzBkZGZkIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjYzBkZGZkIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iSiIgeDE9IjE4Mi44NTEiIHkxPSIxMTcuODE0IiB4Mj0iMTg5LjkxOSIgeTI9IjExMC43NDUiIHhsaW5rOmhyZWY9IiNNIj48c3RvcCBzdG9wLWNvbG9yPSIjZmY1MGMzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmY5NGMxIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9IksiIHgxPSI3NS4xODYiIHkxPSI5MC40MTgiIHgyPSI4NC43MzUiIHkyPSI4MC44NjkiIHhsaW5rOmhyZWY9IiNNIj48c3RvcCBzdG9wLWNvbG9yPSIjNTk2ZWZkIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjYzhiZGZmIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9IkwiIHgxPSI1NC44NzIiIHkxPSIyMDUuNDc4IiB4Mj0iNjYuNDkxIiB5Mj0iMTkzLjg1OSIgeGxpbms6aHJlZj0iI00iPjxzdG9wIHN0b3AtY29sb3I9IiMxNmNmODkiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNhZGU2OTYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iTSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiLz48L2RlZnM+PC9zdmc+Cg==",alt:(0,ft.__)("Wedocs Logo","wedocs")})))),(0,e.createElement)("div",{className:"ml-3 w-full"},(0,e.createElement)("div",{className:"flex justify-between items-center"},(0,e.createElement)("h3",{className:"text-base font-semibold"},(0,ft.__)("weDocs Data Update Required","wedocs")),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:()=>n(!1),fill:"#4F46E5",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",className:"w-6 h-6 text-white cursor-pointer"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))),(0,e.createElement)("div",{className:"mt-2 text-base"},(0,e.createElement)("p",null,(0,ft.__)("A database upgrade is required. If you don't upgrade, you may experience unexpected behaviour while using weDocs.","wedocs"))),(0,e.createElement)("div",{className:"mt-4"},(0,e.createElement)("div",{className:"-mx-1 -mt-1 flex"},(0,e.createElement)(di,{className:"px-2 py-1.5 h-fit inline-flex items-center rounded-md border border-transparent bg-indigo-600 ease-in-out duration-200 px-4 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-75 disabled:hover:bg-indigo-600"},(0,ft.__)("Updat"+("running"===t?"ing...":"e"),"wedocs"))))))))},mi=()=>(0,e.createElement)("div",{className:"w-full mt-7"},(0,e.createElement)("div",{className:"shadow sm:overflow-hidden sm:rounded-md"},(0,e.createElement)("div",{className:"space-y-6 h-[80vh] flex justify-center align-center bg-white px-4 py-5 sm:p-6"},(0,e.createElement)("div",{className:"w-[600px] text-center self-center mt-1 px-6 py-12"},(0,e.createElement)("h2",{className:"mb-6"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"252",height:"95",fill:"none",className:"mx-auto mb-6"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M89.147 94.491h44.489c19.042-.023 34.469-15.284 34.492-34.115V34.63C168.105 15.8 152.674.542 133.636.516h-9.997C104.597.538 89.169 15.8 89.147 34.63v59.86zm44.489-9.419H98.671V34.634c.019-13.63 11.187-24.677 24.968-24.692h9.997c13.781.019 24.948 11.062 24.967 24.692V60.38c-.015 13.63-11.183 24.673-24.967 24.692z",fill:"#4f46e5"}),(0,e.createElement)("path",{d:"M112.286 59.238h27.347c.086 0 .154.068.154.155v6.651c0 .087-.068.155-.154.155h-27.347c-.087 0-.155-.068-.155-.155v-6.651c0-.087.072-.155.155-.155zm0-14.035h32.694c.087 0 .155.068.155.155v6.651c0 .087-.068.155-.155.155h-32.694c-.087 0-.155-.068-.155-.155v-6.651c0-.083.072-.155.155-.155zm0-14.039h18.052c.087 0 .155.068.155.155v6.651c0 .087-.068.155-.155.155h-18.052c-.087 0-.155-.068-.155-.155v-6.651c0-.083.072-.155.155-.155z",fill:"#000"}),(0,e.createElement)("path",{d:"M47.358 94.491V75.017H6.311c-3.46 0-6.265-2.805-6.265-6.265v-2.641c0-1.161.322-2.298.932-3.285C13.27 42.932 27.016 21.727 39.774 3.206A6.24 6.24 0 0 1 44.917.51h8.021c3.46 0 6.265 2.805 6.265 6.265v57.757H73v10.486H59.202v19.474H47.358zM12.429 64.597h34.996v-53.21h-.808c-10.903 15.761-23.622 35.17-34.188 52.429v.782zm213.884 29.894V75.017h-41.047c-3.46 0-6.265-2.805-6.265-6.265v-2.641a6.25 6.25 0 0 1 .932-3.285c12.292-19.895 26.039-41.099 38.796-59.621A6.24 6.24 0 0 1 223.872.51h8.021c3.46 0 6.265 2.805 6.265 6.265v57.757h13.796v10.486h-13.796v19.474h-11.845zm-34.928-29.894h34.995v-53.21h-.807c-10.903 15.761-23.622 35.17-34.188 52.429v.782z",fill:"#4f46e5"})),(0,e.createElement)("p",{className:"text-[#3B3F4A] font-bold text-2xl mx-auto mb-2"},(0,ft.__)("There’s Noting here...","wedocs")),(0,e.createElement)("p",{className:"text-[#666B79] text-lg mx-auto"},(0,ft.__)("...maybe the page you’re looking for is not found or never existed.","wedocs"))))))),pi=()=>{const{id:t}=ze(),r=(0,ut.useSelect)((e=>e(mt.A).getDocs()),[]),n=r?.find((e=>e?.id===parseInt(t))),a=(0,ut.useSelect)((e=>e(mt.A).getSectionsDocs(parseInt(t))),[]),o=(0,ut.useSelect)((e=>e(mt.A).getLoading()),[]),s=(0,ut.useSelect)((e=>e(mt.A).getSortingStatus()),[]),i=(0,ut.useSelect)((e=>e(mt.A).getNeedSortingStatus()),[]),[l,c]=(0,bt.useState)(""),[d,u]=(0,bt.useState)(i),m=(0,ut.useSelect)((e=>e(mt.A).getDocArticles(parseInt(t))),[]),p=m?.filter((e=>{let t=e?.title?.rendered?.toLowerCase().includes(l.toLowerCase());return t||r?.map((r=>{if(r?.parent!==e?.id)return;let n=r?.title?.rendered?.toLowerCase().includes(l.toLowerCase());return n?t=n:void 0})),t})),{need_upgrade:f,status:h}=(0,ut.useSelect)((e=>e(ti.A).getUpgradeInfo()),[]),g=a?.filter((e=>{const t=[];return p?.forEach((e=>t.includes(e.parent)?"":t.push(e.parent))),t.includes(e.id)?e:e?.title?.rendered?.toLowerCase().includes(l.toLowerCase())}))||[],[b,w]=(0,bt.useState)([]);(0,bt.useEffect)((()=>{w([...g])}),[a,l]);const v=wp.hooks.applyFilters("wedocs_show_documentation_actions",!0),x=(0,ut.useSelect)((e=>e("wedocs/docs").getUserDocIds()),[]),y=Ca(),E=wp.hooks.applyFilters("wedocs_validate_listing_params",!0,x,y,t);return"done"===h&&(0,ut.dispatch)(ti.A).makeUpdateDone().then((e=>{e&&Hn().fire({icon:"success",text:(0,ft.__)("weDocs database has been updated successfully","wedocs"),title:(0,ft.__)("Database Updated!","wedocs"),toast:!0,timer:3e3,position:"bottom-end",showConfirmButton:!1})})).catch((e=>{})),(0,bt.useEffect)((()=>{d&&(0,ut.dispatch)(mt.A).updateSortingStatus({sortable_status:s,documentations:b}).then((e=>u(e?.sorting))).catch((e=>{}))}),[d]),(0,e.createElement)(bt.Fragment,null,E?(0,e.createElement)("div",{className:"docs-section-listing wrap py-5"},!o&&v&&f&&(0,e.createElement)(ui,{status:h}),(0,e.createElement)("div",{className:"flex items-center justify-between mb-7"},(0,e.createElement)(ai,null),(0,e.createElement)(li,{listing:!0,searchValue:l,handleChange:(e,t=!1)=>{c(t?"":e.target.value)}})),(0,e.createElement)(wt,{doc:n}),o&&(0,e.createElement)(ii,null),!o&&(0,e.createElement)(bt.Fragment,null,b.length>0?(0,e.createElement)(ei,{setItems:w,setNeedSortingStatus:u},(0,e.createElement)(Us,{items:b,strategy:Fs},b?.map((t=>(0,e.createElement)(ri,{docs:r,key:t.id,section:t,sections:b,searchValue:l}))))):(0,e.createElement)("div",{className:"space-y-4 mb-3"},(0,e.createElement)("div",{className:"bg-white shadow sm:rounded-md"},(0,e.createElement)("div",{className:"flex items-center cursor-pointer text-base px-4 py-5 sm:px-6"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6 mr-2"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})),(0,ft.__)("No section or article found for this documentation","wedocs"))))),(0,e.createElement)(si,{sections:b})):(0,e.createElement)(mi,null))};function fi({onFocus:t}){let[r,n]=(0,e.useState)(!0),a=jt();return r?e.createElement(gr,{as:"button",type:"button",features:hr.Focusable,onFocus:e=>{e.preventDefault();let r,o=50;r=requestAnimationFrame((function e(){if(o--<=0)r&&cancelAnimationFrame(r);else if(t()){if(cancelAnimationFrame(r),!a.current)return;n(!1)}else r=requestAnimationFrame(e)}))}}):null}const hi=e.createContext(null);function gi({children:t}){let r=e.useRef({groups:new Map,get(e,t){var r;let n=this.groups.get(e);n||(n=new Map,this.groups.set(e,n));let a=null!=(r=n.get(t))?r:0;return n.set(t,a+1),[Array.from(n.keys()).indexOf(t),function(){let e=n.get(t);e>1?n.set(t,e-1):n.delete(t)}]}});return e.createElement(hi.Provider,{value:r},t)}function bi(t){let r=e.useContext(hi);if(!r)throw new Error("You must wrap your component in a <StableCollection>");let n=function(){var t,r,n;let a=null!=(n=null==(r=null==(t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:t.ReactCurrentOwner)?void 0:r.current)?n:null;if(!a)return Symbol();let o=[],s=a;for(;s;)o.push(s.index),s=s.return;return"$."+o.join(".")}(),[a,o]=r.current.get(t,n);return e.useEffect((()=>o),[]),a}var wi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wi||{}),vi=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(vi||{}),xi=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(xi||{});let yi={0(e,t){var r;let n=Ir(e.tabs,(e=>e.current)),a=Ir(e.panels,(e=>e.current)),o=n.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),s={...e,tabs:n,panels:a};if(t.index<0||t.index>n.length-1){let r=xt(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>xt(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===o.length)return s;let a=xt(r,{0:()=>n.indexOf(o[0]),1:()=>n.indexOf(o[o.length-1])});return{...s,selectedIndex:-1===a?e.selectedIndex:a}}let i=n.slice(0,t.index),l=[...n.slice(t.index),...i].find((e=>o.includes(e)));if(!l)return s;let c=null!=(r=n.indexOf(l))?r:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...s,selectedIndex:c}},1(e,t){var r;if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],a=Ir([...e.tabs,t.tab],(e=>e.current)),o=null!=(r=a.indexOf(n))?r:e.selectedIndex;return-1===o&&(o=e.selectedIndex),{...e,tabs:a,selectedIndex:o}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:Ir([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},Ei=(0,e.createContext)(null);function ki(t){let r=(0,e.useContext)(Ei);if(null===r){let e=new Error(`<${t} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,ki),e}return r}Ei.displayName="TabsDataContext";let Ni=(0,e.createContext)(null);function Si(t){let r=(0,e.useContext)(Ni);if(null===r){let e=new Error(`<${t} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Si),e}return r}function Ai(e,t){return xt(t.type,yi,e,t)}Ni.displayName="TabsActionsContext";let Di=e.Fragment,Ci=Et.RenderStrategy|Et.Static,Ii=Dt((function(t,r){var n,a;let o=fr(),{id:s=`headlessui-tabs-tab-${o}`,...i}=t,{orientation:l,activation:c,selectedIndex:d,tabs:u,panels:m}=ki("Tab"),p=Si("Tab"),f=ki("Tab"),h=(0,e.useRef)(null),g=Ut(h,r);Pt((()=>p.registerTab(h)),[p,h]);let b=bi("tabs"),w=u.indexOf(h);-1===w&&(w=b);let v=w===d,x=qt((e=>{var t;let r=e();if(r===Er.Success&&"auto"===c){let e=null==(t=br(h))?void 0:t.activeElement,r=f.tabs.findIndex((t=>t.current===e));-1!==r&&p.change(r)}return r})),y=qt((e=>{let t=u.map((e=>e.current)).filter(Boolean);if(e.key===mr.Space||e.key===mr.Enter)return e.preventDefault(),e.stopPropagation(),void p.change(w);switch(e.key){case mr.Home:case mr.PageUp:return e.preventDefault(),e.stopPropagation(),x((()=>Lr(t,yr.First)));case mr.End:case mr.PageDown:return e.preventDefault(),e.stopPropagation(),x((()=>Lr(t,yr.Last)))}return x((()=>xt(l,{vertical:()=>e.key===mr.ArrowUp?Lr(t,yr.Previous|yr.WrapAround):e.key===mr.ArrowDown?Lr(t,yr.Next|yr.WrapAround):Er.Error,horizontal:()=>e.key===mr.ArrowLeft?Lr(t,yr.Previous|yr.WrapAround):e.key===mr.ArrowRight?Lr(t,yr.Next|yr.WrapAround):Er.Error})))===Er.Success?e.preventDefault():void 0})),E=(0,e.useRef)(!1),k=qt((()=>{var e;E.current||(E.current=!0,null==(e=h.current)||e.focus({preventScroll:!0}),p.change(w),Wt((()=>{E.current=!1})))})),N=qt((e=>{e.preventDefault()})),S=(0,e.useMemo)((()=>({selected:v})),[v]);return Nt({ourProps:{ref:g,onKeyDown:y,onMouseDown:N,onClick:k,id:s,role:"tab",type:Jn(t,h),"aria-controls":null==(a=null==(n=m[w])?void 0:n.current)?void 0:a.id,"aria-selected":v,tabIndex:v?0:-1},theirProps:i,slot:S,defaultTag:"button",name:"Tabs.Tab"})})),Li=Dt((function(t,r){let{defaultIndex:n=0,vertical:a=!1,manual:o=!1,onChange:s,selectedIndex:i=null,...l}=t;const c=a?"vertical":"horizontal",d=o?"manual":"auto";let u=null!==i,m=Ut(r),[p,f]=(0,e.useReducer)(Ai,{selectedIndex:null!=i?i:n,tabs:[],panels:[]}),h=(0,e.useMemo)((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),g=zt(s||(()=>{})),b=zt(p.tabs),w=(0,e.useMemo)((()=>({orientation:c,activation:d,...p})),[c,d,p]),v=qt((e=>(f({type:1,tab:e}),()=>f({type:2,tab:e})))),x=qt((e=>(f({type:3,panel:e}),()=>f({type:4,panel:e})))),y=qt((e=>{E.current!==e&&g.current(e),u||f({type:0,index:e})})),E=zt(u?t.selectedIndex:p.selectedIndex),k=(0,e.useMemo)((()=>({registerTab:v,registerPanel:x,change:y})),[]);Pt((()=>{f({type:0,index:null!=i?i:n})}),[i]),Pt((()=>{if(void 0===E.current||p.tabs.length<=0)return;let e=Ir(p.tabs,(e=>e.current));e.some(((e,t)=>p.tabs[t]!==e))&&y(e.indexOf(p.tabs[E.current]))}));let N={ref:m};return e.createElement(gi,null,e.createElement(Ni.Provider,{value:k},e.createElement(Ei.Provider,{value:w},w.tabs.length<=0&&e.createElement(fi,{onFocus:()=>{var e,t;for(let r of b.current)if(0===(null==(e=r.current)?void 0:e.tabIndex))return null==(t=r.current)||t.focus(),!0;return!1}}),Nt({ourProps:N,theirProps:l,slot:h,defaultTag:Di,name:"Tabs"}))))})),Ti=Dt((function(e,t){let{orientation:r,selectedIndex:n}=ki("Tab.List");return Nt({ourProps:{ref:Ut(t),role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:n},defaultTag:"div",name:"Tabs.List"})})),Mi=Dt((function(t,r){let{selectedIndex:n}=ki("Tab.Panels");return Nt({ourProps:{ref:Ut(r)},theirProps:t,slot:(0,e.useMemo)((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),Ri=Dt((function(t,r){var n,a,o,s;let i=fr(),{id:l=`headlessui-tabs-panel-${i}`,tabIndex:c=0,...d}=t,{selectedIndex:u,tabs:m,panels:p}=ki("Tab.Panel"),f=Si("Tab.Panel"),h=(0,e.useRef)(null),g=Ut(h,r);Pt((()=>f.registerPanel(h)),[f,h]);let b=bi("panels"),w=p.indexOf(h);-1===w&&(w=b);let v=w===u,x=(0,e.useMemo)((()=>({selected:v})),[v]),y={ref:g,id:l,role:"tabpanel","aria-labelledby":null==(a=null==(n=m[w])?void 0:n.current)?void 0:a.id,tabIndex:v?c:-1};return v||null!=(o=d.unmount)&&!o||null!=(s=d.static)&&s?Nt({ourProps:y,theirProps:d,slot:x,defaultTag:"div",features:Ci,visible:v,name:"Tabs.Panel"}):e.createElement(gr,{as:"span",...y})})),_i=Object.assign(Ii,{Group:Li,List:Ti,Panels:Mi,Panel:Ri});const Oi=({classes:t,showPopup:r,children:n})=>(0,e.createElement)(e.Fragment,null,n?(0,e.createElement)("span",{onClick:r},n):(0,e.createElement)("a",{target:"_blank",href:"//wedocs.co/",onClick:r,className:`upgrade-button text-white hover:text-white focus:text-white focus:ring-0 px-4 py-2.5 inline-flex items-center rounded-md bg-[#ff9000] hover:bg-[#cf7500] font-semibold text-sm gap-2.5 ${t||""}`},(0,ft.__)("Upgrade to PRO ","wedocs"),(0,e.createElement)("svg",{className:"crown-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",fill:"#fff",height:"15"},(0,e.createElement)("path",{d:"M19.213 4.116c.003.054-.001.108-.015.162l-1.234 6.255a.56.56 0 0 1-.541.413l-7.402.036h-.003-7.402c-.257 0-.482-.171-.544-.414L.839 4.295a.53.53 0 0 1-.015-.166C.347 3.983 0 3.548 0 3.036c0-.632.528-1.145 1.178-1.145s1.178.514 1.178 1.145a1.13 1.13 0 0 1-.43.884L3.47 5.434c.39.383.932.602 1.486.602.655 0 1.28-.303 1.673-.81l2.538-3.272c-.213-.207-.345-.494-.345-.809C8.822.514 9.351 0 10 0s1.178.514 1.178 1.145c0 .306-.125.584-.327.79l.002.003 2.52 3.281c.393.512 1.02.818 1.677.818a2.11 2.11 0 0 0 1.481-.597l1.554-1.512c-.268-.21-.44-.531-.44-.892 0-.632.528-1.145 1.177-1.145S20 2.405 20 3.036c0 .498-.329.922-.787 1.079zm-1.369 8.575c0-.301-.251-.545-.561-.545H2.779c-.31 0-.561.244-.561.545V14c0 .301.251.546.561.546h14.505c.31 0 .561-.244.561-.546v-1.309z"})))),Bi=({classes:t})=>{const r=[(0,ft.__)("Role-based permission management","wedocs"),(0,ft.__)("Auto & manual content arrangement","wedocs"),(0,ft.__)("Customizable doc & messaging tab","wedocs"),(0,ft.__)("Pre-built & custom colors","wedocs"),(0,ft.__)("Assistant widget and A.I. Powered Chatbot","wedocs")];return(0,e.createElement)("div",{className:`${t} pro-badge-tooltip w-[270px] z-[2000] py-8 px-6 bg-black left-[50%] text-left absolute -translate-x-1/2 translate-y-[4%] rounded-md text-center after:content-[''] before:content[''] before:absolute before:w-full before:h-4 before:left-0 before:-top-4 after:w-4 after:h-4 after:left-1/2 after:top-0.5 after:rounded-sm after:absolute after:-translate-x-1/2 after:-translate-y-1/2 after:rotate-[45deg] after:bg-black`},(0,e.createElement)("h3",{className:"tooltip-header text-white text-sm mb-4 leading-3 font-semibold"},(0,ft.__)("Available in Pro. Unlock & enjoy:","wedocs")),r&&(0,e.createElement)("ul",{className:"text-left mb-7"},r?.map(((t,r)=>(0,e.createElement)("li",{key:r,className:"flex items-center text-sm space-x-2.5 font-normal leading-6 whitespace-break-spaces"},(0,e.createElement)("span",{className:"tooltip-check"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"8",fill:"#139F84"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M8.927 1.134c-.33-.33-.865-.33-1.195 0L3.374 5.492 1.897 4.015c-.33-.33-.865-.33-1.195 0s-.33.865 0 1.195l2.075 2.075c.33.33.865.33 1.195 0l4.955-4.955c.33-.33.33-.865 0-1.195zM.992 4.853c.01.012.02.024.031.035l2.075 2.075a.39.39 0 0 0 .552 0l4.955-4.955a.39.39 0 0 0 .031-.517.39.39 0 0 1-.031.517L3.65 6.963a.39.39 0 0 1-.552 0L1.023 4.888c-.011-.011-.022-.023-.031-.035z"}))),(0,e.createElement)("span",null,t))))),(0,e.createElement)(Oi,null))},Pi=({classes:t})=>{const[r,n]=(0,bt.useState)(!1);return(0,e.createElement)("span",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),className:`pro-badge cursor-pointer relative text-white text-[10px] py-[3px] px-[5px] leading-none ml-1.5 ${t||""}`},(0,e.createElement)("svg",{className:"crown-icon hover:fill-[#cf7500]",xmlns:"http://www.w3.org/2000/svg",width:"20",fill:"#ff9000",height:"15"},(0,e.createElement)("path",{d:"M19.213 4.116c.003.054-.001.108-.015.162l-1.234 6.255a.56.56 0 0 1-.541.413l-7.402.036h-.003-7.402c-.257 0-.482-.171-.544-.414L.839 4.295a.53.53 0 0 1-.015-.166C.347 3.983 0 3.548 0 3.036c0-.632.528-1.145 1.178-1.145s1.178.514 1.178 1.145a1.13 1.13 0 0 1-.43.884L3.47 5.434c.39.383.932.602 1.486.602.655 0 1.28-.303 1.673-.81l2.538-3.272c-.213-.207-.345-.494-.345-.809C8.822.514 9.351 0 10 0s1.178.514 1.178 1.145c0 .306-.125.584-.327.79l.002.003 2.52 3.281c.393.512 1.02.818 1.677.818a2.11 2.11 0 0 0 1.481-.597l1.554-1.512c-.268-.21-.44-.531-.44-.892 0-.632.528-1.145 1.177-1.145S20 2.405 20 3.036c0 .498-.329.922-.787 1.079zm-1.369 8.575c0-.301-.251-.545-.561-.545H2.779c-.31 0-.561.244-.561.545V14c0 .301.251.546.561.546h14.505c.31 0 .561-.244.561-.546v-1.309z"})),(0,e.createElement)(Bi,{classes:r?"block":"hidden"}))},ji=()=>{let t={general:{text:(0,ft.__)("General","wedocs"),icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",stroke:"#6b7280",strokeWidth:"2",strokeLinejoin:"round",className:"-ml-1 mr-4"},(0,e.createElement)("path",{d:"M8.325 2.317c.426-1.756 2.924-1.756 3.351 0 .275 1.135 1.575 1.673 2.572 1.066 1.543-.94 3.31.826 2.369 2.369-.608.997-.069 2.297 1.066 2.572 1.756.426 1.756 2.924 0 3.351-1.135.275-1.673 1.575-1.065 2.572.94 1.543-.826 3.31-2.369 2.369-.997-.608-2.297-.069-2.572 1.066-.426 1.756-2.924 1.756-3.351 0-.275-1.135-1.575-1.673-2.572-1.065-1.543.94-3.31-.826-2.369-2.369.608-.997.069-2.297-1.066-2.572-1.756-.426-1.756-2.924 0-3.351 1.135-.275 1.673-1.575 1.066-2.572-.94-1.543.826-3.31 2.369-2.369.997.608 2.297.069 2.572-1.066z"}),(0,e.createElement)("path",{d:"M13 10a3 3 0 1 1-6 0 3 3 0 1 1 6 0z"}))}};const[r,n]=(0,bt.useState)(!0);return t=wp.hooks.applyFilters("wedocs_settings_menu",t),(0,e.createElement)(bt.Fragment,null,Object.entries(t).map(((t,a)=>(0,e.createElement)(bt.Fragment,{key:a},t[1]?.disabled?(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("div",{onClick:()=>n(!r),className:"disable-tab-item settings-tab w-full focus:outline-0 !text-black aria-selected:text-gray-600 aria-selected:bg-gray-100 hover:text-gray-600 hover:bg-gray-100 group rounded-md px-5 py-3 flex items-center text-sm font-medium cursor-pointer"},t[1]?.icon,(0,e.createElement)("span",{className:"truncate"},t[1]?.text),t[1]?.pro&&(0,e.createElement)(Pi,null),(0,e.createElement)("svg",{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"#6b7280",className:"w-5 h-5 ml-auto"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))),t[1]?.subtabs&&t[1]?.subtabs?.map(((t,n)=>(0,e.createElement)(_i,{key:n,disabled:t?.disabled,className:(r?"":"hidden")+" settings-sub-tab w-full focus:outline-0 !text-black aria-selected:text-gray-600 aria-selected:bg-gray-100 hover:text-gray-600 hover:bg-gray-100 group rounded-md px-5 py-3 flex items-center text-sm font-medium"},(0,e.createElement)("div",{className:"pro-sub-settings ml-9 flex items-center w-full"},t?.icon,(0,e.createElement)("span",{className:"truncate"},t?.text),t?.pro&&(0,e.createElement)(Pi,null)))))):(0,e.createElement)(_i,{className:"settings-tab w-full focus:outline-0 !text-black aria-selected:text-gray-600 aria-selected:bg-gray-100 hover:text-gray-600 hover:bg-gray-100 group rounded-md px-5 py-3 flex items-center text-sm font-medium cursor-pointer"},t[1]?.icon,(0,e.createElement)("span",{className:"truncate"},(0,ft.__)(t[1]?.text,"wedocs")),t[1]?.pro&&(0,e.createElement)(Pi,null))))))},zi=({settingsSaveHandler:t,saving:r})=>(0,e.createElement)("div",{className:"flex justify-end mt-5 p-5 pr-0"},(0,e.createElement)("button",{type:"button",onClick:t,className:(r?"opacity-50":"opacity-100")+" min-w-[136px] inline-flex shadow shadow-lg shadow-gray-800/30 items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},r?(0,ft.__)("Saving...","wedocs"):(0,ft.__)("Save Settings","wedocs")));let Fi=(0,e.createContext)(null);function qi(){let t=(0,e.useContext)(Fi);if(null===t){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,qi),e}return t}function Hi(){let[t,r]=(0,e.useState)([]);return[t.length>0?t.join(" "):void 0,(0,e.useMemo)((()=>function(t){let n=qt((e=>(r((t=>[...t,e])),()=>r((t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))))),a=(0,e.useMemo)((()=>({register:n,slot:t.slot,name:t.name,props:t.props})),[n,t.slot,t.name,t.props]);return e.createElement(Fi.Provider,{value:a},t.children)}),[r])]}let Ui=Dt((function(e,t){let r=fr(),{id:n=`headlessui-label-${r}`,passive:a=!1,...o}=e,s=qi(),i=Ut(t);Pt((()=>s.register(n)),[n,s.register]);let l={ref:i,...s.props,id:n};return a&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in o&&delete o.onClick),Nt({ourProps:l,theirProps:o,slot:s.slot||{},defaultTag:"label",name:s.name||"Label"})})),Wi=Object.assign(Ui,{}),Vi=(0,e.createContext)(null);Vi.displayName="GroupContext";let Gi=e.Fragment,Zi=Dt((function(t,r){let n=fr(),{id:a=`headlessui-switch-${n}`,checked:o,defaultChecked:s=!1,onChange:i,name:l,value:c,form:d,...u}=t,m=(0,e.useContext)(Vi),p=(0,e.useRef)(null),f=Ut(p,r,null===m?null:m.setSwitch),[h,g]=na(o,i,s),b=qt((()=>null==g?void 0:g(!h))),w=qt((e=>{if(pr(e.currentTarget))return e.preventDefault();e.preventDefault(),b()})),v=qt((e=>{e.key===mr.Space?(e.preventDefault(),b()):e.key===mr.Enter&&ra(e.currentTarget)})),x=qt((e=>e.preventDefault())),y=(0,e.useMemo)((()=>({checked:h})),[h]),E={id:a,ref:f,role:"switch",type:Jn(t,p),tabIndex:0,"aria-checked":h,"aria-labelledby":null==m?void 0:m.labelledby,"aria-describedby":null==m?void 0:m.describedby,onClick:w,onKeyUp:v,onKeyPress:x},k=Yt();return(0,e.useEffect)((()=>{var e;let t=null==(e=p.current)?void 0:e.closest("form");t&&void 0!==s&&k.addEventListener(t,"reset",(()=>{g(s)}))}),[p,g]),e.createElement(e.Fragment,null,null!=l&&h&&e.createElement(gr,{features:hr.Hidden,...Ct({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:d,checked:h,name:l,value:c})}),Nt({ourProps:E,theirProps:u,slot:y,defaultTag:"button",name:"Switch"}))})),Yi=Object.assign(Zi,{Group:function(t){var r;let[n,a]=(0,e.useState)(null),[o,s]=Hi(),[i,l]=rn(),c=(0,e.useMemo)((()=>({switch:n,setSwitch:a,labelledby:o,describedby:i})),[n,a,o,i]),d=t;return e.createElement(l,{name:"Switch.Description"},e.createElement(s,{name:"Switch.Label",props:{htmlFor:null==(r=c.switch)?void 0:r.id,onClick(e){n&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},e.createElement(Vi.Provider,{value:c},Nt({ourProps:{},theirProps:d,defaultTag:Gi,name:"Switch.Group"}))))},Label:Wi,Description:an});const Ji=({name:t,settingsPanel:r,settingsData:n,setSettings:a,panelName:o,onChange:s=()=>{},isEnabled:i=!0})=>{const[l,c]=(0,bt.useState)(i),d=(...e)=>e.filter(Boolean).join(" ");return(0,bt.useEffect)((()=>{"off"===r[t]&&c(!1)}),[r[t]]),(0,bt.useEffect)((()=>{c(i)}),[i]),(0,bt.useEffect)((()=>{a({...n,[o]:{...r,[t]:l?"on":"off"}})}),[l]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Yi,{checked:l,onChange:()=>(c(!l),void s(!l)),className:"group relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer outline-0 items-center justify-center rounded-full"},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:d(l?"bg-indigo-600":"bg-gray-200","pointer-events-none absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:d(l?"translate-x-5":"translate-x-0","pointer-events-none absolute left-0 inline-block h-5 w-5 transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")})),(0,e.createElement)("span",{className:("assist_enable"===t?"mt-0.5":"")+" ml-3"},(0,e.createElement)("span",{className:"text-sm text-gray-900"},l?(0,ft.__)("Enable","wedocs"):(0,ft.__)("Disable","wedocs"))))};window.switchComponent=Ji;const Qi=Ji;let Xi=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Ki(e){var t,r;let n=null!=(t=e.innerText)?t:"",a=e.cloneNode(!0);if(!(a instanceof HTMLElement))return n;let o=!1;for(let e of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let s=o?null!=(r=a.innerText)?r:"":n;return Xi.test(s)&&(s=s.replace(Xi,"")),s}var $i=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))($i||{}),el=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(el||{}),tl=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(tl||{}),rl=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(rl||{});function nl(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=Ir(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),a=r?n.indexOf(r):null;return-1===a&&(a=null),{options:n,activeOptionIndex:a}}let al={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==n&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=nl(e),a=Kn(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:a,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),a=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))})),o=a?e.options.indexOf(a):-1;return-1===o||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=nl(e,(e=>[...e,r]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=nl(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},ol=(0,e.createContext)(null);function sl(t){let r=(0,e.useContext)(ol);if(null===r){let e=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,sl),e}return r}ol.displayName="ListboxActionsContext";let il=(0,e.createContext)(null);function ll(t){let r=(0,e.useContext)(il);if(null===r){let e=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,ll),e}return r}function cl(e,t){return xt(t.type,al,e,t)}il.displayName="ListboxDataContext";let dl=e.Fragment,ul=Et.RenderStrategy|Et.Static,ml=Dt((function(t,r){let{value:n,defaultValue:a,form:o,name:s,onChange:i,by:l=(e,t)=>e===t,disabled:c=!1,horizontal:d=!1,multiple:u=!1,...m}=t;const p=d?"horizontal":"vertical";let f=Ut(r),[h=(u?[]:void 0),g]=na(n,i,a),[b,w]=(0,e.useReducer)(cl,{dataRef:(0,e.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,e.useRef)({static:!1,hold:!1}),x=(0,e.useRef)(null),y=(0,e.useRef)(null),E=(0,e.useRef)(null),k=qt("string"==typeof l?(e,t)=>{let r=l;return(null==e?void 0:e[r])===(null==t?void 0:t[r])}:l),N=(0,e.useCallback)((e=>xt(S.mode,{1:()=>h.some((t=>k(t,e))),0:()=>k(h,e)})),[h]),S=(0,e.useMemo)((()=>({...b,value:h,disabled:c,mode:u?1:0,orientation:p,compare:k,isSelected:N,optionsPropsRef:v,labelRef:x,buttonRef:y,optionsRef:E})),[h,c,u,b]);Pt((()=>{b.dataRef.current=S}),[S]),dn([S.buttonRef,S.optionsRef],((e,t)=>{var r;w({type:1}),Sr(t,Nr.Loose)||(e.preventDefault(),null==(r=S.buttonRef.current)||r.focus())}),0===S.listboxState);let A=(0,e.useMemo)((()=>({open:0===S.listboxState,disabled:c,value:h})),[S,c,h]),D=qt((e=>{let t=S.options.find((t=>t.id===e));t&&_(t.dataRef.current.value)})),C=qt((()=>{if(null!==S.activeOptionIndex){let{dataRef:e,id:t}=S.options[S.activeOptionIndex];_(e.current.value),w({type:2,focus:Xn.Specific,id:t})}})),I=qt((()=>w({type:0}))),L=qt((()=>w({type:1}))),T=qt(((e,t,r)=>e===Xn.Specific?w({type:2,focus:Xn.Specific,id:t,trigger:r}):w({type:2,focus:e,trigger:r}))),M=qt(((e,t)=>(w({type:5,id:e,dataRef:t}),()=>w({type:6,id:e})))),R=qt((e=>(w({type:7,id:e}),()=>w({type:7,id:null})))),_=qt((e=>xt(S.mode,{0:()=>null==g?void 0:g(e),1(){let t=S.value.slice(),r=t.findIndex((t=>k(t,e)));return-1===r?t.push(e):t.splice(r,1),null==g?void 0:g(t)}}))),O=qt((e=>w({type:3,value:e}))),B=qt((()=>w({type:4}))),P=(0,e.useMemo)((()=>({onChange:_,registerOption:M,registerLabel:R,goToOption:T,closeListbox:L,openListbox:I,selectActiveOption:C,selectOption:D,search:O,clearSearch:B})),[]),j={ref:f},z=(0,e.useRef)(null),F=Yt();return(0,e.useEffect)((()=>{z.current&&void 0!==a&&F.addEventListener(z.current,"reset",(()=>{null==g||g(a)}))}),[z,g]),e.createElement(ol.Provider,{value:P},e.createElement(il.Provider,{value:S},e.createElement(Rt,{value:xt(S.listboxState,{0:Tt.Open,1:Tt.Closed})},null!=s&&null!=h&&$n({[s]:h}).map((([t,r],n)=>e.createElement(gr,{features:hr.Hidden,ref:0===n?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ct({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:t,value:r})}))),Nt({ourProps:j,theirProps:m,slot:A,defaultTag:dl,name:"Listbox"}))))})),pl=Dt((function(t,r){var n;let a=fr(),{id:o=`headlessui-listbox-button-${a}`,...s}=t,i=ll("Listbox.Button"),l=sl("Listbox.Button"),c=Ut(i.buttonRef,r),d=Yt(),u=qt((e=>{switch(e.key){case mr.Space:case mr.Enter:case mr.ArrowDown:e.preventDefault(),l.openListbox(),d.nextFrame((()=>{i.value||l.goToOption(Xn.First)}));break;case mr.ArrowUp:e.preventDefault(),l.openListbox(),d.nextFrame((()=>{i.value||l.goToOption(Xn.Last)}))}})),m=qt((e=>{e.key===mr.Space&&e.preventDefault()})),p=qt((e=>{if(pr(e.currentTarget))return e.preventDefault();0===i.listboxState?(l.closeListbox(),d.nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),l.openListbox())})),f=Zn((()=>{if(i.labelId)return[i.labelId,o].join(" ")}),[i.labelId,o]),h=(0,e.useMemo)((()=>({open:0===i.listboxState,disabled:i.disabled,value:i.value})),[i]);return Nt({ourProps:{ref:c,id:o,type:Jn(t,i.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=i.optionsRef.current)?void 0:n.id,"aria-expanded":0===i.listboxState,"aria-labelledby":f,disabled:i.disabled,onKeyDown:u,onKeyUp:m,onClick:p},theirProps:s,slot:h,defaultTag:"button",name:"Listbox.Button"})})),fl=Dt((function(t,r){let n=fr(),{id:a=`headlessui-listbox-label-${n}`,...o}=t,s=ll("Listbox.Label"),i=sl("Listbox.Label"),l=Ut(s.labelRef,r);Pt((()=>i.registerLabel(a)),[a]);let c=qt((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),d=(0,e.useMemo)((()=>({open:0===s.listboxState,disabled:s.disabled})),[s]);return Nt({ourProps:{ref:l,id:a,onClick:c},theirProps:o,slot:d,defaultTag:"label",name:"Listbox.Label"})})),hl=Dt((function(t,r){var n;let a=fr(),{id:o=`headlessui-listbox-options-${a}`,...s}=t,i=ll("Listbox.Options"),l=sl("Listbox.Options"),c=Ut(i.optionsRef,r),d=Yt(),u=Yt(),m=Mt(),p=null!==m?(m&Tt.Open)===Tt.Open:0===i.listboxState;(0,e.useEffect)((()=>{var e;let t=i.optionsRef.current;t&&0===i.listboxState&&t!==(null==(e=br(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[i.listboxState,i.optionsRef]);let f=qt((e=>{switch(u.dispose(),e.key){case mr.Space:if(""!==i.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case mr.Enter:if(e.preventDefault(),e.stopPropagation(),null!==i.activeOptionIndex){let{dataRef:e}=i.options[i.activeOptionIndex];l.onChange(e.current.value)}0===i.mode&&(l.closeListbox(),Vt().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case xt(i.orientation,{vertical:mr.ArrowDown,horizontal:mr.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(Xn.Next);case xt(i.orientation,{vertical:mr.ArrowUp,horizontal:mr.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(Xn.Previous);case mr.Home:case mr.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(Xn.First);case mr.End:case mr.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(Xn.Last);case mr.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),d.nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case mr.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),u.setTimeout((()=>l.clearSearch()),350))}})),h=Zn((()=>{var e,t,r;return null!=(r=null==(e=i.labelRef.current)?void 0:e.id)?r:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),g=(0,e.useMemo)((()=>({open:0===i.listboxState})),[i]);return Nt({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===i.mode||void 0,"aria-labelledby":h,"aria-orientation":i.orientation,id:o,onKeyDown:f,role:"listbox",tabIndex:0,ref:c},theirProps:s,slot:g,defaultTag:"ul",features:ul,visible:p,name:"Listbox.Options"})})),gl=Dt((function(t,r){let n=fr(),{id:a=`headlessui-listbox-option-${n}`,disabled:o=!1,value:s,...i}=t,l=ll("Listbox.Option"),c=sl("Listbox.Option"),d=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===a,u=l.isSelected(s),m=(0,e.useRef)(null),p=function(t){let r=(0,e.useRef)(""),n=(0,e.useRef)("");return qt((()=>{let e=t.current;if(!e)return"";let a=e.innerText;if(r.current===a)return n.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Ki(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Ki(e).trim()}(e).trim().toLowerCase();return r.current=a,n.current=o,o}))}(m),f=zt({disabled:o,value:s,domRef:m,get textValue(){return p()}}),h=Ut(r,m);Pt((()=>{if(0!==l.listboxState||!d||0===l.activationTrigger)return;let e=Vt();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=m.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[m,d,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Pt((()=>c.registerOption(a,f)),[f,a]);let g=qt((e=>{if(o)return e.preventDefault();c.onChange(s),0===l.mode&&(c.closeListbox(),Vt().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),b=qt((()=>{if(o)return c.goToOption(Xn.Nothing);c.goToOption(Xn.Specific,a)})),w=oa(),v=qt((e=>w.update(e))),x=qt((e=>{w.wasMoved(e)&&(o||d||c.goToOption(Xn.Specific,a,0))})),y=qt((e=>{w.wasMoved(e)&&(o||d&&c.goToOption(Xn.Nothing))})),E=(0,e.useMemo)((()=>({active:d,selected:u,disabled:o})),[d,u,o]);return Nt({ourProps:{id:a,ref:h,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":u,disabled:void 0,onClick:g,onFocus:b,onPointerEnter:v,onMouseEnter:v,onPointerMove:x,onMouseMove:x,onPointerLeave:y,onMouseLeave:y},theirProps:i,slot:E,defaultTag:"li",name:"Listbox.Option"})})),bl=Object.assign(ml,{Button:pl,Label:fl,Options:hl,Option:gl});const wl=({name:t,setSettings:r,settingsData:n,settingsPanel:a})=>{const o=(0,ut.useSelect)((e=>e(ti.A).getGeneralSettingsOption("docs_home")),[]),s=(0,ut.useSelect)((e=>e(mt.A).getPages()),[]),[i,l]=(0,bt.useState)([]),[c,d]=(0,bt.useState)({});return(0,bt.useEffect)((()=>{r({...n,general:{...a,[t]:c?.id}})}),[c]),(0,bt.useEffect)((()=>{const e=s?.map((e=>({id:e?.id,name:e?.title?.rendered})));let t={};t=Boolean(o)?e?.filter((e=>e?.id===parseInt(o)))[0]:e?.filter((e=>"Documentation"===e?.name))[0],t=void 0===t||t==={}?{...e?.[0]}:t,l([...e]),d({...t}),r({...n,general:{...a,docs_home:c?.id}})}),[s]),(0,e.createElement)(bt.Fragment,null,c&&Object.keys(c).length>0?(0,e.createElement)(bl,{value:c,onChange:d},(0,e.createElement)("div",{className:"relative mt-1"},(0,e.createElement)(bl.Button,{className:"relative w-full cursor-pointer rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"},(0,e.createElement)("span",{className:"block truncate"},c?.name),(0,e.createElement)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2"},(0,e.createElement)(Da,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"}))),(0,e.createElement)(dr,{as:bt.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)(bl.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},i?.map((t=>(0,e.createElement)(bl.Option,{key:t?.id,className:({active:e})=>"cursor-pointer relative select-none py-2 pl-3 pr-9 "+(e?"text-white bg-indigo-600":"text-gray-900"),value:t},(({selected:r,active:n})=>(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("span",{className:"block truncate "+(r?"font-semibold":"font-normal")},t?.name),r&&(0,e.createElement)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-4 "+(n?"text-white":"text-indigo-600")},(0,e.createElement)(Gn,{className:"h-5 w-5","aria-hidden":"true"}))))))))))):(0,e.createElement)("div",{className:"relative mt-1"},(0,e.createElement)("input",{className:"relative !w-full cursor-pointer !rounded-md border !border-gray-300 bg-white !py-2 !pl-3 !pr-10 text-left shadow-sm sm:text-sm",placeholder:(0,ft.__)("Page not found","wedocs"),disabled:!0})))},vl=({settingsData:t,generalSettingsData:r,setSettings:n})=>{const[a,o]=(0,bt.useState)({...r});return(0,bt.useEffect)((()=>{o({...r})}),[r]),(0,e.createElement)("section",null,(0,e.createElement)("div",{className:"shadow sm:rounded-md"},(0,e.createElement)("div",{className:"bg-white sm:rounded-md min-h-[500px]"},(0,e.createElement)("div",{className:"section-heading py-4 px-8 sm:px-8 sm:py-4"},(0,e.createElement)("h2",{className:"text-gray-900 font-medium text-lg"},(0,ft.__)("General","wedocs"))),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200"}),(0,e.createElement)("div",{className:"pt-6 pb-20 px-8 grid grid-cols-4 gap-5"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("weDocs Home","wedocs"))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] mt-1 ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)(wl,{name:"docs_home",setSettings:n,settingsData:t,settingsPanel:a})))),(0,e.createElement)("div",{className:"settings-description w-full max-w-[490px] ml-auto mt-1"},(0,e.createElement)("p",{className:"text-sm text-[#6B7280]"},(0,ft.__)("Select the documentation Home page, where the shortcode [wedocs] ","wedocs"),(0,e.createElement)("a",{href:"https://github.com/tareq1988/wedocs-plugin/wiki/Using-Shortcodes",target:"_blank",className:"text-indigo-700 underline underline-offset-2 !shadow-none",rel:"noreferrer"},(0,ft.__)("shortcode","wedocs")),(0,ft.__)(" is used.","wedocs")))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Email Feedback on Article","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Invite readers to share their thoughts through an email feedback form","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field flex items-center w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)(Qi,{name:"email",settingsPanel:a,settingsData:t,setSettings:n,panelName:"general",isEnabled:"off"!==a?.email})))),("on"===r?.email||!Boolean(r?.email))&&(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Email Address","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Enter the email address where you would like to receive feedback","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"email",name:"doc_title",id:"doc-title",placeholder:(0,ft.__)("Write your email address","wedocs"),className:"w-full !rounded-md !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:r?.email_to||"",onChange:e=>{n({...t,general:{...r,email_to:e.target.value}})}}))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] space-x-2 items-center flex flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Enable searchbar on docs home","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Enable searchbar on docs homepage, applicable only for those using the [weDocs] shortcode","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field flex items-center w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)(Qi,{name:"enable_search",settingsPanel:a,settingsData:t,setSettings:n,panelName:"general",isEnabled:"off"!==a?.enable_search})))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] space-x-2 items-center flex flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Helpful Feedback on Article","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Enabling helpful feedback on your article allows readers to provide opinions on your content","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field flex items-center w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)(Qi,{name:"helpful",settingsPanel:a,settingsData:t,setSettings:n,panelName:"general",isEnabled:"off"!==a?.helpful})))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between mt-1"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] space-x-2 items-center flex flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Allow Comments on Article","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Increase reader engagement by turning on comments","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field flex items-center w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)(Qi,{name:"comments",settingsPanel:a,settingsData:t,setSettings:n,panelName:"general",isEnabled:"on"===a?.comments})))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] space-x-2 items-center flex flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Allow Article Printing","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Allow users to print articles directly from the website","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field flex items-center w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)(Qi,{name:"print",settingsPanel:a,settingsData:t,setSettings:n,panelName:"general",isEnabled:"off"!==a?.print}))))))))},xl=()=>{const{panel:t}=ze(),r=(0,ut.useSelect)((e=>e(ti.A).getSettings()),[]),n=Object.keys(r).indexOf(t),[a,o]=(0,bt.useState)(n||0),[s,i]=(0,bt.useState)({...r}),{need_upgrade:l,status:c}=(0,ut.useSelect)((e=>e(ti.A).getUpgradeInfo()),[]),[d,u]=(0,bt.useState)(!1);let m=[(0,e.createElement)(vl,{index:a,settingsData:s,generalSettingsData:s?.general,setSettings:i})];m=wp.hooks.applyFilters("wedocs_settings_page_templates",m,s,i);const p=wp.hooks.applyFilters("wedocs_settings_page_footer","",s?.assistant),f=wp.hooks.applyFilters("wedocs_show_documentation_actions",!0);return(0,bt.useEffect)((()=>{if(r?.docs_home&&!Boolean(r?.general?.docs_home)){const e=r?.email,t=r?.print,n=r?.helpful,a=r?.email_to,o=r?.comments,s=r?.docs_home;delete r?.email,delete r?.print,delete r?.helpful,delete r?.comments,delete r?.email_to,delete r?.docs_home,r.general.email=void 0!==e?e:"on",r.general.print=void 0!==t?t:"on",r.general.helpful=void 0!==n?n:"on",r.general.email_to=void 0!==a?a:"",r.general.comments=void 0!==o?o:"off",r.general.docs_home=s}i({...s,...r})}),[r]),"done"===c&&(0,ut.dispatch)(ti.A).makeUpdateDone().then((e=>{e&&Hn().fire({icon:"success",text:(0,ft.__)("weDocs database has been updated successfully","wedocs"),title:(0,ft.__)("Database Updated!","wedocs"),toast:!0,timer:3e3,position:"bottom-end",showConfirmButton:!1})})).catch((e=>{})),(0,e.createElement)("div",{className:"min-h-full pt-7"},f&&l&&(0,e.createElement)(ui,{status:c}),(0,e.createElement)("main",null,(0,e.createElement)("div",{className:"pb-10 pt-3 sm:px-0"},(0,e.createElement)("div",{className:"h-100"},(0,e.createElement)("div",{className:"h-full"},(0,e.createElement)("main",null,(0,e.createElement)("div",{className:"lg:grid lg:grid-cols-12 lg:gap-x-6"},(0,e.createElement)(_i.Group,{vertical:!0,onChange:o,selectedIndex:a},(0,e.createElement)("aside",{className:"px-2 sm:px-6 lg:py-0 lg:px-0 lg:col-span-3 md:mb-6"},(0,e.createElement)("nav",{className:"py-[18px] min-h-[500px] bg-white rounded-md"},(0,e.createElement)(_i.List,{className:"px-2 space-y-1"},(0,e.createElement)(ji,null)))),(0,e.createElement)("div",{className:"space-y-6 sm:px-6 lg:px-0 lg:col-span-9"},(0,e.createElement)(_i.Panels,null,m&&m?.map(((t,r)=>(0,e.createElement)(_i.Panel,{key:r},t)))))))),(0,e.createElement)(zi,{settingsSaveHandler:()=>{u(!0),(0,ut.dispatch)(ti.A).updateSettings({settings:s}).then((e=>{u(!1),i({...s,...e}),Hn().fire({title:(0,ft.__)("Settings Data Saved!","wedocs"),text:(0,ft.__)("Settings data has been saved successfully","wedocs"),icon:"success",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:2e3})})).catch((e=>{Hn().fire({title:(0,ft.__)("Error","wedocs"),text:e.message,icon:"error",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:3e3})}))},saving:d}))),p)))};window.weDocsSettingsPage=xl;const yl=xl,El=({className:t,children:r})=>{const n=(0,bt.useRef)(null),[a,o]=(0,bt.useState)(!1),[s,i]=(0,bt.useState)({title:{raw:""},status:"publish"}),[l,c]=(0,bt.useState)(!1),[d,u]=(0,bt.useState)(!1),m=()=>{o(!1)},p=e=>{i({...s,status:e})};return Ia(n),(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("button",{onClick:()=>{o(!0)},className:t},r),(0,e.createElement)(dr,{appear:!0,show:a,as:bt.Fragment},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:m},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25 z-[50]"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto z-[100]"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4 text-center z-[9999]"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-full max-w-md transform rounded-2xl bg-white py-6 px-9 text-center align-middle shadow-xl transition-all overflow-visible"},(0,e.createElement)(Fn.Title,{as:"h3",className:"text-lg font-bold text-gray-900 mb-2"},(0,ft.__)("Enter your doc title","wedocs")),(0,e.createElement)("p",{className:"text-gray-500 text-base"},(0,ft.__)("Start writing your doc from scratch","wedocs")),(0,e.createElement)("div",{className:"relative mt-6 mb-5"},(0,e.createElement)("input",{type:"text",name:"doc_title",id:"doc-title",placeholder:(0,ft.__)("Type a title for your document","wedocs"),required:!0,className:(l?"!border-red-500 focus:ring-red-500 focus:border-red-500":"!border-gray-300 focus:ring-blue-500 focus:border-blue-500")+" h-11 bg-gray-50 text-gray-900 text-base !rounded-md block w-full !py-2 !px-3 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white",value:s?.title?.raw,onChange:e=>{(e=>{i({...s,title:{raw:e.target.value}}),c(0===e.target.value.length)})(e)}}),l&&(0,e.createElement)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"},(0,e.createElement)(Wn,{className:"h-5 w-5 text-red-500","aria-hidden":"true"}))),(0,e.createElement)("div",{className:"mt-6 flex items-center justify-center space-x-3.5"},(0,e.createElement)("button",{className:"bg-white hover:bg-gray-200 text-gray-700 font-medium text-base py-2 px-5 border border-gray-300 rounded-md",onClick:m},(0,ft.__)("Cancel","wedocs")),(0,e.createElement)("div",{className:"doc-publish-btn group relative"},(0,e.createElement)("button",{className:"inline-flex justify-between items-center cursor-pointer bg-indigo-600 hover:bg-indigo-800 text-white font-medium text-base py-2 px-5 rounded-md min-w-[122px]",ref:n,disabled:d,onClick:()=>{""!==s.title.raw?(u(!0),(0,ut.dispatch)(mt.A).createDoc(s).then((e=>{i({...s,title:{raw:""}}),Hn().fire({title:(0,ft.__)("New doc added!","wedocs"),text:(0,ft.__)("New doc has been added successfully","wedocs"),icon:"success",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:2e3,customClass:{container:"!z-[9999]"}}),wp.hooks.doAction("wedocs_after_create_new_doc",e),m()})).catch((e=>{Hn().fire({title:(0,ft.__)("Error","wedocs"),text:e.message,icon:"error",toast:!0,position:"bottom-end",showConfirmButton:!1,timer:3e3,customClass:{container:"!z-[9999]"}})})).finally((()=>u(!1)))):c(!0)}},(0,e.createElement)(bt.Fragment,null,"publish"===s?.status?(0,ft.__)("Publish","wedocs"):(0,ft.__)("Draft","wedocs"),d?(0,ft.__)("ing...","wedocs"):"",(0,e.createElement)(Da,{className:"h-5 w-5 text-white mt-[1px]","aria-hidden":"true"}))),(0,e.createElement)("div",{id:"action-menus",className:"hidden cursor-pointer w-44 z-40 bg-white border border-[#DBDBDB] absolute z-10 shadow right-0 py-1 rounded-md mt-0.5 group-hover:block after:content-[''] before:content-[''] after:absolute before:absolute after:w-[13px] before:w-[70%] before:-right-[1px] after:h-[13px] before:h-3 before:mt-3 after:top-[-7px] before:-top-6 after:right-[1.4rem] after:z-[-1] after:bg-white after:border after:border-[#DBDBDB] after:!rotate-45 after:border-r-0 after:border-b-0"},(0,e.createElement)("span",{onClick:()=>p("draft"),className:"flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},(0,ft.__)("Create and Draft","wedocs")),(0,e.createElement)("span",{onClick:()=>p("publish"),className:"flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white !shadow-none"},(0,ft.__)("Create and Publish","wedocs"))))))))))))},kl=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("div",{className:"shadow sm:overflow-hidden sm:rounded-md"},(0,e.createElement)("div",{className:"space-y-6 h-[75vh] flex justify-center align-center bg-white px-4 py-5 sm:p-6"},(0,e.createElement)("div",{className:"w-[500px] text-center self-center mt-1 px-6 py-12"},(0,e.createElement)("h2",{className:"mb-6"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"194",height:"136",fill:"none",className:"mx-auto mb-6"},(0,e.createElement)("path",{d:"M192.481 72.21l-.354 2.079c-.909 4.246-2.367 8.355-4.336 12.225v.002c-.561 1.109-1.161 2.202-1.8 3.28-1.863 3.13-3.996 6.092-6.374 8.852-1.445 1.689-2.984 3.326-4.619 4.911-7.077 6.885-15.794 12.773-25.36 17.536-1.797.896-3.622 1.75-5.476 2.563-5.868 2.572-11.909 4.731-18.077 6.461l-3.838 1.021c-2.226.56-4.461 1.063-6.691 1.506a134.53 134.53 0 0 1-9.008 1.486c-3.825.498-7.618.814-11.335.951a129.13 129.13 0 0 1-13.315-.225c-2.273-.149-4.58-.36-6.906-.63a145.95 145.95 0 0 1-6.245-.853l-1.713-.283a140.49 140.49 0 0 1-11.59-2.491 3.2 3.2 0 0 1-.208-.056.91.91 0 0 1-.115-.028c-.108-.027-.216-.055-.323-.087-3.421-.905-6.801-1.947-10.107-3.131-2.326-.831-4.616-1.734-6.851-2.709a94.75 94.75 0 0 1-3.15-1.437c-.949-.453-1.886-.92-2.812-1.402-5.464-2.836-10.49-6.154-14.834-9.977-1.967-1.726-3.81-3.589-5.515-5.575a45.85 45.85 0 0 1-6.509-9.903c-.852-1.765-1.577-3.589-2.17-5.457a42.48 42.48 0 0 1-.678-2.362A50.47 50.47 0 0 1 .656 77.308c-.024-.903-.024-1.81 0-2.721a52.21 52.21 0 0 1 1.09-9.434c1.722-8.181 5.486-15.749 11.516-20.796 10.383-8.696 26.412-9.012 36.341-8.183 3.869.323 6.813.819 8.136 1.064 1.967.362 3.893.81 5.84 1.279 7.218 1.737 14.74 3.744 25.693 2.513 1.14-.129 5.115-.609 12.39-2.633 5.436-1.474 10.747-3.374 15.886-5.68l.682-.311 1.692-.803.417-.204 3.143-1.598h.004l.106-.057.405-.213c.013-.006.026-.013.038-.022l4.147-2.206.824-.431.575-.295.393-.201h.002c.8-.402 1.596-.791 2.408-1.16a44.5 44.5 0 0 1 3.938-1.588c1.088-.381 2.226-.726 3.443-1.035 12.064-3.069 30.105-2.089 41.582 8.533 9.348 8.655 11.605 21.175 11.782 30.513a66.4 66.4 0 0 1-.647 10.572z",fill:"url(#A)",fillOpacity:".2"}),(0,e.createElement)("path",{d:"M133.086 124.617H38.875a11.12 11.12 0 0 1-11.084-11.084V35.948h27.266c3.658 0 7.204 1.884 9.2 4.988l4.544 6.761c2.106 3.104 5.542 4.988 9.2 4.988h38.46a11.12 11.12 0 0 1 11.084 11.084v47.549c0 4.987 1.995 9.753 5.541 13.3z",fill:"url(#B)"}),(0,e.createElement)("g",{fill:"#898989"},(0,e.createElement)("path",{d:"M128.875 127.942h-90a14.38 14.38 0 0 1-14.409-14.409V35.948c0-1.884 1.441-3.325 3.325-3.325h27.266c4.877 0 9.31 2.438 11.97 6.429l4.544 6.761c1.441 2.217 3.879 3.436 6.429 3.436h38.46a14.38 14.38 0 0 1 14.409 14.409v38.793c0 1.884-1.441 3.325-3.326 3.325s-3.325-1.441-3.325-3.325V63.657a7.71 7.71 0 0 0-7.758-7.759h-38.35c-4.877 0-9.31-2.438-11.97-6.429l-4.544-6.761c-1.441-2.217-3.879-3.436-6.428-3.436H31.117v74.26a7.71 7.71 0 0 0 7.759 7.759h90c3.879 0 7.204-2.882 7.647-6.761l8.313-60.96c.222-2.217-.443-4.434-1.884-6.096s-3.547-2.66-5.764-2.66c-1.884 0-3.325-1.441-3.325-3.325s1.441-3.325 3.325-3.325c4.101 0 8.091 1.773 10.751 4.877 2.771 3.103 3.991 7.204 3.547 11.305l-8.313 60.96c-.886 7.204-7.093 12.635-14.297 12.635z"}),(0,e.createElement)("path",{d:"M137.187 44.815H65.476c-1.884 0-3.325-1.441-3.325-3.325s1.441-3.325 3.325-3.325h71.711c1.885 0 3.325 1.441 3.325 3.325s-1.551 3.325-3.325 3.325z"})),(0,e.createElement)("circle",{cx:"158.425",cy:"31.314",r:"30.886",fill:"url(#C)"}),(0,e.createElement)("path",{d:"M150.8 32.481h6.457v6.601h2.335v-6.601h6.457v-2.335h-6.457v-6.601h-2.335v6.601H150.8v2.335z",fill:"#fff"}),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"A",x1:"45.819",y1:"233.312",x2:"77.401",y2:"10.643",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#9743ed"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#9743ed",stopOpacity:"0"})),(0,e.createElement)("linearGradient",{id:"B",x1:"77.835",y1:"124.617",x2:"74.044",y2:"96.278",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#fff",stopOpacity:"0"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#fff"})),(0,e.createElement)("linearGradient",{id:"C",x1:"169.738",y1:"-16.997",x2:"92.091",y2:"112.101",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#fffefe"}),(0,e.createElement)("stop",{offset:".386",stopColor:"#efc561"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#ff3f00"})))),(0,e.createElement)("p",{className:"text-[#3B3F4A] font-bold text-2xl mx-auto"},(0,ft.__)("Get started by creating a new doc","wedocs")),(0,e.createElement)("p",{className:"text-[#666B79] text-lg mx-auto"},(0,e.createElement)("a",{href:"https://wedocs.co/docs/wedocs/how-to/how-to-create-a-doc/",className:"text-[#0043FF] !shadow-none",target:"_blank",rel:"noreferrer"},(0,ft.__)("Learn more ","wedocs")),(0,ft.__)("how to create a new doc","wedocs"))),(0,e.createElement)(El,{className:"inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-6 py-2.5 text-base text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},(0,e.createElement)("span",{className:"dashicons dashicons-plus-alt2 w-3.5 h-3.5 mr-4 text-base flex items-center"}),(0,ft.__)("Create a new doc","wedocs"))))))),Nl=({docId:t,sections:r,className:n,children:a})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"documentation-ellipsis-actions relative group"},(0,e.createElement)("span",{className:n},a),(0,e.createElement)("div",{id:"action-menus",className:"w-40 bg-white border border-[#DBDBDB] mt-2.5 absolute z-[99999] shadow right-0 py-1 rounded-md hidden group-hover:block hover:block after:content-[''] before:content-[''] after:absolute before:absolute after:w-[13px] before:w-full after:h-[13px] before:h-2.5 after:top-[-7px] before:-top-2.5 after:right-[22px] after:z-[-1] after:bg-white after:border after:border-[#DBDBDB] after:!rotate-45 after:border-r-0 after:border-b-0"},(0,e.createElement)(Ks,{sections:r,docId:t,className:"group w-full flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white"},(0,ft.__)("Add article","wedocs")),(0,e.createElement)(oi,{parent:t,order:r?.length,className:"group w-full flex items-center py-2 px-4 text-sm font-medium text-gray-700 hover:bg-indigo-700 hover:text-white"},(0,ft.__)("Add section","wedocs"))))),Sl=({doc:t})=>{if(!t)return;const r=Ca(),{attributes:n,listeners:a,setNodeRef:o,transform:s,transition:i,isDragging:l}=Qs({id:t.id}),c={transform:Ka.Transform.toString(s),zIndex:l?9999:"",transition:i},d=wp.hooks.applyFilters("wedocs_documentation_privacy_action",[],t.id),u=(0,ut.useSelect)((e=>e(mt.A).getSectionsDocs(t.id)),[])||[],m=(0,ut.useSelect)((e=>e(mt.A).getDocArticles(t.id)),[])||[],p=wp.hooks.applyFilters("wedocs_documentation_footer_left",[],t?.id),f=wp.hooks.applyFilters("wedocs_documentation_contributors","",t?.id),h=wp.hooks.applyFilters("wedocs_show_documentation_actions",!0);return(0,e.createElement)("div",{style:c,...n,ref:o,className:"col-span-1 rounded bg-white shadow"},(0,e.createElement)("div",{className:"flex w-full items-center justify-between px-6 h-[4.5rem]"},(0,e.createElement)("div",{className:"flex-1"},(0,e.createElement)("div",{className:"inline-flex items-center space-x-3"},(0,e.createElement)("div",{className:"flex items-center space-x-3 flex-1 group"},(0,e.createElement)("div",{className:"tooltip cursor-pointer before:max-w-xl z-[0]","data-tip":gt().decode((0,ft.__)(t?.title?.rendered,"wedocs"))},(0,e.createElement)(lt,{to:`/section/${t.id}`},(0,e.createElement)("h3",{className:"truncate hover:underline text-lg font-medium text-[#3B3F4A]",dangerouslySetInnerHTML:{__html:pt(t?.title?.rendered,"publish"!==t.status?12:20)}})))))),(0,e.createElement)("div",{className:"flex items-center"},"draft"===t?.status&&(0,e.createElement)("div",{className:"docs-draft-status font-medium text-sm text-gray-800 leading-5 bg-[#E3E5E7] rounded-[42px] py-0.5 px-2.5"},(0,ft.__)("Draft","wedocs")),r&&(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("svg",{width:"17",height:"17",fill:"none",...a,className:"cursor-grab p-5 box-content"},(0,e.createElement)("path",{fill:"#9ca3af",className:"fill-gray-500",d:"M16.951 8.549l-2.584 2.573-.154.15c-.14.125-.297.15-.466.075-.161-.072-.244-.201-.244-.383l.004-1.358c.004-.165-.036-.229-.215-.226H10.02c-.161 0-.215.043-.215.211v3.29c0 .158.05.204.204.201l1.34-.004c.201-.004.351.072.426.258s.029.348-.115.487L9.06 16.429c-.093.093-.154.097-.247 0l-2.602-2.605c-.14-.14-.19-.305-.115-.487s.226-.262.426-.262l1.358.004c.136.004.19-.036.19-.179V9.556a.14.14 0 0 0-.176-.176H4.552c-.147 0-.183.05-.179.186l.004 1.34c.004.204-.065.366-.262.444s-.358.018-.502-.129l-2.58-2.577c-.108-.104-.104-.168 0-.272l2.566-2.566c.151-.151.312-.219.516-.136s.262.254.258.462l-.004 1.322c-.004.14.039.186.183.186h3.343c.136 0 .172-.047.172-.176V4.123c0-.15-.057-.179-.19-.179l-1.34.004c-.208.004-.366-.068-.444-.262s-.014-.358.129-.502L8.737.668 8.898.5h.072l.161.168 2.516 2.516c.143.143.208.308.129.502s-.236.265-.444.262c-.441-.004-.882.004-1.322-.004-.151-.004-.208.036-.208.197v3.308c0 .147.047.194.194.194h3.308c.161 0 .201-.057.197-.208l-.004-1.376a.39.39 0 0 1 .244-.383c.168-.075.326-.05.466.075l.129.125 2.609 2.598a.28.28 0 0 1 .007.075z"})))),(0,e.createElement)("div",{className:"flex items-center"},d,h&&(0,e.createElement)(Ta,{doc:t,type:"doc",disabled:!0}))),(0,e.createElement)(lt,{to:`/section/${t.id}`},(0,e.createElement)("div",{className:"w-full p-6 pt-0 pb-7"},(0,e.createElement)("ul",{role:"list",className:"mb-6 rounded-md"},(0,e.createElement)("li",{className:"flex items-center justify-between mb-0 py-1.5 pl-3 pr-4 text-sm"},(0,e.createElement)("div",{className:"w-full inline-flex items-center"},(0,e.createElement)("div",{className:"w-6 flex-none -mt-1"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"17",fill:"none"},(0,e.createElement)("path",{d:"M1 3.945v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-6l-2-2H3a2 2 0 0 0-2 2z",stroke:"#6b7280",strokeWidth:"2",strokeLinejoin:"round"}))),(0,e.createElement)("span",{className:"ml-2 flex-1 truncate text-[#3B3F4A] hover:underline decoration-1"},(0,ft.sprintf)(
// translators: %d: Length of documentation sections
// translators: %d: Length of documentation sections
(0,ft.__)("%d Sections","wedocs"),u.length)))),(0,e.createElement)("li",{className:"flex items-center justify-between mb-0 py-1.5 pl-3 pr-4 text-sm"},(0,e.createElement)("div",{className:"flex w-0 flex-1 items-center"},(0,e.createElement)("div",{className:"w-6 flex justify-center -mt-0.5"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"21",fill:"none"},(0,e.createElement)("path",{d:"M5 10.02h6m-6 4h6m2 5H3a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707v9.586a2 2 0 0 1-2 2z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,e.createElement)("span",{className:"ml-2 w-0 flex-1 truncate text-[#3B3F4A] hover:underline decoration-1"},(0,ft.sprintf)(
// translators: %d: Length of documentation articles
// translators: %d: Length of documentation articles
(0,ft.__)("%d Articles","wedocs"),m.length))))),f)),h&&(0,e.createElement)("div",{className:"border-t border-gray-200"},(0,e.createElement)("div",{className:"-mt-px flex divide-x divide-gray-200"},(0,e.createElement)("div",{className:(p[0]?"justify-between":"justify-end")+" flex w-0 flex-1 items-center py-4 px-6"},p,(0,e.createElement)(Nl,{docId:t?.id,sections:u,className:"py-2 inline-flex items-center bg-indigo-600 text-white rounded-md border border-gray-200 ease-in-out duration-200 shadow-gray-100 px-4 text-sm text-gray shadow-sm cursor-pointer"},(0,e.createElement)("span",{className:"dashicons dashicons-plus-alt2 w-3.5 h-3.5 mr-2 text-base flex items-center"}),(0,ft.__)("Add","wedocs"))))))},Al=()=>(0,e.createElement)("div",{className:"documentation relative mx-auto grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 gap-7"},[0,1,2,3,4,5,6,7,8,9,10,11].map(((t,r)=>(0,e.createElement)("div",{key:r,className:"animate-pulse bg-white border-b hover:bg-gray-50 font-extrabold"},(0,e.createElement)("div",{className:"flex w-full items-center justify-between space-x-6 p-6 pt-5"},(0,e.createElement)("div",{className:"flex-1 truncate"},(0,e.createElement)("div",{className:"inline-flex items-center space-x-3"},(0,e.createElement)("div",{className:"flex items-center space-x-3 flex-1 group"},(0,e.createElement)("a",{href:"#",className:"mt-1.5 !shadow-none"},(0,e.createElement)("h3",{className:"animate-pulse bg-slate-200 rounded h-4 w-64 border-b hover:bg-slate-300"})),(0,e.createElement)("a",{target:"_blank",href:"#",rel:"noreferrer",className:"mt-[-2px] hidden group-hover:block !shadow-none"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M7.118 3.5H3.452c-1.013 0-1.833.821-1.833 1.833V14.5c0 1.012.821 1.833 1.833 1.833h9.167c1.012 0 1.833-.821 1.833-1.833v-3.667m-3.667-9.167h5.5m0 0v5.5m0-5.5l-9.167 9.167",stroke:"#4338ca",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))))),(0,e.createElement)("div",{className:"flex gap-5 items-center"},(0,e.createElement)("div",{className:"documentation-ellipsis-actions relative h-4 w-8"},(0,e.createElement)("span",{className:"animate-pulse bg-slate-200 w-full h-full rounded absolute border-b hover:bg-slate-300"})))),(0,e.createElement)("div",{className:"w-full p-6 pt-0 pb-7"},(0,e.createElement)("ul",{role:"list",className:"mb-6 rounded-md"},(0,e.createElement)("li",{className:"flex items-center justify-between mb-0 py-1.5 pl-3 pr-4 text-sm"},(0,e.createElement)("div",{className:"w-full inline-flex items-center"},(0,e.createElement)("div",{className:"w-6 flex justify-center"},(0,e.createElement)("span",{className:"mt-0.5 animate-pulse bg-slate-200 rounded h-4 w-8 border-b hover:bg-slate-300"})),(0,e.createElement)("span",{className:"ml-2 mt-0.5 animate-pulse bg-slate-200 rounded h-4 w-52 border-b hover:bg-slate-300"}))),(0,e.createElement)("li",{className:"flex items-center justify-between mb-0 py-1.5 pl-3 pr-4 text-sm"},(0,e.createElement)("div",{className:"flex w-0 flex-1 items-center"},(0,e.createElement)("div",{className:"w-6 flex justify-center"},(0,e.createElement)("span",{className:"mt-0.5 animate-pulse bg-slate-200 rounded h-4 w-8 border-b hover:bg-slate-300"})),(0,e.createElement)("span",{className:"ml-2 mt-0.5 animate-pulse bg-slate-200 rounded h-4 w-52 border-b hover:bg-slate-300"}))))),(0,e.createElement)("div",{className:"border-t border-gray-200"},(0,e.createElement)("div",{className:"-mt-px flex divide-x divide-gray-200"},(0,e.createElement)("div",{className:"flex w-0 flex-1 justify-end items-center py-4 px-6"},(0,e.createElement)("button",{className:"py-2 inline-flex items-center h-8 w-16 hover:text-white rounded-md border border-gray-200 ease-in-out duration-200 shadow-gray-100 px-4 text-sm text-gray shadow-sm"},(0,e.createElement)("span",{className:"animate-pulse bg-slate-200 w-10 h-4 rounded absolute border-b hover:bg-slate-300"}))))))))),Dl=()=>{(0,ut.useSelect)((e=>e(mt.A).getDocs()),[]);const t=(0,ut.useSelect)((e=>e(mt.A).getParentDocs()),[]),r=(0,ut.useSelect)((e=>e(mt.A).getLoading()),[]),{need_upgrade:n,status:a}=(0,ut.useSelect)((e=>e(ti.A).getUpgradeInfo()),[]),o=(0,ut.useSelect)((e=>e(mt.A).getSortingStatus()),[]),s=(0,ut.useSelect)((e=>e(mt.A).getNeedSortingStatus()),[]),[i,l]=(0,bt.useState)(""),[c,d]=(0,bt.useState)([]),[u,m]=(0,bt.useState)(s),p=Ca(),f=wp.hooks.applyFilters("wedocs_show_parent_documentation_addition_actions",!0),h=wp.hooks.applyFilters("wedocs_show_documentation_empty_label","",c?.length);return(0,bt.useEffect)((()=>{if(null==p||void 0===t||void 0===i)return;let e=wp.hooks.applyFilters("wedocs_filter_parent_documentations",t?.filter((e=>e?.title?.rendered?.toLowerCase().includes(i?.toLowerCase()))));wp.hooks.doAction("wedocs_after_filter_documentations",e,p),d([...e])}),[t,i,p]),(0,bt.useEffect)((()=>{u&&(0,ut.dispatch)(mt.A).updateSortingStatus({sortable_status:o,documentations:c}).then((e=>m(e?.sorting))).catch((e=>{}))}),[u]),"done"===a&&(0,ut.dispatch)(ti.A).makeUpdateDone().then((e=>{e&&Hn().fire({icon:"success",text:(0,ft.__)("weDocs database has been updated successfully","wedocs"),title:(0,ft.__)("Database Updated!","wedocs"),toast:!0,timer:3e3,position:"bottom-end",showConfirmButton:!1})})).catch((e=>{})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"documentation-header my-7"},(0,e.createElement)("h1",{className:"w-full !flex items-center justify-between"},(0,ft.__)("All Docs","wedocs"),f&&(0,e.createElement)(El,{className:"ml-5 mr-auto py-2 h-fit inline-flex items-center rounded-md border border-transparent bg-indigo-600 ease-in-out duration-200 px-4 text-sm text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},(0,e.createElement)("span",{className:"dashicons dashicons-plus-alt2 w-3.5 h-3.5 mr-2 text-base flex items-center"}),(0,ft.__)("New doc","wedocs")),t&&t.length>0&&(0,e.createElement)(li,{handleChange:(e,t=!1)=>{l(t?"":e.target.value)},searchValue:i}))),!r&&f&&n&&(0,e.createElement)(ui,{status:a}),r?(0,e.createElement)(Al,null):(0,e.createElement)("div",{role:"list",className:(c.length>0?"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 gap-7":"")+" documentation relative mx-auto"},i&&0===c.length&&(0,e.createElement)("h2",{className:"float-left text-lg mt-4"},(0,ft.__)("Oops! It seems that your search did not match any existing documents. Please try again...","wedocs")),c&&(0,e.createElement)(e.Fragment,null,c.length>0?(0,e.createElement)(e.Fragment,null,p?(0,e.createElement)(ei,{setItems:d,setNeedSortingStatus:m},(0,e.createElement)(Us,{items:c,strategy:js},c?.map((t=>(0,e.createElement)(Sl,{key:t.id,doc:t}))))):(0,e.createElement)(e.Fragment,null,c?.map((t=>(0,e.createElement)(Sl,{key:t.id,doc:t}))))):(0,e.createElement)(e.Fragment,null,!i&&f&&(0,e.createElement)(kl,null))),!r&&!i&&h))},Cl=({progress:t})=>(0,e.createElement)("div",{className:"w-full h-1.5 rounded bg-[#E2E8F0] flex items-center my-24"},(0,e.createElement)("div",{style:{width:`${t}%`},className:"h-full text-right bg-[#4F46E5] rounded rounded-tr-none rounded-br-none"}),(0,e.createElement)("div",{className:"w-12 h-12 text-white flex items-center justify-center text-sm py-1 px-0.5 rounded-full bg-[#4F46E5]"},`${t}%`)),Il=({migrationProgress:t,openProgressModal:r,setOpenProgressModal:n})=>(0,e.createElement)(dr,{appear:!0,as:bt.Fragment,show:r},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:()=>n(!1)},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25 z-[50]"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto z-[100]"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-[900px] transform overflow-hidden rounded-2xl bg-white align-middle shadow-xl transition-all"},(0,e.createElement)("div",{className:"sm:flex sm:items-start sm:justify-center py-12 px-9"},(0,e.createElement)("div",{className:"mt-3 text-center sm:mt-0 sm:text-left"},(0,e.createElement)(Fn.Title,{as:"h3",className:"text-2xl text-center font-bold leading-7 text-gray-900 mb-4 text-[#111827]"},(0,ft.__)("Migrating Docs...","wedocs")),(0,e.createElement)("p",{className:"text-gray-500 text-center text-base leading-6"},(0,ft.__)("Migrating existing docs from BetterDocs to weDocs","wedocs")))),(0,e.createElement)("div",{className:"progressing-body px-16"},(0,e.createElement)("svg",{width:"280",className:"mx-auto mb-6",height:"157",fill:"none"},(0,e.createElement)("path",{fill:"url(#A)",fillOpacity:".1",d:"M12.553 86.533l.484-2.838a68.26 68.26 0 0 1 5.918-16.685v-.003a75.8 75.8 0 0 1 2.455-4.476c2.544-4.272 5.455-8.315 8.701-12.081a98.74 98.74 0 0 1 6.304-6.703c9.659-9.397 21.557-17.434 34.613-23.934a166.98 166.98 0 0 1 7.475-3.499 187.74 187.74 0 0 1 24.673-8.818l5.238-1.393a185.07 185.07 0 0 1 9.132-2.057 184.1 184.1 0 0 1 12.294-2.027c5.222-.68 10.397-1.112 15.472-1.298 6.059-.21 12.125-.108 18.173.307 3.103.203 6.252.49 9.426.86.016-.002.02-.002.023 0 2.815.324 5.649.712 8.501 1.164l2.338.386a191.49 191.49 0 0 1 15.819 3.4 4.38 4.38 0 0 1 .284.075c.053.01.106.023.157.039.148.036.295.075.442.118 4.669 1.236 9.282 2.658 13.795 4.273 3.174 1.135 6.3 2.367 9.351 3.698 1.452.631 2.885 1.285 4.3 1.962 1.294.618 2.574 1.256 3.838 1.913 7.458 3.871 14.318 8.4 20.246 13.618 2.685 2.356 5.2 4.898 7.527 7.608 3.533 4.102 6.52 8.646 8.884 13.517a56.59 56.59 0 0 1 2.962 7.448 57.68 57.68 0 0 1 .925 3.224 68.9 68.9 0 0 1 2.067 15.243 71.87 71.87 0 0 1 0 3.714c-.104 4.328-.602 8.638-1.488 12.876-2.351 11.166-7.488 21.495-15.717 28.384-14.171 11.869-36.049 12.301-49.602 11.17-5.28-.442-9.298-1.119-11.103-1.452-2.685-.494-5.314-1.105-7.972-1.746-9.851-2.371-20.118-5.111-35.067-3.43-1.557.176-6.981.83-16.911 3.593-7.419 2.013-14.668 4.605-21.681 7.753l-.932.425-2.309 1.095-.568.278a175.8 175.8 0 0 0-4.29 2.181h-.007l-.144.078-.552.291c-.019.008-.036.018-.053.03l-5.659 3.011-1.125.589-.785.402-.536.275h-.003a91.39 91.39 0 0 1-3.286 1.582 60.81 60.81 0 0 1-5.375 2.168 55.09 55.09 0 0 1-4.698 1.412c-16.466 4.189-41.09 2.852-56.755-11.646-12.758-11.814-15.838-28.901-16.08-41.646a90.62 90.62 0 0 1 .883-14.429z"}),(0,e.createElement)("path",{fill:"#eac250",d:"M61.075 86.134V74.3a1.84 1.84 0 0 0-2.123-1.816l-27.915 4.263c-.979.149-1.891-.498-2.082-1.468l-.265-1.352c-.191-.987-1.136-1.634-2.123-1.46L2.434 76.705c-.97.174-1.642 1.078-1.509 2.057l5.888 43.713 54.262-36.341z"}),(0,e.createElement)("path",{fill:"#fff",d:"M6.821 113.701L4.416 81.897l62.315-8.086.456 29.78-60.366 10.11z"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M30.995 98.259s.257-25.46 5.681-37.037l26.19 1.841s-7.447 26.928-5.424 33.819l-26.447 1.377z"}),(0,e.createElement)("path",{fill:"#fadf68",d:"M6.829 95.149l-.017 29.806c0 1.409 1.252 2.496 2.646 2.289l56.559-8.36c1.095-.166 1.924-1.078 1.974-2.181l1.667-37.278a2.31 2.31 0 0 0-2.621-2.397l-26.936 3.632c-.63.083-1.203.431-1.576.954l-5.092 7.174c-.373.522-.937.862-1.576.954L8.836 92.86c-1.153.158-2.007 1.128-2.007 2.289z"}),(0,e.createElement)("path",{fill:"#c8a339",fillRule:"evenodd",d:"M27.424 109.692v1.402c.29 1.012.763 1.899 1.659 2.538.481.34 1.028.514 1.576.688h11.728c.929-.232 1.791-.589 2.546-1.211 1.783-1.476 2.38-4.122 1.385-6.22l-.912-1.9a.65.65 0 0 1 .017-.721l.818-1.39v-.001l.244-.426c1.568-2.728-.299-5.979-3.442-5.988a690.45 690.45 0 0 0-5.864 0c-1.501.008-2.671.663-3.425 1.941l-3.599 6.173h0 0 0l-2.215 3.813c-.178.318-.293.656-.408.995l-.106.307zm7.548 2.719l-.673.01-.953.002h0 0c-.632.001-1.262.003-1.892-.002-1.75-.025-2.679-1.642-1.808-3.16l5.714-9.853c.398-.697 1.02-1.045 1.841-1.045l2.495.001 3.327.007c1.75.017 2.662 1.65 1.783 3.176l-2.353 4.049h0l-.004.006-1.483 2.547-.526.893a50.95 50.95 0 0 0-1.166 2.035c-.498.929-1.219 1.402-2.297 1.344l-2.006-.01h0zm3.45-9.551l.771-.002.59.001 1.774-.009c.622 0 1.012-.365.995-.904-.017-.523-.39-.863-1.004-.863a454.26 454.26 0 0 0-4.669 0c-.622 0-1.028.365-1.028.887s.406.88 1.028.888l1.543.002zm-1.194 3.382l-.787.002h0c-.523.001-1.044.003-1.569-.002-.589-.009-1.004-.365-1.004-.863 0-.531.398-.904 1.012-.904h4.661c.614 0 1.02.365 1.02.896 0 .547-.381.871-1.02.879-.386 0-.771-.002-1.157-.004h-.001l-1.157-.004zM32.79 109.7h2.438l.591.001 1.756-.009c.581-.008.987-.373.987-.879s-.406-.888-.987-.888l-3.159-.001-1.585.001c-.29 0-.547.067-.738.299-.224.274-.299.589-.149.921a.86.86 0 0 0 .846.555z"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M108.901 39.013L90.358 51.32a52.57 52.57 0 0 0-5.059-3.052c-16.089-8.442-25.684-.979-28.296 1.559 5.399-5.789 11.42-9.33 17.382-11.395 17.266-6.013 34.068.357 34.516.581z"}),(0,e.createElement)("path",{fill:"#7a8aee",d:"M85.299 48.268s-5.49 1.766-6.991 6.162l-22.027-3.831.008-.025c.025-.008.033-.033.042-.041l.315-.34.199-.207c.041-.058.099-.108.157-.158 2.612-2.529 12.208-10.001 28.296-1.559z"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M154.729 36.525s-17.946 13.062-29.308 4.138L102.872 54.43c15.657 10.847 32.26-.929 51.857-17.905z"}),(0,e.createElement)("path",{fill:"#7a8aee",d:"M154.729 36.525l-22.391 11.561s1.434 3.865-5.126 7.87c9.728-4.818 18.851-11.436 27.517-19.431z"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M226.316 18.637l-29.814 11.519s-5.466-6.842-14.77-8.335c-2.364-.398-4.96-.431-7.788.075l-.24.041-1.228.265c0 0 21.728-9.819 31.075-10.889 15.392-1.791 22.765 7.323 22.765 7.323z"}),(0,e.createElement)("path",{fill:"#7a8aee",d:"M181.731 21.821l-1.384 1.965-23.959 7.862c7.049-6.104 16.088-9.446 16.088-9.446l1.228-.265.24-.041c2.82-.506 5.424-.473 7.787-.075z"}),(0,e.createElement)("path",{fill:"#eac250",d:"M275.354 67.229a4 4 0 0 1 3.918 4.011l-.154 51.575-72.905-21.595-5.851-33.402a4 4 0 0 1 3.708-4.683l33.281-1.928c1.644-.095 3.095 1.063 3.367 2.686.257 1.529 1.565 2.659 3.115 2.691l31.521.645z"}),(0,e.createElement)("path",{fill:"#7a8aee",d:"M264.895 85.247s-6.659-28.52-11.511-35.768l-35.337 5.515s12.415 26.314 14.596 40.296l32.202-9.711"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M241.475 77.394s-6.659-28.52-11.511-35.768l-35.337 5.515c.747.224 12.166 20.783 14.596 40.296l32.203-9.711"}),(0,e.createElement)("path",{fill:"#cedcf9",d:"M202.73 53.6l-.174-.672c6.261-1.592 19.547-3.566 27.284-3.715l.017.697c-7.572.141-21.032 2.14-27.127 3.691zm1.012 3.301l-.175-.672c6.262-1.592 19.547-3.566 27.285-3.715l.016.697c-7.571.149-21.031 2.14-27.126 3.691zm1.011 3.301l-.174-.672c6.261-1.592 19.547-3.566 27.285-3.715l.016.697c-7.563.149-21.031 2.14-27.127 3.69zm1.012 3.309l-.174-.672c6.261-1.592 19.547-3.566 27.284-3.715l.017.697c-7.563.141-21.023 2.14-27.127 3.69zm1.012 3.3l-.174-.672c6.261-1.592 19.547-3.566 27.284-3.715l.017.697c-7.564.141-21.023 2.14-27.127 3.691zm1.012 3.301l-.175-.672c6.262-1.592 19.547-3.566 27.285-3.715l.016.697c-7.563.149-21.023 2.14-27.126 3.69zm1.02 3.301l-.175-.672c6.262-1.592 19.547-3.566 27.285-3.715l.017.697c-7.572.149-21.032 2.14-27.127 3.691zm1.011 3.3l-.174-.672c6.262-1.592 19.547-3.566 27.285-3.715l.016.697c-7.571.149-21.031 2.14-27.127 3.69z"}),(0,e.createElement)("path",{fill:"#fadf68",d:"M270.839 72.819a4 4 0 0 0-3.877-3.346l-27.321-.475a4 4 0 0 0-2.378.733l-8.501 6.007c-.618.436-1.346.689-2.101.728l-23.056 1.199a4 4 0 0 0-3.734 4.674l6.956 40.334 72.291.141-8.279-49.996z"}),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"A",x1:"80.292",y1:"83.873",x2:"93.014",y2:"179.78",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#7a8aee",stopOpacity:"0"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#7a8aee"})))),(0,e.createElement)(Cl,{progress:t})),(0,e.createElement)("hr",{className:"mt-14 w-full"}),(0,e.createElement)("div",{className:"space-x-3.5 text-center px-[70px] mb-5 sm:flex sm:items-start sm:justify-end"},(0,e.createElement)("div",{className:"mt-5 space-x-3.5 text-center"},(0,e.createElement)("button",{className:"bg-white hover:bg-gray-200 text-gray-700 font-medium text-base py-2 px-5 border border-gray-300 rounded-md",onClick:()=>n(!1)},(0,ft.__)("Cancel","wedocs")))))))))),Ll=({children:t,className:r,isMigrationDone:n,openSelectionModal:a,setShowMigrationMap:o,setOpenSelectionModal:s})=>{const i=[{key:"betterdocs",name:(0,ft.__)("BetterDocs","wedocs")}],[l,c]=(0,bt.useState)(i[0]);return(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("button",{className:r,disabled:n,onClick:()=>s(!0)},t),(0,e.createElement)(dr,{appear:!0,show:a,as:bt.Fragment},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:()=>s(!1)},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25 z-[50]"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto z-[100]"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-[900px] transform overflow-hidden rounded-2xl bg-white align-middle shadow-xl transition-all"},(0,e.createElement)("div",{className:"sm:flex sm:items-start sm:justify-center p-12"},(0,e.createElement)("div",{className:"mt-3 text-center sm:mt-0 sm:text-left"},(0,e.createElement)(Fn.Title,{as:"h3",className:"text-2xl text-center font-bold leading-7 text-gray-900 mb-4 text-[#111827]"},(0,ft.__)("Are you sure to migrate?","wedocs")),(0,e.createElement)("p",{className:"text-gray-500 text-center text-base leading-6"},(0,ft.__)("We want to make sure you have a successful migration experience to weDocs.","wedocs")),i&&(0,e.createElement)("div",{className:"select-migratable-plugin pt-16 pb-12"},Object.keys(i).length>0?(0,e.createElement)("div",{className:"list-area grid gap-1"},(0,e.createElement)("label",{className:"text-gray-400 text-base leading-7"},(0,ft.__)("Migrate from:","wedocs")),(0,e.createElement)("div",{className:"list-field-content flex gap-5"},(0,e.createElement)(bl,{value:l,onChange:c},(0,e.createElement)("div",{className:"relative flex-[3]"},(0,e.createElement)(bl.Button,{className:"relative w-full cursor-pointer rounded-md border border-gray-300 bg-white !w-[600px] py-3 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"},(0,e.createElement)("span",{className:"block truncate text-base"},l?.name),(0,e.createElement)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2"},(0,e.createElement)(Da,{"aria-hidden":"true",className:"h-5 w-5 text-gray-400"}))),(0,e.createElement)(dr,{as:bt.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)(bl.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},i?.map((t=>(0,e.createElement)(bl.Option,{key:t?.key,className:({active:e})=>"cursor-pointer relative select-none py-2 pl-3 pr-9 "+(e?"text-white bg-indigo-600":"text-gray-900"),value:t},(({selected:r,active:n})=>(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("span",{className:"block truncate "+(r?"font-semibold":"font-normal")},t?.name),r&&(0,e.createElement)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-4 "+(n?"text-white":"text-indigo-600")},(0,e.createElement)(Gn,{className:"h-5 w-5","aria-hidden":"true"}))))))))))),(0,e.createElement)("div",{className:"migration-to-label flex-[1.25] rounded-md border border-gray-300 bg-white px-8 py-3 text-center sm:text-base text-[#333333] leading-none"},(0,ft.__)("to weDocs")))):(0,e.createElement)("div",{className:"relative mt-1"},(0,e.createElement)("input",{className:"relative !w-full cursor-pointer !rounded-md border !border-gray-300 bg-white !py-2 !pl-3 !pr-10 text-left shadow-sm sm:text-sm",placeholder:(0,ft.__)("loading…","wedocs"),disabled:!0}))),(0,e.createElement)("div",{className:"migration-changing-notice flex border border-[#DBDBDB] rounded-md py-0.5 px-4 mb-6"},(0,e.createElement)("div",{className:"exclamation-icon my-3.5"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM11.7071 6.70711C12.0976 6.31658 12.0976 5.68342 11.7071 5.29289C11.3166 4.90237 10.6834 4.90237 10.2929 5.29289L7 8.58579L5.70711 7.29289C5.31658 6.90237 4.68342 6.90237 4.29289 7.29289C3.90237 7.68342 3.90237 8.31658 4.29289 8.70711L6.29289 10.7071C6.68342 11.0976 7.31658 11.0976 7.70711 10.7071L11.7071 6.70711Z",fill:"#4F46E5"}))),(0,e.createElement)("div",{className:"text-[#6B7280] text-sm leading-5 p-3 pr-9"},(0,e.createElement)("span",{className:"font-bold block leading-5 text-gray-600"},(0,ft.__)("Migration Notice: ","wedocs")),(0,ft.__)("This will migrate all your docs to a Single Parent Doc. If you are a BetterDocs Pro user and using Knowledge Bases, migration for Pro users is coming soon.","wedocs"))),(0,e.createElement)("div",{className:"migration-notice notice m-0 border-0 border-l-4 border-yellow-400 bg-yellow-50 flex border-[#FBBF24]"},(0,e.createElement)("div",{className:"exclamation-icon my-3.5"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"14",fill:"none"},(0,e.createElement)("path",{fill:"#fbbf24",fillRule:"evenodd",d:"M6.257 1.099c.765-1.359 2.722-1.359 3.486 0l5.58 9.921C16.074 12.353 15.11 14 13.58 14H2.42C.89 14-.073 12.353.677 11.019l5.58-9.921zM9 11a1 1 0 1 1-2 0 1 1 0 1 1 2 0zM8 3a1 1 0 0 0-1 1v3a1 1 0 1 0 2 0V4a1 1 0 0 0-1-1z"}))),(0,e.createElement)("div",{className:"text-[#92400E] text-sm leading-5 p-3 pr-9"},(0,e.createElement)("span",{className:"font-bold"},(0,ft.__)("Uncategorized Articles: ","wedocs"))," ",(0,e.createElement)("br",null),(0,ft.__)('Note: During the migration, articles under "Uncategorized" category won\'t be transferred. Please ensure to categorize articles appropriately before migrating.',"wedocs"))))),(0,e.createElement)("hr",{className:"mt-8 w-full"}),(0,e.createElement)("div",{className:"my-5 space-x-3.5 text-center px-12 mb-5 sm:flex sm:items-start sm:justify-end"},(0,e.createElement)("button",{className:"bg-white hover:bg-gray-200 text-gray-700 font-medium text-base py-2 px-5 border border-gray-300 rounded-md",onClick:()=>s(!1)},(0,ft.__)("Cancel","wedocs")),(0,e.createElement)("button",{onClick:()=>{o(!0),s(!1)},className:"bg-indigo-700 hover:bg-indigo-800 text-white font-medium text-base py-2 px-5 rounded-md"},(0,ft.__)("Yes, I'm sure","wedocs"))))))))))},Tl=({migratedDocTitle:t,showMigrationMap:r,handleMigrateClick:n,setShowMigrationMap:a})=>{const[o,s]=(0,bt.useState)((0,ft.__)("Untitled Docs","wedocs")),[i,l]=(0,bt.useState)(Boolean(t)),c=[{betterDocsName:(0,ft.__)("Categories","wedocs"),weDocsName:(0,ft.__)("Section","wedocs")},{betterDocsName:(0,ft.__)("Subcategories","wedocs"),weDocsName:(0,ft.__)("Section","wedocs")},{betterDocsName:(0,ft.__)("Articles","wedocs"),weDocsName:(0,ft.__)("Articles","wedocs")}];return(0,bt.useEffect)((()=>{Boolean(t)&&(s(t),l(!0))}),[t]),(0,e.createElement)(bt.Fragment,null,(0,e.createElement)(dr,{appear:!0,show:r,as:bt.Fragment},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:()=>a(!1)},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25 z-[50]"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto z-[100]"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-[900px] transform overflow-hidden rounded-2xl bg-white align-middle shadow-xl transition-all"},(0,e.createElement)("div",{className:"sm:flex sm:items-start sm:justify-center p-12"},(0,e.createElement)("div",{className:"mt-3 text-center sm:mt-0 sm:text-left"},(0,e.createElement)(Fn.Title,{as:"h3",className:"text-2xl text-center font-bold leading-7 text-gray-900 mb-4 text-[#111827]"},(0,ft.__)("BetterDocs to weDocs content mapping","wedocs")),(0,e.createElement)("p",{className:"text-gray-500 text-center text-base leading-6"},(0,ft.__)("We want to make sure you have a seamless migration experience to weDocs","wedocs")))),(0,e.createElement)("div",{className:"px-36 mb-16"},(0,e.createElement)("div",{className:"product-heading flex justify-between items-center mb-8"},(0,e.createElement)("div",{className:"betterdocs-product-heading space-y-3.5"},(0,e.createElement)("svg",{width:"150",height:"30",viewBox:"0 0 150 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},(0,e.createElement)("rect",{x:"0.191406",width:"149.287",height:"30",fill:"url(#pattern0)"}),(0,e.createElement)("defs",null,(0,e.createElement)("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},(0,e.createElement)("use",{xlinkHref:"#image0_3069_17734",transform:"matrix(0.00140327 0 0 0.00698302 -0.0227193 -0.104031)"})),(0,e.createElement)("image",{id:"image0_3069_17734",width:"745",height:"173",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAukAAACtCAYAAAANkuFYAAABXGlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGBiSSwoyGFhYGDIzSspCnJ3UoiIjFJgf87AySDKwMVgyiCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsisOQb8OwuXvGnqEj4t38/ofQRTPQrgSkktTgbSf4BYK7mgqISBgVEDyA4oLykAsSuAbJEioKOA7B4QOx3CXgBiJ0HYW8BqQoKcgewTQLZAckZiCpB9A8jWSUIST0di5+aUJkPdAHI9T2peaDCQ5gNiGQYPhgAGBQYjBmOGMgagC3CoNQGrdWbIZyhgqGQoYshkSGfIYCgB6nQEihQw5DCkAtmeDHkMyQx6DDpgEw1ApoLCGD3sEGIFNxkYrBYxMDBvRojFSzIwbJoDdPY0hJjaEwYGocMMDPseFyQWJcJDlPEbS3GasRGEzb2dgYF12v//n8MZGNg1GRj+Xv////f2////LgOaf4uB4cA3ALpEY4vvKYCOAAAAOGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAALpoAMABAAAAAEAAACtAAAAAEWQdagAAEAASURBVHgB7Z0HfBzF9cdndk+yZGxcVIzpGAIYWZJVjAOhN1daKAFSIAES/iT0HrB9lggQIJQkBEgghIQEMKFbskwzBkyziiVZdIyB0CRZ7rYs6Xb+vzn57JN0ZWd2r+rtx/Ldzc578+a7u7NvOmN0EAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEIL0J8PTOXoJzV+3dlQlzImNWIeM8nwk2knExgjGOP2Ym2Drd5H0QXIe8rEFe1uJ7G2NGC+O+ZWyad6WuUpIjAkSACBABIkAEiAAR2E6AnPTtLJx/m3/zKMa7T2GcncyEOBCOea5zpSmkQYg1qIDUMiaeYR7xBJvibU0h68lUIkAEiAARIAJEgAgkDQFy0t24FNWVpzJh/RJO+bFuqEsbHYK9jrz8k82Y/UDa5IkyQgSIABEgAkSACBCBOBAgJ90J5JqKYuZj96PlfLITNWkvK8QXYHQLY6P+zqZfvCXt80sZJAJEgAgQASJABIiAQwLkpOsAfMG7M+sxboPoWTrig1dGfI3x679m02c9M3gZUM6JABEgAkSACBABIhCdADnp0Rltj7HI62Gb+RUYdz0LgTtsP0HflAgI8S/Wk/VrduI165XkKDIRIAJEgAgQASJABAYJAXLS7V7o6ooSTAZ9DOPO97UrQvEiEviGWdapbKb3zYix6CQRIAJEgAgQASJABAYhAXLS7Vz0Ku9haD1fAAd9qJ3oFMcmAcE2YyWYE9mMOS/alKBoRIAIEAEiQASIABEYFASMQZFLJ5mUK7dw4yVy0J1ADCPLWTYmlFaz6rk/ChODgokAESACRIAIEAEiMCgJkJMe6bJXVZyDlt4nECUjUjQ654QA96CX4jFWXfELJ1pIlggQASJABIgAESAC6USAhruEu5oL5k5hFq9CS2+q7gwaLmfJGS6wmKUhZrBpcxYmp4FkFREgAkSACBABIkAE4keAnPRQrKu8EzG85S208GaFOk1hsSIgOjE59yA2w7ssVimQXiJABIgAESACRIAIpAIBctL7X6Xqm/IY63kfwTn9T9HvuBBoY6Y1gU3xtsYlNUqECBABIkAEiAARIAJJSIDGpPe/KKL7bgSRg96fS/x+52GjqHvjlxylRASIABEgAkSACBCB5CNALenB12RB5XQMt6gKDnL/u/gfE+wLDKfpdl93XDR6wGg32L97TFPj4nSMT5eTdukgAkSACBABIkAEiMCgI0BOeuCSL7xtB+bb9AHGoe8aCHL+KdZBx+PMYo8ybq5gM2743LnOJNKw8MbdmLD2RP5+iFVwzgK7fBetW8UyPfuxY367ykWdpIoIEAEiQASIABEgAilBAMvf0eEn4Nv8W/ccdNEBXb9nI4f/iR18OTbsSdNjyg1fImfy73VWe//VrPW7X6GX4AasiDPGhRznsC3d10DP1S7oIhVEgAgQASJABIgAEUgpAtSSLi+XbBH2WR/j2xDnV088j6UEz2FTvXDUB+Hh75GQFR5xOSoqzlbHkTuSZmaOZcdeu3YQkqQsEwEiQASIABEgAoOYAE0clRff55OTRZ076Jz9ik2fc8KgddAlyylXbWTTZ1+PceuH4pcz51ruSNrVdaVUSwcRIAJEgAgQASJABAYTAWpJnz/3SGbwVxxddCHWMFMcDee83pGedBOuqShglngTLeo7OsjaRmZmj/E7/w6UkCgRIAJEgAgQASJABFKJwOBuSRdegxnsz44umNwpU2CnTHLQB2KcOrsF49N/CD7WwJO2Q3ZgPZtOsB2bIhIBIkAEiAARIAJEIA0IDG4nfYFxIVp5D3B2HcV1bKYXrcV0hCQwbc7LWK5xVshzdgM5P8NuVIpHBIgAESACRIAIEIF0IDB4h7ss8o5km4wVaOkd5eBCLmXTZk2GEyoc6BgcolVzF4PTYZqZ7WbZ1mh2pHeDpjyJEQEiQASIABEgAkQgpQgM3pb0zfwmhw46GuGt88hBt3m/m+JcmzFDRctAhWp6qBMURgSIABEgAkSACBCBdCQwOJ30+ZXj4WFf4PCC/pVN8zY51DF4xKd6P8GyjA52EBXlgwcW5ZQIEAEiQASIABEY7AQGp5POrftw4fWH+gi2HsMv5EY7dKgQsNi9KtH7xuUlfX/TLyJABIgAESACRIAIpC+BweekL5h7moOx0b13AmezMT56TfreFjHK2cw5i7Aj6Xd62qklXY8bSREBIkAEiAARIAKpSGDwOekWu93hhfoQm/Xc5VDHIBYXL2hlnvORrMY7WkuWhIgAESACRIAIEAEikGIEBpeTvqByDlrRd3d0jQz+G0fyJFznAAE56Q7gkSgRIAJEgAgQASKQOgQGj5Ne5d0Jm+pc5/DSPMemznrJoY7BLc7ZCm0APjZSW5YEiQARIAJEgAgQASKQQgQGj5POuRyiMsTBtelmpkGt6A4A9oryddoqTJOcdG14JEgEiAARIAJEgAikEoHB4aQv8B6CxVx+5OjCCHE7m3LDl450kLBcU6dLG4NlZWjLkiARIAJEgAgQASJABFKIwOBw0i3+J4fXpI2NGl7pUAeJ+wnwPG0QllirLUuCRIAIEAEiQASIABFIIQLp76QvqPglJotOdHRNhLiCHXz5Zkc6SLiXgCV21kbBWbu2LAkSASJABIgAESACRCCFCKS3k77IO4xZ7BZH10Owd9iMOf9ypIOEgwmUBf9Q+u5ha5TiU2QiQASIABEgAkSACKQogfR20jcblRgDPcrRtRHs147kSbg/gUn9A+z9Fp1sirfVXlyKRQSIABEgAkSACBCB1CbgSW3zI1hfXbk3lly8CE66/iHYP9jM2U7W9e5Ne/7No5inewIT3NQ3JoaSAmO9p89uiGEKvaoXVu7FfKJYM51lmnJxFduxoGB0ZjYvimuiSMzy8S0ZHvbdd0ub9Ze4jLfRlB4RIAJEgAgQASIQlkD6OulM/BUOur5TLBjGoFv666ovvG0H5tt8CxPsZMa7d8GwGxwi7IVI+InqCmleHcbv/5ZNn6W3K2i0TPisc+XyLnoHr9WTi69UVpbnQaR4UnxTZczAnS5we+WXF8vPrxgX9SBdxyz+djdf//bquhU06TbeF4XSIwJEgAgQASLggICux+QgyTiILqg8AZ7Ks45SEuJqjEW/TUvH/IoyZrDHIbu3lnyihYS4B3l3d034Rd4stsn4Wnv4ERfnsGlzHk40mmjp55UV1XLO9cfdR0tA87wQ4nX8PdLOMx9hdXWbNNWQGBEgAilOIG9SATb283yIl/+ObmYFjQNrOfOvwLVWcNbBBfsa7QYrBeefC259umULb9rQ1ERDFt2ETrrSnkB6tqRb1p1oEXZy8T7VdtCfv3EXxn01aDHOdWJAQmU5/zWrmusBgwtcs2OzcYG2gy6NsMxXXbNlECpCxeFQ+Zcvem4U5cUVbbWNfx6EGCjLRGDQE7CYMQEdb6466BIqXrkj8D/+tvaX4hUs38L+N7Ew2NBMxrLLir9BUD3nYqmw2Ctt9U2vy/h0EAEiEJpA+k0cXVBxLUqLcaGzazNU8EttxhwYzfT9DumnroMeyBHnv2RV3omBn44+F3lHYijNbH0d4m0244bP9eVJchsBzvLw0vxTfnnRp3nlhdO2hdMXVwnklBXunzup8HBXlbqobFhRUX5uyYTy0SUFB7iollQRgYgE4MiPxd8MuO5ebvDX8sqL1qEsehZ/P4soSCeJwCAlkF4t6c97c5klZjlqRRfiRTZj9nyt+0Eu+biJndnbdKClIZmE4Mtx2ZLuvDV9M7/JUSs64/9OJjDpYQsfxxmvzisr/n1bXeNvkSf/rIn0yFtsczGqrGD3DJ6xm8Ws3Q0mdhPM2B0zAvDHd0N3v/wc7bfAP0eg8JrW2uZbY2tRP+0H7Zo9unPEXh7Ds6slrD0MznYVjO8Bu2Ab2w1O0j69EiZG5TE2rKQkf0NDQ1s/LfSTCMScAMqg4UjkBPmHsugWzKW5p9Poum/9ux+sinnilAARSAEC6eWkG/wOOOhDtbkL5mPc+D9t+S38cKSPTr00OTib4jgn8yvHw4HRd/TlNRlqPeLYDlIQkgActmvyy4r2b+30nc5aWrpCRqJAP4H88gnHMmZunVQN13xrZ76/O39bzbz313ZkhrNeve2KbH3DnIgneDc/NTBl3uC9naX9rQpWli26dtnAGDnpwVDoe9wJyFZ2VCRvzLaGXJ9VVviAr5vf2tHU9L+4G0IJEoEkItBbgieRQdqm1HgPhIP8U235XsG7sbLJp9o6LP49bdmkFOQoNB0e3LoPGiL5CJET4OwJdqR3TeRIdNYRAc5PzMvyPOlIxyAQFsJMugnB/bGjZbK8fxj9JgIpRiCbc+MiTyb/EqtV3T9y4sSRKWY/mUsEXCOQPk66j9/vkEobWmznONLB2beO5JNNWDjc4XPB3NNQcTrMQbYwYMCqdCBPojYJoBVrJsaHXm8z+uCMJjD7LemPVLAx6SGSgclD4JcZHuv9nNKio5LHJLKECMSPQAq8dGzAqKo4B86gs0mOgv0WLbbo9XVwWNarkIZjmS4HJmzqHvO8mdi86W5d8V45MZ9N977nTAdJ2yYgWEUyT3a0nY9YRewd3xIr7a7oxdJ3+r1WrlhASoiAuwRwS+9kGvzlvLLCP7qrmbQRgeQnkPpOupysyZmziVlyE58Zsx9wfLlmeL+Fi77QsZ5kUWCwP2mbMoxfA1lnw2U4p1Z07QugLoglGg0u+CPsCJZec1XUUaSyBDnpqXz1yPawBOQQmLzy4noMf9kzbCQ6QQTSjEDqv4w38dlw0vMcXRfTutCRfB9hrAfOrKUIcmZTH50J+XEfNg96WSvlKu9OGIbubOiEYPPY9NmS46A4sNFQPe7j9XYzi9alXFQIx0Am166MnXjQu2veusJftbHme+zEH1RxhGynJh94UF1zymxSEcDTV5JhWs35pcWnttY3pk+DWFJRJmOSiUBqO+nVlXtjdMmlDoH+h031vutQx3ZxuZ73fO9JzOAoQPiw7SdS6ttzcJD1V7lhhhzmMsRBjregonOJA/nUEhWiqa2uSXtSolwSkFvGLqbJZyDjZ0tH2xEAwzgb8uSk94OI9VyS30XH9o6ouNFBBNKWAHr80HsunsHQvKntS5sXp21GKWNEAARS20kX4i68kDK0r6QQ2B5dXKEtH05wpvdNVlPxfeYT18O+k+GsZ4WLmlThQqyAvXex6XP0h7nUVByKFbdPd5Qvzm/GWPT0moQbAQgmMchd+LSP1XUtX0BY/r2FvxuwpOLtaPHVvq/h403KLdlv5/aGD7/WNooEE0WAXPREkU/zdIVgjdgp9JmI2URvE+qJ+3LBDkAZVBQxrqOTPMsQfAE25DqsvWF5rSNVJEwEkphA6jrpNZXHYOOimY7YcnZTzJzBqbNbYNtZ7MVbRrCeLUdhaMIE/JmO7I2VsMHWoiLxNpxz6eQ5OyyBJRcd+AlCfME2WDc7M2JwS7fWNV2ZW15Uh3mO/9EmYQ6Rq/I8pi2fnoIObuy4AUkFG+MGgxJykQC3fouNuapVNMpdbZlhTMRNeQjeCyein8fN5RSzDdOoGVkyvmxNw/ufq9hFcYlAqhBITSddeA22wLrXsTO4UdwW8wt17LVwgNnTW/9inlxCE6iqwHh8tKA4OQx2JTvdS5vqOGEI2fbapkexsU0muob/oaPKEEwOvyEnXQceyRCBdCRg8fWq2drayi1buv0LM+SWTziCC/NCOOunqeoKHZ/nZBoZz+cVFBzc1tLibHW20AlQKBFIKIHUXN2l2sA4dL6PI3KGcRk5g44I9hWWq+ww9Ew4OsQbmKz6hCMVJLyNAMa5P4wJqVqTqzBFctw2RfTFT0AufZP0KFLBxqSHSAbGikB77fJX2+oaT+/q4XthmJ878144L2TZHuers8Uq06SXCDggkHpO+vNeuZqF10GeMQxdvMamzXrKkQ4S7ktgM78Jo1xG9Q1U+oXBQOJ8JQmKHJWAZTG93iLB8qMqH3wRkt5Jh4FJb+Pgu20ox/0JrFm2bGVbbeNvBO8Zi/fxo/3Pq/7GTf8jrPgyRVWO4hOBZCeQek66YdyM19BwbbCC+ZiQyyTS4RqB+ZXjsXGRw2UsMZZ9ivcD12wiRX4CqxqaXkaL1Tp1HFz/GVNPjCSIABFIdgJyCVKXj7alLd9iDs1ZWGzgFPT6ORqugimr7rTMu5xHUkcEnBBIrTHpNRXFeJjPdZJhOPj3shmz3nekg4T7EuDWfZjJrz8pVrDVbKj4bV+l9Ms1AkJ8gutTqqSPs6SZFzCspCQv07LyjQxfHrfMMcxgeVhpQvbabES32DouLFRCjHU+4fuio6HlPaV8qkROhXXSBUo4110pFUiJi5tTXLyLkcHyOfOht9XcyUJvEFYjycKE/fVorV3H5T3CxJqebtGwtrl5deIsxSYakwp26hFmrsdio7otoxkty2tU7MktGz+Wscz9mbB2ZtwYg6FYO0p5yxJftdc3/01FVzLExZrnT+WXFHzKTFMuXTxGxybMv9k7v7Toqtb6Jr3eQ51EI8hg46USXJCJ2CJujxDR0HbCV3QLa9nquubmEOdTNgjzA4bxLFxDH/bxMMwxliGfSZErmNjELbZaGLwDo/I6LOFbtaXHWLWhqak1EZmV5QXPtPYReAZNzndE0bkjyonhKC9Qgoq1FjPWwu61lhDtBuv6PFGrnaWWk+5j9zt6BfmdQWtWIm6ItE1zwdyT0YouVwLRPzibzY70Kr2k9BMblJLfquYaS6gl7HrIdd89zDwJL7FjUVoexbg1tHddJNQDt/b9bV+wHDG21g89WFE2v6y4DS1qL+MlsLjH8FV1LF3+pWre3YyPF9POcrKcM53GN5gI/KEzHeGlucdzQX55kfI90kejZT3VWr+8qU9YjH/klBcfaAo2E2tmH4Ob4KDtyfW2Fxj+yoq8P3Bm6w1j4oc5BLvflRU34kW8BPfJS7xHvPBdUxMqfO4duWXFl+MFvztqTLm4H3OgORdm5OD9n4NPOAOsd+1g3M+Zvcsanhwp9R0LCkYPGWKcCIfvJJS3ByEbef74PNAZLjOJx6M30zFx0oXHT9KfTiz+a21oacwrLTgEz/O7cLj1hk5yfhUrK7uL1dV1x8LGSDpzSot/AvxHI04Jbrdif1wjcH1CS2bg+uWXF8M3FHWI0QC5mtbapidDx07S0IN2zc7rHnUk7umpeM5Owj2/m9/Srd5lLwHZdoB7FD/8dyr+M1FuD81kbCjyj6MFz2M9HovFnaLz2fV1H7W7nVuseHYC3mt4n3AA91+jERhVsdWggF0wbKuBvaUIqvb+gKyt14l9DLtkWbxEGNZb7W3r32ErV3a6bWuwvtRx0qvmnglWk4ONV/7OsW45OYPK2MIKzPNmomdDrlWvfwj2Pptu/UVfAUlGJcD50Khx+kVAYflVv6CY/0QhegaKzPNQSsoXnd4B5wUvgzNwT57hEaZ0xhah8H+YdfqeTMTqD7DleLiFx+tlJiAlOscUFeW67UgGtOPzV9veVEGBSl+5MRHxUbGK7TH8wP1zsnxDcI+Ic1Ds7N9b9qgXQL1OFF7WnF0oMllnXnnRM3DYH2qta3zBaQ5ySoqOhrP2hwBTv3OyVWkYS/cNlyau+w5WBp8Fe6/ZFieMkm3nY/SF+9AOGuOjrb7lk9ElhTM8Jn9TKyk8//mi+3w0zcblnYLlH/fwmJkXciHOxzXSq1ggo6iUyNW05N95Wxsa/ip8W/6SqNbbqOz9jnnOmXB2f8S72XH++M7uywJQKICKn2bz7Aeyy4qexTAox+UJWErbfoaK8gl4Dof3lhcI0bQV1/h7kJZ/Mzkc/Pxc+Pm5Rc9bFp8nMjY+1/HOJxpDS6EtwtFbyYkQISlOvXlHNu5iFHpODvEe1gG/14kGku1HYJhxJa7L7v1C1X5ydj7j3pgX/mpGpVtsMVY9R6JBXUZD4gjmQbfwL9CS+ylaLDCBzIGDHiJ5FKpH4gX4D55trkTr5pEhotgOwo6jCSoveVZXhk+2xto4tjWt2ojrXhRU6ka7p22gJtmSnFdWeHOWL3MlruktuKb7D4ylG4LO+d6K3UIsW1oru8F1NWnK9baK9xPOL5/4AzjoHyG/2x30fnHS8WdHQ/NbaFr+tX7e+NX6svYk8ydOOBgVu+pMM3MlCoWrcT9qO+gDUuxtaLjeMLO+QiPDvNHFxXBgk+MYVTZuBJ6Ru/O6R38HP/dB3Ju9Drrb5nF+IvKOtfX1Dll5gp01cMYX4u/HfgddT1VUKeg+3jTYv8yeoStjUXYk6KUTNd99I6zeIMcrazgaQWoMTpNFg3A4/lrl3QkF6fWO9Aj2FJs+e4kjHSQckYBseUQhsl/ESCFO+gR7N0Swm0FctpznrS9+Xxb2cM7Hual8oC4MM+DsRRT86e3woDl4YN5TN0S2JKMCN2cIKlmcG9fCGZJLvcbsgP4yM0M0OnEQUE1SG+8eGLoSlCu0AOJ9Jd7APbtzUHBiv8Zg4mi4DKEV9S8YKvZ8uPMRwznbI7dswoyIcTRPSucP1+Yp5jGXoFydpqnGthiu/2meDLYcDuffhpftK1e2S9iRXz7h2Aw2DJVGfnEsnd5ABgX3aY30wI7bV2aaGR/Azriu9oP0RnFTlAbsd+sz+Z30hTfuhprQVQ4z/F82dfbrDnWQeDABzuXW88rDKIJUbGEeud49HbEkMMSXoV5QCbayo77p7VjZlTdx/PdQkL4lW87xEtonVun01wvvFfOD2C144T3c/5yt36nhAKeNk44l9U4WGWwFKnDeeDgF2+8Bf4Xu9dyywrO2h9n/Zhpijf3YvTFlZTogI3uW8M5z0usbk/d6rMekB/If+OwRvt+gIWhL4LfKJ4aYna0S305c9OSclmFkLMe1iTh/wI4u1ThwAM/L5lnLnc9vUU0Z8cvKhuKe/DuKzxfwzs/X0BAXkfwJE8agd2MxbLwNZUZWXBKNQyIxeZhdtbvHugv6hjjQuYWZxuUO5Em0P4Ea74F4CH7cP1jpt8D63VNu+FJJhiIrE8C0l7mqQhi68IiqjN34aKG8iHsyP0JBOtmujNvx8ML7GRz1mzT0po0DrJH3uIn0tp4X/wsztp5KpFNgcOPfOZMKj1HN+JZus0NVZoiV6W8lzSstmoqbDD1Ljo6YDB/kPXK6a/yO1XUtX6A1/U6dFGUL9MiJE0fqyIaSQXlxD3py5qHsiGlPTqi0t4fxMQYzF6EMvWV7WGy/jSovmpDPu5fjnvx5bFNypn1EYeEoMcR8HZX5w5xpcijdO8vUoZK+4sntpNdUHIpa6w/7mqz86/fkDCoziyzg4/dHjhD17Dds1DAdJymqYoqwnQBWDbhfp6Xa6mH3bdfi3je0nt8Le/7onkZ9TXjZXpdbXvwrfQ3JKYmlKVO6IiGX27Qyuez1/EkyEDYs/rR0VFRskcspYrUOJYcWnTR5siUQlZJHVdIKEzcm7/V4t6TLvHWyLXIu2uYw+YwYnGEI9V7EEBrRivwYyosLQ5xKSBDK0Gtki7F8VmJpQM7EgkkeIZ9Fvlcs03Gsu6AgM3OIsRBc5ITOtDu0xvzEhYLwGmwBNrhx9s75hm2wfufI3hdvGcG6uyZima9SrGQywpGuWAljYWBgQjecaGZTvZ/EKhm/3gVzz8USYBMdpSHEFezgy7UKXkfpDhLh3P32G86HDfkTsqvc5QvX4olVjY1fuY0KL5Un8Sw7rXC7ahY8mftGFxVVdTQ1/c+WYukAJ70LjFdVih6jJ03YzWP53sB9snuyZEG2nHqYeAj2TFK0SQ55sT2Z0OJWjjnEuBJXz43W37RoSZe85VJ8WRhqgZtafSIpF7JV9XGpR/MwMR9C7kx+gqZ8zMRki3G24XuNl+17aEyWK5xUeLhhGdUo75wMaY1Z/oMV52WZt+L+UH0+g1W4991yv7cpeZ30av5/aFU4wBk9cRk73dulpWORN4tt5rfAQb/ELy/nYyXz60+220gbq+fW4vMXbMbsZq18RxJ69vdY6L/TYQu46GAz5rjRWhTJ0kF5zr+Wcpb5E7zoMdFafUMQOOhr0Yp+mdvw0KL/L+hMKgc9kEczE8OuGDsz8Js+E0NArhphCuNFlPlJ46AHSMAhKpdrYK+qb3wkEBbtE8+gnDxq20k3mXE43i8nRtObyPOJaEmX+QV/vC/UV3vBNZBOuvaBnj/ZsJB0DnogQ6hA7p8lsl7LmLzP991c+k+uKsQskRIO+phJheMwn7nXRwuASbPPmHSLOWZU4x0NHTc61LMESy7q1aLlyiWbjVo8oCl48Xk5WtTfZXJdebePjM45YOJw4ggfzaorfuG2aSmubx/Z+q2SB7QA75pbWlgmJ9ehlfp3aPF5KSvbswoF9924RmNUdAXiwkn/idut6LDLC/1JMXQhkM/gTzgAZ+SWFZUGh4X/nhIrpyRzU0JYtB4+vArXYr+wERJ8AuueK40DRpuJ6rh01yvHbiOLxzrpoWxurV22BGXTN6HORQ7jE0ZP3mfHyHFCn0WZej0qjEldaZKWo7wfb/qG2q48hs7t9tBep9eSSxcmfQu6tBrrk1+33fok+BaDMenJ2ZLuMypxkzjp9sOSxhrdY/Ia+1vQjafwrSAJLrmmCZjZzNnDbL73czbT+6amkr5i1ZV7ozXj4r6B2r9uZPPmPcxOP92nrSGNBFHQ7s2HZ62TO8+pHb3+GJwbNbEQsbGd+GXt9U3zQ5zSDupdBo2jYufOgRd1I3K6Aj2K3xpMtOENBV+Iy6VAsQMjL9JNBS0VskJbrysfDznebcZkCINrtnMMBtQ8UEn6C67rDzTFB4hhsuFrCPwaf99C71rcH/jg+2C00pFoXR07QMBGAOR2ySspPKytoVnqjnogQTncJVEHbmn96xHOaIGujnDnYh7OxWJcwzNU0zG6s+U45ToVubyJBRNRpjptJFRJ0lFc2Hq83OG2va7xDkeKsEGR1cWr8D5K4ORY+znwD+vEqjf2JfrGxLSRDbinqgW33maW8TEzfPgNL8dnmAbHTsHMGoGdMUZiZIJsmCxB3CK8av0TvPtqCvo1KIa7zK8cD0y/Csq2zte/YcnFRh1BDHE5FnIHackml1AG9l6phElHu2KWsO6FI5Thii655v0OH/wcuh5wSR+pcUAAhdVv4aDf5UDFAFGsrLAn5xa6qR0f78LJetjXw5+N1Mq/dV3rh+BM7aOeIj8VMjaWee3dc11Fv78FkIuPVGQGxJVLYtodNz9AOHoArn8dXj7+F1T02KFjwFHQWpGkd5dZDG10egjxHx8X8zxd/KXWpqaN4dShQnAePE3sksx3CBcnbLjJT8Y5W0466gWrcS/G/UCtdRkS1a4wxd1g2wnyJYiq7KTjGoyDnJKTzk3Pv22bFSUinn84vdZrwmKtWGnrG/hwmVhHPx9XaAwaEqfguXE0JCeQPEqmG9G7Os9JOZHXNer3cND3D+h0+ol7sQFl9+uoHH/BhbUKn6uYYa2XepHvbDAYh/T2RDjSFD/A91EqafJhmVNV4gfioryrR7X99va6JuX3U27JfjszI6ME1/I46DsWNsNfDT5kw5G7R/K1pHPrPhSgpnY2BVvPhlrXOJA/14WGSe3kXRY8ksmhOzO83zrSW1U5E0NoZOXFzeMGPMAP4lq7flO7aWQ660JhtRqF1TkorJ5zO58ZpnUPCmKlITzBNsC2hcznu7ZtWYt0OqIebXWNb2A93+I81v0k0lUrvDnbE87ifu21TR9GSgislP0uCDzXWtt0QSS9rp6Te1WrFmA+33l2Obtpq1w2zRD8T6rmBtsAp+e2zi52+4amptbg8HDfca8/kFNW+AYgvYjLuWu4eCHDBZ+J8MtCnusXyJlYpXwd+ukY+FN0wulbjL8aS4h3TG619fDNbavrVqwdGDe9QtDa2ey/tZWzZUgn3faBcuBWRD7AtkCoiIK1ozfnjs3d7MEo9+VNcniJZbHz4fRdjOfAyRCTbDMTe5doVGRkFvy9B9y4KFR2lMIEFq/AOuXdYv1zqvdlLiarcsu4EM/ODLDYYnUZERfBwPM7Wck2RMaz84+2uibZQKh1tDd8KHvo5F+VVJBbXLwvy2Dnwov5KXykYdzqjvgOkTKqR3I56VVzT8EFdlizFLPYkV4HXY38+6oQkzg+7mNT5ucZbRsXeT1ss3Wn6y8c7ArHqivPhF3/0baNBB0QEF6xYcsd7R9+6G/ZcKBogGhOeeGJuPGmDzhhL2AzStIrUZD+xV70oFh1dZu6CgvPyszkn8E5HhF0JupXbrG9EMn1AjZqwm5HQLOUE6fXbXMi6RuSyW+CrZG7j8MowMv2E2H5zmxvWI65Q2rHqrrmD/LKC9Fby/0vWrvSuKds99LgMqx1ryFddKJp/E+WuelGNycI2s13IF6ixqTL9FEZW4GKlcZh7WJXSO4miiHFNnrUImlEudrp+0NbS4utnqnvljavgLbrsJziHVmGby6GWWj3KuF++9HokoKKjoaW9yJZGPKcx/PnkOE2A+XzyLh1cVtd8wKbIgOitS9tXoxA+cfk7qrrmz5qHxApKADP2H6qz1hXl3V5kArHX9sbG2UvqWwUvkYuodq6/P3vHCvtp0Dvvu+nxJWf87yZ0ONsTBUTn7DpQi49p3fMm2eiNpSjJ5ykUkLs5MiyzXIjKG775aSUln8VEiUJiuwSARSqlxjDMq+UK8K4pDKgBt1gXO85FmwTWggPkVuCB5Spfq5tbl6N9hL1SqnBbLzM5dhmOtwgMKKoaC90of1SS5cQTT7PxjIdBz2QXlttczUWS2sL/Lb7mVs2fqyduBji0GEnXtQ4aJnsFj7Zy3N1Ih10v53+sf1RLY5JhI6ly7/UU8x3tCuH3UT1HTi0nmOC1WT0ms2166AH27WhoaENvTwXWsKH3hrRGXxO5bvHNK9ViS/jYvEBDLvRnxOCXs//tjFPMZ4pbQe9v812lpVEi7tSBR92ftD7fuifmju/W5cvd91Bl5Ylj5M+jF+DVvTdHeEyDCzb6EWjg+YhJzIKf1eGpoIkFDPEx9pWPe/NRavmHG356IIFWIXmxOjRKIbbBPzj/7gxe0iWZwVWiTnfLf1yjDEqdUpdzL1py658MRUvqnrHtnCu3LrqHyMaJWFDtlIn+QEDk95GiRCt6BW4B5XfP7LFbpNlHuOGwyq4UL9PWIYtJx2TzRz3UKESs6SbbThU7ryZDLddopZgDOQd5YOt1ulAfP8nZ7aG3MklQNEFdV4fWZs/cE9+3eXjk1bVNr5rUyRstPa65VWWzzoUETaHjRTxBP/psKIiOdHR/mGw2fYj942JvN+IXs/TGHox+56J/S88Hz0qqeD6pmQDrHIhqQLFdlw5blow5RpgP/3PsamzXuoXpvPTtdqgTuKuygjRxbLEO9o6TYxx49zJOLnoSXP9AiK6cooRjYAcFmIYxl+x5NirbuxgB0f24mhphjwv2BVt9U2vhzynGmhZYScOhlMlONduvQqnMzHhuKJJfmy9z36iY6bFrONlq6OObAgZZccCY41tyjibawPn5xuxvnOa6rjeEHlMnyCNyc3YydWWk27y4Wegeqv8rkPFweI+32nYZXalW6B7e4iE9jyWLA87y64tci4O4h5sN36feELch7lAs/qExfEHnG61coCzvK1zDuJopfOkksNJl93jzpzBbmYav3GOQ2oQd+C/Le7oSrAWzu7E+Hz11gdpdk1FMRrlzo59Dngpq6k8JvbpUAqRCKDAO3yoYS31T4SJFDHCObmiC57j70eIEvKUbDF0MsSlv1K00Bb0D4v6W1h2uiqT3gGGo5H0NmKnRNtORPB1g4N8gxxPHhzm5DscuPGq8j1dzM59oqp2QHxhWGfGYr7IgIQUAhI5Jl2aieulXpG2OdvUEOLnCii2RUWVuKJ12fI3twW49AXDZv6JXmyt+Vron/qxfTOw8aHGgWdxMcrs/9MQdU0ENmByttoh5xzklRc/Jse8q0kmLnbinfQa74F4sZ/pCIFgf2BTbtAcs9Yv5Rnej9Cqf2m/0FT8+RbLFl5tw33sfm1ZVUFLXK8qQvFjQACTeblHvJ1TOkHZeZHWZHqsc3Ss8vl69MYmh0uMa+xuyo2vw6mjcHcJoBahXt5jGcq22qbfuWUJJtgdgOrMAWr6RGcsx7QGbEHr7D+3TqILBCXFZ0LXSe8lsIMqCDQARO35yCku3gU+yGRl3ejtaBUZN6nK2Y0vDN8VcNS77MYPxEM9vVyunBT4HemTC3FKpPPhzlk9PocTbMNpVggXYplC7G1RUf78KJtnfZlfVvwHOR4fq4Ip96BsUxaHL4l30n3cqTPYxkYNq3CV1YzZ9+HhmOuqzngqkzdvtjUdrejqLQ/SzuqKn+EFplxoOcjiEUizxIE8ibpEQI5VN7lZPfzA/ZXH7+GFeKSyGYK9qLUaQZiE8koLz0Gb215hTocN7u4WK8Oe3HYi+YeSoCcQ76DkPfIKCobpOEQoj//iZq5Mw1Qu33F/f+6mDeF0iR7uWmUkXBo64YluScc7aZiq3Rh0FHVugJEh1JZs3WaE+D3GYndv++nyl7alLd9iGN5fddRmZvjX8Y4oKisnKO/3jhgp5Enx8qplLUtDnopjYLfoma+fnH/Dx8sxK7Mmn/dsxHDPxXllRdfllkwo19cZG0lPbNTa1FpVcR4evIk2Y4eLdiU7+PLN4U5qh8+Y42VVFU+ij+0yvPRPhx7lWrx22rqCQryLm+4vbPqch3VVsDfvyGZrNtyuLa8rKEQlRGfqiqeB3J1wsNbZzQccBg9aTPLQ5Sed6Tz0/hRKB9uufMR4nO2ZZWU+ibfbERHj9TsJ7/DAfkFRf/qY5ZrzlV8+8Qdw5u6Jmmi/CGi5fH9tU9Nn/YIH/kyBoSS4D5LaSp7l0Rr/2rnF9+DAC6IXIrd8B6RTVaXh8D2vKqMcX4hX2hubPlKWS3MBDKUbifIxWzmbPPoEXgyjORJPjeqxuW3VOqcNjFHT7BE9t2Vwj/pQXo5dmBl7PFIChmkdp7N2CN4990XSG69zaxre/xxDV5bh0jn1IWWheRj+O4yb5k1oYd+EPL4DvW/g3fCm2LhlSSKHniXOSV/kHYb5y866igR7h82Y/c+Y3RQzZjdD9y+2/sUsmaRSvGb9HFRK8uJuE+czWLX3ADbd+17c005wgigQlrTVNuov/7XVfrlOq8jipXjpnABf7QS0++6smzUUWodj1Zcft9c3/9uOjpyJBZNw32TZiRscx2IbFwX/1vkuJyJmG9YVeIljhSh1DVjK6wl1KZLQIYCltyYbqoJCvL2upaVDVax//FFlhYXYhnkuwk/uf87Obx9j/7UTz0kcS3HtdidpqcomcriLx7TGoXxRNZlZgn0VTQh9TwWqmuWYbLZypV5PdTSDgs7LlX3giH4E+/YNCo7+lUePj0YdxeFeSBbDb1A5cdCCHd10pRgWuwUNk48pyUSLjAnE4H0koh0JRtiSL4thR+tGZH6xzxKPdTQ0vxVNhZvnE+ekb+IVeOacOYMmw4YUdLhGoLoSXV/CsbOobw/3Qlb2WgyuQ2dpsRCEtq7TugCn5N//ofvuEhQxcsMYrTF33PDvYGfLSeeGofYSgYFopfhUd/WKUWUFuxvcKDGE8WOsSX1aCBy2g3p6jHl2IuPFLItsO1ETGSepDcT25er3Ced1ukDl/Aqs9Ci3HD8HYH6gqwc36xer6pre0Za3KyisxXajxjteYoe7iP11nHT0hH8cjRPGZY/HEKxo0fqeF/4ytm9Y7H69ANVqz42ws7eJnTh9M4XGnxfiUTnpm2r4X231jfPgQFfi8n0vfCznZ6BfLqRR7DH5xXiv1uN+uaetfe1/4sEiMU66dAaF0FuqLcAb27uyqbNRu6HDPQL+nUUz3NOnqEmwU1iNdx821RtxO2BFrYM2OtavvRvdxM9iQufLKGDQEqV2wCHdKa+s8DTsIhe1pVnH+YI1DZEsyt1vv+Hmjpl5PRbPMwXfxeJsTxSWB6Ll+xjkJ8cvq/huHZCeEI92NDa1DAhP0QC8RIEoqQ81Z6M3K/WRciTnT2T6MvIM4R/+tTsA7AUKR+AeOTqSnMo5n+DXq8TXjYueK+0KiW6aduUS2ZKOVTkOtWtncDwsZflZ8O/+3/2buXE+pH941N8ictkVVV4pgpwgqfhU8+ibGKIHYU9FrWimEO8rmR77yHKA34+QzBL8qQ+H0rAPZUspxB7Mzxlxi5VTfEv72o33sE8+2aKhypZIYpx0Yd2Ld4lpy8JQkQTWqrXEVaFOUZgmAbkMoiWO15R2R0xubuLzvwx/7o5C0iLX7x1dVHS4mSnehNO9mzIR7l+iK6qTzrixk6puFHan5pcXY7RP+AMvWWbKNwn+tg+TUH21hNGPHU6xgoL9niP5OnAp6TAWpX0weiPGqkIE8gdxnzwYFo7cvk5eF/yp6g6rM+gEbsGlq+obHwkKislX3Otfx0SxS0p5D2Y8JOhAwofrPHo+n/FhJJONjIwd0acXKUrIc8JgrSFPxCAQS7F/q+ou4TkYDlMksrCZwxyLUf4YSjaLb5SixyEyhoo25JYWn24YcZgzEpwfjATBO+kPeSOHXsXLi69urW38V/Bpt75vf++5pTGanqrKmXDQj40WLeJ5zuew473tEePQSTUClvizmkCMYnN2Dlt4o7ozGSNz0kFtR1PT/ywLXHUOwY5jR7ColXkMXVEej65jjpsy8O1myxUUFHTq+AkK6l2IGgsv1QWzAiowXyIurV2B9Nz45L6e893QE00Hbq410eIk8nyidhzNKy3YBxX68cp5F+w9NFJEZGoaPVr3I4bIfadsj66A4Cpl1LZUsIsqKiARDi6GRTgb+pSIzz4BoRMPH9pe3zjf55M9rKIjfKzYnEGRKxuo/om5Aw+yffZR75WJYlZ8nfRFXg/jckiFk0N8guUF73KigWT7EVgw9zKE7NcvNHE/fdYFiUs8PVNeVd/0Clrq5NhGpQMvRyNnfVFZVCGeAqsfBWXCEuLe9rrGPwQFpcvXZK9IaM2PSMTFQRNkj2WJE1obWuI0rNL+6k6J4JG4Memm1jwl9Nq8Go0T95m+aHFCnTeFiNtqb3ACtZ4ZT2d2xLwJwbtC5S1SmMGMyI5/JOEYn1vV0PRyD7cm4rldGuOkQqpHwfuLvBFDl7i97np8nfTNBrqW1Scr9CEijMuw/ndPnzD6oU/geW8us/hcfQUxkfw55iwku7MRk4zHVqneDnYYlybH4EU+BI/4QogsHN+zKMT/3l7XdKF6qilwTyb5cwPHSQ5OSfoD94hPWOKH7fVNz8fNWEy2iFtaGgklaEy6iZ539SUIZf4Efy1aNgF8Y7Q4oc4bGSw/VHgswjAIVCuttpaWDVHsiXZ+oLiNse4DheIX0rF0+ZcY/jIZ5cxp+Is41CkWVqFRqyyfdz/qpu74OenSGRRijiPjhXiRzZiVPMv/OMpMkggbxs0YlybHryXTMZYtuPHEZDIoHWzhW6wanXzgRWZj+JFYr6obLftxH98Ix+t6FOLnqtpK8d0iEH3d6v4p4WWr1d3fX4/d37gvv8J43elxddDtGpfAeIloSc8tK/o5JgKP1cl2t8UXRpMTWRuVyy2pk1t6jnM0e0KdR5mlPN/H1rAPrjO8yj+0I5SZyRQmsDvxf/G3v8XEmRiKGfU+cNd4fkJ+WdH/uaUzfk66ieXcuF63jT+zgvkwOc21jLsFMKX11FQUw0FPUodFxGUcaEpfP0Xj5RKNcEC6FcXw2G5dSSWyoHqrDMMkJMHi8kyjoH5D9HTt21bfdFPkbEQ4izUpI5xNllPJbqP6fSLYQ7hP/h0PwKiQ/lls6BzfWteoPDQsHvYlMo24t6QftGs2hnpU6OQZ5dz8aOPRpd6Odz5Zh8bDLcppcOtgZRlNAZS/ymkh/5/ZSG6FjTh9owh2aN+A5P7VXtv0GFY5m7qpS4zBmvlXoMJfg3eBehmkmE30uV6nKBI2enyc9AUVk1D3PDusFXZOcHEXmz7rUztRKY5NAj7/VtvJ+lKfjs2NdrWZE4pmkwAutvIKEijwR0VTD73/ixan/3m8fErhDN3HhG8fFJyx2ShGiP9gV9OTUFAf2rbs/ahrJve3sd/vZH1WtpkJpkltI0Z0fLnNWPtfinGf/ASO+hSIuL9cpmBteHnfJXp6StDLclEidxe0jyT+MePdkp7flXOdbiu6YJbtIQfY/eA9dZpc3otxObCo1AzVhFAIfBRNBr1FUeMM0MHZATnFxbsMCE/ygA1NTa2Yg3QHWten4V0wHGMzJ6NydhXKlGfw1+a2+ahc7oYVqX7qht6oqza4kQiz2J/Ul/rpk3IbyxbePiH0wxmBqoqzcE2Ua+jOElWUFv7C6X5FKYoemQAaCxUPLlCmRT58THyCwaORI4U4mzOp8JjWpc0v4dRpcoMiD/OcCEfuILw4y6BNeU1tVCiwxr5YgpaMmnaR8Ryrq9sUItm4BaHyEZ8y1kGOwDpuNuLmW4HrepSauWhJLCsb2lpX9wLkJuSUFx9oMjENw+8nYbMa3CfqXfCwYyk2sXkNQwmea2tofk3NnkEaO47zHbBBzSEoTmbpkRadvNN6zq4snNX3kFaJ3fj+eJxPzptUsJPi6lBKScjIo0uLvo+KyghlQS7XVo98oPGi3gxa2DZy7O1nDdM6Cb/u2R6Set9W1Ta+C6vl3+3S+jGTCscJn1EsDFEOp30i2jqmy3BHhxCnQP5fjnRAOPaFc3XFz5DOZEeGcnEdJovGvIvCkY2pJPzmHdlszQb/zZnUZnN+DOwjJ93FiwTndVdVVxovsejjNgUm6agqRr6wAc3F+JBOOpNbYOPjT1v/2Jiioh2sDF6Cl9RecHZ3RcG5Bz53w3kTf+sxDmc9WkPWw6lfw4SxbLNny2vr3/1gFc7F5pBOimpDNWcjY2OMe1qFh8fNRtwiH6paDuQj80X3Oa2M/UXKBr1g/apyS/bb2TAzCiyL74kBSbui5XEPXKid0TrejXtyXe/9y9fDMUeLOXunfdXat+KxU6BqPil+L4H8CRPG4DrN0+Yh2D02Jk1uU28J6zXsXvzjbQF2v1jmtYh6qd3oOvE8ht6wCcGMF6Ol12V2v55tDYkWbeB5blzHjsB7+VXWM/BkaoZ8t7RZDv2Rf0/LHOQVFAxjQ4zTmGFcjDJrogxTPdD4caSqTKj4sXXS3XAGBWqE0+c8GMp4CtMksGb99Rh+NFZTOn5iQq57SodbBKQzgwJH+ZmHaxq1O3BV/fL388uLsEYtH61iL5yp40eVF01YXdu0vL/cd01NcuWFN7b+9T8d/9+cdakmCt5xc4BVbQvER0Upbjb2CPaGB1CUD86ugIzfSe8v297woRzCpTyMq78e+h2ZQFzWSUePCWPdL6JipvV+gnOPW6xbaWlV02QvoQdO+UCjwS+HlZT8bkNDQ9TyUVk5BLDutmzdP0FdVnyHYR0N0eRkg0ZWWfHHYP29aHGDzyP+LvkbCi9vZc23Boen0/etlbyHkKeH8soLp3FhYANOtodKHlHM7Zg3sWBi27KWZSpy/eMqv7D7K4j4e836OXhp50WME+2kKX4VLUrE87KisG5dIXaylDe81oMfUb8bJw0DjT7iM0wZX8ameZvcUBlWh9woyGddGfZ8Mp3gcB7mV5SxmbPrksmslLXFzJTbJ6sflvjYlpBc8oyzk2zFDYqEzRP+iZ/Rl3kMkknEVxS6azTSnaghoy2CguRbjeEfsmyMzZyAfjnpqG9aispcJ94LWf1ORfnJx+WXFVdgbPrsKBHpdIwIxHpM+ujJ++xo9nTPR29VoXYWhHi4ve79b1TkZSsqhtcoO6tII3uoYd2PLv4fqqRnMy5GdGHCtE6FlvFnbaaBVSrZ00jiarvxA/HQqTgLjSvVoRpXAnHS5bOttnnBjgUFpUOyzCWomO2vki9heHZF/CR10ud7x6EgvkYlQwPjin+zqd53B4bbDKmquADDOm5Bp/oIvZvdZjpOowWq8dhrmFVXfIMxAOezqXOqnKoNKd/juxOFoEYfV0htsQ/k4igkQk66C6QNYZyn8xxYltViJ3k4iM/AQVR20vGSKMktK74i2TcXwoupA61IigfPySmdMF72NCgKakXHjp4duMaqS7YdopWYnpAPHJ8Dx9OVxTFGGS1TTzltmVJOlwRiTmBkyfg9PL7MKty7BbqJYSjc6k7WKYegKB/cP9HUUK8AcnZyXmnhr9vqm+9RTjSCACYd3obTxRGihD2FnTdtDxUSlu8fzDCVnXQ4q8MyhHh5dFFRmdzROqwxaXJiXUtLB67zrfCd/q6SJW6IMSrxQ8WFVxijwzDudKRZiE1oXdZv8a2ueAIP/L2wYYQjO+IvPBabC81nVRVKXXa2zKypOBQ3mZzMkEqHfqtKKuUyxrbmlxXOxfNwgHoyonPVspZ6O3JGt2yNFWglVT8wrvw2+bJTl4yfBJbwWq2TmmEYv9SR05FBy5i6jVhWLbe4eF+d9HRk4Ew9oiMnZbjHfClnYsEkXXmS0ycQoyUYOdaUvjDDzGiGZdoOusyVhfkt6+s+atfJIWbGP6ojJ2W4Yfw5t7ToeF35/nLoMboAYZf1D7fzG+19X8mdN+3ElXFk4wFG+iyxG79PPM7zPRlsydZhOX1OpeMPNFYNGJIZLZ+YDzMqWpxo52PjpNdUHoOENcZSBZnL2U1shvfboBD7X6vnytrOqfYFkjAmZ5ejVf1S1ywTXgOl2H2u6Yufor3jl1R6ppRXOuF0vEnUW4mAAwX4q/jAOyz6IceQ4yVhuxUnWCNaZrh82eWVFzmr3AcrjfAd6ZybW16sNJTOYELLAUDj+wXxcoKxYomyjX70Hvb7CLhcPdW7SZD4Tk8pzzE95mu5pYXqE/0UE5TDL/LKCm/ILZ9whKJoWkbnPbI4cO/ILSs8K6+sqAUNR/egB264E80od+avqm/Urvytqmv+AD2Bz+vagJ6hZ+CoO31fc3/519u4qGUKypoblQUtoS4TSITz3dHA8iY2nTovEBTPT1TwbsNQpYX+d1yMEzZMj/oIBM5anZoVGyfdEnc4M0ysxGTR32npWFi5F+q2P9eSTT6hq5kcU+/GscC4EFw0WlLdSNyBDs5xPenQJYAC7BpumI/ryqNip+R0+yyfI2cPL+tL8eL+JFaOUW7JhHJ0JS9BOg+g8Lsvp6zQ9hhDrOtWq8eRZ2GRw3dySoqO1pO3LwVHQ89GzCUA95oRhYWOW37sWIudAB3cJzwLvROPwKGpRne7HPPp+oHWwV+YPTu8j5pjJRfmX11PIAUVujFxVK6agfvsYsxL+BQrqvwbFcTxTlHI1uMetv4nTvXg/Yg5dHqHv4nB4Hfivlmk09ODyYnT4XAuk+WfngWQEuxz/74TigqwwVsNRi28oygWFB3PI+d/g/1vu9GjkD9xwsHyHglKIPxXzq9EBek4+Y5DD0RLbnnRGeEjOzzD/UsqKinx+dhXSgIhIntChDkLWlD5Q1xwZ0MUuCFn8usdlviRnmBSSo1lazecCMsec2TdIu9ItolVYLhDKh5j2SJvFpbg1BpGkRIZ5izbbTtzSouhcjJMAAAZmElEQVSOMg3+R+h10oW82Zex+UkV2zoaWt7Di+px3GrazyFeeHtzZi5CoS9fHA9v6RKPrW1uVh/GAeFhRUX5QzPZoXiRH4UWu2NgV59hHRgfPdJu/mRXenZ5Ebo8+QS7MoF4eJGMNE3+ElpmsWeE8RA2zWkInAv3iRfOCbD3PLx8P8MGHJeEixcczrm5yN//ERxo8zu4T8nM5M0YdjSrh298anXdirWRREdOnDgy07DOFwafjmXs7kZr5DOR4gefa89YfV9e9+ir4ZTsFByu8h2y0zyZ7EtUROcJLv6N3QWfU5EPjjuqrLDQI9hhuDaHgflROJcbKC/RUjgiOO5g/S569NbTzyst2Afzwg5BhedEsDsOXIe6yRAVvlOi3at20pPPJCoPWNea/9RO/FBxcO8cYXo876LsegXdDs9h+FkN7suQy476h4kIMRU8foh7uTxwv4XSaydMcOv/7MQLFQdDOX5jmObSUOdsh2HteCyB+hwc7PeR7/l4bl4V67tet7M5mLxHUOafjDL6QnDYExxZfknB4taGlsaw6WNH2j77Z2M4p8H4o0j/Rix/eFv75p6HWEuL8opcodLLKSvC5kf818rXyBBJ6KRbYrZyRoKpCLGITZ/9VHCQ0ndLfB8XWkkkqSMLMRH2OXPSNxm/wzWJSwtZTFhuZuOg972Y6E4CpSigD0PBcna3z1iMraxX6pgkW4TRMlwIXcdinegj8Ah8T0dPHxnB7vVvm90nMPoPIbouYzxjOmxx1IWN53gyUps8ZAj/C1pNa+GsLsHEyMWW8H1penhHZydb3d95h+O4Zybr2VmYHI4WPxmOp3/VGLeKBDj7L0OXspMeoAZH5SJ8vwjOwAroeh4v8uVYAvFLi1l7oDVqXzynGxC+F9gdjnh7+OVQnOXut98Ndl52rbXLlsBB2Ah2OwTSVPlE3naBo/r3DDb877DxZZlfOP2foDLTCZYHcC6yEZYJncX4Ph2M/cW9ybkcEmXbSWdv/W8zKxt1MexU6qkJlRfYfDqsOB09JJtxj7xhYdlOg/veYj7R2oP7JGOL0bF1OU+/+KiycSMMtsNYUxh7YK7+8ZDBfcJ29mckVAIU5idgmPzmvNKi2cKwBjSYGMzIgROTh50+UbkxdkJD3Rhc27H4xH3Ch8UQ4c9W1TU5aAXua5ngvquZZcpyw5nNnB+Fx1b+sa33ZSs23voaz84Q3Gf5uF97e4Bw47lyCPZ0W13zAl1d7Q3La/EOehD5PldXR0AOOsYjV+NRNlzFh2cxVKLXoqxYhfPfobzr5zTzoXj+vgcMAxpLLMMzOqAz5Oc3qFbnDjyD9NHIw+7LzzIrWFnRs5YQi7lpvayz8ZTcTApLxp6Ne/mCgSlFCxHfyWFU0WJFO+9uS3p15Uko0IujJRr2vMDYV2H8Oux5Wyf0W2ZsqY93JDHw5lUyYX7leBQO2jVspbRiFdlgzgrMWNnlol4ULP/IRJmDAh1lltyuWXxjQ70s4ndDYbhXcFyEOT8E27TJMm7RUSSXQINTfRlkH9CRDyWDl5psaZJ/lxjYywgvOzYEIwQlr74HTuC8Kwz6Ku79xcUL4H1JqFNqYXwcLt4lfjvxH5ycbeKh3tudQ4ZkI8L6bZEifEEr1itQeXyEKDZP8aNhC4bogP42oMHft6sBdeV3CZyKJ9BF/QzU473hypENXceC5LH+/a5MGAXDBKoUA+8TpIc8+bO1LW+u2JC2SoBpEjP4ArR4hs6jn+fW+zhwwwQ+Q0toh+KyYj10cYqT3pNQiUtHDmXXpTjnWtkFXfK+3AN32x6xwIGy8OvNlqE0vyZU3lmn71KW5Tkatu4Z8rxmIPI8AnnHHxsX8lELGYjn1pLL3Tk4MLEV0uej8eN8+JWysiCX2XwFE9c/R4HWuxGe4OvhdK7hhoW6Pay0jCykvDfexxPQ2HUC4u+sa4HF+MO6ssFyygVrsPDA70K2EukfcsLEjFnv6yuQkuLbrUWvMzXJIs211mbebj237gOPMI/B9mhJ/c2HTrRBdCCzGJKBVtUEHhi+cOmGhsY2XROwmcaDaNE9Hrfeibo64iKHJmKVdLBmbjUcPrkkZYGKXDzjYgm2mz0md8FJj73V3Wz9OR4xvAUl1C6xT003hRQvP3Wznbxym7GWy6nteBZjYaK/7CovPgK6XRjnHgsLt+uEgy531Z3pxoZKcgMfDDE5iZmet5CCbBRI6MEN7necwxoxtof3Ge4SNmLvCTzFsncZrfZbi3z5iX+9TTpbK57+akHv+a2xomiNdFr8PdJZu+ec1VSCU6m+KQ8/jwwOUvoulzfLtmYpyYSKbPC3QwWnbBjny7RtXzD3NDhJh2nLJ4tgcDNjstiUznYI8Wh7ffPfnGbR2rDlp2i1+NSpnpjKox9WVT9a8LyqMvGM39HQjJeseDmeaeqmJccS+yzrNF35+MjJfhs6koKAwBCmbjZJVpZjaU9rxqpf4jlfHMs03NCNYXKn25nfYjctOQYcS83OQPkxYEiTXR1uxXPcku6WIXp6Hgk3F0FVnXtOuuj5KRLXr3xwcT0mB65RzcCA+B7rP7jBNgwIT8UAzFpnWdYzWqbP82ZijODdWrLJJuSz9O+rZMtLktsDp/q/rXVNrrQgyTHUVg/GVgu2MmmzrdiSLvOBlrb/wm0LP6EpFpk1TTVHsceaHQszYqHTX6mw2FSMYeo3XjUWqenoDDS96ciSjFsE5DPn6+GlHY2NsicrtgfmTLSJjOlIc1FsE3Kg3WI/VJmsbTclbCq3CKuSzEy4o46Zp3ZtTqZ4uGe+sdZ3XuiWTe456VycqW+UeA9LLt6rLx8keaz3C1zaK4NCUvirdZb2qibDjGuR8bEpnPntphuDa7jL9ozH+ZsQf8MqIqcj1cjdjApmrWps/KqnW2B1FeF4Ao1CsvajarSk+5X7uk7DG2Sd/YQcxvT5lCqqrcuWv4kWsTkOU42beGt940Ks0HIyyu5NcUuUEkoJAig75IDhW9uYZ5IsT+JmdF3dprbOnqlwuubHLU07CeEZwZC2Y/DMPG0nuk4cuSGSr8d3GPLuvOFUxwApg0HhEUXlxNEkPDCH/mw7k/ztmu6Oky6XyJMTu/SPCn3REJIz5tyPYR7eEGdSKehsbOb0mpbBVd6dIPdbLdlkFLKstcloVjrZhNLuIrSg/xJ5cr3gk9tGt7GMsqR72ckLqNGSLsXalr3/Mea5nygdCPk7GQ+0iKFcFdrLEsY7T3IIg9XDSsA0uYdIxRvMIE4PhdFHPksc0l7beA2rq+uOOwos4ddW13g8VghxpxHRYQYwBOdLy/IdrrKrqG6S2Gl6qc/q+YG8Bro6nMjZGpPuJAGXZVFubcDbc0pr7fIX3VTtjpO+xZikbZQQK9CK/ri2fDjBabPmYlWT0wHtnXBRkjT8BcygPxbLUP5T3z5DDnMZoi+fZJIZO3yWZBaljTnSce7yde2JcY1/jmmmZKuUfNlZ4rKYpqOoHA3UmGiud7TXLn8VTv65etLxkWrN6DgDjvpL8UnNeSrtjY0fiQ1bSuAYuP9O0DbP1kpL2tpJcCABlEuNqP6egXJpfO8ci4Fx4hnSXtd0IcZIHwYnOeSa5/GwBWk/JdZvKZDLJcYjPZmG3PeirX1tMZ7H2L4fdDIkl3FNkgP369fYkPdgbCb1gtsmubO6iw9LM0XumAhvt2E4cEbDq/WfmTbnCXw+wRZ698fap7J1ObkPj28Fk8N1nBw1FYdisIIcspAuxyo25aqN6ZKZZMkHCt1lzGdd0tbQ/Fo8bcKW8HdhBYFFzDDvQG/XUfFMOzgtvPD+h9+XrW1qclQBbKtv/kd+6YR6YRjzsDjhfsFpJMV3vMha2f+Oyy8tuhIbfPwOo6szksKuCEZs7So+I6e0eL5piAr00u4VIXqMT4mXsUTbb2KcCKnfRkC8jGfzDizPGdOJoduSU/iCnTlfZ2VlhXmsR+4Fcy1cHnf8pyg2oIX2AziBV6PsfD5K1NicXrmys20lu2h0cfF9Zoa4B+Xc4bFJqK9WOxNHfRb7KQbD3opyLWFDe7GZ1m2WZ9ONq9/5JCbDH925ybgo1Z4zavhi32IyxSvHw8q/9D984o9wftInn8k86TAkZfEmnoWykKeSIBAvwMcwwPNvq+qbXkmUOVt3kTt6dEnBAabpuQLzg84CMwyZi/2B/H+Iwv8PbqxeE7C2tX55E17epfmspxK9d5gw5G5e8IL+ZENTU2sgPY1P0VrfdFtuaSGuOb8TS5AdqqEjogg2meqIGEHj5Kr6xkcg9gg2VToFnxfA9mM01GiJgHkVNu25rX1p82ItBSRkmwBYy+GMT/t62O0djU2xnxRq27IQETHkBuvSzsotK8J4cH4zXrXHhYjlShC4NKIX7E7ME3rYFYUOlWydsHsE9jZAnlF57t1szqHW8OKWyb4Lf7b3TKCMwO7MZ2KdritRtsEXjc+BytODwtoyu73hw69jmaI73lzV3MW4YIepGyrWYaiLXOSeDjcIVFVcgBp+UoydcyM7fh1CPMlmzDnVNX1xUDSisHBUpge7fxpyQwSsp42dGlGo7Y8WiPj35gjRBMcUzyerMbr44uCdF+OAwlYSoyfvs6PZs8PZcNZPAqsYtK6LzzDs7SWfIeatWtoc06Efw8v2zc1m2dhJU/waL/HRtgCEiyTEOxjw/gDv9D0m1zAOF001XO6ihx1Cr4eDgRUcHB+olIo7WmubnnSsKYqCMZMKx1mCn4uX1glgOyFKdOXTeE7krrYvGoZ44LulzSuUFQQJwJHRKIvFW+B4cJCamHzNmVR4DHZbdXXcrKqhcHBex7zAF8H8BTd3DFW1w2n87fekfz+IAqf6wOV9PE/PWtx4elVt47tO9cVSPr98Ana3Nn6B99oZbqWD/K+GrkfxfD+K4ZFvqOqVZRs2LzrO4OIwrG53EN57Q1V1RI4vPkMj1x97LOMf2B08LpNq3XHSqyuakLHCyJkLefYFjL2eEvIMBaoRePb3w5mncwWcnFw1wSSPLdgsNmP2jUlupS3zxhQV7dBj+A7ghoHt3429DSbGYiudPAjnwjkYA6cpX8+x8zuhn6FC0IGWhFXQ1Yq/hi3d1qtrm5tloZcyR15BwTA2xDwEG3CWoXW2HHwOQCG1r90M4KX/JQrnJs6sOmxYt7SzR7zrsBXabtID4uWUFB2NhYmOxUv32KgtPEJsxHCU97gQH2OnunqrWzwuJ9wOUOpiwLCiovzsTC4d9eNQQYKdkSsVaNn7CvE+BOMW3Gtvd3VaNetaWlxvQbeTxdGTJuxmCOMQtJ7hvePvuSrE82O7y1u2UuK+Wo5rs8wyxFJzC691swKbVzrhdG6Yir3E4jk46Sfayb+TOGgFLoUjU+dEhx1ZOFwb4CStAec1mJ/dhnunDs/mS63c8zomgabdKj4jJ07cM8PwzcA7eDruRTQ2ROtREx3g8S0q9J/ICktXl6hyOvzOznVxO86OBQWjs4Z4jsDqTOXQXYxrXgTHfVfb6WxtSEIF/Bm3e3hHlxQehDK4wGBsf5RZ43Fd9sd1GWfLNrnSFGfLcR83I28t2On63dbaZUtsyboYySUnfe5XyPjOynYJ9ggcMLm+Oh1OCVTP/SOuwUVO1SSh/CGoyMX9wUgkB+mobjbNoR7DGGrw7qEG40NR6A0VaP4K2MV9HI0t4qvWuuWDYiWM3JIJ5dgablgg/30+fWwDWslbV9e1fNEnPMl+DCspycsWnSMFN0cE8iKEsXlLN/ssURWJYETyvrM8nhF4mY30cN8Iy8My5Xmr22zrWLv2U4axqcHxk+07nKSR6MEqsFhPxgDbsNQmxq92eAyrTW79PuB8DALyyyf+IKQtYdLq6fEsi1frnHTUsQf6jmFMUQ6W5RH2cV/XZZlrhc+3NlGVN2XDYyiQN6lgJ+yIuZPw8JHbkkFZZfmMb2NdAd+WXoK+5O6333BraOYEwxQhF7CQ90uXj3+ZqEqJ7L3lnTsM5xliGLPEMP/7VVibmWmsZ6J7ndmdsc7NSruTy+COk141dyNqj+rdCoL9EU76JU4yQLIgUO3FcAojucfyaV0o7Ho2fU62ligJEQEiQASIABEgAkQghQlsa5lzmIcuPfnQtSw9XYNYSvD0GoceuJSCvR74Sp9EgAgQASJABIgAERhMBFxy0rneuFfOtncDDSbqbua1ulJOttOYtOumETHSZfBXYqSZ1BIBIkAEiAARIAJEIKkJuOSkC7mEkvohWPKtK6yei8RJzPNmYhzg3YkzIMYpm/zJGKdA6okAESACRIAIEAEikJQE3HHSueYauZxPTEoqqWLUDvwKtKLvnirmKtkpsN74cbM+VpKhyESACBABIkAEiAARSBMC7jjp/rU9NYksqDxCU3Jwi1V55ZrbN6QvBP5Q+uaNckYEiAARIAJEgAgQgcgE3HHSGa+NnEyEs5bl2kL4EVJJv1Oc3661ok5qkNjCLOs/qWEqWUkEiAARIAJEgAgQAfcJuOOkC0vfSefsx+zFW0a4n7U01ljjPRBrov84jXP4ODvem3abXaTx9aKsEQEiQASIABEgAi4TcMdJn+mVO7et07OND2NdXdfqyQ5SKStNl1wMXE6D3Rr4Sp9EgAgQASJABIgAERiMBNxx0nvJPa8PUFzOFlTSSi92AFZXXIpW9FI7UVMyjhAPsqmz03BjppS8GmQ0ESACRIAIEAEikCACLjrpxn+188B5JsYg68trJ5xiggu9+6PH4uYUs9q+uYJtRv7SeDKsfRQUkwgQASJABIgAERjcBNxz0rN9NczvZGkC5XwCq577d03p9Ber9u7IengVWtGz0jazXNzOZni/Tdv8UcaIABEgAkSACBABImCTgHtO+pHeTsbZ0zbTDRON/5xVVVBLan86C2/bgTHjaazmMq7/qbT5LdhXzCduSZv8UEaIABEgAkSACBABIuCAAHcgO1C0pqKAWQyTSB0eQjzKPEPPZ1Ou2uhQU+qLV3sPQOv5s/jbJ/UzEyEHwjocreivRYhBp4gAESACRIAIEAEiMGgIuNeSLpH1TvhzPrac8zOZb3Mjq/Gm7wRJO7dYVcXFcM7r0t5BZ6KSHHQ7NwTFIQJEgAgQASJABAYLAXdb0iW1+ZXjmSHk6hzOdQvmg56HmGnOZlOv/0aqHxRHTeUxzBI3Ia+T0j6/QrzLps/+PobyiLTPK2WQCBABIkAEiAARIAI2CTh3pEMlVFXxN7jo54U6pR0m2FNw/h/B2Oz32LRZH2rrSUZBOaSFG4fAMT8CzuoRMHFsMprpuk2CrWYeo5hNueFL13WTQiJABIgAESACRIAIpDCB2Djpi7wj2WY407F1NlcxIb6EU7s2ZfkLMQa27448DE3ZPOgbvpEJ6wgMc9HfrVY/bZIkAkSACBABIkAEiEBSE4iNky6zvKByOpxoLBlIBxHoT0B0MoEegxmz3+l/hn4TASJABIgAESACRIAIYOxIzCBMm1WNddMxPIUOItCPgDBOJge9HxP6SQSIABEgAkSACBCBIAKxc9JlIkOt89Ga/m5QevR10BMQJ7AZs2oGPQYCQASIABEgAkSACBCBCARiN9wlkOiLt4xg3V1YRpDtHQiiz0FJAHMHrKlsuvftQZl7yjQRIAJEgAgQASJABBQIxLYlXRpy7LVrmTCORos6bfeucGHSLKqc4DuZHPQ0u6qUHSJABIgAESACRCBmBGLvpEvTZ9zwOWPm9xkTK2OWE1KcnASEWMYyzUlpt2xmctImq4gAESACRIAIEIE0IRAfJ13C8jvqGQfiW3OasKNsRCQgenD6VsZHfZ8dc/13EaPSSSJABIgAESACRIAIEIE+BGI/Jr1Pcvjx7O+Hs4zOx7Eh6bT+p+h3mhDwTxbm52EFF6qQpcklpWwQASJABIgAESAC8SUQfyc9kL+quT+Ho343diYdHgiiz1QnIDqw/vlcOOd/TPWckP1EgAgQASJABIgAEUgkgcQ56TLXL3p3Z93GQ/h2VCIhUNoOCQixHBruYEPFo+xIb6dDbSROBIgAESACRIAIEIFBTyCxTnoAf3XFD7DxkRet6scEgugzFQiIp7Ef1p/Z9FmvpIK1ZCMRIAJEgAgQASJABFKFQHI46QFaVd5yLNX3GwyZ+CENgwlASbrPJbg2/2G+jEfZzOtWJ511ZBARIAJEgAgQASJABNKAQHI56cFAq+cej5+n4O9wjF3fE590JIKAEF+g4lSPpN9ipvEom3LDl4kwg9IkAkSACBABIkAEiMBgIpC8TnrwVaj27ohhFSXYEGkigndBS+5ItLaPYFyMgAOfFRyVvisSEKwbPDdguNGG3k+xHhra8LeMicxaai1X5EnRiQARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEohL4fwYn8r6uCkJuAAAAAElFTkSuQmCC"}))),(0,e.createElement)("p",{className:"text-gray-500 text-base leading-6"},(0,ft.__)("No parent doc, only category & subcategory-based articles","wedocs"))),(0,e.createElement)("div",{className:"min-w-[150px] visibility-hidden"}),(0,e.createElement)("div",{className:"wedocs-product-heading space-y-3.5"},(0,e.createElement)("svg",{width:"117",height:"33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"#3b82f6",fillRule:"evenodd",d:"M.191 32.387h15.416c6.598-.008 11.944-5.267 11.953-11.757v-8.873C27.552 5.267 22.206.008 15.608 0h-3.464C5.546.008.2 5.267.191 11.757v20.63zm15.416-3.246H3.492V11.757c.006-4.698 3.876-8.504 8.652-8.51h3.464c4.776.006 8.646 3.813 8.652 8.51v8.873c-.006 4.698-3.876 8.504-8.652 8.51z"}),(0,e.createElement)("g",{fill:"#0f172a"},(0,e.createElement)("rect",{x:"8.156",y:"20.237",width:"9.583",height:"2.398",rx:".282"}),(0,e.createElement)("rect",{x:"8.156",y:"15.4",width:"11.436",height:"2.398",rx:".282"}),(0,e.createElement)("rect",{x:"8.156",y:"10.562",width:"6.362",height:"2.398",rx:".282"}),(0,e.createElement)("path",{d:"M40.259 23.654l-3.162-10.758h2.77l1.876 7.743 2.181-7.743h3.097l2.181 7.743 1.897-7.743h2.77l-3.184 10.758h-2.901l-2.312-8.047-2.312 8.047h-2.9zm19.52.26c-1.09 0-2.057-.231-2.9-.694a5.04 5.04 0 0 1-1.985-1.952c-.48-.839-.72-1.808-.72-2.906 0-1.113.233-2.104.698-2.972.48-.868 1.134-1.54 1.963-2.017.843-.492 1.832-.737 2.966-.737 1.061 0 1.999.231 2.813.694a4.9 4.9 0 0 1 1.897 1.909c.465.795.698 1.685.698 2.668l-.022.499-.022.542h-8.222c.058.839.349 1.497.872 1.974.538.477 1.185.716 1.941.716.567 0 1.039-.123 1.417-.369.393-.26.683-.593.872-.998h2.835c-.204.68-.545 1.301-1.025 1.865-.465.549-1.047.983-1.745 1.301-.683.318-1.461.477-2.334.477zm.022-9.023c-.683 0-1.287.195-1.81.586-.523.376-.858.954-1.003 1.735h5.387c-.044-.709-.305-1.272-.785-1.692s-1.076-.629-1.788-.629z"})),(0,e.createElement)("path",{fill:"#3b82f6",d:"M67.622 23.654V8.471h5.212c1.788 0 3.257.318 4.405.954 1.163.622 2.021 1.504 2.573 2.646.567 1.128.851 2.458.851 3.991s-.284 2.87-.851 4.013c-.552 1.128-1.41 2.01-2.573 2.646-1.149.622-2.617.933-4.405.933h-5.212zm2.791-2.386h2.29c1.279 0 2.29-.202 3.031-.607.741-.419 1.272-1.012 1.592-1.779.32-.781.48-1.721.48-2.82 0-1.085-.16-2.017-.48-2.798a3.57 3.57 0 0 0-1.592-1.8c-.742-.419-1.752-.629-3.031-.629h-2.29v10.433zm17.116 2.647c-1.047 0-1.992-.239-2.835-.716a5.39 5.39 0 0 1-1.984-1.974c-.48-.853-.72-1.836-.72-2.95s.247-2.089.742-2.928a5.35 5.35 0 0 1 1.984-1.995c.843-.477 1.788-.716 2.835-.716 1.032 0 1.963.239 2.792.716a5.14 5.14 0 0 1 1.984 1.995c.494.839.742 1.815.742 2.928s-.247 2.097-.742 2.95a5.19 5.19 0 0 1-1.984 1.974c-.843.477-1.781.716-2.813.716zm0-2.408c.727 0 1.359-.268 1.897-.803.538-.549.807-1.359.807-2.429s-.269-1.873-.807-2.408c-.538-.55-1.163-.824-1.876-.824-.741 0-1.381.275-1.919.824-.523.535-.785 1.338-.785 2.408s.262 1.88.785 2.429c.538.535 1.17.803 1.897.803zm12.611 2.408c-1.105 0-2.079-.239-2.922-.716a5.3 5.3 0 0 1-2.006-1.995c-.48-.853-.72-1.829-.72-2.928s.24-2.075.72-2.928a5.3 5.3 0 0 1 2.006-1.995c.843-.477 1.817-.716 2.922-.716 1.382 0 2.545.361 3.49 1.085.945.708 1.548 1.692 1.81 2.95h-2.944a2.08 2.08 0 0 0-.873-1.215c-.421-.304-.923-.455-1.504-.455-.771 0-1.425.289-1.963.868s-.807 1.381-.807 2.408.269 1.829.807 2.408 1.192.868 1.963.868c.581 0 1.083-.145 1.504-.434a2.08 2.08 0 0 0 .873-1.236h2.944c-.262 1.215-.865 2.191-1.81 2.928s-2.108 1.106-3.49 1.106zm11.525 0c-.959 0-1.802-.152-2.529-.456-.727-.318-1.309-.752-1.745-1.301s-.698-1.186-.785-1.909h2.813c.087.419.32.781.698 1.085.393.289.894.434 1.505.434s1.054-.123 1.33-.369c.291-.246.436-.528.436-.846 0-.463-.203-.774-.61-.933-.407-.174-.974-.34-1.701-.499l-1.418-.369a7.29 7.29 0 0 1-1.33-.542 3.07 3.07 0 0 1-.96-.868c-.247-.362-.37-.803-.37-1.323 0-.954.378-1.757 1.134-2.408.77-.651 1.846-.976 3.227-.976 1.28 0 2.297.296 3.053.889.771.593 1.229 1.41 1.374 2.451h-2.639c-.16-.795-.763-1.193-1.81-1.193-.523 0-.93.101-1.221.304-.276.202-.414.455-.414.759 0 .318.211.571.632.759s.981.361 1.679.52l2.072.586c.64.202 1.149.513 1.527.933.378.405.567.991.567 1.757a3.01 3.01 0 0 1-.524 1.8c-.363.535-.887.954-1.57 1.258s-1.49.456-2.421.456z"})),(0,e.createElement)("p",{className:"text-gray-500 text-base leading-6"},(0,ft.__)("Articles under super-organized parent doc-section structure","wedocs")))),(0,e.createElement)("div",{className:"input-section flex justify-between items-center"},(0,e.createElement)("input",{type:"text",readOnly:i,onChange:e=>{s(e?.target?.value)},placeholder:o,className:(i?"placeholder-[#333333]":"placeholder-[#BDBDBD]")+" w-full !border-gray-300 !rounded-md text-base leading-6 text-[#333333] focus:!shadow-none focus:ring-0 !py-1.5 !px-4"}),(0,e.createElement)("svg",{width:"100",height:"12",viewBox:"0 0 100 12",className:"min-w-[150px]",fill:"none"},(0,e.createElement)("path",{d:"M0.691406 5.90991H94.9714",stroke:"#B5B9BF",strokeWidth:"2",strokeDasharray:"5 3"}),(0,e.createElement)("path",{d:"M98.4174 5.04204L93.238 1.66117C92.5729 1.22699 91.6914 1.70425 91.6914 2.49856L91.6914 9.30714C91.6914 10.1043 92.5785 10.581 93.2433 10.1411L98.4227 6.71334C99.0224 6.31643 99.0196 5.43515 98.4174 5.04204Z",fill:"#B5B9BF"})),(0,e.createElement)("input",{type:"text",readOnly:!0,value:(0,ft.__)("Parent Doc","wedocs"),className:"w-full !border-gray-300 !rounded-md text-base leading-6 placeholder-[#BDBDBD] text-[#333333] focus:!shadow-none !py-1.5 !px-4"})),(0,e.createElement)("div",{className:"help-text text-[#333333] test-sm leading-8"},(0,ft.__)("Created by weDocs","wedocs")),(0,e.createElement)("div",{className:"mapping-section flex items-center"},(0,e.createElement)("div",{className:"data-mapping flex items-center space-x-3.5"},(0,e.createElement)("svg",{width:"29",height:"175",viewBox:"0 0 29 175",fill:"none",className:"w-[5%] -mt-[15px]",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.19141 104H25.1914",stroke:"#D1D5DB"}),(0,e.createElement)("path",{d:"M1.19141 36H25.1914",stroke:"#D1D5DB"}),(0,e.createElement)("path",{d:"M1.19141 0.181152V160.975C1.19141 167.05 6.11627 171.975 12.1914 171.975H25.1914",stroke:"#D1D5DB"}),(0,e.createElement)("circle",{cx:"25.1917",cy:"104",r:"3.00024",fill:"#D1D5DB"}),(0,e.createElement)("circle",{cx:"25.1375",cy:"36",r:"2.99878",fill:"#D1D5DB"}),(0,e.createElement)("circle",{cx:"25.1912",cy:"172",r:"2.99976",fill:"#D1D5DB"})),(0,e.createElement)("div",{className:"mapping-data space-y-5 mt-[15px]"},c&&c?.map(((t,r)=>(0,e.createElement)("div",{className:"mapping flex items-center",key:r},(0,e.createElement)("input",{type:"text",readOnly:!0,value:t.betterDocsName,className:"w-full !border-gray-300 !rounded-md text-base leading-6 placeholder-[#BDBDBD] text-[#333333] focus:!shadow-none !py-1.5 !px-4"}),(0,e.createElement)("svg",{width:"100",height:"12",viewBox:"0 0 100 12",fill:"none",className:"min-w-[150px]"},(0,e.createElement)("path",{d:"M0.691406 5.90991H94.9714",stroke:"#B5B9BF",strokeWidth:"2",strokeDasharray:"5 3"}),(0,e.createElement)("path",{d:"M98.4174 5.04204L93.238 1.66117C92.5729 1.22699 91.6914 1.70425 91.6914 2.49856L91.6914 9.30714C91.6914 10.1043 92.5785 10.581 93.2433 10.1411L98.4227 6.71334C99.0224 6.31643 99.0196 5.43515 98.4174 5.04204Z",fill:"#B5B9BF"})),(0,e.createElement)("input",{type:"text",readOnly:!0,value:t.weDocsName,className:"w-full !border-gray-300 !rounded-md text-base leading-6 placeholder-[#BDBDBD] text-[#333333] focus:!shadow-none !py-1.5 !px-4"}))))),(0,e.createElement)("svg",{width:"28",height:"177",viewBox:"0 0 28 177",fill:"none",className:"w-[5%] -mt-[17px]",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M27.1914 105.387H3.19141",stroke:"#D1D5DB"}),(0,e.createElement)("path",{d:"M27.1914 37.3867H3.19141",stroke:"#D1D5DB"}),(0,e.createElement)("path",{d:"M27.1914 0.181396V162.783C27.1914 168.858 22.2665 173.783 16.1914 173.783H3.19141",stroke:"#D1D5DB"}),(0,e.createElement)("circle",{cx:"3.00024",cy:"3.00024",r:"3.00024",transform:"matrix(-1 0 0 1 6.19141 102.386)",fill:"#D1D5DB"}),(0,e.createElement)("circle",{cx:"2.99878",cy:"2.99878",r:"2.99878",transform:"matrix(-1 0 0 1 6.24414 34.3879)",fill:"#D1D5DB"}),(0,e.createElement)("circle",{cx:"2.99976",cy:"2.99976",r:"2.99976",transform:"matrix(-1 0 0 1 6.19141 170.387)",fill:"#D1D5DB"}))))),(0,e.createElement)("hr",{className:"mt-8 w-full"}),(0,e.createElement)("div",{className:"my-5 space-x-3.5 text-center px-12 mb-5 sm:flex sm:items-start sm:justify-end"},(0,e.createElement)("button",{className:"bg-white hover:bg-gray-200 text-gray-700 font-medium text-base py-2 px-5 border border-gray-300 rounded-md",onClick:()=>a(!1)},(0,ft.__)("Cancel","wedocs")),(0,e.createElement)("button",{onClick:()=>n(o),className:"bg-indigo-700 hover:bg-indigo-800 text-white font-medium text-base py-2 px-5 rounded-md"},(0,ft.__)("Continue","wedocs"))))))))))};var Ml=a(455),Rl=a.n(Ml);const _l=()=>{const[t,r]=(0,bt.useState)(0),[n,a]=(0,bt.useState)(""),[o,s]=(0,bt.useState)(!1),[i,l]=(0,bt.useState)(0),[c,d]=(0,bt.useState)(!1),[u,m]=(0,bt.useState)(!1),[p,f]=(0,bt.useState)(!1),[h,g]=(0,bt.useState)(!1);(0,bt.useEffect)((()=>{jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"wedocs_check_need_betterdocs_migration"},dataType:"json",success:e=>{s(e?.data?.success),r(e?.data?.parent_id)}})}),[]),(0,bt.useEffect)((()=>{Boolean(t)&&Rl()({path:"/wp/v2/docs/"+t}).then((e=>a(e?.title?.rendered))).catch((e=>{}))}),[t]);const b=(e="",t={})=>{p||(d(!1),f(!0));const{migrated_length:r}=t,n={action:"wedocs_migrate_betterdocs_to_wedocs",migratedDocLength:r};e?.length>0&&(n.parentTitle=e),jQuery.ajax({data:n,url:ajaxurl,type:"POST",success:({success:e,data:t={}})=>{e&&(l(t?.progress),t?.progress&&100!==t?.progress&&b("",{...t}),t?.progress&&100===t?.progress&&(0,ut.dispatch)(mt.A).updateParentDocs().then((e=>{s(!1),m(!0)})))}})};return(0,e.createElement)("div",{className:"w-full mt-7"},(0,e.createElement)("div",{className:"shadow sm:overflow-hidden sm:rounded-md"},(0,e.createElement)("div",{className:"space-y-6 h-[80vh] flex justify-center align-center bg-white px-4 py-5 sm:p-6"},(0,e.createElement)("div",{className:"w-[800px] text-center self-center mt-1 px-6 py-12"},(0,e.createElement)("h2",{className:"mb-16"},u?(0,e.createElement)("svg",{width:"65",height:"65",viewBox:"0 0 65 65",fill:"none",className:"mx-auto mb-10"},(0,e.createElement)("circle",{cx:"32.0957",cy:"32.8599",r:"32",fill:"url(#paint0_linear_3069_18418)"}),(0,e.createElement)("path",{d:"M24.9883 31.2202L30.0747 36.3066L39.1784 27.2029",stroke:"white",strokeWidth:"5",strokeLinecap:"round"}),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"paint0_linear_3069_18418",x1:"32.0957",y1:"0.859863",x2:"32.0957",y2:"64.8599",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#23D88B"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#22B591"})))):(0,e.createElement)("svg",{width:"280",className:"mx-auto mb-10",height:"157",fill:"none"},(0,e.createElement)("path",{fill:"url(#A)",fillOpacity:".1",d:"M12.553 86.533l.484-2.838a68.26 68.26 0 0 1 5.918-16.685v-.003a75.8 75.8 0 0 1 2.455-4.476c2.544-4.272 5.455-8.315 8.701-12.081a98.74 98.74 0 0 1 6.304-6.703c9.659-9.397 21.557-17.434 34.613-23.934a166.98 166.98 0 0 1 7.475-3.499 187.74 187.74 0 0 1 24.673-8.818l5.238-1.393a185.07 185.07 0 0 1 9.132-2.057 184.1 184.1 0 0 1 12.294-2.027c5.222-.68 10.397-1.112 15.472-1.298 6.059-.21 12.125-.108 18.173.307 3.103.203 6.252.49 9.426.86.016-.002.02-.002.023 0 2.815.324 5.649.712 8.501 1.164l2.338.386a191.49 191.49 0 0 1 15.819 3.4 4.38 4.38 0 0 1 .284.075c.053.01.106.023.157.039.148.036.295.075.442.118 4.669 1.236 9.282 2.658 13.795 4.273 3.174 1.135 6.3 2.367 9.351 3.698 1.452.631 2.885 1.285 4.3 1.962 1.294.618 2.574 1.256 3.838 1.913 7.458 3.871 14.318 8.4 20.246 13.618 2.685 2.356 5.2 4.898 7.527 7.608 3.533 4.102 6.52 8.646 8.884 13.517a56.59 56.59 0 0 1 2.962 7.448 57.68 57.68 0 0 1 .925 3.224 68.9 68.9 0 0 1 2.067 15.243 71.87 71.87 0 0 1 0 3.714c-.104 4.328-.602 8.638-1.488 12.876-2.351 11.166-7.488 21.495-15.717 28.384-14.171 11.869-36.049 12.301-49.602 11.17-5.28-.442-9.298-1.119-11.103-1.452-2.685-.494-5.314-1.105-7.972-1.746-9.851-2.371-20.118-5.111-35.067-3.43-1.557.176-6.981.83-16.911 3.593-7.419 2.013-14.668 4.605-21.681 7.753l-.932.425-2.309 1.095-.568.278a175.8 175.8 0 0 0-4.29 2.181h-.007l-.144.078-.552.291c-.019.008-.036.018-.053.03l-5.659 3.011-1.125.589-.785.402-.536.275h-.003a91.39 91.39 0 0 1-3.286 1.582 60.81 60.81 0 0 1-5.375 2.168 55.09 55.09 0 0 1-4.698 1.412c-16.466 4.189-41.09 2.852-56.755-11.646-12.758-11.814-15.838-28.901-16.08-41.646a90.62 90.62 0 0 1 .883-14.429z"}),(0,e.createElement)("path",{fill:"#eac250",d:"M61.075 86.134V74.3a1.84 1.84 0 0 0-2.123-1.816l-27.915 4.263c-.979.149-1.891-.498-2.082-1.468l-.265-1.352c-.191-.987-1.136-1.634-2.123-1.46L2.434 76.705c-.97.174-1.642 1.078-1.509 2.057l5.888 43.713 54.262-36.341z"}),(0,e.createElement)("path",{fill:"#fff",d:"M6.821 113.701L4.416 81.897l62.315-8.086.456 29.78-60.366 10.11z"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M30.995 98.259s.257-25.46 5.681-37.037l26.19 1.841s-7.447 26.928-5.424 33.819l-26.447 1.377z"}),(0,e.createElement)("path",{fill:"#fadf68",d:"M6.829 95.149l-.017 29.806c0 1.409 1.252 2.496 2.646 2.289l56.559-8.36c1.095-.166 1.924-1.078 1.974-2.181l1.667-37.278a2.31 2.31 0 0 0-2.621-2.397l-26.936 3.632c-.63.083-1.203.431-1.576.954l-5.092 7.174c-.373.522-.937.862-1.576.954L8.836 92.86c-1.153.158-2.007 1.128-2.007 2.289z"}),(0,e.createElement)("path",{fill:"#c8a339",fillRule:"evenodd",d:"M27.424 109.692v1.402c.29 1.012.763 1.899 1.659 2.538.481.34 1.028.514 1.576.688h11.728c.929-.232 1.791-.589 2.546-1.211 1.783-1.476 2.38-4.122 1.385-6.22l-.912-1.9a.65.65 0 0 1 .017-.721l.818-1.39v-.001l.244-.426c1.568-2.728-.299-5.979-3.442-5.988a690.45 690.45 0 0 0-5.864 0c-1.501.008-2.671.663-3.425 1.941l-3.599 6.173h0 0 0l-2.215 3.813c-.178.318-.293.656-.408.995l-.106.307zm7.548 2.719l-.673.01-.953.002h0 0c-.632.001-1.262.003-1.892-.002-1.75-.025-2.679-1.642-1.808-3.16l5.714-9.853c.398-.697 1.02-1.045 1.841-1.045l2.495.001 3.327.007c1.75.017 2.662 1.65 1.783 3.176l-2.353 4.049h0l-.004.006-1.483 2.547-.526.893a50.95 50.95 0 0 0-1.166 2.035c-.498.929-1.219 1.402-2.297 1.344l-2.006-.01h0zm3.45-9.551l.771-.002.59.001 1.774-.009c.622 0 1.012-.365.995-.904-.017-.523-.39-.863-1.004-.863a454.26 454.26 0 0 0-4.669 0c-.622 0-1.028.365-1.028.887s.406.88 1.028.888l1.543.002zm-1.194 3.382l-.787.002h0c-.523.001-1.044.003-1.569-.002-.589-.009-1.004-.365-1.004-.863 0-.531.398-.904 1.012-.904h4.661c.614 0 1.02.365 1.02.896 0 .547-.381.871-1.02.879-.386 0-.771-.002-1.157-.004h-.001l-1.157-.004zM32.79 109.7h2.438l.591.001 1.756-.009c.581-.008.987-.373.987-.879s-.406-.888-.987-.888l-3.159-.001-1.585.001c-.29 0-.547.067-.738.299-.224.274-.299.589-.149.921a.86.86 0 0 0 .846.555z"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M108.901 39.013L90.358 51.32a52.57 52.57 0 0 0-5.059-3.052c-16.089-8.442-25.684-.979-28.296 1.559 5.399-5.789 11.42-9.33 17.382-11.395 17.266-6.013 34.068.357 34.516.581z"}),(0,e.createElement)("path",{fill:"#7a8aee",d:"M85.299 48.268s-5.49 1.766-6.991 6.162l-22.027-3.831.008-.025c.025-.008.033-.033.042-.041l.315-.34.199-.207c.041-.058.099-.108.157-.158 2.612-2.529 12.208-10.001 28.296-1.559z"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M154.729 36.525s-17.946 13.062-29.308 4.138L102.872 54.43c15.657 10.847 32.26-.929 51.857-17.905z"}),(0,e.createElement)("path",{fill:"#7a8aee",d:"M154.729 36.525l-22.391 11.561s1.434 3.865-5.126 7.87c9.728-4.818 18.851-11.436 27.517-19.431z"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M226.316 18.637l-29.814 11.519s-5.466-6.842-14.77-8.335c-2.364-.398-4.96-.431-7.788.075l-.24.041-1.228.265c0 0 21.728-9.819 31.075-10.889 15.392-1.791 22.765 7.323 22.765 7.323z"}),(0,e.createElement)("path",{fill:"#7a8aee",d:"M181.731 21.821l-1.384 1.965-23.959 7.862c7.049-6.104 16.088-9.446 16.088-9.446l1.228-.265.24-.041c2.82-.506 5.424-.473 7.787-.075z"}),(0,e.createElement)("path",{fill:"#eac250",d:"M275.354 67.229a4 4 0 0 1 3.918 4.011l-.154 51.575-72.905-21.595-5.851-33.402a4 4 0 0 1 3.708-4.683l33.281-1.928c1.644-.095 3.095 1.063 3.367 2.686.257 1.529 1.565 2.659 3.115 2.691l31.521.645z"}),(0,e.createElement)("path",{fill:"#7a8aee",d:"M264.895 85.247s-6.659-28.52-11.511-35.768l-35.337 5.515s12.415 26.314 14.596 40.296l32.202-9.711"}),(0,e.createElement)("path",{fill:"#ebf2ff",d:"M241.475 77.394s-6.659-28.52-11.511-35.768l-35.337 5.515c.747.224 12.166 20.783 14.596 40.296l32.203-9.711"}),(0,e.createElement)("path",{fill:"#cedcf9",d:"M202.73 53.6l-.174-.672c6.261-1.592 19.547-3.566 27.284-3.715l.017.697c-7.572.141-21.032 2.14-27.127 3.691zm1.012 3.301l-.175-.672c6.262-1.592 19.547-3.566 27.285-3.715l.016.697c-7.571.149-21.031 2.14-27.126 3.691zm1.011 3.301l-.174-.672c6.261-1.592 19.547-3.566 27.285-3.715l.016.697c-7.563.149-21.031 2.14-27.127 3.69zm1.012 3.309l-.174-.672c6.261-1.592 19.547-3.566 27.284-3.715l.017.697c-7.563.141-21.023 2.14-27.127 3.69zm1.012 3.3l-.174-.672c6.261-1.592 19.547-3.566 27.284-3.715l.017.697c-7.564.141-21.023 2.14-27.127 3.691zm1.012 3.301l-.175-.672c6.262-1.592 19.547-3.566 27.285-3.715l.016.697c-7.563.149-21.023 2.14-27.126 3.69zm1.02 3.301l-.175-.672c6.262-1.592 19.547-3.566 27.285-3.715l.017.697c-7.572.149-21.032 2.14-27.127 3.691zm1.011 3.3l-.174-.672c6.262-1.592 19.547-3.566 27.285-3.715l.016.697c-7.571.149-21.031 2.14-27.127 3.69z"}),(0,e.createElement)("path",{fill:"#fadf68",d:"M270.839 72.819a4 4 0 0 0-3.877-3.346l-27.321-.475a4 4 0 0 0-2.378.733l-8.501 6.007c-.618.436-1.346.689-2.101.728l-23.056 1.199a4 4 0 0 0-3.734 4.674l6.956 40.334 72.291.141-8.279-49.996z"}),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"A",x1:"80.292",y1:"83.873",x2:"93.014",y2:"179.78",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#7a8aee",stopOpacity:"0"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#7a8aee"})))),(0,e.createElement)("p",{className:(u?"text-[#111827]":"text-[#3B3F4A]")+" font-bold text-2xl mx-auto mb-3"},u?(0,ft.__)("Migration has been successful","wedocs"):(0,ft.__)("Migrate existing docs from BetterDocs to weDocs","wedocs")),(0,e.createElement)("p",{className:"text-[#666B79] text-lg mx-auto"},!u&&(0,e.createElement)("a",{href:"//wedocs.co/docs/wedocs/migration/how-to-migrate-documentation-from-betterdocs-to-wedocs/",className:"text-[#0043FF] !shadow-none",target:"_blank",rel:"noreferrer"},(0,ft.__)("Learn more ","wedocs")),u?(0,ft.__)("All existing docs have been successfully migrated from BetterDocs to weDocs.","wedocs"):(0,ft.__)("how to migrate docs","wedocs"))),o?(0,e.createElement)(bt.Fragment,null,(0,e.createElement)(Ll,{openSelectionModal:h,isMigrationDone:"done"===o,setShowMigrationMap:d,setOpenSelectionModal:g,className:"bg-indigo-600 inline-flex gap-3 cursor-pointer items-center focus:ring-0 rounded-md border border-transparent px-6 py-2.5 text-base text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},"done"===o?(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("svg",{width:"17",height:"17",fill:"none"},(0,e.createElement)("path",{fill:"#fff",fillRule:"evenodd",d:"M8.096 16.329a8 8 0 0 0 0-16 8 8 0 0 0-8 8 8 8 0 0 0 8 8zm3.707-9.293a1 1 0 0 0-1.414-1.414L7.096 8.915 5.803 7.622a1 1 0 1 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4z"})),(0,ft.__)("Already Migrated","wedocs")):(0,e.createElement)(bt.Fragment,null,(0,e.createElement)("svg",{width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"#fff",fillRule:"evenodd",d:"M12.389 5.622a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414l2.293-2.293H3.096a1 1 0 0 1 0-2h11.586l-2.293-2.293a1 1 0 0 1 0-1.414z"})),(0,ft.__)("Start Migration","wedocs"))),(0,e.createElement)(Tl,{migratedDocTitle:n,showMigrationMap:c,handleMigrateClick:b,setShowMigrationMap:d}),(0,e.createElement)(Il,{openProgressModal:p,migrationProgress:i,setOpenProgressModal:f})):(0,e.createElement)(bt.Fragment,null,u?(0,e.createElement)("a",{href:"#",onClick:e=>{e.preventDefault();const t=jQuery,{origin:r,pathname:n,search:a}=window.location,o=t("#toplevel_page_wedocs");t("ul.wp-submenu li",o).removeClass("current"),o.find("li.wp-first-item").addClass("current"),window.location.href=`${r+n+a}#/`},className:"inline-flex gap-3 items-center rounded-md border border-transparent bg-indigo-600 hover:text-white focus:text-white px-6 py-2.5 text-base text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},(0,e.createElement)("svg",{width:"17",height:"11",viewBox:"0 0 17 11",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.30281 10.567C5.91229 10.9575 5.27912 10.9575 4.8886 10.567L0.888597 6.56697C0.498072 6.17645 0.498072 5.54328 0.888597 5.15276L4.8886 1.15276C5.27912 0.762232 5.91229 0.762232 6.30281 1.15276C6.69334 1.54328 6.69334 2.17645 6.30281 2.56697L4.00992 4.85986L15.5957 4.85986C16.148 4.85986 16.5957 5.30758 16.5957 5.85986C16.5957 6.41215 16.148 6.85986 15.5957 6.85986L4.00992 6.85986L6.30281 9.15276C6.69334 9.54328 6.69334 10.1764 6.30281 10.567Z",fill:"white"})),(0,ft.__)("Go back to Docs","wedocs")):(0,e.createElement)("button",{type:"submit",disabled:!0,className:"disabled:bg-[#F2F2F2] inline-flex gap-3 items-center focus:ring-0 rounded-md border border-transparent px-6 py-2.5 text-base text-[#B4BBD6] shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},(0,e.createElement)("svg",{width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"#B4BBD6",fillRule:"evenodd",d:"M12.389 5.622a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414l2.293-2.293H3.096a1 1 0 0 1 0-2h11.586l-2.293-2.293a1 1 0 0 1 0-1.414z"})),(0,ft.__)("Migration not required","wedocs")))))))},Ol=a.p+"images/slider-1.b05d3c91.jpg",Bl=a.p+"images/slider-2.f7822c31.jpg",Pl=a.p+"images/slider-3.ab3b7f94.jpg",jl=a.p+"images/slider-4.501d8d95.jpg";var zl=a(428);const Fl=({children:t})=>{let[r,n]=(0,bt.useState)(!1);const a=()=>{n(!1)},o=[{src:Ol,text:(0,ft.__)("Pop-up slider first image","wedocs")},{src:Bl,text:(0,ft.__)("Pop-up slider second image","wedocs")},{src:jl,text:(0,ft.__)("Pop-up slider third image","wedocs")},{src:Pl,text:(0,ft.__)("Pop-up slider fourth image","wedocs")}];return(0,e.createElement)(bt.Fragment,null,(0,e.createElement)(Oi,{showPopup:e=>{e.preventDefault(),n(!0)}},t),(0,e.createElement)(dr,{appear:!0,show:r,as:bt.Fragment},(0,e.createElement)(Fn,{as:"div",className:"wedocs-document relative z-[9999]",onClose:a},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-25"})),(0,e.createElement)("div",{className:"fixed inset-0 overflow-y-auto"},(0,e.createElement)("div",{className:"flex min-h-full items-center justify-center p-4 text-center"},(0,e.createElement)(dr.Child,{as:bt.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},(0,e.createElement)(Fn.Panel,{className:"w-full fixed max-w-[1008px] transform overflow-hidden rounded-md bg-white py-10 px-20 text-left align-middle shadow-xl transition-all"},(0,e.createElement)("div",{className:"modal-body grid grid-flow-col auto-cols-[1fr] items-end mx-auto"},(0,e.createElement)("div",{className:"content-area space-y-[22px]"},(0,e.createElement)("div",{className:"popup-close-button absolute top-10 right-10 cursor-pointer",onClick:a},(0,e.createElement)("svg",{width:"16",height:"16",fill:"#999"},(0,e.createElement)("path",{d:"M.781 16a.78.78 0 0 1-.722-.482.78.78 0 0 1 .169-.851L14.666.229a.78.78 0 0 1 1.105 0 .78.78 0 0 1 0 1.105L1.334 15.771A.78.78 0 0 1 .781 16z "}),(0,e.createElement)("path",{d:"M15.219 16a.78.78 0 0 1-.553-.229L.229 1.334a.78.78 0 0 1 0-1.105.78.78 0 0 1 1.105 0l14.437 14.437a.78.78 0 0 1 .169.851.78.78 0 0 1-.722.482z"}))),(0,e.createElement)(Fn.Title,{as:"h2",className:"text-lg font-medium leading-6 text-gray-900 !mt-1"},(0,e.createElement)("div",{className:"popup-header"},(0,e.createElement)("div",{className:"popup-diamond flex items-center space-x-3"},(0,e.createElement)("div",{className:"diamond-img p-1.5 rounded-md"},(0,e.createElement)("svg",{width:"32",height:"30",fill:"none"},(0,e.createElement)("path",{d:"M22.365 16l-6.286 14 15.455-14h-9.169z",fill:"#fbdd7e"}),(0,e.createElement)("path",{d:"M7.112 8L.624 15.347h9.302L7.112 8z",fill:"#ffcd73"}),(0,e.createElement)("g",{fill:"#fcc471"},(0,e.createElement)("path",{d:"M22.682 15.347h9.302L25.496 8l-2.814 7.347z"}),(0,e.createElement)("path",{d:"M22.682 15.347L16.304 8l-6.378 7.347h12.756z"})),(0,e.createElement)("path",{d:"M16.304 8H7.112l2.814 7.347L16.304 8z",fill:"#ffaa64"}),(0,e.createElement)("path",{d:"M25.496 8h-9.192l6.378 7.347L25.496 8z",fill:"#fbdd7e"}),(0,e.createElement)("path",{d:"M9.455 16l6.624 14 6.624-14H9.455z",fill:"#ffaa64"}),(0,e.createElement)("path",{d:"M.624 16l15.455 14-6.286-14H.624z",fill:"#ff8c5a"}),(0,e.createElement)("path",{d:"M15.889 1v4M8.351 2l3.122 2.828M23.427 2l-3.122 2.828",stroke:"#ff8c5a",strokeLinecap:"round"}))),(0,e.createElement)("h2",{className:"font-orange header-one font-semibold text-3xl text-[#ff9000] leading-[3rem]"},(0,ft.__)("Upgrade to","wedocs"))),(0,e.createElement)("h2",{className:"header-two text-3xl font-normal leading-[3rem]"},"weDocs ",(0,e.createElement)("span",{className:"font-bold"},"Pro")),(0,e.createElement)("h2",{className:"header-three text-[#656668] mb-0.5 pr-16 font-normal text-xl leading-8"},(0,ft.__)("to experience even more Powerful features 🎉","wedocs")))),(0,e.createElement)("div",{className:"popup-list-area mb-[60px] space-y-0.5"},(0,e.createElement)("div",{className:"single-checklist flex"},(0,e.createElement)("div",{className:"check-icon mt-[13px] mr-3.5"},(0,e.createElement)("div",{className:"check-img bg-[#139f84] py-1.5 px-[5px] rounded-full"},(0,e.createElement)("svg",{width:"10",height:"8",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M8.927 1.134c-.33-.33-.865-.33-1.195 0L3.374 5.492 1.897 4.015c-.33-.33-.865-.33-1.195 0s-.33.865 0 1.195l2.075 2.075c.33.33.865.33 1.195 0l4.955-4.955c.33-.33.33-.865 0-1.195zM.992 4.853c.01.012.02.024.031.035l2.075 2.075a.39.39 0 0 0 .552 0l4.955-4.955a.39.39 0 0 0 .031-.517.39.39 0 0 1-.031.517L3.65 6.963a.39.39 0 0 1-.552 0L1.023 4.888c-.011-.011-.022-.023-.031-.035z",fill:"#fff"})))),(0,e.createElement)("div",{className:"check-list"},(0,e.createElement)("p",{className:"text-[#656668] mb-0.5 mt-[13px] pr-8 text-[13px] leading-normal font-normal"},(0,e.createElement)("span",{className:"font-medium text-black"},(0,ft.__)("Role based permission management ","wedocs")),(0,ft.__)("or viewing, managing, and configuring permission settings.","wedocs")))),(0,e.createElement)("div",{className:"single-checklist flex"},(0,e.createElement)("div",{className:"check-icon mt-[13px] mr-3.5"},(0,e.createElement)("div",{className:"check-img bg-[#139f84] py-1.5 px-[5px] rounded-full"},(0,e.createElement)("svg",{width:"10",height:"8",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M8.927 1.134c-.33-.33-.865-.33-1.195 0L3.374 5.492 1.897 4.015c-.33-.33-.865-.33-1.195 0s-.33.865 0 1.195l2.075 2.075c.33.33.865.33 1.195 0l4.955-4.955c.33-.33.33-.865 0-1.195zM.992 4.853c.01.012.02.024.031.035l2.075 2.075a.39.39 0 0 0 .552 0l4.955-4.955a.39.39 0 0 0 .031-.517.39.39 0 0 1-.031.517L3.65 6.963a.39.39 0 0 1-.552 0L1.023 4.888c-.011-.011-.022-.023-.031-.035z",fill:"#fff"})))),(0,e.createElement)("div",{className:"check-list"},(0,e.createElement)("p",{className:"text-[#656668] mb-0.5 mt-[13px] pr-8 text-[13px] leading-normal font-normal"},(0,e.createElement)("span",{className:"font-medium text-black"},(0,ft.__)("Arrange content automatically or manually ","wedocs")),(0,ft.__)("giving you full control over its presentation.","wedocs")))),(0,e.createElement)("div",{className:"single-checklist flex"},(0,e.createElement)("div",{className:"check-icon mt-[13px] mr-3.5"},(0,e.createElement)("div",{className:"check-img bg-[#139f84] py-1.5 px-[5px] rounded-full"},(0,e.createElement)("svg",{width:"10",height:"8",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M8.927 1.134c-.33-.33-.865-.33-1.195 0L3.374 5.492 1.897 4.015c-.33-.33-.865-.33-1.195 0s-.33.865 0 1.195l2.075 2.075c.33.33.865.33 1.195 0l4.955-4.955c.33-.33.33-.865 0-1.195zM.992 4.853c.01.012.02.024.031.035l2.075 2.075a.39.39 0 0 0 .552 0l4.955-4.955a.39.39 0 0 0 .031-.517.39.39 0 0 1-.031.517L3.65 6.963a.39.39 0 0 1-.552 0L1.023 4.888c-.011-.011-.022-.023-.031-.035z",fill:"#fff"})))),(0,e.createElement)("div",{className:"check-list"},(0,e.createElement)("p",{className:"text-[#656668] mb-0.5 mt-[13px] pr-8 text-[13px] leading-normal font-normal"},(0,e.createElement)("span",{className:"font-medium text-black"},(0,ft.__)("Personalize messaging tab with custom titles ","wedocs")),(0,ft.__)("and messages for seamless communication.","wedocs")))),(0,e.createElement)("div",{className:"single-checklist flex"},(0,e.createElement)("div",{className:"check-icon mt-[13px] mr-3.5"},(0,e.createElement)("div",{className:"check-img bg-[#139f84] py-1.5 px-[5px] rounded-full"},(0,e.createElement)("svg",{width:"10",height:"8",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M8.927 1.134c-.33-.33-.865-.33-1.195 0L3.374 5.492 1.897 4.015c-.33-.33-.865-.33-1.195 0s-.33.865 0 1.195l2.075 2.075c.33.33.865.33 1.195 0l4.955-4.955c.33-.33.33-.865 0-1.195zM.992 4.853c.01.012.02.024.031.035l2.075 2.075a.39.39 0 0 0 .552 0l4.955-4.955a.39.39 0 0 0 .031-.517.39.39 0 0 1-.031.517L3.65 6.963a.39.39 0 0 1-.552 0L1.023 4.888c-.011-.011-.022-.023-.031-.035z",fill:"#fff"})))),(0,e.createElement)("div",{className:"check-list"},(0,e.createElement)("p",{className:"text-[#656668] mb-0.5 mt-[13px] pr-14 text-[13px] leading-normal font-normal"},(0,ft.__)("Customize with ","wedocs"),(0,e.createElement)("span",{className:"font-medium text-black"},(0,ft.__)("design widgets, colors, and pre-built options ","wedocs")),(0,ft.__)("for an appealing interface.","wedocs")))),(0,e.createElement)("div",{className:"single-checklist flex"},(0,e.createElement)("div",{className:"check-icon mt-[13px] mr-3.5"},(0,e.createElement)("div",{className:"check-img bg-[#139f84] py-1.5 px-[5px] rounded-full"},(0,e.createElement)("svg",{width:"10",height:"8",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M8.927 1.134c-.33-.33-.865-.33-1.195 0L3.374 5.492 1.897 4.015c-.33-.33-.865-.33-1.195 0s-.33.865 0 1.195l2.075 2.075c.33.33.865.33 1.195 0l4.955-4.955c.33-.33.33-.865 0-1.195zM.992 4.853c.01.012.02.024.031.035l2.075 2.075a.39.39 0 0 0 .552 0l4.955-4.955a.39.39 0 0 0 .031-.517.39.39 0 0 1-.031.517L3.65 6.963a.39.39 0 0 1-.552 0L1.023 4.888c-.011-.011-.022-.023-.031-.035z",fill:"#fff"})))),(0,e.createElement)("div",{className:"check-list"},(0,e.createElement)("p",{className:"text-[#656668] mb-0.5 mt-[13px] pr-14 text-[13px] leading-normal font-normal"},(0,e.createElement)("span",{className:"font-medium text-black"},(0,ft.__)("Get assisted by A.I. Powered Chatbot ","wedocs")),(0,ft.__)("24/7 with updated information and support.","wedocs"))))),(0,e.createElement)(Oi,{classes:"px-6 py-3.5 !font-normal !mt-14"})),(0,e.createElement)("div",{className:"modal-window-inner"},(0,e.createElement)("div",{className:"slider-area"},(0,e.createElement)(zl.FN,{autoPlay:!0,infiniteLoop:!0,interval:2500,showThumbs:!1,showStatus:!1,showArrows:!1,renderIndicator:(t,r,n,a)=>(0,e.createElement)("span",{key:n,role:"button",style:{marginLeft:12,cursor:"pointer",background:"transparent"},onClick:t,onKeyDown:t,tabIndex:0,"aria-label":`${a} ${n+1}`},(0,e.createElement)("span",{className:(r?"!bg-[#007f69]":"!bg-[#909091]")+" indicator rounded-full w-2 h-2"}))},o?.map(((t,r)=>(0,e.createElement)("img",{key:r,className:"ml-auto !w-[381px] h-[407px]",src:t?.src,alt:t?.text}))))))),(0,e.createElement)("div",{className:"modal-footer mt-8 mb-0.5"},(0,e.createElement)("div",{className:"footer-feature flex justify-between"},(0,e.createElement)("p",{className:"flex items-center"},(0,e.createElement)("svg",{className:"mr-3.5 mt-0.5",width:"10",height:"8"},(0,e.createElement)("path",{fillRule:"evenodd",fill:"#139F84",d:"M8.927 1.134c-.33-.33-.865-.33-1.195 0L3.374 5.492 1.897 4.015c-.33-.33-.865-.33-1.195 0s-.33.865 0 1.195l2.075 2.075c.33.33.865.33 1.195 0l4.955-4.955c.33-.33.33-.865 0-1.195zM.992 4.853c.01.012.02.024.031.035l2.075 2.075a.39.39 0 0 0 .552 0l4.955-4.955a.39.39 0 0 0 .031-.517.39.39 0 0 1-.031.517L3.65 6.963a.39.39 0 0 1-.552 0L1.023 4.888c-.011-.011-.022-.023-.031-.035z"})),(0,ft.__)("10,000+ successful businesses","wedocs")),(0,e.createElement)("p",{className:"flex items-center"},(0,e.createElement)("svg",{className:"mr-3.5 mt-0.5",width:"10",height:"8"},(0,e.createElement)("path",{fill:"#139F84",fillRule:"evenodd",d:"M8.927 1.134c-.33-.33-.865-.33-1.195 0L3.374 5.492 1.897 4.015c-.33-.33-.865-.33-1.195 0s-.33.865 0 1.195l2.075 2.075c.33.33.865.33 1.195 0l4.955-4.955c.33-.33.33-.865 0-1.195zM.992 4.853c.01.012.02.024.031.035l2.075 2.075a.39.39 0 0 0 .552 0l4.955-4.955a.39.39 0 0 0 .031-.517.39.39 0 0 1-.031.517L3.65 6.963a.39.39 0 0 1-.552 0L1.023 4.888c-.011-.011-.022-.023-.031-.035z"})),(0,ft.__)("14 days no questions asked refund policy","wedocs")),(0,e.createElement)("p",{className:"flex items-center"},(0,e.createElement)("svg",{className:"mr-3.5 mt-0.5",width:"10",height:"8"},(0,e.createElement)("path",{fill:"#139F84",fillRule:"evenodd",d:"M8.927 1.134c-.33-.33-.865-.33-1.195 0L3.374 5.492 1.897 4.015c-.33-.33-.865-.33-1.195 0s-.33.865 0 1.195l2.075 2.075c.33.33.865.33 1.195 0l4.955-4.955c.33-.33.33-.865 0-1.195zM.992 4.853c.01.012.02.024.031.035l2.075 2.075a.39.39 0 0 0 .552 0l4.955-4.955a.39.39 0 0 0 .031-.517.39.39 0 0 1-.031.517L3.65 6.963a.39.39 0 0 1-.552 0L1.023 4.888c-.011-.011-.022-.023-.031-.035z"})),(0,ft.__)("Industry leading 24x7 support","wedocs")))))))))))},ql=({classes:t})=>(0,e.createElement)("div",{className:`${t} pro-content-overlay w-full h-full absolute top-0 left-0 z-[9999] bg-[#00000080]`},(0,e.createElement)(Fl,null)),Hl=()=>{const[t,r]=(0,bt.useState)(!1),n=["administrator","editor","author","contributor","subscriber","custom"],a=[{permissionObj:n,boxId:"global_permission",title:(0,ft.__)("Global doc permission settings","wedocs"),tooltip:(0,ft.__)("By default, who will get edit access on all the documents?","wedocs")},{permissionObj:n,boxId:"role_wise_permission",title:(0,ft.__)("Who can manage weDocs Settings?","wedocs"),tooltip:(0,ft.__)("Who will have the ability to alter the settings of the plugin?","wedocs")}];return(0,e.createElement)("section",null,(0,e.createElement)("div",{className:"shadow sm:rounded-md bg-white overflow-hidden min-h-[500px]"},(0,e.createElement)("div",{className:"py-4 px-8 sm:px-8 sm:py-4"},(0,e.createElement)("h2",{className:"text-gray-900 font-medium text-lg"},(0,ft.__)("Permission Management","wedocs"))),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200"}),(0,e.createElement)("div",{className:"pt-6 pb-20 px-8 grid grid-cols-4 auto-rows-max gap-5 relative min-h-[439px]",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},a&&a?.map(((t,r)=>(0,e.createElement)("div",{className:"col-span-4",key:r},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-700",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},t?.title),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":t?.tooltip},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] mt-1 ml-auto flex-2"},(0,e.createElement)("div",{className:"multiSelectBox"},(0,e.createElement)("div",{className:"relative mb-2"},(0,e.createElement)("button",{className:"w-full cursor-pointer rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"},(0,e.createElement)("span",{className:"block multiSelectBox truncate"},(0,ft.__)("6 roles selected","wedocs")),(0,e.createElement)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"h-5 w-5 text-gray-400"},(0,e.createElement)("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))))))),t?.permissionObj&&t?.permissionObj?.length>0&&(0,e.createElement)("div",{className:"settings-description max-w-[490px] ml-auto"},(0,e.createElement)("div",{className:"active-roles inline-flex flex-wrap items-center gap-2.5"},t?.permissionObj?.map(((t,r)=>(0,e.createElement)("span",{key:r,className:"inline-flex items-center gap-1 rounded-md bg-gray-100 px-2.5 py-0.5 text-sm text-gray-800"},(0,ft.sprintf)((0,ft.__)("%s","wedocs"),t.charAt(0).toUpperCase()+t.slice(1)),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 cursor-pointer"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})))))))))),(0,e.createElement)(ql,{classes:t?"flex items-center justify-center":"hidden"}))))},Ul=a.p+"images/avatar-one.d65f1350.jpg",Wl=a.p+"images/avatar-two.15349c81.jpg",Vl=a.p+"images/avatar-three.af590ffb.jpg",Gl=a.p+"images/avatar-four.5b164b46.jpg",Zl=()=>(0,e.createElement)("div",{className:"isolate relative w-[108px] ml-4 flex -space-x-2 h-7"},(0,e.createElement)("img",{src:Ul,alt:(0,ft.__)("Fourth Contributor","wedocs"),className:"relative z-0 inline-block h-full w-7 rounded-full ring-2 ring-white"}),(0,e.createElement)("img",{src:Wl,alt:(0,ft.__)("Fourth Contributor","wedocs"),className:"relative z-0 inline-block h-full w-7 rounded-full ring-2 ring-white"}),(0,e.createElement)("img",{src:Vl,alt:(0,ft.__)("Fourth Contributor","wedocs"),className:"relative z-0 inline-block h-full w-7 rounded-full ring-2 ring-white"}),(0,e.createElement)("img",{src:Gl,alt:(0,ft.__)("Fourth Contributor","wedocs"),className:"relative z-0 inline-block h-full w-7 rounded-full ring-2 ring-white"}),(0,e.createElement)("div",{className:"relative z-0 inline-block h-full w-7 rounded-full ring-2 ring-white bg-indigo-700 text-white"},(0,e.createElement)("span",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 -mt-[1px]"},"+5")),(0,e.createElement)("div",{className:"overlay absolute opacity-0 hover:opacity-100 flex items-center justify-center w-[160px] h-[50px] -mt-3 !ml-[-26px] rounded bg-[#00000080]"},(0,e.createElement)("span",{onClick:e=>(e=>{e.preventDefault(),e.stopPropagation(),window.open("//wedocs.co","_blank")})(e),className:"upgrade-button text-white hover:text-white px-4 py-1.5 focus:text-white focus:ring-0 inline-flex items-center rounded-md bg-[#ff9000] hover:bg-[#cf7500] font-semibold text-[13px] gap-2.5"},(0,ft.__)("Upgrade","wedocs"),(0,e.createElement)("svg",{className:"crown-icon",width:"20",fill:"#fff",height:"15"},(0,e.createElement)("path",{d:"M19.213 4.116c.003.054-.001.108-.015.162l-1.234 6.255a.56.56 0 0 1-.541.413l-7.402.036h-.003-7.402c-.257 0-.482-.171-.544-.414L.839 4.295a.53.53 0 0 1-.015-.166C.347 3.983 0 3.548 0 3.036c0-.632.528-1.145 1.178-1.145s1.178.514 1.178 1.145a1.13 1.13 0 0 1-.43.884L3.47 5.434c.39.383.932.602 1.486.602.655 0 1.28-.303 1.673-.81l2.538-3.272c-.213-.207-.345-.494-.345-.809C8.822.514 9.351 0 10 0s1.178.514 1.178 1.145c0 .306-.125.584-.327.79l.002.003 2.52 3.281c.393.512 1.02.818 1.677.818a2.11 2.11 0 0 0 1.481-.597l1.554-1.512c-.268-.21-.44-.531-.44-.892 0-.632.528-1.145 1.177-1.145S20 2.405 20 3.036c0 .498-.329.922-.787 1.079zm-1.369 8.575c0-.301-.251-.545-.561-.545H2.779c-.31 0-.561.244-.561.545V14c0 .301.251.546.561.546h14.505c.31 0 .561-.244.561-.546v-1.309z"})))));var Yl=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(Yl||{});let Jl={0(e,t){let r=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:Ir(r,(e=>e.element.current))}},1(e,t){let r=e.options.slice(),n=e.options.findIndex((e=>e.id===t.id));return-1===n?e:(r.splice(n,1),{...e,options:r})}},Ql=(0,e.createContext)(null);function Xl(t){let r=(0,e.useContext)(Ql);if(null===r){let e=new Error(`<${t} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Xl),e}return r}Ql.displayName="RadioGroupDataContext";let Kl=(0,e.createContext)(null);function $l(t){let r=(0,e.useContext)(Kl);if(null===r){let e=new Error(`<${t} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,$l),e}return r}function ec(e,t){return xt(t.type,Jl,e,t)}Kl.displayName="RadioGroupActionsContext";var tc=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(tc||{});let rc=Dt((function(t,r){let n=fr(),{id:a=`headlessui-radiogroup-${n}`,value:o,defaultValue:s,form:i,name:l,onChange:c,by:d=(e,t)=>e===t,disabled:u=!1,...m}=t,p=qt("string"==typeof d?(e,t)=>{let r=d;return(null==e?void 0:e[r])===(null==t?void 0:t[r])}:d),[f,h]=(0,e.useReducer)(ec,{options:[]}),g=f.options,[b,w]=Hi(),[v,x]=rn(),y=(0,e.useRef)(null),E=Ut(y,r),[k,N]=na(o,c,s),S=(0,e.useMemo)((()=>g.find((e=>!e.propsRef.current.disabled))),[g]),A=(0,e.useMemo)((()=>g.some((e=>p(e.propsRef.current.value,k)))),[g,k]),D=qt((e=>{var t;if(u||p(e,k))return!1;let r=null==(t=g.find((t=>p(t.propsRef.current.value,e))))?void 0:t.propsRef.current;return!(null!=r&&r.disabled||(null==N||N(e),0))}));Qn({container:y.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let C=qt((e=>{let t=y.current;if(!t)return;let r=br(t),n=g.filter((e=>!1===e.propsRef.current.disabled)).map((e=>e.element.current));switch(e.key){case mr.Enter:ra(e.currentTarget);break;case mr.ArrowLeft:case mr.ArrowUp:if(e.preventDefault(),e.stopPropagation(),Lr(n,yr.Previous|yr.WrapAround)===Er.Success){let e=g.find((e=>e.element.current===(null==r?void 0:r.activeElement)));e&&D(e.propsRef.current.value)}break;case mr.ArrowRight:case mr.ArrowDown:if(e.preventDefault(),e.stopPropagation(),Lr(n,yr.Next|yr.WrapAround)===Er.Success){let e=g.find((e=>e.element.current===(null==r?void 0:r.activeElement)));e&&D(e.propsRef.current.value)}break;case mr.Space:{e.preventDefault(),e.stopPropagation();let t=g.find((e=>e.element.current===(null==r?void 0:r.activeElement)));t&&D(t.propsRef.current.value)}}})),I=qt((e=>(h({type:0,...e}),()=>h({type:1,id:e.id})))),L=(0,e.useMemo)((()=>({value:k,firstOption:S,containsCheckedOption:A,disabled:u,compare:p,...f})),[k,S,A,u,p,f]),T=(0,e.useMemo)((()=>({registerOption:I,change:D})),[I,D]),M={ref:E,id:a,role:"radiogroup","aria-labelledby":b,"aria-describedby":v,onKeyDown:C},R=(0,e.useMemo)((()=>({value:k})),[k]),_=(0,e.useRef)(null),O=Yt();return(0,e.useEffect)((()=>{_.current&&void 0!==s&&O.addEventListener(_.current,"reset",(()=>{D(s)}))}),[_,D]),e.createElement(x,{name:"RadioGroup.Description"},e.createElement(w,{name:"RadioGroup.Label"},e.createElement(Kl.Provider,{value:T},e.createElement(Ql.Provider,{value:L},null!=l&&null!=k&&$n({[l]:k}).map((([t,r],n)=>e.createElement(gr,{features:hr.Hidden,ref:0===n?e=>{var t;_.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ct({key:t,as:"input",type:"radio",checked:null!=r,hidden:!0,readOnly:!0,form:i,name:t,value:r})}))),Nt({ourProps:M,theirProps:m,slot:R,defaultTag:"div",name:"RadioGroup"})))))})),nc=Dt((function(t,r){var n;let a=fr(),{id:o=`headlessui-radiogroup-option-${a}`,value:s,disabled:i=!1,...l}=t,c=(0,e.useRef)(null),d=Ut(c,r),[u,m]=Hi(),[p,f]=rn(),{addFlag:h,removeFlag:g,hasFlag:b}=Qt(1),w=zt({value:s,disabled:i}),v=Xl("RadioGroup.Option"),x=$l("RadioGroup.Option");Pt((()=>x.registerOption({id:o,element:c,propsRef:w})),[o,x,c,t]);let y=qt((e=>{var t;if(pr(e.currentTarget))return e.preventDefault();x.change(s)&&(h(2),null==(t=c.current)||t.focus())})),E=qt((e=>{if(pr(e.currentTarget))return e.preventDefault();h(2)})),k=qt((()=>g(2))),N=(null==(n=v.firstOption)?void 0:n.id)===o,S=v.disabled||i,A=v.compare(v.value,s),D={ref:d,id:o,role:"radio","aria-checked":A?"true":"false","aria-labelledby":u,"aria-describedby":p,"aria-disabled":!!S||void 0,tabIndex:S?-1:A||!v.containsCheckedOption&&N?0:-1,onClick:S?void 0:y,onFocus:S?void 0:E,onBlur:S?void 0:k},C=(0,e.useMemo)((()=>({checked:A,disabled:S,active:b(2)})),[A,S,b]);return e.createElement(f,{name:"RadioGroup.Description"},e.createElement(m,{name:"RadioGroup.Label"},Nt({ourProps:D,theirProps:l,slot:C,defaultTag:"div",name:"RadioGroup.Option"})))})),ac=Object.assign(rc,{Option:nc,Label:Wi,Description:an});const oc=e.forwardRef((function({title:t,titleId:r,...n},a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":r},n),t?e.createElement("title",{id:r},t):null,e.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"}))})),sc=({settingsData:t,setSettings:r})=>{const{general:n,layout:a}=t,[o,s]=(0,bt.useState)(!1),i=[{name:"1",src:'<svg width="46" height="25" fill="none"><rect y=".981" width="46" height="24" rx="2" fill="#d5dadf" /></svg>'},{name:"2",src:'<svg width="46" height="25" fill="#d5dadf"><rect y=".981" width="22" height="24" rx="2" /><rect x="24" y=".981" width="22" height="24" rx="2" /></svg>'}],l=[{name:"default",text:(0,ft.__)("Default Template","wedocs")},{name:"bootstrap",text:(0,ft.__)("Bootstrap Template","wedocs")},{name:"tailwind",text:(0,ft.__)("Tailwind Template","wedocs")}],c=[{key:"active_nav_bg",title:(0,ft.__)("Active Navigation Background Color","wedocs"),tooltip:(0,ft.__)("Highlight the active navigation section. Pick a background color that stands out","wedocs"),default:{r:6,g:182,b:212,a:1}},{key:"active_nav_text",title:(0,ft.__)("Active Navigation Text Color","wedocs"),tooltip:(0,ft.__)("Make navigation clear. Choose a text color for the active navigation section","wedocs"),default:{r:255,g:255,b:255,a:1}},{key:"active_text",title:(0,ft.__)("Active Font Color","wedocs"),tooltip:(0,ft.__)("Enhance readability. Select a font color for the active elements in your layout","wedocs"),default:{r:6,g:182,b:212,a:1}}],d=(...e)=>e.filter(Boolean).join(" ");return(0,e.createElement)("section",null,(0,e.createElement)("div",{className:"shadow sm:rounded-md bg-white overflow-hidden min-h-[500px]"},(0,e.createElement)("div",{className:"py-4 px-8 sm:px-8 sm:py-4"},(0,e.createElement)("h2",{className:"text-gray-900 font-medium text-lg"},(0,ft.__)("Layout Settings","wedocs"))),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200"}),(0,e.createElement)("div",{className:"pt-6 pb-20 px-8 grid grid-cols-4 gap-5 relative",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},(0,e.createElement)("div",{className:"col-span-12"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] space-x-2 items-center flex flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Choose Doc List Column Style","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Choose how your document list columns should appear","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))))),(0,e.createElement)("div",{className:"settings-field flex items-center mb-2"},(0,e.createElement)(ac,{value:i[1]},(0,e.createElement)("div",{className:"flex items-center space-x-6"},i.map(((t,r)=>(0,e.createElement)(ac.Option,{key:r,value:t,className:({checked:e,active:t})=>d(e?"border-transparent":"border-gray-300",t?"border-indigo-600 ring-2 ring-indigo-600":"","relative w-24 h-20 flex items-center justify-center cursor-pointer rounded-lg border bg-white shadow-sm focus:outline-none p-1.5")},(0,e.createElement)("svg",{width:"46",height:"25",fill:"#d5dadf"},0===r&&(0,e.createElement)("rect",{y:".981",width:"46",height:"24",rx:"2",fill:"#d5dadf"}),1===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("rect",{y:".981",width:"22",height:"24",rx:"2"}),(0,e.createElement)("rect",{x:"24",y:".981",width:"22",height:"24",rx:"2"})),2===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("rect",{y:".981",width:"14",height:"24",rx:"2"}),(0,e.createElement)("rect",{x:"16",y:".981",width:"14",height:"24",rx:"2"}),(0,e.createElement)("rect",{x:"32",y:".981",width:"14",height:"24",rx:"2"}))),(0,e.createElement)("span",{className:"flex"},(0,e.createElement)("span",{className:"flex flex-col"},(0,e.createElement)(ac.Label,{as:"span",className:"flex items-center text-sm font-medium text-gray-600 mb-0.5 absolute top-2.5 right-2.5"},(0,e.createElement)("div",{className:d(i[1]?.name!==t?.name?"border border-gray-400":"","ml-auto rounded-full w-4 h-4")},(0,e.createElement)(oc,{className:d(i[1]?.name!==t?.name?"invisible":"-mt-0.5","h-5 w-5 text-indigo-600"),"aria-hidden":"true"}))),(0,e.createElement)("span",{className:d(i[1]?.name!==t?.name?"border-transparent":"border-indigo-600","pointer-events-none absolute -inset-px rounded-lg border"),"aria-hidden":"true"}))))))))),(0,e.createElement)("div",{className:"col-span-12"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{"data-headlessui-state":"open",id:"headlessui-listbox-label-15",className:"block text-sm font-medium text-gray-700"},(0,ft.__)("Choose Single Doc Template","wedocs")),(0,e.createElement)("div",{"data-tip":(0,ft.__)("Customize the template for individual docs. Choose a layout that suits your content best","wedocs"),className:"tooltip cursor-pointer ml-2"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))))),(0,e.createElement)("div",{className:"settings-field flex items-center"},(0,e.createElement)(ac,{value:l[2]},(0,e.createElement)("div",{className:"flex items-center space-x-6"},l.map(((t,r)=>(0,e.createElement)(ac.Option,{key:t?.name,value:t,className:({checked:e,active:t})=>d(e?"border-transparent":"border-gray-300",t?"border-indigo-600 ring-2 ring-indigo-600":"","relative w-32 h-[135px] flex items-center justify-center cursor-pointer rounded-lg border bg-white shadow-sm focus:outline-none")},0===r&&(0,e.createElement)("svg",{width:"126",height:"135",fill:"none"},(0,e.createElement)("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t.B{fill:#dde1ea}\n\t\t\t\t\t\t\t\t\t\t\t\t.C{fill:#118ede}\n\t\t\t\t\t\t\t\t\t\t\t\t.D{fill:#979da9}\n\t\t\t\t\t\t\t\t\t\t\t"),(0,e.createElement)("g",{className:"B"},(0,e.createElement)("rect",{x:"36.401",y:"20.013",width:"7.775",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"47.757",y:"20.013",width:"7.775",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"59.113",y:"20.013",width:"7.775",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"70.469",y:"20.013",width:"7.775",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"81.825",y:"20.013",width:"7.775",height:".895",rx:".448"})),(0,e.createElement)("rect",{x:"48.987",y:"30.757",width:"32.22",height:"1.074",rx:".537",className:"D"}),(0,e.createElement)("g",{className:"B"},(0,e.createElement)("rect",{x:"48.987",y:"36.308",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"48.987",y:"41.858",width:"47.821",height:"1.074",rx:".537"})),(0,e.createElement)("rect",{x:"48.987",y:"51.887",width:"47.457",height:"1.074",rx:".537",className:"D"}),(0,e.createElement)("g",{className:"B"},(0,e.createElement)("rect",{x:"48.987",y:"57.438",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"48.987",y:"62.988",width:"47.821",height:"1.074",rx:".537"})),(0,e.createElement)("rect",{x:"48.987",y:"68.54",width:"7.504",height:"21.79",rx:"1.791",fill:"#fff"}),(0,e.createElement)("rect",{x:"60.967",y:"70.661",width:"2.865",height:"2.865",rx:"1.433",className:"C"}),(0,e.createElement)("rect",{x:"65.623",y:"71.557",width:"37.864",height:"1.074",rx:".537",className:"B"}),(0,e.createElement)("rect",{x:"60.967",y:"78.003",width:"2.865",height:"2.865",rx:"1.433",className:"C"}),(0,e.createElement)("rect",{x:"65.623",y:"78.898",width:"37.864",height:"1.074",rx:".537",className:"B"}),(0,e.createElement)("rect",{x:"60.967",y:"85.345",width:"2.865",height:"2.865",rx:"1.433",className:"C"}),(0,e.createElement)("g",{className:"B"},(0,e.createElement)("rect",{x:"65.623",y:"86.24",width:"37.864",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"48.987",y:"94.807",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"48.987",y:"100.357",width:"67.115",height:"1.074",rx:".537"})),(0,e.createElement)("rect",{x:"48.987",y:"105.908",width:"67.115",height:"1.074",rx:".537",fill:"#fff"}),(0,e.createElement)("rect",{x:"48.987",y:"111.46",width:"16.637",height:"1.074",rx:".537",className:"D"}),(0,e.createElement)("g",{className:"B"},(0,e.createElement)("rect",{x:"48.987",y:"117.011",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"48.987",y:"122.562",width:"34.623",height:"1.074",rx:".537"})),(0,e.createElement)("path",{d:"M41.355 30.757v97.465",stroke:"#dde1ea",strokeWidth:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"30.757",width:"23.572",height:".895",rx:".448",className:"B"}),(0,e.createElement)("rect",{x:"9.899",y:"36.129",width:"27.982",height:"8.329",rx:".895",className:"C"}),(0,e.createElement)("rect",{x:"12.857",y:"39.846",width:"14.88",height:".895",rx:".448",fill:"#acd2ff"}),(0,e.createElement)("g",{className:"B"},(0,e.createElement)("rect",{x:"14.375",y:"48.663",width:"19.095",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"14.375",y:"54.035",width:"16.347",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"14.375",y:"59.407",width:"14.561",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"67.465",width:"23.572",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"72.837",width:"20.797",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"78.209",width:"25.177",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"83.581",width:"25.177",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"88.953",width:"21.554",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"94.324",width:"21.554",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"99.696",width:"19.199",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"105.068",width:"19.199",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"110.44",width:"19.619",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.899",y:"115.812",width:"19.619",height:".895",rx:".448"})),(0,e.createElement)("g",{className:"C"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M9.935 20.057h5.525c2.365-.003 4.281-1.898 4.284-4.237v-3.197c-.003-2.339-1.919-4.234-4.284-4.237h-1.241c-2.365.003-4.281 1.898-4.284 4.237v7.434zm5.525-1.17h-4.342v-6.264c.002-1.693 1.389-3.065 3.101-3.067h1.241c1.712.002 3.099 1.374 3.101 3.067v3.198c-.002 1.693-1.389 3.065-3.101 3.067z"}),(0,e.createElement)("path",{d:"M16.123 15.68h-3.231c-.056 0-.102.046-.102.102v.661c0 .056.046.102.102.102h3.231c.056 0 .102-.046.102-.102v-.661c0-.056-.046-.102-.102-.102zm.664-1.743h-3.895c-.056 0-.102.046-.102.102v.661c0 .056.046.102.102.102h3.895c.056 0 .102-.046.102-.102v-.661c0-.056-.046-.102-.102-.102zm-1.819-1.747h-2.077c-.056 0-.102.046-.102.102v.661c0 .056.046.102.102.102h2.077c.056 0 .102-.046.102-.102v-.661c0-.056-.046-.102-.102-.102z"}))),1===r&&(0,e.createElement)("svg",{width:"126",height:"135",fill:"none"},(0,e.createElement)("rect",{x:"18.057",y:"13.825",width:"5.964",height:".874",rx:".437",fill:"#e2ddea"}),(0,e.createElement)("rect",{x:"26.643",y:"13.825",width:"15.787",height:".874",rx:".437",fill:"#432b69"}),(0,e.createElement)("g",{fill:"#e2ddea"},(0,e.createElement)("rect",{x:"45.052",y:"13.825",width:"9.503",height:".874",rx:".437"}),(0,e.createElement)("rect",{x:"57.178",y:"13.825",width:"4.929",height:".874",rx:".437"}),(0,e.createElement)("rect",{x:"64.729",y:"13.825",width:"4.4",height:".874",rx:".437"}),(0,e.createElement)("rect",{x:"90.163",y:"13.825",width:"4.4",height:".874",rx:".437"})),(0,e.createElement)("rect",{x:"9.827",y:"11.639",width:"5.248",height:"5.248",rx:"1.567",stroke:"#8873a9",strokeWidth:".448"}),(0,e.createElement)("g",{fill:"#432b69"},(0,e.createElement)("path",{d:"M11.362 15.851v-3.178h1.164c.226 0 .412.037.56.112s.259.173.332.3.11.267.11.424c0 .133-.024.244-.073.335a.6.6 0 0 1-.195.217.86.86 0 0 1-.267.118v.031c.106.005.209.039.309.102a.73.73 0 0 1 .251.265c.066.115.099.255.099.419s-.038.308-.115.438-.193.23-.351.306-.361.112-.607.112h-1.218zm.48-.411h.692c.23 0 .394-.044.494-.133a.43.43 0 0 0 .149-.334c0-.1-.025-.193-.076-.276s-.123-.15-.217-.2-.204-.074-.332-.074h-.709v1.018zm0-1.392h.643a.66.66 0 0 0 .29-.062.51.51 0 0 0 .206-.174.46.46 0 0 0 .078-.267.44.44 0 0 0-.138-.331c-.092-.089-.233-.133-.424-.133h-.655v.967z"}),(0,e.createElement)("rect",{x:"11.242",y:"44.84",width:"17.679",height:".895",rx:".448"})),(0,e.createElement)("g",{fill:"#ae98d1"},(0,e.createElement)("rect",{x:"50.33",y:"35.114",width:"32.22",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"67.347",width:"56.141",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"94.028",width:"32.22",height:"1.074",rx:".537"})),(0,e.createElement)("g",{fill:"#e2ddea"},(0,e.createElement)("rect",{x:"50.33",y:"40.666",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"46.217",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"51.768",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"57.319",width:"47.821",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"72.898",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"78.449",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"84.001",width:"47.821",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"99.58",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"105.131",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"110.682",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"50.33",y:"116.233",width:"53.4",height:"1.074",rx:".537"})),(0,e.createElement)("rect",{x:"11.242",y:"50.212",width:"12.828",height:".895",rx:".448",fill:"#ae98d1"}),(0,e.createElement)("g",{fill:"#e2ddea"},(0,e.createElement)("rect",{x:"11.242",y:"55.584",width:"10.053",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"60.956",width:"8.875",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"66.327",width:"19.809",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"71.699",width:"10.81",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"77.071",width:"8.455",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"82.443",width:"10.81",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"87.815",width:"8.875",height:".895",rx:".448"})),(0,e.createElement)("g",{fill:"#ae98d1"},(0,e.createElement)("rect",{x:"11.242",y:"95.873",width:"7.782",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"101.245",width:"8.875",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"106.617",width:"14.931",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"111.989",width:"8.455",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"117.361",width:"7.782",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"11.242",y:"122.733",width:"10.81",height:".895",rx:".448"})),(0,e.createElement)("rect",{x:"8.556",y:"28.709",width:"28.616",height:"9.674",rx:"1.791",fill:"#e2ddea"}),(0,e.createElement)("path",{d:"M42.698 28.709v97.465",stroke:"#e2ddea",strokeWidth:".448"})),2===r&&(0,e.createElement)("svg",{width:"126",height:"135",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M16.592 8.386c-1.775 0-2.884.882-3.329 2.647.666-.882 1.442-1.213 2.33-.993.506.126.868.491 1.269.895.653.659 1.408 1.421 3.058 1.421 1.775 0 2.885-.882 3.328-2.647-.665.882-1.442 1.213-2.33.992-.507-.126-.869-.491-1.269-.895-.653-.659-1.408-1.421-3.058-1.421zm-3.329 3.97c-1.775 0-2.885.882-3.328 2.647.666-.882 1.442-1.213 2.33-.993.507.126.869.491 1.269.895.653.659 1.408 1.421 3.058 1.421 1.775 0 2.885-.882 3.328-2.647-.666.882-1.442 1.213-2.33.993-.506-.126-.868-.491-1.269-.895-.653-.659-1.408-1.421-3.058-1.421z",fill:"#06b6d4"}),(0,e.createElement)("rect",{x:"49.023",y:"33.475",width:"32.22",height:"1.074",rx:".537",fill:"#00beeb"}),(0,e.createElement)("g",{fill:"#dde1ea"},(0,e.createElement)("rect",{x:"49.023",y:"39.025",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"49.023",y:"44.576",width:"47.821",height:"1.074",rx:".537"})),(0,e.createElement)("rect",{x:"49.023",y:"54.605",width:"32.22",height:"1.074",rx:".537",fill:"#00beeb"}),(0,e.createElement)("g",{fill:"#dde1ea"},(0,e.createElement)("rect",{x:"49.023",y:"60.155",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"49.023",y:"65.706",width:"47.821",height:"1.074",rx:".537"})),(0,e.createElement)("g",{fill:"#e9f5fa"},(0,e.createElement)("rect",{x:"49.023",y:"71.257",width:"12.835",height:"12.895",rx:"1.791"}),(0,e.createElement)("rect",{x:"66.334",y:"71.257",width:"12.835",height:"12.895",rx:"1.791"}),(0,e.createElement)("rect",{x:"83.646",y:"71.257",width:"12.835",height:"12.895",rx:"1.791"}),(0,e.createElement)("rect",{x:"100.957",y:"71.257",width:"12.835",height:"12.895",rx:"1.791"})),(0,e.createElement)("g",{fill:"#dde1ea"},(0,e.createElement)("rect",{x:"49.023",y:"88.629",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"49.023",y:"94.18",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"49.023",y:"99.731",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"49.023",y:"105.282",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"49.023",y:"110.833",width:"67.115",height:"1.074",rx:".537"}),(0,e.createElement)("rect",{x:"49.023",y:"116.384",width:"34.623",height:"1.074",rx:".537"})),(0,e.createElement)("path",{d:"M41.392 27.069v97.465",stroke:"#dde1ea",strokeWidth:".448"}),(0,e.createElement)("rect",{x:"9.935",y:"27.069",width:"23.572",height:".895",rx:".448",fill:"#bec1c9"}),(0,e.createElement)("g",{fill:"#dde1ea"},(0,e.createElement)("rect",{x:"9.935",y:"32.441",width:"20.797",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.935",y:"37.814",width:"19.619",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.935",y:"43.186",width:"25.177",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.935",y:"48.558",width:"21.554",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.935",y:"53.93",width:"19.199",height:".895",rx:".448"})),(0,e.createElement)("rect",{x:"9.935",y:"63.778",width:"23.572",height:".895",rx:".448",fill:"#00beeb"}),(0,e.createElement)("g",{fill:"#dde1ea"},(0,e.createElement)("rect",{x:"9.935",y:"69.15",width:"20.797",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.935",y:"74.523",width:"25.177",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.935",y:"79.895",width:"21.554",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.935",y:"85.267",width:"19.199",height:".895",rx:".448"}),(0,e.createElement)("rect",{x:"9.935",y:"90.638",width:"19.619",height:".895",rx:".448"})),(0,e.createElement)("rect",{x:"9.935",y:"100.486",width:"23.572",height:".895",rx:".448",fill:"#bec1c9"})),(0,e.createElement)("span",{className:"flex"},(0,e.createElement)("span",{className:"flex flex-col"},(0,e.createElement)(ac.Label,{as:"span",className:"flex items-center text-sm font-medium text-gray-600 mb-0.5 absolute top-2.5 right-2.5"},(0,e.createElement)("div",{className:d(l[2]?.name!==t?.name?"border border-gray-400":"","ml-auto rounded-full w-4 h-4")},(0,e.createElement)(oc,{className:d(l[2]?.name!==t?.name?"invisible":"-mt-0.5","h-5 w-5 text-indigo-600"),"aria-hidden":"true"}))),(0,e.createElement)("span",{className:d(l[2]?.name===t?.name?"border-indigo-600":"border-transparent","pointer-events-none absolute -inset-px rounded-lg border"),"aria-hidden":"true"}))))))))),c?.map((t=>(0,e.createElement)("div",{className:"col-span-12 mt-2",key:t?.key},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] space-x-2 items-center flex flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},t?.title),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":t?.tooltip},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field flex items-center w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"color-container flex gap-2.5"},(0,e.createElement)("div",{className:"flex justify-center items-center space-x-1 px-2 py-1.5 rounded-md bg-white border border-[#E2E2E2] cursor-pointer relative"},(0,e.createElement)("div",{className:("active_nav_text"===t?.key?"bg-white border border-[#E2E2E2]":"bg-[#06B6D4]")+" w-6 h-6 rounded-full flex justify-center items-center"}),(0,e.createElement)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-4 w-4 stroke-gray-500",strokeWidth:"1"},(0,e.createElement)("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))))))))),(0,e.createElement)("div",{className:"col-span-12 mt-2"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] space-x-2 items-center flex flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Enable Navigation Icon","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Enable/Disable navigation icons for a user-friendly experience on your single document pages","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field flex items-center w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)(Qi,{name:"nav_icon",settingsPanel:a,settingsData:t,setSettings:r,panelName:"layout"})))),(0,e.createElement)("div",{className:"col-span-12 mt-2"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] space-x-2 items-center flex flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Enable Table of Contents","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Improve content navigation. Turn on the table of contents feature for easy access to document sections","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field flex items-center w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)(Qi,{name:"right_bar",settingsPanel:a,settingsData:t,setSettings:r,panelName:"layout"})))),(0,e.createElement)("div",{className:"col-span-12 block mt-2"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] space-x-2 items-center flex flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Collapse Documentation Page Articles","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Choose if your sections should be collapsed or expanded in Doc Homepage","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field flex items-center w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)(Qi,{name:"collapse_articles",settingsPanel:n,setSettings:r,settingsData:t,isEnabled:"on"===n?.collapse_articles})))),(0,e.createElement)(ql,{classes:o?"flex items-center justify-center":"hidden"}))))},ic=({isEnabled:t=!1,setChange:r})=>{const[n,a]=(0,bt.useState)(t),o=(...e)=>e.filter(Boolean).join(" ");return(0,e.createElement)("div",{className:"flex items-center relative"},(0,e.createElement)(Yi,{onChange:()=>{a(!n),r(!n)},className:"group relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer outline-0 items-center justify-center rounded-full"},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:o(n?"bg-indigo-600":"bg-gray-200","pointer-events-none absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:o(n?"translate-x-5":"translate-x-0","pointer-events-none absolute left-0 inline-block h-5 w-5 transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")})),(0,e.createElement)("span",{className:"ml-3"},(0,e.createElement)("span",{className:"text-sm text-gray-900"},(0,ft.__)(n?"Enable":"Disable","wedocs"))))},lc=()=>(0,e.createElement)("div",{className:"relative h-[180px]"},(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5 mb-5"},(0,e.createElement)("div",{className:"col-span-4",key:"manage_subscription"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-700",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Manage A.I. Chatbot Billing","wedocs"))),(0,e.createElement)("div",{className:"settings-field w-full align-center max-w-[490px] mt-1 ml-auto"},(0,e.createElement)("button",{type:"button",className:"inline-flex shadow-gray-800/30 items-center border border-indigo-600 px-4 py-2 text-indigo-700 font-medium hover:text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},(0,ft.__)("Manage Subscription","wedocs")))))),(0,e.createElement)("div",{className:"backdrop absolute z-0 top-0 left-0 w-full h-full",style:{backgroundColor:"white",opacity:.5}})),cc=({classes:t})=>(0,e.createElement)("div",{className:`flex items-center space-x-5 relative ${t||""}`},(0,e.createElement)("button",{className:"px-4 py-2.5 rounded-md bg-indigo-600 hover:bg-indigo-700 text-white font-medium text-sm items-center flex justify-center"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",fill:"none",className:"mr-2 z-0"},(0,e.createElement)("path",{d:"M6.667 14.7A4.17 4.17 0 0 1 2.5 10.533a4.17 4.17 0 0 1 3.403-4.097 4.17 4.17 0 0 1 8.194 0 4.17 4.17 0 0 1-.764 8.264M7.5 10.533l2.5-2.5m0 0l2.5 2.5m-2.5-2.5v10",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,ft.__)("Upload","wedocs")),(0,e.createElement)("div",{id:"file-chosen",className:"flex items-center space-x-2.5"},(0,e.createElement)("span",{id:"file-chosen",className:"text-sm leading-5 font-medium text-gray-500"},(0,ft.__)("example.png","wedocs")),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:3,className:"w-4 h-4 stroke-gray-500 ml-2 relative z-50 cursor-pointer"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})))),dc=()=>(0,e.createElement)("div",{className:"appearance-label"},(0,e.createElement)("h3",{className:"text-lg text-[#111827] font-medium leading-5"},(0,ft.__)("Appearance","wedocs")),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200 mt-5 mb-6"})),uc=()=>(0,e.createElement)("div",{className:"ai-appearance-section relative"},(0,e.createElement)(dc,null),(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] mt-1 flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("A.I. ChatBot tab icon","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Upload the new explore tab icon. png/jpg preferred","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex flex-2"},(0,e.createElement)(cc,null)))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("A.I. ChatBot tab name","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Give your explore tab a meaningful title","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",id:"chatbot-title",name:"chatbot_title",placeholder:(0,ft.__)("A.I. ChatBot","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",readOnly:!0,value:""}))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("A.I. ChatBot Tab Subtitle 1","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Edit the first chatbot tab subtitle","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"chatbot_subtitle_one",id:"chatbot-subtitle-one",placeholder:(0,ft.__)("A.I. ChatBot tab subtitle 1","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",readOnly:!0,value:""}))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("A.I. ChatBot Tab Subtitle 2","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Edit the second chatbot tab subtitle","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"chatbot_subtitle_two",id:"chatbot-subtitle-two",placeholder:(0,ft.__)("A.I. Chatbot tab subtitle 2","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",readOnly:!0,value:""})))))),(0,e.createElement)("div",{className:"backdrop absolute z-0 top-0 left-0 w-full h-full",style:{backgroundColor:"white",opacity:.5}})),mc=({children:t})=>{const[r,n]=(0,bt.useState)(!0),[a,o]=(0,bt.useState)(!1);return(0,e.createElement)("section",null,(0,e.createElement)("div",{className:"shadow sm:rounded-md bg-white min-h-[500px] overflow-hidden"},(0,e.createElement)("div",{className:"flex justify-between items-center py-4 px-8 sm:px-8 sm:py-4"},(0,e.createElement)("div",{className:"flex items-center space-x-3"},(0,e.createElement)("h2",{className:"text-gray-900 font-medium text-lg"},(0,ft.__)("Assistant Widget","wedocs"))),(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)(ic,{setChange:n,isEnabled:!0}))),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200"}),(0,e.createElement)("div",{className:"pt-6 pb-20 px-8 relative",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1)},t,!r&&(0,e.createElement)("div",{className:"backdrop absolute z-0 top-0 left-0 w-full h-full",style:{backgroundColor:"white",opacity:.5}}),(0,e.createElement)(ql,{classes:a?"flex items-center justify-center mt-[70px]":"hidden"}))))},pc=({tabs:t,panels:r,children:n})=>{const[a,o]=(0,bt.useState)(0);return(0,e.createElement)(_i.Group,{selectedIndex:a,onChange:o},(0,e.createElement)(_i.List,{className:"space-x-3.5 mb-8 font-medium text-sm"},t&&t?.map(((t,r)=>(0,e.createElement)(_i,{className:"px-3 py-2 aria-selected:bg-indigo-700 aria-selected:text-white hover:text-white hover:bg-indigo-700 rounded-md",key:r},t)))),n,(0,e.createElement)(_i.Panels,null,r&&r?.map(((t,r)=>(0,e.createElement)(_i.Panel,{key:r},t)))))},fc=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Connect to A.I.","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Explore tab helps keep all the crucial and indispensable information at the forefront, making it easier for the readers to access and utilize","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] mt-1 ml-auto flex-2"},(0,e.createElement)("div",{className:"relative flex items-center"},(0,e.createElement)(ic,{isEnabled:!1})))))),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200 my-5"})),hc=()=>{const t=[(0,ft.__)("A.I. Chat","wedocs"),(0,ft.__)("Appearance","wedocs")],r=[(0,e.createElement)(lc,null),(0,e.createElement)(uc,null)];return(0,e.createElement)(mc,null,(0,e.createElement)(pc,{tabs:t,panels:r},(0,e.createElement)(fc,null)))},gc=()=>(0,e.createElement)("div",{className:"ai-appearance-section relative"},(0,e.createElement)(dc,null),(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] mt-1 flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Explore tab icon","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Upload the new explore tab icon. png/jpg preferred","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex flex-2"},(0,e.createElement)(cc,null)))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Explore tab name","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Give your explore tab a meaningful name","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"explore_title",id:"explore-title",placeholder:(0,ft.__)("Explore tab title","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0}))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Explore Tab Subtitle 1","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Edit the first explore tab subtitle","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"explore_subtitle_one",id:"explore-subtitle-one",placeholder:(0,ft.__)("Explore tab subtitle 1","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0}))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Explore Tab Subtitle 2","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Edit the second explore tab subtitle","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"explore_subtitle_two",id:"explore-subtitle-two",placeholder:(0,ft.__)("Explore tab subtitle 2","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0}))))))),bc=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Enable Explore Tab","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Explore tab helps keep all the crucial and indispensable information at the forefront, making it easier for the readers to access and utilize","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] mt-1 ml-auto flex-2"},(0,e.createElement)("div",{className:"relative flex items-center"},(0,e.createElement)(ic,{isEnabled:!0})))))),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200 my-5"})),wc=e.forwardRef((function({title:t,titleId:r,...n},a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":r},n),t?e.createElement("title",{id:r},t):null,e.createElement("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"}))})),vc=()=>{const t=[{field:"helpful",title:(0,ft.__)("Helpful Content","wedocs"),description:(0,ft.__)("Top 10 contents that are found as most helpful by the visitors will be set automatically in descending order","wedocs")},{field:"selected",title:(0,ft.__)("Selected Content","wedocs"),description:(0,ft.__)("Manually select content that will appear in the Explore tab of the Assistant widget","wedocs")}],r=(...e)=>e.filter(Boolean).join(" "),n=[{id:1,title:{rendered:(0,ft.__)("Documentation Team 1","wedocs")}},{id:2,title:{rendered:(0,ft.__)("Documentation Team 2","wedocs")}},{id:3,title:{rendered:(0,ft.__)("Documentation Team 3","wedocs")}},{id:4,title:{rendered:(0,ft.__)("Documentation Team 4","wedocs")}}];return(0,e.createElement)("div",{className:"explore-settings relative"},(0,e.createElement)(ac,{value:t[1]},(0,e.createElement)("div",{className:"my-5 grid grid-cols-3 !gap-6 sm:grid-cols-3 sm:gap-x-4"},t.map(((n,a)=>(0,e.createElement)(ac.Option,{key:a,value:n,className:({checked:e,active:t})=>r(e?"border-transparent":"border-gray-300",t?"border-indigo-600 ring-2 ring-indigo-600":"","relative flex cursor-pointer rounded-lg border bg-white p-4 shadow-sm focus:outline-none")},(0,e.createElement)("span",{className:"flex"},(0,e.createElement)("span",{className:"flex flex-col"},(0,e.createElement)(ac.Label,{as:"span",className:"flex items-center text-sm font-medium text-gray-600 mb-0.5"},n?.title,(0,e.createElement)("div",{className:r(t[1]?.field!==n?.field?"border border-gray-400":"","ml-auto rounded-full w-4 h-4")},(0,e.createElement)(oc,{className:r(t[1]?.field!==n?.field?"invisible":"-mt-0.5","h-5 w-5 text-indigo-600"),"aria-hidden":"true"}))),(0,e.createElement)(ac.Description,{as:"span",className:"mt-1 flex items-center font-medium text-xs !leading-5 text-[#6B7280]"},n?.description),(0,e.createElement)("span",{className:r(t[1]?.id===n?.id?"border":"border-2",t[1]?.id===n?.id?"border-indigo-600":"border-transparent","pointer-events-none absolute -inset-px rounded-lg"),"aria-hidden":"true"})))))))),"selected"===t[1]?.field&&(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5 my-6"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Select Content","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Handpick content to showcase in the explore tab","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{id:"select-articles",className:"multiSelectBox"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("button",{className:"w-full cursor-pointer rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"},(0,e.createElement)("span",{className:"block multiSelectBox truncate"},(0,ft.__)("Select Articles","wedocs")),(0,e.createElement)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"h-5 w-5 text-gray-400"},(0,e.createElement)("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))))))),n&&n?.length>0&&(0,e.createElement)("div",{className:"selected-articles rounded-md mt-6 max-w-[490px] ml-auto border border-gray-300 bg-white text-left shadow-sm"},(0,e.createElement)("div",{className:"w-full py-2 pl-6 pr-10 bg-gray-200 text-xs font-medium text-gray-500 tracking-wider"},(0,ft.__)("Selected Articles","wedocs")),(0,e.createElement)("div",{className:"relative px-3"},(0,e.createElement)("ul",{className:"z-10 my-1.5"},n?.map(((t,r)=>(0,e.createElement)("li",{key:t?.id,className:`${1===r&&"rounded-md border border-[#E5E7EB] py-1"} cursor-pointer text-gray-900 select-none !mb-0.5`},(0,e.createElement)("nav",{className:(1===r?"block":"hidden")+" flex px-3.5 pt-2.5","aria-label":"Breadcrumb"},(0,e.createElement)("ol",{role:"list",className:"flex items-center"},(0,e.createElement)("li",{className:"m-0"},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("a",{href:"#",className:"text-xs leading-5 text-gray-500 text-indigo-700 cursor-pointer"},(0,ft.__)("Parent Documentation","wedocs")),(0,e.createElement)(wc,{className:"h-3.5 w-3.5 mx-1 flex-shrink-0 text-gray-400","aria-hidden":"true"}))),(0,e.createElement)("li",{className:"m-0"},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("a",{href:"#",className:"text-xs leading-5 text-gray-500 text-indigo-700 cursor-pointer"},(0,ft.__)("Section Documentation","wedocs")))))),(0,e.createElement)("label",{htmlFor:"multi-select",className:"py-2.5 px-3.5 font-normal block truncate flex items-center w-full group text-sm leading-5 text-gray-500"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18",fill:"none",className:"mr-2.5"},(0,e.createElement)("path",{d:"M4.5 9h5m-5 3.333h5m1.667 4.167H2.833c-.92 0-1.667-.746-1.667-1.667V3.167c0-.92.746-1.667 1.667-1.667h4.655c.221 0 .433.088.589.244l4.512 4.512c.156.156.244.368.244.589v7.988c0 .921-.746 1.667-1.667 1.667z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("a",{href:`${window.location.origin}/?p=${t?.id}`},(0,ft.sprintf)((0,ft.__)("%s","wedocs"),t?.title?.rendered)),(0,e.createElement)("button",{className:(1===r?"flex items-center":"hidden")+" cursor-pointer ml-auto bg-gray-100 rounded px-2 py-0.5 text-gray-500 text-sm"},(0,ft.__)("Remove","wedocs"),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-3 h-3 ml-1"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})))))))))))))},xc=()=>{const t=[(0,ft.__)("Explore","wedocs"),(0,ft.__)("Appearance","wedocs")],r=[(0,e.createElement)(vc,null),(0,e.createElement)(gc,null)];return(0,e.createElement)(mc,null,(0,e.createElement)(pc,{tabs:t,panels:r},(0,e.createElement)(bc,null)))},yc=()=>(0,e.createElement)("div",{className:"ai-appearance-section relative"},(0,e.createElement)(dc,null),(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] mt-1 flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Messaging tab icon","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Upload the new explore tab icon. png/jpg preferred","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex flex-2"},(0,e.createElement)(cc,null)))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Messaging tab name","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Give your messaging tab a meaningful name","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"messaging_title",id:"messaging-title",placeholder:(0,ft.__)("Messaging tab title","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0}))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Messaging Tab Subtitle 1","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Edit the first messaging tab subtitle","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"messaging_subtitle_one",id:"messaging-subtitle-one",placeholder:(0,ft.__)("Messaging tab subtitle 1","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0}))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Messaging Tab Subtitle 2","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Edit the second messaging tab subtitle","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"messaging_subtitle_two",id:"messaging-subtitle-two",placeholder:(0,ft.__)("Messaging tab subtitle 2","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0}))))))),Ec=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Enable Messaging Tab","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Stay connected to your readers and receive their thoughts effortlessly through an email form","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] mt-1 ml-auto flex-2"},(0,e.createElement)("div",{className:"relative flex items-center"},(0,e.createElement)(ic,{isEnabled:!0})))))),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200 my-5"})),kc=()=>(0,e.createElement)("div",{className:"messaging-settings relative"},(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Cloudflare Turnstile Site Key","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Set your cloudflare turnstile site key for sending message traffic free","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"turnstile_site_key",id:"turnstile-site-key",placeholder:(0,ft.__)("Enter your cloudflare turnstile site key","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0})))),(0,e.createElement)("div",{className:"settings-description w-full max-w-[490px] ml-auto mt-1"},(0,e.createElement)("p",{className:"text-sm text-[#6B7280]"},(0,ft.__)("How to set up ","wedocs"),(0,e.createElement)("a",{href:"//developers.cloudflare.com/turnstile/get-started/",target:"_blank",className:"text-indigo-700 underline underline-offset-2 !shadow-none",rel:"noreferrer"},(0,ft.__)("Cloudflare Turnstile","wedocs"))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Email Address","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Please enter the email addresses where you would like to receive contact from leads from your users. You can enter multiple emails separated by a comma.","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"email",name:"email_address",id:"email-address",placeholder:(0,ft.__)("Email Address","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0}))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Success Message Title","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Success message title when message is sent successfully","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"messaging_success_title",id:"messaging-success-title",placeholder:(0,ft.__)("Messaging success title","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0}))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Success Message Text","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Success message text when message is sent successfully","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)("input",{type:"text",name:"messaging_success_text",id:"messaging-success-text",placeholder:(0,ft.__)("Messaging success text","wedocs"),className:"w-full !rounded-md !bg-white !border-gray-300 bg-white !py-1 !pl-3 !pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",value:"",readOnly:!0}))))))),Nc=()=>{const t=[(0,ft.__)("Messaging","wedocs"),(0,ft.__)("Appearance","wedocs")],r=[(0,e.createElement)(kc,null),(0,e.createElement)(yc,null)];return(0,e.createElement)(mc,null,(0,e.createElement)(pc,{tabs:t,panels:r},(0,e.createElement)(Ec,null)))},Sc=()=>{let t=[{id:1,key:"integrate_ai",text:(0,ft.__)("A.I. Chat","wedocs")},{id:2,key:"explore",text:(0,ft.__)("Explore","wedocs")},{id:3,key:"message",text:(0,ft.__)("Messaging","wedocs")}];return(0,e.createElement)("div",{className:"placement-settings"},(0,e.createElement)("div",{className:"placement-label"},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("h3",{className:"text-base text-[#111827] font-medium leading-5"},(0,ft.__)("Drag your tabs and place orders","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2 z-[9999]","data-tip":(0,ft.__)("Prevent the widget from appearing on specific pages","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200 mt-5 mb-6"})),(0,e.createElement)("div",{className:"tab-order-settings relative flex items-start min-h-[200px] gap-4"},t?.map((t=>(0,e.createElement)("div",{key:t?.id,className:"bg-[#F3F4F6] text-[#111827] text-sm font-medium leading-5 rounded-md px-3.5 py-2 flex items-center gap-3 cursor-grab shadow"},(0,e.createElement)("svg",{width:"16",height:"16",fill:"none"},(0,e.createElement)("path",{fill:"#9ca3af",d:"M15.997 8.049l-2.584 2.573-.154.15c-.14.125-.297.15-.466.075-.161-.072-.244-.201-.244-.383l.003-1.358c.004-.165-.036-.229-.215-.226H9.067c-.161 0-.215.043-.215.211v3.29c0 .158.05.204.204.201l1.34-.004c.201-.004.351.072.426.258s.029.348-.115.487l-2.602 2.605c-.093.093-.154.097-.247 0l-2.602-2.605c-.14-.14-.19-.305-.115-.487s.226-.262.426-.262l1.358.004c.136.004.19-.036.19-.179V9.056a.14.14 0 0 0-.176-.176H3.598c-.147 0-.183.05-.179.186l.004 1.34c.004.204-.064.366-.262.444s-.358.018-.502-.129L.079 8.145c-.108-.104-.104-.168 0-.272l2.566-2.566c.151-.151.312-.219.516-.136s.262.254.258.462l-.004 1.322c-.004.14.039.186.183.186h3.343c.136 0 .172-.047.172-.176V3.623c0-.15-.057-.179-.19-.179l-1.34.004c-.208.004-.366-.068-.444-.262s-.014-.358.129-.502L7.784.168 7.945 0h.072l.161.168 2.516 2.516c.143.143.208.308.129.502s-.236.265-.444.262c-.441-.004-.882.004-1.322-.004-.151-.004-.208.036-.208.197v3.308c0 .147.047.194.194.194h3.308c.161 0 .201-.057.197-.208l-.004-1.376a.39.39 0 0 1 .244-.383c.168-.075.326-.05.466.075l.129.125 2.609 2.598a.28.28 0 0 1 .007.075z"})),t?.text)))))},Ac=()=>(0,e.createElement)(mc,null,(0,e.createElement)(Sc,null)),Dc=({options:t,classes:r,fieldName:n,setSettings:a,settingsName:o,settingsData:s,defaultValue:i})=>{const[l,c]=(0,bt.useState)(i);return(0,bt.useEffect)((()=>{Boolean(s?.assistant?.preference?.[o]?.[n])&&c({...t?.find((e=>e?.key===s?.assistant?.preference?.[o]?.[n]))})}),[s?.assistant?.preference?.[o]?.[n]]),(0,e.createElement)("div",{className:`${r} h-8`},(0,e.createElement)(bl,{value:l,onChange:e=>(e=>{c({...e}),a({...s,assistant:{...s?.assistant,preference:{...s?.assistant?.preference,[o]:{...s?.assistant?.preference?.[o],[n]:e?.key}}}})})(e)},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)(bl.Button,{className:"relative w-full cursor-pointer rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"},(0,e.createElement)("span",{className:"block truncate"},l.value),(0,e.createElement)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2"},(0,e.createElement)(Vn,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"}))),(0,e.createElement)(dr,{as:bt.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)(bl.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},t.map((t=>(0,e.createElement)(bl.Option,{key:t?.key,className:({active:e})=>"relative cursor-pointer select-none py-2 px-4 pr-4 "+(e?"bg-indigo-700 text-white":"text-gray-900"),value:t},(0,e.createElement)("span",{className:"block truncate text-sm font-normal"},t?.value)))))))))},Cc=({name:t,classes:r,setSettings:n,settingsData:a})=>{const o=[{key:"normal",value:(0,ft.__)("Normal","wedocs")},{key:"medium",value:(0,ft.__)("Medium","wedocs")},{key:"semibold",value:(0,ft.__)("Semi bold","wedocs")},{key:"bold",value:(0,ft.__)("Bold","wedocs")},{key:"extrabold",value:(0,ft.__)("Extra bold","wedocs")}],s=[{key:"xs",value:12},{key:"sm",value:14},{key:"base",value:16},{key:"lg",value:18},{key:"xl",value:20},{key:"2xl",value:24},{key:"3xl",value:30}],i="widget_title_font"===t?s[3]:s[2],l="widget_title_font"===t?o[1]:o[0];return(0,e.createElement)("div",{className:`${r||""} flex space-x-2.5`},(0,e.createElement)(Dc,{classes:"w-[108px]",options:o,fieldName:"weight",setSettings:n,settingsName:t,settingsData:a,defaultValue:l}),(0,e.createElement)(Dc,{classes:"w-[72px]",options:s,fieldName:"size",setSettings:n,settingsName:t,settingsData:a,defaultValue:i}),(0,e.createElement)("button",{onClick:()=>{n({...a,assistant:{...a?.assistant,preference:{...a?.assistant?.preference,[t]:{...a?.assistant?.preference?.[t],size:"widget_title_font"===t?s[3]?.key:s[2]?.key,weight:"widget_title_font"===t?o[1]?.key:o[0]?.key}}}})},className:"relative cursor-pointer rounded-md border border-gray-300 bg-white py-2 px-3 text-left shadow-sm hover:bg-indigo-700 hover:text-white sm:text-sm"},(0,ft.__)("Reset","wedocs")))},Ic=()=>{const t=[{key:"default",title:(0,ft.__)("Default","wedocs"),widgetColors:{color1:"#6366F1",color2:"#4338CA",color3:"#C7D2FE",color4:"#6B7280"},paletteColors:{widgetBg:{r:99,g:102,b:241,a:1},activeTabBg:{r:255,g:255,b:255,a:1},activeTabFont:{r:55,g:65,b:81,a:1},inactiveTabBg:{r:67,g:56,b:202,a:1},inactiveTabFont:{r:199,g:210,b:254,a:1},tabTitleFont:{r:255,g:255,b:255,a:1},tabDescriptionFont:{r:199,g:210,b:254,a:1},breadcrumbColor:{r:67,g:56,b:202,a:1},sendBtnBg:{r:99,g:102,b:241,a:1},sendBtnFont:{r:255,g:255,b:255,a:1},bubbleBg:{r:87,g:116,b:241,a:1},bubbleIcon:{r:255,g:255,b:255,a:1}}},{key:"watermelon",title:(0,ft.__)("Watermelon","wedocs"),widgetColors:{color1:"#FB4570",color2:"#932841",color3:"#FFFFFF",color4:"#FB4570"},paletteColors:{widgetBg:{r:251,g:69,b:112,a:1},activeTabBg:{r:255,g:255,b:255,a:1},activeTabFont:{r:251,g:69,b:112,a:1},inactiveTabBg:{r:147,g:40,b:65,a:1},inactiveTabFont:{r:251,g:69,b:112,a:1},tabTitleFont:{r:255,g:255,b:255,a:1},tabDescriptionFont:{r:147,g:40,b:65,a:1},breadcrumbColor:{r:251,g:69,b:112,a:1},sendBtnBg:{r:251,g:69,b:112,a:1},sendBtnFont:{r:255,g:255,b:255,a:1},bubbleBg:{r:251,g:69,b:112,a:1},bubbleIcon:{r:255,g:255,b:255,a:1}}},{key:"dark-slate-blue",title:(0,ft.__)("Dark Slate Blue","wedocs"),widgetColors:{color1:"#4C4486",color2:"#362F63",color3:"#FF9494",color4:"#4E52F3"},paletteColors:{widgetBg:{r:76,g:68,b:134,a:1},activeTabBg:{r:255,g:255,b:255,a:1},activeTabFont:{r:76,g:68,b:134,a:1},inactiveTabBg:{r:54,g:47,b:99,a:1},inactiveTabFont:{r:255,g:148,b:148,a:1},tabTitleFont:{r:255,g:255,b:255,a:1},tabDescriptionFont:{r:160,g:150,b:224,a:1},breadcrumbColor:{r:78,g:82,b:243,a:1},sendBtnBg:{r:76,g:68,b:134,a:1},sendBtnFont:{r:255,g:255,b:255,a:1},bubbleBg:{r:255,g:148,b:148,a:1},bubbleIcon:{r:255,g:255,b:255,a:1}}},{key:"azure",title:(0,ft.__)("Azure","wedocs"),widgetColors:{color1:"#0094FF",color2:"#0079D1",color3:"#00FFF0",color4:"#DBDBDB"},paletteColors:{widgetBg:{r:0,g:148,b:255,a:1},activeTabBg:{r:255,g:255,b:255,a:1},activeTabFont:{r:0,g:148,b:255,a:1},inactiveTabBg:{r:0,g:121,b:209,a:1},inactiveTabFont:{r:255,g:255,b:255,a:1},tabTitleFont:{r:255,g:255,b:255,a:1},tabDescriptionFont:{r:0,g:255,b:240,a:1},breadcrumbColor:{r:0,g:148,b:255,a:1},sendBtnBg:{r:0,g:148,b:255,a:1},sendBtnFont:{r:255,g:255,b:255,a:1},bubbleBg:{r:0,g:148,b:255,a:1},bubbleIcon:{r:255,g:255,b:255,a:1}}},{key:"elephant",title:(0,ft.__)("Elephant","wedocs"),widgetColors:{color1:"#073B4C",color2:"#06D6A0",color3:"#9BA8AC",color4:"#00212C"},paletteColors:{widgetBg:{r:7,g:59,b:76,a:1},activeTabBg:{r:255,g:255,b:255,a:1},activeTabFont:{r:43,g:58,b:85,a:1},inactiveTabBg:{r:0,g:33,b:44,a:1},inactiveTabFont:{r:155,g:168,b:172,a:1},tabTitleFont:{r:255,g:255,b:255,a:1},tabDescriptionFont:{r:6,g:214,b:160,a:1},breadcrumbColor:{r:6,g:214,b:160,a:1},sendBtnBg:{r:7,g:59,b:76,a:1},sendBtnFont:{r:255,g:255,b:255,a:1},bubbleBg:{r:6,g:214,b:160,a:1},bubbleIcon:{r:255,g:255,b:255,a:1}}},{key:"atomic-tangerine",title:(0,ft.__)("Atomic Tangerine","wedocs"),widgetColors:{color1:"#F6A771",color2:"#77533A",color3:"#FFF2CC",color4:"#5C4500"},paletteColors:{widgetBg:{r:246,g:167,b:113,a:1},activeTabBg:{r:255,g:255,b:255,a:1},activeTabFont:{r:92,g:69,b:0,a:1},inactiveTabBg:{r:224,g:144,b:89,a:1},inactiveTabFont:{r:255,g:198,b:159,a:1},tabTitleFont:{r:255,g:255,b:255,a:1},tabDescriptionFont:{r:101,g:69,b:47,a:1},breadcrumbColor:{r:99,g:102,b:241,a:1},sendBtnBg:{r:246,g:167,b:113,a:1},sendBtnFont:{r:255,g:255,b:255,a:1},bubbleBg:{r:246,g:167,b:113,a:1},bubbleIcon:{r:255,g:255,b:255,a:1}}},{key:"meteorite",title:(0,ft.__)("Meteorite","wedocs"),widgetColors:{color1:"#3C2474",color2:"#FFC329",color3:"#CDBCFF",color4:"#18083C"},paletteColors:{widgetBg:{r:60,g:36,b:116,a:1},activeTabBg:{r:255,g:195,b:41,a:1},activeTabFont:{r:0,g:0,b:0,a:1},inactiveTabBg:{r:24,g:8,b:60,a:1},inactiveTabFont:{r:255,g:255,b:255,a:1},tabTitleFont:{r:255,g:255,b:255,a:1},tabDescriptionFont:{r:205,g:188,b:255,a:1},breadcrumbColor:{r:255,g:153,b:0,a:1},sendBtnBg:{r:60,g:36,b:116,a:1},sendBtnFont:{r:255,g:255,b:255,a:1},bubbleBg:{r:246,g:195,b:41,a:1},bubbleIcon:{r:0,g:0,b:0,a:1}}}];return(0,e.createElement)("div",{className:"w-80 settings-palette-options"},(0,e.createElement)("div",{className:"palette-options"},t?.map((t=>(0,e.createElement)("div",{key:t.key,className:"palette-option flex items-center justify-between mb-4 last:mb-0 border border-[#E2E2E2] px-5 py-6 rounded-lg hover:cursor-pointer"},(0,e.createElement)("h4",{className:"flex items-center font-medium text-gray-600 text-sm"},(0,e.createElement)("input",{type:"radio",id:t.key,name:"palette-option",defaultChecked:"default"===t.key,className:("default"===t.key?"checked:!border-transparent checked:!bg-indigo-600 before:!hidden":"!bg-transparent !border-[#8c8f94] before:!bg-transparent")+" h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600 !mr-2 !-mt-[0.5px]"}),t.title),(0,e.createElement)("div",{className:"colors flex items-center gap-2"},(0,e.createElement)("div",{className:"tooltip flex cursor-pointer ml-2","data-tip":(0,ft.__)("Widget Background","wedocs")},(0,e.createElement)("span",{className:"palette-first-color w-10 h-4 rounded-[55px] "+("#FFFFFF"===t.widgetColors.color1?"border border-[#DBDBDB]":""),style:{background:t.widgetColors.color1}})),(0,e.createElement)("span",{className:"w-4 h-4 rounded-full "+("#FFFFFF"===t.widgetColors.color2?"border border-[#DBDBDB]":""),style:{background:t.widgetColors.color2}}),(0,e.createElement)("span",{className:"w-4 h-4 rounded-full "+("#FFFFFF"===t.widgetColors.color3?"border border-[#DBDBDB]":""),style:{background:t.widgetColors.color3}}),(0,e.createElement)("span",{className:"w-4 h-4 rounded-full "+("#FFFFFF"===t.widgetColors.color4?"border border-[#DBDBDB]":""),style:{background:t.widgetColors.color4}})))))))},Lc=({settings:t,previewColors:r})=>{const n=[(0,ft.__)("How to Install","wedocs"),(0,ft.__)("Activating & Deactivating WPUF Modules","wedocs")],{widgetBg:a,activeTabBg:o,activeTabFont:s,inactiveTabBg:i,inactiveTabFont:l,tabTitleFont:c,tabDescriptionFont:d,breadcrumbColor:u,bubbleIcon:m,bubbleBg:p}=r,f=(0,bt.useRef)({color:`rgba(${l?.r}, ${l?.g}, ${l?.b}, ${l?.a})`}),h=(0,bt.useRef)({color:`rgba(${s?.r}, ${s?.g}, ${s?.b}, ${s?.a})`,background:`rgba(${o?.r}, ${o?.g}, ${o?.b}, ${o?.a})`}),g=(0,bt.useRef)({fill:`rgba(${l?.r}, ${l?.g}, ${l?.b}, ${l?.a})`}),b=(0,bt.useRef)({fill:`rgba(${s?.r}, ${s?.g}, ${s?.b}, ${s?.a})`}),[w,v]=(0,bt.useState)("explore"),x=[{key:"integrate_ai",name:(0,ft.__)("A.I. Chatbot","wedocs"),enable:"off"!==t?.integrate_ai?.ai_enabled,icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18",style:"integrate_ai"===w?b.current:g.current},(0,e.createElement)("path",{d:"M1.161 2.514a2 2 0 0 1 2-2h4.586a2 2 0 0 1 1.414.586l3.414 3.414a2 2 0 0 1 .586 1.414v8.586a2 2 0 0 1-2 2H9.633c.95-1.062 1.528-2.463 1.528-4a6 6 0 0 0-6-6c-1.537 0-2.938.578-4 1.528V2.514z"}),(0,e.createElement)("path",{fillRule:"evenodd",d:"M5.161 8.514a4 4 0 0 0-4 4c0 .741.202 1.436.554 2.032L.454 15.807a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0l1.261-1.261c.595.352 1.29.554 2.032.554a4 4 0 1 0 0-8zm-2 4a2 2 0 1 1 4 0 2 2 0 0 1-2 2 1.99 1.99 0 0 1-1.414-.586 1.99 1.99 0 0 1-.586-1.414z"}))},{key:"explore",name:(0,ft.__)("Explore","wedocs"),enable:"off"!==t?.explore?.explore_enable,icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18",style:"explore"===w?b.current:g.current},(0,e.createElement)("path",{d:"M1.161 2.514a2 2 0 0 1 2-2h4.586a2 2 0 0 1 1.414.586l3.414 3.414a2 2 0 0 1 .586 1.414v8.586a2 2 0 0 1-2 2H9.633c.95-1.062 1.528-2.463 1.528-4a6 6 0 0 0-6-6c-1.537 0-2.938.578-4 1.528V2.514z"}),(0,e.createElement)("path",{fillRule:"evenodd",d:"M5.161 8.514a4 4 0 0 0-4 4c0 .741.202 1.436.554 2.032L.454 15.807a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0l1.261-1.261c.595.352 1.29.554 2.032.554a4 4 0 1 0 0-8zm-2 4a2 2 0 1 1 4 0 2 2 0 0 1-2 2 1.99 1.99 0 0 1-1.414-.586 1.99 1.99 0 0 1-.586-1.414z"}))},{key:"messaging",name:(0,ft.__)("Messaging","wedocs"),enable:"off"!==t?.message?.messaging_enable,icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"15",style:"message"===w?b.current:g.current},(0,e.createElement)("path",{fillRule:"evenodd",d:"M16.161 7.514c0 3.866-3.582 7-8 7-1.492 0-2.888-.357-4.083-.979l-3.917.979 1.338-3.123C.654 10.281.161 8.948.161 7.514c0-3.866 3.582-7 8-7s8 3.134 8 7zm-11-1h-2v2h2v-2zm8 0h-2v2h2v-2zm-6 0h2v2h-2v-2z"}))}];return(0,e.createElement)("div",{className:"w-[26rem] palette-preview-container relative"},(0,e.createElement)("div",{className:"palette-preview-content transition-all"},(0,e.createElement)("div",{className:"pb-6 palette-preview bg-white rounded-[10px] shadow-xl mb-5 overflow-hidden"},(0,e.createElement)("div",{className:"preview-header flex items-center justify-center h-48",style:{background:`rgba(${a?.r}, ${a?.g}, ${a?.b}, ${a?.a})`}},(0,e.createElement)("div",{className:"text-center"},(0,e.createElement)("div",{className:"tabs flex items-center font-medium text-sm leading-5 w-fit h-10 shadow-sm rounded-[10px] mb-5 mx-auto",style:{color:`rgba(${l?.r}, ${l?.g}, ${l?.b}, ${l?.a})`,background:`rgba(${i?.r}, ${i?.g}, ${i?.b}, ${i?.a})`}},x?.map((r=>(0,e.createElement)("div",{key:r?.key,className:"tab flex items-center justify-center mx-auto gap-2 py-2.5 px-5 rounded-[10px] cursor-pointer outline-none h-[100%] leading-4",style:w===r?.key?h.current:f.current},t?.[r?.key]?.[`${r.key}_tab_icon`]?.src?(0,e.createElement)("img",{src:t?.[r?.key]?.[`${r.key}_tab_icon`]?.src,alt:t?.[r?.key]?.[`${r.key}_tab_icon`]?.name,className:"max-h-5 max-w-5"}):r?.icon,t?.[r?.key]?.[`${r?.key}_title`]?pt(t?.[`${r?.key}_title`],10):(0,ft.__)(r?.name,"wedocs"))))),(0,e.createElement)("div",{className:`preview-heading mb-1.5 ${t?.preference?.widget_title_font?.size?`text-${t?.preference?.widget_title_font?.size}`:"text-lg"} ${t?.preference?.widget_title_font?.weight?`font-${t?.preference?.widget_title_font?.weight}`:"font-medium"}`,style:{color:`rgba(${c?.r}, ${c?.g}, ${c?.b}, ${c?.a})`}},t?.explore?.[`${w}_subtitle_one`]?pt(t?.explore?.[`${w}_subtitle_one`],20):(0,ft.__)("Explore Feature","wedocs")),(0,e.createElement)("div",{className:`preview-description w-80 ${t?.preference?.widget_description_font?.size?`text-${t?.preference?.widget_description_font?.size}`:"text-sm"} ${t?.preference?.widget_description_font?.weight?`font-${t?.preference?.widget_description_font?.weight}`:"font-normal"}`,style:{color:`rgba(${d?.r}, ${d?.g}, ${d?.b}, ${d?.a})`}},t?.explore?.[`${w}_subtitle_two`]?pt(t?.explore?.[`${w}_subtitle_two`],80):(0,ft.__)("Search with keywords for quick answers","wedocs")))),(0,e.createElement)("div",{className:`${"explore"!==w&&"hidden"} explore-tab -mt-5`},(0,e.createElement)("div",{className:"listing-docs"},(0,e.createElement)("div",{className:"search-panel px-3 py-1 doc-search-panel relative flex items-center justify-center border border-[#D1D5DB] bg-white rounded-md w-80 mx-auto shadow-sm mb-8"},(0,e.createElement)("input",{id:"doc-search",type:"text",className:"!border-0 !border-transparent !bg-white text-sm text-gray-900 placeholder-gray-400 w-full focus:!shadow-transparent !px-0 !py-0 disabled:shadow-none",placeholder:(0,ft.__)("Search","wedocs"),readOnly:!0,value:""}),(0,e.createElement)("label",{htmlFor:"doc-search"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",className:"cursor-pointer"},(0,e.createElement)("path",{d:"M16.661 16.094l-5-5m1.667-4.167c0 3.222-2.612 5.833-5.833 5.833s-5.833-2.612-5.833-5.833 2.612-5.833 5.833-5.833 5.833 2.612 5.833 5.833z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"h-80 explore-docs"},n?.map(((t,r)=>(0,e.createElement)("div",{key:r,className:`${"explore"!==w&&"hidden"} doc-section border border-[#D1D5DB] box-border p-4 mb-2.5 last:mb-0 rounded-md w-[340px] mx-auto`},(0,e.createElement)("div",{className:"breadcrumbs text-sm mb-2 p-0",style:{color:`rgba(${u?.r}, ${u?.g}, ${u?.b}, ${u?.a})`}},(0,ft.__)("WP User Frontend… > Getting Started","wedocs")),(0,e.createElement)("div",{className:"doc-heading text-lg text-gray-900 mb-1.5"},t),(0,e.createElement)("div",{className:"doc-description text-sm font-normal text-gray-500 leading-5"},(0,ft.__)("Here you will find everything about WP User Frontend, what it offers and its","wedocs")))))))))),(0,e.createElement)("div",{className:"msg-icon w-16 h-16 rounded-full ml-auto flex items-center justify-center",style:{background:`rgba(${p?.r}, ${p?.g}, ${p?.b}, ${p?.a})`}},(0,e.createElement)("svg",{width:"25",height:"24",xmlns:"http://www.w3.org/2000/svg",className:"rotate-360 transition-all",style:{fill:`rgba(${m?.r}, ${m?.g}, ${m?.b}, ${m?.a})`}},(0,e.createElement)("path",{d:"M2.157 23.042a1.2 1.2 0 0 1-1.198-1.187V6.481A5.91 5.91 0 0 1 6.871.569h11.835a5.91 5.91 0 0 1 5.912 5.912v7.099a5.91 5.91 0 0 1-5.912 5.912H7.27L2.833 22.82c-.198.141-.434.219-.677.222zM6.882 2.943a3.55 3.55 0 0 0-3.549 3.549v13l2.84-2.13c.205-.152.454-.234.71-.233h11.824a3.55 3.55 0 0 0 3.55-3.549V6.481a3.55 3.55 0 0 0-3.55-3.549l-11.824.011zm8.264 5.934H8.058c-.165.016-.331-.003-.488-.055s-.302-.136-.424-.248-.221-.247-.288-.398-.102-.315-.102-.481.035-.329.102-.481.165-.287.288-.398.267-.196.424-.248.323-.071.488-.055h7.088c.165-.016.331.003.488.055s.302.136.424.248.221.247.288.398.102.315.102.481-.035.329-.102.481-.165.287-.288.398a1.19 1.19 0 0 1-.424.248c-.157.052-.323.071-.488.055zm-7.088 4.725h3.549c.165.016.331-.003.488-.055s.302-.136.424-.248.22-.247.287-.398a1.19 1.19 0 0 0 0-.961c-.067-.151-.165-.287-.287-.398s-.267-.196-.424-.248-.323-.071-.488-.055H8.058c-.165-.016-.331.003-.488.055s-.302.136-.424.248-.221.247-.288.398-.102.315-.102.481.035.329.102.481.165.287.288.398.267.196.424.248.323.071.488.055z"}))))},Tc=({settingsData:t,setSettings:r})=>{const n=[{field:"pre-built",title:(0,ft.__)("Pre-built Color Palette","wedocs"),description:(0,ft.__)("Choose a pre-built color palette for the colors of your assistant widget.","wedocs")},{field:"custom",title:(0,ft.__)("Custom Color Palette","wedocs"),description:(0,ft.__)("Choose any colors that represents your brand or that you prefer.","wedocs")}],a=(...e)=>e.filter(Boolean).join(" "),o=[{id:1,title:{rendered:(0,ft.__)("Home","wedocs")}},{id:2,title:{rendered:(0,ft.__)("About","wedocs")}},{id:3,title:{rendered:(0,ft.__)("Services","wedocs")}},{id:4,title:{rendered:(0,ft.__)("Portfolio","wedocs")}},{id:5,title:{rendered:(0,ft.__)("Contact Us","wedocs")}}];return(0,e.createElement)("div",{className:"preference-settings"},(0,e.createElement)("div",{className:"preference-label"},(0,e.createElement)("h3",{className:"text-base text-[#111827] font-medium leading-5"},(0,ft.__)("Widget Settings","wedocs")),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200 mt-5 mb-6"})),(0,e.createElement)("div",{className:"appearance-widget-settings relative"},(0,e.createElement)("div",{className:"grid grid-cols-4 gap-5"},(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Hide from Pages","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Prevent the widget from appearing on specific pages","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto -mt-1 flex-2"},(0,e.createElement)("div",{className:"pageSelectionBox"},(0,e.createElement)("div",{className:"relative mb-2"},(0,e.createElement)("button",{className:"w-full cursor-pointer rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"},(0,e.createElement)("div",{className:"active-roles inline-flex flex-wrap items-center gap-2.5"},o.map((t=>(0,e.createElement)("span",{key:t?.id,className:"inline-flex items-center gap-1 rounded-md bg-gray-100 px-2.5 py-0.5 text-sm text-gray-800"},t?.title?.rendered,(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:3.5,stroke:"currentColor",className:"w-3 h-3 cursor-pointer text-gray-400"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})))))))))))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Tab First Sub-Title Font Size","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Choose an appropriate font size for tab first sub-title","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)(Cc,{name:"widget_title_font",classes:"justify-end",setSettings:r,settingsData:t})))),(0,e.createElement)("div",{className:"col-span-4"},(0,e.createElement)("div",{className:"settings-content flex items-center justify-between"},(0,e.createElement)("div",{className:"settings-field-heading md:min-w-[300px] flex items-center space-x-2 flex-1"},(0,e.createElement)("label",{className:"block text-sm font-medium text-gray-600",id:"headlessui-listbox-label-15","data-headlessui-state":"open"},(0,ft.__)("Tab Second Sub-Title Font Size","wedocs")),(0,e.createElement)("div",{className:"tooltip cursor-pointer ml-2","data-tip":(0,ft.__)("Choose an appropriate font size for tab second sub-title","wedocs")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},(0,e.createElement)("path",{d:"M9.833 12.333H9V9h-.833M9 5.667h.008M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 1 1 15 0z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"settings-field w-full max-w-[490px] ml-auto flex-2"},(0,e.createElement)("div",{className:"relative"},(0,e.createElement)(Cc,{name:"widget_description_font",classes:"justify-end",setSettings:r,settingsData:t}))))))),(0,e.createElement)("h2",{className:"text-gray-900 font-medium text-base leading-none mt-8"},(0,ft.__)("Color Palette Settings","wedocs")),(0,e.createElement)("hr",{className:"h-px !bg-gray-200 border-0 dark:!bg-gray-200 my-5"}),(0,e.createElement)("div",{className:"appearance-color-settings relative"},(0,e.createElement)(ac,{value:n[0]},(0,e.createElement)("div",{className:"mb-10 grid grid-cols-3 !gap-6 sm:grid-cols-3 sm:gap-x-4"},n.map((t=>(0,e.createElement)(ac.Option,{key:t?.field,value:t,className:({checked:e,active:t})=>a(e?"border-transparent":"border-gray-300",t?"border-indigo-600 ring-2 ring-indigo-600":"","relative flex cursor-pointer rounded-lg border bg-white p-4 shadow-sm focus:outline-none")},(0,e.createElement)("span",{className:"flex"},(0,e.createElement)("span",{className:"flex flex-col"},(0,e.createElement)(ac.Label,{as:"span",className:"flex items-center text-sm font-medium text-gray-600 mb-0.5"},t?.title,(0,e.createElement)("div",{className:a(n[0]?.field!==t?.field?"border border-gray-400":"","ml-auto rounded-full w-4 h-4")},(0,e.createElement)(oc,{className:a(n[0]?.field!==t?.field?"invisible":"-mt-0.5","h-5 w-5 text-indigo-600"),"aria-hidden":"true"}))),(0,e.createElement)(ac.Description,{as:"span",className:"mt-1 flex items-center font-medium text-xs !leading-5 text-[#6B7280]"},t?.description),(0,e.createElement)("span",{className:a(n[0]?.field===t?.field?"border":"border-2",n[0]?.field===t?.field?"border-indigo-600":"border-transparent","pointer-events-none absolute -inset-px rounded-lg"),"aria-hidden":"true"})))))))),"custom"===n[0]?.field&&(0,e.createElement)("div",{id:"custom-heading",className:"w-80"},(0,e.createElement)("div",{className:"settings-heading md:min-w-[300px] flex items-center justify-between mb-4"},(0,e.createElement)("span",{className:"font-bold text-sm text-gray-600"},(0,ft.__)("Choose Color: ","wedocs")),(0,e.createElement)("span",{className:"reset-palette text-sm font-semibold text-indigo-600 hover:text-indigo-700 cursor-pointer"},(0,ft.__)("Reset All","wedocs"))),(0,e.createElement)("hr",{className:"border-t-[#DBDBDB]"})),(0,e.createElement)("div",{className:"palette-options-container flex gap-24 my-6"},(0,e.createElement)(Ic,null),(0,e.createElement)(Lc,{settings:t,previewColors:{widgetBg:{r:99,g:102,b:241,a:1},activeTabBg:{r:255,g:255,b:255,a:1},activeTabFont:{r:55,g:65,b:81,a:1},inactiveTabBg:{r:67,g:56,b:202,a:1},inactiveTabFont:{r:199,g:210,b:254,a:1},tabTitleFont:{r:255,g:255,b:255,a:1},tabDescriptionFont:{r:199,g:210,b:254,a:1},breadcrumbColor:{r:67,g:56,b:202,a:1},sendBtnBg:{r:99,g:102,b:241,a:1},sendBtnFont:{r:255,g:255,b:255,a:1},bubbleBg:{r:87,g:116,b:241,a:1},bubbleIcon:{r:255,g:255,b:255,a:1}}}))))},Mc=({settingsData:t,setSettings:r})=>(0,e.createElement)(mc,null,(0,e.createElement)(Tc,{settingsData:t,setSettings:r}));wp.hooks.applyFilters("wedocs_pro_loaded",!1)||(wp.hooks.addFilter("wedocs_settings_menu","settings_menu_override",(function(t){return t.permission={pro:!0,text:(0,ft.__)("Permission Management","wedocs"),icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",stroke:"#6b7280",strokeWidth:"2",strokeLinejoin:"round",className:"-ml-1 mr-4 pro-settings"},(0,e.createElement)("path",{d:"M10 2.866a3.99 3.99 0 0 1 3-1.354 4 4 0 1 1 0 8 3.99 3.99 0 0 1-3-1.354m3 11.354H1v-1a6 6 0 1 1 12 0v1zm0 0h6v-1a6 6 0 0 0-6-6 5.97 5.97 0 0 0-3 .803m1-7.803a4 4 0 1 1-8 0 4 4 0 1 1 8 0z"}))},t.assistant={pro:!0,text:(0,ft.__)("Assistant Widget","wedocs"),icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",stroke:"#6b7280",strokeWidth:"2",strokeLinejoin:"round",className:"-ml-1 mr-4 pro-settings"},(0,e.createElement)("path",{d:"M1 3.512v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-6l-2-2H3a2 2 0 0 0-2 2z"})),disabled:!0,subtabs:[{pro:!0,text:(0,ft.__)("A.I. Chat","wedocs"),icon:(0,e.createElement)("svg",{width:"20",height:"16",fill:"none",style:{marginRight:"1em"},className:"-ml-1 mr-4"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M1.703.818a1.02 1.02 0 0 1 1.022 1.022 1.02 1.02 0 0 1-.606.934v3.032l.165-.017C3.033 2.635 5.979.818 9.5.818s6.466 1.816 7.216 4.97l.165.014V2.775a1.02 1.02 0 0 1-.606-.934c0-.564.458-1.022 1.022-1.022a1.02 1.02 0 0 1 1.022 1.022 1.02 1.02 0 0 1-.606.934v3.245c.544.249.911.702.949 1.405l.003.568-.001.768c-.057 1.063-.862 1.557-1.897 1.638-.65 3.305-3.658 5.219-7.269 5.219s-6.62-1.914-7.269-5.221C1.195 10.3.392 9.72.337 8.659l-.003-.666.003-.466a1.68 1.68 0 0 1 .949-1.472v-3.28a1.02 1.02 0 0 1-.605-.934c0-.564.458-1.022 1.022-1.022zm13.566 6.45l.009.951-.01.939c-.16 3.046-2.682 4.837-5.768 4.837s-5.607-1.79-5.768-4.837l-.008-.939.009-.951c.166-3.042 2.685-4.826 5.768-4.826s5.601 1.784 5.768 4.826zM13.17 7.17c0-.602-.486-1.088-1.088-1.088s-1.088.486-1.088 1.088.486 1.088 1.088 1.088 1.088-.486 1.088-1.088zm-5.167 0a1.09 1.09 0 0 1-1.088 1.088A1.09 1.09 0 0 1 5.827 7.17a1.09 1.09 0 0 1 1.088-1.088A1.09 1.09 0 0 1 8.003 7.17z",style:{fill:"#6b7280"}}))},{pro:!0,text:(0,ft.__)("Explore","wedocs"),icon:(0,e.createElement)("svg",{width:"20",height:"20",fill:"none",className:"-ml-1 mr-4"},(0,e.createElement)("path",{strokeWidth:"2",stroke:"#6b7280",strokeLinecap:"round",className:"-ml-1 mr-4",d:"M6 19h7a2 2 0 0 0 2-2V7.414a1 1 0 0 0-.293-.707L9.293 1.293A1 1 0 0 0 8.586 1H3a2 2 0 0 0-2 2v11m0 5l4.879-4.879m0 0A2.99 2.99 0 0 0 8 15a3 3 0 1 0 0-6 3 3 0 0 0-3 3 2.99 2.99 0 0 0 .879 2.121z"}))},{pro:!0,text:(0,ft.__)("Messaging","wedocs"),icon:(0,e.createElement)("svg",{width:"20",height:"16",fill:"none",className:"-ml-1 mr-4"},(0,e.createElement)("path",{d:"M1 4l7.891 5.26a2 2 0 0 0 2.219 0L19 4M3 15h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2z",strokeWidth:"2",stroke:"#6b7280",strokeLinecap:"round",strokeLinejoin:"round"}))},{pro:!0,text:(0,ft.__)("Placement","wedocs"),icon:(0,e.createElement)("svg",{width:"20",height:"14",fill:"none",className:"-ml-1 mr-4"},(0,e.createElement)("path",{strokeWidth:"2",stroke:"#6b7280",strokeLinecap:"round",strokeLinejoin:"round",d:"M1 1H17M1 7H17M1 13H8"}))},{pro:!0,text:(0,ft.__)("Widget Preference","wedocs"),icon:(0,e.createElement)("svg",{width:"20",height:"18",fill:"none",className:"-ml-1 mr-4"},(0,e.createElement)("path",{strokeWidth:"2",stroke:"#6b7280",strokeLinecap:"round",strokeLinejoin:"round",d:"M9 3V1m0 2a2 2 0 1 0 0 4m0-4a2 2 0 1 1 0 4m-6 8a2 2 0 1 0 0-4m0 4a2 2 0 1 1 0-4m0 4v2m0-6V1m6 6v10m6-2a2 2 0 1 0 0-4m0 4a2 2 0 1 1 0-4m0 4v2m0-6V1"}))}]},t.styles={pro:!0,text:(0,ft.__)("Layout & Styles","wedocs"),icon:(0,e.createElement)("svg",{width:"20",height:"20",fill:"none",strokeWidth:"2",stroke:"#6b7280",strokeLinejoin:"round",className:"-ml-0.5 mr-4 pro-settings"},(0,e.createElement)("path",{d:"M1 2.47a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-2zm0 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-6zm12 0a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6z"}))},t})),wp.hooks.addFilter("wedocs_settings_page_templates","wedocs_settings_page_templates_callback",(function(t,r,n,a){const o=[(0,e.createElement)(hc,{key:a}),(0,e.createElement)(xc,{key:a}),(0,e.createElement)(Nc,{key:a}),(0,e.createElement)(Ac,{key:a}),(0,e.createElement)(Mc,{key:a,settingsData:r,setSettings:n})];return[...t,(0,e.createElement)(Hl,{key:a}),...o,(0,e.createElement)(sc,{key:a,settingsData:r,setSettings:n})]})),wp.hooks.addFilter("wedocs_admin_article_restriction_action","wedocs_admin_article_restriction_action_callback",(function(t,r,n){return(0,e.createElement)(e.Fragment,null,Ca()&&(0,e.createElement)(e.Fragment,null,"doc"===n&&(0,e.createElement)(Fl,null,(0,e.createElement)("span",{className:"group flex items-center py-2 px-4 space-x- text-sm font-medium text-gray-700 hover:bg-gray-100 hover:text-gray-900 !shadow-none"},(0,e.createElement)("span",null,(0,ft.__)("Permission Management","wedocs")),(0,e.createElement)("span",{className:"crown cursor-pointer relative text-white text-[10px] py-[3px] px-[5px] leading-none ml-2.5"},(0,e.createElement)("svg",{className:"crown-icon hover:fill-[#cf7500]",xmlns:"http://www.w3.org/2000/svg",width:"20",fill:"#ff9000",height:"15"},(0,e.createElement)("path",{d:"M19.213 4.116c.003.054-.001.108-.015.162l-1.234 6.255a.56.56 0 0 1-.541.413l-7.402.036h-.003-7.402c-.257 0-.482-.171-.544-.414L.839 4.295a.53.53 0 0 1-.015-.166C.347 3.983 0 3.548 0 3.036c0-.632.528-1.145 1.178-1.145s1.178.514 1.178 1.145a1.13 1.13 0 0 1-.43.884L3.47 5.434c.39.383.932.602 1.486.602.655 0 1.28-.303 1.673-.81l2.538-3.272c-.213-.207-.345-.494-.345-.809C8.822.514 9.351 0 10 0s1.178.514 1.178 1.145c0 .306-.125.584-.327.79l.002.003 2.52 3.281c.393.512 1.02.818 1.677.818a2.11 2.11 0 0 0 1.481-.597l1.554-1.512c-.268-.21-.44-.531-.44-.892 0-.632.528-1.145 1.177-1.145S20 2.405 20 3.036c0 .498-.329.922-.787 1.079zm-1.369 8.575c0-.301-.251-.545-.561-.545H2.779c-.31 0-.561.244-.561.545V14c0 .301.251.546.561.546h14.505c.31 0 .561-.244.561-.546v-1.309z"}))),(0,e.createElement)("span",{className:"ml-1 text-white bg-[#FF9000] px-1.5 py-0.5 rounded leading-[13.31px] text-[11px] pt-[1px] pb-0.5 px-[5px]"},(0,ft.__)("Pro","wedocs")))),"article"===n&&(0,e.createElement)(Fl,null,(0,e.createElement)("span",{className:"group w-full flex items-center py-2 px-4 space-x-2.5 text-sm font-medium text-gray-700 hover:bg-gray-100 hover:text-gray-900 !shadow-none"},(0,e.createElement)("span",null,(0,ft.__)("Restrict editing for admin only","wedocs")),(0,e.createElement)("span",{className:"crown cursor-pointer relative text-white text-[10px] py-[3px] px-[5px] leading-none ml-2.5"},(0,e.createElement)("svg",{className:"crown-icon hover:fill-[#cf7500]",xmlns:"http://www.w3.org/2000/svg",width:"20",fill:"#ff9000",height:"15"},(0,e.createElement)("path",{d:"M19.213 4.116c.003.054-.001.108-.015.162l-1.234 6.255a.56.56 0 0 1-.541.413l-7.402.036h-.003-7.402c-.257 0-.482-.171-.544-.414L.839 4.295a.53.53 0 0 1-.015-.166C.347 3.983 0 3.548 0 3.036c0-.632.528-1.145 1.178-1.145s1.178.514 1.178 1.145a1.13 1.13 0 0 1-.43.884L3.47 5.434c.39.383.932.602 1.486.602.655 0 1.28-.303 1.673-.81l2.538-3.272c-.213-.207-.345-.494-.345-.809C8.822.514 9.351 0 10 0s1.178.514 1.178 1.145c0 .306-.125.584-.327.79l.002.003 2.52 3.281c.393.512 1.02.818 1.677.818a2.11 2.11 0 0 0 1.481-.597l1.554-1.512c-.268-.21-.44-.531-.44-.892 0-.632.528-1.145 1.177-1.145S20 2.405 20 3.036c0 .498-.329.922-.787 1.079zm-1.369 8.575c0-.301-.251-.545-.561-.545H2.779c-.31 0-.561.244-.561.545V14c0 .301.251.546.561.546h14.505c.31 0 .561-.244.561-.546v-1.309z"}))),(0,e.createElement)("span",{className:"!ml-1 text-white bg-[#FF9000] px-1.5 py-0.5 rounded leading-[13.31px] text-[11px] pt-[1px] pb-0.5 px-[5px]"},(0,ft.__)("Pro","wedocs"))))))})),wp.hooks.addFilter("wedocs_documentation_contributors","wedocs_documentation_contributors_callback",(function(){if(Ca())return(0,e.createElement)(Zl,null)})),wp.hooks.addFilter("wedocs_article_contributors","wedocs_article_contributors_callback",(function(){if(Ca())return(0,e.createElement)(Zl,null)})));(0,bt.render)((0,e.createElement)((()=>{let t=[{path:"/",component:Dl},{path:"settings",component:yl},{path:"section/:id",component:pi},{path:"migrate",component:_l},{path:"*",component:mi}];t=wp.hooks.applyFilters("wedocs_register_menu_routes",t);const r=function(e){return function(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,n=!r;let a;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=K;let i,d={},m=b(e.routes,a,void 0,d),p=e.basename||"/",f=o({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),g=null,v=new Set,x=null,y=null,E=null,k=null!=e.hydrationData,N=w(m,e.history.location,p),S=null;if(null==N){let t=pe(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=me(m);N=r,S={[n.id]:t}}let A,D,C=!(N.some((e=>e.route.lazy))||N.some((e=>e.route.loader))&&null==e.hydrationData),I={historyAction:e.history.action,location:e.history.location,matches:N,initialized:C,navigation:Y,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},L=s.Pop,T=!1,R=!1,_=!1,O=[],B=[],P=new Map,j=0,z=-1,F=new Map,q=new Set,H=new Map,U=new Map,W=new Map,V=!1;function G(e){I=o({},I,e),v.forEach((e=>e(I)))}function re(t,r){var n,a;let l,c=null!=I.actionData&&null!=I.navigation.formMethod&&ve(I.navigation.formMethod)&&"loading"===I.navigation.state&&!0!==(null==(n=t.state)?void 0:n._isRedirect);l=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:c?I.actionData:null;let d=r.loaderData?de(I.loaderData,r.loaderData,r.matches||[],r.errors):I.loaderData,u=I.blockers;u.size>0&&(u=new Map(u),u.forEach(((e,t)=>u.set(t,Q))));let p=!0===T||null!=I.navigation.formMethod&&ve(I.navigation.formMethod)&&!0!==(null==(a=t.state)?void 0:a._isRedirect);i&&(m=i,i=void 0),R||L===s.Pop||(L===s.Push?e.history.push(t,t.state):L===s.Replace&&e.history.replace(t,t.state)),G(o({},r,{actionData:l,loaderData:d,historyAction:L,location:t,initialized:!0,navigation:Y,revalidation:"idle",restoreScrollPosition:je(t,r.matches||I.matches),preventScrollReset:p,blockers:u})),L=s.Pop,T=!1,R=!1,_=!1,O=[],B=[]}async function ne(t,r,n){D&&D.abort(),D=null,L=t,R=!0===(n&&n.startUninterruptedRevalidation),function(e,t){if(x&&E){let r=Pe(e,t);x[r]=E()}}(I.location,I.matches),T=!0===(n&&n.preventScrollReset);let l=i||m,c=n&&n.overrideNavigation,u=w(l,r,p);if(!u){let e=pe(404,{pathname:r.pathname}),{matches:t,route:n}=me(l);return Be(),void re(r,{matches:t,loaderData:{},errors:{[n.id]:e}})}if(I.initialized&&!_&&(g=r,(f=I.location).pathname===g.pathname&&f.search===g.search&&(""===f.hash?""!==g.hash:f.hash===g.hash||""!==g.hash))&&!(n&&n.submission&&ve(n.submission.formMethod)))return void re(r,{matches:u});var f,g;D=new AbortController;let b,v,y=se(e.history,r,D.signal,n&&n.submission);if(n&&n.pendingError)v={[ue(u).route.id]:n.pendingError};else if(n&&n.submission&&ve(n.submission.formMethod)){let e=await async function(e,t,r,n,o){void 0===o&&(o={}),he();let i,l=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,r);G({navigation:l});let c=ke(n,t);if(c.route.action||c.route.lazy){if(i=await oe("action",e,c,n,d,a,p),e.signal.aborted)return{shortCircuited:!0}}else i={type:h.error,error:pe(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(we(i)){let e;return e=o&&null!=o.replace?o.replace:i.location===I.location.pathname+I.location.search,await ie(I,i,{submission:r,replace:e}),{shortCircuited:!0}}if(be(i)){let e=ue(n,c.route.id);return!0!==(o&&o.replace)&&(L=s.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:i.error}}}if(ge(i))throw pe(400,{type:"defer-action"});return{pendingActionData:{[c.route.id]:i.data}}}(y,r,n.submission,u,{replace:n.replace});if(e.shortCircuited)return;b=e.pendingActionData,v=e.pendingActionError,c=Se(r,n.submission),y=new Request(y.url,{signal:y.signal})}let{shortCircuited:k,loaderData:N,errors:S}=await async function(t,r,n,a,s,l,c,d,u){let f=a||Se(r,s),h=s||l||Ne(f),g=i||m,[b,w]=te(e.history,I,n,h,r,_,O,B,H,q,g,p,d,u);if(Be((e=>!(n&&n.some((t=>t.route.id===e)))||b&&b.some((t=>t.route.id===e)))),z=++j,0===b.length&&0===w.length){let e=Te();return re(r,o({matches:n,loaderData:{},errors:u||null},d?{actionData:d}:{},e?{fetchers:new Map(I.fetchers)}:{})),{shortCircuited:!0}}if(!R){w.forEach((e=>{let t=I.fetchers.get(e.key),r=Ae(void 0,t?t.data:void 0);I.fetchers.set(e.key,r)}));let e=d||I.actionData;G(o({navigation:f},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},w.length>0?{fetchers:new Map(I.fetchers)}:{}))}w.forEach((e=>{P.has(e.key)&&Ie(e.key),e.controller&&P.set(e.key,e.controller)}));let v=()=>w.forEach((e=>Ie(e.key)));D&&D.signal.addEventListener("abort",v);let{results:x,loaderResults:y,fetcherResults:E}=await le(I.matches,n,b,w,t);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",v),w.forEach((e=>P.delete(e.key)));let k=fe(x);if(k){if(k.idx>=b.length){let e=w[k.idx-b.length].key;q.add(e)}return await ie(I,k.result,{replace:c}),{shortCircuited:!0}}let{loaderData:N,errors:S}=ce(I,n,b,y,u,w,E,U);U.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&U.delete(t)}))}));let A=Te(),C=Me(z);return o({loaderData:N,errors:S},A||C||w.length>0?{fetchers:new Map(I.fetchers)}:{})}(y,r,u,c,n&&n.submission,n&&n.fetcherSubmission,n&&n.replace,b,v);k||(D=null,re(r,o({matches:u},b?{actionData:b}:{},{loaderData:N,errors:S})))}function ae(e){return I.fetchers.get(e)||J}async function ie(n,a,i){let{submission:c,fetcherSubmission:d,replace:m}=void 0===i?{}:i;a.revalidate&&(_=!0);let f=u(n.location,a.location,{_isRedirect:!0});if(l(f,"Expected a location on the redirect navigation"),r){let r=!1;if(a.reloadDocument)r=!0;else if(X.test(a.location)){const n=e.history.createURL(a.location);r=n.origin!==t.location.origin||null==M(n.pathname,p)}if(r)return void(m?t.location.replace(a.location):t.location.assign(a.location))}D=null;let h=!0===m?s.Replace:s.Push,{formMethod:g,formAction:b,formEncType:w}=n.navigation;!c&&!d&&g&&b&&w&&(c=Ne(n.navigation));let v=c||d;if(Z.has(a.status)&&v&&ve(v.formMethod))await ne(h,f,{submission:o({},v,{formAction:a.location}),preventScrollReset:T});else{let e=Se(f,c);await ne(h,f,{overrideNavigation:e,fetcherSubmission:d,preventScrollReset:T})}}async function le(t,r,n,o,s){let i=await Promise.all([...n.map((e=>oe("loader",s,e,r,d,a,p))),...o.map((t=>t.matches&&t.match&&t.controller?oe("loader",se(e.history,t.path,t.controller.signal),t.match,t.matches,d,a,p):{type:h.error,error:pe(404,{pathname:t.path})}))]),l=i.slice(0,n.length),c=i.slice(n.length);return await Promise.all([xe(t,n,l,l.map((()=>s.signal)),!1,I.loaderData),xe(t,o.map((e=>e.match)),c,o.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:i,loaderResults:l,fetcherResults:c}}function he(){_=!0,O.push(...Be()),H.forEach(((e,t)=>{P.has(t)&&(B.push(t),Ie(t))}))}function Ee(e,t,r){let n=ue(I.matches,t);Ce(e),G({errors:{[n.route.id]:r},fetchers:new Map(I.fetchers)})}function Ce(e){let t=I.fetchers.get(e);!P.has(e)||t&&"loading"===t.state&&F.has(e)||Ie(e),H.delete(e),F.delete(e),q.delete(e),I.fetchers.delete(e)}function Ie(e){let t=P.get(e);l(t,"Expected fetch controller: "+e),t.abort(),P.delete(e)}function Le(e){for(let t of e){let e=De(ae(t).data);I.fetchers.set(t,e)}}function Te(){let e=[],t=!1;for(let r of q){let n=I.fetchers.get(r);l(n,"Expected fetcher: "+r),"loading"===n.state&&(q.delete(r),e.push(r),t=!0)}return Le(e),t}function Me(e){let t=[];for(let[r,n]of F)if(n<e){let e=I.fetchers.get(r);l(e,"Expected fetcher: "+r),"loading"===e.state&&(Ie(r),F.delete(r),t.push(r))}return Le(t),t.length>0}function Re(e){I.blockers.delete(e),W.delete(e)}function _e(e,t){let r=I.blockers.get(e)||Q;l("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(I.blockers);n.set(e,t),G({blockers:n})}function Oe(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===W.size)return;W.size>1&&c(!1,"A router only supports one blocker at a time");let a=Array.from(W.entries()),[o,s]=a[a.length-1],i=I.blockers.get(o);return i&&"proceeding"===i.state?void 0:s({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function Be(e){let t=[];return U.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),U.delete(n))})),t}function Pe(e,t){return y&&y(e,t.map((e=>function(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}(e,I.loaderData))))||e.key}function je(e,t){if(x){let r=Pe(e,t),n=x[r];if("number"==typeof n)return n}return null}return A={get basename(){return p},get state(){return I},get routes(){return m},initialize:function(){return g=e.history.listen((t=>{let{action:r,location:n,delta:a}=t;if(V)return void(V=!1);c(0===W.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=Oe({currentLocation:I.location,nextLocation:n,historyAction:r});return o&&null!=a?(V=!0,e.history.go(-1*a),void _e(o,{state:"blocked",location:n,proceed(){_e(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){let e=new Map(I.blockers);e.set(o,Q),G({blockers:e})}})):ne(r,n)})),I.initialized||ne(s.Pop,I.location),A},subscribe:function(e){return v.add(e),()=>v.delete(e)},enableScrollRestoration:function(e,t,r){if(x=e,E=t,y=r||null,!k&&I.navigation===Y){k=!0;let e=je(I.location,I.matches);null!=e&&G({restoreScrollPosition:e})}return()=>{x=null,E=null,y=null}},navigate:async function t(r,n){if("number"==typeof r)return void e.history.go(r);let a=$(I.location,I.matches,p,f.v7_prependBasename,r,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:i,submission:l,error:c}=ee(f.v7_normalizeFormMethod,!1,a,n),d=I.location,m=u(I.location,i,n&&n.state);m=o({},m,e.history.encodeLocation(m));let h=n&&null!=n.replace?n.replace:void 0,g=s.Push;!0===h?g=s.Replace:!1===h||null!=l&&ve(l.formMethod)&&l.formAction===I.location.pathname+I.location.search&&(g=s.Replace);let b=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,w=Oe({currentLocation:d,nextLocation:m,historyAction:g});if(!w)return await ne(g,m,{submission:l,pendingError:c,preventScrollReset:b,replace:n&&n.replace});_e(w,{state:"blocked",location:m,proceed(){_e(w,{state:"proceeding",proceed:void 0,reset:void 0,location:m}),t(r,n)},reset(){let e=new Map(I.blockers);e.set(w,Q),G({blockers:e})}})},fetch:function(t,r,s,c){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");P.has(t)&&Ie(t);let u=i||m,h=$(I.location,I.matches,p,f.v7_prependBasename,s,r,null==c?void 0:c.relative),g=w(u,h,p);if(!g)return void Ee(t,r,pe(404,{pathname:h}));let{path:b,submission:v,error:x}=ee(f.v7_normalizeFormMethod,!0,h,c);if(x)return void Ee(t,r,x);let y=ke(g,b);T=!0===(c&&c.preventScrollReset),v&&ve(v.formMethod)?async function(t,r,n,s,c,u){if(he(),H.delete(t),!s.route.action&&!s.route.lazy){let e=pe(405,{method:u.formMethod,pathname:n,routeId:r});return void Ee(t,r,e)}let f=function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,I.fetchers.get(t));I.fetchers.set(t,f),G({fetchers:new Map(I.fetchers)});let h=new AbortController,g=se(e.history,n,h.signal,u);P.set(t,h);let b=j,v=await oe("action",g,s,c,d,a,p);if(g.signal.aborted)return void(P.get(t)===h&&P.delete(t));if(we(v)){if(P.delete(t),z>b){let e=De(void 0);return I.fetchers.set(t,e),void G({fetchers:new Map(I.fetchers)})}{q.add(t);let e=Ae(u);return I.fetchers.set(t,e),G({fetchers:new Map(I.fetchers)}),ie(I,v,{fetcherSubmission:u})}}if(be(v))return void Ee(t,r,v.error);if(ge(v))throw pe(400,{type:"defer-action"});let x=I.navigation.location||I.location,y=se(e.history,x,h.signal),E=i||m,k="idle"!==I.navigation.state?w(E,I.navigation.location,p):I.matches;l(k,"Didn't find any matches after fetcher action");let N=++j;F.set(t,N);let S=Ae(u,v.data);I.fetchers.set(t,S);let[A,C]=te(e.history,I,k,u,x,_,O,B,H,q,E,p,{[s.route.id]:v.data},void 0);C.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=I.fetchers.get(t),n=Ae(void 0,r?r.data:void 0);I.fetchers.set(t,n),P.has(t)&&Ie(t),e.controller&&P.set(t,e.controller)})),G({fetchers:new Map(I.fetchers)});let T=()=>C.forEach((e=>Ie(e.key)));h.signal.addEventListener("abort",T);let{results:M,loaderResults:R,fetcherResults:W}=await le(I.matches,k,A,C,y);if(h.signal.aborted)return;h.signal.removeEventListener("abort",T),F.delete(t),P.delete(t),C.forEach((e=>P.delete(e.key)));let V=fe(M);if(V){if(V.idx>=A.length){let e=C[V.idx-A.length].key;q.add(e)}return ie(I,V.result)}let{loaderData:Z,errors:Y}=ce(I,I.matches,A,R,void 0,C,W,U);if(I.fetchers.has(t)){let e=De(v.data);I.fetchers.set(t,e)}let J=Me(N);"loading"===I.navigation.state&&N>z?(l(L,"Expected pending action"),D&&D.abort(),re(I.navigation.location,{matches:k,loaderData:Z,errors:Y,fetchers:new Map(I.fetchers)})):(G(o({errors:Y,loaderData:de(I.loaderData,Z,k,Y)},J||C.length>0?{fetchers:new Map(I.fetchers)}:{})),_=!1)}(t,r,b,y,g,v):(H.set(t,{routeId:r,path:b}),async function(t,r,n,o,s,i){let c=I.fetchers.get(t),u=Ae(i,c?c.data:void 0);I.fetchers.set(t,u),G({fetchers:new Map(I.fetchers)});let m=new AbortController,f=se(e.history,n,m.signal);P.set(t,m);let h=j,g=await oe("loader",f,o,s,d,a,p);if(ge(g)&&(g=await ye(g,f.signal,!0)||g),P.get(t)===m&&P.delete(t),f.signal.aborted)return;if(we(g)){if(z>h){let e=De(void 0);return I.fetchers.set(t,e),void G({fetchers:new Map(I.fetchers)})}return q.add(t),void await ie(I,g)}if(be(g)){let e=ue(I.matches,r);return I.fetchers.delete(t),void G({fetchers:new Map(I.fetchers),errors:{[e.route.id]:g.error}})}l(!ge(g),"Unhandled fetcher deferred data");let b=De(g.data);I.fetchers.set(t,b),G({fetchers:new Map(I.fetchers)})}(t,r,b,y,g,v))},revalidate:function(){he(),G({revalidation:"loading"}),"submitting"!==I.navigation.state&&("idle"!==I.navigation.state?ne(L||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation}):ne(I.historyAction,I.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ae,deleteFetcher:Ce,dispose:function(){g&&g(),v.clear(),D&&D.abort(),I.fetchers.forEach(((e,t)=>Ce(t))),I.blockers.forEach(((e,t)=>Re(t)))},getBlocker:function(e,t){let r=I.blockers.get(e)||Q;return W.get(e)!==t&&W.set(e,t),r},deleteBlocker:Re,_internalFetchControllers:P,_internalActiveDeferreds:U,_internalSetRoutes:function(e){d={},i=b(e,a,void 0,d)}},A}({basename:void 0,future:rt({},void 0,{v7_prependBasename:!0}),history:(t={window:void 0},void 0===t&&(t={}),f((function(e,t){let{pathname:r="/",search:n="",hash:a=""}=p(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),u("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:m(t))}),(function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),t)),hydrationData:at(),routes:e,mapRouteProperties:tt}).initialize();var t}(et((0,e.createElement)(e.Fragment,null,t&&t.map(((t,r)=>(0,e.createElement)(Ke,{key:r,path:t.path,element:(0,e.createElement)(t.component,null)}))))));return(0,e.createElement)(n,null,(0,e.createElement)(Qe,{router:r}))}),null),document.getElementById("wedocs-app")),function(e){const t=jQuery,r=t("#toplevel_page_"+e),n=window.location.href;r.on("click","a",(function(){const e=t(this);t("ul.wp-submenu li",r).removeClass("current"),e.hasClass("wp-has-submenu")?t("li.wp-first-item",r).addClass("current"):e.parents("li").addClass("current")})),t("ul.wp-submenu a",r).each((function(e,r){t(r).attr("href")===n&&t(r).parent().addClass("current")}))}("wedocs")})()})();