@directus/app 9.17.1 → 9.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{active-line.5c42d9f0.js → active-line.135641ca.js} +1 -1
- package/dist/assets/{apl.025ceee0.js → apl.9e95400b.js} +1 -1
- package/dist/assets/{asciiarmor.e1b5c1a3.js → asciiarmor.e53bc239.js} +1 -1
- package/dist/assets/{asn.1.bfc58a58.js → asn.1.8d915c0c.js} +1 -1
- package/dist/assets/{asterisk.e714dc83.js → asterisk.fa6be1a0.js} +1 -1
- package/dist/assets/{autorefresh.cc507a91.js → autorefresh.da8f1d1d.js} +1 -1
- package/dist/assets/{brainfuck.6e87069f.js → brainfuck.af5df7f4.js} +1 -1
- package/dist/assets/{clike.9663d2b3.js → clike.ee280809.js} +1 -1
- package/dist/assets/{clojure.28ee7a22.js → clojure.a146bf23.js} +1 -1
- package/dist/assets/{cmake.aee3c431.js → cmake.6b59d5a5.js} +1 -1
- package/dist/assets/{cobol.a04dd0ed.js → cobol.08192929.js} +1 -1
- package/dist/assets/{coffeescript.3fea5290.js → coffeescript.9e2efa26.js} +1 -1
- package/dist/assets/{commonlisp.030b0e58.js → commonlisp.78d28584.js} +1 -1
- package/dist/assets/{crystal.196d940f.js → crystal.eb2634a7.js} +1 -1
- package/dist/assets/{css.585f2cb0.js → css.a2d713ed.js} +1 -1
- package/dist/assets/{cypher.35036411.js → cypher.c949e68a.js} +1 -1
- package/dist/assets/{d.93cfb299.js → d.2a37c670.js} +1 -1
- package/dist/assets/{dart.478f3544.js → dart.c6dbedeb.js} +1 -1
- package/dist/assets/{diff.5cb6e186.js → diff.8be02862.js} +1 -1
- package/dist/assets/{django.8f238632.js → django.ee5dacbf.js} +1 -1
- package/dist/assets/{dockerfile.8f0c0a1e.js → dockerfile.2cbe1412.js} +1 -1
- package/dist/assets/{dtd.989f5165.js → dtd.613366e7.js} +1 -1
- package/dist/assets/{dylan.dea935ad.js → dylan.213591bc.js} +1 -1
- package/dist/assets/{ebnf.4647a1c0.js → ebnf.f10d9554.js} +1 -1
- package/dist/assets/{ecl.9a4cb085.js → ecl.ea8251b5.js} +1 -1
- package/dist/assets/{eiffel.e0b19a69.js → eiffel.994a28c8.js} +1 -1
- package/dist/assets/{elm.391e151c.js → elm.62eeed51.js} +1 -1
- package/dist/assets/{erlang.7fcf78c6.js → erlang.3768ffe4.js} +1 -1
- package/dist/assets/{factor.12bfd34d.js → factor.25b7e5ca.js} +1 -1
- package/dist/assets/{fcl.bfa3e74f.js → fcl.4e536c5f.js} +1 -1
- package/dist/assets/{forth.0ff9d68f.js → forth.60806310.js} +1 -1
- package/dist/assets/{fortran.6a74d293.js → fortran.59922aba.js} +1 -1
- package/dist/assets/{gas.0017dbfc.js → gas.675738c7.js} +1 -1
- package/dist/assets/{gfm.0fc0d1d3.js → gfm.2c1ac50e.js} +1 -1
- package/dist/assets/{gherkin.782ca77e.js → gherkin.774e36f6.js} +1 -1
- package/dist/assets/{go.34e44348.js → go.bff42e4e.js} +1 -1
- package/dist/assets/{groovy.2b36f231.js → groovy.2178a0f1.js} +1 -1
- package/dist/assets/{haml.812479fd.js → haml.315dd2c0.js} +1 -1
- package/dist/assets/{handlebars.2683bde5.js → handlebars.986c86d4.js} +1 -1
- package/dist/assets/{haskell-literate.699b88bd.js → haskell-literate.770d661e.js} +1 -1
- package/dist/assets/{haskell.6faba30b.js → haskell.46e5ce8f.js} +1 -1
- package/dist/assets/{haxe.23162719.js → haxe.d48c4abd.js} +1 -1
- package/dist/assets/{htmlembedded.6bb4b539.js → htmlembedded.f6dde48f.js} +1 -1
- package/dist/assets/{htmlmixed.b4abda11.js → htmlmixed.4a641ad9.js} +1 -1
- package/dist/assets/{http.2093b31c.js → http.3015a70d.js} +1 -1
- package/dist/assets/{idl.cc7f893d.js → idl.f2f96147.js} +1 -1
- package/dist/assets/{index.a47d735b.js → index.0b247af5.js} +1 -1
- package/dist/assets/{index.0c64ba3f.css → index.3ad998ab.css} +1 -1
- package/dist/assets/{index.2c592891.entry.js → index.c02613ac.entry.js} +5 -5
- package/dist/assets/{input-rich-text-html.e34edefb.js → input-rich-text-html.f0b71db8.js} +1 -1
- package/dist/assets/{javascript-hint.973e4b78.js → javascript-hint.da53c929.js} +1 -1
- package/dist/assets/{javascript.0f987dbc.js → javascript.e7187534.js} +1 -1
- package/dist/assets/{jinja2.1714c6b4.js → jinja2.b92b3bf4.js} +1 -1
- package/dist/assets/{jsx.0436090e.js → jsx.cd35bc1f.js} +1 -1
- package/dist/assets/{julia.17bcd86a.js → julia.f2e27ad8.js} +1 -1
- package/dist/assets/{livescript.e4f13644.js → livescript.f9157170.js} +1 -1
- package/dist/assets/{lua.f648e91e.js → lua.fd37e5a7.js} +1 -1
- package/dist/assets/{mark-selection.86c6319e.js → mark-selection.5ffc9e99.js} +1 -1
- package/dist/assets/{match-highlighter.a4271354.js → match-highlighter.55770437.js} +1 -1
- package/dist/assets/{mathematica.52dc4105.js → mathematica.5933a7bf.js} +1 -1
- package/dist/assets/{mbox.b896837f.js → mbox.48b2cada.js} +1 -1
- package/dist/assets/{mirc.10bbeea1.js → mirc.577ffc8b.js} +1 -1
- package/dist/assets/{mllike.191004b8.js → mllike.71874c4d.js} +1 -1
- package/dist/assets/{modelica.bbfd56e6.js → modelica.910d3adb.js} +1 -1
- package/dist/assets/{mscgen.c92fd74a.js → mscgen.12b68d55.js} +1 -1
- package/dist/assets/{multiplex.34a284fc.js → multiplex.c53fe1f2.js} +1 -1
- package/dist/assets/{mumps.37f022fb.js → mumps.0ffff562.js} +1 -1
- package/dist/assets/{nginx.baee9366.js → nginx.61bbdd3d.js} +1 -1
- package/dist/assets/{nsis.7f12c9dc.js → nsis.91b5976a.js} +1 -1
- package/dist/assets/{ntriples.018e6112.js → ntriples.4da65405.js} +1 -1
- package/dist/assets/{octave.372364c9.js → octave.4caf8800.js} +1 -1
- package/dist/assets/{overlay.0d815e1c.js → overlay.6ab0a439.js} +1 -1
- package/dist/assets/{oz.7497f31b.js → oz.f353e7c0.js} +1 -1
- package/dist/assets/{pascal.42e2a8e0.js → pascal.81884765.js} +1 -1
- package/dist/assets/{pegjs.7318728b.js → pegjs.9b05a647.js} +1 -1
- package/dist/assets/{perl.cb43c987.js → perl.1864a477.js} +1 -1
- package/dist/assets/{php.04bf2132.js → php.005144e0.js} +1 -1
- package/dist/assets/{pig.4235f7d9.js → pig.849ddb42.js} +1 -1
- package/dist/assets/{powershell.f967c618.js → powershell.bb5a2d18.js} +1 -1
- package/dist/assets/{properties.1a0b81f0.js → properties.fdd23eab.js} +1 -1
- package/dist/assets/{protobuf.b8759181.js → protobuf.da0cb1b3.js} +1 -1
- package/dist/assets/{pug.902e44de.js → pug.a693bc7a.js} +1 -1
- package/dist/assets/{puppet.52d18e89.js → puppet.da6ba66e.js} +1 -1
- package/dist/assets/{python.50eb8730.js → python.03cf4e30.js} +1 -1
- package/dist/assets/{q.9f996c87.js → q.bb726ddc.js} +1 -1
- package/dist/assets/{r.b44dc9fe.js → r.d66588c8.js} +1 -1
- package/dist/assets/{rpm.5c635cb3.js → rpm.d7012013.js} +1 -1
- package/dist/assets/{rst.3f01e667.js → rst.56d68830.js} +1 -1
- package/dist/assets/{ruby.77181664.js → ruby.6db5c270.js} +1 -1
- package/dist/assets/{rust.611a3c67.js → rust.8f526a93.js} +1 -1
- package/dist/assets/{sas.3da7c95a.js → sas.05b84ccc.js} +1 -1
- package/dist/assets/{sass.b73c972a.js → sass.b3a2e00a.js} +1 -1
- package/dist/assets/{scheme.b8d740c2.js → scheme.f2ccc6ec.js} +1 -1
- package/dist/assets/{shell.7de892e9.js → shell.35fbb76b.js} +1 -1
- package/dist/assets/{show-hint.7942c136.js → show-hint.2f9efc42.js} +1 -1
- package/dist/assets/{sieve.d0b23d2d.js → sieve.b326a040.js} +1 -1
- package/dist/assets/{slim.06a7eabb.js → slim.cdf5ce1a.js} +1 -1
- package/dist/assets/{smalltalk.4a61691e.js → smalltalk.28f25b00.js} +1 -1
- package/dist/assets/{smarty.dd10b12f.js → smarty.3ffc5d45.js} +1 -1
- package/dist/assets/{solr.44aceea2.js → solr.bf049032.js} +1 -1
- package/dist/assets/{soy.556b0f73.js → soy.97d895d7.js} +1 -1
- package/dist/assets/{sparql.aa44f70b.js → sparql.f7c11eb4.js} +1 -1
- package/dist/assets/{spreadsheet.f8b42bd2.js → spreadsheet.583570fc.js} +1 -1
- package/dist/assets/{sql.90fc9d3c.js → sql.581815c1.js} +1 -1
- package/dist/assets/{stex.ab2d9a38.js → stex.6a9989ca.js} +1 -1
- package/dist/assets/{stylus.f097fe6e.js → stylus.6b1b2f94.js} +1 -1
- package/dist/assets/{swift.2c94ae8d.js → swift.b1b97d51.js} +1 -1
- package/dist/assets/{tcl.a233f5ee.js → tcl.9e42954d.js} +1 -1
- package/dist/assets/{textile.4e44687a.js → textile.d8117534.js} +1 -1
- package/dist/assets/{tiddlywiki.81993c15.js → tiddlywiki.e9e030d1.js} +1 -1
- package/dist/assets/{tiki.5fba512d.js → tiki.627c91cc.js} +1 -1
- package/dist/assets/{toml.0a35f429.js → toml.ada24f3a.js} +1 -1
- package/dist/assets/{tornado.5d61b40e.js → tornado.c72c7dd4.js} +1 -1
- package/dist/assets/{troff.ff3d44c9.js → troff.11b7056e.js} +1 -1
- package/dist/assets/{ttcn-cfg.46e427d6.js → ttcn-cfg.afb1561e.js} +1 -1
- package/dist/assets/{ttcn.f456167c.js → ttcn.78233af9.js} +1 -1
- package/dist/assets/{turtle.1a23c99d.js → turtle.77f61426.js} +1 -1
- package/dist/assets/{twig.e3c621bb.js → twig.84e27436.js} +1 -1
- package/dist/assets/{vb.dcd27019.js → vb.11aab2ba.js} +1 -1
- package/dist/assets/{vbscript.46374125.js → vbscript.11dc0996.js} +1 -1
- package/dist/assets/{velocity.304c4a9a.js → velocity.8f652837.js} +1 -1
- package/dist/assets/{verilog.6a207823.js → verilog.9b0b4ff6.js} +1 -1
- package/dist/assets/{vhdl.1473d302.js → vhdl.1eeb9dd1.js} +1 -1
- package/dist/assets/{vue.1240f8e1.js → vue.853d1839.js} +1 -1
- package/dist/assets/{wast.070e9cb4.js → wast.9145f947.js} +1 -1
- package/dist/assets/{webidl.81afb130.js → webidl.3cd27141.js} +1 -1
- package/dist/assets/{xquery.58d37345.js → xquery.0d6b6717.js} +1 -1
- package/dist/assets/{yacas.be272580.js → yacas.5ee3e34b.js} +1 -1
- package/dist/assets/{yaml-frontmatter.4d2a9afa.js → yaml-frontmatter.995d4736.js} +1 -1
- package/dist/assets/{yaml.1779a883.js → yaml.0426b27a.js} +1 -1
- package/dist/assets/{z80.f2bb6986.js → z80.415e79a5.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{defineStore as Pu,storeToRefs as Dl,createPinia as eR}from"./pinia.ee5b7a45.entry.js";import{w as Li,v as Ff,a as Qh,u as c4,b as tR,T as cd,c as nb,d as u4,e as nR}from"./vue.runtime.esm-bundler.61bedc6f.js";import{createI18n as iR,useI18n as yn}from"./vue-i18n.ab96dd58.entry.js";import{s as jd,r as ze,d as $t,c as Ee,a as Y,o as G,b as _e,w as R,e as F,f as Zn,i as Il,g as d4,p as X1,n as Jv,h as Lo,j as zr,k as Lc,l as ke,t as he,m as La,q as di,u as pi,v as dn,x as Me,y as Je,z as wn,A as Fr,B as Ca,C as ja,D as Io,E as Ne,F as w8,G as gn,H as ud,I as V,J as vi,K as wr,L as WC,M as ya,N as _a,O as rR,P as Kr,T as ib,Q as f4,R as aR,S as oR,U as GC,V as YC,W as XC}from"./runtime-core.esm-bundler.32cac88a.js";import{l as lt,u as qr,a as rh,d as em,b as Ns,g as hc,c as ga,e as KC,f as sR,S as lR,A as cR,E as uR,h as dR,i as K0,j as Jc,k as Vr,m as fR,n as p4,o as h4,p as Vd}from"./use-sync.3af8e920.js";import{onBeforeRouteLeave as m4,useRouter as qa,RouterView as pR,useRoute as Vf,onBeforeRouteUpdate as rb,createRouter as hR,createWebHistory as mR,useLink as ZC}from"./vue-router.4ad81e1d.entry.js";function ab(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in e)){var a=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const vR=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerpolicy&&(o.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?o.credentials="include":a.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}};vR();const gR="9.17.1",Pc=Pu({id:"appStore",state:()=>({sidebarOpen:window.innerWidth>=1430,notificationsDrawerOpen:!1,fullScreen:!1,hydrated:!1,hydrating:!1,error:null,authenticated:!1,accessTokenExpiry:0,basemap:"OpenStreetMap"})}),yR="modulepreload",_w={},_R="",ct=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${_R}${i}`,i in _w)return;_w[i]=!0;const a=i.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${o}`))return;const r=document.createElement("link");if(r.rel=a?"stylesheet":yR,a||(r.as="script",r.crossOrigin=""),r.href=i,document.head.appendChild(r),a)return new Promise((s,l)=>{r.addEventListener("load",s),r.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},bR=jd([]),JC=jd([]);function v4(){return{displays:JC,displaysRaw:bR}}function m1(e){return e?JC.value.find(({id:t})=>t===e):void 0}const wR=jd([]),QC=jd([]);function tm(){return{interfaces:QC,interfacesRaw:wR}}function Iu(e){return e?QC.value.find(({id:t})=>t===e):void 0}const xR=jd([]),eE=jd([]);function Qv(){return{panels:eE,panelsRaw:xR}}function tE(e){return e?eE.value.find(({id:t})=>t===e):void 0}const kR=jd([]),nE=jd([]);function nm(){return{layouts:nE,layoutsRaw:kR}}function bw(e){return e?nE.value.find(({id:t})=>t===e):void 0}const SR=jd([]),CR=jd([]);function g4(){return{modules:CR,modulesRaw:SR}}var ER={"en-US":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!0}},"bg-BG":{short:{year:"numeric",month:"numeric",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"cs-CZ":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"de-DE":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"fr-FR":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"it-IT":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"ms-MY":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"nl-NL":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"pl-PL":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"pt-BR":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"ru-RU":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"zh-CN":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!0}}},AR={"en-US":{currency:{style:"currency",currency:"USD",notation:"standard"},decimal:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2},percent:{style:"percent",useGrouping:!1}}},pe={identifier:"Identifier",avatar:"Avatar",application:"Application",default_provider:"Default",method:"Method",published:"Published",draft:"Draft",archived:"Archived",modules:"Modules",module_bar:"Module Bar",logs:"Logs",reset_width:"Reset Width",tile_size:"Tile Size",edit_field:"Edit Field",conditions:"Conditions",location:"Location",condition_rules:"Condition Rules",input:"Input",maps:"Maps",switch_user:"Switch User",item_creation:"Item Creation",item_revision:"Item Revision",enter_a_name:"Enter a Name...",duplicate_field:"Duplicate Field",half_width:"Half Width",full_width:"Full Width",group:"Group",export_items:"Export Items",and:"And",or:"Or",init:"Init",dataset_too_large_currently_showing_n_items:"Dataset is too large. Currently showing the first {n} items.",modifier:"Modifier",custom:"Custom",hook:"Hook",fill_width:"Fill Width",field_name_translations:"Field Name Translations",enter_password_to_enable_tfa:"Enter your password to enable Two-Factor Authentication",add_field:"Add Field",role_name:"Role Name",branch:"Branch",leaf:"Leaf",indeterminate:"Indeterminate",edit_collection:"Edit Collection",exclusive:"Exclusive",children:"Children",db_only_click_to_configure:"Database Only: Click to Configure",show_active_items:"Show Active Items",show_archived_items:"Show Archived Items",show_all_items:"Show All Items",edited:"Value Edited",required:"Required",required_for_app_access:"Required for App Access",requires_value:"Requires value",create_preset:"Create Preset",create_panel:"Create Panel",create_role:"Create Role",create_user:"Create User",message:"Message",delete_panel:"Delete Panel",create_webhook:"Create Webhook",create_translation_string:"Create Translation String",no_translation_string:"No Translation Strings",no_translation_string_copy:"There are no translation strings yet.",translation_string_key_placeholder:"Translation string key...",translation_string_translations_placeholder:"Add a new translation",edit_translation_string:"Edit Translation String",delete_translation_string_copy:'Are you sure you want to delete the translation string "{key}"? This action can not be undone.',invite_users:"Invite Users",invite:"Invite",email_already_invited:'Email "{email}" has already been invited',subject:"Subject",inbox:"Inbox",emails:"Emails",connection_excellent:"Excellent Connection",connection_good:"Good Connection",connection_fair:"Fair Connection",connection_poor:"Poor Connection",primary:"Primary",rename_folder:"Rename Folder",delete_folder:"Delete Folder",prefix:"Prefix",suffix:"Suffix",reset_bookmark:"Reset Bookmark",update_bookmark:"Update Bookmark",delete_bookmark:"Delete Bookmark",delete_bookmark_copy:'Are you sure you want to delete the "{bookmark}" bookmark? This action cannot be undone.',delete_personal_bookmark:"Delete Personal Bookmark",delete_role_bookmark:"Delete Role Bookmark",delete_global_bookmark:"Delete Global Bookmark",logoutReason:{SIGN_OUT:"Signed out",SESSION_EXPIRED:"Session expired"},public_label:"Public",public_description:"Controls what API data is available without authenticating.",admin_description:"Initial administrative role with unrestricted App/API access.",not_allowed:"Not Allowed",directus_version:"Directus Version",node_version:"Node Version",node_uptime:"Node Uptime",os_type:"OS Type",os_version:"OS Version",os_uptime:"OS Uptime",os_totalmem:"OS Memory",archive:"Archive",archive_confirm:"Are you sure you want to archive this item?",archive_confirm_count:"No Items Selected | Are you sure you want to archive this item? | Are you sure you want to archive these {count} items?",reset_system_permissions_to:"Reset System Permissions to:",reset_system_permissions_copy:"This action will overwrite any custom permissions you may have applied to the system collections. Are you sure?",the_following_are_minimum_permissions:'The following are minimum permissions required when "App Access" is enabled. You can extend permissions beyond this, but not below.',app_access_minimum:"App Access Minimum",recommended_defaults:"Recommended Defaults",unarchive:"Unarchive",unarchive_confirm:"Are you sure you want to unarchive this item?",nested_files_folders_will_be_moved:"Nested files and folders will be moved one level up.",validation_errors_notice:"The following fields have invalid values:",validationError:{eq:"Value has to be {valid}",neq:"Value can't be {invalid}",in:"Value has to be one of {valid}",nin:"Value can't be one of {invalid}",contains:"Value has to contain {substring}",ncontains:"Value can't contain {substring}",gt:"Value has to be greater than {valid}",gte:"Value has to be greater than or equal to {valid}",lt:"Value has to be less than {valid}",lte:"Value has to be less than or equal to {valid}",empty:"Value has to be empty",nempty:"Value can't be empty",null:"Value has to be null",nnull:"Value can't be null",required:"Value is required",unique:"Value has to be unique",regex:"Value doesn't have the correct format"},all_access:"All Access",no_access:"No Access",use_custom:"Use Custom",nullable:"Nullable",allow_null_value:"Allow NULL value",allow_multiple:"Allow Multiple",allow_multiple_to_be_open:"Allow Multiple to be Opened",enter_value_to_replace_nulls:"Please enter a new value to replace any NULLs currently within this field.",field_standard:"Standard",field_presentation:"Presentation & Aliases",field_file:"Single File",field_files:"Multiple Files",field_m2o:"M2O Relationship",field_m2a:"M2A Relationship",field_o2m:"O2M Relationship",field_m2m:"M2M Relationship",field_translations:"Translations",field_group:"Field Group",item_permissions:"Item Permissions",field_permissions:"Field Permissions",field_validation:"Field Validation",field_presets:"Field Presets",permissions_for_role:"Items the {role} Role can {action}.",fields_for_role:"Fields the {role} Role can {action}.",validation_for_role:"Field {action} rules the {role} Role must obey.",presets_for_role:"Field value defaults for the {role} Role.",presentation_and_aliases:"Presentation & Aliases",revision_post_create:"Here is what this item looked like when it was created.",revision_post_update:"Here is what this item looked like after the update.",changes_made:"Below are the specific changes made in this revision.",no_relational_data:"Keep in mind that relational data is not included here.",junction_field_location:"Junction Fields Location",top:"Top",bottom:"Bottom",hide_field:"Hide Field",hide_field_on_detail:"Hide Field on Detail",show_field_on_detail:"Show Field on Detail",delete_field:"Delete Field",fields_and_layout:"Fields & Layout",field_create_success:'Created Field: "{field}"',field_update_success:'Updated Field: "{field}"',duplicate_where_to:"Where would you like to duplicate this field to?",language:"Language",language_placeholder:"Select a language...",aggregate_function:"Aggregate Function",aggregate_precision:"Aggregate Precision",group_aggregation:"Group Aggregation",group_precision:"Group Precision",global:"Global",admins_have_all_permissions:"Admins have all permissions",camera:"Camera",show_zero:"Show Zero",create_in_advanced_field_creation_mode:"Create Field in Advanced Mode",continue_in_advanced_field_creation_mode:"Continue in Advanced Field Creation Mode",validation:"Validation",sum:"Sum",sum_distinct:"Sum Distinct",avg:"Average",avg_distinct:"Average Distinct",count:"Count",count_distinct:"Count Distinct",min:"Min",max:"Max",exposure:"Exposure",shutter:"Shutter",iso:"ISO",focal_length:"Focal Length",schema_setup_key:"This field's database column name and API key",create_field:"Create Field",creating_new_field:"New Field ({collection})",field_in_collection:"{field} ({collection})",reset_page_preferences:"Reset Page Preferences",hidden_field:"Hidden Field",hidden_on_detail:"Hidden on Detail",disabled_editing_value:"Disable editing value",key:"Key",alias:"Alias",bigInteger:"Big Integer",boolean:"Boolean",date:"Date",date_range:"Date Range",datetime:"DateTime",dateTime:"DateTime",precision:"Precision",decimal:"Decimal",float:"Float",integer:"Integer",json:"JSON",xml:"XML",string:"String",text:"Text",time:"Time",timestamp:"Timestamp",uuid:"UUID",hash:"Hash",geometry:"Geometry (All)","geometry.Point":"Point","geometry.LineString":"LineString","geometry.Polygon":"Polygon","geometry.MultiPoint":"MultiPoint","geometry.MultiLineString":"MultiLineString","geometry.MultiPolygon":"MultiPolygon",not_available_for_type:"Not Available for this Type",create_translations:"Create Translations",auto_refresh:"Auto Refresh",refresh_interval:"Refresh Interval",no_refresh:"Do not refresh",refresh_interval_seconds:"Refresh Instantly | Every Second | Every {seconds} Seconds",refresh_interval_minutes:"Every Minute | Every {minutes} Minutes",auto_generate:"Auto-Generate",this_will_auto_setup_fields_relations:"This will automatically setup all required fields and relations.",click_here:"Click here",to_manually_setup_translations:"to manually setup translations.",click_to_manage_translated_fields:"There are no translated fields yet. Click here to create them. | There is one translated field. Click here to manage it. | There are {count} translated fields. Click here to manage them.",fields_group:"Fields Group",no_collections_found:"No collections found.",new_data_alert:"The following will be created within your Data Model:",search_collection:"Search Collection...",new_field:"New Field",new_collection:"New Collection",add_m2o_to_collection:'Add M2O to "{collection}"',add_o2m_to_collection:'Add O2M to "{collection}"',add_m2m_to_collection:'Add M2M to "{collection}"',choose_a_type:"Choose a Type...",determined_by_relationship:"Determined by Relationship",add_note:"Add a helpful note for users...",add_link:"Add Link",custom_link:"Custom Link",default_value:"Default Value",standard_field:"Standard Field",single_file:"Single File",multiple_files:"Multiple Files",m2o_relationship:"Many to One Relationship",o2m_relationship:"One to Many Relationship",m2m_relationship:"Many to Many Relationship",m2a_relationship:"Many to Any Relationship",invalid_item:"Invalid Item",next:"Next",field_name:"Field Name",translations:"Translations",no_translations:"No Translations",left_to_right:"Left to Right",right_to_left:"Right to Left",note:"Note",enter_a_value:"Enter a value...",enter_a_placeholder:"Enter a placeholder...",length:"Length",soft_length:"Soft Limit",precision_scale:"Precision & Scale",readonly:"Readonly",unique:"Unique",updated_on:"Updated On",updated_by:"Updated By",primary_key:"Primary Key",foreign_key:"Foreign Key",finish_setup:"Finish Setup",dismiss:"Dismiss",toggle_raw_editor:"Toggle Raw Editor",raw_editor_placeholder:"{'{'}{'{'}$trigger.payload.example{'}'}{'}'}",raw_value:"Raw value",copy_raw_value:"Copy Raw Value",copy_raw_value_success:"Copied",copy_raw_value_fail:"Copy Failed",paste_raw_value:"Paste Raw Value",paste_raw_value_success:"Pasted",paste_raw_value_fail:"Paste Failed",view_raw_value:"View Raw Value",edit_raw_value:"Edit Raw Value",enter_raw_value:"Enter raw value...",clear_value:"Clear Value",clear_changes:"Clear Changes",reset_to_default:"Reset to Default",undo_changes:"Undo Changes",notifications:"Notifications",show_all_activity:"Show All Activity",page_not_found:"Page Not Found",page_not_found_body:"The page you are looking for doesn't seem to exist.",confirm_revert:"Confirm Revert",confirm_revert_body:"This will revert the item to the selected state.",display:"Display",settings_update_success:"Settings updated",title:"Title",revision_delta_created:"Created",revision_delta_created_externally:"Created Externally",revision_delta_updated:"Updated 1 Field | Updated {count} Fields",revision_delta_deleted:"Deleted",revision_delta_reverted:"Reverted",revision_delta_update_message:"This field has been updated but its value is being concealed for security reasons.",revision_delta_other:"Revision",revision_delta_by:"{date} by {user}",presentation_text_values_cannot_be_reimported:"Uses presentation text, values can not be re-imported.",download_page_as_csv:"Download Page as CSV",private_user:"Private User",creation_preview:"Creation Preview",revision_preview:"Revision Preview",updates_made:"Updates Made",leave_comment:"Leave a comment...",post_comment_success:"Comment posted",post_comment_updated:"Comment updated",item_create_success:"Item Created | Items Created",item_update_success:"Item Updated | Items Updated",item_delete_success:"Item Deleted | Items Deleted",this_collection:"This Collection",related_collection:"Related Collection",related_collections:"Related Collections",translations_collection:"Translation Collection",languages_collection:"Languages Collection",import_data_input_placeholder:"CSV or JSON...",import_data_button:"Start Import",import_data_indeterminate:"Importing Data...",import_data_success:"Data successfully imported from {filename}",import_data_error:"This file's data structure doesn't match the collection.",label_import:"Import",label_export:"Export",import_export:"Import / Export",format:"Format",last_page:"Last Page",last_access:"Last Access",fill_template:"Fill with Template Value",a_unique_table_name:"A unique table name...",a_unique_column_name:"A unique column name...",enable_custom_values:"Enable custom values",submit:"Submit",move_to_folder:"Move to Folder",move:"Move",system:"System",add_field_related:"Add Field to Related Collection",interface_label:"Interface",today:"Today",yesterday:"Yesterday",delete_comment:"Delete Comment",delete_share:"Delete Share",functions:{year:"Year",month:"Month",week:"Week",day:"Day",weekday:"Weekday",hour:"Hour",minute:"Minute",second:"Second",count:"Count"},"date-fns_date":"PPP","date-fns_time":"h:mm:ss a","date-fns_time_no_seconds":"h:mm a","date-fns_time_24hour":"HH:mm:ss","date-fns_time_no_seconds_24hour":"HH:mm","date-fns_date_short":"MMM d, u","date-fns_time_short":"h:mma","date-fns_date_short_no_year":"MMM d",minutes:"Minutes",hours:"Hours",month:"Month",year:"Year",select_all:"Select All",months:{january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},drag_mode:"Drag Mode",cancel_crop:"Cancel Crop",original:"Original",url:"URL",import_label:"Import",file_details:"File Details",dimensions:"Dimensions",size:"Size",created:"Created",modified:"Modified",checksum:"Checksum",owner:"Owner",edited_by:"Edited by",folder:"Folder",zoom:"Zoom",download:"Download",open:"Open",open_in_new_window:"Open in New Window",open_folder:'Open "{folder}" folder',foreground_color:"Foreground Color",background_color:"Background Color",upload_from_device:"Upload File from Device",choose_from_library:"Choose File from Library",import_from_url:"Import File from URL",replace_from_device:"Replace File from Device",replace_from_library:"Replace File from Library",replace_from_url:"Replace File from URL",no_file_selected:"No File Selected",download_file:"Download File",open_file_in_tab:"Open file in new tab",start_export:"Start Export",not_available_for_local_downloads:"Not available for local downloads",exporting_all_items_in_collection:"Exporting all {total} items within {collection}.",exporting_limited_items_in_collection:"Exporting {limit} out of {total} items within {collection}.",exporting_no_items_to_export:"No items to export. Adjust the exporting configuration below.",exporting_download_hint:"Once completed, this {format} file will automatically be downloaded to your device.",exporting_batch_hint:"This export will be processed in batches, and once completed, the {format} file will be saved to the File Library.",exporting_batch_hint_forced:"Due to the large number of items, this export must be processed in batches, and once completed, the {format} file will be saved to the File Library.",collection_key:"Collection Key",name:"Name",primary_key_field:"Primary Key Field",type:"Type",creating_new_collection:"Creating New Collection",created_by:"Created By",created_on:"Created On",creating_collection_info:"Name the collection and setup its unique \u201Ckey\u201D field...",creating_collection_system:"Enable and rename any of these optional fields.",auto_increment_integer:"Auto-incremented integer",auto_increment_big_integer:"Auto-incremented big integer",generated_uuid:"Generated UUID",manual_string:"Manually entered string",save_and_create_new:"Save and Create New",save_and_stay:"Save and Stay",save_as_copy:"Save as Copy",add_existing:"Add Existing",creating_items:"Creating Items",enable_create_button:"Enable Create Button",selecting_items:"Selecting Items",enable_select_button:"Enable Select Button",allow_duplicates:"Allow Duplicates",comments:"Comments",no_comments:"No Comments Yet",click_to_expand:"Click to Expand",select_item:"Select Item",no_items:"No items",search_items:"Search items...",disabled:"Disabled",information:"Information",report_bug:"Report Bug",request_feature:"Request Feature",request_body:"Request Body",interface_not_found:'Interface "{interface}" not found.',operation_not_found:'Operation "{operation}" not found.',reset_interface:"Reset Interface",display_not_found:'Display "{display}" not found.',reset_display:"Reset Display","list-m2a":"Builder (M2A)",item_count:"No Items | One Item | {count} Items",no_items_copy:"There are no items in this collection yet.",file_count:"No Files | One File | {count} Files",no_files_copy:"There are no files here.",user_count:"No Users | One User | {count} Users",no_users_copy:"There are no users in this role yet.",webhooks_count:"No Webhooks | One Webhook | {count} Webhooks",no_webhooks_copy:"No webhooks have been configured yet. Get started by creating one below.",no_notifications:"No Notifications",no_notifications_copy:"You're all caught up!",activity_log:"Activity Log",all_items:"All Items",any:"Any",csv:"CSV",no_collections:"No Collections",create_collection:"Create Collection",no_collections_copy_admin:"You don\u2019t have any Collections yet. Click the button below to get started.",no_collections_copy:"You don\u2019t have any Collections yet. Please contact your system administrator.",relationship_not_setup:"The relationship hasn't been configured correctly",display_template_not_setup:"The display template option is misconfigured",collection_field_not_setup:"The collection field option is misconfigured",select_a_collection:"Select a Collection",select_a_field:"Select a Field",active:"Active",move_to:"Move To...",copy:"Copy",copy_to:"Copy To...",no_other_dashboards_copy:"You don't have any other Dashboards yet.",inactive:"Inactive",users:"Users",activity:"Activity",activity_item:"Activity Item",action:"Action",ip_address:"IP Address",user_agent:"User Agent",origin:"Origin",webhooks:"Webhooks",decimals:"Decimals",value_decimals:"Value Decimals",min_value:"Min Value",max_value:"Max Value",automatic:"Automatic",field_width:"Field Width",add_filter:"Add Filter",upper_limit:"Upper limit...",lower_limit:"Lower limit...",user_directory:"User Directory",documentation:"Documentation",sidebar:"Sidebar",duration:"Duration",charset:"Charset",second:"second",file_moved:"File Moved",collection_created:"Collection Created",modified_on:"Modified On",card_size:"Card Size",sort_field:"Sort Field",add_sort_field:"Add Sort Field",sort:"Sort",status:"Status",remove:"Remove",toggle_manual_sorting:"Toggle Manual Sorting",bookmark_doesnt_exist:"Bookmark Doesn't Exist",bookmark_doesnt_exist_copy:"The bookmark you're trying to open couldn't be found.",bookmark_doesnt_exist_cta:"Return to collection",select_an_item:"Select an item...",edit:"Edit",enabled:"Enabled",disable_tfa:"Disable 2FA",tfa_scan_code:"Scan the code in your authenticator app to finish setting up 2FA",enter_otp_to_disable_tfa:"Enter the OTP to disable 2FA",create_account:"Create Account",account_created_successfully:"Account Created Successfully",auto_fill:"Auto Fill",corresponding_field:"Corresponding Field",errors:{COLLECTION_NOT_FOUND:"Collection doesn't exist",FIELD_NOT_FOUND:"Field not found",FORBIDDEN:"Forbidden",INVALID_CREDENTIALS:"Wrong username or password",INVALID_OTP:"Wrong one-time password",INVALID_PAYLOAD:"Invalid payload",INVALID_PROVIDER:"User belongs to a different auth provider",INVALID_QUERY:"Invalid query",INVALID_CONFIG:"Invalid config",INVALID_TOKEN:"Invalid token",INVALID_IP:"IP Address not allowed",INVALID_USER:"Failed to authenticate user",ITEM_LIMIT_REACHED:"Item limit reached",ITEM_NOT_FOUND:"Item not found",ROUTE_NOT_FOUND:"Not found",RECORD_NOT_UNIQUE:"Duplicate value detected",USER_SUSPENDED:"User Suspended",CONTAINS_NULL_VALUES:"Field contains null values",UNPROCESSABLE_ENTITY:"Unprocessable entity",INTERNAL_SERVER_ERROR:"Unexpected Error",NOT_NULL_VIOLATION:"Value can't be null",ILLEGAL_ASSET_TRANSFORMATION:"Image source too large to preview",VALUE_TOO_LONG:"Value is too long",VALUE_OUT_OF_RANGE:"Value is out of range",INVALID_FOREIGN_KEY:"Invalid foreign key",UNKNOWN:"Unexpected Error",GRAPHQL_VALIDATION_EXCEPTION:"GraphQL Validation Exception",SERVICE_UNAVAILABLE:"Service Unavailable",UNSUPPORTED_MEDIA_TYPE:"Unsupported media type",UNEXPECTED_RESPONSE:"Unexpected response",TOKEN_EXPIRED:"Token expired",RANGE_NOT_SATISFIABLE:"Invalid range",METHOD_NOT_ALLOWED:"Method not allowed",REQUESTS_EXCEEDED:"Requests limit reached"},security:"Security",value_hashed:"Value Securely Hashed",bookmark_name:"Bookmark name...",create_bookmark:"Create Bookmark",edit_bookmark:"Edit Bookmark",edit_personal_bookmark:"Edit Personal Bookmark",edit_role_bookmark:"Edit Role Bookmark",edit_global_bookmark:"Edit Global Bookmark",cannot_edit_role_bookmarks:"Can't Edit Role Bookmarks",cannot_edit_global_bookmarks:"Can't Edit Global Bookmarks",bookmarks:"Bookmarks",presets:"Presets",unexpected_error:"Unexpected Error",unexpected_error_copy:"An unexpected error has occurred. Please try again later.",copy_details:"Copy Details",no_app_access:"No App Access",no_app_access_copy:"This user isn't allowed to use the admin app.",password_reset_sent:"If you have an account, we've sent you a secure link to reset your password",password_reset_successful:"Password successfully reset",back:"Back",filter:"Filter",edit_image:"Edit Image",editing_image:"Editing Image",square:"Square",free:"Free",flip_horizontal:"Flip Horizontal",flip_vertical:"Flip Vertical",aspect_ratio:"Aspect Ratio",rotate:"Rotate",all_users:"All Users",delete_collection:"Delete Collection",update_collection_success:"Updated Collection",delete_collection_success:"Deleted Collection",make_collection_visible:"Make Collection Visible",make_collection_hidden:"Make Collection Hidden",make_folder_visible:"Make Folder Visible",make_folder_hidden:"Make Folder Hidden",goto_collection_content:"View Content",start_end_of_count_items:"{start}-{end} of {count} items",start_end_of_count_filtered_items:"{start}-{end} of {count} filtered items",one_item:"1 item",one_filtered_item:"1 filtered item",delete_collection_are_you_sure:'Are you sure you want to delete the collection "{collection}"? This will delete the collection and all items in it. This action is permanent.',delete_folder_are_you_sure:'Are you sure you want to delete the folder "{folder}"? Nested folders and collections will be moved to the top most level.',collections_shown:"Collections Shown",visible_collections:"Visible Collections",hidden_collections:"Hidden Collections",show_hidden_collections:"Show Hidden Collections",hide_hidden_collections:"Hide Hidden Collections",show_header:"Show Header",unmanaged_collections:"Unconfigured Collections",system_collections:"System Collections",placeholder:"Placeholder",icon_left:"Icon Left",icon_right:"Icon Right",count_other_revisions:"{count} Other Revisions",font:"Font",sans_serif:"Sans Serif",serif:"Serif",monospace:"Monospace",divider:"Divider",color:"Color",circle:"Circle",empty_item:"Empty Item",log_in_with:"Log In with {provider}",conditional_styles:"Conditional Styles",advanced_settings:"Advanced Settings",advanced_filter:"Advanced Filter",delete_advanced_filter:"Delete Filter",change_advanced_filter_operator:"Change Operator",advanced:"Advanced",operators:{eq:"Equals",neq:"Doesn't equal",lt:"Less than",gt:"Greater than",lte:"Less than or equal to",gte:"Greater than or equal to",in:"Is one of",nin:"Is not one of",null:"Is null",nnull:"Isn't null",contains:"Contains",ncontains:"Doesn't contain",icontains:"Contains (insensitive)",starts_with:"Starts with",nstarts_with:"Doesn't start with",ends_with:"Ends with",nends_with:"Doesn't end with",between:"Is between",nbetween:"Isn't between",empty:"Is empty",nempty:"Isn't empty",all:"Contains these keys",has:"Contains some of these keys",intersects:"Intersects",nintersects:"Doesn't intersect",intersects_bbox:"Intersects bounding box",nintersects_bbox:"Doesn't intersect bounding box",regex:"Matches RegExp"},custom_validation_message:"Custom Validation Message",loading:"Loading...",drop_to_upload:"Drop to Upload",item:"Item",items:"Items",upload_file:"Upload File",upload_file_indeterminate:"Uploading File...",upload_file_success:"File Uploaded",upload_files_indeterminate:"Uploading files {done}/{total}",upload_files_success:"{count} Files Uploaded",upload_pending:"Upload Pending",drag_file_here:"Drag & Drop a File Here",click_to_browse:"Click to Browse",interface_options:"Interface Options",layout_options:"Layout Options",rows:"Rows",columns:"Columns",collection_setup:"Collection Setup",optional_system_fields:"Optional System Fields",value_unique:"Value has to be unique",all_activity:"All Activity",create_item:"Create Item",display_template:"Display Template",language_display_template:"Language Display Template",translations_display_template:"Translations Display Template",n_items_selected:"No Items Selected | 1 Item Selected | {n} Items Selected",per_page:"Per Page",all_files:"All Files",my_files:"My Files",recent_files:"Recent Files",create_folder:"Create Folder",edit_folder:"Edit Folder",folder_name:"Folder Name...",folder_key:"Folder Key...",add_file:"Add File",replace_file:"Replace File",no_results:"No Results",no_results_copy:"Adjust or clear search filters to see results.",clear_filters:"Clear Filters",saves_automatically:"Saves Automatically",role:"Role",edit_role:"Edit Role",rule:"Rule",user:"User",no_presets:"No Presets",no_presets_copy:"No presets or bookmarks have been saved yet.",no_presets_cta:"Add Preset",presets_only:"Presets Only",create:"Create",on_create:"On Create",on_update:"On Update",read:"Read",update:"Update",delete:"Delete",select_fields:"Select Fields",format_text:"Format Text",format_value:"Format Value",abbreviate_value:"Abbreviate Value",operator:"Operator",bold:"Bold",toggle:"Toggle",icon_on:"Icon On",icon_off:"Icon Off",label:"Label",flows:"Flows",flow:"Flow",select_a_flow:"Select a Flow",run_flow_on_current:"Run flow on Current Item",run_flow_on_current_edited_confirm:"This item may be updated by this flow, are you sure you want to execute it?",run_flow_on_selected:"No Items Selected | Run flow on 1 Selected Item | Run flow on {n} Selected Items",run_flow_success:'Flow "{flow}" ran successfully',trigger:"Trigger",trigger_options:"Trigger Options",view_trigger:"View Trigger",create_trigger:"Create Trigger",trigger_setup:"Trigger Setup",change_trigger:"Change Trigger",flow_delete_confirm:'Are you sure you want to delete Flow "{flow}"? This action can not be undone.',set_flow_active:"Set Flow to Active",set_flow_inactive:"Set Flow to Inactive",edit_flow:"Edit Flow",delete_flow:"Delete Flow",no_other_flows_copy:"You don't have any other Flows yet.",no_flows:"No Flows",no_flows_copy:"You don't have any Flows yet.",create_flow:"Create Flow",creating_new_flow:"Creating New Flow",updating_flow:"Updating Flow",flow_setup:"Flow Setup",flow_name:"Name",flow_tracking:"Activity & Logs Tracking",flow_tracking_all:"Track Activity & Logs",flow_tracking_activity:"Only Track Activity",flow_tracking_null:"Do Not Track Anything",start_flow:"Start Flow",stop_flow:"Stop Flow",create_operation:"Create Operation",edit_operation:"Edit Operation",code:"Code",operation_options:"Operation Options",operation_name:"Name of operation...",operation_key:"Identifier for reference...",operation_key_unique_error:"Operation keys must be unique in a Flow",operation_handle_resolve:"Resolve: Click to Add or Drag to Reroute",operation_handle_reject:"Reject: Click to Add or Drag to Reroute",insights:"Insights",dashboard:"Dashboard",panel:"Panel",panel_options:"Panel Options",panel_header:"Panel Header",panel_name_placeholder:"Name this panel...",panel_note_placeholder:"Optional details about this panel...",panel_delete_confirm:"Are you sure you want to delete this panel? This action can not be undone.",dashboard_delete_confirm:"Are you sure you want to delete this dashboard? This action can not be undone.",edit_dashboard:"Edit Dashboard",delete_dashboard:"Delete Dashboard",visible:"Visible",prefix_placeholder:"Text before value...",suffix_placeholder:"Text after value...",decimals_placeholder:"Number of decimal places...",no_dashboards:"No Dashboards",no_dashboards_copy:"You don\u2019t have any Dashboards yet.",create_dashboard:"Create Dashboard",dashboard_name:"Dashboard Name",no_data:"No Data",no_data_in_flow:"No data was produced or accessed within this Flow",accountability:"Accountability",payload:"Payload",details:"Details",full_screen:"Full Screen",full_text_search:"Full-Text Search",edit_panels:"Edit Panels",center_align:"Center Align",left_align:"Left Align",right_align:"Right Align",fit_to_screen:"Fit to Screen",image_url:"Image Url",alt_text:"Alternative Text",media:"Media",quality:"Quality",width:"Width",height:"Height",transformation_preset_key:"Transformation Preset Key",source:"Source",url_placeholder:"Enter an url...",display_text:"Display Text",display_text_placeholder:"Enter a display text...",interface_group_text_and_numbers:"Text & Numbers",interface_group_selection:"Selection",interface_group_relational:"Relational",interface_group_presentation:"Presentation",interface_group_groups:"Groups",interface_group_other:"Other",tooltip:"Tooltip",tooltip_placeholder:"Enter a tooltip...",unlimited:"Unlimited",open_link_in:"Open link in",new_tab:"New tab",current_tab:"Current tab",save_image:"Save Image",save_media:"Save Media",wysiwyg_options:{aligncenter:"Align Center",alignjustify:"Align Justify",alignleft:"Align Left",alignnone:"Align None",alignright:"Align Right",forecolor:"Foreground Color",backcolor:"Background Color",bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript",codeblock:"Code",blockquote:"Blockquote",bullist:"Bullet List",numlist:"Numbered List",hr:"Horizontal Rule",link:"Add/Edit Link",unlink:"Remove Link",media:"Add/Edit Media",image:"Add/Edit Image",copy:"Copy",cut:"Cut",paste:"Paste",heading:"Heading",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",fontselect:"Select Font",fontsizeselect:"Select Font Size",indent:"Indent",outdent:"Outdent",undo:"Undo",redo:"Redo",remove:"Remove",removeformat:"Remove Format",selectall:"Select All",table:"Table",visualaid:"View invisible elements",source_code:"Edit Source Code",fullscreen:"Full Screen",directionality:"Directionality"},dropdown:"Dropdown",choices:"Choices",choices_option_configured_incorrectly:"Choices configured incorrectly",deselect:"Deselect",deselect_all:"Deselect All",other:"Other...",adding_user:"Adding User",unknown_user:"Unknown User",creating_in:"Creating Item in {collection}",editing_in:"Editing Item in {collection}",viewing_in:"Viewing Item in {collection}",creating_unit:"Creating {unit}",editing_unit:"Editing {unit}",editing_in_batch:"Batch Editing {count} Items",no_options_available:"No options available",settings_data_model:"Data Model",settings_permissions:"Roles & Permissions",settings_project:"Project Settings",settings_webhooks:"Webhooks",settings_flows:"Flows",settings_presets:"Presets & Bookmarks",settings_translation_strings:"Translation Strings",one_or_more_options_are_missing:"One or more options are missing",scope:"Scope",actions:"Actions",select:"Select...",layout:"Layout",tree_view:"Tree View",changes_are_permanent:"Changes are permanent",preset_name_placeholder:"Serves as default when empty...",preset_search_placeholder:"Search query...",editing_preset:"Editing Preset",layout_preview:"Layout Preview",layout_setup:"Layout Setup",data:"Data",unsaved_changes:"Unsaved Changes",unsaved_changes_copy:"Are you sure you want to leave this page?",discard_changes:"Discard Changes",discard_all_changes:"Discard All Changes",discard_changes_copy:"Are you sure you want to discard all the changes made?",show_x_axis:"Show X Axis",show_y_axis:"Show Y Axis",keep_editing:"Keep Editing",page_help_collections_overview:"**Collections Overview** \u2014 List of all collections you have access to.",page_help_collections_collection:"**Browse Items** \u2014 Lists all {collection} items you have access to. Customize layout, filters, and sorting to tailor your view, and even save bookmarks of these different configurations for quick access.",page_help_collections_item:"**Item Detail** \u2014 A form for viewing and managing this item. This sidebar also contains a full history of revisions, and embedded comments.",page_help_activity_collection:"**Browse Activity** \u2014 A comprehensive listing of all your user's system and content activity.",page_help_docs_global:"**Documentation Overview** \u2014 Docs tailored specifically to this project's version and schema.",page_help_files_collection:"**File Library** \u2014 Lists all file assets uploaded to this project. Customize layout, filters, and sorting to tailor your view, and even save bookmarks of these different configurations for quick access.",page_help_files_item:"**File Detail** \u2014 A form for managing file metadata, editing the original asset, and updating access settings.",page_help_settings_project:"**Project Settings** \u2014 Your project's global configuration options.",page_help_settings_datamodel_collections:"**Data Model: Collections** \u2014 Lists all collections available. This includes visible, hidden, and system collections, as well as unmanaged database tables that can be added.",page_help_settings_datamodel_fields:"**Data Model: Collection** \u2014 A form for managing this collection and its fields.",page_help_settings_roles_collection:"**Browse Roles** \u2014 Lists the Admin, Public and custom User Roles.",page_help_settings_roles_item:"**Role Detail** \u2014 Manage a role's permissions and other settings.",page_help_settings_presets_collection:"**Browse Presets** \u2014 Lists all presets in the project, including: user, role, and global bookmarks, as well as default views.",page_help_settings_presets_item:"**Preset Detail** \u2014 A form for managing bookmarks and default collection presets.",page_help_settings_webhooks_collection:"**Browse Webhooks** \u2014 Lists all webhooks within the project.",page_help_settings_webhooks_item:"**Webhook Detail** \u2014 A form for creating and managing project webhooks.",page_help_settings_flows_collection:"**Browse Flows** \u2014 Lists all Flows within the project.",page_help_settings_flows_item:"**Flow Detail** \u2014 Workspace for managing one or more operations.",page_help_settings_translation_strings_collection:"**Browse Translation Strings** \u2014 Lists all translation strings within the project.",page_help_users_collection:"**User Directory** \u2014 Lists all system users within this project.",page_help_users_item:"**User Detail** \u2014 Manage your account information, or view the details of other users.",page_help_insights_overview:"**Insights** \u2014 List of dashboards you have access to.",page_help_insights_dashboard:"**Dashboard** \u2014 Workspace for managing one or more panels",activity_feed:"Activity Feed",add_new:"Add New",create_new:"Create New",all:"All",none:"None",no_layout_collection_selected_yet:"No layout/collection selected yet",batch_delete_confirm:"No items have been selected | Are you sure you want to delete this item? This action can not be undone. | Are you sure you want to delete these {count} items? This action can not be undone.",cancel:"Cancel",no_upscale:"Don't upscale images",collection:"Collection",collections:"Collections",content:"Content",singleton:"Singleton",singleton_label:"Treat as single object",system_fields_locked:"System fields are locked and can't be edited",directus_collection:{directus_activity:"Accountability logs for all events",directus_collections:"Additional collection configuration and metadata",directus_dashboards:"Dashboards within the Insights module",directus_fields:"Additional field configuration and metadata",directus_files:"Metadata for all managed file assets",directus_flows:"Automation flows",directus_folders:"Provides virtual directories for files",directus_migrations:"What version of the database you're using",directus_notifications:"Notifications sent to users",directus_operations:"Operations that run in Flows",directus_panels:"Individual panels within Insights dashboards",directus_permissions:"Access permissions for each role",directus_presets:"Presets for collection defaults and bookmarks",directus_relations:"Relationship configuration and metadata",directus_revisions:"Data snapshots for all activity",directus_roles:"Permission groups for system users",directus_sessions:"User session information",directus_settings:"Project configuration options",directus_shares:"Tracks externally shared items",directus_users:"System users for the platform",directus_webhooks:"Configuration for event-based HTTP requests"},fields:{directus_activity:{item:"Item Primary Key",action:"Action",collection:"Collection",timestamp:"Action On",user:"Action By",comment:"Comment",user_agent:"User Agent",origin:"Origin",ip:"IP Address",revisions:"Revisions"},directus_collections:{collection:"Collection",icon:"Icon",note:"Note",color:"Color",display_template:"Display Template",hidden:"Hidden",singleton:"Singleton",translations:"Collection Naming Translations",archive_app_filter:"Archive App Filter",archive_value:"Archive Value",unarchive_value:"Unarchive Value",sort_field:"Sort Field",accountability:"Activity & Revision Tracking",archive_field:"Archive Field",item_duplication_fields:"Item Duplication Fields"},directus_files:{$thumbnail:"Thumbnail",title:"Title",description:"Description",tags:"Tags",location:"Location",storage:"Storage",filename_disk:"Filename (Disk)",filename_download:"Filename (Download)",metadata:"Metadata",type:"Mime Type",filesize:"Filesize",modified_by:"Modified By",modified_on:"Modified On",created_on:"Created On",created_by:"Created By",embed:"Embed",uploaded_by:"Uploaded By",folder:"Folder",width:"Width",uploaded_on:"Uploaded On",height:"Height",charset:"Charset",duration:"Duration"},directus_users:{first_name:"First Name",last_name:"Last Name",email:"Email",password:"Password",avatar:"Avatar",location:"Location",title:"Title",description:"Description",tags:"Tags",user_preferences:"User Preferences",language:"Language",theme:"Theme",theme_auto:"Automatic (Based on System)",theme_light:"Light Mode",theme_dark:"Dark Mode",tfa_secret:"Two-Factor Authentication",admin_options:"Admin Options",status:"Status",status_draft:"Draft",status_invited:"Invited",status_active:"Active",status_suspended:"Suspended",status_archived:"Archived",role:"Role",token:"Token",provider:"Provider",external_identifier:"External Identifier",last_page:"Last Page",last_access:"Last Access",email_notifications:"Email Notifications"},directus_settings:{jpg:"JPEG",png:"PNG",webP:"WebP",tiff:"Tiff",mapping:"Mapping",basemaps:"Basemaps",basemaps_raster:"Raster",basemaps_tile:"Raster TileJSON",basemaps_style:"Mapbox Style",mapbox_key:"Mapbox Access Token",mapbox_placeholder:"pk.eyJ1Ijo.....",attribution:"Attribution",attribution_placeholder:"\xA9 OpenStreetMap contributors",transforms_note:"The Sharp method name and its arguments. See https://sharp.pixelplumbing.com/api-constructor for more information.",additional_transforms:"Additional Transformations",project_name:"Project Name",project_descriptor:"Project Descriptor",project_url:"Project URL",project_color:"Project Color",project_logo:"Project Logo",default_language:"Default Language",branding:"Branding & Style",public_foreground:"Public Foreground",public_background:"Public Background",public_note:"Public Note",auth_password_policy:"Auth Password Policy",auth_login_attempts:"Auth Login Attempts",files_and_thumbnails:"Files & Storage",storage_default_folder:"Default Folder",storage_asset_presets:"Transformation Presets",storage_asset_transform:"Allowed Transformations",overrides:"App Overrides",custom_css:"Custom CSS",module_bar:"Module Bar",transformations_all:"Allow all transformations",transformations_none:"Disable transformations",transformations_presets:"Limit transformations to presets below",image_editor:"Image Editor",custom_aspect_ratios:"Custom Aspect Ratios"},directus_shares:{name:"Name",role:"Role",password:"Password",date_start:"Date Start",date_end:"Date End",max_uses:"Max Uses",times_used:"Times Used"},directus_fields:{collection:"Collection Name",icon:"Collection Icon",note:"Note",hidden:"Hidden",singleton:"Singleton",translation:"Field Name Translations",display_template:"Template"},directus_roles:{name:"Role Name",icon:"Role Icon",description:"Description",app_access:"App Access",admin_access:"Admin Access",ip_access:"IP Access",enforce_tfa:"Require 2FA",users:"Users in Role",module_list:"Module Navigation"},directus_webhooks:{name:"Name",method:"Method",status:"Status",data:"Data",header:"Header",value:"Value",headers:"Request Headers",data_label:"Send Event Data",triggers:"Triggers",actions:"Actions",collections:"Collections"}},field_options:{directus_settings:{project_name_placeholder:"My project...",project_color_note:"Login & Logo Background",project_logo_note:"White 40x40 SVG/PNG",public_note_placeholder:"A short, public message that supports markdown formatting...",security_divider_title:"Security",auth_password_policy:{none_text:"None \u2013 Not Recommended",weak_text:"Weak \u2013 Minimum 8 Characters",strong_text:"Strong \u2013 Upper / Lowercase / Numbers / Special"},storage_asset_presets:{fit_label:"Fit",upscaling:"Upscaling",fit:{contain_text:"Contain (preserve aspect ratio)",cover_text:"Cover (forces exact size)",fit_text:"Fit inside",outside_text:"Fit outside"}},additional_transforms:"Additional Transformations",transforms_note:"The Sharp method name and its arguments. See https://sharp.pixelplumbing.com/api-constructor for more information.",mapbox_key:"Mapbox Access Token",mapbox_placeholder:"pk.eyJ1Ijo.....",basemaps:"Basemaps",basemaps_name_placeholder:"Enter the basemap name...",basemaps_raster:"Raster",basemaps_tile:"Raster TileJSON",basemaps_style:"Mapbox Style",files_divider_title:"Files & Thumbnails",overrides_divider_title:"App Overrides"},directus_activity:{login:"Login",create:"Create",update:"Update",delete:"Delete"},directus_collections:{track_activity_revisions:"Track Activity & Revisions",only_track_activity:"Only Track Activity",do_not_track_anything:"Do Not Track Anything",collection_setup:"Collection Setup",note_placeholder:"A description of this collection...",hidden_label:"Hide within the App",singleton:"Treat as single object",language:"Language",translation:"Translation",translation_placeholder:"Enter a translation...",collection_name:"Collection Name",singular_unit:"Singular Unit",plural_unit:"Plural Unit",archive_divider:"Archive",archive_field_placeholder:"Choose a field...",archive_app_filter:"Enable App Archive Filter",archive_value:"Value set when archiving...",unarchive_value:"Value set when unarchiving...",sort_divider:"Sort",sort_field:"Choose a field...",accountability_divider:"Accountability",duplication_divider:"Duplication"},directus_files:{title:"A unique title...",description:"An optional description...",location:"An optional location...",storage_divider:"File Naming",filename_disk:"Name on disk storage...",filename_download:"Name when downloading..."},directus_roles:{name:"The unique name for this role...",description:"A description of this role...",ip_access:"Add allowed IP addresses, leave empty to allow all...",fields:{icon_name:"Icon",name_name:"Name",name_placeholder:"Enter a title...",link_name:"Link",link_placeholder:"Relative or absolute URL..."},collections_name:"Collections",collections_addLabel:"Add Collection..."},directus_users:{preferences_divider:"User Preferences",dropdown_auto:"Automatic (Based on System)",dropdown_light:"Light Mode",dropdown_dark:"Dark Mode",admin_divider:"Admin Options",status_dropdown_draft:"Draft",status_dropdown_invited:"Invited",status_dropdown_active:"Active",status_dropdown_suspended:"Suspended",status_dropdown_archived:"Archived",token:"Enter a secure access token..."},directus_webhooks:{status_options_active:"Active",status_options_inactive:"Inactive",data_label:"Send Event Data",triggers_divider:"Triggers",actions_create:"Create",actions_update:"Update",actions_delete:"Delete",actions_login:"Login",headers:{header:"Header",value:"Value",add:"Add Header"}}},no_fields_in_collection:'There are no fields in "{collection}" yet',no_value:"No value",do_nothing:"Do Nothing",generate_and_save_uuid:"Generate and Save UUID",save_current_user_id:"Save Current User ID",save_current_user_role:"Save Current User Role",save_current_datetime:"Save Current Date/Time",always_open:"Always Open",start_open:"Start Open",start_collapsed:"Start Collapsed",block:"Block",inline:"Inline",comment:"Comment",shares:"Shares",unlimited_usage:"Unlimited usage",uses_left:"No uses left | 1 use left | {n} uses left",no_shares:"No shares to show",new_share:"New Share",expired:"Expired",upcoming:"Upcoming",share:"Share",share_item:"Share Item",shared_with_you:"An item has been shared with you",shared_enter_passcode:"Enter your passcode to continue...",shared_leave_blank_for_unlimited:"Leave blank for unlimited",shared_times_remaining:"This link can only be used {n} times",shared_last_remaining:"This link can only be used once",shared_uses_left:"For added security, this shared page has been configured with a limited number of views. There are currently {n} views remaining, after which, the page will no longer be accessible.",share_access_page:"Access Shared Page",share_access_not_found:"This shared page either does not exist or has already exceeded the maximum number of allowed uses.",share_access_not_found_desc:"Please contact an authorized user of this project to request access.",share_access_not_found_title:"Unknown Share Page",share_copy_link:"Copy Link",share_copy_link_success:"Link Copied",share_copy_link_error:"Unable to Copy Link",share_send_link:"Send Link",relational_triggers:"Relational Triggers",referential_action_field_label_m2o:"On Delete of {collection}...",referential_action_field_label_o2m:"On Deselect of {collection}...",referential_action_no_action:"Prevent the deletion",referential_action_cascade:"Delete the {collection} item (cascade)",referential_action_set_null:"Nullify the {field} field",referential_action_set_default:"Set {field} to its default value",choose_action:"Choose Action",continue_label:"Continue",continue_as:"{name} is currently authenticated. If you recognize this account, press continue.",editing_role:"{role} Role",creating_webhook:"Creating Webhook",default_label:"Default",delete_label:"Delete",delete_are_you_sure:"This action is permanent and can not be undone. Are you sure you would like to proceed?",delete_field_are_you_sure:'Are you sure you want to delete the field "{field}"? This action can not be undone.',description:"Description",done:"Done",duplicate:"Duplicate",limit:"Limit",email:"Email",embed:"Embed",fallback_icon:"Fallback Icon",field:"Field | Fields",file:"File",file_library:"File Library",forgot_password:"Forgot Password",hidden:"Hidden",hidden_in_group:"Hidden in {group}",icon:"Icon",info:"Info",normal:"Normal",success:"Success",warning:"Warning",danger:"Danger",colors:{purple:"Purple",blue:"Blue",green:"Green",yellow:"Yellow",orange:"Orange",red:"Red",black:"Black",gray:"Gray",white:"White"},junction_collection:"Junction Collection",latency:"Latency",login:"Log in",my_activity:"My Activity",not_authenticated:"Not Authenticated",authenticated:"Authenticated",options:"Options",otp:"One-Time Password",password:"Password",permissions:"Permissions",relationship:"Relationship",reset:"Reset",reset_password:"Reset Password",revisions:"Revisions",no_revisions:"No Revisions Yet",no_logs:"No Logs Yet",revert:"Revert",save:"Save",schema:"Schema",search:"Search",select_existing:"Select Existing",select_field_type:"Select a field type",select_interface:"Select an interface",settings:"Settings",sign_in:"Sign In",sign_out:"Sign Out",sign_out_confirm:"Are you sure you want to sign out?",something_went_wrong:"Something went wrong.",sort_direction:"Sort Direction",export_location:"Export Location",export_started:"Export Started",export_started_copy:"Your export has started. You'll be notified when it's ready to download.",sort_asc:"Sort Ascending",sort_desc:"Sort Descending",template:"Template",require_value_to_be_set:"Require value to be set on creation",translation:"Translation",translation_placeholder:"Enter a translation...",value:"Value",view_project:"View Project",weeks:{},report_error:"Report Error",start:"Start",table:"Table",list:"List",search_filter:"Search & Filter",enable_search_filter:"Enable searching & filtering",item_link:"Item link",show_link_to_item:"Show a link to the item",navigate_to_item:"Navigate to Item",undo_removed_item:"Undo Removed Item",remove_item:"Remove Item",delete_item:"Delete Item",interfaces:{filter:{name:"Filter",description:"Configure a filter object.",add_filter:"Add Filter",add_group:"And / Or group",add_value:"Add Value",logic_type_and:"AND",logic_type_or:"OR",all:"All",any:"Any",and:"and",of_the_following:"of the following",no_rules:"No configured rules",change_value:"Click to change value",placeholder:"Drag rules here",add_key_placeholder:"Add a key and press enter..."},fields:{name:"Fields"},"group-accordion":{name:"Accordion",description:"Display fields or groups as accordion sections",start:"Start",all_closed:"All Closed",first_opened:"First Opened",all_opened:"All Opened",accordion_mode:"Accordion Mode",max_one_section_open:"Max 1 Section Open"},"presentation-links":{"presentation-links":"Button Links",links:"Links",description:"Configurable link buttons for launching dynamic URLs",style:"Style",primary:"Primary",link:"Links",button:"Buttons",error:"Cannot perform action"},"select-multiple-checkbox":{checkboxes:"Checkboxes",description:"Choose between multiple options via checkboxes",allow_other:"Allow Other",show_more:"Show {count} more",items_shown:"Items Shown"},"select-multiple-checkbox-tree":{name:"Checkboxes (Tree)",description:"Choose between multiple options via nested checkboxes",value_combining:"Value Combining",value_combining_note:"Controls what value is stored when nested selections are made.",show_all:"Show All",show_selected:"Show Selected"},"input-code":{code:"Code",description:"Write or share code snippets",line_number:"Line Number",line_wrapping:"Line Wrapping",placeholder:"Enter code here..."},"system-collection":{collection:"Collection",description:"Select between existing collections",include_system_collections:"Include System Collections"},"system-collections":{collections:"Collections",description:"Select between existing collections",include_system_collections:"Include System Collections"},"select-color":{color:"Color",description:"Enter or select a color value",placeholder:"Choose a color...",preset_colors:"Preset Colors",opacity:"Opacity",preset_colors_add_label:"Add new color...",name_placeholder:"Enter color name..."},datetime:{datetime:"Datetime",description:"Enter dates and times",include_seconds:"Include Seconds",set_to_now:"Set to Now",use_24:"Use 24-Hour Format",placeholder:"Choose a datetime..."},"system-fields":{select_a_collection:"Select a Collection",no_fields:"No fields"},"system-display-template":{"display-template":"Display Template",description:"Mix static text and dynamic field values",collection_field:"Collection field",collection_field_not_setup:"The collection field option is misconfigured",select_a_collection:"Select a Collection"},"presentation-divider":{divider:"Divider",description:"Label and divide fields into sections",title_placeholder:"Enter a title, or leave blank to only show a line...",inline_title:"Inline Title",inline_title_label:"Show title inside line",margin_top:"Margin Top",margin_top_label:"Increase Top Margin"},"select-dropdown":{description:"Select a value from a dropdown",choices_placeholder:"Add a new choice",allow_other:"Allow Other",allow_other_label:"Allow Other Values",allow_none:"Allow None",allow_none_label:"Allow No Selection",choices_name_placeholder:"Enter a name...",choices_value_placeholder:"Enter a value...",preview_threshold:"Preview Threshold"},"select-multiple-dropdown":{"select-multiple-dropdown":"Dropdown (Multiple)",description:"Select multiple values from a dropdown"},file:{file:"File",description:"Select or upload a file"},files:{files:"Files",description:"Select or upload multiple files"},"input-hash":{hash:"Hash",description:"Enter a value to be hashed",masked:"Masked",masked_label:"Hide the true values"},"select-icon":{icon:"Icon",description:"Select an icon from a dropdown",search_for_icon:"Search for icon..."},"file-image":{image:"Image",description:"Select or upload an image",crop:"Crop to Fit",crop_label:"Crop image as needed"},"system-interface":{interface:"Interface",description:"Select an existing interface",placeholder:"Select an interface..."},"system-interface-options":{"interface-options":"Interface Options",description:"A modal for selecting options of an interface"},"list-m2m":{"many-to-many":"Many to Many",description:"Select multiple related junction items",columns_configure_notice:"You can configure the columns after creating this field.",display_template_configure_notice:"You can configure the display template after creating this field."},"select-dropdown-m2o":{"many-to-one":"Many to One",description:"Select a single related item",display_template:"Display Template"},"input-rich-text-md":{markdown:"Markdown",description:"Enter and preview markdown",edit:"Edit",preview:"Preview",editorFont:"Editor Font",previewFont:"Preview Font",customSyntax:"Custom Blocks",customSyntax_label:"Add custom syntax types",customSyntax_add:"Add custom syntax",box:"Block / Inline",imageToken:"Static Access Token",imageToken_label:"Static access token is appended to the assets' URL"},map:{map:"Map",description:"Select a location on a map",zoom:"Zoom",geometry_type:"Geometry Type",geometry_format:"Geometry Format",default_view:"Default View",invalid_options:"Invalid options",invalid_format:"Invalid format ({format})",unexpected_geometry:"Expected {expected}, got {got}.",fit_bounds:"Fit view to data",native:"Native",geojson:"GeoJSON",lnglat:"Longitude, Latitude",wkt:"WKT",wkb:"WKB",click_to_select:"Click to select {geometry}"},"presentation-notice":{notice:"Notice",description:"Display a short notice",text:"Enter notice content here..."},"list-o2m":{"one-to-many":"One to Many",description:"Select multiple related items",no_collection:"The collection could not be found"},"system-folder":{folder:"Folder",description:"Select a folder",field_hint:"Folder for uploaded files. Does not affect existing files.",root_name:"File Library Root",system_default:"System Defaults"},"select-radio":{"radio-buttons":"Radio Buttons",description:"Select one of multiple choices"},list:{repeater:"Repeater",description:"Create multiple entries of the same structure",edit_fields:"Edit Fields",add_label:'"Create New" Label',sort:"Sort",sort_placeholder:"Manual",field_name_placeholder:"Enter field name...",field_note_placeholder:"Enter field note...",incompatible_data:"The current data is not compatible with the repeater interface and will be overridden when adding items to the repeater"},slider:{slider:"Slider",description:"Select a number using a slider",always_show_value:"Always show value"},tags:{tags:"Tags",description:"Select or add tags",whitespace:"Whitespace",hyphen:"Replace with hyphen",underscore:"Replace with underscore",remove:"Remove whitespace",capitalization:"Capitalization",uppercase:"Convert Uppercase",lowercase:"Convert Lowercase",auto_formatter:"Use Title Auto-Formatter",alphabetize:"Alphabetize",alphabetize_label:"Force Alphabetical Order",add_tags:"Add a tag and press Enter..."},input:{input:"Input",description:"Manually enter a value",trim:"Trim",trim_label:"Trim the start and end",mask:"Masked",mask_label:"Hide the real value",clear:"Cleared Value",clear_label:"Save as empty string",minimum_value:"Minimum Value",maximum_value:"Maximum Value",step_interval:"Step Interval",slug:"Slugify",slug_label:"Make entered value URL safe"},"input-multiline":{textarea:"Textarea",description:"Enter multiline plain-text"},"input-translated-string":{"input-translated-string":"Translated Strings",description:"Select or add translation string",search_placeholder:"Search...",new_translation_string:"New Translation String"},boolean:{toggle:"Toggle",description:"Switch between on and off",color_on:"Color On",color_off:"Color Off",label_placeholder:"Enter a label...",label_default:"Enabled"},translations:{display_template:"Display Template",no_collection:"No Collection",toggle_split_view:"Toggle Split View",enable:"Enable",user_language:"Use Current User Language",default_language:"Default Language",language_field:"Language Indicator Field",language_direction_field:"Language Direction Field"},"list-o2m-tree-view":{description:"Tree view for nested recursive one-to-many items",recursive_only:"The tree view interface only works for recursive relationships."},user:{user:"User",description:"Select an existing directus user",select_mode:"Select Mode",modes:{auto:"Auto",dropdown:"Dropdown",modal:"Modal"}},"input-rich-text-html":{wysiwyg:"WYSIWYG",description:"A rich-text editor writing HTML content",toolbar:"Toolbar",custom_formats:"Custom Formats",options_override:"Options Override",folder_note:"Folder for uploaded files. Does not affect existing files.",imageToken:"Static Access Token",imageToken_label:"Static access token is appended to the assets' URL"},"input-autocomplete-api":{"input-autocomplete-api":"Autocomplete Input (API)",description:"A search typeahead for external API values.",results_path:"Results Path",value_path:"Value Path",text_path:"Text Path",trigger:"Trigger",rate:"Rate"},"group-raw":{name:"Raw Group",description:"Render the fields as-is"},"group-detail":{name:"Detail Group",description:"Render the fields as a collapsable section",show_header:"Show Group Header",header_icon:"Header Icon",header_color:"Header Color",start_open:"Start Open",start_closed:"Start Closed"},"system-token":{"system-token":"Token",description:"Manage static access token",placeholder:'Click "Generate Token" to create a new static access token',value_securely_saved:"Value Securely Saved",generate:"Generate Token",regenerate:"Regenerate Token",generate_success_copy:"Make sure to backup and copy the token above. For security reasons, you will not be able to view the token again after saving and navigate off this page.",remove_token:"Remove Token"},"system-raw-editor":{"system-raw-editor":"Raw Editor",description:"Allow entering of raw or mustache templating values"}},displays:{translations:{translations:"Translations",description:"Preview translations",enable:"Enable",user_language:"Use Current User Language",default_language:"Default Language",language_field:"Language Indicator Field"},boolean:{boolean:"Boolean",description:"Display on and off states",label_on:"Label On",label_on_placeholder:"Enter an on label...",label_off:"Label Off",label_off_placeholder:"Enter an off label...",icon_on:"Icon On",icon_off:"Icon Off",color_on:"Color On",color_off:"Color Off"},collection:{collection:"Collection",description:"Display a collection",icon_label:"Show the collection's icon"},color:{color:"Color",description:"Display a colored dot",default_color:"Default Color"},datetime:{datetime:"Datetime",description:"Display values related to time",format:"Format",format_note:"The custom format accepts the __[Date Field Symbol Table](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table)__",long:"Long",short:"Short",relative:"Relative",relative_label:"Show relative time, eg: 5 minutes ago",suffix:"Suffix",suffix_label:"Show relative indicator",suffix_note:"Uses words like 'in' and 'ago'",strict:"Strict",strict_label:"Use strict units",strict_note:"Removes words like 'almost', 'over', 'less than'",round:"Round",round_note:"Choose a rounding function to use",down:"Down",nearest:"Nearest",up:"Up"},file:{file:"File",description:"Display files"},filesize:{filesize:"File Size",description:"Display the size of a file"},"formatted-value":{"formatted-value":"Formatted Value",description:"Display a formatted version of the text",format:"Format",format_label:"Auto format",font:"Font",font_sans_serif:"Sans serif",font_serif:"Serif",font_monospace:"Monospace",bold:"Bold",bold_label:"Use bold style",italic:"Italic",italic_label:"Use italic style",prefix:"Prefix",prefix_label:"Prepend text",suffix:"Suffix",suffix_label:"Appended Text",color:"Color",background:"Background",icon:"Icon",border:"Border",border_label:"Show border",text:"Text",text_placeholder:"Optional value override..."},"formatted-json-value":{"formatted-json-value":"Formatted JSON value",description:"Display a formatted version of the object"},icon:{icon:"Icon",description:"Display an icon",filled:"Filled",filled_label:"Use the filled variant"},image:{image:"Image",description:"Display a tiny image preview",circle:"Circle",circle_label:"Display as a circle"},labels:{labels:"Labels",description:"Display either a single or a list of labels",default_foreground:"Default Foreground",default_background:"Default Background",format_label:"Format each label",show_as_dot:"Show As Dot",choices_value_placeholder:"Enter a value...",choices_text_placeholder:"Enter a text..."},"mime-type":{"mime-type":"MIME Type",description:"Show the MIME-Type of a file",extension_only:"Extension Only",extension_only_label:"Only show the file extension"},rating:{rating:"Rating",description:"Visualize a number as stars relative to the max-value",simple:"Simple",simple_label:"Show stars in a simple format"},raw:{raw:"Raw Value"},"related-values":{"related-values":"Related Values",description:"Display relative values",display_template_configure_notice:"You can configure the display template after creating this field."},user:{user:"User",description:"Display a directus user",avatar:"Avatar",name:"Name",both:"Both",circle_label:"Show user in a circle"}},layouts:{cards:{cards:"Cards",image_source:"Image Source",image_fit:"Image Fit",crop:"Crop",contain:"Contain",title:"Title",subtitle:"Subtitle"},tabular:{tabular:"Table",spacing:"Spacing",comfortable:"Comfortable",compact:"Compact",cozy:"Cozy"},calendar:{calendar:"Calendar",start_date_field:"Start Date Field",end_date_field:"End Date Field",optional:"Optional",first_day:"First Day of the Week"},map:{map:"Map",basemap:"Basemap",layers:"Layers",cluster_options:"Clustering options",cluster:"Cluster Nearby Data",cluster_radius:"Cluster radius",cluster_minpoints:"Cluster minimum size",cluster_maxzoom:"Maximum zoom for clustering",field:"Geospatial Field",invalid_geometry:"Invalid geometry",find_location:"Find location...",default_template:"Using Collection Default...",no_compatible_fields:"No compatible fields"},kanban:{name:"Kanban,",group_field:"Group By,",group_field_placeholder:"Field to group by...,",group_title:"Group Title,",group_title_placeholder:"Field for group titles...,",title:"Card Title,",title_placeholder:"Optional title field...,",text:"Card Text,",text_placeholder:"Optional text field...,",date:"Card Date,",date_placeholder:"Optional date field...,",tags:"Card Tags,",tags_placeholder:"Optional tags field...,",user:"Card User,",user_placeholder:"Optional user field...,",image:"Card Image,",image_placeholder:"Optional image field...,",image_fit:"Card Image Fit,",crop:"Crop,",advanced:"Advanced,",edit_group:"Edit Group,",delete_group:"Delete Group,",add_group:"Add Group,",add_group_placeholder:"Enter a new group title...,",show_ungrouped:"Show Ungrouped,",show:"Show,",no_group:"No Group,",not_all_loaded:"Could only load the first 1000 items."}},panels:{metric:{name:"Metric",description:"Show a single value based on a query",field:"Field"},time_series:{name:"Time Series",description:"Render a line chart based on values over time",date_field:"Date Field",value_field:"Value Field",fill_type:"Fill Type",curve_type:"Curve Type"},label:{name:"Label",description:"Show some text"},list:{name:"List",description:"Filter and list fields from a collection"},barchart:{name:"Bar Chart",description:"Bar or column charts for comparing groups of values",select_field:"You must select a field.",select_collection:"You must select a collection.",select_x_axis:"You must select an X-Axis.",function:"Function",horizontal:"Horizontal",x_axis_grouping:"X-Axis Group Aggregation",x_axis:"X-Axis",y_axis_function:"Y-Axis Function",y_axis:"Y-Axis",show_x_axis:"Show X-Axis",show_y_axis:"Show Y-Axis",show_data_label:"Show Data Label",group_by:"Grouped By",group_and_function:"You must include or omit both a group and a function.",y_axis_NaN:"The Y axis must be a number.",y_axis_conditional_one:"The value for condition",y_axis_conditional_two:"must be a number."},linechart:{name:"Line Chart",description:"Line chart for comparing change of a field.",select_field:"You must select a field.",select_collection:"You must select a collection.",select_x_axis:"You must select an X-Axis.",function:"Function",x_axis:"X-Axis",x_axis_decimals:"X-Axis Decimals",disabled_no_grouping:"Disabled when no grouping is selected.",y_axis:"Y-Axis",datasets:"Datasets",show_legend:"Show Legend",show_marker:"Show Tooltip Marker",include_dataset:"You must include atleast one dataset.",include_y_axis:"You must include a Y-Axis for each dataset when no group is specified.",group_and_function:"You must include or omit both a group and a function.",smooth:"Smooth",straight:"Straight",step_line:"Step Line"},meter:{description:"Meter for tracking values",name:"Meter",arc:"Arc",stroke_width:"Stroke Width",select_max_value:"You must select a maximum value.",max_greater_than_zero:"The maximum must be greater than 0.",select_field:"You must select a field.",select_collection:"You must select a collection.",function:"Function",thin:"Thin",medium:"Medium",broad:"Broad"},piechart:{name:"Pie or Donut Chart",description:"Circular chart showing the ratios of groups on a column.",function:"Function",donut:"Donut",labels:"Show Labels",legend:"Show Legend",right:"Right",bottom:"Bottom",monochrome:"Monochrome",monochrome_color:"Monochrome Color"},variable:{name:"Global Variable",description:"Set a global value for use in other Panels' filters",variable_key:"Variable Key"}},triggers:{common:{response_body:"Response Body",response_body_all:"All Data",response_body_last:"Data of Last Operation"},event:{name:"Event Hook",description:"Triggers on platform or data events",action:"Action (Non-Blocking)",filter:"Filter (Blocking)"},webhook:{name:"Webhook",description:"Triggers on an incoming HTTP request",method:"Method",async:"Asynchronous"},operation:{name:"Another Flow",description:"Triggered by another Flow, for chaining",preview:"Triggered by an operation in a different Flow"},schedule:{name:"Schedule (CRON)",description:"Triggers at regular points in time",cron:"Interval"},manual:{name:"Manual",description:"Triggers on manual run within selected collection(s)",collection_and_item:"Collection & Item Pages",collection_only:"Collection Page Only",item_only:"Item Page Only"}},a_flow_uuid:"A Flow's Primary Key UUID...",any_string_or_json:"Any string or JSON...",item_payload_placeholder:"This is the JSON used to update the item's field values...",operation_variables_note:"You can access flow data with variables such as **{'{'}{'{'}$last{'}'}{'}'}**, **{'{'}{'{'}$trigger{'}'}{'}'}** and **{'{'}{'{'}$accountability{'}'}{'}'}**, or reference previous operations using **{'{'}{'{'}operation_key{'}'}{'}'}**.'",operations:{condition:{name:"Condition",description:"Route a flow based on If / Else logic"},exec:{name:"Run Script",description:"Execute arbitrary code to modify the payload",modules:"The following **Node modules** can be used:"},"item-create":{name:"Create Data",description:"Create items in the database",payload:"Payload",emit_events:"Emit Events"},"item-delete":{name:"Delete Data",description:"Delete items in the database",emit_events:"Emit Events",key:"IDs",query:"Query"},"item-read":{name:"Read Data",description:"Read items from the database",key:"IDs",query:"Query",emit_events:"Emit Events"},"item-update":{name:"Update Data",description:"Update items in the database",emit_events:"Emit Events",key:"IDs",payload:"Payload",query:"Query"},log:{name:"Log to Console",description:"Output something to the console",message:"Message",message_placeholder:"Enter a message to show in the console..."},mail:{name:"Send Email",description:"Send an email to one or more people",to:"To",to_placeholder:"Add e-mail addresses and press enter...",body:"Body"},notification:{name:"Send Notification",description:"Send an in-app notification to one or more users",recipient:"User",recipient_placeholder:"Add user UUID and press enter...",message:"Message"},request:{name:"Webhook / Request URL",description:"Make a request to a URL",url:"URL",url_placeholder:"https://example.com/example",method:"Method",data:"Data",headers:"Headers",header:"Header",header_placeholder:"Authorization...",value_placeholder:"Bearer eyJhbGciOi..."},sleep:{name:"Sleep",description:"Wait a given number of milliseconds",milliseconds:"Milliseconds"},transform:{name:"Transform Payload",description:"Alter the Flow's JSON payload"},trigger:{name:"Trigger Flow",description:"Pass this data to another flow",flows:"Flows",flow:"Flow",data:"Data"}}},iE=pe,TR=pe.identifier,DR=pe.avatar,IR=pe.application,MR=pe.default_provider,LR=pe.method,PR=pe.published,FR=pe.draft,RR=pe.archived,OR=pe.modules,$R=pe.module_bar,zR=pe.logs,jR=pe.reset_width,VR=pe.tile_size,NR=pe.edit_field,BR=pe.conditions,UR=pe.location,HR=pe.condition_rules,qR=pe.input,WR=pe.maps,GR=pe.switch_user,YR=pe.item_creation,XR=pe.item_revision,KR=pe.enter_a_name,ZR=pe.duplicate_field,JR=pe.half_width,QR=pe.full_width,eO=pe.group,tO=pe.export_items,nO=pe.and,iO=pe.or,rO=pe.init,aO=pe.dataset_too_large_currently_showing_n_items,oO=pe.modifier,sO=pe.custom,lO=pe.hook,cO=pe.fill_width,uO=pe.field_name_translations,dO=pe.enter_password_to_enable_tfa,fO=pe.add_field,pO=pe.role_name,hO=pe.branch,mO=pe.leaf,vO=pe.indeterminate,gO=pe.edit_collection,yO=pe.exclusive,_O=pe.children,bO=pe.db_only_click_to_configure,wO=pe.show_active_items,xO=pe.show_archived_items,kO=pe.show_all_items,SO=pe.edited,CO=pe.required,EO=pe.required_for_app_access,AO=pe.requires_value,TO=pe.create_preset,DO=pe.create_panel,IO=pe.create_role,MO=pe.create_user,LO=pe.message,PO=pe.delete_panel,FO=pe.create_webhook,RO=pe.create_translation_string,OO=pe.no_translation_string,$O=pe.no_translation_string_copy,zO=pe.translation_string_key_placeholder,jO=pe.translation_string_translations_placeholder,VO=pe.edit_translation_string,NO=pe.delete_translation_string_copy,BO=pe.invite_users,UO=pe.invite,HO=pe.email_already_invited,qO=pe.subject,WO=pe.inbox,GO=pe.emails,YO=pe.connection_excellent,XO=pe.connection_good,KO=pe.connection_fair,ZO=pe.connection_poor,JO=pe.primary,QO=pe.rename_folder,e$=pe.delete_folder,t$=pe.prefix,n$=pe.suffix,i$=pe.reset_bookmark,r$=pe.update_bookmark,a$=pe.delete_bookmark,o$=pe.delete_bookmark_copy,s$=pe.delete_personal_bookmark,l$=pe.delete_role_bookmark,c$=pe.delete_global_bookmark,u$=pe.logoutReason,d$=pe.public_label,f$=pe.public_description,p$=pe.admin_description,h$=pe.not_allowed,m$=pe.directus_version,v$=pe.node_version,g$=pe.node_uptime,y$=pe.os_type,_$=pe.os_version,b$=pe.os_uptime,w$=pe.os_totalmem,x$=pe.archive,k$=pe.archive_confirm,S$=pe.archive_confirm_count,C$=pe.reset_system_permissions_to,E$=pe.reset_system_permissions_copy,A$=pe.the_following_are_minimum_permissions,T$=pe.app_access_minimum,D$=pe.recommended_defaults,I$=pe.unarchive,M$=pe.unarchive_confirm,L$=pe.nested_files_folders_will_be_moved,P$=pe.validation_errors_notice,F$=pe.validationError,R$=pe.all_access,O$=pe.no_access,$$=pe.use_custom,z$=pe.nullable,j$=pe.allow_null_value,V$=pe.allow_multiple,N$=pe.allow_multiple_to_be_open,B$=pe.enter_value_to_replace_nulls,U$=pe.field_standard,H$=pe.field_presentation,q$=pe.field_file,W$=pe.field_files,G$=pe.field_m2o,Y$=pe.field_m2a,X$=pe.field_o2m,K$=pe.field_m2m,Z$=pe.field_translations,J$=pe.field_group,Q$=pe.item_permissions,ez=pe.field_permissions,tz=pe.field_validation,nz=pe.field_presets,iz=pe.permissions_for_role,rz=pe.fields_for_role,az=pe.validation_for_role,oz=pe.presets_for_role,sz=pe.presentation_and_aliases,lz=pe.revision_post_create,cz=pe.revision_post_update,uz=pe.changes_made,dz=pe.no_relational_data,fz=pe.junction_field_location,pz=pe.top,hz=pe.bottom,mz=pe.hide_field,vz=pe.hide_field_on_detail,gz=pe.show_field_on_detail,yz=pe.delete_field,_z=pe.fields_and_layout,bz=pe.field_create_success,wz=pe.field_update_success,xz=pe.duplicate_where_to,kz=pe.language,Sz=pe.language_placeholder,Cz=pe.aggregate_function,Ez=pe.aggregate_precision,Az=pe.group_aggregation,Tz=pe.group_precision,Dz=pe.global,Iz=pe.admins_have_all_permissions,Mz=pe.camera,Lz=pe.show_zero,Pz=pe.create_in_advanced_field_creation_mode,Fz=pe.continue_in_advanced_field_creation_mode,Rz=pe.validation,Oz=pe.sum,$z=pe.sum_distinct,zz=pe.avg,jz=pe.avg_distinct,Vz=pe.count,Nz=pe.count_distinct,Bz=pe.min,Uz=pe.max,Hz=pe.exposure,qz=pe.shutter,Wz=pe.iso,Gz=pe.focal_length,Yz=pe.schema_setup_key,Xz=pe.create_field,Kz=pe.creating_new_field,Zz=pe.field_in_collection,Jz=pe.reset_page_preferences,Qz=pe.hidden_field,ej=pe.hidden_on_detail,tj=pe.disabled_editing_value,nj=pe.key,ij=pe.alias,rj=pe.bigInteger,aj=pe.boolean,oj=pe.date,sj=pe.date_range,lj=pe.datetime,cj=pe.dateTime,uj=pe.precision,dj=pe.decimal,fj=pe.float,pj=pe.integer,hj=pe.json,mj=pe.xml,vj=pe.string,gj=pe.text,yj=pe.time,_j=pe.timestamp,bj=pe.uuid,wj=pe.hash,xj=pe.geometry,kj=pe.not_available_for_type,Sj=pe.create_translations,Cj=pe.auto_refresh,Ej=pe.refresh_interval,Aj=pe.no_refresh,Tj=pe.refresh_interval_seconds,Dj=pe.refresh_interval_minutes,Ij=pe.auto_generate,Mj=pe.this_will_auto_setup_fields_relations,Lj=pe.click_here,Pj=pe.to_manually_setup_translations,Fj=pe.click_to_manage_translated_fields,Rj=pe.fields_group,Oj=pe.no_collections_found,$j=pe.new_data_alert,zj=pe.search_collection,jj=pe.new_field,Vj=pe.new_collection,Nj=pe.add_m2o_to_collection,Bj=pe.add_o2m_to_collection,Uj=pe.add_m2m_to_collection,Hj=pe.choose_a_type,qj=pe.determined_by_relationship,Wj=pe.add_note,Gj=pe.add_link,Yj=pe.custom_link,Xj=pe.default_value,Kj=pe.standard_field,Zj=pe.single_file,Jj=pe.multiple_files,Qj=pe.m2o_relationship,eV=pe.o2m_relationship,tV=pe.m2m_relationship,nV=pe.m2a_relationship,iV=pe.invalid_item,rV=pe.next,aV=pe.field_name,oV=pe.translations,sV=pe.no_translations,lV=pe.left_to_right,cV=pe.right_to_left,uV=pe.note,dV=pe.enter_a_value,fV=pe.enter_a_placeholder,pV=pe.length,hV=pe.soft_length,mV=pe.precision_scale,vV=pe.readonly,gV=pe.unique,yV=pe.updated_on,_V=pe.updated_by,bV=pe.primary_key,wV=pe.foreign_key,xV=pe.finish_setup,kV=pe.dismiss,SV=pe.toggle_raw_editor,CV=pe.raw_editor_placeholder,EV=pe.raw_value,AV=pe.copy_raw_value,TV=pe.copy_raw_value_success,DV=pe.copy_raw_value_fail,IV=pe.paste_raw_value,MV=pe.paste_raw_value_success,LV=pe.paste_raw_value_fail,PV=pe.view_raw_value,FV=pe.edit_raw_value,RV=pe.enter_raw_value,OV=pe.clear_value,$V=pe.clear_changes,zV=pe.reset_to_default,jV=pe.undo_changes,VV=pe.notifications,NV=pe.show_all_activity,BV=pe.page_not_found,UV=pe.page_not_found_body,HV=pe.confirm_revert,qV=pe.confirm_revert_body,WV=pe.display,GV=pe.settings_update_success,YV=pe.title,XV=pe.revision_delta_created,KV=pe.revision_delta_created_externally,ZV=pe.revision_delta_updated,JV=pe.revision_delta_deleted,QV=pe.revision_delta_reverted,eN=pe.revision_delta_update_message,tN=pe.revision_delta_other,nN=pe.revision_delta_by,iN=pe.presentation_text_values_cannot_be_reimported,rN=pe.download_page_as_csv,aN=pe.private_user,oN=pe.creation_preview,sN=pe.revision_preview,lN=pe.updates_made,cN=pe.leave_comment,uN=pe.post_comment_success,dN=pe.post_comment_updated,fN=pe.item_create_success,pN=pe.item_update_success,hN=pe.item_delete_success,mN=pe.this_collection,vN=pe.related_collection,gN=pe.related_collections,yN=pe.translations_collection,_N=pe.languages_collection,bN=pe.import_data_input_placeholder,wN=pe.import_data_button,xN=pe.import_data_indeterminate,kN=pe.import_data_success,SN=pe.import_data_error,CN=pe.label_import,EN=pe.label_export,AN=pe.import_export,TN=pe.format,DN=pe.last_page,IN=pe.last_access,MN=pe.fill_template,LN=pe.a_unique_table_name,PN=pe.a_unique_column_name,FN=pe.enable_custom_values,RN=pe.submit,ON=pe.move_to_folder,$N=pe.move,zN=pe.system,jN=pe.add_field_related,VN=pe.interface_label,NN=pe.today,BN=pe.yesterday,UN=pe.delete_comment,HN=pe.delete_share,qN=pe.functions,WN=pe.minutes,GN=pe.hours,YN=pe.month,XN=pe.year,KN=pe.select_all,ZN=pe.months,JN=pe.drag_mode,QN=pe.cancel_crop,eB=pe.original,tB=pe.url,nB=pe.import_label,iB=pe.file_details,rB=pe.dimensions,aB=pe.size,oB=pe.created,sB=pe.modified,lB=pe.checksum,cB=pe.owner,uB=pe.edited_by,dB=pe.folder,fB=pe.zoom,pB=pe.download,hB=pe.open,mB=pe.open_in_new_window,vB=pe.open_folder,gB=pe.foreground_color,yB=pe.background_color,_B=pe.upload_from_device,bB=pe.choose_from_library,wB=pe.import_from_url,xB=pe.replace_from_device,kB=pe.replace_from_library,SB=pe.replace_from_url,CB=pe.no_file_selected,EB=pe.download_file,AB=pe.open_file_in_tab,TB=pe.start_export,DB=pe.not_available_for_local_downloads,IB=pe.exporting_all_items_in_collection,MB=pe.exporting_limited_items_in_collection,LB=pe.exporting_no_items_to_export,PB=pe.exporting_download_hint,FB=pe.exporting_batch_hint,RB=pe.exporting_batch_hint_forced,OB=pe.collection_key,$B=pe.name,zB=pe.primary_key_field,jB=pe.type,VB=pe.creating_new_collection,NB=pe.created_by,BB=pe.created_on,UB=pe.creating_collection_info,HB=pe.creating_collection_system,qB=pe.auto_increment_integer,WB=pe.auto_increment_big_integer,GB=pe.generated_uuid,YB=pe.manual_string,XB=pe.save_and_create_new,KB=pe.save_and_stay,ZB=pe.save_as_copy,JB=pe.add_existing,QB=pe.creating_items,eU=pe.enable_create_button,tU=pe.selecting_items,nU=pe.enable_select_button,iU=pe.allow_duplicates,rU=pe.comments,aU=pe.no_comments,oU=pe.click_to_expand,sU=pe.select_item,lU=pe.no_items,cU=pe.search_items,uU=pe.disabled,dU=pe.information,fU=pe.report_bug,pU=pe.request_feature,hU=pe.request_body,mU=pe.interface_not_found,vU=pe.operation_not_found,gU=pe.reset_interface,yU=pe.display_not_found,_U=pe.reset_display,bU=pe.item_count,wU=pe.no_items_copy,xU=pe.file_count,kU=pe.no_files_copy,SU=pe.user_count,CU=pe.no_users_copy,EU=pe.webhooks_count,AU=pe.no_webhooks_copy,TU=pe.no_notifications,DU=pe.no_notifications_copy,IU=pe.activity_log,MU=pe.all_items,LU=pe.any,PU=pe.csv,FU=pe.no_collections,RU=pe.create_collection,OU=pe.no_collections_copy_admin,$U=pe.no_collections_copy,zU=pe.relationship_not_setup,jU=pe.display_template_not_setup,VU=pe.collection_field_not_setup,NU=pe.select_a_collection,BU=pe.select_a_field,UU=pe.active,HU=pe.move_to,qU=pe.copy,WU=pe.copy_to,GU=pe.no_other_dashboards_copy,YU=pe.inactive,XU=pe.users,KU=pe.activity,ZU=pe.activity_item,JU=pe.action,QU=pe.ip_address,eH=pe.user_agent,tH=pe.origin,nH=pe.webhooks,iH=pe.decimals,rH=pe.value_decimals,aH=pe.min_value,oH=pe.max_value,sH=pe.automatic,lH=pe.field_width,cH=pe.add_filter,uH=pe.upper_limit,dH=pe.lower_limit,fH=pe.user_directory,pH=pe.documentation,hH=pe.sidebar,mH=pe.duration,vH=pe.charset,gH=pe.second,yH=pe.file_moved,_H=pe.collection_created,bH=pe.modified_on,wH=pe.card_size,xH=pe.sort_field,kH=pe.add_sort_field,SH=pe.sort,CH=pe.status,EH=pe.remove,AH=pe.toggle_manual_sorting,TH=pe.bookmark_doesnt_exist,DH=pe.bookmark_doesnt_exist_copy,IH=pe.bookmark_doesnt_exist_cta,MH=pe.select_an_item,LH=pe.edit,PH=pe.enabled,FH=pe.disable_tfa,RH=pe.tfa_scan_code,OH=pe.enter_otp_to_disable_tfa,$H=pe.create_account,zH=pe.account_created_successfully,jH=pe.auto_fill,VH=pe.corresponding_field,NH=pe.errors,BH=pe.security,UH=pe.value_hashed,HH=pe.bookmark_name,qH=pe.create_bookmark,WH=pe.edit_bookmark,GH=pe.edit_personal_bookmark,YH=pe.edit_role_bookmark,XH=pe.edit_global_bookmark,KH=pe.cannot_edit_role_bookmarks,ZH=pe.cannot_edit_global_bookmarks,JH=pe.bookmarks,QH=pe.presets,eq=pe.unexpected_error,tq=pe.unexpected_error_copy,nq=pe.copy_details,iq=pe.no_app_access,rq=pe.no_app_access_copy,aq=pe.password_reset_sent,oq=pe.password_reset_successful,sq=pe.back,lq=pe.filter,cq=pe.edit_image,uq=pe.editing_image,dq=pe.square,fq=pe.free,pq=pe.flip_horizontal,hq=pe.flip_vertical,mq=pe.aspect_ratio,vq=pe.rotate,gq=pe.all_users,yq=pe.delete_collection,_q=pe.update_collection_success,bq=pe.delete_collection_success,wq=pe.make_collection_visible,xq=pe.make_collection_hidden,kq=pe.make_folder_visible,Sq=pe.make_folder_hidden,Cq=pe.goto_collection_content,Eq=pe.start_end_of_count_items,Aq=pe.start_end_of_count_filtered_items,Tq=pe.one_item,Dq=pe.one_filtered_item,Iq=pe.delete_collection_are_you_sure,Mq=pe.delete_folder_are_you_sure,Lq=pe.collections_shown,Pq=pe.visible_collections,Fq=pe.hidden_collections,Rq=pe.show_hidden_collections,Oq=pe.hide_hidden_collections,$q=pe.show_header,zq=pe.unmanaged_collections,jq=pe.system_collections,Vq=pe.placeholder,Nq=pe.icon_left,Bq=pe.icon_right,Uq=pe.count_other_revisions,Hq=pe.font,qq=pe.sans_serif,Wq=pe.serif,Gq=pe.monospace,Yq=pe.divider,Xq=pe.color,Kq=pe.circle,Zq=pe.empty_item,Jq=pe.log_in_with,Qq=pe.conditional_styles,eW=pe.advanced_settings,tW=pe.advanced_filter,nW=pe.delete_advanced_filter,iW=pe.change_advanced_filter_operator,rW=pe.advanced,aW=pe.operators,oW=pe.custom_validation_message,sW=pe.loading,lW=pe.drop_to_upload,cW=pe.item,uW=pe.items,dW=pe.upload_file,fW=pe.upload_file_indeterminate,pW=pe.upload_file_success,hW=pe.upload_files_indeterminate,mW=pe.upload_files_success,vW=pe.upload_pending,gW=pe.drag_file_here,yW=pe.click_to_browse,_W=pe.interface_options,bW=pe.layout_options,wW=pe.rows,xW=pe.columns,kW=pe.collection_setup,SW=pe.optional_system_fields,CW=pe.value_unique,EW=pe.all_activity,AW=pe.create_item,TW=pe.display_template,DW=pe.language_display_template,IW=pe.translations_display_template,MW=pe.n_items_selected,LW=pe.per_page,PW=pe.all_files,FW=pe.my_files,RW=pe.recent_files,OW=pe.create_folder,$W=pe.edit_folder,zW=pe.folder_name,jW=pe.folder_key,VW=pe.add_file,NW=pe.replace_file,BW=pe.no_results,UW=pe.no_results_copy,HW=pe.clear_filters,qW=pe.saves_automatically,WW=pe.role,GW=pe.edit_role,YW=pe.rule,XW=pe.user,KW=pe.no_presets,ZW=pe.no_presets_copy,JW=pe.no_presets_cta,QW=pe.presets_only,eG=pe.create,tG=pe.on_create,nG=pe.on_update,iG=pe.read,rG=pe.update,aG=pe.select_fields,oG=pe.format_text,sG=pe.format_value,lG=pe.abbreviate_value,cG=pe.operator,uG=pe.bold,dG=pe.toggle,fG=pe.icon_on,pG=pe.icon_off,hG=pe.label,mG=pe.flows,vG=pe.flow,gG=pe.select_a_flow,yG=pe.run_flow_on_current,_G=pe.run_flow_on_current_edited_confirm,bG=pe.run_flow_on_selected,wG=pe.run_flow_success,xG=pe.trigger,kG=pe.trigger_options,SG=pe.view_trigger,CG=pe.create_trigger,EG=pe.trigger_setup,AG=pe.change_trigger,TG=pe.flow_delete_confirm,DG=pe.set_flow_active,IG=pe.set_flow_inactive,MG=pe.edit_flow,LG=pe.delete_flow,PG=pe.no_other_flows_copy,FG=pe.no_flows,RG=pe.no_flows_copy,OG=pe.create_flow,$G=pe.creating_new_flow,zG=pe.updating_flow,jG=pe.flow_setup,VG=pe.flow_name,NG=pe.flow_tracking,BG=pe.flow_tracking_all,UG=pe.flow_tracking_activity,HG=pe.flow_tracking_null,qG=pe.start_flow,WG=pe.stop_flow,GG=pe.create_operation,YG=pe.edit_operation,XG=pe.code,KG=pe.operation_options,ZG=pe.operation_name,JG=pe.operation_key,QG=pe.operation_key_unique_error,eY=pe.operation_handle_resolve,tY=pe.operation_handle_reject,nY=pe.insights,iY=pe.dashboard,rY=pe.panel,aY=pe.panel_options,oY=pe.panel_header,sY=pe.panel_name_placeholder,lY=pe.panel_note_placeholder,cY=pe.panel_delete_confirm,uY=pe.dashboard_delete_confirm,dY=pe.edit_dashboard,fY=pe.delete_dashboard,pY=pe.visible,hY=pe.prefix_placeholder,mY=pe.suffix_placeholder,vY=pe.decimals_placeholder,gY=pe.no_dashboards,yY=pe.no_dashboards_copy,_Y=pe.create_dashboard,bY=pe.dashboard_name,wY=pe.no_data,xY=pe.no_data_in_flow,kY=pe.accountability,SY=pe.payload,CY=pe.details,EY=pe.full_screen,AY=pe.full_text_search,TY=pe.edit_panels,DY=pe.center_align,IY=pe.left_align,MY=pe.right_align,LY=pe.fit_to_screen,PY=pe.image_url,FY=pe.alt_text,RY=pe.media,OY=pe.quality,$Y=pe.width,zY=pe.height,jY=pe.transformation_preset_key,VY=pe.source,NY=pe.url_placeholder,BY=pe.display_text,UY=pe.display_text_placeholder,HY=pe.interface_group_text_and_numbers,qY=pe.interface_group_selection,WY=pe.interface_group_relational,GY=pe.interface_group_presentation,YY=pe.interface_group_groups,XY=pe.interface_group_other,KY=pe.tooltip,ZY=pe.tooltip_placeholder,JY=pe.unlimited,QY=pe.open_link_in,eX=pe.new_tab,tX=pe.current_tab,nX=pe.save_image,iX=pe.save_media,rX=pe.wysiwyg_options,aX=pe.dropdown,oX=pe.choices,sX=pe.choices_option_configured_incorrectly,lX=pe.deselect,cX=pe.deselect_all,uX=pe.other,dX=pe.adding_user,fX=pe.unknown_user,pX=pe.creating_in,hX=pe.editing_in,mX=pe.viewing_in,vX=pe.creating_unit,gX=pe.editing_unit,yX=pe.editing_in_batch,_X=pe.no_options_available,bX=pe.settings_data_model,wX=pe.settings_permissions,xX=pe.settings_project,kX=pe.settings_webhooks,SX=pe.settings_flows,CX=pe.settings_presets,EX=pe.settings_translation_strings,AX=pe.one_or_more_options_are_missing,TX=pe.scope,DX=pe.actions,IX=pe.select,MX=pe.layout,LX=pe.tree_view,PX=pe.changes_are_permanent,FX=pe.preset_name_placeholder,RX=pe.preset_search_placeholder,OX=pe.editing_preset,$X=pe.layout_preview,zX=pe.layout_setup,pe=pe.data,jX=pe.unsaved_changes,VX=pe.unsaved_changes_copy,NX=pe.discard_changes,BX=pe.discard_all_changes,UX=pe.discard_changes_copy,HX=pe.show_x_axis,qX=pe.show_y_axis,WX=pe.keep_editing,GX=pe.page_help_collections_overview,YX=pe.page_help_collections_collection,XX=pe.page_help_collections_item,KX=pe.page_help_activity_collection,ZX=pe.page_help_docs_global,JX=pe.page_help_files_collection,QX=pe.page_help_files_item,eK=pe.page_help_settings_project,tK=pe.page_help_settings_datamodel_collections,nK=pe.page_help_settings_datamodel_fields,iK=pe.page_help_settings_roles_collection,rK=pe.page_help_settings_roles_item,aK=pe.page_help_settings_presets_collection,oK=pe.page_help_settings_presets_item,sK=pe.page_help_settings_webhooks_collection,lK=pe.page_help_settings_webhooks_item,cK=pe.page_help_settings_flows_collection,uK=pe.page_help_settings_flows_item,dK=pe.page_help_settings_translation_strings_collection,fK=pe.page_help_users_collection,pK=pe.page_help_users_item,hK=pe.page_help_insights_overview,mK=pe.page_help_insights_dashboard,vK=pe.activity_feed,gK=pe.add_new,yK=pe.create_new,_K=pe.all,bK=pe.none,wK=pe.no_layout_collection_selected_yet,xK=pe.batch_delete_confirm,kK=pe.cancel,SK=pe.no_upscale,CK=pe.collection,EK=pe.collections,AK=pe.content,TK=pe.singleton,DK=pe.singleton_label,IK=pe.system_fields_locked,MK=pe.directus_collection,LK=pe.fields,PK=pe.field_options,FK=pe.no_fields_in_collection,RK=pe.no_value,OK=pe.do_nothing,$K=pe.generate_and_save_uuid,zK=pe.save_current_user_id,jK=pe.save_current_user_role,VK=pe.save_current_datetime,NK=pe.always_open,BK=pe.start_open,UK=pe.start_collapsed,HK=pe.block,qK=pe.inline,WK=pe.comment,GK=pe.shares,YK=pe.unlimited_usage,XK=pe.uses_left,KK=pe.no_shares,ZK=pe.new_share,JK=pe.expired,QK=pe.upcoming,eZ=pe.share,tZ=pe.share_item,nZ=pe.shared_with_you,iZ=pe.shared_enter_passcode,rZ=pe.shared_leave_blank_for_unlimited,aZ=pe.shared_times_remaining,oZ=pe.shared_last_remaining,sZ=pe.shared_uses_left,lZ=pe.share_access_page,cZ=pe.share_access_not_found,uZ=pe.share_access_not_found_desc,dZ=pe.share_access_not_found_title,fZ=pe.share_copy_link,pZ=pe.share_copy_link_success,hZ=pe.share_copy_link_error,mZ=pe.share_send_link,vZ=pe.relational_triggers,gZ=pe.referential_action_field_label_m2o,yZ=pe.referential_action_field_label_o2m,_Z=pe.referential_action_no_action,bZ=pe.referential_action_cascade,wZ=pe.referential_action_set_null,xZ=pe.referential_action_set_default,kZ=pe.choose_action,SZ=pe.continue_label,CZ=pe.continue_as,EZ=pe.editing_role,AZ=pe.creating_webhook,TZ=pe.default_label,DZ=pe.delete_label,IZ=pe.delete_are_you_sure,MZ=pe.delete_field_are_you_sure,LZ=pe.description,PZ=pe.done,FZ=pe.duplicate,RZ=pe.limit,OZ=pe.email,$Z=pe.embed,zZ=pe.fallback_icon,jZ=pe.field,VZ=pe.file,NZ=pe.file_library,BZ=pe.forgot_password,UZ=pe.hidden,HZ=pe.hidden_in_group,qZ=pe.icon,WZ=pe.info,GZ=pe.normal,YZ=pe.success,XZ=pe.warning,KZ=pe.danger,ZZ=pe.colors,JZ=pe.junction_collection,QZ=pe.latency,eJ=pe.login,tJ=pe.my_activity,nJ=pe.not_authenticated,iJ=pe.authenticated,rJ=pe.options,aJ=pe.otp,oJ=pe.password,sJ=pe.permissions,lJ=pe.relationship,cJ=pe.reset,uJ=pe.reset_password,dJ=pe.revisions,fJ=pe.no_revisions,pJ=pe.no_logs,hJ=pe.revert,mJ=pe.save,vJ=pe.schema,gJ=pe.search,yJ=pe.select_existing,_J=pe.select_field_type,bJ=pe.select_interface,wJ=pe.settings,xJ=pe.sign_in,kJ=pe.sign_out,SJ=pe.sign_out_confirm,CJ=pe.something_went_wrong,EJ=pe.sort_direction,AJ=pe.export_location,TJ=pe.export_started,DJ=pe.export_started_copy,IJ=pe.sort_asc,MJ=pe.sort_desc,LJ=pe.template,PJ=pe.require_value_to_be_set,FJ=pe.translation,RJ=pe.translation_placeholder,OJ=pe.value,$J=pe.view_project,zJ=pe.weeks,jJ=pe.report_error,VJ=pe.start,NJ=pe.table,BJ=pe.list,UJ=pe.search_filter,HJ=pe.enable_search_filter,qJ=pe.item_link,WJ=pe.show_link_to_item,GJ=pe.navigate_to_item,YJ=pe.undo_removed_item,XJ=pe.remove_item,KJ=pe.delete_item,ZJ=pe.interfaces,JJ=pe.displays,QJ=pe.layouts,eQ=pe.panels,tQ=pe.triggers,nQ=pe.a_flow_uuid,iQ=pe.any_string_or_json,rQ=pe.item_payload_placeholder,aQ=pe.operation_variables_note,oQ=pe.operations,sQ=Object.freeze(Object.defineProperty({__proto__:null,default:iE,identifier:TR,avatar:DR,application:IR,default_provider:MR,method:LR,published:PR,draft:FR,archived:RR,modules:OR,module_bar:$R,logs:zR,reset_width:jR,tile_size:VR,edit_field:NR,conditions:BR,location:UR,condition_rules:HR,input:qR,maps:WR,switch_user:GR,item_creation:YR,item_revision:XR,enter_a_name:KR,duplicate_field:ZR,half_width:JR,full_width:QR,group:eO,export_items:tO,and:nO,or:iO,init:rO,dataset_too_large_currently_showing_n_items:aO,modifier:oO,custom:sO,hook:lO,fill_width:cO,field_name_translations:uO,enter_password_to_enable_tfa:dO,add_field:fO,role_name:pO,branch:hO,leaf:mO,indeterminate:vO,edit_collection:gO,exclusive:yO,children:_O,db_only_click_to_configure:bO,show_active_items:wO,show_archived_items:xO,show_all_items:kO,edited:SO,required:CO,required_for_app_access:EO,requires_value:AO,create_preset:TO,create_panel:DO,create_role:IO,create_user:MO,message:LO,delete_panel:PO,create_webhook:FO,create_translation_string:RO,no_translation_string:OO,no_translation_string_copy:$O,translation_string_key_placeholder:zO,translation_string_translations_placeholder:jO,edit_translation_string:VO,delete_translation_string_copy:NO,invite_users:BO,invite:UO,email_already_invited:HO,subject:qO,inbox:WO,emails:GO,connection_excellent:YO,connection_good:XO,connection_fair:KO,connection_poor:ZO,primary:JO,rename_folder:QO,delete_folder:e$,prefix:t$,suffix:n$,reset_bookmark:i$,update_bookmark:r$,delete_bookmark:a$,delete_bookmark_copy:o$,delete_personal_bookmark:s$,delete_role_bookmark:l$,delete_global_bookmark:c$,logoutReason:u$,public_label:d$,public_description:f$,admin_description:p$,not_allowed:h$,directus_version:m$,node_version:v$,node_uptime:g$,os_type:y$,os_version:_$,os_uptime:b$,os_totalmem:w$,archive:x$,archive_confirm:k$,archive_confirm_count:S$,reset_system_permissions_to:C$,reset_system_permissions_copy:E$,the_following_are_minimum_permissions:A$,app_access_minimum:T$,recommended_defaults:D$,unarchive:I$,unarchive_confirm:M$,nested_files_folders_will_be_moved:L$,validation_errors_notice:P$,validationError:F$,all_access:R$,no_access:O$,use_custom:$$,nullable:z$,allow_null_value:j$,allow_multiple:V$,allow_multiple_to_be_open:N$,enter_value_to_replace_nulls:B$,field_standard:U$,field_presentation:H$,field_file:q$,field_files:W$,field_m2o:G$,field_m2a:Y$,field_o2m:X$,field_m2m:K$,field_translations:Z$,field_group:J$,item_permissions:Q$,field_permissions:ez,field_validation:tz,field_presets:nz,permissions_for_role:iz,fields_for_role:rz,validation_for_role:az,presets_for_role:oz,presentation_and_aliases:sz,revision_post_create:lz,revision_post_update:cz,changes_made:uz,no_relational_data:dz,junction_field_location:fz,top:pz,bottom:hz,hide_field:mz,hide_field_on_detail:vz,show_field_on_detail:gz,delete_field:yz,fields_and_layout:_z,field_create_success:bz,field_update_success:wz,duplicate_where_to:xz,language:kz,language_placeholder:Sz,aggregate_function:Cz,aggregate_precision:Ez,group_aggregation:Az,group_precision:Tz,global:Dz,admins_have_all_permissions:Iz,camera:Mz,show_zero:Lz,create_in_advanced_field_creation_mode:Pz,continue_in_advanced_field_creation_mode:Fz,validation:Rz,sum:Oz,sum_distinct:$z,avg:zz,avg_distinct:jz,count:Vz,count_distinct:Nz,min:Bz,max:Uz,exposure:Hz,shutter:qz,iso:Wz,focal_length:Gz,schema_setup_key:Yz,create_field:Xz,creating_new_field:Kz,field_in_collection:Zz,reset_page_preferences:Jz,hidden_field:Qz,hidden_on_detail:ej,disabled_editing_value:tj,key:nj,alias:ij,bigInteger:rj,boolean:aj,date:oj,date_range:sj,datetime:lj,dateTime:cj,precision:uj,decimal:dj,float:fj,integer:pj,json:hj,xml:mj,string:vj,text:gj,time:yj,timestamp:_j,uuid:bj,hash:wj,geometry:xj,not_available_for_type:kj,create_translations:Sj,auto_refresh:Cj,refresh_interval:Ej,no_refresh:Aj,refresh_interval_seconds:Tj,refresh_interval_minutes:Dj,auto_generate:Ij,this_will_auto_setup_fields_relations:Mj,click_here:Lj,to_manually_setup_translations:Pj,click_to_manage_translated_fields:Fj,fields_group:Rj,no_collections_found:Oj,new_data_alert:$j,search_collection:zj,new_field:jj,new_collection:Vj,add_m2o_to_collection:Nj,add_o2m_to_collection:Bj,add_m2m_to_collection:Uj,choose_a_type:Hj,determined_by_relationship:qj,add_note:Wj,add_link:Gj,custom_link:Yj,default_value:Xj,standard_field:Kj,single_file:Zj,multiple_files:Jj,m2o_relationship:Qj,o2m_relationship:eV,m2m_relationship:tV,m2a_relationship:nV,invalid_item:iV,next:rV,field_name:aV,translations:oV,no_translations:sV,left_to_right:lV,right_to_left:cV,note:uV,enter_a_value:dV,enter_a_placeholder:fV,length:pV,soft_length:hV,precision_scale:mV,readonly:vV,unique:gV,updated_on:yV,updated_by:_V,primary_key:bV,foreign_key:wV,finish_setup:xV,dismiss:kV,toggle_raw_editor:SV,raw_editor_placeholder:CV,raw_value:EV,copy_raw_value:AV,copy_raw_value_success:TV,copy_raw_value_fail:DV,paste_raw_value:IV,paste_raw_value_success:MV,paste_raw_value_fail:LV,view_raw_value:PV,edit_raw_value:FV,enter_raw_value:RV,clear_value:OV,clear_changes:$V,reset_to_default:zV,undo_changes:jV,notifications:VV,show_all_activity:NV,page_not_found:BV,page_not_found_body:UV,confirm_revert:HV,confirm_revert_body:qV,display:WV,settings_update_success:GV,title:YV,revision_delta_created:XV,revision_delta_created_externally:KV,revision_delta_updated:ZV,revision_delta_deleted:JV,revision_delta_reverted:QV,revision_delta_update_message:eN,revision_delta_other:tN,revision_delta_by:nN,presentation_text_values_cannot_be_reimported:iN,download_page_as_csv:rN,private_user:aN,creation_preview:oN,revision_preview:sN,updates_made:lN,leave_comment:cN,post_comment_success:uN,post_comment_updated:dN,item_create_success:fN,item_update_success:pN,item_delete_success:hN,this_collection:mN,related_collection:vN,related_collections:gN,translations_collection:yN,languages_collection:_N,import_data_input_placeholder:bN,import_data_button:wN,import_data_indeterminate:xN,import_data_success:kN,import_data_error:SN,label_import:CN,label_export:EN,import_export:AN,format:TN,last_page:DN,last_access:IN,fill_template:MN,a_unique_table_name:LN,a_unique_column_name:PN,enable_custom_values:FN,submit:RN,move_to_folder:ON,move:$N,system:zN,add_field_related:jN,interface_label:VN,today:NN,yesterday:BN,delete_comment:UN,delete_share:HN,functions:qN,minutes:WN,hours:GN,month:YN,year:XN,select_all:KN,months:ZN,drag_mode:JN,cancel_crop:QN,original:eB,url:tB,import_label:nB,file_details:iB,dimensions:rB,size:aB,created:oB,modified:sB,checksum:lB,owner:cB,edited_by:uB,folder:dB,zoom:fB,download:pB,open:hB,open_in_new_window:mB,open_folder:vB,foreground_color:gB,background_color:yB,upload_from_device:_B,choose_from_library:bB,import_from_url:wB,replace_from_device:xB,replace_from_library:kB,replace_from_url:SB,no_file_selected:CB,download_file:EB,open_file_in_tab:AB,start_export:TB,not_available_for_local_downloads:DB,exporting_all_items_in_collection:IB,exporting_limited_items_in_collection:MB,exporting_no_items_to_export:LB,exporting_download_hint:PB,exporting_batch_hint:FB,exporting_batch_hint_forced:RB,collection_key:OB,name:$B,primary_key_field:zB,type:jB,creating_new_collection:VB,created_by:NB,created_on:BB,creating_collection_info:UB,creating_collection_system:HB,auto_increment_integer:qB,auto_increment_big_integer:WB,generated_uuid:GB,manual_string:YB,save_and_create_new:XB,save_and_stay:KB,save_as_copy:ZB,add_existing:JB,creating_items:QB,enable_create_button:eU,selecting_items:tU,enable_select_button:nU,allow_duplicates:iU,comments:rU,no_comments:aU,click_to_expand:oU,select_item:sU,no_items:lU,search_items:cU,disabled:uU,information:dU,report_bug:fU,request_feature:pU,request_body:hU,interface_not_found:mU,operation_not_found:vU,reset_interface:gU,display_not_found:yU,reset_display:_U,item_count:bU,no_items_copy:wU,file_count:xU,no_files_copy:kU,user_count:SU,no_users_copy:CU,webhooks_count:EU,no_webhooks_copy:AU,no_notifications:TU,no_notifications_copy:DU,activity_log:IU,all_items:MU,any:LU,csv:PU,no_collections:FU,create_collection:RU,no_collections_copy_admin:OU,no_collections_copy:$U,relationship_not_setup:zU,display_template_not_setup:jU,collection_field_not_setup:VU,select_a_collection:NU,select_a_field:BU,active:UU,move_to:HU,copy:qU,copy_to:WU,no_other_dashboards_copy:GU,inactive:YU,users:XU,activity:KU,activity_item:ZU,action:JU,ip_address:QU,user_agent:eH,origin:tH,webhooks:nH,decimals:iH,value_decimals:rH,min_value:aH,max_value:oH,automatic:sH,field_width:lH,add_filter:cH,upper_limit:uH,lower_limit:dH,user_directory:fH,documentation:pH,sidebar:hH,duration:mH,charset:vH,second:gH,file_moved:yH,collection_created:_H,modified_on:bH,card_size:wH,sort_field:xH,add_sort_field:kH,sort:SH,status:CH,remove:EH,toggle_manual_sorting:AH,bookmark_doesnt_exist:TH,bookmark_doesnt_exist_copy:DH,bookmark_doesnt_exist_cta:IH,select_an_item:MH,edit:LH,enabled:PH,disable_tfa:FH,tfa_scan_code:RH,enter_otp_to_disable_tfa:OH,create_account:$H,account_created_successfully:zH,auto_fill:jH,corresponding_field:VH,errors:NH,security:BH,value_hashed:UH,bookmark_name:HH,create_bookmark:qH,edit_bookmark:WH,edit_personal_bookmark:GH,edit_role_bookmark:YH,edit_global_bookmark:XH,cannot_edit_role_bookmarks:KH,cannot_edit_global_bookmarks:ZH,bookmarks:JH,presets:QH,unexpected_error:eq,unexpected_error_copy:tq,copy_details:nq,no_app_access:iq,no_app_access_copy:rq,password_reset_sent:aq,password_reset_successful:oq,back:sq,filter:lq,edit_image:cq,editing_image:uq,square:dq,free:fq,flip_horizontal:pq,flip_vertical:hq,aspect_ratio:mq,rotate:vq,all_users:gq,delete_collection:yq,update_collection_success:_q,delete_collection_success:bq,make_collection_visible:wq,make_collection_hidden:xq,make_folder_visible:kq,make_folder_hidden:Sq,goto_collection_content:Cq,start_end_of_count_items:Eq,start_end_of_count_filtered_items:Aq,one_item:Tq,one_filtered_item:Dq,delete_collection_are_you_sure:Iq,delete_folder_are_you_sure:Mq,collections_shown:Lq,visible_collections:Pq,hidden_collections:Fq,show_hidden_collections:Rq,hide_hidden_collections:Oq,show_header:$q,unmanaged_collections:zq,system_collections:jq,placeholder:Vq,icon_left:Nq,icon_right:Bq,count_other_revisions:Uq,font:Hq,sans_serif:qq,serif:Wq,monospace:Gq,divider:Yq,color:Xq,circle:Kq,empty_item:Zq,log_in_with:Jq,conditional_styles:Qq,advanced_settings:eW,advanced_filter:tW,delete_advanced_filter:nW,change_advanced_filter_operator:iW,advanced:rW,operators:aW,custom_validation_message:oW,loading:sW,drop_to_upload:lW,item:cW,items:uW,upload_file:dW,upload_file_indeterminate:fW,upload_file_success:pW,upload_files_indeterminate:hW,upload_files_success:mW,upload_pending:vW,drag_file_here:gW,click_to_browse:yW,interface_options:_W,layout_options:bW,rows:wW,columns:xW,collection_setup:kW,optional_system_fields:SW,value_unique:CW,all_activity:EW,create_item:AW,display_template:TW,language_display_template:DW,translations_display_template:IW,n_items_selected:MW,per_page:LW,all_files:PW,my_files:FW,recent_files:RW,create_folder:OW,edit_folder:$W,folder_name:zW,folder_key:jW,add_file:VW,replace_file:NW,no_results:BW,no_results_copy:UW,clear_filters:HW,saves_automatically:qW,role:WW,edit_role:GW,rule:YW,user:XW,no_presets:KW,no_presets_copy:ZW,no_presets_cta:JW,presets_only:QW,create:eG,on_create:tG,on_update:nG,read:iG,update:rG,select_fields:aG,format_text:oG,format_value:sG,abbreviate_value:lG,operator:cG,bold:uG,toggle:dG,icon_on:fG,icon_off:pG,label:hG,flows:mG,flow:vG,select_a_flow:gG,run_flow_on_current:yG,run_flow_on_current_edited_confirm:_G,run_flow_on_selected:bG,run_flow_success:wG,trigger:xG,trigger_options:kG,view_trigger:SG,create_trigger:CG,trigger_setup:EG,change_trigger:AG,flow_delete_confirm:TG,set_flow_active:DG,set_flow_inactive:IG,edit_flow:MG,delete_flow:LG,no_other_flows_copy:PG,no_flows:FG,no_flows_copy:RG,create_flow:OG,creating_new_flow:$G,updating_flow:zG,flow_setup:jG,flow_name:VG,flow_tracking:NG,flow_tracking_all:BG,flow_tracking_activity:UG,flow_tracking_null:HG,start_flow:qG,stop_flow:WG,create_operation:GG,edit_operation:YG,code:XG,operation_options:KG,operation_name:ZG,operation_key:JG,operation_key_unique_error:QG,operation_handle_resolve:eY,operation_handle_reject:tY,insights:nY,dashboard:iY,panel:rY,panel_options:aY,panel_header:oY,panel_name_placeholder:sY,panel_note_placeholder:lY,panel_delete_confirm:cY,dashboard_delete_confirm:uY,edit_dashboard:dY,delete_dashboard:fY,visible:pY,prefix_placeholder:hY,suffix_placeholder:mY,decimals_placeholder:vY,no_dashboards:gY,no_dashboards_copy:yY,create_dashboard:_Y,dashboard_name:bY,no_data:wY,no_data_in_flow:xY,accountability:kY,payload:SY,details:CY,full_screen:EY,full_text_search:AY,edit_panels:TY,center_align:DY,left_align:IY,right_align:MY,fit_to_screen:LY,image_url:PY,alt_text:FY,media:RY,quality:OY,width:$Y,height:zY,transformation_preset_key:jY,source:VY,url_placeholder:NY,display_text:BY,display_text_placeholder:UY,interface_group_text_and_numbers:HY,interface_group_selection:qY,interface_group_relational:WY,interface_group_presentation:GY,interface_group_groups:YY,interface_group_other:XY,tooltip:KY,tooltip_placeholder:ZY,unlimited:JY,open_link_in:QY,new_tab:eX,current_tab:tX,save_image:nX,save_media:iX,wysiwyg_options:rX,dropdown:aX,choices:oX,choices_option_configured_incorrectly:sX,deselect:lX,deselect_all:cX,other:uX,adding_user:dX,unknown_user:fX,creating_in:pX,editing_in:hX,viewing_in:mX,creating_unit:vX,editing_unit:gX,editing_in_batch:yX,no_options_available:_X,settings_data_model:bX,settings_permissions:wX,settings_project:xX,settings_webhooks:kX,settings_flows:SX,settings_presets:CX,settings_translation_strings:EX,one_or_more_options_are_missing:AX,scope:TX,actions:DX,select:IX,layout:MX,tree_view:LX,changes_are_permanent:PX,preset_name_placeholder:FX,preset_search_placeholder:RX,editing_preset:OX,layout_preview:$X,layout_setup:zX,get data(){return pe},unsaved_changes:jX,unsaved_changes_copy:VX,discard_changes:NX,discard_all_changes:BX,discard_changes_copy:UX,show_x_axis:HX,show_y_axis:qX,keep_editing:WX,page_help_collections_overview:GX,page_help_collections_collection:YX,page_help_collections_item:XX,page_help_activity_collection:KX,page_help_docs_global:ZX,page_help_files_collection:JX,page_help_files_item:QX,page_help_settings_project:eK,page_help_settings_datamodel_collections:tK,page_help_settings_datamodel_fields:nK,page_help_settings_roles_collection:iK,page_help_settings_roles_item:rK,page_help_settings_presets_collection:aK,page_help_settings_presets_item:oK,page_help_settings_webhooks_collection:sK,page_help_settings_webhooks_item:lK,page_help_settings_flows_collection:cK,page_help_settings_flows_item:uK,page_help_settings_translation_strings_collection:dK,page_help_users_collection:fK,page_help_users_item:pK,page_help_insights_overview:hK,page_help_insights_dashboard:mK,activity_feed:vK,add_new:gK,create_new:yK,all:_K,none:bK,no_layout_collection_selected_yet:wK,batch_delete_confirm:xK,cancel:kK,no_upscale:SK,collection:CK,collections:EK,content:AK,singleton:TK,singleton_label:DK,system_fields_locked:IK,directus_collection:MK,fields:LK,field_options:PK,no_fields_in_collection:FK,no_value:RK,do_nothing:OK,generate_and_save_uuid:$K,save_current_user_id:zK,save_current_user_role:jK,save_current_datetime:VK,always_open:NK,start_open:BK,start_collapsed:UK,block:HK,inline:qK,comment:WK,shares:GK,unlimited_usage:YK,uses_left:XK,no_shares:KK,new_share:ZK,expired:JK,upcoming:QK,share:eZ,share_item:tZ,shared_with_you:nZ,shared_enter_passcode:iZ,shared_leave_blank_for_unlimited:rZ,shared_times_remaining:aZ,shared_last_remaining:oZ,shared_uses_left:sZ,share_access_page:lZ,share_access_not_found:cZ,share_access_not_found_desc:uZ,share_access_not_found_title:dZ,share_copy_link:fZ,share_copy_link_success:pZ,share_copy_link_error:hZ,share_send_link:mZ,relational_triggers:vZ,referential_action_field_label_m2o:gZ,referential_action_field_label_o2m:yZ,referential_action_no_action:_Z,referential_action_cascade:bZ,referential_action_set_null:wZ,referential_action_set_default:xZ,choose_action:kZ,continue_label:SZ,continue_as:CZ,editing_role:EZ,creating_webhook:AZ,default_label:TZ,delete_label:DZ,delete_are_you_sure:IZ,delete_field_are_you_sure:MZ,description:LZ,done:PZ,duplicate:FZ,limit:RZ,email:OZ,embed:$Z,fallback_icon:zZ,field:jZ,file:VZ,file_library:NZ,forgot_password:BZ,hidden:UZ,hidden_in_group:HZ,icon:qZ,info:WZ,normal:GZ,success:YZ,warning:XZ,danger:KZ,colors:ZZ,junction_collection:JZ,latency:QZ,login:eJ,my_activity:tJ,not_authenticated:nJ,authenticated:iJ,options:rJ,otp:aJ,password:oJ,permissions:sJ,relationship:lJ,reset:cJ,reset_password:uJ,revisions:dJ,no_revisions:fJ,no_logs:pJ,revert:hJ,save:mJ,schema:vJ,search:gJ,select_existing:yJ,select_field_type:_J,select_interface:bJ,settings:wJ,sign_in:xJ,sign_out:kJ,sign_out_confirm:SJ,something_went_wrong:CJ,sort_direction:EJ,export_location:AJ,export_started:TJ,export_started_copy:DJ,sort_asc:IJ,sort_desc:MJ,template:LJ,require_value_to_be_set:PJ,translation:FJ,translation_placeholder:RJ,value:OJ,view_project:$J,weeks:zJ,report_error:jJ,start:VJ,table:NJ,list:BJ,search_filter:UJ,enable_search_filter:HJ,item_link:qJ,show_link_to_item:WJ,navigate_to_item:GJ,undo_removed_item:YJ,remove_item:XJ,delete_item:KJ,interfaces:ZJ,displays:JJ,layouts:QJ,panels:eQ,triggers:tQ,a_flow_uuid:nQ,any_string_or_json:iQ,item_payload_placeholder:rQ,operation_variables_note:aQ,operations:oQ},Symbol.toStringTag,{value:"Module"}));const mr=iR({legacy:!1,locale:"en-US",fallbackLocale:"en-US",messages:{"en-US":iE},silentTranslationWarn:!0,datetimeFormats:ER,numberFormats:AR}),ww=["en-US"];function c1(e){var o,r,s,l,f;const t=mr.global.t("unexpected_error");let n=e;if(typeof e=="object"&&(n=(f=(l=(s=(r=(o=e==null?void 0:e.response)==null?void 0:o.data)==null?void 0:r.errors)==null?void 0:s[0])==null?void 0:l.extensions)==null?void 0:f.code),!e||!n===void 0)return t;const i=`errors.${n}`;return mr.global.te(i)===!1?t:mr.global.t(i)}function y3(e,t=0,n=["K","M","B","T"]){const i=e<0;e=Math.abs(e);let a=String(e);if(e>=1e3){const o=Math.pow(10,t);for(let r=n.length-1;r>=0;r--){const s=Math.pow(10,(r+1)*3);if(s<=e){e=Math.round(e*o/s)/o,e===1e3&&r<n.length-1&&(e=1,r++),a=e.toFixed(t)+n[r];break}}}return i&&(a=`-${a}`),a}function Lr(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ar(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Nr(e){Ar(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function y4(e,t){Ar(2,arguments);var n=Nr(e),i=Lr(t);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function _4(e,t){Ar(2,arguments);var n=Nr(e),i=Lr(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var a=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+i+1,0);var r=o.getDate();return a>=r?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}function x8(e,t){if(Ar(2,arguments),!t||typeof t!="object")return new Date(NaN);var n=t.years?Lr(t.years):0,i=t.months?Lr(t.months):0,a=t.weeks?Lr(t.weeks):0,o=t.days?Lr(t.days):0,r=t.hours?Lr(t.hours):0,s=t.minutes?Lr(t.minutes):0,l=t.seconds?Lr(t.seconds):0,f=Nr(e),p=i||n?_4(f,i+n*12):f,h=o||a?y4(p,o+a*7):p,v=s+r*60,_=l+v*60,y=_*1e3,k=new Date(h.getTime()+y);return k}function Z0(e,t){Ar(2,arguments);var n=Nr(e).getTime(),i=Lr(t);return new Date(n+i)}var lQ=36e5;function rE(e,t){Ar(2,arguments);var n=Lr(t);return Z0(e,n*lQ)}function Ev(e,t){Ar(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.weekStartsOn,o=a==null?0:Lr(a),r=n.weekStartsOn==null?o:Lr(n.weekStartsOn);if(!(r>=0&&r<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Nr(e),l=s.getDay(),f=(l<r?7:0)+l-r;return s.setDate(s.getDate()-f),s.setHours(0,0,0,0),s}function Av(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function xw(e){Ar(1,arguments);var t=Nr(e);return t.setHours(0,0,0,0),t}var cQ=6e4;function aE(e,t){Ar(2,arguments);var n=Lr(t);return Z0(e,n*cQ)}function oE(e,t){Ar(2,arguments);var n=Lr(t);return Z0(e,n*1e3)}function ob(e,t){Ar(2,arguments);var n=Lr(t),i=n*7;return y4(e,i)}function sE(e,t){Ar(2,arguments);var n=Lr(t);return _4(e,n*12)}function s0(e,t){Ar(2,arguments);var n=Nr(e),i=Nr(t),a=n.getTime()-i.getTime();return a<0?-1:a>0?1:a}function uQ(e){return Ar(1,arguments),e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function b4(e){if(Ar(1,arguments),!uQ(e)&&typeof e!="number")return!1;var t=Nr(e);return!isNaN(Number(t))}function lE(e,t){Ar(2,arguments);var n=xw(e),i=xw(t);return n.getTime()===i.getTime()}function dQ(e,t){Ar(2,arguments);var n=Nr(e),i=Nr(t),a=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return a*12+o}function fQ(e,t){return Ar(2,arguments),Nr(e).getTime()-Nr(t).getTime()}var kw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},pQ="trunc";function hQ(e){return e?kw[e]:kw[pQ]}function mQ(e){Ar(1,arguments);var t=Nr(e);return t.setHours(23,59,59,999),t}function vQ(e){Ar(1,arguments);var t=Nr(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function gQ(e){Ar(1,arguments);var t=Nr(e);return mQ(t).getTime()===vQ(t).getTime()}function yQ(e,t){Ar(2,arguments);var n=Nr(e),i=Nr(t),a=s0(n,i),o=Math.abs(dQ(n,i)),r;if(o<1)r=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-a*o);var s=s0(n,i)===-a;gQ(Nr(e))&&o===1&&s0(e,i)===1&&(s=!1),r=a*(o-Number(s))}return r===0?0:r}function _Q(e,t,n){Ar(2,arguments);var i=fQ(e,t)/1e3;return hQ(n==null?void 0:n.roundingMethod)(i)}var bQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wQ=function(e,t,n){var i,a=bQ[e];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},xQ=wQ;function W_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,i=e.formats[n]||e.formats[e.defaultWidth];return i}}var kQ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},SQ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},CQ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},EQ={date:W_({formats:kQ,defaultWidth:"full"}),time:W_({formats:SQ,defaultWidth:"full"}),dateTime:W_({formats:CQ,defaultWidth:"full"})},AQ=EQ,TQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},DQ=function(e,t,n,i){return TQ[e]},IQ=DQ;function F2(e){return function(t,n){var i=n||{},a=i.context?String(i.context):"standalone",o;if(a==="formatting"&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,s=i.width?String(i.width):r;o=e.formattingValues[s]||e.formattingValues[r]}else{var l=e.defaultWidth,f=i.width?String(i.width):e.defaultWidth;o=e.values[f]||e.values[l]}var p=e.argumentCallback?e.argumentCallback(t):t;return o[p]}}var MQ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},LQ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},PQ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},FQ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},RQ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},OQ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$Q=function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},zQ={ordinalNumber:$Q,era:F2({values:MQ,defaultWidth:"wide"}),quarter:F2({values:LQ,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:F2({values:PQ,defaultWidth:"wide"}),day:F2({values:FQ,defaultWidth:"wide"}),dayPeriod:F2({values:RQ,defaultWidth:"wide",formattingValues:OQ,defaultFormattingWidth:"wide"})},jQ=zQ;function R2(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var r=o[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?NQ(s,function(h){return h.test(r)}):VQ(s,function(h){return h.test(r)}),f;f=e.valueCallback?e.valueCallback(l):l,f=n.valueCallback?n.valueCallback(f):f;var p=t.slice(r.length);return{value:f,rest:p}}}function VQ(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function NQ(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function BQ(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var a=i[0],o=t.match(e.parsePattern);if(!o)return null;var r=e.valueCallback?e.valueCallback(o[0]):o[0];r=n.valueCallback?n.valueCallback(r):r;var s=t.slice(a.length);return{value:r,rest:s}}}var UQ=/^(\d+)(th|st|nd|rd)?/i,HQ=/\d+/i,qQ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},WQ={any:[/^b/i,/^(a|c)/i]},GQ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YQ={any:[/1/i,/2/i,/3/i,/4/i]},XQ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},KQ={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ZQ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},JQ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},QQ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},eee={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},tee={ordinalNumber:BQ({matchPattern:UQ,parsePattern:HQ,valueCallback:function(e){return parseInt(e,10)}}),era:R2({matchPatterns:qQ,defaultMatchWidth:"wide",parsePatterns:WQ,defaultParseWidth:"any"}),quarter:R2({matchPatterns:GQ,defaultMatchWidth:"wide",parsePatterns:YQ,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:R2({matchPatterns:XQ,defaultMatchWidth:"wide",parsePatterns:KQ,defaultParseWidth:"any"}),day:R2({matchPatterns:ZQ,defaultMatchWidth:"wide",parsePatterns:JQ,defaultParseWidth:"any"}),dayPeriod:R2({matchPatterns:QQ,defaultMatchWidth:"any",parsePatterns:eee,defaultParseWidth:"any"})},nee=tee,iee={code:"en-US",formatDistance:xQ,formatLong:AQ,formatRelative:IQ,localize:jQ,match:nee,options:{weekStartsOn:0,firstWeekContainsDate:1}},w4=iee;function sb(e,t){Ar(2,arguments);var n=Lr(t);return Z0(e,-n)}function Ma(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}var ree={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Ma(t==="yy"?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):Ma(n+1,2)},d:function(e,t){return Ma(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return Ma(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ma(e.getUTCHours(),t.length)},m:function(e,t){return Ma(e.getUTCMinutes(),t.length)},s:function(e,t){return Ma(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,n-3));return Ma(a,t.length)}},Ip=ree,aee=864e5;function oee(e){Ar(1,arguments);var t=Nr(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),a=n-i;return Math.floor(a/aee)+1}function Tv(e){Ar(1,arguments);var t=1,n=Nr(e),i=n.getUTCDay(),a=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function cE(e){Ar(1,arguments);var t=Nr(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var a=Tv(i),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var r=Tv(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=r.getTime()?n:n-1}function see(e){Ar(1,arguments);var t=cE(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var i=Tv(n);return i}var lee=6048e5;function uE(e){Ar(1,arguments);var t=Nr(e),n=Tv(t).getTime()-see(t).getTime();return Math.round(n/lee)+1}function jh(e,t){Ar(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.weekStartsOn,o=a==null?0:Lr(a),r=n.weekStartsOn==null?o:Lr(n.weekStartsOn);if(!(r>=0&&r<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Nr(e),l=s.getUTCDay(),f=(l<r?7:0)+l-r;return s.setUTCDate(s.getUTCDate()-f),s.setUTCHours(0,0,0,0),s}function lb(e,t){Ar(1,arguments);var n=Nr(e,t),i=n.getUTCFullYear(),a=t||{},o=a.locale,r=o&&o.options&&o.options.firstWeekContainsDate,s=r==null?1:Lr(r),l=a.firstWeekContainsDate==null?s:Lr(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(i+1,0,l),f.setUTCHours(0,0,0,0);var p=jh(f,t),h=new Date(0);h.setUTCFullYear(i,0,l),h.setUTCHours(0,0,0,0);var v=jh(h,t);return n.getTime()>=p.getTime()?i+1:n.getTime()>=v.getTime()?i:i-1}function cee(e,t){Ar(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.firstWeekContainsDate,o=a==null?1:Lr(a),r=n.firstWeekContainsDate==null?o:Lr(n.firstWeekContainsDate),s=lb(e,t),l=new Date(0);l.setUTCFullYear(s,0,r),l.setUTCHours(0,0,0,0);var f=jh(l,t);return f}var uee=6048e5;function dE(e,t){Ar(1,arguments);var n=Nr(e),i=jh(n,t).getTime()-cee(n,t).getTime();return Math.round(i/uee)+1}var Um={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dee={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return Ip.y(e,t)},Y:function(e,t,n,i){var a=lb(e,i),o=a>0?a:1-a;if(t==="YY"){var r=o%100;return Ma(r,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ma(o,t.length)},R:function(e,t){var n=cE(e);return Ma(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Ma(n,t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Ma(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Ma(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return Ip.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return Ma(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var a=dE(e,i);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):Ma(a,t.length)},I:function(e,t,n){var i=uE(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):Ma(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ip.d(e,t)},D:function(e,t,n){var i=oee(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Ma(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ma(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ma(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return Ma(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i=e.getUTCHours(),a;switch(i===12?a=Um.noon:i===0?a=Um.midnight:a=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i=e.getUTCHours(),a;switch(i>=17?a=Um.evening:i>=12?a=Um.afternoon:i>=4?a=Um.morning:a=Um.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Ip.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ip.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Ma(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):Ma(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ip.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ip.s(e,t)},S:function(e,t){return Ip.S(e,t)},X:function(e,t,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Cw(o);case"XXXX":case"XX":return Oh(o);case"XXXXX":case"XXX":default:return Oh(o,":")}},x:function(e,t,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(t){case"x":return Cw(o);case"xxxx":case"xx":return Oh(o);case"xxxxx":case"xxx":default:return Oh(o,":")}},O:function(e,t,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Sw(o,":");case"OOOO":default:return"GMT"+Oh(o,":")}},z:function(e,t,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Sw(o,":");case"zzzz":default:return"GMT"+Oh(o,":")}},t:function(e,t,n,i){var a=i._originalDate||e,o=Math.floor(a.getTime()/1e3);return Ma(o,t.length)},T:function(e,t,n,i){var a=i._originalDate||e,o=a.getTime();return Ma(o,t.length)}};function Sw(e,t){var n=e>0?"-":"+",i=Math.abs(e),a=Math.floor(i/60),o=i%60;if(o===0)return n+String(a);var r=t||"";return n+String(a)+r+Ma(o,2)}function Cw(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Ma(Math.abs(e)/60,2)}return Oh(e,t)}function Oh(e,t){var n=t||"",i=e>0?"-":"+",a=Math.abs(e),o=Ma(Math.floor(a/60),2),r=Ma(a%60,2);return i+o+n+r}var fee=dee;function Ew(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function fE(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function pee(e,t){var n=e.match(/(P+)(p+)?/),i=n[1],a=n[2];if(!a)return Ew(e,t);var o;switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ew(i,t)).replace("{{time}}",fE(a,t))}var hee={p:fE,P:pee},pE=hee,mee=["D","DD"],vee=["YY","YYYY"];function hE(e){return mee.indexOf(e)!==-1}function mE(e){return vee.indexOf(e)!==-1}function _3(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var gee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yee=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_ee=/^'([^]*?)'?$/,bee=/''/g,wee=/[a-zA-Z]/;function K1(e,t,n){Ar(2,arguments);var i=String(t),a=n||{},o=a.locale||w4,r=o.options&&o.options.firstWeekContainsDate,s=r==null?1:Lr(r),l=a.firstWeekContainsDate==null?s:Lr(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=o.options&&o.options.weekStartsOn,p=f==null?0:Lr(f),h=a.weekStartsOn==null?p:Lr(a.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var v=Nr(e);if(!b4(v))throw new RangeError("Invalid time value");var _=Av(v),y=sb(v,_),k={firstWeekContainsDate:l,weekStartsOn:h,locale:o,_originalDate:v},w=i.match(yee).map(function(D){var A=D[0];if(A==="p"||A==="P"){var L=pE[A];return L(D,o.formatLong,k)}return D}).join("").match(gee).map(function(D){if(D==="''")return"'";var A=D[0];if(A==="'")return xee(D);var L=fee[A];if(L)return!a.useAdditionalWeekYearTokens&&mE(D)&&_3(D,t,e),!a.useAdditionalDayOfYearTokens&&hE(D)&&_3(D,t,e),L(y,D,o.localize,k);if(A.match(wee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return D}).join("");return w}function xee(e){return e.match(_ee)[1].replace(bee,"'")}function vE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");t=t||{};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function gE(e){return vE({},e)}var Aw=1440,kee=2520,G_=43200,See=86400;function Cee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ar(2,arguments);var i=n.locale||w4;if(!i.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=s0(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var o=gE(n);o.addSuffix=Boolean(n.addSuffix),o.comparison=a;var r,s;a>0?(r=Nr(t),s=Nr(e)):(r=Nr(e),s=Nr(t));var l=_Q(s,r),f=(Av(s)-Av(r))/1e3,p=Math.round((l-f)/60),h;if(p<2)return n.includeSeconds?l<5?i.formatDistance("lessThanXSeconds",5,o):l<10?i.formatDistance("lessThanXSeconds",10,o):l<20?i.formatDistance("lessThanXSeconds",20,o):l<40?i.formatDistance("halfAMinute",null,o):l<60?i.formatDistance("lessThanXMinutes",1,o):i.formatDistance("xMinutes",1,o):p===0?i.formatDistance("lessThanXMinutes",1,o):i.formatDistance("xMinutes",p,o);if(p<45)return i.formatDistance("xMinutes",p,o);if(p<90)return i.formatDistance("aboutXHours",1,o);if(p<Aw){var v=Math.round(p/60);return i.formatDistance("aboutXHours",v,o)}else{if(p<kee)return i.formatDistance("xDays",1,o);if(p<G_){var _=Math.round(p/Aw);return i.formatDistance("xDays",_,o)}else if(p<See)return h=Math.round(p/G_),i.formatDistance("aboutXMonths",h,o)}if(h=yQ(s,r),h<12){var y=Math.round(p/G_);return i.formatDistance("xMonths",y,o)}else{var k=h%12,w=Math.floor(h/12);return k<3?i.formatDistance("aboutXYears",w,o):k<9?i.formatDistance("overXYears",w,o):i.formatDistance("almostXYears",w+1,o)}}var Tw=1e3*60,b3=60*24,Dw=b3*30,Iw=b3*365;function Eee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ar(2,arguments);var i=n.locale||w4;if(!i.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var a=s0(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var o=gE(n);o.addSuffix=Boolean(n.addSuffix),o.comparison=a;var r,s;a>0?(r=Nr(t),s=Nr(e)):(r=Nr(e),s=Nr(t));var l=n.roundingMethod==null?"round":String(n.roundingMethod),f;if(l==="floor")f=Math.floor;else if(l==="ceil")f=Math.ceil;else if(l==="round")f=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=s.getTime()-r.getTime(),h=p/Tw,v=Av(s)-Av(r),_=(p-v)/Tw,y;if(n.unit==null?h<1?y="second":h<60?y="minute":h<b3?y="hour":_<Dw?y="day":_<Iw?y="month":y="year":y=String(n.unit),y==="second"){var k=f(p/1e3);return i.formatDistance("xSeconds",k,o)}else if(y==="minute"){var w=f(h);return i.formatDistance("xMinutes",w,o)}else if(y==="hour"){var D=f(h/60);return i.formatDistance("xHours",D,o)}else if(y==="day"){var A=f(_/b3);return i.formatDistance("xDays",A,o)}else if(y==="month"){var L=f(_/Dw);return L===12&&n.unit!=="month"?i.formatDistance("xYears",1,o):i.formatDistance("xMonths",L,o)}else if(y==="year"){var T=f(_/Iw);return i.formatDistance("xYears",T,o)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function J2(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var n=Nr(e);if(!b4(n))throw new RangeError("Invalid time value");var i=t||{},a=i.format==null?"extended":String(i.format),o=i.representation==null?"complete":String(i.representation);if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var r="",s="",l=a==="extended"?"-":"",f=a==="extended"?":":"";if(o!=="time"){var p=Ma(n.getDate(),2),h=Ma(n.getMonth()+1,2),v=Ma(n.getFullYear(),4);r="".concat(v).concat(l).concat(h).concat(l).concat(p)}if(o!=="date"){var _=n.getTimezoneOffset();if(_!==0){var y=Math.abs(_),k=Ma(Math.floor(y/60),2),w=Ma(y%60,2),D=_<0?"+":"-";s="".concat(D).concat(k,":").concat(w)}else s="Z";var A=Ma(n.getHours(),2),L=Ma(n.getMinutes(),2),T=Ma(n.getSeconds(),2),z=r===""?"":"T",B=[A,L,T].join(f);r="".concat(r).concat(z).concat(B).concat(s)}return r}function Aee(e){Ar(1,arguments);var t=Nr(e),n=t.getDate();return n}function Tee(e){Ar(1,arguments);var t=Nr(e),n=t.getDay();return n}function Dee(e){Ar(1,arguments);var t=Nr(e),n=t.getFullYear(),i=t.getMonth(),a=new Date(0);return a.setFullYear(n,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Iee(e,t){var n,i;Ar(1,arguments);var a=Nr(e),o=a.getFullYear(),r=t==null||(n=t.locale)===null||n===void 0||(i=n.options)===null||i===void 0?void 0:i.firstWeekContainsDate,s=r==null?1:Lr(r),l=(t==null?void 0:t.firstWeekContainsDate)==null?s:Lr(t.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setFullYear(o+1,0,l),f.setHours(0,0,0,0);var p=Ev(f,t),h=new Date(0);h.setFullYear(o,0,l),h.setHours(0,0,0,0);var v=Ev(h,t);return a.getTime()>=p.getTime()?o+1:a.getTime()>=v.getTime()?o:o-1}function Mee(e,t){Ar(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.firstWeekContainsDate,o=a==null?1:Lr(a),r=n.firstWeekContainsDate==null?o:Lr(n.firstWeekContainsDate),s=Iee(e,t),l=new Date(0);l.setFullYear(s,0,r),l.setHours(0,0,0,0);var f=Ev(l,t);return f}var Lee=6048e5;function Pee(e,t){Ar(1,arguments);var n=Nr(e),i=Ev(n,t).getTime()-Mee(n,t).getTime();return Math.round(i/Lee)+1}function cb(e,t){Ar(2,arguments);var n=Lr(t);return y4(e,-n)}function Fee(e,t){Ar(2,arguments);var n=Lr(t);return _4(e,-n)}function Y_(e,t,n){Ar(2,arguments);var i=n||{},a=i.locale,o=a&&a.options&&a.options.weekStartsOn,r=o==null?0:Lr(o),s=i.weekStartsOn==null?r:Lr(i.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Nr(e),f=Lr(t),p=l.getUTCDay(),h=f%7,v=(h+7)%7,_=(v<s?7:0)+f-p;return l.setUTCDate(l.getUTCDate()+_),l}function Ree(e,t){Ar(2,arguments);var n=Lr(t);n%7===0&&(n=n-7);var i=1,a=Nr(e),o=a.getUTCDay(),r=n%7,s=(r+7)%7,l=(s<i?7:0)+n-o;return a.setUTCDate(a.getUTCDate()+l),a}function Oee(e,t){Ar(2,arguments);var n=Nr(e),i=Lr(t),a=uE(n)-i;return n.setUTCDate(n.getUTCDate()-a*7),n}function $ee(e,t,n){Ar(2,arguments);var i=Nr(e),a=Lr(t),o=dE(i,n)-a;return i.setUTCDate(i.getUTCDate()-o*7),i}var zee=36e5,jee=6e4,Vee=1e3,El={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},t1={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function zs(e,t,n){var i=t.match(e);if(!i)return null;var a=parseInt(i[0],10);return{value:n?n(a):a,rest:t.slice(i[0].length)}}function n1(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var i=n[1]==="+"?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,r=n[5]?parseInt(n[5],10):0;return{value:i*(a*zee+o*jee+r*Vee),rest:t.slice(n[0].length)}}function Mw(e,t){return zs(El.anyDigitsSigned,e,t)}function el(e,t,n){switch(e){case 1:return zs(El.singleDigit,t,n);case 2:return zs(El.twoDigits,t,n);case 3:return zs(El.threeDigits,t,n);case 4:return zs(El.fourDigits,t,n);default:return zs(new RegExp("^\\d{1,"+e+"}"),t,n)}}function ly(e,t,n){switch(e){case 1:return zs(El.singleDigitSigned,t,n);case 2:return zs(El.twoDigitsSigned,t,n);case 3:return zs(El.threeDigitsSigned,t,n);case 4:return zs(El.fourDigitsSigned,t,n);default:return zs(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function X_(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Lw(e,t){var n=t>0,i=n?t:1-t,a;if(i<=50)a=e||100;else{var o=i+50,r=Math.floor(o/100)*100,s=e>=o%100;a=e+r-(s?100:0)}return n?a:1-a}var Nee=[31,28,31,30,31,30,31,31,30,31,30,31],Bee=[31,29,31,30,31,30,31,31,30,31,30,31];function Pw(e){return e%400===0||e%4===0&&e%100!==0}var Uee={G:{priority:140,parse:function(e,t,n,i){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,i){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,i){var a=function(o){return{year:o,isTwoDigitYear:t==="yy"}};switch(t){case"y":return el(4,e,a);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return el(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,i){var a=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Lw(n.year,a);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var r=!("era"in t)||t.era===1?n.year:1-n.year;return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,i){var a=function(o){return{year:o,isTwoDigitYear:t==="YY"}};switch(t){case"Y":return el(4,e,a);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return el(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,i){var a=lb(e,i);if(n.isTwoDigitYear){var o=Lw(n.year,a);return e.setUTCFullYear(o,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),jh(e,i)}var r=!("era"in t)||t.era===1?n.year:1-n.year;return e.setUTCFullYear(r,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),jh(e,i)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,i){return ly(t==="R"?4:t.length,e)},set:function(e,t,n,i){var a=new Date(0);return a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0),Tv(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,i){return ly(t==="u"?4:t.length,e)},set:function(e,t,n,i){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,i){switch(t){case"Q":case"QQ":return el(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,i){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,i){switch(t){case"q":case"qq":return el(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,i){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,i){var a=function(o){return o-1};switch(t){case"M":return zs(El.month,e,a);case"MM":return el(2,e,a);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,i){var a=function(o){return o-1};switch(t){case"L":return zs(El.month,e,a);case"LL":return el(2,e,a);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,i){switch(t){case"w":return zs(El.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,i){return jh($ee(e,n,i),i)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,i){switch(t){case"I":return zs(El.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,i){return Tv(Oee(e,n,i),i)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,i){switch(t){case"d":return zs(El.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return el(t.length,e)}},validate:function(e,t,n){var i=e.getUTCFullYear(),a=Pw(i),o=e.getUTCMonth();return a?t>=1&&t<=Bee[o]:t>=1&&t<=Nee[o]},set:function(e,t,n,i){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,i){switch(t){case"D":case"DD":return zs(El.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return el(t.length,e)}},validate:function(e,t,n){var i=e.getUTCFullYear(),a=Pw(i);return a?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,i){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,i){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return e=Y_(e,n,i),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,i){var a=function(o){var r=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+r};switch(t){case"e":case"ee":return el(t.length,e,a);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return e=Y_(e,n,i),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,i){var a=function(o){var r=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+r};switch(t){case"c":case"cc":return el(t.length,e,a);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return e=Y_(e,n,i),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,i){var a=function(o){return o===0?7:o};switch(t){case"i":case"ii":return el(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:a})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,i){return e=Ree(e,n,i),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,i){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,i){return e.setUTCHours(X_(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,i){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,i){return e.setUTCHours(X_(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,i){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,i){return e.setUTCHours(X_(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,i){switch(t){case"h":return zs(El.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,i){var a=e.getUTCHours()>=12;return a&&n<12?e.setUTCHours(n+12,0,0,0):!a&&n===12?e.setUTCHours(0,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,i){switch(t){case"H":return zs(El.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,i){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,i){switch(t){case"K":return zs(El.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){var a=e.getUTCHours()>=12;return a&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,i){switch(t){case"k":return zs(El.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,i){var a=n<=24?n%24:n;return e.setUTCHours(a,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,i){switch(t){case"m":return zs(El.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,i){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,i){switch(t){case"s":return zs(El.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,i){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,i){var a=function(o){return Math.floor(o*Math.pow(10,-t.length+3))};return el(t.length,e,a)},set:function(e,t,n,i){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,i){switch(t){case"X":return n1(t1.basicOptionalMinutes,e);case"XX":return n1(t1.basic,e);case"XXXX":return n1(t1.basicOptionalSeconds,e);case"XXXXX":return n1(t1.extendedOptionalSeconds,e);case"XXX":default:return n1(t1.extended,e)}},set:function(e,t,n,i){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,i){switch(t){case"x":return n1(t1.basicOptionalMinutes,e);case"xx":return n1(t1.basic,e);case"xxxx":return n1(t1.basicOptionalSeconds,e);case"xxxxx":return n1(t1.extendedOptionalSeconds,e);case"xxx":default:return n1(t1.extended,e)}},set:function(e,t,n,i){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,i){return Mw(e)},set:function(e,t,n,i){return[new Date(n*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,i){return Mw(e)},set:function(e,t,n,i){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Hee=Uee,qee=10,Wee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gee=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yee=/^'([^]*?)'?$/,Xee=/''/g,Kee=/\S/,Zee=/[a-zA-Z]/;function u1(e,t,n,i){Ar(3,arguments);var a=String(e),o=String(t),r=i||{},s=r.locale||w4;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,f=l==null?1:Lr(l),p=r.firstWeekContainsDate==null?f:Lr(r.firstWeekContainsDate);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=s.options&&s.options.weekStartsOn,v=h==null?0:Lr(h),_=r.weekStartsOn==null?v:Lr(r.weekStartsOn);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(o==="")return a===""?Nr(n):new Date(NaN);var y={firstWeekContainsDate:p,weekStartsOn:_,locale:s},k=[{priority:qee,subPriority:-1,set:Jee,index:0}],w,D=o.match(Gee).map(function(Ve){var Ye=Ve[0];if(Ye==="p"||Ye==="P"){var ot=pE[Ye];return ot(Ve,s.formatLong,y)}return Ve}).join("").match(Wee),A=[];for(w=0;w<D.length;w++){var L=D[w];!r.useAdditionalWeekYearTokens&&mE(L)&&_3(L,o,e),!r.useAdditionalDayOfYearTokens&&hE(L)&&_3(L,o,e);var T=L[0],z=Hee[T];if(z){var B=z.incompatibleTokens;if(Array.isArray(B)){for(var W=void 0,N=0;N<A.length;N++){var K=A[N].token;if(B.indexOf(K)!==-1||K===T){W=A[N];break}}if(W)throw new RangeError("The format string mustn't contain `".concat(W.fullToken,"` and `").concat(L,"` at the same time"))}else if(z.incompatibleTokens==="*"&&A.length)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));A.push({token:T,fullToken:L});var re=z.parse(a,L,s.match,y);if(!re)return new Date(NaN);k.push({priority:z.priority,subPriority:z.subPriority||0,set:z.set,validate:z.validate,value:re.value,index:k.length}),a=re.rest}else{if(T.match(Zee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");if(L==="''"?L="'":T==="'"&&(L=Qee(L)),a.indexOf(L)===0)a=a.slice(L.length);else return new Date(NaN)}}if(a.length>0&&Kee.test(a))return new Date(NaN);var se=k.map(function(Ve){return Ve.priority}).sort(function(Ve,Ye){return Ye-Ve}).filter(function(Ve,Ye,ot){return ot.indexOf(Ve)===Ye}).map(function(Ve){return k.filter(function(Ye){return Ye.priority===Ve}).sort(function(Ye,ot){return ot.subPriority-Ye.subPriority})}).map(function(Ve){return Ve[0]}),ce=Nr(n);if(isNaN(ce))return new Date(NaN);var de=sb(ce,Av(ce)),ge={};for(w=0;w<se.length;w++){var Ce=se[w];if(Ce.validate&&!Ce.validate(de,Ce.value,y))return new Date(NaN);var Oe=Ce.set(de,ge,Ce.value,y);Oe[0]?(de=Oe[0],vE(ge,Oe[1])):de=Oe}return de}function Jee(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function Qee(e){return e.match(Yee)[1].replace(Xee,"'")}function ete(e,t){Ar(2,arguments);var n=Nr(e),i=Nr(t);return n.getFullYear()===i.getFullYear()}function yE(e){return Ar(1,arguments),ete(e,Date.now())}function _E(e){return Ar(1,arguments),lE(e,Date.now())}function bE(e){return Ar(1,arguments),lE(e,cb(Date.now(),1))}var wE=36e5,xE=6e4,tte=2,cy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},nte=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ite=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,rte=/^([+-])(\d{2})(?::?(\d{2}))?$/;function gf(e,t){Ar(1,arguments);var n=t||{},i=n.additionalDigits==null?tte:Lr(n.additionalDigits);if(i!==2&&i!==1&&i!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=ate(e),o;if(a.date){var r=ote(a.date,i);o=ste(r.restDateString,r.year)}if(isNaN(o)||!o)return new Date(NaN);var s=o.getTime(),l=0,f;if(a.time&&(l=lte(a.time),isNaN(l)||l===null))return new Date(NaN);if(a.timezone){if(f=cte(a.timezone),isNaN(f))return new Date(NaN)}else{var p=new Date(s+l),h=new Date(0);return h.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),h.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),h}return new Date(s+l+f)}function ate(e){var t={},n=e.split(cy.dateTimeDelimiter),i;if(n.length>2)return t;if(/:/.test(n[0])?(t.date=null,i=n[0]):(t.date=n[0],i=n[1],cy.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cy.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var a=cy.timezone.exec(i);a?(t.time=i.replace(a[1],""),t.timezone=a[1]):t.time=i}return t}function ote(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:null};var a=i[1]&&parseInt(i[1]),o=i[2]&&parseInt(i[2]);return{year:o==null?a:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function ste(e,t){if(t===null)return null;var n=e.match(nte);if(!n)return null;var i=!!n[4],a=O2(n[1]),o=O2(n[2])-1,r=O2(n[3]),s=O2(n[4]),l=O2(n[5])-1;if(i)return hte(t,s,l)?ute(t,s,l):new Date(NaN);var f=new Date(0);return!fte(t,o,r)||!pte(t,a)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(a,r)),f)}function O2(e){return e?parseInt(e):1}function lte(e){var t=e.match(ite);if(!t)return null;var n=K_(t[1]),i=K_(t[2]),a=K_(t[3]);return mte(n,i,a)?n*wE+i*xE+a*1e3:NaN}function K_(e){return e&&parseFloat(e.replace(",","."))||0}function cte(e){if(e==="Z")return 0;var t=e.match(rte);if(!t)return 0;var n=t[1]==="+"?-1:1,i=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return vte(i,a)?n*(i*wE+a*xE):NaN}function ute(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var a=i.getUTCDay()||7,o=(t-1)*7+n+1-a;return i.setUTCDate(i.getUTCDate()+o),i}var dte=[31,null,31,30,31,30,31,31,30,31,30,31];function kE(e){return e%400===0||e%4===0&&e%100}function fte(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(dte[t]||(kE(e)?29:28))}function pte(e,t){return t>=1&&t<=(kE(e)?366:365)}function hte(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function mte(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function vte(e,t){return t>=0&&t<=59}function gte(e,t){Ar(2,arguments);var n=Nr(e),i=Lr(t),a=n.getFullYear(),o=n.getDate(),r=new Date(0);r.setFullYear(a,i,15),r.setHours(0,0,0,0);var s=Dee(r);return n.setMonth(i,Math.min(o,s)),n}function uy(e,t){if(Ar(2,arguments),typeof t!="object"||t===null)throw new RangeError("values parameter must be an object");var n=Nr(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=gte(n,t.month)),t.date!=null&&n.setDate(Lr(t.date)),t.hours!=null&&n.setHours(Lr(t.hours)),t.minutes!=null&&n.setMinutes(Lr(t.minutes)),t.seconds!=null&&n.setSeconds(Lr(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Lr(t.milliseconds)),n)}function yte(e,t){Ar(2,arguments);var n=Lr(t);return rE(e,-n)}function _te(e,t){Ar(2,arguments);var n=Lr(t);return aE(e,-n)}function bte(e,t){Ar(2,arguments);var n=Lr(t);return oE(e,-n)}function wte(e,t){Ar(2,arguments);var n=Lr(t);return ob(e,-n)}function xte(e,t){Ar(2,arguments);var n=Lr(t);return sE(e,-n)}function SE(e,t){var n;e=lt.exports.clone(e);const i=t.startsWith("-");(i||t.startsWith("+"))&&(t=t.substring(1));const a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|months?|mth|mo|years?|yrs?|y)?$/i.exec(t);if(!a||!a[1])return;const o=parseFloat(a[1]);switch(((n=a[2])!==null&&n!==void 0?n:"days").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i?xte(e,o):sE(e,o);case"months":case"month":case"mth":case"mo":return i?Fee(e,o):_4(e,o);case"weeks":case"week":case"w":return i?wte(e,o):ob(e,o);case"days":case"day":case"d":return i?cb(e,o):y4(e,o);case"hours":case"hour":case"hrs":case"hr":case"h":return i?yte(e,o):rE(e,o);case"minutes":case"minute":case"mins":case"min":case"m":return i?_te(e,o):aE(e,o);case"seconds":case"second":case"secs":case"sec":case"s":return i?bte(e,o):oE(e,o);case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i?sb(e,o):Z0(e,o);default:return}}var CE=0 .constructor,kte=CE.isFinite;CE.isInteger;var Ste=[].constructor.isArray;function I0(e){return e!==null&&typeof e=="object"}function Cte(e){return typeof e=="function"}function Gy(e,t){return t===void 0&&(t=0),typeof e=="string"&&e.length>=t}function EE(e){return kte(e)}function k8(e){return Ste(e)}function Ete(e,t){return I0(e)&&t in e}var Ate=1e3,Fw="'\"`",Tte=function(){function e(t){this.size=t,this.reset()}return e.prototype.reset=function(){this.oldestIndex=0,this.map={},this.cachedKeys=new Array(this.size)},e.prototype.get=function(t){return this.map[t]},e.prototype.set=function(t,n){this.map[t]=n;var i=this.cachedKeys[this.oldestIndex];i!==void 0&&delete this.map[i],this.cachedKeys[this.oldestIndex]=t,this.oldestIndex++,this.oldestIndex%=this.size},e}(),Rw=new Tte(Ate);function Dte(e){var t=e.charAt(0),n=e.substr(-1);if(Fw.includes(t)||Fw.includes(n)){if(e.length<2||t!==n)throw new SyntaxError('Mismatching string quotation: "'+e+'"');return e.substring(1,e.length-1)}if(e.includes("["))throw new SyntaxError('Missing ] in varName "'+e+'"');return t==="+"?e.substr(1):e}function Ow(e,t,n){var i=t.trim();if(i==="")return e;if(i.startsWith("."))if(n){if(i=i.substr(1).trim(),i==="")return e}else throw new SyntaxError('Unexpected . at the start of "'+t+'"');else if(n)throw new SyntaxError('Missing . at the start of "'+t+'"');if(i.endsWith("."))throw new SyntaxError('Unexpected "." at the end of "'+t+'"');for(var a=i.split("."),o=0,r=a;o<r.length;o++){var s=r[o],l=s.trim();if(l==="")throw new SyntaxError('Empty prop name when parsing "'+t+'"');e.push(l)}return e}function x4(e){if(!Gy(e))throw new TypeError("Cannot parse path. Expected string. Got a "+typeof e);for(var t,n=0,i,a,o=!1,r=new Array(0),s=0;s<e.length&&(t=e.indexOf("[",s),t!==-1);s=n){if(n=e.indexOf("]",t),n===-1)throw new SyntaxError('Missing ] in varName "'+e+'"');if(a=e.substring(t+1,n).trim(),a.length===0)throw new SyntaxError("Unexpected token ]");n++,i=e.substring(s,t),Ow(r,i,o),r.push(Dte(a)),o=!0}var l=e.substring(n);return Ow(r,l,o)}function Ite(e){var t=Rw.get(e);return t===void 0&&(t=x4(e),Rw.set(e,t)),t}x4.cached=Ite;function ub(e,t,n){if(n===void 0&&(n={}),!I0(n))throw new TypeError("get expects an object option. Got "+typeof n);var i=n.depth,a=i===void 0?10:i;if(!EE(a)||a<=0)throw new RangeError("Expected a positive number for depth. Got "+a);var o=Array.isArray(t)?t:x4.cached(t),r=function(){return o.join(" > ")};if(o.length>a)throw new ReferenceError("The path cannot be deeper than "+a+' levels. Got "'+r()+'"');for(var s=e,l=0,f=o;l<f.length;l++){var p=f[l];if(Ete(s,p))s=s[p];else{if(n.propsExist)throw new ReferenceError(p+' is not defined in the scope at path: "'+r()+'"');return}}return s}var Mte=function(){function e(t,n){var i=this;if(n===void 0&&(n={}),this.tokens=t,this.options=n,this.render=function(a){a===void 0&&(a={});var o=i.tokens.varNames,r=o.length;i.cacheParsedPaths();for(var s=new Array(r),l=0;l<r;l++)s[l]=ub(a,i.toPathCache[l],i.options);return i.stringify(s)},this.renderFn=function(a,o){o===void 0&&(o={});var r=i.resolveVarNames(a,o);return i.stringify(r)},this.renderFnAsync=function(a,o){return o===void 0&&(o={}),Promise.all(i.resolveVarNames(a,o)).then(function(r){return i.stringify(r)})},!I0(t)||!k8(t.strings)||!k8(t.varNames)||t.strings.length!==t.varNames.length+1)throw new TypeError("Invalid tokens object");if(!I0(n))throw new TypeError("Options should be an object. Got a "+typeof n);n.validateVarNames&&this.cacheParsedPaths()}return e.prototype.cacheParsedPaths=function(){var t=this.tokens.varNames;if(this.toPathCache===void 0){this.toPathCache=new Array(t.length);for(var n=0;n<t.length;n++)this.toPathCache[n]=x4.cached(t[n])}},e.prototype.resolveVarNames=function(t,n){n===void 0&&(n={});var i=this.tokens.varNames;if(!Cte(t))throw new TypeError("Expected a resolver function. Got "+String(t));for(var a=i.length,o=new Array(a),r=0;r<a;r++)o[r]=t.call(null,i[r],n);return o},e.prototype.stringify=function(t){for(var n=this.tokens.strings,i=this.options.explicit,a=t.length,o="",r=0;r<a;r++){o+=n[r];var s=t[r];(i||s!=null)&&(o+=s)}return o+=n[a],o},e}();function Lte(e,t){if(t===void 0&&(t={}),!Gy(e))throw new TypeError("The template parameter must be a string. Got a "+typeof e);if(!I0(t))throw new TypeError("Options should be an object. Got a "+typeof t);var n=t.tags,i=n===void 0?["{{","}}"]:n,a=t.maxVarNameLength,o=a===void 0?1e3:a;if(!k8(i)||i.length!==2)throw TypeError("tags should be an array of two elements. Got "+String(i));var r=i[0],s=i[1];if(!Gy(r,1)||!Gy(s,1)||r===s)throw new TypeError('The open and close symbols should be two distinct non-empty strings. Got "'+r+'" and "'+s+'"');if(!EE(o)||o<=0)throw new Error("Expected a positive number for maxVarNameLength. Got "+o);for(var l=r.length,f=s.length,p,h=0,v,_=[],y=[],k=0;k<e.length&&(p=e.indexOf(r,k),p!==-1);){var w=p+l;if(h=e.substr(w,o+f).indexOf(s),h===-1)throw new SyntaxError('Missing "'+s+'" in the template for the "'+r+'" at position '+p+" within "+o+" characters");if(h+=w,v=e.substring(w,h).trim(),v.length===0)throw new SyntaxError('Unexpected "'+s+'" tag found at position '+p);if(v.includes(r))throw new SyntaxError('Variable names cannot have "'+r+'". But at position '+p+'. Got "'+v+'"');y.push(v),h+=f,_.push(e.substring(k,p)),k=h}return _.push(e.substring(h)),{strings:_,varNames:y}}function AE(e,t){t===void 0&&(t={});var n=Lte(e,t);return new Mte(n,t)}function v1(e,t,n){var i=AE(e,n);return i.render(t)}function TE(e,t,n,i){var a=AE(e,i);return a.renderFn(t,n)}function ev(e,t,n=[]){return Object.fromEntries(Object.entries(e).map(([i,a])=>{if(typeof a=="string"){const o=a.match(/^\{\{\s*([^}\s]+)\s*\}\}$/);if(o!==null&&o.length>0){const r=ub(t,o[1]);return r!==void 0||!n.includes(i)?[i,r]:[i,a]}}return[i,S8(a,t,n.includes(i))]}))}function Pte(e){return(t,n)=>{if(!n)return e?`{{${t}}}`:void 0;const i=ub(n,t);return i!==void 0||!e?typeof i=="object"?JSON.stringify(i):i:`{{${t}}}`}}function S8(e,t,n){return typeof e=="string"?TE(e,Pte(n),t,{explicit:!0}):Array.isArray(e)?e.map(i=>S8(i,t,n)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([i,a])=>[i,S8(a,t,n)])):e}function Uh(e,t,n){if(Array.isArray(e))return e.map(function(i,a){return lt.exports.isObjectLike(i)?Uh(i,t,n):t.call(n,i,a)});if(lt.exports.isObjectLike(e)){const i={};for(const a in e){const o=e[a];lt.exports.isObjectLike(o)?i[a]=Uh(o,t,n):i[a]=t.call(n,o,a)}return i}else return e}var DE={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(self,function(){return n={1238:a=>{a.exports={version:"17.4.2"}},7629:(a,o,r)=>{const s=r(375),l=r(8571),f=r(9474),p=r(1687),h=r(8652),v=r(8160),_=r(3292),y=r(6354),k=r(8901),w=r(9708),D=r(6914),A=r(2294),L=r(6133),T=r(1152),z=r(8863),B=r(2036),W={Base:class{constructor(N){this.type=N,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new A.Ids,this._preferences=null,this._refs=new L.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return s(typeof w.describe=="function","Manifest functionality disabled"),w.describe(this)}allow(...N){return v.verifyFlat(N,"allow"),this._values(N,"_valids")}alter(N){s(N&&typeof N=="object"&&!Array.isArray(N),"Invalid targets argument"),s(!this._inRuleset(),"Cannot set alterations inside a ruleset");const K=this.clone();K.$_terms.alterations=K.$_terms.alterations||[];for(const re in N){const se=N[re];s(typeof se=="function","Alteration adjuster for",re,"must be a function"),K.$_terms.alterations.push({target:re,adjuster:se})}return K.$_temp.ruleset=!1,K}artifact(N){return s(N!==void 0,"Artifact cannot be undefined"),s(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",N)}cast(N){return s(N===!1||typeof N=="string","Invalid to value"),s(N===!1||this._definition.cast[N],"Type",this.type,"does not support casting to",N),this.$_setFlag("cast",N===!1?void 0:N)}default(N,K){return this._default("default",N,K)}description(N){return s(N&&typeof N=="string","Description must be a non-empty string"),this.$_setFlag("description",N)}empty(N){const K=this.clone();return N!==void 0&&(N=K.$_compile(N,{override:!1})),K.$_setFlag("empty",N,{clone:!1})}error(N){return s(N,"Missing error"),s(N instanceof Error||typeof N=="function","Must provide a valid Error object or a function"),this.$_setFlag("error",N)}example(N,K={}){return s(N!==void 0,"Missing example"),v.assertOptions(K,["override"]),this._inner("examples",N,{single:!0,override:K.override})}external(N,K){return typeof N=="object"&&(s(!K,"Cannot combine options with description"),K=N.description,N=N.method),s(typeof N=="function","Method must be a function"),s(K===void 0||K&&typeof K=="string","Description must be a non-empty string"),this._inner("externals",{method:N,description:K},{single:!0})}failover(N,K){return this._default("failover",N,K)}forbidden(){return this.presence("forbidden")}id(N){return N?(s(typeof N=="string","id must be a non-empty string"),s(/^[^\.]+$/.test(N),"id cannot contain period character"),this.$_setFlag("id",N)):this.$_setFlag("id",void 0)}invalid(...N){return this._values(N,"_invalids")}label(N){return s(N&&typeof N=="string","Label name must be a non-empty string"),this.$_setFlag("label",N)}meta(N){return s(N!==void 0,"Meta cannot be undefined"),this._inner("metas",N,{single:!0})}note(...N){s(N.length,"Missing notes");for(const K of N)s(K&&typeof K=="string","Notes must be non-empty strings");return this._inner("notes",N)}only(N=!0){return s(typeof N=="boolean","Invalid mode:",N),this.$_setFlag("only",N)}optional(){return this.presence("optional")}prefs(N){s(N,"Missing preferences"),s(N.context===void 0,"Cannot override context"),s(N.externals===void 0,"Cannot override externals"),s(N.warnings===void 0,"Cannot override warnings"),s(N.debug===void 0,"Cannot override debug"),v.checkPreferences(N);const K=this.clone();return K._preferences=v.preferences(K._preferences,N),K}presence(N){return s(["optional","required","forbidden"].includes(N),"Unknown presence mode",N),this.$_setFlag("presence",N)}raw(N=!0){return this.$_setFlag("result",N?"raw":void 0)}result(N){return s(["raw","strip"].includes(N),"Unknown result mode",N),this.$_setFlag("result",N)}required(){return this.presence("required")}strict(N){const K=this.clone(),re=N!==void 0&&!N;return K._preferences=v.preferences(K._preferences,{convert:re}),K}strip(N=!0){return this.$_setFlag("result",N?"strip":void 0)}tag(...N){s(N.length,"Missing tags");for(const K of N)s(K&&typeof K=="string","Tags must be non-empty strings");return this._inner("tags",N)}unit(N){return s(N&&typeof N=="string","Unit name must be a non-empty string"),this.$_setFlag("unit",N)}valid(...N){v.verifyFlat(N,"valid");const K=this.allow(...N);return K.$_setFlag("only",!!K._valids,{clone:!1}),K}when(N,K){const re=this.clone();re.$_terms.whens||(re.$_terms.whens=[]);const se=_.when(re,N,K);if(!["any","link"].includes(re.type)){const ce=se.is?[se]:se.switch;for(const de of ce)s(!de.then||de.then.type==="any"||de.then.type===re.type,"Cannot combine",re.type,"with",de.then&&de.then.type),s(!de.otherwise||de.otherwise.type==="any"||de.otherwise.type===re.type,"Cannot combine",re.type,"with",de.otherwise&&de.otherwise.type)}return re.$_terms.whens.push(se),re.$_mutateRebuild()}cache(N){s(!this._inRuleset(),"Cannot set caching inside a ruleset"),s(!this._cache,"Cannot override schema cache"),s(this._flags.artifact===void 0,"Cannot cache a rule with an artifact");const K=this.clone();return K._cache=N||h.provider.provision(),K.$_temp.ruleset=!1,K}clone(){const N=Object.create(Object.getPrototypeOf(this));return this._assign(N)}concat(N){s(v.isSchema(N),"Invalid schema object"),s(this.type==="any"||N.type==="any"||N.type===this.type,"Cannot merge type",this.type,"with another type:",N.type),s(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),s(!N._inRuleset(),"Cannot concatenate a schema with open ruleset");let K=this.clone();if(this.type==="any"&&N.type!=="any"){const re=N.clone();for(const se of Object.keys(K))se!=="type"&&(re[se]=K[se]);K=re}K._ids.concat(N._ids),K._refs.register(N,L.toSibling),K._preferences=K._preferences?v.preferences(K._preferences,N._preferences):N._preferences,K._valids=B.merge(K._valids,N._valids,N._invalids),K._invalids=B.merge(K._invalids,N._invalids,N._valids);for(const re of N._singleRules.keys())K._singleRules.has(re)&&(K._rules=K._rules.filter(se=>se.keep||se.name!==re),K._singleRules.delete(re));for(const re of N._rules)N._definition.rules[re.method].multi||K._singleRules.set(re.name,re),K._rules.push(re);if(K._flags.empty&&N._flags.empty){K._flags.empty=K._flags.empty.concat(N._flags.empty);const re=Object.assign({},N._flags);delete re.empty,p(K._flags,re)}else if(N._flags.empty){K._flags.empty=N._flags.empty;const re=Object.assign({},N._flags);delete re.empty,p(K._flags,re)}else p(K._flags,N._flags);for(const re in N.$_terms){const se=N.$_terms[re];se?K.$_terms[re]?K.$_terms[re]=K.$_terms[re].concat(se):K.$_terms[re]=se.slice():K.$_terms[re]||(K.$_terms[re]=se)}return this.$_root._tracer&&this.$_root._tracer._combine(K,[this,N]),K.$_mutateRebuild()}extend(N){return s(!N.base,"Cannot extend type with another base"),k.type(this,N)}extract(N){return N=Array.isArray(N)?N:N.split("."),this._ids.reach(N)}fork(N,K){s(!this._inRuleset(),"Cannot fork inside a ruleset");let re=this;for(let se of[].concat(N))se=Array.isArray(se)?se:se.split("."),re=re._ids.fork(se,K,re);return re.$_temp.ruleset=!1,re}rule(N){const K=this._definition;v.assertOptions(N,Object.keys(K.modifiers)),s(this.$_temp.ruleset!==!1,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const re=this.$_temp.ruleset===null?this._rules.length-1:this.$_temp.ruleset;s(re>=0&&re<this._rules.length,"Cannot apply rules to empty ruleset");const se=this.clone();for(let ce=re;ce<se._rules.length;++ce){const de=se._rules[ce],ge=l(de);for(const Ce in N)K.modifiers[Ce](ge,N[Ce]),s(ge.name===de.name,"Cannot change rule name");se._rules[ce]=ge,se._singleRules.get(ge.name)===de&&se._singleRules.set(ge.name,ge)}return se.$_temp.ruleset=!1,se.$_mutateRebuild()}get ruleset(){s(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");const N=this.clone();return N.$_temp.ruleset=N._rules.length,N}get $(){return this.ruleset}tailor(N){N=[].concat(N),s(!this._inRuleset(),"Cannot tailor inside a ruleset");let K=this;if(this.$_terms.alterations)for(const{target:re,adjuster:se}of this.$_terms.alterations)N.includes(re)&&(K=se(K),s(v.isSchema(K),"Alteration adjuster for",re,"failed to return a schema object"));return K=K.$_modify({each:re=>re.tailor(N),ref:!1}),K.$_temp.ruleset=!1,K.$_mutateRebuild()}tracer(){return T.location?T.location(this):this}validate(N,K){return z.entry(N,this,K)}validateAsync(N,K){return z.entryAsync(N,this,K)}$_addRule(N){typeof N=="string"&&(N={name:N}),s(N&&typeof N=="object","Invalid options"),s(N.name&&typeof N.name=="string","Invalid rule name");for(const de in N)s(de[0]!=="_","Cannot set private rule properties");const K=Object.assign({},N);K._resolve=[],K.method=K.method||K.name;const re=this._definition.rules[K.method],se=K.args;s(re,"Unknown rule",K.method);const ce=this.clone();if(se){s(Object.keys(se).length===1||Object.keys(se).length===this._definition.rules[K.name].args.length,"Invalid rule definition for",this.type,K.name);for(const de in se){let ge=se[de];if(ge!==void 0){if(re.argsByName){const Ce=re.argsByName.get(de);if(Ce.ref&&v.isResolvable(ge))K._resolve.push(de),ce.$_mutateRegister(ge);else if(Ce.normalize&&(ge=Ce.normalize(ge),se[de]=ge),Ce.assert){const Oe=v.validateArg(ge,de,Ce);s(!Oe,Oe,"or reference")}}se[de]=ge}else delete se[de]}}return re.multi||(ce._ruleRemove(K.name,{clone:!1}),ce._singleRules.set(K.name,K)),ce.$_temp.ruleset===!1&&(ce.$_temp.ruleset=null),re.priority?ce._rules.unshift(K):ce._rules.push(K),ce}$_compile(N,K){return _.schema(this.$_root,N,K)}$_createError(N,K,re,se,ce,de={}){const ge=de.flags!==!1?this._flags:{},Ce=de.messages?D.merge(this._definition.messages,de.messages):this._definition.messages;return new y.Report(N,K,re,ge,Ce,se,ce)}$_getFlag(N){return this._flags[N]}$_getRule(N){return this._singleRules.get(N)}$_mapLabels(N){return N=Array.isArray(N)?N:N.split("."),this._ids.labels(N)}$_match(N,K,re,se){(re=Object.assign({},re)).abortEarly=!0,re._externals=!1,K.snapshot();const ce=!z.validate(N,this,K,re,se).errors;return K.restore(),ce}$_modify(N){return v.assertOptions(N,["each","once","ref","schema"]),A.schema(this,N)||this}$_mutateRebuild(){return s(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(N,{source:K,name:re,path:se,key:ce})=>{const de=this._definition[K][re]&&this._definition[K][re].register;de!==!1&&this.$_mutateRegister(N,{family:de,key:ce})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(N,{family:K,key:re}={}){this._refs.register(N,K),this._ids.register(N,{key:re})}$_property(N){return this._definition.properties[N]}$_reach(N){return this._ids.reach(N)}$_rootReferences(){return this._refs.roots()}$_setFlag(N,K,re={}){s(N[0]==="_"||!this._inRuleset(),"Cannot set flag inside a ruleset");const se=this._definition.flags[N]||{};if(f(K,se.default)&&(K=void 0),f(K,this._flags[N]))return this;const ce=re.clone!==!1?this.clone():this;return K!==void 0?(ce._flags[N]=K,ce.$_mutateRegister(K)):delete ce._flags[N],N[0]!=="_"&&(ce.$_temp.ruleset=!1),ce}$_parent(N,...K){return this[N][v.symbols.parent].call(this,...K)}$_validate(N,K,re){return z.validate(N,this,K,re)}_assign(N){N.type=this.type,N.$_root=this.$_root,N.$_temp=Object.assign({},this.$_temp),N.$_temp.whens={},N._ids=this._ids.clone(),N._preferences=this._preferences,N._valids=this._valids&&this._valids.clone(),N._invalids=this._invalids&&this._invalids.clone(),N._rules=this._rules.slice(),N._singleRules=l(this._singleRules,{shallow:!0}),N._refs=this._refs.clone(),N._flags=Object.assign({},this._flags),N._cache=null,N.$_terms={};for(const K in this.$_terms)N.$_terms[K]=this.$_terms[K]?this.$_terms[K].slice():null;N.$_super={};for(const K in this.$_super)N.$_super[K]=this._super[K].bind(N);return N}_bare(){const N=this.clone();N._reset();const K=N._definition.terms;for(const re in K){const se=K[re];N.$_terms[re]=se.init}return N.$_mutateRebuild()}_default(N,K,re={}){return v.assertOptions(re,"literal"),s(K!==void 0,"Missing",N,"value"),s(typeof K=="function"||!re.literal,"Only function value supports literal option"),typeof K=="function"&&re.literal&&(K={[v.symbols.literal]:!0,literal:K}),this.$_setFlag(N,K)}_generate(N,K,re){if(!this.$_terms.whens)return{schema:this};const se=[],ce=[];for(let Ce=0;Ce<this.$_terms.whens.length;++Ce){const Oe=this.$_terms.whens[Ce];if(Oe.concat){se.push(Oe.concat),ce.push("".concat(Ce,".concat"));continue}const Ve=Oe.ref?Oe.ref.resolve(N,K,re):N,Ye=Oe.is?[Oe]:Oe.switch,ot=ce.length;for(let Te=0;Te<Ye.length;++Te){const{is:it,then:Le,otherwise:De}=Ye[Te],ht="".concat(Ce).concat(Oe.switch?"."+Te:"");if(it.$_match(Ve,K.nest(it,"".concat(ht,".is")),re)){if(Le){const At=K.localize([...K.path,"".concat(ht,".then")],K.ancestors,K.schemas),{schema:Tt,id:Vt}=Le._generate(N,At,re);se.push(Tt),ce.push("".concat(ht,".then").concat(Vt?"(".concat(Vt,")"):""));break}}else if(De){const At=K.localize([...K.path,"".concat(ht,".otherwise")],K.ancestors,K.schemas),{schema:Tt,id:Vt}=De._generate(N,At,re);se.push(Tt),ce.push("".concat(ht,".otherwise").concat(Vt?"(".concat(Vt,")"):""));break}}if(Oe.break&&ce.length>ot)break}const de=ce.join(", ");if(K.mainstay.tracer.debug(K,"rule","when",de),!de)return{schema:this};if(!K.mainstay.tracer.active&&this.$_temp.whens[de])return{schema:this.$_temp.whens[de],id:de};let ge=this;this._definition.generate&&(ge=this._definition.generate(this,N,K,re));for(const Ce of se)ge=ge.concat(Ce);return this.$_root._tracer&&this.$_root._tracer._combine(ge,[this,...se]),this.$_temp.whens[de]=ge,{schema:ge,id:de}}_inner(N,K,re={}){s(!this._inRuleset(),"Cannot set ".concat(N," inside a ruleset"));const se=this.clone();return se.$_terms[N]&&!re.override||(se.$_terms[N]=[]),re.single?se.$_terms[N].push(K):se.$_terms[N].push(...K),se.$_temp.ruleset=!1,se}_inRuleset(){return this.$_temp.ruleset!==null&&this.$_temp.ruleset!==!1}_ruleRemove(N,K={}){if(!this._singleRules.has(N))return this;const re=K.clone!==!1?this.clone():this;re._singleRules.delete(N);const se=[];for(let ce=0;ce<re._rules.length;++ce){const de=re._rules[ce];de.name!==N||de.keep?se.push(de):re._inRuleset()&&ce<re.$_temp.ruleset&&--re.$_temp.ruleset}return re._rules=se,re}_values(N,K){v.verifyFlat(N,K.slice(1,-1));const re=this.clone(),se=N[0]===v.symbols.override;if(se&&(N=N.slice(1)),!re[K]&&N.length?re[K]=new B:se&&(re[K]=N.length?new B:null,re.$_mutateRebuild()),!re[K])return re;se&&re[K].override();for(const ce of N){s(ce!==void 0,"Cannot call allow/valid/invalid with undefined"),s(ce!==v.symbols.override,"Override must be the first value");const de=K==="_invalids"?"_valids":"_invalids";re[de]&&(re[de].remove(ce),re[de].length||(s(K==="_valids"||!re._flags.only,"Setting invalid value",ce,"leaves schema rejecting all values due to previous valid rule"),re[de]=null)),re[K].add(ce,re._refs)}return re}}};W.Base.prototype[v.symbols.any]={version:v.version,compile:_.compile,root:"$_root"},W.Base.prototype.isImmutable=!0,W.Base.prototype.deny=W.Base.prototype.invalid,W.Base.prototype.disallow=W.Base.prototype.invalid,W.Base.prototype.equal=W.Base.prototype.valid,W.Base.prototype.exist=W.Base.prototype.required,W.Base.prototype.not=W.Base.prototype.invalid,W.Base.prototype.options=W.Base.prototype.prefs,W.Base.prototype.preferences=W.Base.prototype.prefs,a.exports=new W.Base},8652:(a,o,r)=>{const s=r(375),l=r(8571),f=r(8160),p={max:1e3,supported:new Set(["undefined","boolean","number","string"])};o.provider={provision:h=>new p.Cache(h)},p.Cache=class{constructor(h={}){f.assertOptions(h,["max"]),s(h.max===void 0||h.max&&h.max>0&&isFinite(h.max),"Invalid max cache size"),this._max=h.max||p.max,this._map=new Map,this._list=new p.List}get length(){return this._map.size}set(h,v){if(h!==null&&!p.supported.has(typeof h))return;let _=this._map.get(h);if(_)return _.value=v,void this._list.first(_);_=this._list.unshift({key:h,value:v}),this._map.set(h,_),this._compact()}get(h){const v=this._map.get(h);if(v)return this._list.first(v),l(v.value)}_compact(){if(this._map.size>this._max){const h=this._list.pop();this._map.delete(h.key)}}},p.List=class{constructor(){this.tail=null,this.head=null}unshift(h){return h.next=null,h.prev=this.head,this.head&&(this.head.next=h),this.head=h,this.tail||(this.tail=h),h}first(h){h!==this.head&&(this._remove(h),this.unshift(h))}pop(){return this._remove(this.tail)}_remove(h){const{next:v,prev:_}=h;return v.prev=_,_&&(_.next=v),h===this.tail&&(this.tail=v),h.prev=null,h.next=null,h}}},8160:(a,o,r)=>{const s=r(375),l=r(7916),f=r(1238);let p,h;const v={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};o.version=f.version,o.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},o.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},o.assertOptions=function(_,y,k="Options"){s(_&&typeof _=="object"&&!Array.isArray(_),"Options must be of type object");const w=Object.keys(_).filter(D=>!y.includes(D));s(w.length===0,"".concat(k," contain unknown keys: ").concat(w))},o.checkPreferences=function(_){h=h||r(3378);const y=h.preferences.validate(_);if(y.error)throw new l([y.error.details[0].message])},o.compare=function(_,y,k){switch(k){case"=":return _===y;case">":return _>y;case"<":return _<y;case">=":return _>=y;case"<=":return _<=y}},o.default=function(_,y){return _===void 0?y:_},o.isIsoDate=function(_){return v.isoDate.test(_)},o.isNumber=function(_){return typeof _=="number"&&!isNaN(_)},o.isResolvable=function(_){return!!_&&(_[o.symbols.ref]||_[o.symbols.template])},o.isSchema=function(_,y={}){const k=_&&_[o.symbols.any];return!!k&&(s(y.legacy||k.version===o.version,"Cannot mix different versions of joi schemas"),!0)},o.isValues=function(_){return _[o.symbols.values]},o.limit=function(_){return Number.isSafeInteger(_)&&_>=0},o.preferences=function(_,y){p=p||r(6914),_=_||{},y=y||{};const k=Object.assign({},_,y);return y.errors&&_.errors&&(k.errors=Object.assign({},_.errors,y.errors),k.errors.wrap=Object.assign({},_.errors.wrap,y.errors.wrap)),y.messages&&(k.messages=p.compile(y.messages,_.messages)),delete k[o.symbols.prefs],k},o.tryWithPath=function(_,y,k={}){try{return _()}catch(w){throw w.path!==void 0?w.path=y+"."+w.path:w.path=y,k.append&&(w.message="".concat(w.message," (").concat(w.path,")")),w}},o.validateArg=function(_,y,{assert:k,message:w}){if(o.isSchema(k)){const D=k.validate(_);return D.error?D.error.message:void 0}if(!k(_))return y?"".concat(y," ").concat(w):w},o.verifyFlat=function(_,y){for(const k of _)s(!Array.isArray(k),"Method no longer accepts array arguments:",y)}},3292:(a,o,r)=>{const s=r(375),l=r(8160),f=r(6133),p={};o.schema=function(h,v,_={}){l.assertOptions(_,["appendPath","override"]);try{return p.schema(h,v,_)}catch(y){throw _.appendPath&&y.path!==void 0&&(y.message="".concat(y.message," (").concat(y.path,")")),y}},p.schema=function(h,v,_){s(v!==void 0,"Invalid undefined schema"),Array.isArray(v)&&(s(v.length,"Invalid empty array schema"),v.length===1&&(v=v[0]));const y=(k,...w)=>_.override!==!1?k.valid(h.override,...w):k.valid(...w);if(p.simple(v))return y(h,v);if(typeof v=="function")return h.custom(v);if(s(typeof v=="object","Invalid schema content:",typeof v),l.isResolvable(v))return y(h,v);if(l.isSchema(v))return v;if(Array.isArray(v)){for(const k of v)if(!p.simple(k))return h.alternatives().try(...v);return y(h,...v)}return v instanceof RegExp?h.string().regex(v):v instanceof Date?y(h.date(),v):(s(Object.getPrototypeOf(v)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),h.object().keys(v))},o.ref=function(h,v){return f.isRef(h)?h:f.create(h,v)},o.compile=function(h,v,_={}){l.assertOptions(_,["legacy"]);const y=v&&v[l.symbols.any];if(y)return s(_.legacy||y.version===l.version,"Cannot mix different versions of joi schemas:",y.version,l.version),v;if(typeof v!="object"||!_.legacy)return o.schema(h,v,{appendPath:!0});const k=p.walk(v);return k?k.compile(k.root,v):o.schema(h,v,{appendPath:!0})},p.walk=function(h){if(typeof h!="object")return null;if(Array.isArray(h)){for(const _ of h){const y=p.walk(_);if(y)return y}return null}const v=h[l.symbols.any];if(v)return{root:h[v.root],compile:v.compile};s(Object.getPrototypeOf(h)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const _ in h){const y=p.walk(h[_]);if(y)return y}return null},p.simple=function(h){return h===null||["boolean","string","number"].includes(typeof h)},o.when=function(h,v,_){if(_===void 0&&(s(v&&typeof v=="object","Missing options"),_=v,v=f.create(".")),Array.isArray(_)&&(_={switch:_}),l.assertOptions(_,["is","not","then","otherwise","switch","break"]),l.isSchema(v))return s(_.is===void 0,'"is" can not be used with a schema condition'),s(_.not===void 0,'"not" can not be used with a schema condition'),s(_.switch===void 0,'"switch" can not be used with a schema condition'),p.condition(h,{is:v,then:_.then,otherwise:_.otherwise,break:_.break});if(s(f.isRef(v)||typeof v=="string","Invalid condition:",v),s(_.not===void 0||_.is===void 0,'Cannot combine "is" with "not"'),_.switch===void 0){let k=_;_.not!==void 0&&(k={is:_.not,then:_.otherwise,otherwise:_.then,break:_.break});let w=k.is!==void 0?h.$_compile(k.is):h.$_root.invalid(null,!1,0,"").required();return s(k.then!==void 0||k.otherwise!==void 0,'options must have at least one of "then", "otherwise", or "switch"'),s(k.break===void 0||k.then===void 0||k.otherwise===void 0,"Cannot specify then, otherwise, and break all together"),_.is===void 0||f.isRef(_.is)||l.isSchema(_.is)||(w=w.required()),p.condition(h,{ref:o.ref(v),is:w,then:k.then,otherwise:k.otherwise,break:k.break})}s(Array.isArray(_.switch),'"switch" must be an array'),s(_.is===void 0,'Cannot combine "switch" with "is"'),s(_.not===void 0,'Cannot combine "switch" with "not"'),s(_.then===void 0,'Cannot combine "switch" with "then"');const y={ref:o.ref(v),switch:[],break:_.break};for(let k=0;k<_.switch.length;++k){const w=_.switch[k],D=k===_.switch.length-1;l.assertOptions(w,D?["is","then","otherwise"]:["is","then"]),s(w.is!==void 0,'Switch statement missing "is"'),s(w.then!==void 0,'Switch statement missing "then"');const A={is:h.$_compile(w.is),then:h.$_compile(w.then)};if(f.isRef(w.is)||l.isSchema(w.is)||(A.is=A.is.required()),D){s(_.otherwise===void 0||w.otherwise===void 0,'Cannot specify "otherwise" inside and outside a "switch"');const L=_.otherwise!==void 0?_.otherwise:w.otherwise;L!==void 0&&(s(y.break===void 0,"Cannot specify both otherwise and break"),A.otherwise=h.$_compile(L))}y.switch.push(A)}return y},p.condition=function(h,v){for(const _ of["then","otherwise"])v[_]===void 0?delete v[_]:v[_]=h.$_compile(v[_]);return v}},6354:(a,o,r)=>{const s=r(5688),l=r(8160),f=r(3328);o.Report=class{constructor(p,h,v,_,y,k,w){if(this.code=p,this.flags=_,this.messages=y,this.path=k.path,this.prefs=w,this.state=k,this.value=h,this.message=null,this.template=null,this.local=v||{},this.local.label=o.label(this.flags,this.state,this.prefs,this.messages),this.value===void 0||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const D=this.path[this.path.length-1];typeof D!="object"&&(this.local.key=D)}}_setTemplate(p){if(this.template=p,!this.flags.label&&this.path.length===0){const h=this._template(this.template,"root");h&&(this.local.label=h)}}toString(){if(this.message)return this.message;const p=this.code;if(!this.prefs.errors.render)return this.code;const h=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return h===void 0?'Error code "'.concat(p,'" is not defined, your custom type is missing the correct messages definition'):(this.message=h.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(p,h){return o.template(this.value,p,h||this.code,this.state,this.prefs)}},o.path=function(p){let h="";for(const v of p)typeof v!="object"&&(typeof v=="string"?(h&&(h+="."),h+=v):h+="[".concat(v,"]"));return h},o.template=function(p,h,v,_,y){if(!h)return;if(f.isTemplate(h))return v!=="root"?h:null;let k=y.errors.language;return l.isResolvable(k)&&(k=k.resolve(p,_,y)),k&&h[k]&&h[k][v]!==void 0?h[k][v]:h[v]},o.label=function(p,h,v,_){if(p.label)return p.label;if(!v.errors.label)return"";let y=h.path;return v.errors.label==="key"&&h.path.length>1&&(y=h.path.slice(-1)),o.path(y)||o.template(null,v.messages,"root",h,v)||_&&o.template(null,_,"root",h,v)||"value"},o.process=function(p,h,v){if(!p)return null;const{override:_,message:y,details:k}=o.details(p);if(_)return _;if(v.errors.stack)return new o.ValidationError(y,k,h);const w=Error.stackTraceLimit;Error.stackTraceLimit=0;const D=new o.ValidationError(y,k,h);return Error.stackTraceLimit=w,D},o.details=function(p,h={}){let v=[];const _=[];for(const y of p){if(y instanceof Error){if(h.override!==!1)return{override:y};const w=y.toString();v.push(w),_.push({message:w,type:"override",context:{error:y}});continue}const k=y.toString();v.push(k),_.push({message:k,path:y.path.filter(w=>typeof w!="object"),type:y.code,context:y.local})}return v.length>1&&(v=[...new Set(v)]),{message:v.join(". "),details:_}},o.ValidationError=class extends Error{constructor(p,h,v){super(p),this._original=v,this.details=h}static isError(p){return p instanceof o.ValidationError}},o.ValidationError.prototype.isJoi=!0,o.ValidationError.prototype.name="ValidationError",o.ValidationError.prototype.annotate=s.error},8901:(a,o,r)=>{const s=r(375),l=r(8571),f=r(8160),p=r(6914),h={};o.type=function(v,_){const y=Object.getPrototypeOf(v),k=l(y),w=v._assign(Object.create(k)),D=Object.assign({},_);delete D.base,k._definition=D;const A=y._definition||{};D.messages=p.merge(A.messages,D.messages),D.properties=Object.assign({},A.properties,D.properties),w.type=D.type,D.flags=Object.assign({},A.flags,D.flags);const L=Object.assign({},A.terms);if(D.terms)for(const W in D.terms){const N=D.terms[W];s(w.$_terms[W]===void 0,"Invalid term override for",D.type,W),w.$_terms[W]=N.init,L[W]=N}D.terms=L,D.args||(D.args=A.args),D.prepare=h.prepare(D.prepare,A.prepare),D.coerce&&(typeof D.coerce=="function"&&(D.coerce={method:D.coerce}),D.coerce.from&&!Array.isArray(D.coerce.from)&&(D.coerce={method:D.coerce.method,from:[].concat(D.coerce.from)})),D.coerce=h.coerce(D.coerce,A.coerce),D.validate=h.validate(D.validate,A.validate);const T=Object.assign({},A.rules);if(D.rules)for(const W in D.rules){const N=D.rules[W];s(typeof N=="object","Invalid rule definition for",D.type,W);let K=N.method;if(K===void 0&&(K=function(){return this.$_addRule(W)}),K&&(s(!k[W],"Rule conflict in",D.type,W),k[W]=K),s(!T[W],"Rule conflict in",D.type,W),T[W]=N,N.alias){const re=[].concat(N.alias);for(const se of re)k[se]=N.method}N.args&&(N.argsByName=new Map,N.args=N.args.map(re=>(typeof re=="string"&&(re={name:re}),s(!N.argsByName.has(re.name),"Duplicated argument name",re.name),f.isSchema(re.assert)&&(re.assert=re.assert.strict().label(re.name)),N.argsByName.set(re.name,re),re)))}D.rules=T;const z=Object.assign({},A.modifiers);if(D.modifiers)for(const W in D.modifiers){s(!k[W],"Rule conflict in",D.type,W);const N=D.modifiers[W];s(typeof N=="function","Invalid modifier definition for",D.type,W);const K=function(re){return this.rule({[W]:re})};k[W]=K,z[W]=N}if(D.modifiers=z,D.overrides){k._super=y,w.$_super={};for(const W in D.overrides)s(y[W],"Cannot override missing",W),D.overrides[W][f.symbols.parent]=y[W],w.$_super[W]=y[W].bind(w);Object.assign(k,D.overrides)}D.cast=Object.assign({},A.cast,D.cast);const B=Object.assign({},A.manifest,D.manifest);return B.build=h.build(D.manifest&&D.manifest.build,A.manifest&&A.manifest.build),D.manifest=B,D.rebuild=h.rebuild(D.rebuild,A.rebuild),w},h.build=function(v,_){return v&&_?function(y,k){return _(v(y,k),k)}:v||_},h.coerce=function(v,_){return v&&_?{from:v.from&&_.from?[...new Set([...v.from,..._.from])]:null,method(y,k){let w;if((!_.from||_.from.includes(typeof y))&&(w=_.method(y,k),w)){if(w.errors||w.value===void 0)return w;y=w.value}if(!v.from||v.from.includes(typeof y)){const D=v.method(y,k);if(D)return D}return w}}:v||_},h.prepare=function(v,_){return v&&_?function(y,k){const w=v(y,k);if(w){if(w.errors||w.value===void 0)return w;y=w.value}return _(y,k)||w}:v||_},h.rebuild=function(v,_){return v&&_?function(y){_(y),v(y)}:v||_},h.validate=function(v,_){return v&&_?function(y,k){const w=_(y,k);if(w){if(w.errors&&(!Array.isArray(w.errors)||w.errors.length))return w;y=w.value}return v(y,k)||w}:v||_}},5107:(a,o,r)=>{const s=r(375),l=r(8571),f=r(8652),p=r(8160),h=r(3292),v=r(6354),_=r(8901),y=r(9708),k=r(6133),w=r(3328),D=r(1152);let A;const L={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const T={_types:new Set(Object.keys(L.types))};for(const z of T._types)T[z]=function(...B){return s(!B.length||["alternatives","link","object"].includes(z),"The",z,"type does not allow arguments"),L.generate(this,L.types[z],B)};for(const z of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])T[z]=function(...B){return this.any()[z](...B)};Object.assign(T,L.methods);for(const z in L.aliases){const B=L.aliases[z];T[z]=T[B]}return T.x=T.expression,D.setup&&D.setup(T),T}};L.methods={ValidationError:v.ValidationError,version:p.version,cache:f.provider,assert(T,z,...B){L.assert(T,z,!0,B)},attempt:(T,z,...B)=>L.assert(T,z,!1,B),build(T){return s(typeof y.build=="function","Manifest functionality disabled"),y.build(this,T)},checkPreferences(T){p.checkPreferences(T)},compile(T,z){return h.compile(this,T,z)},defaults(T){s(typeof T=="function","modifier must be a function");const z=Object.assign({},this);for(const B of z._types){const W=T(z[B]());s(p.isSchema(W),"modifier must return a valid schema object"),z[B]=function(...N){return L.generate(this,W,N)}}return z},expression:(...T)=>new w(...T),extend(...T){p.verifyFlat(T,"extend"),A=A||r(3378),s(T.length,"You need to provide at least one extension"),this.assert(T,A.extensions);const z=Object.assign({},this);z._types=new Set(z._types);for(let B of T){typeof B=="function"&&(B=B(z)),this.assert(B,A.extension);const W=L.expandExtension(B,z);for(const N of W){s(z[N.type]===void 0||z._types.has(N.type),"Cannot override name",N.type);const K=N.base||this.any(),re=_.type(K,N);z._types.add(N.type),z[N.type]=function(...se){return L.generate(this,re,se)}}}return z},isError:v.ValidationError.isError,isExpression:w.isTemplate,isRef:k.isRef,isSchema:p.isSchema,in:(...T)=>k.in(...T),override:p.symbols.override,ref:(...T)=>k.create(...T),types(){const T={};for(const z of this._types)T[z]=this[z]();for(const z in L.aliases)T[z]=this[z]();return T}},L.assert=function(T,z,B,W){const N=W[0]instanceof Error||typeof W[0]=="string"?W[0]:null,K=N?W[1]:W[0],re=z.validate(T,p.preferences({errors:{stack:!0}},K||{}));let se=re.error;if(!se)return re.value;if(N instanceof Error)throw N;const ce=B&&typeof se.annotate=="function"?se.annotate():se.message;throw se instanceof v.ValidationError==0&&(se=l(se)),se.message=N?"".concat(N," ").concat(ce):ce,se},L.generate=function(T,z,B){return s(T,"Must be invoked on a Joi instance."),z.$_root=T,z._definition.args&&B.length?z._definition.args(z,...B):z},L.expandExtension=function(T,z){if(typeof T.type=="string")return[T];const B=[];for(const W of z._types)if(T.type.test(W)){const N=Object.assign({},T);N.type=W,N.base=z[W](),B.push(N)}return B},a.exports=L.root()},6914:(a,o,r)=>{const s=r(375),l=r(8571),f=r(3328);o.compile=function(p,h){if(typeof p=="string")return s(!h,"Cannot set single message string"),new f(p);if(f.isTemplate(p))return s(!h,"Cannot set single message template"),p;s(typeof p=="object"&&!Array.isArray(p),"Invalid message options"),h=h?l(h):{};for(let v in p){const _=p[v];if(v==="root"||f.isTemplate(_)){h[v]=_;continue}if(typeof _=="string"){h[v]=new f(_);continue}s(typeof _=="object"&&!Array.isArray(_),"Invalid message for",v);const y=v;for(v in h[y]=h[y]||{},_){const k=_[v];v==="root"||f.isTemplate(k)?h[y][v]=k:(s(typeof k=="string","Invalid message for",v,"in",y),h[y][v]=new f(k))}}return h},o.decompile=function(p){const h={};for(let v in p){const _=p[v];if(v==="root"){h[v]=_;continue}if(f.isTemplate(_)){h[v]=_.describe({compact:!0});continue}const y=v;for(v in h[y]={},_){const k=_[v];h[y][v]=v!=="root"?k.describe({compact:!0}):k}}return h},o.merge=function(p,h){if(!p)return o.compile(h);if(!h)return p;if(typeof h=="string")return new f(h);if(f.isTemplate(h))return h;const v=l(p);for(let _ in h){const y=h[_];if(_==="root"||f.isTemplate(y)){v[_]=y;continue}if(typeof y=="string"){v[_]=new f(y);continue}s(typeof y=="object"&&!Array.isArray(y),"Invalid message for",_);const k=_;for(_ in v[k]=v[k]||{},y){const w=y[_];_==="root"||f.isTemplate(w)?v[k][_]=w:(s(typeof w=="string","Invalid message for",_,"in",k),v[k][_]=new f(w))}}return v}},2294:(a,o,r)=>{function s(y,k){var w=Object.keys(y);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(y);k&&(D=D.filter(function(A){return Object.getOwnPropertyDescriptor(y,A).enumerable})),w.push.apply(w,D)}return w}function l(y){for(var k=1;k<arguments.length;k++){var w=arguments[k]!=null?arguments[k]:{};k%2?s(Object(w),!0).forEach(function(D){f(y,D,w[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(w)):s(Object(w)).forEach(function(D){Object.defineProperty(y,D,Object.getOwnPropertyDescriptor(w,D))})}return y}function f(y,k,w){return k in y?Object.defineProperty(y,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):y[k]=w,y}const p=r(375),h=r(8160),v=r(6133),_={};o.Ids=_.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const y=new _.Ids;return y._byId=new Map(this._byId),y._byKey=new Map(this._byKey),y._schemaChain=this._schemaChain,y}concat(y){y._schemaChain&&(this._schemaChain=!0);for(const[k,w]of y._byId.entries())p(!this._byKey.has(k),"Schema id conflicts with existing key:",k),this._byId.set(k,w);for(const[k,w]of y._byKey.entries())p(!this._byId.has(k),"Schema key conflicts with existing id:",k),this._byKey.set(k,w)}fork(y,k,w){const D=this._collect(y);D.push({schema:w});const A=D.shift();let L={id:A.id,schema:k(A.schema)};p(h.isSchema(L.schema),"adjuster function failed to return a joi schema type");for(const T of D)L={id:T.id,schema:_.fork(T.schema,L.id,L.schema)};return L.schema}labels(y,k=[]){const w=y[0],D=this._get(w);if(!D)return[...k,...y].join(".");const A=y.slice(1);return k=[...k,D.schema._flags.label||w],A.length?D.schema._ids.labels(A,k):k.join(".")}reach(y,k=[]){const w=y[0],D=this._get(w);p(D,"Schema does not contain path",[...k,...y].join("."));const A=y.slice(1);return A.length?D.schema._ids.reach(A,[...k,w]):D.schema}register(y,{key:k}={}){if(!y||!h.isSchema(y))return;(y.$_property("schemaChain")||y._ids._schemaChain)&&(this._schemaChain=!0);const w=y._flags.id;if(w){const D=this._byId.get(w);p(!D||D.schema===y,"Cannot add different schemas with the same id:",w),p(!this._byKey.has(w),"Schema id conflicts with existing key:",w),this._byId.set(w,{schema:y,id:w})}k&&(p(!this._byKey.has(k),"Schema already contains key:",k),p(!this._byId.has(k),"Schema key conflicts with existing id:",k),this._byKey.set(k,{schema:y,id:k}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(y,k=[],w=[]){const D=y[0],A=this._get(D);p(A,"Schema does not contain path",[...k,...y].join(".")),w=[A,...w];const L=y.slice(1);return L.length?A.schema._ids._collect(L,[...k,D],w):w}_get(y){return this._byId.get(y)||this._byKey.get(y)}},_.fork=function(y,k,w){const D=o.schema(y,{each:(A,{key:L})=>{if(k===(A._flags.id||L))return w},ref:!1});return D?D.$_mutateRebuild():y},o.schema=function(y,k){let w;for(const D in y._flags){if(D[0]==="_")continue;const A=_.scan(y._flags[D],{source:"flags",name:D},k);A!==void 0&&(w=w||y.clone(),w._flags[D]=A)}for(let D=0;D<y._rules.length;++D){const A=y._rules[D],L=_.scan(A.args,{source:"rules",name:A.name},k);if(L!==void 0){w=w||y.clone();const T=Object.assign({},A);T.args=L,w._rules[D]=T,w._singleRules.get(A.name)===A&&w._singleRules.set(A.name,T)}}for(const D in y.$_terms){if(D[0]==="_")continue;const A=_.scan(y.$_terms[D],{source:"terms",name:D},k);A!==void 0&&(w=w||y.clone(),w.$_terms[D]=A)}return w},_.scan=function(y,k,w,D,A){const L=D||[];if(y===null||typeof y!="object")return;let T;if(Array.isArray(y)){for(let z=0;z<y.length;++z){const B=k.source==="terms"&&k.name==="keys"&&y[z].key,W=_.scan(y[z],k,w,[z,...L],B);W!==void 0&&(T=T||y.slice(),T[z]=W)}return T}if(w.schema!==!1&&h.isSchema(y)||w.ref!==!1&&v.isRef(y)){const z=w.each(y,l(l({},k),{},{path:L,key:A}));return z===y?void 0:z}for(const z in y){if(z[0]==="_")continue;const B=_.scan(y[z],k,w,[z,...L],A);B!==void 0&&(T=T||Object.assign({},y),T[z]=B)}return T}},6133:(a,o,r)=>{function s(w,D){var A=Object.keys(w);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(w);D&&(L=L.filter(function(T){return Object.getOwnPropertyDescriptor(w,T).enumerable})),A.push.apply(A,L)}return A}function l(w){for(var D=1;D<arguments.length;D++){var A=arguments[D]!=null?arguments[D]:{};D%2?s(Object(A),!0).forEach(function(L){f(w,L,A[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(A)):s(Object(A)).forEach(function(L){Object.defineProperty(w,L,Object.getOwnPropertyDescriptor(A,L))})}return w}function f(w,D,A){return D in w?Object.defineProperty(w,D,{value:A,enumerable:!0,configurable:!0,writable:!0}):w[D]=A,w}const p=r(375),h=r(8571),v=r(9621),_=r(8160);let y;const k={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};o.create=function(w,D={}){p(typeof w=="string","Invalid reference key:",w),_.assertOptions(D,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),p(!D.prefix||typeof D.prefix=="object","options.prefix must be of type object");const A=Object.assign({},k.defaults,D);delete A.prefix;const L=A.separator,T=k.context(w,L,D.prefix);if(A.type=T.type,w=T.key,A.type==="value")if(T.root&&(p(!L||w[0]!==L,"Cannot specify relative path with root prefix"),A.ancestor="root",w||(w=null)),L&&L===w)w=null,A.ancestor=0;else if(A.ancestor!==void 0)p(!L||!w||w[0]!==L,"Cannot combine prefix with ancestor option");else{const[z,B]=k.ancestor(w,L);B&&(w=w.slice(B))===""&&(w=null),A.ancestor=z}return A.path=L?w===null?[]:w.split(L):[w],new k.Ref(A)},o.in=function(w,D={}){return o.create(w,l(l({},D),{},{in:!0}))},o.isRef=function(w){return!!w&&!!w[_.symbols.ref]},k.Ref=class{constructor(w){p(typeof w=="object","Invalid reference construction"),_.assertOptions(w,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),p([!1,void 0].includes(w.separator)||typeof w.separator=="string"&&w.separator.length===1,"Invalid separator"),p(!w.adjust||typeof w.adjust=="function","options.adjust must be a function"),p(!w.map||Array.isArray(w.map),"options.map must be an array"),p(!w.map||!w.adjust,"Cannot set both map and adjust options"),Object.assign(this,k.defaults,w),p(this.type==="value"||this.ancestor===void 0,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(w,D,A,L,T={}){return p(!this.in||T.in,"Invalid in() reference usage"),this.type==="global"?this._resolve(A.context,D,T):this.type==="local"?this._resolve(L,D,T):this.ancestor?this.ancestor==="root"?this._resolve(D.ancestors[D.ancestors.length-1],D,T):(p(this.ancestor<=D.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(D.ancestors[this.ancestor-1],D,T)):this._resolve(w,D,T)}_resolve(w,D,A){let L;if(this.type==="value"&&D.mainstay.shadow&&A.shadow!==!1&&(L=D.mainstay.shadow.get(this.absolute(D))),L===void 0&&(L=v(w,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(L=this.adjust(L)),this.map){const T=this.map.get(L);T!==void 0&&(L=T)}return D.mainstay&&D.mainstay.tracer.resolve(D,this,L),L}toString(){return this.display}absolute(w){return[...w.path.slice(0,-this.ancestor),...this.path]}clone(){return new k.Ref(this)}describe(){const w={path:this.path};this.type!=="value"&&(w.type=this.type),this.separator!=="."&&(w.separator=this.separator),this.type==="value"&&this.ancestor!==1&&(w.ancestor=this.ancestor),this.map&&(w.map=[...this.map]);for(const D of["adjust","iterables","render"])this[D]!==null&&this[D]!==void 0&&(w[D]=this[D]);return this.in!==!1&&(w.in=!0),{ref:w}}updateDisplay(){const w=this.key!==null?this.key:"";if(this.type!=="value")return void(this.display="ref:".concat(this.type,":").concat(w));if(!this.separator)return void(this.display="ref:".concat(w));if(!this.ancestor)return void(this.display="ref:".concat(this.separator).concat(w));if(this.ancestor==="root")return void(this.display="ref:root:".concat(w));if(this.ancestor===1)return void(this.display="ref:".concat(w||".."));const D=new Array(this.ancestor+1).fill(this.separator).join("");this.display="ref:".concat(D).concat(w||"")}},k.Ref.prototype[_.symbols.ref]=!0,o.build=function(w){return(w=Object.assign({},k.defaults,w)).type==="value"&&w.ancestor===void 0&&(w.ancestor=1),new k.Ref(w)},k.context=function(w,D,A={}){if(w=w.trim(),A){const L=A.global===void 0?"$":A.global;if(L!==D&&w.startsWith(L))return{key:w.slice(L.length),type:"global"};const T=A.local===void 0?"#":A.local;if(T!==D&&w.startsWith(T))return{key:w.slice(T.length),type:"local"};const z=A.root===void 0?"/":A.root;if(z!==D&&w.startsWith(z))return{key:w.slice(z.length),type:"value",root:!0}}return{key:w,type:"value"}},k.ancestor=function(w,D){if(!D)return[1,0];if(w[0]!==D)return[1,0];if(w[1]!==D)return[0,1];let A=2;for(;w[A]===D;)++A;return[A-1,A]},o.toSibling=0,o.toParent=1,o.Manager=class{constructor(){this.refs=[]}register(w,D){if(w)if(D=D===void 0?o.toParent:D,Array.isArray(w))for(const A of w)this.register(A,D);else if(_.isSchema(w))for(const A of w._refs.refs)A.ancestor-D>=0&&this.refs.push({ancestor:A.ancestor-D,root:A.root});else o.isRef(w)&&w.type==="value"&&w.ancestor-D>=0&&this.refs.push({ancestor:w.ancestor-D,root:w.root}),y=y||r(3328),y.isTemplate(w)&&this.register(w.refs(),D)}get length(){return this.refs.length}clone(){const w=new o.Manager;return w.refs=h(this.refs),w}reset(){this.refs=[]}roots(){return this.refs.filter(w=>!w.ancestor).map(w=>w.root)}}},3378:(a,o,r)=>{const s=r(5107),l={};l.wrap=s.string().min(1).max(2).allow(!1),o.preferences=s.object({allowUnknown:s.boolean(),abortEarly:s.boolean(),artifacts:s.boolean(),cache:s.boolean(),context:s.object(),convert:s.boolean(),dateFormat:s.valid("date","iso","string","time","utc"),debug:s.boolean(),errors:{escapeHtml:s.boolean(),label:s.valid("path","key",!1),language:[s.string(),s.object().ref()],render:s.boolean(),stack:s.boolean(),wrap:{label:l.wrap,array:l.wrap}},externals:s.boolean(),messages:s.object(),noDefaults:s.boolean(),nonEnumerables:s.boolean(),presence:s.valid("required","optional","forbidden"),skipFunctions:s.boolean(),stripUnknown:s.object({arrays:s.boolean(),objects:s.boolean()}).or("arrays","objects").allow(!0,!1),warnings:s.boolean()}).strict(),l.nameRx=/^[a-zA-Z0-9]\w*$/,l.rule=s.object({alias:s.array().items(s.string().pattern(l.nameRx)).single(),args:s.array().items(s.string(),s.object({name:s.string().pattern(l.nameRx).required(),ref:s.boolean(),assert:s.alternatives([s.function(),s.object().schema()]).conditional("ref",{is:!0,then:s.required()}),normalize:s.function(),message:s.string().when("assert",{is:s.function(),then:s.required()})})),convert:s.boolean(),manifest:s.boolean(),method:s.function().allow(!1),multi:s.boolean(),validate:s.function()}),o.extension=s.object({type:s.alternatives([s.string(),s.object().regex()]).required(),args:s.function(),cast:s.object().pattern(l.nameRx,s.object({from:s.function().maxArity(1).required(),to:s.function().minArity(1).maxArity(2).required()})),base:s.object().schema().when("type",{is:s.object().regex(),then:s.forbidden()}),coerce:[s.function().maxArity(3),s.object({method:s.function().maxArity(3).required(),from:s.array().items(s.string()).single()})],flags:s.object().pattern(l.nameRx,s.object({setter:s.string(),default:s.any()})),manifest:{build:s.function().arity(2)},messages:[s.object(),s.string()],modifiers:s.object().pattern(l.nameRx,s.function().minArity(1).maxArity(2)),overrides:s.object().pattern(l.nameRx,s.function()),prepare:s.function().maxArity(3),rebuild:s.function().arity(1),rules:s.object().pattern(l.nameRx,l.rule),terms:s.object().pattern(l.nameRx,s.object({init:s.array().allow(null).required(),manifest:s.object().pattern(/.+/,[s.valid("schema","single"),s.object({mapped:s.object({from:s.string().required(),to:s.string().required()}).required()})])})),validate:s.function().maxArity(3)}).strict(),o.extensions=s.array().items(s.object(),s.function().arity(1)).strict(),l.desc={buffer:s.object({buffer:s.string()}),func:s.object({function:s.function().required(),options:{literal:!0}}),override:s.object({override:!0}),ref:s.object({ref:s.object({type:s.valid("value","global","local"),path:s.array().required(),separator:s.string().length(1).allow(!1),ancestor:s.number().min(0).integer().allow("root"),map:s.array().items(s.array().length(2)).min(1),adjust:s.function(),iterables:s.boolean(),in:s.boolean(),render:s.boolean()}).required()}),regex:s.object({regex:s.string().min(3)}),special:s.object({special:s.valid("deep").required()}),template:s.object({template:s.string().required(),options:s.object()}),value:s.object({value:s.alternatives([s.object(),s.array()]).required()})},l.desc.entity=s.alternatives([s.array().items(s.link("...")),s.boolean(),s.function(),s.number(),s.string(),l.desc.buffer,l.desc.func,l.desc.ref,l.desc.regex,l.desc.special,l.desc.template,l.desc.value,s.link("/")]),l.desc.values=s.array().items(null,s.boolean(),s.function(),s.number().allow(1/0,-1/0),s.string().allow(""),s.symbol(),l.desc.buffer,l.desc.func,l.desc.override,l.desc.ref,l.desc.regex,l.desc.template,l.desc.value),l.desc.messages=s.object().pattern(/.+/,[s.string(),l.desc.template,s.object().pattern(/.+/,[s.string(),l.desc.template])]),o.description=s.object({type:s.string().required(),flags:s.object({cast:s.string(),default:s.any(),description:s.string(),empty:s.link("/"),failover:l.desc.entity,id:s.string(),label:s.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:s.boolean(),unit:s.string()}).unknown(),preferences:{allowUnknown:s.boolean(),abortEarly:s.boolean(),artifacts:s.boolean(),cache:s.boolean(),convert:s.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:s.boolean(),label:["path","key"],language:[s.string(),l.desc.ref],wrap:{label:l.wrap,array:l.wrap}},externals:s.boolean(),messages:l.desc.messages,noDefaults:s.boolean(),nonEnumerables:s.boolean(),presence:["required","optional","forbidden"],skipFunctions:s.boolean(),stripUnknown:s.object({arrays:s.boolean(),objects:s.boolean()}).or("arrays","objects").allow(!0,!1),warnings:s.boolean()},allow:l.desc.values,invalid:l.desc.values,rules:s.array().min(1).items({name:s.string().required(),args:s.object().min(1),keep:s.boolean(),message:[s.string(),l.desc.messages],warn:s.boolean()}),keys:s.object().pattern(/.*/,s.link("/")),link:l.desc.ref}).pattern(/^[a-z]\w*$/,s.any())},493:(a,o,r)=>{const s=r(8571),l=r(9621),f=r(8160),p={value:Symbol("value")};a.exports=p.State=class{constructor(h,v,_){this.path=h,this.ancestors=v,this.mainstay=_.mainstay,this.schemas=_.schemas,this.debug=null}localize(h,v=null,_=null){const y=new p.State(h,v,this);return _&&y.schemas&&(y.schemas=[p.schemas(_),...y.schemas]),y}nest(h,v){const _=new p.State(this.path,this.ancestors,this);return _.schemas=_.schemas&&[p.schemas(h),..._.schemas],_.debug=v,_}shadow(h,v){this.mainstay.shadow=this.mainstay.shadow||new p.Shadow,this.mainstay.shadow.set(this.path,h,v)}snapshot(){this.mainstay.shadow&&(this._snapshot=s(this.mainstay.shadow.node(this.path)))}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0)}},p.schemas=function(h){return f.isSchema(h)?{schema:h}:h},p.Shadow=class{constructor(){this._values=null}set(h,v,_){if(!h.length||_==="strip"&&typeof h[h.length-1]=="number")return;this._values=this._values||new Map;let y=this._values;for(let k=0;k<h.length;++k){const w=h[k];let D=y.get(w);D||(D=new Map,y.set(w,D)),y=D}y[p.value]=v}get(h){const v=this.node(h);if(v)return v[p.value]}node(h){if(this._values)return l(this._values,h,{iterables:!0})}override(h,v){if(!this._values)return;const _=h.slice(0,-1),y=h[h.length-1],k=l(this._values,_,{iterables:!0});v?k.set(y,v):k&&k.delete(y)}}},3328:(a,o,r)=>{function s(D,A){var L=Object.keys(D);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(D);A&&(T=T.filter(function(z){return Object.getOwnPropertyDescriptor(D,z).enumerable})),L.push.apply(L,T)}return L}function l(D,A,L){return A in D?Object.defineProperty(D,A,{value:L,enumerable:!0,configurable:!0,writable:!0}):D[A]=L,D}const f=r(375),p=r(8571),h=r(5277),v=r(1447),_=r(8160),y=r(6354),k=r(6133),w={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join(""),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};a.exports=w.Template=class{constructor(D,A){f(typeof D=="string","Template source must be a string"),f(!D.includes("\0")&&!D.includes(""),"Template source cannot contain reserved control characters"),this.source=D,this.rendered=D,this._template=null,this._settings=p(A),this._parse()}_parse(){if(!this.source.includes("{"))return;const D=w.encode(this.source),A=w.split(D);let L=!1;const T=[],z=A.shift();z&&T.push(z);for(const B of A){const W=B[0]!=="{",N=W?"}":"}}",K=B.indexOf(N);if(K===-1||B[1]==="{"){T.push("{".concat(w.decode(B)));continue}let re=B.slice(W?0:1,K);const se=re[0]===":";se&&(re=re.slice(1));const ce=this._ref(w.decode(re),{raw:W,wrapped:se});T.push(ce),typeof ce!="string"&&(L=!0);const de=B.slice(K+N.length);de&&T.push(w.decode(de))}L?this._template=T:this.rendered=T.join("")}static date(D,A){return w.dateFormat[A.dateFormat].call(D)}describe(D={}){if(!this._settings&&D.compact)return this.source;const A={template:this.source};return this._settings&&(A.options=this._settings),A}static build(D){return new w.Template(D.template,D.options)}isDynamic(){return!!this._template}static isTemplate(D){return!!D&&!!D[_.symbols.template]}refs(){if(!this._template)return;const D=[];for(const A of this._template)typeof A!="string"&&D.push(...A.refs);return D}resolve(D,A,L,T){return this._template&&this._template.length===1?this._part(this._template[0],D,A,L,T,{}):this.render(D,A,L,T)}_part(D,...A){return D.ref?D.ref.resolve(...A):D.formula.evaluate(A)}render(D,A,L,T,z={}){if(!this.isDynamic())return this.rendered;const B=[];for(const W of this._template)if(typeof W=="string")B.push(W);else{const N=this._part(W,D,A,L,T,z),K=w.stringify(N,D,A,L,T,z);if(K!==void 0){const re=W.raw||(z.errors&&z.errors.escapeHtml)===!1?K:h(K);B.push(w.wrap(re,W.wrapped&&L.errors.wrap.label))}}return B.join("")}_ref(D,{raw:A,wrapped:L}){const T=[],z=W=>{const N=k.create(W,this._settings);return T.push(N),K=>N.resolve(...K)};try{var B=new v.Parser(D,{reference:z,functions:w.functions,constants:w.constants})}catch(W){throw W.message='Invalid template variable "'.concat(D,'" fails due to: ').concat(W.message),W}if(B.single){if(B.single.type==="reference"){const W=T[0];return{ref:W,raw:A,refs:T,wrapped:L||W.type==="local"&&W.key==="label"}}return w.stringify(B.single.value)}return{formula:B,raw:A,refs:T}}toString(){return this.source}},w.Template.prototype[_.symbols.template]=!0,w.Template.prototype.isImmutable=!0,w.encode=function(D){return D.replace(/\\(\{+)/g,(A,L)=>w.opens.slice(0,L.length)).replace(/\\(\}+)/g,(A,L)=>w.closes.slice(0,L.length))},w.decode=function(D){return D.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},w.split=function(D){const A=[];let L="";for(let T=0;T<D.length;++T){const z=D[T];if(z==="{"){let B="";for(;T+1<D.length&&D[T+1]==="{";)B+="{",++T;A.push(L),L=B}else L+=z}return A.push(L),A},w.wrap=function(D,A){return A?A.length===1?"".concat(A).concat(D).concat(A):"".concat(A[0]).concat(D).concat(A[1]):D},w.stringify=function(D,A,L,T,z,B){const W=typeof D;let N=!1;if(k.isRef(D)&&D.render&&(N=D.in,D=D.resolve(A,L,T,z,function(re){for(var se=1;se<arguments.length;se++){var ce=arguments[se]!=null?arguments[se]:{};se%2?s(Object(ce),!0).forEach(function(de){l(re,de,ce[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(re,Object.getOwnPropertyDescriptors(ce)):s(Object(ce)).forEach(function(de){Object.defineProperty(re,de,Object.getOwnPropertyDescriptor(ce,de))})}return re}({in:D.in},B))),D===null)return"null";if(W==="string")return D;if(W==="number"||W==="function"||W==="symbol")return D.toString();if(W!=="object")return JSON.stringify(D);if(D instanceof Date)return w.Template.date(D,T);if(D instanceof Map){const re=[];for(const[se,ce]of D.entries())re.push("".concat(se.toString()," -> ").concat(ce.toString()));D=re}if(!Array.isArray(D))return D.toString();let K="";for(const re of D)K=K+(K.length?", ":"")+w.stringify(re,A,L,T,z,B);return N?K:w.wrap(K,T.errors.wrap.array)},w.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},w.functions={if:(D,A,L)=>D?A:L,msg(D){const[A,L,T,z,B]=this,W=B.messages;if(!W)return"";const N=y.template(A,W[0],D,L,T)||y.template(A,W[1],D,L,T);return N?N.render(A,L,T,z,B):""},number:D=>typeof D=="number"?D:typeof D=="string"?parseFloat(D):typeof D=="boolean"?D?1:0:D instanceof Date?D.getTime():null}},4946:(a,o,r)=>{const s=r(375),l=r(1687),f=r(8068),p=r(8160),h=r(3292),v=r(6354),_=r(6133),y={};a.exports=f.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:_.toSibling}},args:(k,...w)=>w.length===1&&Array.isArray(w[0])?k.try(...w[0]):k.try(...w),validate(k,w){const{schema:D,error:A,state:L,prefs:T}=w;if(D._flags.match){const B=[];for(let W=0;W<D.$_terms.matches.length;++W){const N=D.$_terms.matches[W],K=L.nest(N.schema,"match.".concat(W));K.snapshot();const re=N.schema.$_validate(k,K,T);re.errors?K.restore():B.push(re.value)}return B.length===0?{errors:A("alternatives.any")}:D._flags.match==="one"?B.length===1?{value:B[0]}:{errors:A("alternatives.one")}:B.length!==D.$_terms.matches.length?{errors:A("alternatives.all")}:D.$_terms.matches.reduce((W,N)=>W&&N.schema.type==="object",!0)?{value:B.reduce((W,N)=>l(W,N,{mergeArrays:!1}))}:{value:B[B.length-1]}}const z=[];for(let B=0;B<D.$_terms.matches.length;++B){const W=D.$_terms.matches[B];if(W.schema){const re=L.nest(W.schema,"match.".concat(B));re.snapshot();const se=W.schema.$_validate(k,re,T);if(!se.errors)return se;re.restore(),z.push({schema:W.schema,reports:se.errors});continue}const N=W.ref?W.ref.resolve(k,L,T):k,K=W.is?[W]:W.switch;for(let re=0;re<K.length;++re){const se=K[re],{is:ce,then:de,otherwise:ge}=se,Ce="match.".concat(B).concat(W.switch?"."+re:"");if(ce.$_match(N,L.nest(ce,"".concat(Ce,".is")),T)){if(de)return de.$_validate(k,L.nest(de,"".concat(Ce,".then")),T)}else if(ge)return ge.$_validate(k,L.nest(ge,"".concat(Ce,".otherwise")),T)}}return y.errors(z,w)},rules:{conditional:{method(k,w){s(!this._flags._endedSwitch,"Unreachable condition"),s(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),s(w.break===void 0,"Cannot use break option with alternatives conditional");const D=this.clone(),A=h.when(D,k,w),L=A.is?[A]:A.switch;for(const T of L)if(T.then&&T.otherwise){D.$_setFlag("_endedSwitch",!0,{clone:!1});break}return D.$_terms.matches.push(A),D.$_mutateRebuild()}},match:{method(k){if(s(["any","one","all"].includes(k),"Invalid alternatives match mode",k),k!=="any")for(const w of this.$_terms.matches)s(w.schema,"Cannot combine match mode",k,"with conditional rules");return this.$_setFlag("match",k)}},try:{method(...k){s(k.length,"Missing alternative schemas"),p.verifyFlat(k,"try"),s(!this._flags._endedSwitch,"Unreachable condition");const w=this.clone();for(const D of k)w.$_terms.matches.push({schema:w.$_compile(D)});return w.$_mutateRebuild()}}},overrides:{label(k){return this.$_parent("label",k).$_modify({each:(w,D)=>D.path[0]!=="is"?w.label(k):void 0,ref:!1})}},rebuild(k){k.$_modify({each:w=>{p.isSchema(w)&&w.type==="array"&&k.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(k,w){if(w.matches)for(const D of w.matches){const{schema:A,ref:L,is:T,not:z,then:B,otherwise:W}=D;k=A?k.try(A):L?k.conditional(L,{is:T,then:B,not:z,otherwise:W,switch:D.switch}):k.conditional(T,{then:B,otherwise:W})}return k}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),y.errors=function(k,{error:w,state:D}){if(!k.length)return{errors:w("alternatives.any")};if(k.length===1)return{errors:k[0].reports};const A=new Set,L=[];for(const{reports:T,schema:z}of k){if(T.length>1)return y.unmatched(k,w);const B=T[0];if(B instanceof v.Report==0)return y.unmatched(k,w);if(B.state.path.length!==D.path.length){L.push({type:z.type,report:B});continue}if(B.code==="any.only"){for(const K of B.local.valids)A.add(K);continue}const[W,N]=B.code.split(".");N==="base"?A.add(W):L.push({type:z.type,report:B})}return L.length?L.length===1?{errors:L[0].report}:y.unmatched(k,w):{errors:w("alternatives.types",{types:[...A]})}},y.unmatched=function(k,w){const D=[];for(const A of k)D.push(...A.reports);return{errors:w("alternatives.match",v.details(D,{override:!1}))}}},8068:(a,o,r)=>{const s=r(375),l=r(7629),f=r(8160),p=r(6914);a.exports=l.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(h,v){return s(typeof h=="function","Method must be a function"),s(v===void 0||v&&typeof v=="string","Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:h,description:v}})},validate(h,v,{method:_}){try{return _(h,v)}catch(y){return v.error("any.custom",{error:y})}},args:["method","description"],multi:!0},messages:{method(h){return this.prefs({messages:h})}},shared:{method(h){s(f.isSchema(h)&&h._flags.id,"Schema must be a schema with an id");const v=this.clone();return v.$_terms.shared=v.$_terms.shared||[],v.$_terms.shared.push(h),v.$_mutateRegister(h),v}},warning:{method(h,v){return s(h&&typeof h=="string","Invalid warning code"),this.$_addRule({name:"warning",args:{code:h,local:v},warn:!0})},validate:(h,v,{code:_,local:y})=>v.error(_,y),args:["code","local"],multi:!0}},modifiers:{keep(h,v=!0){h.keep=v},message(h,v){h.message=p.compile(v)},warn(h,v=!0){h.warn=v}},manifest:{build(h,v){for(const _ in v){const y=v[_];if(["examples","externals","metas","notes","tags"].includes(_))for(const k of y)h=h[_.slice(0,-1)](k);else if(_!=="alterations")if(_!=="whens"){if(_==="shared")for(const k of y)h=h.shared(k)}else for(const k of y){const{ref:w,is:D,not:A,then:L,otherwise:T,concat:z}=k;h=z?h.concat(z):w?h.when(w,{is:D,not:A,then:L,otherwise:T,switch:k.switch,break:k.break}):h.when(D,{then:L,otherwise:T,break:k.break})}else{const k={};for(const{target:w,adjuster:D}of y)k[w]=D;h=h.alter(k)}}return h}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(a,o,r)=>{const s=r(375),l=r(9474),f=r(9621),p=r(8068),h=r(8160),v=r(3292),_={};a.exports=p.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(y,{schema:k,state:w,prefs:D}){if(!Array.isArray(y))return;const A=k.$_getRule("sort");return A?_.sort(k,y,A.args.options,w,D):void 0}},validate(y,{schema:k,error:w}){if(!Array.isArray(y)){if(k._flags.single){const D=[y];return D[h.symbols.arraySingle]=!0,{value:D}}return{errors:w("array.base")}}if(k.$_getRule("items")||k.$_terms.externals)return{value:y.slice()}},rules:{has:{method(y){y=this.$_compile(y,{appendPath:!0});const k=this.$_addRule({name:"has",args:{schema:y}});return k.$_mutateRegister(y),k},validate(y,{state:k,prefs:w,error:D},{schema:A}){const L=[y,...k.ancestors];for(let z=0;z<y.length;++z){const B=k.localize([...k.path,z],L,A);if(A.$_match(y[z],B,w))return y}const T=A._flags.label;return T?D("array.hasKnown",{patternLabel:T}):D("array.hasUnknown",null)},multi:!0},items:{method(...y){h.verifyFlat(y,"items");const k=this.$_addRule("items");for(let w=0;w<y.length;++w){const D=h.tryWithPath(()=>this.$_compile(y[w]),w,{append:!0});k.$_terms.items.push(D)}return k.$_mutateRebuild()},validate(y,{schema:k,error:w,state:D,prefs:A,errorsArray:L}){const T=k.$_terms._requireds.slice(),z=k.$_terms.ordered.slice(),B=[...k.$_terms._inclusions,...T],W=!y[h.symbols.arraySingle];delete y[h.symbols.arraySingle];const N=L();let K=y.length;for(let re=0;re<K;++re){const se=y[re];let ce=!1,de=!1;const ge=W?re:new Number(re),Ce=[...D.path,ge];if(!k._flags.sparse&&se===void 0){if(N.push(w("array.sparse",{key:ge,path:Ce,pos:re,value:void 0},D.localize(Ce))),A.abortEarly)return N;z.shift();continue}const Oe=[y,...D.ancestors];for(const Te of k.$_terms._exclusions)if(Te.$_match(se,D.localize(Ce,Oe,Te),A,{presence:"ignore"})){if(N.push(w("array.excludes",{pos:re,value:se},D.localize(Ce))),A.abortEarly)return N;ce=!0,z.shift();break}if(ce)continue;if(k.$_terms.ordered.length){if(z.length){const Te=z.shift(),it=Te.$_validate(se,D.localize(Ce,Oe,Te),A);if(it.errors){if(N.push(...it.errors),A.abortEarly)return N}else if(Te._flags.result==="strip")_.fastSplice(y,re),--re,--K;else{if(!k._flags.sparse&&it.value===void 0){if(N.push(w("array.sparse",{key:ge,path:Ce,pos:re,value:void 0},D.localize(Ce))),A.abortEarly)return N;continue}y[re]=it.value}continue}if(!k.$_terms.items.length){if(N.push(w("array.orderedLength",{pos:re,limit:k.$_terms.ordered.length})),A.abortEarly)return N;break}}const Ve=[];let Ye=T.length;for(let Te=0;Te<Ye;++Te){const it=D.localize(Ce,Oe,T[Te]);it.snapshot();const Le=T[Te].$_validate(se,it,A);if(Ve[Te]=Le,!Le.errors){if(y[re]=Le.value,de=!0,_.fastSplice(T,Te),--Te,--Ye,!k._flags.sparse&&Le.value===void 0&&(N.push(w("array.sparse",{key:ge,path:Ce,pos:re,value:void 0},D.localize(Ce))),A.abortEarly))return N;break}it.restore()}if(de)continue;const ot=A.stripUnknown&&!!A.stripUnknown.arrays||!1;Ye=B.length;for(const Te of B){let it;const Le=T.indexOf(Te);if(Le!==-1)it=Ve[Le];else{const De=D.localize(Ce,Oe,Te);if(De.snapshot(),it=Te.$_validate(se,De,A),!it.errors){Te._flags.result==="strip"?(_.fastSplice(y,re),--re,--K):k._flags.sparse||it.value!==void 0?y[re]=it.value:(N.push(w("array.sparse",{key:ge,path:Ce,pos:re,value:void 0},D.localize(Ce))),ce=!0),de=!0;break}De.restore()}if(Ye===1){if(ot){_.fastSplice(y,re),--re,--K,de=!0;break}if(N.push(...it.errors),A.abortEarly)return N;ce=!0;break}}if(!ce&&(k.$_terms._inclusions.length||k.$_terms._requireds.length)&&!de){if(ot){_.fastSplice(y,re),--re,--K;continue}if(N.push(w("array.includes",{pos:re,value:se},D.localize(Ce))),A.abortEarly)return N}}return T.length&&_.fillMissedErrors(k,N,T,y,D,A),z.length&&(_.fillOrderedErrors(k,N,z,y,D,A),N.length||_.fillDefault(z,y,D,A)),N.length?N:y},priority:!0,manifest:!1},length:{method(y){return this.$_addRule({name:"length",args:{limit:y},operator:"="})},validate:(y,k,{limit:w},{name:D,operator:A,args:L})=>h.compare(y.length,w,A)?y:k.error("array."+D,{limit:L.limit,value:y}),args:[{name:"limit",ref:!0,assert:h.limit,message:"must be a positive integer"}]},max:{method(y){return this.$_addRule({name:"max",method:"length",args:{limit:y},operator:"<="})}},min:{method(y){return this.$_addRule({name:"min",method:"length",args:{limit:y},operator:">="})}},ordered:{method(...y){h.verifyFlat(y,"ordered");const k=this.$_addRule("items");for(let w=0;w<y.length;++w){const D=h.tryWithPath(()=>this.$_compile(y[w]),w,{append:!0});_.validateSingle(D,k),k.$_mutateRegister(D),k.$_terms.ordered.push(D)}return k.$_mutateRebuild()}},single:{method(y){const k=y===void 0||!!y;return s(!k||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",k)}},sort:{method(y={}){h.assertOptions(y,["by","order"]);const k={order:y.order||"ascending"};return y.by&&(k.by=v.ref(y.by,{ancestor:0}),s(!k.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:k}})},validate(y,{error:k,state:w,prefs:D,schema:A},{options:L}){const{value:T,errors:z}=_.sort(A,y,L,w,D);if(z)return z;for(let B=0;B<y.length;++B)if(y[B]!==T[B])return k("array.sort",{order:L.order,by:L.by?L.by.key:"value"});return y},convert:!0},sparse:{method(y){const k=y===void 0||!!y;return this._flags.sparse===k?this:(k?this.clone():this.$_addRule("items")).$_setFlag("sparse",k,{clone:!1})}},unique:{method(y,k={}){s(!y||typeof y=="function"||typeof y=="string","comparator must be a function or a string"),h.assertOptions(k,["ignoreUndefined","separator"]);const w={name:"unique",args:{options:k,comparator:y}};if(y)if(typeof y=="string"){const D=h.default(k.separator,".");w.path=D?y.split(D):[y]}else w.comparator=y;return this.$_addRule(w)},validate(y,{state:k,error:w,schema:D},{comparator:A,options:L},{comparator:T,path:z}){const B={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},W=T||l,N=L.ignoreUndefined;for(let K=0;K<y.length;++K){const re=z?f(y[K],z):y[K],se=T?B.custom:B[typeof re];if(s(se,"Failed to find unique map container for type",typeof re),se instanceof Map){const ce=se.entries();let de;for(;!(de=ce.next()).done;)if(W(de.value[0],re)){const ge=k.localize([...k.path,K],[y,...k.ancestors]),Ce={pos:K,value:y[K],dupePos:de.value[1],dupeValue:y[de.value[1]]};return z&&(Ce.path=A),w("array.unique",Ce,ge)}se.set(re,K)}else{if((!N||re!==void 0)&&se[re]!==void 0){const ce={pos:K,value:y[K],dupePos:se[re],dupeValue:y[se[re]]};return z&&(ce.path=A),w("array.unique",ce,k.localize([...k.path,K],[y,...k.ancestors]))}se[re]=K}}return y},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:(y,k)=>new Set(y)}},rebuild(y){y.$_terms._inclusions=[],y.$_terms._exclusions=[],y.$_terms._requireds=[];for(const k of y.$_terms.items)_.validateSingle(k,y),k._flags.presence==="required"?y.$_terms._requireds.push(k):k._flags.presence==="forbidden"?y.$_terms._exclusions.push(k):y.$_terms._inclusions.push(k);for(const k of y.$_terms.ordered)_.validateSingle(k,y)},manifest:{build:(y,k)=>(k.items&&(y=y.items(...k.items)),k.ordered&&(y=y.ordered(...k.ordered)),y)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),_.fillMissedErrors=function(y,k,w,D,A,L){const T=[];let z=0;for(const B of w){const W=B._flags.label;W?T.push(W):++z}T.length?z?k.push(y.$_createError("array.includesRequiredBoth",D,{knownMisses:T,unknownMisses:z},A,L)):k.push(y.$_createError("array.includesRequiredKnowns",D,{knownMisses:T},A,L)):k.push(y.$_createError("array.includesRequiredUnknowns",D,{unknownMisses:z},A,L))},_.fillOrderedErrors=function(y,k,w,D,A,L){const T=[];for(const z of w)z._flags.presence==="required"&&T.push(z);T.length&&_.fillMissedErrors(y,k,T,D,A,L)},_.fillDefault=function(y,k,w,D){const A=[];let L=!0;for(let T=y.length-1;T>=0;--T){const z=y[T],B=[k,...w.ancestors],W=z.$_validate(void 0,w.localize(w.path,B,z),D).value;if(L){if(W===void 0)continue;L=!1}A.unshift(W)}A.length&&k.push(...A)},_.fastSplice=function(y,k){let w=k;for(;w<y.length;)y[w++]=y[w];--y.length},_.validateSingle=function(y,k){(y.type==="array"||y._flags._arrayItems)&&(s(!k._flags.single,"Cannot specify array item with single rule enabled"),k.$_setFlag("_arrayItems",!0,{clone:!1}))},_.sort=function(y,k,w,D,A){const L=w.order==="ascending"?1:-1,T=-1*L,z=L,B=(W,N)=>{let K=_.compare(W,N,T,z);if(K!==null||(w.by&&(W=w.by.resolve(W,D,A),N=w.by.resolve(N,D,A)),K=_.compare(W,N,T,z),K!==null))return K;const re=typeof W;if(re!==typeof N)throw y.$_createError("array.sort.mismatching",k,null,D,A);if(re!=="number"&&re!=="string")throw y.$_createError("array.sort.unsupported",k,{type:re},D,A);return re==="number"?(W-N)*L:W<N?T:z};try{return{value:k.slice().sort(B)}}catch(W){return{errors:W}}},_.compare=function(y,k,w,D){return y===k?0:y===void 0?1:k===void 0?-1:y===null?D:k===null?w:null}},4937:(a,o,r)=>{const s=r(375),l=r(8068),f=r(8160),p=r(2036),h={isBool:function(v){return typeof v=="boolean"}};a.exports=l.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(v,{schema:_}){if(typeof v!="boolean"){if(typeof v=="string"){const y=_._flags.sensitive?v:v.toLowerCase();v=y==="true"||y!=="false"&&v}return typeof v!="boolean"&&(v=_.$_terms.truthy&&_.$_terms.truthy.has(v,null,null,!_._flags.sensitive)||(!_.$_terms.falsy||!_.$_terms.falsy.has(v,null,null,!_._flags.sensitive))&&v),{value:v}}},validate(v,{error:_}){if(typeof v!="boolean")return{value:v,errors:_("boolean.base")}},rules:{truthy:{method(...v){f.verifyFlat(v,"truthy");const _=this.clone();_.$_terms.truthy=_.$_terms.truthy||new p;for(let y=0;y<v.length;++y){const k=v[y];s(k!==void 0,"Cannot call truthy with undefined"),_.$_terms.truthy.add(k)}return _}},falsy:{method(...v){f.verifyFlat(v,"falsy");const _=this.clone();_.$_terms.falsy=_.$_terms.falsy||new p;for(let y=0;y<v.length;++y){const k=v[y];s(k!==void 0,"Cannot call falsy with undefined"),_.$_terms.falsy.add(k)}return _}},sensitive:{method(v=!0){return this.$_setFlag("sensitive",v)}}},cast:{number:{from:h.isBool,to:(v,_)=>v?1:0},string:{from:h.isBool,to:(v,_)=>v?"true":"false"}},manifest:{build:(v,_)=>(_.truthy&&(v=v.truthy(..._.truthy)),_.falsy&&(v=v.falsy(..._.falsy)),v)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(a,o,r)=>{const s=r(375),l=r(8068),f=r(8160),p=r(3328),h={isDate:function(v){return v instanceof Date}};a.exports=l.extend({type:"date",coerce:{from:["number","string"],method:(v,{schema:_})=>({value:h.parse(v,_._flags.format)||v})},validate(v,{schema:_,error:y,prefs:k}){if(v instanceof Date&&!isNaN(v.getTime()))return;const w=_._flags.format;return k.convert&&w&&typeof v=="string"?{value:v,errors:y("date.format",{format:w})}:{value:v,errors:y("date.base")}},rules:{compare:{method:!1,validate(v,_,{date:y},{name:k,operator:w,args:D}){const A=y==="now"?Date.now():y.getTime();return f.compare(v.getTime(),A,w)?v:_.error("date."+k,{limit:D.date,value:v})},args:[{name:"date",ref:!0,normalize:v=>v==="now"?v:h.parse(v),assert:v=>v!==null,message:"must have a valid date format"}]},format:{method(v){return s(["iso","javascript","unix"].includes(v),"Unknown date format",v),this.$_setFlag("format",v)}},greater:{method(v){return this.$_addRule({name:"greater",method:"compare",args:{date:v},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(v){return this.$_addRule({name:"less",method:"compare",args:{date:v},operator:"<"})}},max:{method(v){return this.$_addRule({name:"max",method:"compare",args:{date:v},operator:"<="})}},min:{method(v){return this.$_addRule({name:"min",method:"compare",args:{date:v},operator:">="})}},timestamp:{method(v="javascript"){return s(["javascript","unix"].includes(v),'"type" must be one of "javascript, unix"'),this.format(v)}}},cast:{number:{from:h.isDate,to:(v,_)=>v.getTime()},string:{from:h.isDate,to:(v,{prefs:_})=>p.date(v,_)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),h.parse=function(v,_){if(v instanceof Date)return v;if(typeof v!="string"&&(isNaN(v)||!isFinite(v))||/^\s*$/.test(v))return null;if(_==="iso")return f.isIsoDate(v)?h.date(v.toString()):null;const y=v;if(typeof v=="string"&&/^[+-]?\d+(\.\d+)?$/.test(v)&&(v=parseFloat(v)),_){if(_==="javascript")return h.date(1*v);if(_==="unix")return h.date(1e3*v);if(typeof y=="string")return null}return h.date(v)},h.date=function(v){const _=new Date(v);return isNaN(_.getTime())?null:_}},390:(a,o,r)=>{const s=r(375),l=r(7824);a.exports=l.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(f){return s(Number.isSafeInteger(f)&&f>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:f}})},validate:(f,p,{n:h})=>f.length===h?f:p.error("function.arity",{n:h})},class:{method(){return this.$_addRule("class")},validate:(f,p)=>/^\s*class\s/.test(f.toString())?f:p.error("function.class",{value:f})},minArity:{method(f){return s(Number.isSafeInteger(f)&&f>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:f}})},validate:(f,p,{n:h})=>f.length>=h?f:p.error("function.minArity",{n:h})},maxArity:{method(f){return s(Number.isSafeInteger(f)&&f>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:f}})},validate:(f,p,{n:h})=>f.length<=h?f:p.error("function.maxArity",{n:h})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(a,o,r)=>{const s=r(978),l=r(375),f=r(8571),p=r(3652),h=r(8068),v=r(8160),_=r(3292),y=r(6354),k=r(6133),w=r(3328),D={renameDefaults:{alias:!1,multiple:!1,override:!1}};a.exports=h.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(A,L)=>A.keys(L),validate(A,{schema:L,error:T,state:z,prefs:B}){if(!A||typeof A!==L.$_property("typeof")||Array.isArray(A))return{value:A,errors:T("object.base",{type:L.$_property("typeof")})};if(!(L.$_terms.renames||L.$_terms.dependencies||L.$_terms.keys||L.$_terms.patterns||L.$_terms.externals))return;A=D.clone(A,B);const W=[];if(L.$_terms.renames&&!D.rename(L,A,z,B,W))return{value:A,errors:W};if(!L.$_terms.keys&&!L.$_terms.patterns&&!L.$_terms.dependencies)return{value:A,errors:W};const N=new Set(Object.keys(A));if(L.$_terms.keys){const K=[A,...z.ancestors];for(const re of L.$_terms.keys){const se=re.key,ce=A[se];N.delete(se);const de=z.localize([...z.path,se],K,re),ge=re.schema.$_validate(ce,de,B);if(ge.errors){if(B.abortEarly)return{value:A,errors:ge.errors};ge.value!==void 0&&(A[se]=ge.value),W.push(...ge.errors)}else re.schema._flags.result==="strip"||ge.value===void 0&&ce!==void 0?delete A[se]:ge.value!==void 0&&(A[se]=ge.value)}}if(N.size||L._flags._hasPatternMatch){const K=D.unknown(L,A,N,W,z,B);if(K)return K}if(L.$_terms.dependencies)for(const K of L.$_terms.dependencies){if(K.key&&K.key.resolve(A,z,B,null,{shadow:!1})===void 0)continue;const re=D.dependencies[K.rel](L,K,A,z,B);if(re){const se=L.$_createError(re.code,A,re.context,z,B);if(B.abortEarly)return{value:A,errors:se};W.push(se)}}return{value:A,errors:W}},rules:{and:{method(...A){return v.verifyFlat(A,"and"),D.dependency(this,"and",null,A)}},append:{method(A){return A==null||Object.keys(A).length===0?this:this.keys(A)}},assert:{method(A,L,T){w.isTemplate(A)||(A=_.ref(A)),l(T===void 0||typeof T=="string","Message must be a string"),L=this.$_compile(L,{appendPath:!0});const z=this.$_addRule({name:"assert",args:{subject:A,schema:L,message:T}});return z.$_mutateRegister(A),z.$_mutateRegister(L),z},validate(A,{error:L,prefs:T,state:z},{subject:B,schema:W,message:N}){const K=B.resolve(A,z,T),re=k.isRef(B)?B.absolute(z):[];return W.$_match(K,z.localize(re,[A,...z.ancestors],W),T)?A:L("object.assert",{subject:B,message:N})},args:["subject","schema","message"],multi:!0},instance:{method(A,L){return l(typeof A=="function","constructor must be a function"),L=L||A.name,this.$_addRule({name:"instance",args:{constructor:A,name:L}})},validate:(A,L,{constructor:T,name:z})=>A instanceof T?A:L.error("object.instance",{type:z,value:A}),args:["constructor","name"]},keys:{method(A){l(A===void 0||typeof A=="object","Object schema must be a valid object"),l(!v.isSchema(A),"Object schema cannot be a joi schema");const L=this.clone();if(A)if(Object.keys(A).length){L.$_terms.keys=L.$_terms.keys?L.$_terms.keys.filter(T=>!A.hasOwnProperty(T.key)):new D.Keys;for(const T in A)v.tryWithPath(()=>L.$_terms.keys.push({key:T,schema:this.$_compile(A[T])}),T)}else L.$_terms.keys=new D.Keys;else L.$_terms.keys=null;return L.$_mutateRebuild()}},length:{method(A){return this.$_addRule({name:"length",args:{limit:A},operator:"="})},validate:(A,L,{limit:T},{name:z,operator:B,args:W})=>v.compare(Object.keys(A).length,T,B)?A:L.error("object."+z,{limit:W.limit,value:A}),args:[{name:"limit",ref:!0,assert:v.limit,message:"must be a positive integer"}]},max:{method(A){return this.$_addRule({name:"max",method:"length",args:{limit:A},operator:"<="})}},min:{method(A){return this.$_addRule({name:"min",method:"length",args:{limit:A},operator:">="})}},nand:{method(...A){return v.verifyFlat(A,"nand"),D.dependency(this,"nand",null,A)}},or:{method(...A){return v.verifyFlat(A,"or"),D.dependency(this,"or",null,A)}},oxor:{method(...A){return D.dependency(this,"oxor",null,A)}},pattern:{method(A,L,T={}){const z=A instanceof RegExp;z||(A=this.$_compile(A,{appendPath:!0})),l(L!==void 0,"Invalid rule"),v.assertOptions(T,["fallthrough","matches"]),z&&l(!A.flags.includes("g")&&!A.flags.includes("y"),"pattern should not use global or sticky mode"),L=this.$_compile(L,{appendPath:!0});const B=this.clone();B.$_terms.patterns=B.$_terms.patterns||[];const W={[z?"regex":"schema"]:A,rule:L};return T.matches&&(W.matches=this.$_compile(T.matches),W.matches.type!=="array"&&(W.matches=W.matches.$_root.array().items(W.matches)),B.$_mutateRegister(W.matches),B.$_setFlag("_hasPatternMatch",!0,{clone:!1})),T.fallthrough&&(W.fallthrough=!0),B.$_terms.patterns.push(W),B.$_mutateRegister(L),B}},ref:{method(){return this.$_addRule("ref")},validate:(A,L)=>k.isRef(A)?A:L.error("object.refType",{value:A})},regex:{method(){return this.$_addRule("regex")},validate:(A,L)=>A instanceof RegExp?A:L.error("object.regex",{value:A})},rename:{method(A,L,T={}){l(typeof A=="string"||A instanceof RegExp,"Rename missing the from argument"),l(typeof L=="string"||L instanceof w,"Invalid rename to argument"),l(L!==A,"Cannot rename key to same name:",A),v.assertOptions(T,["alias","ignoreUndefined","override","multiple"]);const z=this.clone();z.$_terms.renames=z.$_terms.renames||[];for(const B of z.$_terms.renames)l(B.from!==A,"Cannot rename the same key multiple times");return L instanceof w&&z.$_mutateRegister(L),z.$_terms.renames.push({from:A,to:L,options:s(D.renameDefaults,T)}),z}},schema:{method(A="any"){return this.$_addRule({name:"schema",args:{type:A}})},validate:(A,L,{type:T})=>!v.isSchema(A)||T!=="any"&&A.type!==T?L.error("object.schema",{type:T}):A},unknown:{method(A){return this.$_setFlag("unknown",A!==!1)}},with:{method(A,L,T={}){return D.dependency(this,"with",A,L,T)}},without:{method(A,L,T={}){return D.dependency(this,"without",A,L,T)}},xor:{method(...A){return v.verifyFlat(A,"xor"),D.dependency(this,"xor",null,A)}}},overrides:{default(A,L){return A===void 0&&(A=v.symbols.deepDefault),this.$_parent("default",A,L)}},rebuild(A){if(A.$_terms.keys){const L=new p.Sorter;for(const T of A.$_terms.keys)v.tryWithPath(()=>L.add(T,{after:T.schema.$_rootReferences(),group:T.key}),T.key);A.$_terms.keys=new D.Keys(...L.nodes)}},manifest:{build(A,L){if(L.keys&&(A=A.keys(L.keys)),L.dependencies)for(const{rel:T,key:z=null,peers:B,options:W}of L.dependencies)A=D.dependency(A,T,z,B,W);if(L.patterns)for(const{regex:T,schema:z,rule:B,fallthrough:W,matches:N}of L.patterns)A=A.pattern(T||z,B,{fallthrough:W,matches:N});if(L.renames)for(const{from:T,to:z,options:B}of L.renames)A=A.rename(T,z,B);return A}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),D.clone=function(A,L){if(typeof A=="object"){if(L.nonEnumerables)return f(A,{shallow:!0});const z=Object.create(Object.getPrototypeOf(A));return Object.assign(z,A),z}const T=function(...z){return A.apply(this,z)};return T.prototype=f(A.prototype),Object.defineProperty(T,"name",{value:A.name,writable:!1}),Object.defineProperty(T,"length",{value:A.length,writable:!1}),Object.assign(T,A),T},D.dependency=function(A,L,T,z,B){l(T===null||typeof T=="string",L,"key must be a strings"),B||(B=z.length>1&&typeof z[z.length-1]=="object"?z.pop():{}),v.assertOptions(B,["separator"]),z=[].concat(z);const W=v.default(B.separator,"."),N=[];for(const re of z)l(typeof re=="string",L,"peers must be strings"),N.push(_.ref(re,{separator:W,ancestor:0,prefix:!1}));T!==null&&(T=_.ref(T,{separator:W,ancestor:0,prefix:!1}));const K=A.clone();return K.$_terms.dependencies=K.$_terms.dependencies||[],K.$_terms.dependencies.push(new D.Dependency(L,T,N,z)),K},D.dependencies={and(A,L,T,z,B){const W=[],N=[],K=L.peers.length;for(const re of L.peers)re.resolve(T,z,B,null,{shadow:!1})===void 0?W.push(re.key):N.push(re.key);if(W.length!==K&&N.length!==K)return{code:"object.and",context:{present:N,presentWithLabels:D.keysToLabels(A,N),missing:W,missingWithLabels:D.keysToLabels(A,W)}}},nand(A,L,T,z,B){const W=[];for(const re of L.peers)re.resolve(T,z,B,null,{shadow:!1})!==void 0&&W.push(re.key);if(W.length!==L.peers.length)return;const N=L.paths[0],K=L.paths.slice(1);return{code:"object.nand",context:{main:N,mainWithLabel:D.keysToLabels(A,N),peers:K,peersWithLabels:D.keysToLabels(A,K)}}},or(A,L,T,z,B){for(const W of L.peers)if(W.resolve(T,z,B,null,{shadow:!1})!==void 0)return;return{code:"object.missing",context:{peers:L.paths,peersWithLabels:D.keysToLabels(A,L.paths)}}},oxor(A,L,T,z,B){const W=[];for(const K of L.peers)K.resolve(T,z,B,null,{shadow:!1})!==void 0&&W.push(K.key);if(!W.length||W.length===1)return;const N={peers:L.paths,peersWithLabels:D.keysToLabels(A,L.paths)};return N.present=W,N.presentWithLabels=D.keysToLabels(A,W),{code:"object.oxor",context:N}},with(A,L,T,z,B){for(const W of L.peers)if(W.resolve(T,z,B,null,{shadow:!1})===void 0)return{code:"object.with",context:{main:L.key.key,mainWithLabel:D.keysToLabels(A,L.key.key),peer:W.key,peerWithLabel:D.keysToLabels(A,W.key)}}},without(A,L,T,z,B){for(const W of L.peers)if(W.resolve(T,z,B,null,{shadow:!1})!==void 0)return{code:"object.without",context:{main:L.key.key,mainWithLabel:D.keysToLabels(A,L.key.key),peer:W.key,peerWithLabel:D.keysToLabels(A,W.key)}}},xor(A,L,T,z,B){const W=[];for(const K of L.peers)K.resolve(T,z,B,null,{shadow:!1})!==void 0&&W.push(K.key);if(W.length===1)return;const N={peers:L.paths,peersWithLabels:D.keysToLabels(A,L.paths)};return W.length===0?{code:"object.missing",context:N}:(N.present=W,N.presentWithLabels=D.keysToLabels(A,W),{code:"object.xor",context:N})}},D.keysToLabels=function(A,L){return Array.isArray(L)?L.map(T=>A.$_mapLabels(T)):A.$_mapLabels(L)},D.rename=function(A,L,T,z,B){const W={};for(const N of A.$_terms.renames){const K=[],re=typeof N.from!="string";if(re)for(const se in L){if(L[se]===void 0&&N.options.ignoreUndefined||se===N.to)continue;const ce=N.from.exec(se);ce&&K.push({from:se,to:N.to,match:ce})}else!Object.prototype.hasOwnProperty.call(L,N.from)||L[N.from]===void 0&&N.options.ignoreUndefined||K.push(N);for(const se of K){const ce=se.from;let de=se.to;if(de instanceof w&&(de=de.render(L,T,z,se.match)),ce!==de){if(!N.options.multiple&&W[de]&&(B.push(A.$_createError("object.rename.multiple",L,{from:ce,to:de,pattern:re},T,z)),z.abortEarly)||Object.prototype.hasOwnProperty.call(L,de)&&!N.options.override&&!W[de]&&(B.push(A.$_createError("object.rename.override",L,{from:ce,to:de,pattern:re},T,z)),z.abortEarly))return!1;L[ce]===void 0?delete L[de]:L[de]=L[ce],W[de]=!0,N.options.alias||delete L[ce]}}}return!0},D.unknown=function(A,L,T,z,B,W){if(A.$_terms.patterns){let N=!1;const K=A.$_terms.patterns.map(se=>{if(se.matches)return N=!0,[]}),re=[L,...B.ancestors];for(const se of T){const ce=L[se],de=[...B.path,se];for(let ge=0;ge<A.$_terms.patterns.length;++ge){const Ce=A.$_terms.patterns[ge];if(Ce.regex){const Ye=Ce.regex.test(se);if(B.mainstay.tracer.debug(B,"rule","pattern.".concat(ge),Ye?"pass":"error"),!Ye)continue}else if(!Ce.schema.$_match(se,B.nest(Ce.schema,"pattern.".concat(ge)),W))continue;T.delete(se);const Oe=B.localize(de,re,{schema:Ce.rule,key:se}),Ve=Ce.rule.$_validate(ce,Oe,W);if(Ve.errors){if(W.abortEarly)return{value:L,errors:Ve.errors};z.push(...Ve.errors)}if(Ce.matches&&K[ge].push(se),L[se]=Ve.value,!Ce.fallthrough)break}}if(N)for(let se=0;se<K.length;++se){const ce=K[se];if(!ce)continue;const de=A.$_terms.patterns[se].matches,ge=B.localize(B.path,re,de),Ce=de.$_validate(ce,ge,W);if(Ce.errors){const Oe=y.details(Ce.errors,{override:!1});Oe.matches=ce;const Ve=A.$_createError("object.pattern.match",L,Oe,B,W);if(W.abortEarly)return{value:L,errors:Ve};z.push(Ve)}}}if(T.size&&(A.$_terms.keys||A.$_terms.patterns)){if(W.stripUnknown&&!A._flags.unknown||W.skipFunctions){const N=!(!W.stripUnknown||W.stripUnknown!==!0&&!W.stripUnknown.objects);for(const K of T)N?(delete L[K],T.delete(K)):typeof L[K]=="function"&&T.delete(K)}if(!v.default(A._flags.unknown,W.allowUnknown))for(const N of T){const K=B.localize([...B.path,N],[]),re=A.$_createError("object.unknown",L[N],{child:N},K,W,{flags:!1});if(W.abortEarly)return{value:L,errors:re};z.push(re)}}},D.Dependency=class{constructor(A,L,T,z){this.rel=A,this.key=L,this.peers=T,this.paths=z}describe(){const A={rel:this.rel,peers:this.paths};return this.key!==null&&(A.key=this.key.key),this.peers[0].separator!=="."&&(A.options={separator:this.peers[0].separator}),A}},D.Keys=class extends Array{concat(A){const L=this.slice(),T=new Map;for(let z=0;z<L.length;++z)T.set(L[z].key,z);for(const z of A){const B=z.key,W=T.get(B);W!==void 0?L[W]={key:B,schema:L[W].schema.concat(z.schema)}:L.push(z)}return L}}},8785:(a,o,r)=>{const s=r(375),l=r(8068),f=r(8160),p=r(3292),h=r(6354),v={};a.exports=l.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(_,y)=>_.ref(y),validate(_,{schema:y,state:k,prefs:w}){s(y.$_terms.link,"Uninitialized link schema");const D=v.generate(y,_,k,w),A=y.$_terms.link[0].ref;return D.$_validate(_,k.nest(D,"link:".concat(A.display,":").concat(D.type)),w)},generate:(_,y,k,w)=>v.generate(_,y,k,w),rules:{ref:{method(_){s(!this.$_terms.link,"Cannot reinitialize schema"),_=p.ref(_),s(_.type==="value"||_.type==="local","Invalid reference type:",_.type),s(_.type==="local"||_.ancestor==="root"||_.ancestor>0,"Link cannot reference itself");const y=this.clone();return y.$_terms.link=[{ref:_}],y}},relative:{method(_=!0){return this.$_setFlag("relative",_)}}},overrides:{concat(_){s(this.$_terms.link,"Uninitialized link schema"),s(f.isSchema(_),"Invalid schema object"),s(_.type!=="link","Cannot merge type link with another link");const y=this.clone();return y.$_terms.whens||(y.$_terms.whens=[]),y.$_terms.whens.push({concat:_}),y.$_mutateRebuild()}},manifest:{build:(_,y)=>(s(y.link,"Invalid link description missing link"),_.ref(y.link))}}),v.generate=function(_,y,k,w){let D=k.mainstay.links.get(_);if(D)return D._generate(y,k,w).schema;const A=_.$_terms.link[0].ref,{perspective:L,path:T}=v.perspective(A,k);v.assert(L,"which is outside of schema boundaries",A,_,k,w);try{D=T.length?L.$_reach(T):L}catch{v.assert(!1,"to non-existing schema",A,_,k,w)}return v.assert(D.type!=="link","which is another link",A,_,k,w),_._flags.relative||k.mainstay.links.set(_,D),D._generate(y,k,w).schema},v.perspective=function(_,y){if(_.type==="local"){for(const{schema:k,key:w}of y.schemas){if((k._flags.id||w)===_.path[0])return{perspective:k,path:_.path.slice(1)};if(k.$_terms.shared){for(const D of k.$_terms.shared)if(D._flags.id===_.path[0])return{perspective:D,path:_.path.slice(1)}}}return{perspective:null,path:null}}return _.ancestor==="root"?{perspective:y.schemas[y.schemas.length-1].schema,path:_.path}:{perspective:y.schemas[_.ancestor]&&y.schemas[_.ancestor].schema,path:_.path}},v.assert=function(_,y,k,w,D,A){_||s(!1,'"'.concat(h.label(w._flags,D,A),'" contains link reference "').concat(k.display,'" ').concat(y))}},3832:(a,o,r)=>{const s=r(375),l=r(8068),f=r(8160),p={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/};a.exports=l.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(h,{schema:v,error:_}){const y=h.match(p.numberRx);if(!y)return;h=h.trim();const k={value:parseFloat(h)};if(k.value===0&&(k.value=0),!v._flags.unsafe)if(h.match(/e/i)){if(p.normalizeExponent("".concat(k.value/Math.pow(10,y[1]),"e").concat(y[1]))!==p.normalizeExponent(h))return k.errors=_("number.unsafe"),k}else{const w=k.value.toString();if(w.match(/e/i))return k;if(w!==p.normalizeDecimal(h))return k.errors=_("number.unsafe"),k}return k}},validate(h,{schema:v,error:_,prefs:y}){if(h===1/0||h===-1/0)return{value:h,errors:_("number.infinity")};if(!f.isNumber(h))return{value:h,errors:_("number.base")};const k={value:h};if(y.convert){const w=v.$_getRule("precision");if(w){const D=Math.pow(10,w.args.limit);k.value=Math.round(k.value*D)/D}}return k.value===0&&(k.value=0),!v._flags.unsafe&&(h>Number.MAX_SAFE_INTEGER||h<Number.MIN_SAFE_INTEGER)&&(k.errors=_("number.unsafe")),k},rules:{compare:{method:!1,validate:(h,v,{limit:_},{name:y,operator:k,args:w})=>f.compare(h,_,k)?h:v.error("number."+y,{limit:w.limit,value:h}),args:[{name:"limit",ref:!0,assert:f.isNumber,message:"must be a number"}]},greater:{method(h){return this.$_addRule({name:"greater",method:"compare",args:{limit:h},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(h,v)=>Math.trunc(h)-h==0?h:v.error("number.integer")},less:{method(h){return this.$_addRule({name:"less",method:"compare",args:{limit:h},operator:"<"})}},max:{method(h){return this.$_addRule({name:"max",method:"compare",args:{limit:h},operator:"<="})}},min:{method(h){return this.$_addRule({name:"min",method:"compare",args:{limit:h},operator:">="})}},multiple:{method(h){return this.$_addRule({name:"multiple",args:{base:h}})},validate:(h,v,{base:_},y)=>h%_==0?h:v.error("number.multiple",{multiple:y.args.base,value:h}),args:[{name:"base",ref:!0,assert:h=>typeof h=="number"&&isFinite(h)&&h>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(h,v)=>Number.isSafeInteger(h)&&h>=0&&h<=65535?h:v.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(h){return s(Number.isSafeInteger(h),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:h}})},validate(h,v,{limit:_}){const y=h.toString().match(p.precisionRx);return Math.max((y[1]?y[1].length:0)-(y[2]?parseInt(y[2],10):0),0)<=_?h:v.error("number.precision",{limit:_,value:h})},convert:!0},sign:{method(h){return s(["negative","positive"].includes(h),"Invalid sign",h),this.$_addRule({name:"sign",args:{sign:h}})},validate:(h,v,{sign:_})=>_==="negative"&&h<0||_==="positive"&&h>0?h:v.error("number.".concat(_))},unsafe:{method(h=!0){return s(typeof h=="boolean","enabled must be a boolean"),this.$_setFlag("unsafe",h)}}},cast:{string:{from:h=>typeof h=="number",to:(h,v)=>h.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),p.normalizeExponent=function(h){return h.replace(/E/,"e").replace(/\.(\d*[1-9])?0+e/,".$1e").replace(/\.e/,"e").replace(/e\+/,"e").replace(/^\+/,"").replace(/^(-?)0+([1-9])/,"$1$2")},p.normalizeDecimal=function(h){return(h=h.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&h.endsWith("0")&&(h=h.replace(/0+$/,"")),h==="-0"?"0":h}},8966:(a,o,r)=>{const s=r(7824);a.exports=s.extend({type:"object",cast:{map:{from:l=>l&&typeof l=="object",to:(l,f)=>new Map(Object.entries(l))}}})},7417:(a,o,r)=>{function s(T,z){var B=Object.keys(T);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(T);z&&(W=W.filter(function(N){return Object.getOwnPropertyDescriptor(T,N).enumerable})),B.push.apply(B,W)}return B}function l(T){for(var z=1;z<arguments.length;z++){var B=arguments[z]!=null?arguments[z]:{};z%2?s(Object(B),!0).forEach(function(W){f(T,W,B[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(B)):s(Object(B)).forEach(function(W){Object.defineProperty(T,W,Object.getOwnPropertyDescriptor(B,W))})}return T}function f(T,z,B){return z in T?Object.defineProperty(T,z,{value:B,enumerable:!0,configurable:!0,writable:!0}):T[z]=B,T}const p=r(375),h=r(5380),v=r(1745),_=r(9959),y=r(6064),k=r(9926),w=r(5752),D=r(8068),A=r(8160),L={tlds:k instanceof Set&&{tlds:{allow:k,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:_.regex().regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};a.exports=D.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(T,{schema:z,state:B,prefs:W}){const N=z.$_getRule("normalize");N&&(T=T.normalize(N.args.form));const K=z.$_getRule("case");K&&(T=K.args.direction==="upper"?T.toLocaleUpperCase():T.toLocaleLowerCase());const re=z.$_getRule("trim");if(re&&re.args.enabled&&(T=T.trim()),z.$_terms.replacements)for(const ce of z.$_terms.replacements)T=T.replace(ce.pattern,ce.replacement);const se=z.$_getRule("hex");if(se&&se.args.options.byteAligned&&T.length%2!=0&&(T="0".concat(T)),z.$_getRule("isoDate")){const ce=L.isoDate(T);ce&&(T=ce)}if(z._flags.truncate){const ce=z.$_getRule("max");if(ce){let de=ce.args.limit;if(A.isResolvable(de)&&(de=de.resolve(T,B,W),!A.limit(de)))return{value:T,errors:z.$_createError("any.ref",de,{ref:ce.args.limit,arg:"limit",reason:"must be a positive integer"},B,W)};T=T.slice(0,de)}}return{value:T}}},validate:(T,{error:z})=>typeof T!="string"?{value:T,errors:z("string.base")}:T===""?{value:T,errors:z("string.empty")}:void 0,rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(T,z)=>/^[a-zA-Z0-9]+$/.test(T)?T:z.error("string.alphanum")},base64:{method(T={}){return A.assertOptions(T,["paddingRequired","urlSafe"]),T=l({urlSafe:!1,paddingRequired:!0},T),p(typeof T.paddingRequired=="boolean","paddingRequired must be boolean"),p(typeof T.urlSafe=="boolean","urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:T}})},validate:(T,z,{options:B})=>L.base64Regex[B.paddingRequired][B.urlSafe].test(T)?T:z.error("string.base64")},case:{method(T){return p(["lower","upper"].includes(T),"Invalid case:",T),this.$_addRule({name:"case",args:{direction:T}})},validate:(T,z,{direction:B})=>B==="lower"&&T===T.toLocaleLowerCase()||B==="upper"&&T===T.toLocaleUpperCase()?T:z.error("string.".concat(B,"case")),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(T,z){let B=T.length,W=0,N=1;for(;B--;){const K=T.charAt(B)*N;W+=K-9*(K>9),N^=3}return W>0&&W%10==0?T:z.error("string.creditCard")}},dataUri:{method(T={}){return A.assertOptions(T,["paddingRequired"]),T=l({paddingRequired:!0},T),p(typeof T.paddingRequired=="boolean","paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:T}})},validate(T,z,{options:B}){const W=T.match(L.dataUriRegex);return W&&(!W[2]||W[2]!=="base64"||L.base64Regex[B.paddingRequired].false.test(W[3]))?T:z.error("string.dataUri")}},domain:{method(T){T&&A.assertOptions(T,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const z=L.addressOptions(T);return this.$_addRule({name:"domain",args:{options:T},address:z})},validate:(T,z,B,{address:W})=>h.isValid(T,W)?T:z.error("string.domain")},email:{method(T={}){A.assertOptions(T,["allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),p(T.multiple===void 0||typeof T.multiple=="boolean","multiple option must be an boolean");const z=L.addressOptions(T),B=new RegExp("\\s*[".concat(T.separator?y(T.separator):",","]\\s*"));return this.$_addRule({name:"email",args:{options:T},regex:B,address:z})},validate(T,z,{options:B},{regex:W,address:N}){const K=B.multiple?T.split(W):[T],re=[];for(const se of K)v.isValid(se,N)||re.push(se);return re.length?z.error("string.email",{value:T,invalids:re}):T}},guid:{alias:"uuid",method(T={}){A.assertOptions(T,["version","separator"]);let z="";if(T.version){const N=[].concat(T.version);p(N.length>=1,"version must have at least 1 valid version specified");const K=new Set;for(let re=0;re<N.length;++re){const se=N[re];p(typeof se=="string","version at position "+re+" must be a string");const ce=L.guidVersions[se.toLowerCase()];p(ce,"version at position "+re+" must be one of "+Object.keys(L.guidVersions).join(", ")),p(!K.has(ce),"version at position "+re+" must not be a duplicate"),z+=ce,K.add(ce)}}p(L.guidSeparators.has(T.separator),'separator must be one of true, false, "-", or ":"');const B=T.separator===void 0?"[:-]?":T.separator===!0?"[:-]":T.separator===!1?"[]?":"\\".concat(T.separator),W=new RegExp("^([\\[{\\(]?)[0-9A-F]{8}(".concat(B,")[0-9A-F]{4}\\2?[").concat(z||"0-9A-F","][0-9A-F]{3}\\2?[").concat(z?"89AB":"0-9A-F","][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$"),"i");return this.$_addRule({name:"guid",args:{options:T},regex:W})},validate(T,z,B,{regex:W}){const N=W.exec(T);return N?L.guidBrackets[N[1]]!==N[N.length-1]?z.error("string.guid"):T:z.error("string.guid")}},hex:{method(T={}){return A.assertOptions(T,["byteAligned"]),T=l({byteAligned:!1},T),p(typeof T.byteAligned=="boolean","byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:T}})},validate:(T,z,{options:B})=>L.hexRegex.test(T)?B.byteAligned&&T.length%2!=0?z.error("string.hexAlign"):T:z.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(T,z)=>h.isValid(T,{minDomainSegments:1})||L.ipRegex.test(T)?T:z.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(T={}){A.assertOptions(T,["cidr","version"]);const{cidr:z,versions:B,regex:W}=_.regex(T),N=T.version?B:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:z,version:N}},regex:W})},validate:(T,z,{options:B},{regex:W})=>W.test(T)?T:B.version?z.error("string.ipVersion",{value:T,cidr:B.cidr,version:B.version}):z.error("string.ip",{value:T,cidr:B.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(T,{error:z})=>L.isoDate(T)?T:z("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(T,z)=>L.isoDurationRegex.test(T)?T:z.error("string.isoDuration")},length:{method(T,z){return L.length(this,"length",T,"=",z)},validate(T,z,{limit:B,encoding:W},{name:N,operator:K,args:re}){const se=!W&&T.length;return A.compare(se,B,K)?T:z.error("string."+N,{limit:re.limit,value:T,encoding:W})},args:[{name:"limit",ref:!0,assert:A.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(T,z){return L.length(this,"max",T,"<=",z)},args:["limit","encoding"]},min:{method(T,z){return L.length(this,"min",T,">=",z)},args:["limit","encoding"]},normalize:{method(T="NFC"){return p(L.normalizationForms.includes(T),"normalization form must be one of "+L.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:T}})},validate:(T,{error:z},{form:B})=>T===T.normalize(B)?T:z("string.normalize",{value:T,form:B}),convert:!0},pattern:{alias:"regex",method(T,z={}){p(T instanceof RegExp,"regex must be a RegExp"),p(!T.flags.includes("g")&&!T.flags.includes("y"),"regex should not use global or sticky mode"),typeof z=="string"&&(z={name:z}),A.assertOptions(z,["invert","name"]);const B=["string.pattern",z.invert?".invert":"",z.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:T,options:z},errorCode:B})},validate:(T,z,{regex:B,options:W},{errorCode:N})=>B.test(T)^W.invert?T:z.error(N,{name:W.name,regex:B,value:T}),args:["regex","options"],multi:!0},replace:{method(T,z){typeof T=="string"&&(T=new RegExp(y(T),"g")),p(T instanceof RegExp,"pattern must be a RegExp"),p(typeof z=="string","replacement must be a String");const B=this.clone();return B.$_terms.replacements||(B.$_terms.replacements=[]),B.$_terms.replacements.push({pattern:T,replacement:z}),B}},token:{method(){return this.$_addRule("token")},validate:(T,z)=>/^\w+$/.test(T)?T:z.error("string.token")},trim:{method(T=!0){return p(typeof T=="boolean","enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:T}})},validate:(T,z,{enabled:B})=>B&&T!==T.trim()?z.error("string.trim"):T,convert:!0},truncate:{method(T=!0){return p(typeof T=="boolean","enabled must be a boolean"),this.$_setFlag("truncate",T)}},uppercase:{method(){return this.case("upper")}},uri:{method(T={}){A.assertOptions(T,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),T.domain&&A.assertOptions(T.domain,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:z,scheme:B}=w.regex(T),W=T.domain?L.addressOptions(T.domain):null;return this.$_addRule({name:"uri",args:{options:T},regex:z,domain:W,scheme:B})},validate(T,z,{options:B},{regex:W,domain:N,scheme:K}){if(["http:/","https:/"].includes(T))return z.error("string.uri");const re=W.exec(T);if(re){const se=re[1]||re[2];return!N||B.allowRelative&&!se||h.isValid(se,N)?T:z.error("string.domain",{value:se})}return B.relativeOnly?z.error("string.uriRelativeOnly"):B.scheme?z.error("string.uriCustomScheme",{scheme:K,value:T}):z.error("string.uri")}}},manifest:{build(T,z){if(z.replacements)for(const{pattern:B,replacement:W}of z.replacements)T=T.replace(B,W);return T}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),L.addressOptions=function(T){if(!T||(p(T.minDomainSegments===void 0||Number.isSafeInteger(T.minDomainSegments)&&T.minDomainSegments>0,"minDomainSegments must be a positive integer"),p(T.maxDomainSegments===void 0||Number.isSafeInteger(T.maxDomainSegments)&&T.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),T.tlds===!1))return T;if(T.tlds===!0||T.tlds===void 0)return p(L.tlds,"Built-in TLD list disabled"),Object.assign({},T,L.tlds);p(typeof T.tlds=="object","tlds must be true, false, or an object");const z=T.tlds.deny;if(z)return Array.isArray(z)&&(T=Object.assign({},T,{tlds:{deny:new Set(z)}})),p(T.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),p(!T.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),L.validateTlds(T.tlds.deny,"tlds.deny"),T;const B=T.tlds.allow;return B?B===!0?(p(L.tlds,"Built-in TLD list disabled"),Object.assign({},T,L.tlds)):(Array.isArray(B)&&(T=Object.assign({},T,{tlds:{allow:new Set(B)}})),p(T.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),L.validateTlds(T.tlds.allow,"tlds.allow"),T):T},L.validateTlds=function(T,z){for(const B of T)p(h.isValid(B,{minDomainSegments:1,maxDomainSegments:1}),"".concat(z," must contain valid top level domain names"))},L.isoDate=function(T){if(!A.isIsoDate(T))return null;/.*T.*[+-]\d\d$/.test(T)&&(T+="00");const z=new Date(T);return isNaN(z.getTime())?null:z.toISOString()},L.length=function(T,z,B,W,N){return p(!N||!1,"Invalid encoding:",N),T.$_addRule({name:z,method:"length",args:{limit:B,encoding:N},operator:W})}},8826:(a,o,r)=>{const s=r(375),l=r(8068),f={};f.Map=class extends Map{slice(){return new f.Map(this)}},a.exports=l.extend({type:"symbol",terms:{map:{init:new f.Map}},coerce:{method(p,{schema:h,error:v}){const _=h.$_terms.map.get(p);return _&&(p=_),h._flags.only&&typeof p!="symbol"?{value:p,errors:v("symbol.map",{map:h.$_terms.map})}:{value:p}}},validate(p,{error:h}){if(typeof p!="symbol")return{value:p,errors:h("symbol.base")}},rules:{map:{method(p){p&&!p[Symbol.iterator]&&typeof p=="object"&&(p=Object.entries(p)),s(p&&p[Symbol.iterator],"Iterable must be an iterable or object");const h=this.clone(),v=[];for(const _ of p){s(_&&_[Symbol.iterator],"Entry must be an iterable");const[y,k]=_;s(typeof y!="object"&&typeof y!="function"&&typeof y!="symbol","Key must not be of type object, function, or Symbol"),s(typeof k=="symbol","Value must be a Symbol"),h.$_terms.map.set(y,k),v.push(k)}return h.valid(...v)}}},manifest:{build:(p,h)=>(h.map&&(p=p.map(h.map)),p)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(a,o,r)=>{const s=r(375),l=r(8571),f=r(738),p=r(9621),h=r(8160),v=r(6354),_=r(493),y={result:Symbol("result")};o.entry=function(k,w,D){let A=h.defaults;D&&(s(D.warnings===void 0,"Cannot override warnings preference in synchronous validation"),s(D.artifacts===void 0,"Cannot override artifacts preference in synchronous validation"),A=h.preferences(h.defaults,D));const L=y.entry(k,w,A);s(!L.mainstay.externals.length,"Schema with external rules must use validateAsync()");const T={value:L.value};return L.error&&(T.error=L.error),L.mainstay.warnings.length&&(T.warning=v.details(L.mainstay.warnings)),L.mainstay.debug&&(T.debug=L.mainstay.debug),L.mainstay.artifacts&&(T.artifacts=L.mainstay.artifacts),T},o.entryAsync=async function(k,w,D){let A=h.defaults;D&&(A=h.preferences(h.defaults,D));const L=y.entry(k,w,A),T=L.mainstay;if(L.error)throw T.debug&&(L.error.debug=T.debug),L.error;if(T.externals.length){let B=L.value;for(const{method:W,path:N,label:K}of T.externals){let re,se,ce=B;N.length&&(re=N[N.length-1],se=p(B,N.slice(0,-1)),ce=se[re]);try{const de=await W(ce,{prefs:D});if(de===void 0||de===ce)continue;se?se[re]=de:B=de}catch(de){throw de.message+=" (".concat(K,")"),de}}L.value=B}if(!A.warnings&&!A.debug&&!A.artifacts)return L.value;const z={value:L.value};return T.warnings.length&&(z.warning=v.details(T.warnings)),T.debug&&(z.debug=T.debug),T.artifacts&&(z.artifacts=T.artifacts),z},y.entry=function(k,w,D){const{tracer:A,cleanup:L}=y.tracer(w,D),T={externals:[],warnings:[],tracer:A,debug:D.debug?[]:null,links:w._ids._schemaChain?new Map:null},z=w._ids._schemaChain?[{schema:w}]:null,B=new _([],[],{mainstay:T,schemas:z}),W=o.validate(k,w,B,D);L&&w.$_root.untrace();const N=v.process(W.errors,k,D);return{value:W.value,error:N,mainstay:T}},y.tracer=function(k,w){return k.$_root._tracer?{tracer:k.$_root._tracer._register(k)}:w.debug?(s(k.$_root.trace,"Debug mode not supported"),{tracer:k.$_root.trace()._register(k),cleanup:!0}):{tracer:y.ignore}},o.validate=function(k,w,D,A,L={}){if(w.$_terms.whens&&(w=w._generate(k,D,A).schema),w._preferences&&(A=y.prefs(w,A)),w._cache&&A.cache){const re=w._cache.get(k);if(D.mainstay.tracer.debug(D,"validate","cached",!!re),re)return re}const T=(re,se,ce)=>w.$_createError(re,k,se,ce||D,A),z={original:k,prefs:A,schema:w,state:D,error:T,errorsArray:y.errorsArray,warn:(re,se,ce)=>D.mainstay.warnings.push(T(re,se,ce)),message:(re,se)=>w.$_createError("custom",k,se,D,A,{messages:re})};D.mainstay.tracer.entry(w,D);const B=w._definition;if(B.prepare&&k!==void 0&&A.convert){const re=B.prepare(k,z);if(re){if(D.mainstay.tracer.value(D,"prepare",k,re.value),re.errors)return y.finalize(re.value,[].concat(re.errors),z);k=re.value}}if(B.coerce&&k!==void 0&&A.convert&&(!B.coerce.from||B.coerce.from.includes(typeof k))){const re=B.coerce.method(k,z);if(re){if(D.mainstay.tracer.value(D,"coerced",k,re.value),re.errors)return y.finalize(re.value,[].concat(re.errors),z);k=re.value}}const W=w._flags.empty;W&&W.$_match(y.trim(k,w),D.nest(W),h.defaults)&&(D.mainstay.tracer.value(D,"empty",k,void 0),k=void 0);const N=L.presence||w._flags.presence||(w._flags._endedSwitch?null:A.presence);if(k===void 0){if(N==="forbidden")return y.finalize(k,null,z);if(N==="required")return y.finalize(k,[w.$_createError("any.required",k,null,D,A)],z);if(N==="optional"){if(w._flags.default!==h.symbols.deepDefault)return y.finalize(k,null,z);D.mainstay.tracer.value(D,"default",k,{}),k={}}}else if(N==="forbidden")return y.finalize(k,[w.$_createError("any.unknown",k,null,D,A)],z);const K=[];if(w._valids){const re=w._valids.get(k,D,A,w._flags.insensitive);if(re)return A.convert&&(D.mainstay.tracer.value(D,"valids",k,re.value),k=re.value),D.mainstay.tracer.filter(w,D,"valid",re),y.finalize(k,null,z);if(w._flags.only){const se=w.$_createError("any.only",k,{valids:w._valids.values({display:!0})},D,A);if(A.abortEarly)return y.finalize(k,[se],z);K.push(se)}}if(w._invalids){const re=w._invalids.get(k,D,A,w._flags.insensitive);if(re){D.mainstay.tracer.filter(w,D,"invalid",re);const se=w.$_createError("any.invalid",k,{invalids:w._invalids.values({display:!0})},D,A);if(A.abortEarly)return y.finalize(k,[se],z);K.push(se)}}if(B.validate){const re=B.validate(k,z);if(re&&(D.mainstay.tracer.value(D,"base",k,re.value),k=re.value,re.errors)){if(!Array.isArray(re.errors))return K.push(re.errors),y.finalize(k,K,z);if(re.errors.length)return K.push(...re.errors),y.finalize(k,K,z)}}return w._rules.length?y.rules(k,K,z):y.finalize(k,K,z)},y.rules=function(k,w,D){const{schema:A,state:L,prefs:T}=D;for(const z of A._rules){const B=A._definition.rules[z.method];if(B.convert&&T.convert){L.mainstay.tracer.log(A,L,"rule",z.name,"full");continue}let W,N=z.args;if(z._resolve.length){N=Object.assign({},N);for(const re of z._resolve){const se=B.argsByName.get(re),ce=N[re].resolve(k,L,T),de=se.normalize?se.normalize(ce):ce,ge=h.validateArg(de,null,se);if(ge){W=A.$_createError("any.ref",ce,{arg:re,ref:N[re],reason:ge},L,T);break}N[re]=de}}W=W||B.validate(k,D,N,z);const K=y.rule(W,z);if(K.errors){if(L.mainstay.tracer.log(A,L,"rule",z.name,"error"),z.warn){L.mainstay.warnings.push(...K.errors);continue}if(T.abortEarly)return y.finalize(k,K.errors,D);w.push(...K.errors)}else L.mainstay.tracer.log(A,L,"rule",z.name,"pass"),L.mainstay.tracer.value(L,"rule",k,K.value,z.name),k=K.value}return y.finalize(k,w,D)},y.rule=function(k,w){return k instanceof v.Report?(y.error(k,w),{errors:[k],value:null}):Array.isArray(k)&&k[h.symbols.errors]?(k.forEach(D=>y.error(D,w)),{errors:k,value:null}):{errors:null,value:k}},y.error=function(k,w){return w.message&&k._setTemplate(w.message),k},y.finalize=function(k,w,D){w=w||[];const{schema:A,state:L,prefs:T}=D;if(w.length){const B=y.default("failover",void 0,w,D);B!==void 0&&(L.mainstay.tracer.value(L,"failover",k,B),k=B,w=[])}if(w.length&&A._flags.error)if(typeof A._flags.error=="function"){w=A._flags.error(w),Array.isArray(w)||(w=[w]);for(const B of w)s(B instanceof Error||B instanceof v.Report,"error() must return an Error object")}else w=[A._flags.error];if(k===void 0){const B=y.default("default",k,w,D);L.mainstay.tracer.value(L,"default",k,B),k=B}if(A._flags.cast&&k!==void 0){const B=A._definition.cast[A._flags.cast];if(B.from(k)){const W=B.to(k,D);L.mainstay.tracer.value(L,"cast",k,W,A._flags.cast),k=W}}if(A.$_terms.externals&&T.externals&&T._externals!==!1)for(const{method:B}of A.$_terms.externals)L.mainstay.externals.push({method:B,path:L.path,label:v.label(A._flags,L,T)});const z={value:k,errors:w.length?w:null};return A._flags.result&&(z.value=A._flags.result==="strip"?void 0:D.original,L.mainstay.tracer.value(L,A._flags.result,k,z.value),L.shadow(k,A._flags.result)),A._cache&&T.cache!==!1&&!A._refs.length&&A._cache.set(D.original,z),k===void 0||z.errors||A._flags.artifact===void 0||(L.mainstay.artifacts=L.mainstay.artifacts||new Map,L.mainstay.artifacts.has(A._flags.artifact)||L.mainstay.artifacts.set(A._flags.artifact,[]),L.mainstay.artifacts.get(A._flags.artifact).push(L.path)),z},y.prefs=function(k,w){const D=w===h.defaults;return D&&k._preferences[h.symbols.prefs]?k._preferences[h.symbols.prefs]:(w=h.preferences(w,k._preferences),D&&(k._preferences[h.symbols.prefs]=w),w)},y.default=function(k,w,D,A){const{schema:L,state:T,prefs:z}=A,B=L._flags[k];if(z.noDefaults||B===void 0)return w;if(T.mainstay.tracer.log(L,T,"rule",k,"full"),!B)return B;if(typeof B=="function"){const W=B.length?[l(T.ancestors[0]),A]:[];try{return B(...W)}catch(N){return void D.push(L.$_createError("any.".concat(k),null,{error:N},T,z))}}return typeof B!="object"?B:B[h.symbols.literal]?B.literal:h.isResolvable(B)?B.resolve(w,T,z):l(B)},y.trim=function(k,w){if(typeof k!="string")return k;const D=w.$_getRule("trim");return D&&D.args.enabled?k.trim():k},y.ignore={active:!1,debug:f,entry:f,filter:f,log:f,resolve:f,value:f},y.errorsArray=function(){const k=[];return k[h.symbols.errors]=!0,k}},2036:(a,o,r)=>{const s=r(375),l=r(9474),f=r(8160),p={};a.exports=p.Values=class{constructor(h,v){this._values=new Set(h),this._refs=new Set(v),this._lowercase=p.lowercases(h),this._override=!1}get length(){return this._values.size+this._refs.size}add(h,v){f.isResolvable(h)?this._refs.has(h)||(this._refs.add(h),v&&v.register(h)):this.has(h,null,null,!1)||(this._values.add(h),typeof h=="string"&&this._lowercase.set(h.toLowerCase(),h))}static merge(h,v,_){if(h=h||new p.Values,v){if(v._override)return v.clone();for(const y of[...v._values,...v._refs])h.add(y)}if(_)for(const y of[..._._values,..._._refs])h.remove(y);return h.length?h:null}remove(h){f.isResolvable(h)?this._refs.delete(h):(this._values.delete(h),typeof h=="string"&&this._lowercase.delete(h.toLowerCase()))}has(h,v,_,y){return!!this.get(h,v,_,y)}get(h,v,_,y){if(!this.length)return!1;if(this._values.has(h))return{value:h};if(typeof h=="string"&&h&&y){const k=this._lowercase.get(h.toLowerCase());if(k)return{value:k}}if(!this._refs.size&&typeof h!="object")return!1;if(typeof h=="object"){for(const k of this._values)if(l(k,h))return{value:k}}if(v)for(const k of this._refs){const w=k.resolve(h,v,_,null,{in:!0});if(w===void 0)continue;const D=k.in&&typeof w=="object"?Array.isArray(w)?w:Object.keys(w):[w];for(const A of D)if(typeof A==typeof h){if(y&&h&&typeof h=="string"){if(A.toLowerCase()===h.toLowerCase())return{value:A,ref:k}}else if(l(A,h))return{value:A,ref:k}}}return!1}override(){this._override=!0}values(h){if(h&&h.display){const v=[];for(const _ of[...this._values,...this._refs])_!==void 0&&v.push(_);return v}return Array.from([...this._values,...this._refs])}clone(){const h=new p.Values(this._values,this._refs);return h._override=this._override,h}concat(h){s(!h._override,"Cannot concat override set of values");const v=new p.Values([...this._values,...h._values],[...this._refs,...h._refs]);return v._override=this._override,v}describe(){const h=[];this._override&&h.push({override:!0});for(const v of this._values.values())h.push(v&&typeof v=="object"?{value:v}:v);for(const v of this._refs.values())h.push(v.describe());return h}},p.Values.prototype[f.symbols.values]=!0,p.Values.prototype.slice=p.Values.prototype.clone,p.lowercases=function(h){const v=new Map;if(h)for(const _ of h)typeof _=="string"&&v.set(_.toLowerCase(),_);return v}},978:(a,o,r)=>{const s=r(375),l=r(8571),f=r(1687),p=r(9621),h={};a.exports=function(v,_,y={}){if(s(v&&typeof v=="object","Invalid defaults value: must be an object"),s(!_||_===!0||typeof _=="object","Invalid source value: must be true, falsy or an object"),s(typeof y=="object","Invalid options: must be an object"),!_)return null;if(y.shallow)return h.applyToDefaultsWithShallow(v,_,y);const k=l(v);if(_===!0)return k;const w=y.nullOverride!==void 0&&y.nullOverride;return f(k,_,{nullOverride:w,mergeArrays:!1})},h.applyToDefaultsWithShallow=function(v,_,y){const k=y.shallow;s(Array.isArray(k),"Invalid keys");const w=new Map,D=_===!0?null:new Set;for(let T of k){T=Array.isArray(T)?T:T.split(".");const z=p(v,T);z&&typeof z=="object"?w.set(z,D&&p(_,T)||z):D&&D.add(T)}const A=l(v,{},w);if(!D)return A;for(const T of D)h.reachCopy(A,_,T);const L=y.nullOverride!==void 0&&y.nullOverride;return f(A,_,{nullOverride:L,mergeArrays:!1})},h.reachCopy=function(v,_,y){for(const D of y){if(!(D in _))return;const A=_[D];if(typeof A!="object"||A===null)return;_=A}const k=_;let w=v;for(let D=0;D<y.length-1;++D){const A=y[D];typeof w[A]!="object"&&(w[A]={}),w=w[A]}w[y[y.length-1]]=k}},375:(a,o,r)=>{const s=r(7916);a.exports=function(l,...f){if(!l)throw f.length===1&&f[0]instanceof Error?f[0]:new s(f)}},8571:(a,o,r)=>{const s=r(9621),l=r(4277),f=r(7043),p={needsProtoHack:new Set([l.set,l.map,l.weakSet,l.weakMap])};a.exports=p.clone=function(h,v={},_=null){if(typeof h!="object"||h===null)return h;let y=p.clone,k=_;if(v.shallow){if(v.shallow!==!0)return p.cloneWithShallow(h,v);y=L=>L}else if(k){const L=k.get(h);if(L)return L}else k=new Map;const w=l.getInternalProto(h);if(w===l.buffer)return!1;if(w===l.date)return new Date(h.getTime());if(w===l.regex)return new RegExp(h);const D=p.base(h,w,v);if(D===h)return h;if(k&&k.set(h,D),w===l.set)for(const L of h)D.add(y(L,v,k));else if(w===l.map)for(const[L,T]of h)D.set(L,y(T,v,k));const A=f.keys(h,v);for(const L of A){if(L==="__proto__")continue;if(w===l.array&&L==="length"){D.length=h.length;continue}const T=Object.getOwnPropertyDescriptor(h,L);T?T.get||T.set?Object.defineProperty(D,L,T):T.enumerable?D[L]=y(h[L],v,k):Object.defineProperty(D,L,{enumerable:!1,writable:!0,configurable:!0,value:y(h[L],v,k)}):Object.defineProperty(D,L,{enumerable:!0,writable:!0,configurable:!0,value:y(h[L],v,k)})}return D},p.cloneWithShallow=function(h,v){const _=v.shallow;(v=Object.assign({},v)).shallow=!1;const y=new Map;for(const k of _){const w=s(h,k);typeof w!="object"&&typeof w!="function"||y.set(w,w)}return p.clone(h,v,y)},p.base=function(h,v,_){if(_.prototype===!1)return p.needsProtoHack.has(v)?new v.constructor:v===l.array?[]:{};const y=Object.getPrototypeOf(h);if(y&&y.isImmutable)return h;if(v===l.array){const k=[];return y!==v&&Object.setPrototypeOf(k,y),k}if(p.needsProtoHack.has(v)){const k=new y.constructor;return y!==v&&Object.setPrototypeOf(k,y),k}return Object.create(y)}},9474:(a,o,r)=>{const s=r(4277),l={mismatched:null};a.exports=function(f,p,h){return h=Object.assign({prototype:!0},h),!!l.isDeepEqual(f,p,h,[])},l.isDeepEqual=function(f,p,h,v){if(f===p)return f!==0||1/f==1/p;const _=typeof f;if(_!==typeof p||f===null||p===null)return!1;if(_==="function"){if(!h.deepFunction||f.toString()!==p.toString())return!1}else if(_!=="object")return f!=f&&p!=p;const y=l.getSharedType(f,p,!!h.prototype);switch(y){case s.buffer:return!1;case s.promise:return f===p;case s.regex:return f.toString()===p.toString();case l.mismatched:return!1}for(let k=v.length-1;k>=0;--k)if(v[k].isSame(f,p))return!0;v.push(new l.SeenEntry(f,p));try{return!!l.isDeepEqualObj(y,f,p,h,v)}finally{v.pop()}},l.getSharedType=function(f,p,h){if(h)return Object.getPrototypeOf(f)!==Object.getPrototypeOf(p)?l.mismatched:s.getInternalProto(f);const v=s.getInternalProto(f);return v!==s.getInternalProto(p)?l.mismatched:v},l.valueOf=function(f){const p=f.valueOf;if(p===void 0)return f;try{return p.call(f)}catch(h){return h}},l.hasOwnEnumerableProperty=function(f,p){return Object.prototype.propertyIsEnumerable.call(f,p)},l.isSetSimpleEqual=function(f,p){for(const h of Set.prototype.values.call(f))if(!Set.prototype.has.call(p,h))return!1;return!0},l.isDeepEqualObj=function(f,p,h,v,_){const{isDeepEqual:y,valueOf:k,hasOwnEnumerableProperty:w}=l,{keys:D,getOwnPropertySymbols:A}=Object;if(f===s.array){if(!v.part){if(p.length!==h.length)return!1;for(let W=0;W<p.length;++W)if(!y(p[W],h[W],v,_))return!1;return!0}for(const W of p)for(const N of h)if(y(W,N,v,_))return!0}else if(f===s.set){if(p.size!==h.size)return!1;if(!l.isSetSimpleEqual(p,h)){const W=new Set(Set.prototype.values.call(h));for(const N of Set.prototype.values.call(p)){if(W.delete(N))continue;let K=!1;for(const re of W)if(y(N,re,v,_)){W.delete(re),K=!0;break}if(!K)return!1}}}else if(f===s.map){if(p.size!==h.size)return!1;for(const[W,N]of Map.prototype.entries.call(p))if(N===void 0&&!Map.prototype.has.call(h,W)||!y(N,Map.prototype.get.call(h,W),v,_))return!1}else if(f===s.error&&(p.name!==h.name||p.message!==h.message))return!1;const L=k(p),T=k(h);if((p!==L||h!==T)&&!y(L,T,v,_))return!1;const z=D(p);if(!v.part&&z.length!==D(h).length&&!v.skip)return!1;let B=0;for(const W of z)if(v.skip&&v.skip.includes(W))h[W]===void 0&&++B;else if(!w(h,W)||!y(p[W],h[W],v,_))return!1;if(!v.part&&z.length-B!==D(h).length)return!1;if(v.symbols!==!1){const W=A(p),N=new Set(A(h));for(const K of W){if(!v.skip||!v.skip.includes(K)){if(w(p,K)){if(!w(h,K)||!y(p[K],h[K],v,_))return!1}else if(w(h,K))return!1}N.delete(K)}for(const K of N)if(w(h,K))return!1}return!0},l.SeenEntry=class{constructor(f,p){this.obj=f,this.ref=p}isSame(f,p){return this.obj===f&&this.ref===p}}},7916:(a,o,r)=>{const s=r(8761);a.exports=class extends Error{constructor(l){super(l.filter(f=>f!=="").map(f=>typeof f=="string"?f:f instanceof Error?f.message:s(f)).join(" ")||"Unknown error"),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,o.assert)}}},5277:a=>{const o={};a.exports=function(r){if(!r)return"";let s="";for(let l=0;l<r.length;++l){const f=r.charCodeAt(l);o.isSafe(f)?s+=r[l]:s+=o.escapeHtmlChar(f)}return s},o.escapeHtmlChar=function(r){const s=o.namedHtml[r];if(s!==void 0)return s;if(r>=256)return"&#"+r+";";const l=r.toString(16).padStart(2,"0");return"&#x".concat(l,";")},o.isSafe=function(r){return o.safeCharCodes[r]!==void 0},o.namedHtml={38:"&",60:"<",62:">",34:""",160:" ",162:"¢",163:"£",164:"¤",169:"©",174:"®"},o.safeCharCodes=function(){const r={};for(let s=32;s<123;++s)(s>=97||s>=65&&s<=90||s>=48&&s<=57||s===32||s===46||s===44||s===45||s===58||s===95)&&(r[s]=null);return r}()},6064:a=>{a.exports=function(o){return o.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:a=>{a.exports=function(){}},1687:(a,o,r)=>{const s=r(375),l=r(8571),f=r(7043),p={};a.exports=p.merge=function(h,v,_){if(s(h&&typeof h=="object","Invalid target value: must be an object"),s(v==null||typeof v=="object","Invalid source value: must be null, undefined, or an object"),!v)return h;if(_=Object.assign({nullOverride:!0,mergeArrays:!0},_),Array.isArray(v)){s(Array.isArray(h),"Cannot merge array onto an object"),_.mergeArrays||(h.length=0);for(let k=0;k<v.length;++k)h.push(l(v[k],{symbols:_.symbols}));return h}const y=f.keys(v,_);for(let k=0;k<y.length;++k){const w=y[k];if(w==="__proto__"||!Object.prototype.propertyIsEnumerable.call(v,w))continue;const D=v[w];if(D&&typeof D=="object"){if(h[w]===D)continue;!h[w]||typeof h[w]!="object"||Array.isArray(h[w])!==Array.isArray(D)||D instanceof Date||D instanceof RegExp?h[w]=l(D,{symbols:_.symbols}):p.merge(h[w],D,_)}else(D!=null||_.nullOverride)&&(h[w]=D)}return h}},9621:(a,o,r)=>{const s=r(375),l={};a.exports=function(f,p,h){if(p===!1||p==null)return f;typeof(h=h||{})=="string"&&(h={separator:h});const v=Array.isArray(p);s(!v||!h.separator,"Separator option no valid for array-based chain");const _=v?p:p.split(h.separator||".");let y=f;for(let k=0;k<_.length;++k){let w=_[k];const D=h.iterables&&l.iterables(y);if(Array.isArray(y)||D==="set"){const A=Number(w);Number.isInteger(A)&&(w=A<0?y.length+A:A)}if(!y||typeof y=="function"&&h.functions===!1||!D&&y[w]===void 0){s(!h.strict||k+1===_.length,"Missing segment",w,"in reach path ",p),s(typeof y=="object"||h.functions===!0||typeof y!="function","Invalid segment",w,"in reach path ",p),y=h.default;break}y=D?D==="set"?[...y][w]:y.get(w):y[w]}return y},l.iterables=function(f){return f instanceof Set?"set":f instanceof Map?"map":void 0}},8761:a=>{a.exports=function(...o){try{return JSON.stringify.apply(null,o)}catch(r){return"[Cannot display object: "+r.message+"]"}}},4277:(a,o)=>{const r={};o=a.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",o.error],["[object Map]",o.map],["[object Promise]",o.promise],["[object Set]",o.set],["[object WeakMap]",o.weakMap],["[object WeakSet]",o.weakSet]]),o.getInternalProto=function(s){if(Array.isArray(s))return o.array;if(s instanceof Date)return o.date;if(s instanceof RegExp)return o.regex;if(s instanceof Error)return o.error;const l=Object.prototype.toString.call(s);return r.typeMap.get(l)||o.generic}},7043:(a,o)=>{o.keys=function(r,s={}){return s.symbols!==!1?Reflect.ownKeys(r):Object.getOwnPropertyNames(r)}},3652:(a,o,r)=>{const s=r(375),l={};o.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(f,p){const h=[].concat((p=p||{}).before||[]),v=[].concat(p.after||[]),_=p.group||"?",y=p.sort||0;s(!h.includes(_),"Item cannot come before itself: ".concat(_)),s(!h.includes("?"),"Item cannot come before unassociated items"),s(!v.includes(_),"Item cannot come after itself: ".concat(_)),s(!v.includes("?"),"Item cannot come after unassociated items"),Array.isArray(f)||(f=[f]);for(const k of f){const w={seq:this._items.length,sort:y,before:h,after:v,group:_,node:k};this._items.push(w)}if(!p.manual){const k=this._sort();s(k,"item",_!=="?"?"added into group ".concat(_):"","created a dependencies error")}return this.nodes}merge(f){Array.isArray(f)||(f=[f]);for(const h of f)if(h)for(const v of h._items)this._items.push(Object.assign({},v));this._items.sort(l.mergeSort);for(let h=0;h<this._items.length;++h)this._items[h].seq=h;const p=this._sort();return s(p,"merge created a dependencies error"),this.nodes}sort(){const f=this._sort();return s(f,"sort created a dependencies error"),this.nodes}_sort(){const f={},p=Object.create(null),h=Object.create(null);for(const w of this._items){const D=w.seq,A=w.group;h[A]=h[A]||[],h[A].push(D),f[D]=w.before;for(const L of w.after)p[L]=p[L]||[],p[L].push(D)}for(const w in f){const D=[];for(const A in f[w]){const L=f[w][A];h[L]=h[L]||[],D.push(...h[L])}f[w]=D}for(const w in p)if(h[w])for(const D of h[w])f[D].push(...p[w]);const v={};for(const w in f){const D=f[w];for(const A of D)v[A]=v[A]||[],v[A].push(w)}const _={},y=[];for(let w=0;w<this._items.length;++w){let D=w;if(v[w]){D=null;for(let A=0;A<this._items.length;++A){if(_[A]===!0)continue;v[A]||(v[A]=[]);const L=v[A].length;let T=0;for(let z=0;z<L;++z)_[v[A][z]]&&++T;if(T===L){D=A;break}}}D!==null&&(_[D]=!0,y.push(D))}if(y.length!==this._items.length)return!1;const k={};for(const w of this._items)k[w.seq]=w;this._items=[],this.nodes=[];for(const w of y){const D=k[w];this.nodes.push(D.node),this._items.push(D)}return!0}},l.mergeSort=(f,p)=>f.sort===p.sort?0:f.sort<p.sort?-1:1},5380:(a,o,r)=>{const s=r(443),l=r(2178),f={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:s.URL||URL};o.analyze=function(p,h={}){if(typeof p!="string")throw new Error("Invalid input: domain must be a string");if(!p)return l.code("DOMAIN_NON_EMPTY_STRING");if(p.length>256)return l.code("DOMAIN_TOO_LONG");if(f.nonAsciiRx.test(p)){if(h.allowUnicode===!1)return l.code("DOMAIN_INVALID_UNICODE_CHARS");p=p.normalize("NFC")}if(f.domainControlRx.test(p))return l.code("DOMAIN_INVALID_CHARS");p=f.punycode(p);const v=h.minDomainSegments||f.minDomainSegments,_=p.split(".");if(_.length<v)return l.code("DOMAIN_SEGMENTS_COUNT");if(h.maxDomainSegments&&_.length>h.maxDomainSegments)return l.code("DOMAIN_SEGMENTS_COUNT_MAX");const y=h.tlds;if(y){const k=_[_.length-1].toLowerCase();if(y.deny&&y.deny.has(k)||y.allow&&!y.allow.has(k))return l.code("DOMAIN_FORBIDDEN_TLDS")}for(let k=0;k<_.length;++k){const w=_[k];if(!w.length)return l.code("DOMAIN_EMPTY_SEGMENT");if(w.length>63)return l.code("DOMAIN_LONG_SEGMENT");if(k<_.length-1){if(!f.domainSegmentRx.test(w))return l.code("DOMAIN_INVALID_CHARS")}else if(!f.tldSegmentRx.test(w))return l.code("DOMAIN_INVALID_TLDS_CHARS")}return null},o.isValid=function(p,h){return!o.analyze(p,h)},f.punycode=function(p){try{return new f.URL("http://".concat(p)).host}catch{return p}}},1745:(a,o,r)=>{const s=r(9848),l=r(5380),f=r(2178),p={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(s.TextEncoder||TextEncoder)};o.analyze=function(h,v){return p.email(h,v)},o.isValid=function(h,v){return!p.email(h,v)},p.email=function(h,v={}){if(typeof h!="string")throw new Error("Invalid input: email must be a string");if(!h)return f.code("EMPTY_STRING");const _=!p.nonAsciiRx.test(h);if(!_){if(v.allowUnicode===!1)return f.code("FORBIDDEN_UNICODE");h=h.normalize("NFC")}const y=h.split("@");if(y.length!==2)return y.length>2?f.code("MULTIPLE_AT_CHAR"):f.code("MISSING_AT_CHAR");const[k,w]=y;if(!k)return f.code("EMPTY_LOCAL");if(!v.ignoreLength){if(h.length>254)return f.code("ADDRESS_TOO_LONG");if(p.encoder.encode(k).length>64)return f.code("LOCAL_TOO_LONG")}return p.local(k,_)||l.analyze(w,v)},p.local=function(h,v){const _=h.split(".");for(const y of _){if(!y.length)return f.code("EMPTY_LOCAL_SEGMENT");if(v){if(!p.atextRx.test(y))return f.code("INVALID_LOCAL_CHARS")}else for(const k of y){if(p.atextRx.test(k))continue;const w=p.binary(k);if(!p.atomRx.test(w))return f.code("INVALID_LOCAL_CHARS")}}},p.binary=function(h){return Array.from(p.encoder.encode(h)).map(v=>String.fromCharCode(v)).join("")},p.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,p.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(a,o)=>{o.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},o.code=function(r){return{code:r,error:o.codes[r]}}},9959:(a,o,r)=>{const s=r(375),l=r(5752);o.regex=function(f={}){s(f.cidr===void 0||typeof f.cidr=="string","options.cidr must be a string");const p=f.cidr?f.cidr.toLowerCase():"optional";s(["required","optional","forbidden"].includes(p),"options.cidr must be one of required, optional, forbidden"),s(f.version===void 0||typeof f.version=="string"||Array.isArray(f.version),"options.version must be a string or an array of string");let h=f.version||["ipv4","ipv6","ipvfuture"];Array.isArray(h)||(h=[h]),s(h.length>=1,"options.version must have at least 1 version specified");for(let k=0;k<h.length;++k)s(typeof h[k]=="string","options.version must only contain strings"),h[k]=h[k].toLowerCase(),s(["ipv4","ipv6","ipvfuture"].includes(h[k]),"options.version contains unknown version "+h[k]+" - must be one of ipv4, ipv6, ipvfuture");h=Array.from(new Set(h));const v=h.map(k=>{if(p==="forbidden")return l.ip[k];const w="\\/".concat(k==="ipv4"?l.ip.v4Cidr:l.ip.v6Cidr);return p==="required"?"".concat(l.ip[k]).concat(w):"".concat(l.ip[k],"(?:").concat(w,")?")}),_="(?:".concat(v.join("|"),")"),y=new RegExp("^".concat(_,"$"));return{cidr:p,versions:h,regex:y,raw:_}}},5752:(a,o,r)=>{const s=r(375),l=r(6064),f={generate:function(){const p={},h="!\\$&'\\(\\)\\*\\+,;=",v="\\w-\\.~%\\dA-Fa-f"+h+":@",_="["+v+"]",y="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";p.ipv4address="(?:"+y+"\\.){3}"+y;const k="[\\dA-Fa-f]{1,4}",w="(?:"+k+":"+k+"|"+p.ipv4address+")",D="(?:"+k+":){6}"+w,A="::(?:"+k+":){5}"+w,L="(?:"+k+")?::(?:"+k+":){4}"+w,T="(?:(?:"+k+":){0,1}"+k+")?::(?:"+k+":){3}"+w,z="(?:(?:"+k+":){0,2}"+k+")?::(?:"+k+":){2}"+w,B="(?:(?:"+k+":){0,3}"+k+")?::"+k+":"+w,W="(?:(?:"+k+":){0,4}"+k+")?::"+w;p.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",p.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",p.ipv6address="(?:"+D+"|"+A+"|"+L+"|"+T+"|"+z+"|"+B+"|"+W+"|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)",p.ipvFuture="v[\\dA-Fa-f]+\\.[\\w-\\.~"+h+":]+",p.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",p.schemeRegex=new RegExp(p.scheme);const N="[\\w-\\.~%\\dA-Fa-f"+h+":]*",K="(?:\\[(?:"+p.ipv6address+"|"+p.ipvFuture+")\\]|"+p.ipv4address+"|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})",re="(?:"+N+"@)?"+K+"(?::\\d*)?",se="(?:"+N+"@)?("+K+")(?::\\d*)?",ce=_+"+",de="(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*",ge="\\/(?:"+ce+de+")?",Ce=ce+de,Oe="[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=@]+"+de;return p.hierPart="(?:(?:\\/\\/"+re+de+")|"+ge+"|"+Ce+"|(?:\\/\\/\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*))",p.hierPartCapture="(?:(?:\\/\\/"+se+de+")|"+ge+"|"+Ce+")",p.relativeRef="(?:(?:\\/\\/"+re+de+")|"+ge+"|"+Oe+"|)",p.relativeRefCapture="(?:(?:\\/\\/"+se+de+")|"+ge+"|"+Oe+"|)",p.query="["+v+"\\/\\?]*(?=#|$)",p.queryWithSquareBrackets="["+v+"\\[\\]\\/\\?]*(?=#|$)",p.fragment="["+v+"\\/\\?]*",p}};f.rfc3986=f.generate(),o.ip={v4Cidr:f.rfc3986.ipv4Cidr,v6Cidr:f.rfc3986.ipv6Cidr,ipv4:f.rfc3986.ipv4address,ipv6:f.rfc3986.ipv6address,ipvfuture:f.rfc3986.ipvFuture},f.createRegex=function(p){const h=f.rfc3986,v="(?:\\?"+(p.allowQuerySquareBrackets?h.queryWithSquareBrackets:h.query)+")?(?:#"+h.fragment+")?",_=p.domain?h.relativeRefCapture:h.relativeRef;if(p.relativeOnly)return f.wrap(_+v);let y="";if(p.scheme){s(p.scheme instanceof RegExp||typeof p.scheme=="string"||Array.isArray(p.scheme),"scheme must be a RegExp, String, or Array");const D=[].concat(p.scheme);s(D.length>=1,"scheme must have at least 1 scheme specified");const A=[];for(let L=0;L<D.length;++L){const T=D[L];s(T instanceof RegExp||typeof T=="string","scheme at position "+L+" must be a RegExp or String"),T instanceof RegExp?A.push(T.source.toString()):(s(h.schemeRegex.test(T),"scheme at position "+L+" must be a valid scheme"),A.push(l(T)))}y=A.join("|")}const k="(?:"+(y?"(?:"+y+")":h.scheme)+":"+(p.domain?h.hierPartCapture:h.hierPart)+")",w=p.allowRelative?"(?:"+k+"|"+_+")":k;return f.wrap(w+v,y)},f.wrap=function(p,h){return{raw:p="(?=.)(?!https?:/$)".concat(p),regex:new RegExp("^".concat(p,"$")),scheme:h}},f.uriRegex=f.createRegex({}),o.regex=function(p={}){return p.scheme||p.allowRelative||p.relativeOnly||p.allowQuerySquareBrackets||p.domain?f.createRegex(p):f.uriRegex}},1447:(a,o)=>{const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*\.?[0-9]*){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};o.Parser=class{constructor(s,l={}){if(!l[r.settings]&&l.constants)for(const f in l.constants){const p=l.constants[f];if(p!==null&&!["boolean","number","string"].includes(typeof p))throw new Error("Formula constant ".concat(f," contains invalid ").concat(typeof p," value type"))}this.settings=l[r.settings]?l:Object.assign({[r.settings]:!0,constants:{},functions:{}},l),this.single=null,this._parts=null,this._parse(s)}_parse(s){let l=[],f="",p=0,h=!1;const v=y=>{if(p)throw new Error("Formula missing closing parenthesis");const k=l.length?l[l.length-1]:null;if(h||f||y){if(k&&k.type==="reference"&&y===")")return k.type="function",k.value=this._subFormula(f,k.value),void(f="");if(y===")"){const w=new o.Parser(f,this.settings);l.push({type:"segment",value:w})}else if(h){if(h==="]")return l.push({type:"reference",value:f}),void(f="");l.push({type:"literal",value:f})}else if(r.operatorCharacters.includes(f))k&&k.type==="operator"&&r.operators.includes(k.value+f)?k.value+=f:l.push({type:"operator",value:f});else if(f.match(r.numberRx))l.push({type:"constant",value:parseFloat(f)});else if(this.settings.constants[f]!==void 0)l.push({type:"constant",value:this.settings.constants[f]});else{if(!f.match(r.tokenRx))throw new Error("Formula contains invalid token: ".concat(f));l.push({type:"reference",value:f})}f=""}};for(const y of s)h?y===h?(v(),h=!1):f+=y:p?y==="("?(f+=y,++p):y===")"?(--p,p?f+=y:v(y)):f+=y:y in r.literals?h=r.literals[y]:y==="("?(v(),++p):r.operatorCharacters.includes(y)?(v(),f=y,v()):y!==" "?f+=y:v();v(),l=l.map((y,k)=>y.type!=="operator"||y.value!=="-"||k&&l[k-1].type!=="operator"?y:{type:"operator",value:"n"});let _=!1;for(const y of l){if(y.type==="operator"){if(r.operatorsPrefix.includes(y.value))continue;if(!_)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(y.value))throw new Error("Formula contains an unknown operator ".concat(y.value))}else if(_)throw new Error("Formula missing expected operator");_=!_}if(!_)throw new Error("Formula contains invalid trailing operator");l.length===1&&["reference","literal","constant"].includes(l[0].type)&&(this.single={type:l[0].type==="reference"?"reference":"value",value:l[0].value}),this._parts=l.map(y=>{if(y.type==="operator")return r.operatorsPrefix.includes(y.value)?y:y.value;if(y.type!=="reference")return y.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(y.value))throw new Error("Formula contains invalid reference ".concat(y.value));return this.settings.reference?this.settings.reference(y.value):r.reference(y.value)})}_subFormula(s,l){const f=this.settings.functions[l];if(typeof f!="function")throw new Error("Formula contains unknown function ".concat(l));let p=[];if(s){let h="",v=0,_=!1;const y=()=>{if(!h)throw new Error("Formula contains function ".concat(l," with invalid arguments ").concat(s));p.push(h),h=""};for(let k=0;k<s.length;++k){const w=s[k];_?(h+=w,w===_&&(_=!1)):w in r.literals&&!v?(h+=w,_=r.literals[w]):w!==","||v?(h+=w,w==="("?++v:w===")"&&--v):y()}y()}return p=p.map(h=>new o.Parser(h,this.settings)),function(h){const v=[];for(const _ of p)v.push(_.evaluate(h));return f.call(h,...v)}}evaluate(s){const l=this._parts.slice();for(let f=l.length-2;f>=0;--f){const p=l[f];if(p&&p.type==="operator"){const h=l[f+1];l.splice(f+1,1);const v=r.evaluate(h,s);l[f]=r.single(p.value,v)}}return r.operatorsOrder.forEach(f=>{for(let p=1;p<l.length-1;)if(f.includes(l[p])){const h=l[p],v=r.evaluate(l[p-1],s),_=r.evaluate(l[p+1],s);l.splice(p,2);const y=r.calculate(h,v,_);l[p-1]=y===0?0:y}else p+=2}),r.evaluate(l[0],s)}},o.Parser.prototype[r.symbol]=!0,r.reference=function(s){return function(l){return l&&l[s]!==void 0?l[s]:null}},r.evaluate=function(s,l){return s===null?null:typeof s=="function"?s(l):s[r.symbol]?s.evaluate(l):s},r.single=function(s,l){if(s==="!")return!l;const f=-l;return f===0?0:f},r.calculate=function(s,l,f){if(s==="??")return r.exists(l)?l:f;if(typeof l=="string"||typeof f=="string"){if(s==="+")return(l=r.exists(l)?l:"")+(r.exists(f)?f:"")}else switch(s){case"^":return Math.pow(l,f);case"*":return l*f;case"/":return l/f;case"%":return l%f;case"+":return l+f;case"-":return l-f}switch(s){case"<":return l<f;case"<=":return l<=f;case">":return l>f;case">=":return l>=f;case"==":return l===f;case"!=":return l!==f;case"&&":return l&&f;case"||":return l||f}return null},r.exists=function(s){return s!=null}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{}},i={},function a(o){var r=i[o];if(r!==void 0)return r.exports;var s=i[o]={exports:{}};return n[o](s,s.exports,a),s.exports}(5107);var n,i})})(DE);var $w=DE.exports;const td=$w.extend({type:"string",base:$w.string(),messages:{"string.contains":"{{#label}} must contain [{{#substring}}]","string.ncontains":"{{#label}} can't contain [{{#substring}}]"},rules:{contains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"contains",args:{substring:e}})},validate(e,t,{substring:n}){return e.includes(n)===!1?t.error("string.contains",{substring:n}):e}},ncontains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"ncontains",args:{substring:e}})},validate(e,t,{substring:n}){return e.includes(n)===!0?t.error("string.ncontains",{substring:n}):e}}}}),Fte={requireAll:!1};function db(e,t){var n,i;e=e||{},t=lt.exports.merge({},Fte,t);const a={},o=Object.keys(e)[0];if(!o)throw new Error(`[generateJoi] Filter doesn't contain field key. Passed filter: ${JSON.stringify(e)}`);const r=Object.values(e)[0];if(!r)throw new Error(`[generateJoi] Filter doesn't contain filter rule. Passed filter: ${JSON.stringify(e)}`);if(((n=Object.keys(r)[0])===null||n===void 0?void 0:n.startsWith("_"))===!1)a[o]=db(r,t);else{const s=Object.keys(r)[0],l=Object.values(r)[0],f=()=>{var _;return(_=a[o])!==null&&_!==void 0?_:td.any()},p=()=>{var _;return(_=a[o])!==null&&_!==void 0?_:td.string()},h=()=>{var _;return(_=a[o])!==null&&_!==void 0?_:td.number()},v=()=>{var _;return(_=a[o])!==null&&_!==void 0?_:td.date()};if(s==="_eq"&&(a[o]=f().equal(l)),s==="_neq"&&(a[o]=f().not(l)),s==="_contains"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().contains(l)),s==="_icontains"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().contains(l)),s==="_ncontains"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().ncontains(l)),s==="_starts_with"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().pattern(new RegExp(`^${lt.exports.escapeRegExp(l)}.*`),{name:"starts_with"})),s==="_nstarts_with"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().pattern(new RegExp(`^${lt.exports.escapeRegExp(l)}.*`),{name:"starts_with",invert:!0})),s==="_ends_with"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().pattern(new RegExp(`.*${lt.exports.escapeRegExp(l)}$`),{name:"ends_with"})),s==="_nends_with"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().pattern(new RegExp(`.*${lt.exports.escapeRegExp(l)}$`),{name:"ends_with",invert:!0})),s==="_in"&&(a[o]=f().equal(...l)),s==="_nin"&&(a[o]=f().not(...l)),s==="_gt"){const _=l instanceof Date||Number.isNaN(Number(l));a[o]=_?v().greater(l):h().greater(Number(l))}if(s==="_gte"){const _=l instanceof Date||Number.isNaN(Number(l));a[o]=_?v().min(l):h().min(Number(l))}if(s==="_lt"){const _=l instanceof Date||Number.isNaN(Number(l));a[o]=_?v().less(l):h().less(Number(l))}if(s==="_lte"){const _=l instanceof Date||Number.isNaN(Number(l));a[o]=_?v().max(l):h().max(Number(l))}if(s==="_null"&&(a[o]=f().valid(null)),s==="_nnull"&&(a[o]=f().invalid(null)),s==="_empty"&&(a[o]=f().valid("")),s==="_nempty"&&(a[o]=f().invalid("")),s==="_between")if(l.every(_=>{const y=Number(_ instanceof Date?NaN:_);return!Number.isNaN(y)&&Math.abs(y)<=Number.MAX_SAFE_INTEGER})){const _=l;a[o]=h().min(Number(_[0])).max(Number(_[1]))}else{const _=l;a[o]=v().min(_[0]).max(_[1])}if(s==="_nbetween")if(l.every(_=>{const y=Number(_ instanceof Date?NaN:_);return!Number.isNaN(y)&&Math.abs(y)<=Number.MAX_SAFE_INTEGER})){const _=l;a[o]=h().less(Number(_[0])).greater(Number(_[1]))}else{const _=l;a[o]=v().less(_[0]).greater(_[1])}if(s==="_submitted"&&(a[o]=f().required()),s==="_regex")if(l==null)a[o]=td.any().equal(!0);else{const _=typeof l=="string"?l.startsWith("/")&&l.endsWith("/"):!1;a[o]=p().regex(new RegExp(_?l.slice(1,-1):l))}}return a[o]=(i=a[o])!==null&&i!==void 0?i:td.any(),t.requireAll&&(a[o]=a[o].required()),td.object(a).unknown()}function Rte(e){return e.schema?"table":e.meta?"alias":"unknown"}function cf(e){return e.startsWith("directus_")?`/${e.substring(9)}`:`/items/${e}`}function IE(e,t){const n=t!=null&&t.includeValidation?["regex"]:[];switch(e){case"binary":case"string":case"text":case"csv":return["contains","ncontains","icontains","starts_with","nstarts_with","ends_with","nends_with","eq","neq","empty","nempty","null","nnull","in","nin",...n];case"hash":return["empty","nempty","null","nnull"];case"uuid":return["eq","neq","null","nnull","in","nin"];case"json":return["null","nnull"];case"boolean":return["eq","neq","null","nnull"];case"bigInteger":case"integer":case"decimal":case"float":return["eq","neq","lt","lte","gt","gte","between","nbetween","null","nnull","in","nin"];case"dateTime":case"date":case"time":return["eq","neq","lt","lte","gt","gte","between","nbetween","null","nnull","in","nin"];case"geometry":return["null","nnull","intersects","nintersects","intersects_bbox","nintersects_bbox"];default:return["contains","ncontains","eq","neq","lt","lte","gt","gte","between","nbetween","empty","nempty","null","nnull","in","nin",...n]}}function Ote(e){switch(e){case"dateTime":case"timestamp":return["year","month","week","day","weekday","hour","minute","second"];case"date":return["year","month","week","day","weekday"];case"time":return["hour","minute","second"];case"json":return["count"];case"alias":return["count"];default:return[]}}function ME(e){return{year:"integer",month:"integer",week:"integer",day:"integer",weekday:"integer",hour:"integer",minute:"integer",second:"integer",count:"integer"}[e]}function LE(e){let t=0;for(let n=0;n<e.length;t&=t)t=31*t+e.charCodeAt(n++);return Math.abs(t).toString(16)}function Hh(e,t,n){const[i,...a]=t.split("."),o=Array.isArray(e)?e.map(r=>r==null?void 0:r[i]):e==null?void 0:e[i];return a.length>0?Hh(o,a.join("."),n):o!=null?o:n}const $te=["$NOW","$CURRENT_USER","$CURRENT_ROLE"];function zte(e){return typeof e=="string"&&$te.some(t=>e.startsWith(t))}function M0(e,t,n="and"){return e?t?{[`_${n}`]:[e,t]}:e:t}const jte=["bigInteger","boolean","date","dateTime","decimal","float","integer","json","string","text","time","timestamp","binary","uuid"],Vte=[...jte,"alias","hash","csv","geometry","geometry.Point","geometry.LineString","geometry.Polygon","geometry.MultiPoint","geometry.MultiLineString","geometry.MultiPolygon","unknown"],PE=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],Nte=["standard","file","files","m2o","o2m","m2m","m2a","presentation","translations","group"],fb=/\(([^)]+)\)/;function fc(e){return typeof e=="string"?e.split(","):Array.isArray(e)?e:[e]}function C8(e,t,n={}){var i;if(e==null)return null;if(!lt.exports.isObjectLike(e))return{_eq:w3(e,t,n)};const a=Object.entries(e).map(o=>Ute(o,t,n));return a.length===0?{}:a.length===1?(i=a[0])!==null&&i!==void 0?i:null:{_and:a}}function Bte(e,t,n){return e&&Uh(e,i=>w3(i,t,n))}function Ute([e,t],n,i){return["_or","_and"].includes(String(e))?{[e]:t.map(a=>C8(a,n,i))}:["_in","_nin","_between","_nbetween"].includes(String(e))?{[e]:fc(t).flatMap(a=>w3(a,n,i))}:String(e).startsWith("_")?{[e]:w3(t,n,i)}:{[e]:C8(t,n,i)}}function w3(e,t,n){return e==="true"?!0:e==="false"?!1:e==="null"||e==="NULL"?null:zte(e)?Hte(e,t,n):e}function Hte(e,t,n){var i,a,o;if(e.startsWith("$NOW")){if(e.includes("(")&&e.includes(")")){const r=(i=e.match(fb))===null||i===void 0?void 0:i[1];return r?SE(new Date,r):new Date}return new Date}if(e.startsWith("$CURRENT_USER"))return e==="$CURRENT_USER"?(a=t==null?void 0:t.user)!==null&&a!==void 0?a:null:Hh(n,e,null);if(e.startsWith("$CURRENT_ROLE"))return e==="$CURRENT_ROLE"?(o=t==null?void 0:t.role)!==null&&o!==void 0?o:null:Hh(n,e,null)}const qte={year:Wte,month:Gte,week:Yte,day:Xte,weekday:Kte,hour:Zte,minute:Jte,second:Qte,count:ene};function Wte(e){return gf(e).getUTCFullYear()}function Gte(e){return gf(e).getUTCMonth()+1}function Yte(e){return Pee(gf(e))}function Xte(e){return Aee(gf(e))}function Kte(e){return Tee(gf(e))}function Zte(e){return gf(e).getUTCHours()}function Jte(e){return gf(e).getUTCMinutes()}function Qte(e){return gf(e).getUTCSeconds()}function ene(e){return Array.isArray(e)?e.length:null}function tne(e,t){const n=lt.exports.cloneDeep(e);return i(t),n;function i(a,o){var r;for(const[s,l]of Object.entries(a)){const f=o?o+"."+s:s;if(s.startsWith("_")===!1&<.exports.isPlainObject(l)&&i(l,f),s.includes("(")&&s.includes(")")){const p=s.split("(")[0],h=(r=s.match(fb))===null||r===void 0?void 0:r[1];if(!h||!p)continue;const v=o?o+"."+h:h,_=lt.exports.get(n,v);lt.exports.set(n,f,qte[p](_))}}}}function x3(e,t,n){const i=[];if(Object.keys(e)[0]==="_and"){const a=Object.values(e)[0],o=lt.exports.flatten(a.map(r=>x3(r,t,n))).filter(r=>r);i.push(...o)}else if(Object.keys(e)[0]==="_or"){const a=Object.values(e)[0],o=[];a.some(s=>{const l=x3(s,t,n);return l.length>0?(o.push(...l),!1):!0})||i.push(...o)}else{const a=tne(t,e),o=db(e,n),{error:r}=o.validate(a,{abortEarly:!1});r&&i.push(r)}return i}let nne=e=>crypto.getRandomValues(new Uint8Array(e)),ine=(e,t,n)=>{let i=(2<<Math.log(e.length-1)/Math.LN2)-1,a=-~(1.6*i*t/e.length);return()=>{let o="";for(;;){let r=n(a),s=a;for(;s--;)if(o+=e[r[s]&i]||"",o.length===t)return o}}},FE=(e,t)=>ine(e,t,nne),Mu=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let i=n[e]&63;i<36?t+=i.toString(36):i<62?t+=(i-26).toString(36).toUpperCase():i<63?t+="_":t+="-"}return t};const J0=Pu({id:"notificationsStore",state:()=>({dialogs:[],queue:[],previous:[],notifications:[],unread:0}),actions:{async hydrate(){const e=Qr();e.currentUser&&!("share"in e.currentUser)&&await this.getUnreadCount()},async getUnreadCount(){const e=Qr();if(!e.currentUser||!("id"in e.currentUser))return;const t=await $n.get("/notifications",{params:{filter:{_and:[{recipient:{_eq:e.currentUser.id}},{status:{_eq:"inbox"}}]},aggregate:{count:"id"}}});this.unread=t.data.data[0].count.id},add(e){const t=Mu(),n=Date.now();return e.dialog===!0?(e.persist=!0,this.dialogs=[...this.dialogs,{...e,id:t,timestamp:n}]):this.queue=[...this.queue,{...e,id:t,timestamp:n}],e.persist!==!0&&setTimeout(()=>{this.remove(t)},3e3),t},hide(e){const n=[...this.queue,...this.dialogs].find(i=>i.id===e);!n||(n.dialog===!0?this.dialogs=this.dialogs.filter(i=>i.id!==e):this.queue=this.queue.filter(i=>i.id!==e),this.previous=[...this.previous,n])},remove(e){const n=[...this.queue,...this.dialogs].find(i=>i.id===e);!n||(n.dialog===!0?this.dialogs=this.dialogs.filter(i=>i.id!==e):this.queue=this.queue.filter(i=>i.id!==e))},update(e,t){this.queue=this.queue.map(n),this.dialogs=this.dialogs.map(n),this.previous=this.queue.map(n);function n(i){return i.id===e?{...i,...t}:i}}},getters:{lastFour(){const e=[...this.queue,...this.previous.filter(i=>i.dialog!==!0)],n=lt.exports.reverse(lt.exports.sortBy(e,["timestamp"])).slice(0,4);return lt.exports.reverse(n)}}});let Z_;function sl(e){Z_||(Z_=J0()),Z_.add(e)}let J_;function Hi(e){var i,a,o,r,s,l,f,p,h,v;J_||(J_=J0());const t=((s=(r=(o=(a=(i=e.response)==null?void 0:i.data)==null?void 0:a.errors)==null?void 0:o[0])==null?void 0:r.extensions)==null?void 0:s.code)||((l=e==null?void 0:e.extensions)==null?void 0:l.code)||"UNKNOWN",n=((v=(h=(p=(f=e.response)==null?void 0:f.data)==null?void 0:p.errors)==null?void 0:h[0])==null?void 0:v.message)||e.message||void 0;console.warn(e),J_.add({title:mr.global.t(`errors.${t}`),text:n,type:"error",dialog:!0,error:e})}function rne(e){return e.replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1_$2").toLowerCase()}function ane(e){return e.charAt(0).toUpperCase()+e.substring(1)}var one=["2D","3D","4WD","API","BIOS","CCTV","CC","CCV","CD","CD-ROM","COBOL","CIA","CMS","CSS","CSV","CV","DIY","DVD","DB","DNA","E3","EIN","ESPN","FAQ","FAQs","FTP","FPS","FORTRAN","FBI","HTML","HTTP","ID","IP","ISO","JS","JSON","LASER","M2M","M2MM","M2O","MMORPG","NAFTA","NASA","NDA","O2M","PDF","PHP","POP","RAM","RNGR","ROM","RPG","RTFM","RTS","SCUBA","SITCOM","SKU","SMTP","SQL","SSN","SWAT","TBS","TTL","TV","TNA","UI","URL","USB","UWP","VIP","W3C","WYSIWYG","WWW","WWE","WWF"],sne=["a","an","the"],lne=["and","that","but","or","as","if","when","than","because","while","where","after","so","though","since","until","whether","before","although","nor","like","once","unless","now","except"],cne=["about","above","across","after","against","along","among","around","at","because of","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","despite","down","during","except","excepting","for","from","in","in front of","inside","in spite of","instead of","into","like","near","of","off","on","onto","out","outside","over","past","regarding","since","through","throughout","to","toward","under","underneath","until","up","upon","up to","with","within","without","with regard to","with respect to"],une=["2FA","3D","4K","5K","8K","CTA","DateTime","GitHub","HD","IBMid","ID","IDs","iMac","IMAX","iOS","IP","iPad","iPhone","iPod","LDAP","LinkedIn","M2M","M2O","macOS","McDonalds","MySQL","O2M","PDFs","pH","PostgreSQL","SEO","UHD","UUID","XSS","YouTube"];function dne(e,t,n){const i=e.toLowerCase(),a=e.toUpperCase();for(const o of une)if(o.toLowerCase()===i)return o;return one.includes(a)?a:t===0||t===n.length-1||e.length>=4?e:cne.includes(i)||lne.includes(i)||sne.includes(i)?i:e}function fne(e,t){return`${e} ${t}`}function ql(e,t){return t||(t=new RegExp("/s|-|_| ","g")),rne(e).split(t).map(ane).map(dne).reduce(fne)}const k3=["FAILED_VALIDATION","RECORD_NOT_UNIQUE"],pne=`
|
|
1
|
+
import{defineStore as Pu,storeToRefs as Dl,createPinia as eR}from"./pinia.ee5b7a45.entry.js";import{w as Li,v as Ff,a as Qh,u as c4,b as tR,T as cd,c as nb,d as u4,e as nR}from"./vue.runtime.esm-bundler.61bedc6f.js";import{createI18n as iR,useI18n as yn}from"./vue-i18n.ab96dd58.entry.js";import{s as jd,r as ze,d as $t,c as Ee,a as Y,o as G,b as _e,w as R,e as F,f as Zn,i as Il,g as d4,p as X1,n as Jv,h as Lo,j as zr,k as Lc,l as ke,t as he,m as La,q as di,u as pi,v as dn,x as Me,y as Je,z as wn,A as Fr,B as Ca,C as ja,D as Io,E as Ne,F as w8,G as gn,H as ud,I as V,J as vi,K as wr,L as WC,M as ya,N as _a,O as rR,P as Kr,T as ib,Q as f4,R as aR,S as oR,U as GC,V as YC,W as XC}from"./runtime-core.esm-bundler.32cac88a.js";import{l as lt,u as qr,a as rh,d as em,b as Ns,g as hc,c as ga,e as KC,f as sR,S as lR,A as cR,E as uR,h as dR,i as K0,j as Jc,k as Vr,m as fR,n as p4,o as h4,p as Vd}from"./use-sync.3af8e920.js";import{onBeforeRouteLeave as m4,useRouter as qa,RouterView as pR,useRoute as Vf,onBeforeRouteUpdate as rb,createRouter as hR,createWebHistory as mR,useLink as ZC}from"./vue-router.4ad81e1d.entry.js";function ab(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in e)){var a=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const vR=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerpolicy&&(o.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?o.credentials="include":a.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}};vR();const gR="9.17.2",Pc=Pu({id:"appStore",state:()=>({sidebarOpen:window.innerWidth>=1430,notificationsDrawerOpen:!1,fullScreen:!1,hydrated:!1,hydrating:!1,error:null,authenticated:!1,accessTokenExpiry:0,basemap:"OpenStreetMap"})}),yR="modulepreload",_w={},_R="",ct=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${_R}${i}`,i in _w)return;_w[i]=!0;const a=i.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${o}`))return;const r=document.createElement("link");if(r.rel=a?"stylesheet":yR,a||(r.as="script",r.crossOrigin=""),r.href=i,document.head.appendChild(r),a)return new Promise((s,l)=>{r.addEventListener("load",s),r.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},bR=jd([]),JC=jd([]);function v4(){return{displays:JC,displaysRaw:bR}}function m1(e){return e?JC.value.find(({id:t})=>t===e):void 0}const wR=jd([]),QC=jd([]);function tm(){return{interfaces:QC,interfacesRaw:wR}}function Iu(e){return e?QC.value.find(({id:t})=>t===e):void 0}const xR=jd([]),eE=jd([]);function Qv(){return{panels:eE,panelsRaw:xR}}function tE(e){return e?eE.value.find(({id:t})=>t===e):void 0}const kR=jd([]),nE=jd([]);function nm(){return{layouts:nE,layoutsRaw:kR}}function bw(e){return e?nE.value.find(({id:t})=>t===e):void 0}const SR=jd([]),CR=jd([]);function g4(){return{modules:CR,modulesRaw:SR}}var ER={"en-US":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!0}},"bg-BG":{short:{year:"numeric",month:"numeric",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"cs-CZ":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"de-DE":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"fr-FR":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"it-IT":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"ms-MY":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"nl-NL":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"pl-PL":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"pt-BR":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"ru-RU":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}},"zh-CN":{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!0}}},AR={"en-US":{currency:{style:"currency",currency:"USD",notation:"standard"},decimal:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2},percent:{style:"percent",useGrouping:!1}}},pe={identifier:"Identifier",avatar:"Avatar",application:"Application",default_provider:"Default",method:"Method",published:"Published",draft:"Draft",archived:"Archived",modules:"Modules",module_bar:"Module Bar",logs:"Logs",reset_width:"Reset Width",tile_size:"Tile Size",edit_field:"Edit Field",conditions:"Conditions",location:"Location",condition_rules:"Condition Rules",input:"Input",maps:"Maps",switch_user:"Switch User",item_creation:"Item Creation",item_revision:"Item Revision",enter_a_name:"Enter a Name...",duplicate_field:"Duplicate Field",half_width:"Half Width",full_width:"Full Width",group:"Group",export_items:"Export Items",and:"And",or:"Or",init:"Init",dataset_too_large_currently_showing_n_items:"Dataset is too large. Currently showing the first {n} items.",modifier:"Modifier",custom:"Custom",hook:"Hook",fill_width:"Fill Width",field_name_translations:"Field Name Translations",enter_password_to_enable_tfa:"Enter your password to enable Two-Factor Authentication",add_field:"Add Field",role_name:"Role Name",branch:"Branch",leaf:"Leaf",indeterminate:"Indeterminate",edit_collection:"Edit Collection",exclusive:"Exclusive",children:"Children",db_only_click_to_configure:"Database Only: Click to Configure",show_active_items:"Show Active Items",show_archived_items:"Show Archived Items",show_all_items:"Show All Items",edited:"Value Edited",required:"Required",required_for_app_access:"Required for App Access",requires_value:"Requires value",create_preset:"Create Preset",create_panel:"Create Panel",create_role:"Create Role",create_user:"Create User",message:"Message",delete_panel:"Delete Panel",create_webhook:"Create Webhook",create_translation_string:"Create Translation String",no_translation_string:"No Translation Strings",no_translation_string_copy:"There are no translation strings yet.",translation_string_key_placeholder:"Translation string key...",translation_string_translations_placeholder:"Add a new translation",edit_translation_string:"Edit Translation String",delete_translation_string_copy:'Are you sure you want to delete the translation string "{key}"? This action can not be undone.',invite_users:"Invite Users",invite:"Invite",email_already_invited:'Email "{email}" has already been invited',subject:"Subject",inbox:"Inbox",emails:"Emails",connection_excellent:"Excellent Connection",connection_good:"Good Connection",connection_fair:"Fair Connection",connection_poor:"Poor Connection",primary:"Primary",rename_folder:"Rename Folder",delete_folder:"Delete Folder",prefix:"Prefix",suffix:"Suffix",reset_bookmark:"Reset Bookmark",update_bookmark:"Update Bookmark",delete_bookmark:"Delete Bookmark",delete_bookmark_copy:'Are you sure you want to delete the "{bookmark}" bookmark? This action cannot be undone.',delete_personal_bookmark:"Delete Personal Bookmark",delete_role_bookmark:"Delete Role Bookmark",delete_global_bookmark:"Delete Global Bookmark",logoutReason:{SIGN_OUT:"Signed out",SESSION_EXPIRED:"Session expired"},public_label:"Public",public_description:"Controls what API data is available without authenticating.",admin_description:"Initial administrative role with unrestricted App/API access.",not_allowed:"Not Allowed",directus_version:"Directus Version",node_version:"Node Version",node_uptime:"Node Uptime",os_type:"OS Type",os_version:"OS Version",os_uptime:"OS Uptime",os_totalmem:"OS Memory",archive:"Archive",archive_confirm:"Are you sure you want to archive this item?",archive_confirm_count:"No Items Selected | Are you sure you want to archive this item? | Are you sure you want to archive these {count} items?",reset_system_permissions_to:"Reset System Permissions to:",reset_system_permissions_copy:"This action will overwrite any custom permissions you may have applied to the system collections. Are you sure?",the_following_are_minimum_permissions:'The following are minimum permissions required when "App Access" is enabled. You can extend permissions beyond this, but not below.',app_access_minimum:"App Access Minimum",recommended_defaults:"Recommended Defaults",unarchive:"Unarchive",unarchive_confirm:"Are you sure you want to unarchive this item?",nested_files_folders_will_be_moved:"Nested files and folders will be moved one level up.",validation_errors_notice:"The following fields have invalid values:",validationError:{eq:"Value has to be {valid}",neq:"Value can't be {invalid}",in:"Value has to be one of {valid}",nin:"Value can't be one of {invalid}",contains:"Value has to contain {substring}",ncontains:"Value can't contain {substring}",gt:"Value has to be greater than {valid}",gte:"Value has to be greater than or equal to {valid}",lt:"Value has to be less than {valid}",lte:"Value has to be less than or equal to {valid}",empty:"Value has to be empty",nempty:"Value can't be empty",null:"Value has to be null",nnull:"Value can't be null",required:"Value is required",unique:"Value has to be unique",regex:"Value doesn't have the correct format"},all_access:"All Access",no_access:"No Access",use_custom:"Use Custom",nullable:"Nullable",allow_null_value:"Allow NULL value",allow_multiple:"Allow Multiple",allow_multiple_to_be_open:"Allow Multiple to be Opened",enter_value_to_replace_nulls:"Please enter a new value to replace any NULLs currently within this field.",field_standard:"Standard",field_presentation:"Presentation & Aliases",field_file:"Single File",field_files:"Multiple Files",field_m2o:"M2O Relationship",field_m2a:"M2A Relationship",field_o2m:"O2M Relationship",field_m2m:"M2M Relationship",field_translations:"Translations",field_group:"Field Group",item_permissions:"Item Permissions",field_permissions:"Field Permissions",field_validation:"Field Validation",field_presets:"Field Presets",permissions_for_role:"Items the {role} Role can {action}.",fields_for_role:"Fields the {role} Role can {action}.",validation_for_role:"Field {action} rules the {role} Role must obey.",presets_for_role:"Field value defaults for the {role} Role.",presentation_and_aliases:"Presentation & Aliases",revision_post_create:"Here is what this item looked like when it was created.",revision_post_update:"Here is what this item looked like after the update.",changes_made:"Below are the specific changes made in this revision.",no_relational_data:"Keep in mind that relational data is not included here.",junction_field_location:"Junction Fields Location",top:"Top",bottom:"Bottom",hide_field:"Hide Field",hide_field_on_detail:"Hide Field on Detail",show_field_on_detail:"Show Field on Detail",delete_field:"Delete Field",fields_and_layout:"Fields & Layout",field_create_success:'Created Field: "{field}"',field_update_success:'Updated Field: "{field}"',duplicate_where_to:"Where would you like to duplicate this field to?",language:"Language",language_placeholder:"Select a language...",aggregate_function:"Aggregate Function",aggregate_precision:"Aggregate Precision",group_aggregation:"Group Aggregation",group_precision:"Group Precision",global:"Global",admins_have_all_permissions:"Admins have all permissions",camera:"Camera",show_zero:"Show Zero",create_in_advanced_field_creation_mode:"Create Field in Advanced Mode",continue_in_advanced_field_creation_mode:"Continue in Advanced Field Creation Mode",validation:"Validation",sum:"Sum",sum_distinct:"Sum Distinct",avg:"Average",avg_distinct:"Average Distinct",count:"Count",count_distinct:"Count Distinct",min:"Min",max:"Max",exposure:"Exposure",shutter:"Shutter",iso:"ISO",focal_length:"Focal Length",schema_setup_key:"This field's database column name and API key",create_field:"Create Field",creating_new_field:"New Field ({collection})",field_in_collection:"{field} ({collection})",reset_page_preferences:"Reset Page Preferences",hidden_field:"Hidden Field",hidden_on_detail:"Hidden on Detail",disabled_editing_value:"Disable editing value",key:"Key",alias:"Alias",bigInteger:"Big Integer",boolean:"Boolean",date:"Date",date_range:"Date Range",datetime:"DateTime",dateTime:"DateTime",precision:"Precision",decimal:"Decimal",float:"Float",integer:"Integer",json:"JSON",xml:"XML",string:"String",text:"Text",time:"Time",timestamp:"Timestamp",uuid:"UUID",hash:"Hash",geometry:"Geometry (All)","geometry.Point":"Point","geometry.LineString":"LineString","geometry.Polygon":"Polygon","geometry.MultiPoint":"MultiPoint","geometry.MultiLineString":"MultiLineString","geometry.MultiPolygon":"MultiPolygon",not_available_for_type:"Not Available for this Type",create_translations:"Create Translations",auto_refresh:"Auto Refresh",refresh_interval:"Refresh Interval",no_refresh:"Do not refresh",refresh_interval_seconds:"Refresh Instantly | Every Second | Every {seconds} Seconds",refresh_interval_minutes:"Every Minute | Every {minutes} Minutes",auto_generate:"Auto-Generate",this_will_auto_setup_fields_relations:"This will automatically setup all required fields and relations.",click_here:"Click here",to_manually_setup_translations:"to manually setup translations.",click_to_manage_translated_fields:"There are no translated fields yet. Click here to create them. | There is one translated field. Click here to manage it. | There are {count} translated fields. Click here to manage them.",fields_group:"Fields Group",no_collections_found:"No collections found.",new_data_alert:"The following will be created within your Data Model:",search_collection:"Search Collection...",new_field:"New Field",new_collection:"New Collection",add_m2o_to_collection:'Add M2O to "{collection}"',add_o2m_to_collection:'Add O2M to "{collection}"',add_m2m_to_collection:'Add M2M to "{collection}"',choose_a_type:"Choose a Type...",determined_by_relationship:"Determined by Relationship",add_note:"Add a helpful note for users...",add_link:"Add Link",custom_link:"Custom Link",default_value:"Default Value",standard_field:"Standard Field",single_file:"Single File",multiple_files:"Multiple Files",m2o_relationship:"Many to One Relationship",o2m_relationship:"One to Many Relationship",m2m_relationship:"Many to Many Relationship",m2a_relationship:"Many to Any Relationship",invalid_item:"Invalid Item",next:"Next",field_name:"Field Name",translations:"Translations",no_translations:"No Translations",left_to_right:"Left to Right",right_to_left:"Right to Left",note:"Note",enter_a_value:"Enter a value...",enter_a_placeholder:"Enter a placeholder...",length:"Length",soft_length:"Soft Limit",precision_scale:"Precision & Scale",readonly:"Readonly",unique:"Unique",updated_on:"Updated On",updated_by:"Updated By",primary_key:"Primary Key",foreign_key:"Foreign Key",finish_setup:"Finish Setup",dismiss:"Dismiss",toggle_raw_editor:"Toggle Raw Editor",raw_editor_placeholder:"{'{'}{'{'}$trigger.payload.example{'}'}{'}'}",raw_value:"Raw value",copy_raw_value:"Copy Raw Value",copy_raw_value_success:"Copied",copy_raw_value_fail:"Copy Failed",paste_raw_value:"Paste Raw Value",paste_raw_value_success:"Pasted",paste_raw_value_fail:"Paste Failed",view_raw_value:"View Raw Value",edit_raw_value:"Edit Raw Value",enter_raw_value:"Enter raw value...",clear_value:"Clear Value",clear_changes:"Clear Changes",reset_to_default:"Reset to Default",undo_changes:"Undo Changes",notifications:"Notifications",show_all_activity:"Show All Activity",page_not_found:"Page Not Found",page_not_found_body:"The page you are looking for doesn't seem to exist.",confirm_revert:"Confirm Revert",confirm_revert_body:"This will revert the item to the selected state.",display:"Display",settings_update_success:"Settings updated",title:"Title",revision_delta_created:"Created",revision_delta_created_externally:"Created Externally",revision_delta_updated:"Updated 1 Field | Updated {count} Fields",revision_delta_deleted:"Deleted",revision_delta_reverted:"Reverted",revision_delta_update_message:"This field has been updated but its value is being concealed for security reasons.",revision_delta_other:"Revision",revision_delta_by:"{date} by {user}",presentation_text_values_cannot_be_reimported:"Uses presentation text, values can not be re-imported.",download_page_as_csv:"Download Page as CSV",private_user:"Private User",creation_preview:"Creation Preview",revision_preview:"Revision Preview",updates_made:"Updates Made",leave_comment:"Leave a comment...",post_comment_success:"Comment posted",post_comment_updated:"Comment updated",item_create_success:"Item Created | Items Created",item_update_success:"Item Updated | Items Updated",item_delete_success:"Item Deleted | Items Deleted",this_collection:"This Collection",related_collection:"Related Collection",related_collections:"Related Collections",translations_collection:"Translation Collection",languages_collection:"Languages Collection",import_data_input_placeholder:"CSV or JSON...",import_data_button:"Start Import",import_data_indeterminate:"Importing Data...",import_data_success:"Data successfully imported from {filename}",import_data_error:"This file's data structure doesn't match the collection.",label_import:"Import",label_export:"Export",import_export:"Import / Export",format:"Format",last_page:"Last Page",last_access:"Last Access",fill_template:"Fill with Template Value",a_unique_table_name:"A unique table name...",a_unique_column_name:"A unique column name...",enable_custom_values:"Enable custom values",submit:"Submit",move_to_folder:"Move to Folder",move:"Move",system:"System",add_field_related:"Add Field to Related Collection",interface_label:"Interface",today:"Today",yesterday:"Yesterday",delete_comment:"Delete Comment",delete_share:"Delete Share",functions:{year:"Year",month:"Month",week:"Week",day:"Day",weekday:"Weekday",hour:"Hour",minute:"Minute",second:"Second",count:"Count"},"date-fns_date":"PPP","date-fns_time":"h:mm:ss a","date-fns_time_no_seconds":"h:mm a","date-fns_time_24hour":"HH:mm:ss","date-fns_time_no_seconds_24hour":"HH:mm","date-fns_date_short":"MMM d, u","date-fns_time_short":"h:mma","date-fns_date_short_no_year":"MMM d",minutes:"Minutes",hours:"Hours",month:"Month",year:"Year",select_all:"Select All",months:{january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},drag_mode:"Drag Mode",cancel_crop:"Cancel Crop",original:"Original",url:"URL",import_label:"Import",file_details:"File Details",dimensions:"Dimensions",size:"Size",created:"Created",modified:"Modified",checksum:"Checksum",owner:"Owner",edited_by:"Edited by",folder:"Folder",zoom:"Zoom",download:"Download",open:"Open",open_in_new_window:"Open in New Window",open_folder:'Open "{folder}" folder',foreground_color:"Foreground Color",background_color:"Background Color",upload_from_device:"Upload File from Device",choose_from_library:"Choose File from Library",import_from_url:"Import File from URL",replace_from_device:"Replace File from Device",replace_from_library:"Replace File from Library",replace_from_url:"Replace File from URL",no_file_selected:"No File Selected",download_file:"Download File",open_file_in_tab:"Open file in new tab",start_export:"Start Export",not_available_for_local_downloads:"Not available for local downloads",exporting_all_items_in_collection:"Exporting all {total} items within {collection}.",exporting_limited_items_in_collection:"Exporting {limit} out of {total} items within {collection}.",exporting_no_items_to_export:"No items to export. Adjust the exporting configuration below.",exporting_download_hint:"Once completed, this {format} file will automatically be downloaded to your device.",exporting_batch_hint:"This export will be processed in batches, and once completed, the {format} file will be saved to the File Library.",exporting_batch_hint_forced:"Due to the large number of items, this export must be processed in batches, and once completed, the {format} file will be saved to the File Library.",collection_key:"Collection Key",name:"Name",primary_key_field:"Primary Key Field",type:"Type",creating_new_collection:"Creating New Collection",created_by:"Created By",created_on:"Created On",creating_collection_info:"Name the collection and setup its unique \u201Ckey\u201D field...",creating_collection_system:"Enable and rename any of these optional fields.",auto_increment_integer:"Auto-incremented integer",auto_increment_big_integer:"Auto-incremented big integer",generated_uuid:"Generated UUID",manual_string:"Manually entered string",save_and_create_new:"Save and Create New",save_and_stay:"Save and Stay",save_as_copy:"Save as Copy",add_existing:"Add Existing",creating_items:"Creating Items",enable_create_button:"Enable Create Button",selecting_items:"Selecting Items",enable_select_button:"Enable Select Button",allow_duplicates:"Allow Duplicates",comments:"Comments",no_comments:"No Comments Yet",click_to_expand:"Click to Expand",select_item:"Select Item",no_items:"No items",search_items:"Search items...",disabled:"Disabled",information:"Information",report_bug:"Report Bug",request_feature:"Request Feature",request_body:"Request Body",interface_not_found:'Interface "{interface}" not found.',operation_not_found:'Operation "{operation}" not found.',reset_interface:"Reset Interface",display_not_found:'Display "{display}" not found.',reset_display:"Reset Display","list-m2a":"Builder (M2A)",item_count:"No Items | One Item | {count} Items",no_items_copy:"There are no items in this collection yet.",file_count:"No Files | One File | {count} Files",no_files_copy:"There are no files here.",user_count:"No Users | One User | {count} Users",no_users_copy:"There are no users in this role yet.",webhooks_count:"No Webhooks | One Webhook | {count} Webhooks",no_webhooks_copy:"No webhooks have been configured yet. Get started by creating one below.",no_notifications:"No Notifications",no_notifications_copy:"You're all caught up!",activity_log:"Activity Log",all_items:"All Items",any:"Any",csv:"CSV",no_collections:"No Collections",create_collection:"Create Collection",no_collections_copy_admin:"You don\u2019t have any Collections yet. Click the button below to get started.",no_collections_copy:"You don\u2019t have any Collections yet. Please contact your system administrator.",relationship_not_setup:"The relationship hasn't been configured correctly",display_template_not_setup:"The display template option is misconfigured",collection_field_not_setup:"The collection field option is misconfigured",select_a_collection:"Select a Collection",select_a_field:"Select a Field",active:"Active",move_to:"Move To...",copy:"Copy",copy_to:"Copy To...",no_other_dashboards_copy:"You don't have any other Dashboards yet.",inactive:"Inactive",users:"Users",activity:"Activity",activity_item:"Activity Item",action:"Action",ip_address:"IP Address",user_agent:"User Agent",origin:"Origin",webhooks:"Webhooks",decimals:"Decimals",value_decimals:"Value Decimals",min_value:"Min Value",max_value:"Max Value",automatic:"Automatic",field_width:"Field Width",add_filter:"Add Filter",upper_limit:"Upper limit...",lower_limit:"Lower limit...",user_directory:"User Directory",documentation:"Documentation",sidebar:"Sidebar",duration:"Duration",charset:"Charset",second:"second",file_moved:"File Moved",collection_created:"Collection Created",modified_on:"Modified On",card_size:"Card Size",sort_field:"Sort Field",add_sort_field:"Add Sort Field",sort:"Sort",status:"Status",remove:"Remove",toggle_manual_sorting:"Toggle Manual Sorting",bookmark_doesnt_exist:"Bookmark Doesn't Exist",bookmark_doesnt_exist_copy:"The bookmark you're trying to open couldn't be found.",bookmark_doesnt_exist_cta:"Return to collection",select_an_item:"Select an item...",edit:"Edit",enabled:"Enabled",disable_tfa:"Disable 2FA",tfa_scan_code:"Scan the code in your authenticator app to finish setting up 2FA",enter_otp_to_disable_tfa:"Enter the OTP to disable 2FA",create_account:"Create Account",account_created_successfully:"Account Created Successfully",auto_fill:"Auto Fill",corresponding_field:"Corresponding Field",errors:{COLLECTION_NOT_FOUND:"Collection doesn't exist",FIELD_NOT_FOUND:"Field not found",FORBIDDEN:"Forbidden",INVALID_CREDENTIALS:"Wrong username or password",INVALID_OTP:"Wrong one-time password",INVALID_PAYLOAD:"Invalid payload",INVALID_PROVIDER:"User belongs to a different auth provider",INVALID_QUERY:"Invalid query",INVALID_CONFIG:"Invalid config",INVALID_TOKEN:"Invalid token",INVALID_IP:"IP Address not allowed",INVALID_USER:"Failed to authenticate user",ITEM_LIMIT_REACHED:"Item limit reached",ITEM_NOT_FOUND:"Item not found",ROUTE_NOT_FOUND:"Not found",RECORD_NOT_UNIQUE:"Duplicate value detected",USER_SUSPENDED:"User Suspended",CONTAINS_NULL_VALUES:"Field contains null values",UNPROCESSABLE_ENTITY:"Unprocessable entity",INTERNAL_SERVER_ERROR:"Unexpected Error",NOT_NULL_VIOLATION:"Value can't be null",ILLEGAL_ASSET_TRANSFORMATION:"Image source too large to preview",VALUE_TOO_LONG:"Value is too long",VALUE_OUT_OF_RANGE:"Value is out of range",INVALID_FOREIGN_KEY:"Invalid foreign key",UNKNOWN:"Unexpected Error",GRAPHQL_VALIDATION_EXCEPTION:"GraphQL Validation Exception",SERVICE_UNAVAILABLE:"Service Unavailable",UNSUPPORTED_MEDIA_TYPE:"Unsupported media type",UNEXPECTED_RESPONSE:"Unexpected response",TOKEN_EXPIRED:"Token expired",RANGE_NOT_SATISFIABLE:"Invalid range",METHOD_NOT_ALLOWED:"Method not allowed",REQUESTS_EXCEEDED:"Requests limit reached"},security:"Security",value_hashed:"Value Securely Hashed",bookmark_name:"Bookmark name...",create_bookmark:"Create Bookmark",edit_bookmark:"Edit Bookmark",edit_personal_bookmark:"Edit Personal Bookmark",edit_role_bookmark:"Edit Role Bookmark",edit_global_bookmark:"Edit Global Bookmark",cannot_edit_role_bookmarks:"Can't Edit Role Bookmarks",cannot_edit_global_bookmarks:"Can't Edit Global Bookmarks",bookmarks:"Bookmarks",presets:"Presets",unexpected_error:"Unexpected Error",unexpected_error_copy:"An unexpected error has occurred. Please try again later.",copy_details:"Copy Details",no_app_access:"No App Access",no_app_access_copy:"This user isn't allowed to use the admin app.",password_reset_sent:"If you have an account, we've sent you a secure link to reset your password",password_reset_successful:"Password successfully reset",back:"Back",filter:"Filter",edit_image:"Edit Image",editing_image:"Editing Image",square:"Square",free:"Free",flip_horizontal:"Flip Horizontal",flip_vertical:"Flip Vertical",aspect_ratio:"Aspect Ratio",rotate:"Rotate",all_users:"All Users",delete_collection:"Delete Collection",update_collection_success:"Updated Collection",delete_collection_success:"Deleted Collection",make_collection_visible:"Make Collection Visible",make_collection_hidden:"Make Collection Hidden",make_folder_visible:"Make Folder Visible",make_folder_hidden:"Make Folder Hidden",goto_collection_content:"View Content",start_end_of_count_items:"{start}-{end} of {count} items",start_end_of_count_filtered_items:"{start}-{end} of {count} filtered items",one_item:"1 item",one_filtered_item:"1 filtered item",delete_collection_are_you_sure:'Are you sure you want to delete the collection "{collection}"? This will delete the collection and all items in it. This action is permanent.',delete_folder_are_you_sure:'Are you sure you want to delete the folder "{folder}"? Nested folders and collections will be moved to the top most level.',collections_shown:"Collections Shown",visible_collections:"Visible Collections",hidden_collections:"Hidden Collections",show_hidden_collections:"Show Hidden Collections",hide_hidden_collections:"Hide Hidden Collections",show_header:"Show Header",unmanaged_collections:"Unconfigured Collections",system_collections:"System Collections",placeholder:"Placeholder",icon_left:"Icon Left",icon_right:"Icon Right",count_other_revisions:"{count} Other Revisions",font:"Font",sans_serif:"Sans Serif",serif:"Serif",monospace:"Monospace",divider:"Divider",color:"Color",circle:"Circle",empty_item:"Empty Item",log_in_with:"Log In with {provider}",conditional_styles:"Conditional Styles",advanced_settings:"Advanced Settings",advanced_filter:"Advanced Filter",delete_advanced_filter:"Delete Filter",change_advanced_filter_operator:"Change Operator",advanced:"Advanced",operators:{eq:"Equals",neq:"Doesn't equal",lt:"Less than",gt:"Greater than",lte:"Less than or equal to",gte:"Greater than or equal to",in:"Is one of",nin:"Is not one of",null:"Is null",nnull:"Isn't null",contains:"Contains",ncontains:"Doesn't contain",icontains:"Contains (insensitive)",starts_with:"Starts with",nstarts_with:"Doesn't start with",ends_with:"Ends with",nends_with:"Doesn't end with",between:"Is between",nbetween:"Isn't between",empty:"Is empty",nempty:"Isn't empty",all:"Contains these keys",has:"Contains some of these keys",intersects:"Intersects",nintersects:"Doesn't intersect",intersects_bbox:"Intersects bounding box",nintersects_bbox:"Doesn't intersect bounding box",regex:"Matches RegExp"},custom_validation_message:"Custom Validation Message",loading:"Loading...",drop_to_upload:"Drop to Upload",item:"Item",items:"Items",upload_file:"Upload File",upload_file_indeterminate:"Uploading File...",upload_file_success:"File Uploaded",upload_files_indeterminate:"Uploading files {done}/{total}",upload_files_success:"{count} Files Uploaded",upload_pending:"Upload Pending",drag_file_here:"Drag & Drop a File Here",click_to_browse:"Click to Browse",interface_options:"Interface Options",layout_options:"Layout Options",rows:"Rows",columns:"Columns",collection_setup:"Collection Setup",optional_system_fields:"Optional System Fields",value_unique:"Value has to be unique",all_activity:"All Activity",create_item:"Create Item",display_template:"Display Template",language_display_template:"Language Display Template",translations_display_template:"Translations Display Template",n_items_selected:"No Items Selected | 1 Item Selected | {n} Items Selected",per_page:"Per Page",all_files:"All Files",my_files:"My Files",recent_files:"Recent Files",create_folder:"Create Folder",edit_folder:"Edit Folder",folder_name:"Folder Name...",folder_key:"Folder Key...",add_file:"Add File",replace_file:"Replace File",no_results:"No Results",no_results_copy:"Adjust or clear search filters to see results.",clear_filters:"Clear Filters",saves_automatically:"Saves Automatically",role:"Role",edit_role:"Edit Role",rule:"Rule",user:"User",no_presets:"No Presets",no_presets_copy:"No presets or bookmarks have been saved yet.",no_presets_cta:"Add Preset",presets_only:"Presets Only",create:"Create",on_create:"On Create",on_update:"On Update",read:"Read",update:"Update",delete:"Delete",select_fields:"Select Fields",format_text:"Format Text",format_value:"Format Value",abbreviate_value:"Abbreviate Value",operator:"Operator",bold:"Bold",toggle:"Toggle",icon_on:"Icon On",icon_off:"Icon Off",label:"Label",flows:"Flows",flow:"Flow",select_a_flow:"Select a Flow",run_flow_on_current:"Run flow on Current Item",run_flow_on_current_edited_confirm:"This item may be updated by this flow, are you sure you want to execute it?",run_flow_on_selected:"No Items Selected | Run flow on 1 Selected Item | Run flow on {n} Selected Items",run_flow_success:'Flow "{flow}" ran successfully',trigger:"Trigger",trigger_options:"Trigger Options",view_trigger:"View Trigger",create_trigger:"Create Trigger",trigger_setup:"Trigger Setup",change_trigger:"Change Trigger",flow_delete_confirm:'Are you sure you want to delete Flow "{flow}"? This action can not be undone.',set_flow_active:"Set Flow to Active",set_flow_inactive:"Set Flow to Inactive",edit_flow:"Edit Flow",delete_flow:"Delete Flow",no_other_flows_copy:"You don't have any other Flows yet.",no_flows:"No Flows",no_flows_copy:"You don't have any Flows yet.",create_flow:"Create Flow",creating_new_flow:"Creating New Flow",updating_flow:"Updating Flow",flow_setup:"Flow Setup",flow_name:"Name",flow_tracking:"Activity & Logs Tracking",flow_tracking_all:"Track Activity & Logs",flow_tracking_activity:"Only Track Activity",flow_tracking_null:"Do Not Track Anything",start_flow:"Start Flow",stop_flow:"Stop Flow",create_operation:"Create Operation",edit_operation:"Edit Operation",code:"Code",operation_options:"Operation Options",operation_name:"Name of operation...",operation_key:"Identifier for reference...",operation_key_unique_error:"Operation keys must be unique in a Flow",operation_handle_resolve:"Resolve: Click to Add or Drag to Reroute",operation_handle_reject:"Reject: Click to Add or Drag to Reroute",insights:"Insights",dashboard:"Dashboard",panel:"Panel",panel_options:"Panel Options",panel_header:"Panel Header",panel_name_placeholder:"Name this panel...",panel_note_placeholder:"Optional details about this panel...",panel_delete_confirm:"Are you sure you want to delete this panel? This action can not be undone.",dashboard_delete_confirm:"Are you sure you want to delete this dashboard? This action can not be undone.",edit_dashboard:"Edit Dashboard",delete_dashboard:"Delete Dashboard",visible:"Visible",prefix_placeholder:"Text before value...",suffix_placeholder:"Text after value...",decimals_placeholder:"Number of decimal places...",no_dashboards:"No Dashboards",no_dashboards_copy:"You don\u2019t have any Dashboards yet.",create_dashboard:"Create Dashboard",dashboard_name:"Dashboard Name",no_data:"No Data",no_data_in_flow:"No data was produced or accessed within this Flow",accountability:"Accountability",payload:"Payload",details:"Details",full_screen:"Full Screen",full_text_search:"Full-Text Search",edit_panels:"Edit Panels",center_align:"Center Align",left_align:"Left Align",right_align:"Right Align",fit_to_screen:"Fit to Screen",image_url:"Image Url",alt_text:"Alternative Text",media:"Media",quality:"Quality",width:"Width",height:"Height",transformation_preset_key:"Transformation Preset Key",source:"Source",url_placeholder:"Enter an url...",display_text:"Display Text",display_text_placeholder:"Enter a display text...",interface_group_text_and_numbers:"Text & Numbers",interface_group_selection:"Selection",interface_group_relational:"Relational",interface_group_presentation:"Presentation",interface_group_groups:"Groups",interface_group_other:"Other",tooltip:"Tooltip",tooltip_placeholder:"Enter a tooltip...",unlimited:"Unlimited",open_link_in:"Open link in",new_tab:"New tab",current_tab:"Current tab",save_image:"Save Image",save_media:"Save Media",wysiwyg_options:{aligncenter:"Align Center",alignjustify:"Align Justify",alignleft:"Align Left",alignnone:"Align None",alignright:"Align Right",forecolor:"Foreground Color",backcolor:"Background Color",bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript",codeblock:"Code",blockquote:"Blockquote",bullist:"Bullet List",numlist:"Numbered List",hr:"Horizontal Rule",link:"Add/Edit Link",unlink:"Remove Link",media:"Add/Edit Media",image:"Add/Edit Image",copy:"Copy",cut:"Cut",paste:"Paste",heading:"Heading",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",fontselect:"Select Font",fontsizeselect:"Select Font Size",indent:"Indent",outdent:"Outdent",undo:"Undo",redo:"Redo",remove:"Remove",removeformat:"Remove Format",selectall:"Select All",table:"Table",visualaid:"View invisible elements",source_code:"Edit Source Code",fullscreen:"Full Screen",directionality:"Directionality"},dropdown:"Dropdown",choices:"Choices",choices_option_configured_incorrectly:"Choices configured incorrectly",deselect:"Deselect",deselect_all:"Deselect All",other:"Other...",adding_user:"Adding User",unknown_user:"Unknown User",creating_in:"Creating Item in {collection}",editing_in:"Editing Item in {collection}",viewing_in:"Viewing Item in {collection}",creating_unit:"Creating {unit}",editing_unit:"Editing {unit}",editing_in_batch:"Batch Editing {count} Items",no_options_available:"No options available",settings_data_model:"Data Model",settings_permissions:"Roles & Permissions",settings_project:"Project Settings",settings_webhooks:"Webhooks",settings_flows:"Flows",settings_presets:"Presets & Bookmarks",settings_translation_strings:"Translation Strings",one_or_more_options_are_missing:"One or more options are missing",scope:"Scope",actions:"Actions",select:"Select...",layout:"Layout",tree_view:"Tree View",changes_are_permanent:"Changes are permanent",preset_name_placeholder:"Serves as default when empty...",preset_search_placeholder:"Search query...",editing_preset:"Editing Preset",layout_preview:"Layout Preview",layout_setup:"Layout Setup",data:"Data",unsaved_changes:"Unsaved Changes",unsaved_changes_copy:"Are you sure you want to leave this page?",discard_changes:"Discard Changes",discard_all_changes:"Discard All Changes",discard_changes_copy:"Are you sure you want to discard all the changes made?",show_x_axis:"Show X Axis",show_y_axis:"Show Y Axis",keep_editing:"Keep Editing",page_help_collections_overview:"**Collections Overview** \u2014 List of all collections you have access to.",page_help_collections_collection:"**Browse Items** \u2014 Lists all {collection} items you have access to. Customize layout, filters, and sorting to tailor your view, and even save bookmarks of these different configurations for quick access.",page_help_collections_item:"**Item Detail** \u2014 A form for viewing and managing this item. This sidebar also contains a full history of revisions, and embedded comments.",page_help_activity_collection:"**Browse Activity** \u2014 A comprehensive listing of all your user's system and content activity.",page_help_docs_global:"**Documentation Overview** \u2014 Docs tailored specifically to this project's version and schema.",page_help_files_collection:"**File Library** \u2014 Lists all file assets uploaded to this project. Customize layout, filters, and sorting to tailor your view, and even save bookmarks of these different configurations for quick access.",page_help_files_item:"**File Detail** \u2014 A form for managing file metadata, editing the original asset, and updating access settings.",page_help_settings_project:"**Project Settings** \u2014 Your project's global configuration options.",page_help_settings_datamodel_collections:"**Data Model: Collections** \u2014 Lists all collections available. This includes visible, hidden, and system collections, as well as unmanaged database tables that can be added.",page_help_settings_datamodel_fields:"**Data Model: Collection** \u2014 A form for managing this collection and its fields.",page_help_settings_roles_collection:"**Browse Roles** \u2014 Lists the Admin, Public and custom User Roles.",page_help_settings_roles_item:"**Role Detail** \u2014 Manage a role's permissions and other settings.",page_help_settings_presets_collection:"**Browse Presets** \u2014 Lists all presets in the project, including: user, role, and global bookmarks, as well as default views.",page_help_settings_presets_item:"**Preset Detail** \u2014 A form for managing bookmarks and default collection presets.",page_help_settings_webhooks_collection:"**Browse Webhooks** \u2014 Lists all webhooks within the project.",page_help_settings_webhooks_item:"**Webhook Detail** \u2014 A form for creating and managing project webhooks.",page_help_settings_flows_collection:"**Browse Flows** \u2014 Lists all Flows within the project.",page_help_settings_flows_item:"**Flow Detail** \u2014 Workspace for managing one or more operations.",page_help_settings_translation_strings_collection:"**Browse Translation Strings** \u2014 Lists all translation strings within the project.",page_help_users_collection:"**User Directory** \u2014 Lists all system users within this project.",page_help_users_item:"**User Detail** \u2014 Manage your account information, or view the details of other users.",page_help_insights_overview:"**Insights** \u2014 List of dashboards you have access to.",page_help_insights_dashboard:"**Dashboard** \u2014 Workspace for managing one or more panels",activity_feed:"Activity Feed",add_new:"Add New",create_new:"Create New",all:"All",none:"None",no_layout_collection_selected_yet:"No layout/collection selected yet",batch_delete_confirm:"No items have been selected | Are you sure you want to delete this item? This action can not be undone. | Are you sure you want to delete these {count} items? This action can not be undone.",cancel:"Cancel",no_upscale:"Don't upscale images",collection:"Collection",collections:"Collections",content:"Content",singleton:"Singleton",singleton_label:"Treat as single object",system_fields_locked:"System fields are locked and can't be edited",directus_collection:{directus_activity:"Accountability logs for all events",directus_collections:"Additional collection configuration and metadata",directus_dashboards:"Dashboards within the Insights module",directus_fields:"Additional field configuration and metadata",directus_files:"Metadata for all managed file assets",directus_flows:"Automation flows",directus_folders:"Provides virtual directories for files",directus_migrations:"What version of the database you're using",directus_notifications:"Notifications sent to users",directus_operations:"Operations that run in Flows",directus_panels:"Individual panels within Insights dashboards",directus_permissions:"Access permissions for each role",directus_presets:"Presets for collection defaults and bookmarks",directus_relations:"Relationship configuration and metadata",directus_revisions:"Data snapshots for all activity",directus_roles:"Permission groups for system users",directus_sessions:"User session information",directus_settings:"Project configuration options",directus_shares:"Tracks externally shared items",directus_users:"System users for the platform",directus_webhooks:"Configuration for event-based HTTP requests"},fields:{directus_activity:{item:"Item Primary Key",action:"Action",collection:"Collection",timestamp:"Action On",user:"Action By",comment:"Comment",user_agent:"User Agent",origin:"Origin",ip:"IP Address",revisions:"Revisions"},directus_collections:{collection:"Collection",icon:"Icon",note:"Note",color:"Color",display_template:"Display Template",hidden:"Hidden",singleton:"Singleton",translations:"Collection Naming Translations",archive_app_filter:"Archive App Filter",archive_value:"Archive Value",unarchive_value:"Unarchive Value",sort_field:"Sort Field",accountability:"Activity & Revision Tracking",archive_field:"Archive Field",item_duplication_fields:"Item Duplication Fields"},directus_files:{$thumbnail:"Thumbnail",title:"Title",description:"Description",tags:"Tags",location:"Location",storage:"Storage",filename_disk:"Filename (Disk)",filename_download:"Filename (Download)",metadata:"Metadata",type:"Mime Type",filesize:"Filesize",modified_by:"Modified By",modified_on:"Modified On",created_on:"Created On",created_by:"Created By",embed:"Embed",uploaded_by:"Uploaded By",folder:"Folder",width:"Width",uploaded_on:"Uploaded On",height:"Height",charset:"Charset",duration:"Duration"},directus_users:{first_name:"First Name",last_name:"Last Name",email:"Email",password:"Password",avatar:"Avatar",location:"Location",title:"Title",description:"Description",tags:"Tags",user_preferences:"User Preferences",language:"Language",theme:"Theme",theme_auto:"Automatic (Based on System)",theme_light:"Light Mode",theme_dark:"Dark Mode",tfa_secret:"Two-Factor Authentication",admin_options:"Admin Options",status:"Status",status_draft:"Draft",status_invited:"Invited",status_active:"Active",status_suspended:"Suspended",status_archived:"Archived",role:"Role",token:"Token",provider:"Provider",external_identifier:"External Identifier",last_page:"Last Page",last_access:"Last Access",email_notifications:"Email Notifications"},directus_settings:{jpg:"JPEG",png:"PNG",webP:"WebP",tiff:"Tiff",mapping:"Mapping",basemaps:"Basemaps",basemaps_raster:"Raster",basemaps_tile:"Raster TileJSON",basemaps_style:"Mapbox Style",mapbox_key:"Mapbox Access Token",mapbox_placeholder:"pk.eyJ1Ijo.....",attribution:"Attribution",attribution_placeholder:"\xA9 OpenStreetMap contributors",transforms_note:"The Sharp method name and its arguments. See https://sharp.pixelplumbing.com/api-constructor for more information.",additional_transforms:"Additional Transformations",project_name:"Project Name",project_descriptor:"Project Descriptor",project_url:"Project URL",project_color:"Project Color",project_logo:"Project Logo",default_language:"Default Language",branding:"Branding & Style",public_foreground:"Public Foreground",public_background:"Public Background",public_note:"Public Note",auth_password_policy:"Auth Password Policy",auth_login_attempts:"Auth Login Attempts",files_and_thumbnails:"Files & Storage",storage_default_folder:"Default Folder",storage_asset_presets:"Transformation Presets",storage_asset_transform:"Allowed Transformations",overrides:"App Overrides",custom_css:"Custom CSS",module_bar:"Module Bar",transformations_all:"Allow all transformations",transformations_none:"Disable transformations",transformations_presets:"Limit transformations to presets below",image_editor:"Image Editor",custom_aspect_ratios:"Custom Aspect Ratios"},directus_shares:{name:"Name",role:"Role",password:"Password",date_start:"Date Start",date_end:"Date End",max_uses:"Max Uses",times_used:"Times Used"},directus_fields:{collection:"Collection Name",icon:"Collection Icon",note:"Note",hidden:"Hidden",singleton:"Singleton",translation:"Field Name Translations",display_template:"Template"},directus_roles:{name:"Role Name",icon:"Role Icon",description:"Description",app_access:"App Access",admin_access:"Admin Access",ip_access:"IP Access",enforce_tfa:"Require 2FA",users:"Users in Role",module_list:"Module Navigation"},directus_webhooks:{name:"Name",method:"Method",status:"Status",data:"Data",header:"Header",value:"Value",headers:"Request Headers",data_label:"Send Event Data",triggers:"Triggers",actions:"Actions",collections:"Collections"}},field_options:{directus_settings:{project_name_placeholder:"My project...",project_color_note:"Login & Logo Background",project_logo_note:"White 40x40 SVG/PNG",public_note_placeholder:"A short, public message that supports markdown formatting...",security_divider_title:"Security",auth_password_policy:{none_text:"None \u2013 Not Recommended",weak_text:"Weak \u2013 Minimum 8 Characters",strong_text:"Strong \u2013 Upper / Lowercase / Numbers / Special"},storage_asset_presets:{fit_label:"Fit",upscaling:"Upscaling",fit:{contain_text:"Contain (preserve aspect ratio)",cover_text:"Cover (forces exact size)",fit_text:"Fit inside",outside_text:"Fit outside"}},additional_transforms:"Additional Transformations",transforms_note:"The Sharp method name and its arguments. See https://sharp.pixelplumbing.com/api-constructor for more information.",mapbox_key:"Mapbox Access Token",mapbox_placeholder:"pk.eyJ1Ijo.....",basemaps:"Basemaps",basemaps_name_placeholder:"Enter the basemap name...",basemaps_raster:"Raster",basemaps_tile:"Raster TileJSON",basemaps_style:"Mapbox Style",files_divider_title:"Files & Thumbnails",overrides_divider_title:"App Overrides"},directus_activity:{login:"Login",create:"Create",update:"Update",delete:"Delete"},directus_collections:{track_activity_revisions:"Track Activity & Revisions",only_track_activity:"Only Track Activity",do_not_track_anything:"Do Not Track Anything",collection_setup:"Collection Setup",note_placeholder:"A description of this collection...",hidden_label:"Hide within the App",singleton:"Treat as single object",language:"Language",translation:"Translation",translation_placeholder:"Enter a translation...",collection_name:"Collection Name",singular_unit:"Singular Unit",plural_unit:"Plural Unit",archive_divider:"Archive",archive_field_placeholder:"Choose a field...",archive_app_filter:"Enable App Archive Filter",archive_value:"Value set when archiving...",unarchive_value:"Value set when unarchiving...",sort_divider:"Sort",sort_field:"Choose a field...",accountability_divider:"Accountability",duplication_divider:"Duplication"},directus_files:{title:"A unique title...",description:"An optional description...",location:"An optional location...",storage_divider:"File Naming",filename_disk:"Name on disk storage...",filename_download:"Name when downloading..."},directus_roles:{name:"The unique name for this role...",description:"A description of this role...",ip_access:"Add allowed IP addresses, leave empty to allow all...",fields:{icon_name:"Icon",name_name:"Name",name_placeholder:"Enter a title...",link_name:"Link",link_placeholder:"Relative or absolute URL..."},collections_name:"Collections",collections_addLabel:"Add Collection..."},directus_users:{preferences_divider:"User Preferences",dropdown_auto:"Automatic (Based on System)",dropdown_light:"Light Mode",dropdown_dark:"Dark Mode",admin_divider:"Admin Options",status_dropdown_draft:"Draft",status_dropdown_invited:"Invited",status_dropdown_active:"Active",status_dropdown_suspended:"Suspended",status_dropdown_archived:"Archived",token:"Enter a secure access token..."},directus_webhooks:{status_options_active:"Active",status_options_inactive:"Inactive",data_label:"Send Event Data",triggers_divider:"Triggers",actions_create:"Create",actions_update:"Update",actions_delete:"Delete",actions_login:"Login",headers:{header:"Header",value:"Value",add:"Add Header"}}},no_fields_in_collection:'There are no fields in "{collection}" yet',no_value:"No value",do_nothing:"Do Nothing",generate_and_save_uuid:"Generate and Save UUID",save_current_user_id:"Save Current User ID",save_current_user_role:"Save Current User Role",save_current_datetime:"Save Current Date/Time",always_open:"Always Open",start_open:"Start Open",start_collapsed:"Start Collapsed",block:"Block",inline:"Inline",comment:"Comment",shares:"Shares",unlimited_usage:"Unlimited usage",uses_left:"No uses left | 1 use left | {n} uses left",no_shares:"No shares to show",new_share:"New Share",expired:"Expired",upcoming:"Upcoming",share:"Share",share_item:"Share Item",shared_with_you:"An item has been shared with you",shared_enter_passcode:"Enter your passcode to continue...",shared_leave_blank_for_unlimited:"Leave blank for unlimited",shared_times_remaining:"This link can only be used {n} times",shared_last_remaining:"This link can only be used once",shared_uses_left:"For added security, this shared page has been configured with a limited number of views. There are currently {n} views remaining, after which, the page will no longer be accessible.",share_access_page:"Access Shared Page",share_access_not_found:"This shared page either does not exist or has already exceeded the maximum number of allowed uses.",share_access_not_found_desc:"Please contact an authorized user of this project to request access.",share_access_not_found_title:"Unknown Share Page",share_copy_link:"Copy Link",share_copy_link_success:"Link Copied",share_copy_link_error:"Unable to Copy Link",share_send_link:"Send Link",relational_triggers:"Relational Triggers",referential_action_field_label_m2o:"On Delete of {collection}...",referential_action_field_label_o2m:"On Deselect of {collection}...",referential_action_no_action:"Prevent the deletion",referential_action_cascade:"Delete the {collection} item (cascade)",referential_action_set_null:"Nullify the {field} field",referential_action_set_default:"Set {field} to its default value",choose_action:"Choose Action",continue_label:"Continue",continue_as:"{name} is currently authenticated. If you recognize this account, press continue.",editing_role:"{role} Role",creating_webhook:"Creating Webhook",default_label:"Default",delete_label:"Delete",delete_are_you_sure:"This action is permanent and can not be undone. Are you sure you would like to proceed?",delete_field_are_you_sure:'Are you sure you want to delete the field "{field}"? This action can not be undone.',description:"Description",done:"Done",duplicate:"Duplicate",limit:"Limit",email:"Email",embed:"Embed",fallback_icon:"Fallback Icon",field:"Field | Fields",file:"File",file_library:"File Library",forgot_password:"Forgot Password",hidden:"Hidden",hidden_in_group:"Hidden in {group}",icon:"Icon",info:"Info",normal:"Normal",success:"Success",warning:"Warning",danger:"Danger",colors:{purple:"Purple",blue:"Blue",green:"Green",yellow:"Yellow",orange:"Orange",red:"Red",black:"Black",gray:"Gray",white:"White"},junction_collection:"Junction Collection",latency:"Latency",login:"Log in",my_activity:"My Activity",not_authenticated:"Not Authenticated",authenticated:"Authenticated",options:"Options",otp:"One-Time Password",password:"Password",permissions:"Permissions",relationship:"Relationship",reset:"Reset",reset_password:"Reset Password",revisions:"Revisions",no_revisions:"No Revisions Yet",no_logs:"No Logs Yet",revert:"Revert",save:"Save",schema:"Schema",search:"Search",select_existing:"Select Existing",select_field_type:"Select a field type",select_interface:"Select an interface",settings:"Settings",sign_in:"Sign In",sign_out:"Sign Out",sign_out_confirm:"Are you sure you want to sign out?",something_went_wrong:"Something went wrong.",sort_direction:"Sort Direction",export_location:"Export Location",export_started:"Export Started",export_started_copy:"Your export has started. You'll be notified when it's ready to download.",sort_asc:"Sort Ascending",sort_desc:"Sort Descending",template:"Template",require_value_to_be_set:"Require value to be set on creation",translation:"Translation",translation_placeholder:"Enter a translation...",value:"Value",view_project:"View Project",weeks:{},report_error:"Report Error",start:"Start",table:"Table",list:"List",search_filter:"Search & Filter",enable_search_filter:"Enable searching & filtering",item_link:"Item link",show_link_to_item:"Show a link to the item",navigate_to_item:"Navigate to Item",undo_removed_item:"Undo Removed Item",remove_item:"Remove Item",delete_item:"Delete Item",interfaces:{filter:{name:"Filter",description:"Configure a filter object.",add_filter:"Add Filter",add_group:"And / Or group",add_value:"Add Value",logic_type_and:"AND",logic_type_or:"OR",all:"All",any:"Any",and:"and",of_the_following:"of the following",no_rules:"No configured rules",change_value:"Click to change value",placeholder:"Drag rules here",add_key_placeholder:"Add a key and press enter..."},fields:{name:"Fields"},"group-accordion":{name:"Accordion",description:"Display fields or groups as accordion sections",start:"Start",all_closed:"All Closed",first_opened:"First Opened",all_opened:"All Opened",accordion_mode:"Accordion Mode",max_one_section_open:"Max 1 Section Open"},"presentation-links":{"presentation-links":"Button Links",links:"Links",description:"Configurable link buttons for launching dynamic URLs",style:"Style",primary:"Primary",link:"Links",button:"Buttons",error:"Cannot perform action"},"select-multiple-checkbox":{checkboxes:"Checkboxes",description:"Choose between multiple options via checkboxes",allow_other:"Allow Other",show_more:"Show {count} more",items_shown:"Items Shown"},"select-multiple-checkbox-tree":{name:"Checkboxes (Tree)",description:"Choose between multiple options via nested checkboxes",value_combining:"Value Combining",value_combining_note:"Controls what value is stored when nested selections are made.",show_all:"Show All",show_selected:"Show Selected"},"input-code":{code:"Code",description:"Write or share code snippets",line_number:"Line Number",line_wrapping:"Line Wrapping",placeholder:"Enter code here..."},"system-collection":{collection:"Collection",description:"Select between existing collections",include_system_collections:"Include System Collections"},"system-collections":{collections:"Collections",description:"Select between existing collections",include_system_collections:"Include System Collections"},"select-color":{color:"Color",description:"Enter or select a color value",placeholder:"Choose a color...",preset_colors:"Preset Colors",opacity:"Opacity",preset_colors_add_label:"Add new color...",name_placeholder:"Enter color name..."},datetime:{datetime:"Datetime",description:"Enter dates and times",include_seconds:"Include Seconds",set_to_now:"Set to Now",use_24:"Use 24-Hour Format",placeholder:"Choose a datetime..."},"system-fields":{select_a_collection:"Select a Collection",no_fields:"No fields"},"system-display-template":{"display-template":"Display Template",description:"Mix static text and dynamic field values",collection_field:"Collection field",collection_field_not_setup:"The collection field option is misconfigured",select_a_collection:"Select a Collection"},"presentation-divider":{divider:"Divider",description:"Label and divide fields into sections",title_placeholder:"Enter a title, or leave blank to only show a line...",inline_title:"Inline Title",inline_title_label:"Show title inside line",margin_top:"Margin Top",margin_top_label:"Increase Top Margin"},"select-dropdown":{description:"Select a value from a dropdown",choices_placeholder:"Add a new choice",allow_other:"Allow Other",allow_other_label:"Allow Other Values",allow_none:"Allow None",allow_none_label:"Allow No Selection",choices_name_placeholder:"Enter a name...",choices_value_placeholder:"Enter a value...",preview_threshold:"Preview Threshold"},"select-multiple-dropdown":{"select-multiple-dropdown":"Dropdown (Multiple)",description:"Select multiple values from a dropdown"},file:{file:"File",description:"Select or upload a file"},files:{files:"Files",description:"Select or upload multiple files"},"input-hash":{hash:"Hash",description:"Enter a value to be hashed",masked:"Masked",masked_label:"Hide the true values"},"select-icon":{icon:"Icon",description:"Select an icon from a dropdown",search_for_icon:"Search for icon..."},"file-image":{image:"Image",description:"Select or upload an image",crop:"Crop to Fit",crop_label:"Crop image as needed"},"system-interface":{interface:"Interface",description:"Select an existing interface",placeholder:"Select an interface..."},"system-interface-options":{"interface-options":"Interface Options",description:"A modal for selecting options of an interface"},"list-m2m":{"many-to-many":"Many to Many",description:"Select multiple related junction items",columns_configure_notice:"You can configure the columns after creating this field.",display_template_configure_notice:"You can configure the display template after creating this field."},"select-dropdown-m2o":{"many-to-one":"Many to One",description:"Select a single related item",display_template:"Display Template"},"input-rich-text-md":{markdown:"Markdown",description:"Enter and preview markdown",edit:"Edit",preview:"Preview",editorFont:"Editor Font",previewFont:"Preview Font",customSyntax:"Custom Blocks",customSyntax_label:"Add custom syntax types",customSyntax_add:"Add custom syntax",box:"Block / Inline",imageToken:"Static Access Token",imageToken_label:"Static access token is appended to the assets' URL"},map:{map:"Map",description:"Select a location on a map",zoom:"Zoom",geometry_type:"Geometry Type",geometry_format:"Geometry Format",default_view:"Default View",invalid_options:"Invalid options",invalid_format:"Invalid format ({format})",unexpected_geometry:"Expected {expected}, got {got}.",fit_bounds:"Fit view to data",native:"Native",geojson:"GeoJSON",lnglat:"Longitude, Latitude",wkt:"WKT",wkb:"WKB",click_to_select:"Click to select {geometry}"},"presentation-notice":{notice:"Notice",description:"Display a short notice",text:"Enter notice content here..."},"list-o2m":{"one-to-many":"One to Many",description:"Select multiple related items",no_collection:"The collection could not be found"},"system-folder":{folder:"Folder",description:"Select a folder",field_hint:"Folder for uploaded files. Does not affect existing files.",root_name:"File Library Root",system_default:"System Defaults"},"select-radio":{"radio-buttons":"Radio Buttons",description:"Select one of multiple choices"},list:{repeater:"Repeater",description:"Create multiple entries of the same structure",edit_fields:"Edit Fields",add_label:'"Create New" Label',sort:"Sort",sort_placeholder:"Manual",field_name_placeholder:"Enter field name...",field_note_placeholder:"Enter field note...",incompatible_data:"The current data is not compatible with the repeater interface and will be overridden when adding items to the repeater"},slider:{slider:"Slider",description:"Select a number using a slider",always_show_value:"Always show value"},tags:{tags:"Tags",description:"Select or add tags",whitespace:"Whitespace",hyphen:"Replace with hyphen",underscore:"Replace with underscore",remove:"Remove whitespace",capitalization:"Capitalization",uppercase:"Convert Uppercase",lowercase:"Convert Lowercase",auto_formatter:"Use Title Auto-Formatter",alphabetize:"Alphabetize",alphabetize_label:"Force Alphabetical Order",add_tags:"Add a tag and press Enter..."},input:{input:"Input",description:"Manually enter a value",trim:"Trim",trim_label:"Trim the start and end",mask:"Masked",mask_label:"Hide the real value",clear:"Cleared Value",clear_label:"Save as empty string",minimum_value:"Minimum Value",maximum_value:"Maximum Value",step_interval:"Step Interval",slug:"Slugify",slug_label:"Make entered value URL safe"},"input-multiline":{textarea:"Textarea",description:"Enter multiline plain-text"},"input-translated-string":{"input-translated-string":"Translated Strings",description:"Select or add translation string",search_placeholder:"Search...",new_translation_string:"New Translation String"},boolean:{toggle:"Toggle",description:"Switch between on and off",color_on:"Color On",color_off:"Color Off",label_placeholder:"Enter a label...",label_default:"Enabled"},translations:{display_template:"Display Template",no_collection:"No Collection",toggle_split_view:"Toggle Split View",enable:"Enable",user_language:"Use Current User Language",default_language:"Default Language",language_field:"Language Indicator Field",language_direction_field:"Language Direction Field"},"list-o2m-tree-view":{description:"Tree view for nested recursive one-to-many items",recursive_only:"The tree view interface only works for recursive relationships."},user:{user:"User",description:"Select an existing directus user",select_mode:"Select Mode",modes:{auto:"Auto",dropdown:"Dropdown",modal:"Modal"}},"input-rich-text-html":{wysiwyg:"WYSIWYG",description:"A rich-text editor writing HTML content",toolbar:"Toolbar",custom_formats:"Custom Formats",options_override:"Options Override",folder_note:"Folder for uploaded files. Does not affect existing files.",imageToken:"Static Access Token",imageToken_label:"Static access token is appended to the assets' URL"},"input-autocomplete-api":{"input-autocomplete-api":"Autocomplete Input (API)",description:"A search typeahead for external API values.",results_path:"Results Path",value_path:"Value Path",text_path:"Text Path",trigger:"Trigger",rate:"Rate"},"group-raw":{name:"Raw Group",description:"Render the fields as-is"},"group-detail":{name:"Detail Group",description:"Render the fields as a collapsable section",show_header:"Show Group Header",header_icon:"Header Icon",header_color:"Header Color",start_open:"Start Open",start_closed:"Start Closed"},"system-token":{"system-token":"Token",description:"Manage static access token",placeholder:'Click "Generate Token" to create a new static access token',value_securely_saved:"Value Securely Saved",generate:"Generate Token",regenerate:"Regenerate Token",generate_success_copy:"Make sure to backup and copy the token above. For security reasons, you will not be able to view the token again after saving and navigate off this page.",remove_token:"Remove Token"},"system-raw-editor":{"system-raw-editor":"Raw Editor",description:"Allow entering of raw or mustache templating values"}},displays:{translations:{translations:"Translations",description:"Preview translations",enable:"Enable",user_language:"Use Current User Language",default_language:"Default Language",language_field:"Language Indicator Field"},boolean:{boolean:"Boolean",description:"Display on and off states",label_on:"Label On",label_on_placeholder:"Enter an on label...",label_off:"Label Off",label_off_placeholder:"Enter an off label...",icon_on:"Icon On",icon_off:"Icon Off",color_on:"Color On",color_off:"Color Off"},collection:{collection:"Collection",description:"Display a collection",icon_label:"Show the collection's icon"},color:{color:"Color",description:"Display a colored dot",default_color:"Default Color"},datetime:{datetime:"Datetime",description:"Display values related to time",format:"Format",format_note:"The custom format accepts the __[Date Field Symbol Table](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table)__",long:"Long",short:"Short",relative:"Relative",relative_label:"Show relative time, eg: 5 minutes ago",suffix:"Suffix",suffix_label:"Show relative indicator",suffix_note:"Uses words like 'in' and 'ago'",strict:"Strict",strict_label:"Use strict units",strict_note:"Removes words like 'almost', 'over', 'less than'",round:"Round",round_note:"Choose a rounding function to use",down:"Down",nearest:"Nearest",up:"Up"},file:{file:"File",description:"Display files"},filesize:{filesize:"File Size",description:"Display the size of a file"},"formatted-value":{"formatted-value":"Formatted Value",description:"Display a formatted version of the text",format:"Format",format_label:"Auto format",font:"Font",font_sans_serif:"Sans serif",font_serif:"Serif",font_monospace:"Monospace",bold:"Bold",bold_label:"Use bold style",italic:"Italic",italic_label:"Use italic style",prefix:"Prefix",prefix_label:"Prepend text",suffix:"Suffix",suffix_label:"Appended Text",color:"Color",background:"Background",icon:"Icon",border:"Border",border_label:"Show border",text:"Text",text_placeholder:"Optional value override..."},"formatted-json-value":{"formatted-json-value":"Formatted JSON value",description:"Display a formatted version of the object"},icon:{icon:"Icon",description:"Display an icon",filled:"Filled",filled_label:"Use the filled variant"},image:{image:"Image",description:"Display a tiny image preview",circle:"Circle",circle_label:"Display as a circle"},labels:{labels:"Labels",description:"Display either a single or a list of labels",default_foreground:"Default Foreground",default_background:"Default Background",format_label:"Format each label",show_as_dot:"Show As Dot",choices_value_placeholder:"Enter a value...",choices_text_placeholder:"Enter a text..."},"mime-type":{"mime-type":"MIME Type",description:"Show the MIME-Type of a file",extension_only:"Extension Only",extension_only_label:"Only show the file extension"},rating:{rating:"Rating",description:"Visualize a number as stars relative to the max-value",simple:"Simple",simple_label:"Show stars in a simple format"},raw:{raw:"Raw Value"},"related-values":{"related-values":"Related Values",description:"Display relative values",display_template_configure_notice:"You can configure the display template after creating this field."},user:{user:"User",description:"Display a directus user",avatar:"Avatar",name:"Name",both:"Both",circle_label:"Show user in a circle"}},layouts:{cards:{cards:"Cards",image_source:"Image Source",image_fit:"Image Fit",crop:"Crop",contain:"Contain",title:"Title",subtitle:"Subtitle"},tabular:{tabular:"Table",spacing:"Spacing",comfortable:"Comfortable",compact:"Compact",cozy:"Cozy"},calendar:{calendar:"Calendar",start_date_field:"Start Date Field",end_date_field:"End Date Field",optional:"Optional",first_day:"First Day of the Week"},map:{map:"Map",basemap:"Basemap",layers:"Layers",cluster_options:"Clustering options",cluster:"Cluster Nearby Data",cluster_radius:"Cluster radius",cluster_minpoints:"Cluster minimum size",cluster_maxzoom:"Maximum zoom for clustering",field:"Geospatial Field",invalid_geometry:"Invalid geometry",find_location:"Find location...",default_template:"Using Collection Default...",no_compatible_fields:"No compatible fields"},kanban:{name:"Kanban,",group_field:"Group By,",group_field_placeholder:"Field to group by...,",group_title:"Group Title,",group_title_placeholder:"Field for group titles...,",title:"Card Title,",title_placeholder:"Optional title field...,",text:"Card Text,",text_placeholder:"Optional text field...,",date:"Card Date,",date_placeholder:"Optional date field...,",tags:"Card Tags,",tags_placeholder:"Optional tags field...,",user:"Card User,",user_placeholder:"Optional user field...,",image:"Card Image,",image_placeholder:"Optional image field...,",image_fit:"Card Image Fit,",crop:"Crop,",advanced:"Advanced,",edit_group:"Edit Group,",delete_group:"Delete Group,",add_group:"Add Group,",add_group_placeholder:"Enter a new group title...,",show_ungrouped:"Show Ungrouped,",show:"Show,",no_group:"No Group,",not_all_loaded:"Could only load the first 1000 items."}},panels:{metric:{name:"Metric",description:"Show a single value based on a query",field:"Field"},time_series:{name:"Time Series",description:"Render a line chart based on values over time",date_field:"Date Field",value_field:"Value Field",fill_type:"Fill Type",curve_type:"Curve Type"},label:{name:"Label",description:"Show some text"},list:{name:"List",description:"Filter and list fields from a collection"},barchart:{name:"Bar Chart",description:"Bar or column charts for comparing groups of values",select_field:"You must select a field.",select_collection:"You must select a collection.",select_x_axis:"You must select an X-Axis.",function:"Function",horizontal:"Horizontal",x_axis_grouping:"X-Axis Group Aggregation",x_axis:"X-Axis",y_axis_function:"Y-Axis Function",y_axis:"Y-Axis",show_x_axis:"Show X-Axis",show_y_axis:"Show Y-Axis",show_data_label:"Show Data Label",group_by:"Grouped By",group_and_function:"You must include or omit both a group and a function.",y_axis_NaN:"The Y axis must be a number.",y_axis_conditional_one:"The value for condition",y_axis_conditional_two:"must be a number."},linechart:{name:"Line Chart",description:"Line chart for comparing change of a field.",select_field:"You must select a field.",select_collection:"You must select a collection.",select_x_axis:"You must select an X-Axis.",function:"Function",x_axis:"X-Axis",x_axis_decimals:"X-Axis Decimals",disabled_no_grouping:"Disabled when no grouping is selected.",y_axis:"Y-Axis",datasets:"Datasets",show_legend:"Show Legend",show_marker:"Show Tooltip Marker",include_dataset:"You must include atleast one dataset.",include_y_axis:"You must include a Y-Axis for each dataset when no group is specified.",group_and_function:"You must include or omit both a group and a function.",smooth:"Smooth",straight:"Straight",step_line:"Step Line"},meter:{description:"Meter for tracking values",name:"Meter",arc:"Arc",stroke_width:"Stroke Width",select_max_value:"You must select a maximum value.",max_greater_than_zero:"The maximum must be greater than 0.",select_field:"You must select a field.",select_collection:"You must select a collection.",function:"Function",thin:"Thin",medium:"Medium",broad:"Broad"},piechart:{name:"Pie or Donut Chart",description:"Circular chart showing the ratios of groups on a column.",function:"Function",donut:"Donut",labels:"Show Labels",legend:"Show Legend",right:"Right",bottom:"Bottom",monochrome:"Monochrome",monochrome_color:"Monochrome Color"},variable:{name:"Global Variable",description:"Set a global value for use in other Panels' filters",variable_key:"Variable Key"}},triggers:{common:{response_body:"Response Body",response_body_all:"All Data",response_body_last:"Data of Last Operation"},event:{name:"Event Hook",description:"Triggers on platform or data events",action:"Action (Non-Blocking)",filter:"Filter (Blocking)"},webhook:{name:"Webhook",description:"Triggers on an incoming HTTP request",method:"Method",async:"Asynchronous"},operation:{name:"Another Flow",description:"Triggered by another Flow, for chaining",preview:"Triggered by an operation in a different Flow"},schedule:{name:"Schedule (CRON)",description:"Triggers at regular points in time",cron:"Interval"},manual:{name:"Manual",description:"Triggers on manual run within selected collection(s)",collection_and_item:"Collection & Item Pages",collection_only:"Collection Page Only",item_only:"Item Page Only"}},a_flow_uuid:"A Flow's Primary Key UUID...",any_string_or_json:"Any string or JSON...",item_payload_placeholder:"This is the JSON used to update the item's field values...",operation_variables_note:"You can access flow data with variables such as **{'{'}{'{'}$last{'}'}{'}'}**, **{'{'}{'{'}$trigger{'}'}{'}'}** and **{'{'}{'{'}$accountability{'}'}{'}'}**, or reference previous operations using **{'{'}{'{'}operation_key{'}'}{'}'}**.'",operations:{condition:{name:"Condition",description:"Route a flow based on If / Else logic"},exec:{name:"Run Script",description:"Execute arbitrary code to modify the payload",modules:"The following **Node modules** can be used:"},"item-create":{name:"Create Data",description:"Create items in the database",payload:"Payload",emit_events:"Emit Events"},"item-delete":{name:"Delete Data",description:"Delete items in the database",emit_events:"Emit Events",key:"IDs",query:"Query"},"item-read":{name:"Read Data",description:"Read items from the database",key:"IDs",query:"Query",emit_events:"Emit Events"},"item-update":{name:"Update Data",description:"Update items in the database",emit_events:"Emit Events",key:"IDs",payload:"Payload",query:"Query"},log:{name:"Log to Console",description:"Output something to the console",message:"Message",message_placeholder:"Enter a message to show in the console..."},mail:{name:"Send Email",description:"Send an email to one or more people",to:"To",to_placeholder:"Add e-mail addresses and press enter...",body:"Body"},notification:{name:"Send Notification",description:"Send an in-app notification to one or more users",recipient:"User",recipient_placeholder:"Add user UUID and press enter...",message:"Message"},request:{name:"Webhook / Request URL",description:"Make a request to a URL",url:"URL",url_placeholder:"https://example.com/example",method:"Method",data:"Data",headers:"Headers",header:"Header",header_placeholder:"Authorization...",value_placeholder:"Bearer eyJhbGciOi..."},sleep:{name:"Sleep",description:"Wait a given number of milliseconds",milliseconds:"Milliseconds"},transform:{name:"Transform Payload",description:"Alter the Flow's JSON payload"},trigger:{name:"Trigger Flow",description:"Pass this data to another flow",flows:"Flows",flow:"Flow",data:"Data"}}},iE=pe,TR=pe.identifier,DR=pe.avatar,IR=pe.application,MR=pe.default_provider,LR=pe.method,PR=pe.published,FR=pe.draft,RR=pe.archived,OR=pe.modules,$R=pe.module_bar,zR=pe.logs,jR=pe.reset_width,VR=pe.tile_size,NR=pe.edit_field,BR=pe.conditions,UR=pe.location,HR=pe.condition_rules,qR=pe.input,WR=pe.maps,GR=pe.switch_user,YR=pe.item_creation,XR=pe.item_revision,KR=pe.enter_a_name,ZR=pe.duplicate_field,JR=pe.half_width,QR=pe.full_width,eO=pe.group,tO=pe.export_items,nO=pe.and,iO=pe.or,rO=pe.init,aO=pe.dataset_too_large_currently_showing_n_items,oO=pe.modifier,sO=pe.custom,lO=pe.hook,cO=pe.fill_width,uO=pe.field_name_translations,dO=pe.enter_password_to_enable_tfa,fO=pe.add_field,pO=pe.role_name,hO=pe.branch,mO=pe.leaf,vO=pe.indeterminate,gO=pe.edit_collection,yO=pe.exclusive,_O=pe.children,bO=pe.db_only_click_to_configure,wO=pe.show_active_items,xO=pe.show_archived_items,kO=pe.show_all_items,SO=pe.edited,CO=pe.required,EO=pe.required_for_app_access,AO=pe.requires_value,TO=pe.create_preset,DO=pe.create_panel,IO=pe.create_role,MO=pe.create_user,LO=pe.message,PO=pe.delete_panel,FO=pe.create_webhook,RO=pe.create_translation_string,OO=pe.no_translation_string,$O=pe.no_translation_string_copy,zO=pe.translation_string_key_placeholder,jO=pe.translation_string_translations_placeholder,VO=pe.edit_translation_string,NO=pe.delete_translation_string_copy,BO=pe.invite_users,UO=pe.invite,HO=pe.email_already_invited,qO=pe.subject,WO=pe.inbox,GO=pe.emails,YO=pe.connection_excellent,XO=pe.connection_good,KO=pe.connection_fair,ZO=pe.connection_poor,JO=pe.primary,QO=pe.rename_folder,e$=pe.delete_folder,t$=pe.prefix,n$=pe.suffix,i$=pe.reset_bookmark,r$=pe.update_bookmark,a$=pe.delete_bookmark,o$=pe.delete_bookmark_copy,s$=pe.delete_personal_bookmark,l$=pe.delete_role_bookmark,c$=pe.delete_global_bookmark,u$=pe.logoutReason,d$=pe.public_label,f$=pe.public_description,p$=pe.admin_description,h$=pe.not_allowed,m$=pe.directus_version,v$=pe.node_version,g$=pe.node_uptime,y$=pe.os_type,_$=pe.os_version,b$=pe.os_uptime,w$=pe.os_totalmem,x$=pe.archive,k$=pe.archive_confirm,S$=pe.archive_confirm_count,C$=pe.reset_system_permissions_to,E$=pe.reset_system_permissions_copy,A$=pe.the_following_are_minimum_permissions,T$=pe.app_access_minimum,D$=pe.recommended_defaults,I$=pe.unarchive,M$=pe.unarchive_confirm,L$=pe.nested_files_folders_will_be_moved,P$=pe.validation_errors_notice,F$=pe.validationError,R$=pe.all_access,O$=pe.no_access,$$=pe.use_custom,z$=pe.nullable,j$=pe.allow_null_value,V$=pe.allow_multiple,N$=pe.allow_multiple_to_be_open,B$=pe.enter_value_to_replace_nulls,U$=pe.field_standard,H$=pe.field_presentation,q$=pe.field_file,W$=pe.field_files,G$=pe.field_m2o,Y$=pe.field_m2a,X$=pe.field_o2m,K$=pe.field_m2m,Z$=pe.field_translations,J$=pe.field_group,Q$=pe.item_permissions,ez=pe.field_permissions,tz=pe.field_validation,nz=pe.field_presets,iz=pe.permissions_for_role,rz=pe.fields_for_role,az=pe.validation_for_role,oz=pe.presets_for_role,sz=pe.presentation_and_aliases,lz=pe.revision_post_create,cz=pe.revision_post_update,uz=pe.changes_made,dz=pe.no_relational_data,fz=pe.junction_field_location,pz=pe.top,hz=pe.bottom,mz=pe.hide_field,vz=pe.hide_field_on_detail,gz=pe.show_field_on_detail,yz=pe.delete_field,_z=pe.fields_and_layout,bz=pe.field_create_success,wz=pe.field_update_success,xz=pe.duplicate_where_to,kz=pe.language,Sz=pe.language_placeholder,Cz=pe.aggregate_function,Ez=pe.aggregate_precision,Az=pe.group_aggregation,Tz=pe.group_precision,Dz=pe.global,Iz=pe.admins_have_all_permissions,Mz=pe.camera,Lz=pe.show_zero,Pz=pe.create_in_advanced_field_creation_mode,Fz=pe.continue_in_advanced_field_creation_mode,Rz=pe.validation,Oz=pe.sum,$z=pe.sum_distinct,zz=pe.avg,jz=pe.avg_distinct,Vz=pe.count,Nz=pe.count_distinct,Bz=pe.min,Uz=pe.max,Hz=pe.exposure,qz=pe.shutter,Wz=pe.iso,Gz=pe.focal_length,Yz=pe.schema_setup_key,Xz=pe.create_field,Kz=pe.creating_new_field,Zz=pe.field_in_collection,Jz=pe.reset_page_preferences,Qz=pe.hidden_field,ej=pe.hidden_on_detail,tj=pe.disabled_editing_value,nj=pe.key,ij=pe.alias,rj=pe.bigInteger,aj=pe.boolean,oj=pe.date,sj=pe.date_range,lj=pe.datetime,cj=pe.dateTime,uj=pe.precision,dj=pe.decimal,fj=pe.float,pj=pe.integer,hj=pe.json,mj=pe.xml,vj=pe.string,gj=pe.text,yj=pe.time,_j=pe.timestamp,bj=pe.uuid,wj=pe.hash,xj=pe.geometry,kj=pe.not_available_for_type,Sj=pe.create_translations,Cj=pe.auto_refresh,Ej=pe.refresh_interval,Aj=pe.no_refresh,Tj=pe.refresh_interval_seconds,Dj=pe.refresh_interval_minutes,Ij=pe.auto_generate,Mj=pe.this_will_auto_setup_fields_relations,Lj=pe.click_here,Pj=pe.to_manually_setup_translations,Fj=pe.click_to_manage_translated_fields,Rj=pe.fields_group,Oj=pe.no_collections_found,$j=pe.new_data_alert,zj=pe.search_collection,jj=pe.new_field,Vj=pe.new_collection,Nj=pe.add_m2o_to_collection,Bj=pe.add_o2m_to_collection,Uj=pe.add_m2m_to_collection,Hj=pe.choose_a_type,qj=pe.determined_by_relationship,Wj=pe.add_note,Gj=pe.add_link,Yj=pe.custom_link,Xj=pe.default_value,Kj=pe.standard_field,Zj=pe.single_file,Jj=pe.multiple_files,Qj=pe.m2o_relationship,eV=pe.o2m_relationship,tV=pe.m2m_relationship,nV=pe.m2a_relationship,iV=pe.invalid_item,rV=pe.next,aV=pe.field_name,oV=pe.translations,sV=pe.no_translations,lV=pe.left_to_right,cV=pe.right_to_left,uV=pe.note,dV=pe.enter_a_value,fV=pe.enter_a_placeholder,pV=pe.length,hV=pe.soft_length,mV=pe.precision_scale,vV=pe.readonly,gV=pe.unique,yV=pe.updated_on,_V=pe.updated_by,bV=pe.primary_key,wV=pe.foreign_key,xV=pe.finish_setup,kV=pe.dismiss,SV=pe.toggle_raw_editor,CV=pe.raw_editor_placeholder,EV=pe.raw_value,AV=pe.copy_raw_value,TV=pe.copy_raw_value_success,DV=pe.copy_raw_value_fail,IV=pe.paste_raw_value,MV=pe.paste_raw_value_success,LV=pe.paste_raw_value_fail,PV=pe.view_raw_value,FV=pe.edit_raw_value,RV=pe.enter_raw_value,OV=pe.clear_value,$V=pe.clear_changes,zV=pe.reset_to_default,jV=pe.undo_changes,VV=pe.notifications,NV=pe.show_all_activity,BV=pe.page_not_found,UV=pe.page_not_found_body,HV=pe.confirm_revert,qV=pe.confirm_revert_body,WV=pe.display,GV=pe.settings_update_success,YV=pe.title,XV=pe.revision_delta_created,KV=pe.revision_delta_created_externally,ZV=pe.revision_delta_updated,JV=pe.revision_delta_deleted,QV=pe.revision_delta_reverted,eN=pe.revision_delta_update_message,tN=pe.revision_delta_other,nN=pe.revision_delta_by,iN=pe.presentation_text_values_cannot_be_reimported,rN=pe.download_page_as_csv,aN=pe.private_user,oN=pe.creation_preview,sN=pe.revision_preview,lN=pe.updates_made,cN=pe.leave_comment,uN=pe.post_comment_success,dN=pe.post_comment_updated,fN=pe.item_create_success,pN=pe.item_update_success,hN=pe.item_delete_success,mN=pe.this_collection,vN=pe.related_collection,gN=pe.related_collections,yN=pe.translations_collection,_N=pe.languages_collection,bN=pe.import_data_input_placeholder,wN=pe.import_data_button,xN=pe.import_data_indeterminate,kN=pe.import_data_success,SN=pe.import_data_error,CN=pe.label_import,EN=pe.label_export,AN=pe.import_export,TN=pe.format,DN=pe.last_page,IN=pe.last_access,MN=pe.fill_template,LN=pe.a_unique_table_name,PN=pe.a_unique_column_name,FN=pe.enable_custom_values,RN=pe.submit,ON=pe.move_to_folder,$N=pe.move,zN=pe.system,jN=pe.add_field_related,VN=pe.interface_label,NN=pe.today,BN=pe.yesterday,UN=pe.delete_comment,HN=pe.delete_share,qN=pe.functions,WN=pe.minutes,GN=pe.hours,YN=pe.month,XN=pe.year,KN=pe.select_all,ZN=pe.months,JN=pe.drag_mode,QN=pe.cancel_crop,eB=pe.original,tB=pe.url,nB=pe.import_label,iB=pe.file_details,rB=pe.dimensions,aB=pe.size,oB=pe.created,sB=pe.modified,lB=pe.checksum,cB=pe.owner,uB=pe.edited_by,dB=pe.folder,fB=pe.zoom,pB=pe.download,hB=pe.open,mB=pe.open_in_new_window,vB=pe.open_folder,gB=pe.foreground_color,yB=pe.background_color,_B=pe.upload_from_device,bB=pe.choose_from_library,wB=pe.import_from_url,xB=pe.replace_from_device,kB=pe.replace_from_library,SB=pe.replace_from_url,CB=pe.no_file_selected,EB=pe.download_file,AB=pe.open_file_in_tab,TB=pe.start_export,DB=pe.not_available_for_local_downloads,IB=pe.exporting_all_items_in_collection,MB=pe.exporting_limited_items_in_collection,LB=pe.exporting_no_items_to_export,PB=pe.exporting_download_hint,FB=pe.exporting_batch_hint,RB=pe.exporting_batch_hint_forced,OB=pe.collection_key,$B=pe.name,zB=pe.primary_key_field,jB=pe.type,VB=pe.creating_new_collection,NB=pe.created_by,BB=pe.created_on,UB=pe.creating_collection_info,HB=pe.creating_collection_system,qB=pe.auto_increment_integer,WB=pe.auto_increment_big_integer,GB=pe.generated_uuid,YB=pe.manual_string,XB=pe.save_and_create_new,KB=pe.save_and_stay,ZB=pe.save_as_copy,JB=pe.add_existing,QB=pe.creating_items,eU=pe.enable_create_button,tU=pe.selecting_items,nU=pe.enable_select_button,iU=pe.allow_duplicates,rU=pe.comments,aU=pe.no_comments,oU=pe.click_to_expand,sU=pe.select_item,lU=pe.no_items,cU=pe.search_items,uU=pe.disabled,dU=pe.information,fU=pe.report_bug,pU=pe.request_feature,hU=pe.request_body,mU=pe.interface_not_found,vU=pe.operation_not_found,gU=pe.reset_interface,yU=pe.display_not_found,_U=pe.reset_display,bU=pe.item_count,wU=pe.no_items_copy,xU=pe.file_count,kU=pe.no_files_copy,SU=pe.user_count,CU=pe.no_users_copy,EU=pe.webhooks_count,AU=pe.no_webhooks_copy,TU=pe.no_notifications,DU=pe.no_notifications_copy,IU=pe.activity_log,MU=pe.all_items,LU=pe.any,PU=pe.csv,FU=pe.no_collections,RU=pe.create_collection,OU=pe.no_collections_copy_admin,$U=pe.no_collections_copy,zU=pe.relationship_not_setup,jU=pe.display_template_not_setup,VU=pe.collection_field_not_setup,NU=pe.select_a_collection,BU=pe.select_a_field,UU=pe.active,HU=pe.move_to,qU=pe.copy,WU=pe.copy_to,GU=pe.no_other_dashboards_copy,YU=pe.inactive,XU=pe.users,KU=pe.activity,ZU=pe.activity_item,JU=pe.action,QU=pe.ip_address,eH=pe.user_agent,tH=pe.origin,nH=pe.webhooks,iH=pe.decimals,rH=pe.value_decimals,aH=pe.min_value,oH=pe.max_value,sH=pe.automatic,lH=pe.field_width,cH=pe.add_filter,uH=pe.upper_limit,dH=pe.lower_limit,fH=pe.user_directory,pH=pe.documentation,hH=pe.sidebar,mH=pe.duration,vH=pe.charset,gH=pe.second,yH=pe.file_moved,_H=pe.collection_created,bH=pe.modified_on,wH=pe.card_size,xH=pe.sort_field,kH=pe.add_sort_field,SH=pe.sort,CH=pe.status,EH=pe.remove,AH=pe.toggle_manual_sorting,TH=pe.bookmark_doesnt_exist,DH=pe.bookmark_doesnt_exist_copy,IH=pe.bookmark_doesnt_exist_cta,MH=pe.select_an_item,LH=pe.edit,PH=pe.enabled,FH=pe.disable_tfa,RH=pe.tfa_scan_code,OH=pe.enter_otp_to_disable_tfa,$H=pe.create_account,zH=pe.account_created_successfully,jH=pe.auto_fill,VH=pe.corresponding_field,NH=pe.errors,BH=pe.security,UH=pe.value_hashed,HH=pe.bookmark_name,qH=pe.create_bookmark,WH=pe.edit_bookmark,GH=pe.edit_personal_bookmark,YH=pe.edit_role_bookmark,XH=pe.edit_global_bookmark,KH=pe.cannot_edit_role_bookmarks,ZH=pe.cannot_edit_global_bookmarks,JH=pe.bookmarks,QH=pe.presets,eq=pe.unexpected_error,tq=pe.unexpected_error_copy,nq=pe.copy_details,iq=pe.no_app_access,rq=pe.no_app_access_copy,aq=pe.password_reset_sent,oq=pe.password_reset_successful,sq=pe.back,lq=pe.filter,cq=pe.edit_image,uq=pe.editing_image,dq=pe.square,fq=pe.free,pq=pe.flip_horizontal,hq=pe.flip_vertical,mq=pe.aspect_ratio,vq=pe.rotate,gq=pe.all_users,yq=pe.delete_collection,_q=pe.update_collection_success,bq=pe.delete_collection_success,wq=pe.make_collection_visible,xq=pe.make_collection_hidden,kq=pe.make_folder_visible,Sq=pe.make_folder_hidden,Cq=pe.goto_collection_content,Eq=pe.start_end_of_count_items,Aq=pe.start_end_of_count_filtered_items,Tq=pe.one_item,Dq=pe.one_filtered_item,Iq=pe.delete_collection_are_you_sure,Mq=pe.delete_folder_are_you_sure,Lq=pe.collections_shown,Pq=pe.visible_collections,Fq=pe.hidden_collections,Rq=pe.show_hidden_collections,Oq=pe.hide_hidden_collections,$q=pe.show_header,zq=pe.unmanaged_collections,jq=pe.system_collections,Vq=pe.placeholder,Nq=pe.icon_left,Bq=pe.icon_right,Uq=pe.count_other_revisions,Hq=pe.font,qq=pe.sans_serif,Wq=pe.serif,Gq=pe.monospace,Yq=pe.divider,Xq=pe.color,Kq=pe.circle,Zq=pe.empty_item,Jq=pe.log_in_with,Qq=pe.conditional_styles,eW=pe.advanced_settings,tW=pe.advanced_filter,nW=pe.delete_advanced_filter,iW=pe.change_advanced_filter_operator,rW=pe.advanced,aW=pe.operators,oW=pe.custom_validation_message,sW=pe.loading,lW=pe.drop_to_upload,cW=pe.item,uW=pe.items,dW=pe.upload_file,fW=pe.upload_file_indeterminate,pW=pe.upload_file_success,hW=pe.upload_files_indeterminate,mW=pe.upload_files_success,vW=pe.upload_pending,gW=pe.drag_file_here,yW=pe.click_to_browse,_W=pe.interface_options,bW=pe.layout_options,wW=pe.rows,xW=pe.columns,kW=pe.collection_setup,SW=pe.optional_system_fields,CW=pe.value_unique,EW=pe.all_activity,AW=pe.create_item,TW=pe.display_template,DW=pe.language_display_template,IW=pe.translations_display_template,MW=pe.n_items_selected,LW=pe.per_page,PW=pe.all_files,FW=pe.my_files,RW=pe.recent_files,OW=pe.create_folder,$W=pe.edit_folder,zW=pe.folder_name,jW=pe.folder_key,VW=pe.add_file,NW=pe.replace_file,BW=pe.no_results,UW=pe.no_results_copy,HW=pe.clear_filters,qW=pe.saves_automatically,WW=pe.role,GW=pe.edit_role,YW=pe.rule,XW=pe.user,KW=pe.no_presets,ZW=pe.no_presets_copy,JW=pe.no_presets_cta,QW=pe.presets_only,eG=pe.create,tG=pe.on_create,nG=pe.on_update,iG=pe.read,rG=pe.update,aG=pe.select_fields,oG=pe.format_text,sG=pe.format_value,lG=pe.abbreviate_value,cG=pe.operator,uG=pe.bold,dG=pe.toggle,fG=pe.icon_on,pG=pe.icon_off,hG=pe.label,mG=pe.flows,vG=pe.flow,gG=pe.select_a_flow,yG=pe.run_flow_on_current,_G=pe.run_flow_on_current_edited_confirm,bG=pe.run_flow_on_selected,wG=pe.run_flow_success,xG=pe.trigger,kG=pe.trigger_options,SG=pe.view_trigger,CG=pe.create_trigger,EG=pe.trigger_setup,AG=pe.change_trigger,TG=pe.flow_delete_confirm,DG=pe.set_flow_active,IG=pe.set_flow_inactive,MG=pe.edit_flow,LG=pe.delete_flow,PG=pe.no_other_flows_copy,FG=pe.no_flows,RG=pe.no_flows_copy,OG=pe.create_flow,$G=pe.creating_new_flow,zG=pe.updating_flow,jG=pe.flow_setup,VG=pe.flow_name,NG=pe.flow_tracking,BG=pe.flow_tracking_all,UG=pe.flow_tracking_activity,HG=pe.flow_tracking_null,qG=pe.start_flow,WG=pe.stop_flow,GG=pe.create_operation,YG=pe.edit_operation,XG=pe.code,KG=pe.operation_options,ZG=pe.operation_name,JG=pe.operation_key,QG=pe.operation_key_unique_error,eY=pe.operation_handle_resolve,tY=pe.operation_handle_reject,nY=pe.insights,iY=pe.dashboard,rY=pe.panel,aY=pe.panel_options,oY=pe.panel_header,sY=pe.panel_name_placeholder,lY=pe.panel_note_placeholder,cY=pe.panel_delete_confirm,uY=pe.dashboard_delete_confirm,dY=pe.edit_dashboard,fY=pe.delete_dashboard,pY=pe.visible,hY=pe.prefix_placeholder,mY=pe.suffix_placeholder,vY=pe.decimals_placeholder,gY=pe.no_dashboards,yY=pe.no_dashboards_copy,_Y=pe.create_dashboard,bY=pe.dashboard_name,wY=pe.no_data,xY=pe.no_data_in_flow,kY=pe.accountability,SY=pe.payload,CY=pe.details,EY=pe.full_screen,AY=pe.full_text_search,TY=pe.edit_panels,DY=pe.center_align,IY=pe.left_align,MY=pe.right_align,LY=pe.fit_to_screen,PY=pe.image_url,FY=pe.alt_text,RY=pe.media,OY=pe.quality,$Y=pe.width,zY=pe.height,jY=pe.transformation_preset_key,VY=pe.source,NY=pe.url_placeholder,BY=pe.display_text,UY=pe.display_text_placeholder,HY=pe.interface_group_text_and_numbers,qY=pe.interface_group_selection,WY=pe.interface_group_relational,GY=pe.interface_group_presentation,YY=pe.interface_group_groups,XY=pe.interface_group_other,KY=pe.tooltip,ZY=pe.tooltip_placeholder,JY=pe.unlimited,QY=pe.open_link_in,eX=pe.new_tab,tX=pe.current_tab,nX=pe.save_image,iX=pe.save_media,rX=pe.wysiwyg_options,aX=pe.dropdown,oX=pe.choices,sX=pe.choices_option_configured_incorrectly,lX=pe.deselect,cX=pe.deselect_all,uX=pe.other,dX=pe.adding_user,fX=pe.unknown_user,pX=pe.creating_in,hX=pe.editing_in,mX=pe.viewing_in,vX=pe.creating_unit,gX=pe.editing_unit,yX=pe.editing_in_batch,_X=pe.no_options_available,bX=pe.settings_data_model,wX=pe.settings_permissions,xX=pe.settings_project,kX=pe.settings_webhooks,SX=pe.settings_flows,CX=pe.settings_presets,EX=pe.settings_translation_strings,AX=pe.one_or_more_options_are_missing,TX=pe.scope,DX=pe.actions,IX=pe.select,MX=pe.layout,LX=pe.tree_view,PX=pe.changes_are_permanent,FX=pe.preset_name_placeholder,RX=pe.preset_search_placeholder,OX=pe.editing_preset,$X=pe.layout_preview,zX=pe.layout_setup,pe=pe.data,jX=pe.unsaved_changes,VX=pe.unsaved_changes_copy,NX=pe.discard_changes,BX=pe.discard_all_changes,UX=pe.discard_changes_copy,HX=pe.show_x_axis,qX=pe.show_y_axis,WX=pe.keep_editing,GX=pe.page_help_collections_overview,YX=pe.page_help_collections_collection,XX=pe.page_help_collections_item,KX=pe.page_help_activity_collection,ZX=pe.page_help_docs_global,JX=pe.page_help_files_collection,QX=pe.page_help_files_item,eK=pe.page_help_settings_project,tK=pe.page_help_settings_datamodel_collections,nK=pe.page_help_settings_datamodel_fields,iK=pe.page_help_settings_roles_collection,rK=pe.page_help_settings_roles_item,aK=pe.page_help_settings_presets_collection,oK=pe.page_help_settings_presets_item,sK=pe.page_help_settings_webhooks_collection,lK=pe.page_help_settings_webhooks_item,cK=pe.page_help_settings_flows_collection,uK=pe.page_help_settings_flows_item,dK=pe.page_help_settings_translation_strings_collection,fK=pe.page_help_users_collection,pK=pe.page_help_users_item,hK=pe.page_help_insights_overview,mK=pe.page_help_insights_dashboard,vK=pe.activity_feed,gK=pe.add_new,yK=pe.create_new,_K=pe.all,bK=pe.none,wK=pe.no_layout_collection_selected_yet,xK=pe.batch_delete_confirm,kK=pe.cancel,SK=pe.no_upscale,CK=pe.collection,EK=pe.collections,AK=pe.content,TK=pe.singleton,DK=pe.singleton_label,IK=pe.system_fields_locked,MK=pe.directus_collection,LK=pe.fields,PK=pe.field_options,FK=pe.no_fields_in_collection,RK=pe.no_value,OK=pe.do_nothing,$K=pe.generate_and_save_uuid,zK=pe.save_current_user_id,jK=pe.save_current_user_role,VK=pe.save_current_datetime,NK=pe.always_open,BK=pe.start_open,UK=pe.start_collapsed,HK=pe.block,qK=pe.inline,WK=pe.comment,GK=pe.shares,YK=pe.unlimited_usage,XK=pe.uses_left,KK=pe.no_shares,ZK=pe.new_share,JK=pe.expired,QK=pe.upcoming,eZ=pe.share,tZ=pe.share_item,nZ=pe.shared_with_you,iZ=pe.shared_enter_passcode,rZ=pe.shared_leave_blank_for_unlimited,aZ=pe.shared_times_remaining,oZ=pe.shared_last_remaining,sZ=pe.shared_uses_left,lZ=pe.share_access_page,cZ=pe.share_access_not_found,uZ=pe.share_access_not_found_desc,dZ=pe.share_access_not_found_title,fZ=pe.share_copy_link,pZ=pe.share_copy_link_success,hZ=pe.share_copy_link_error,mZ=pe.share_send_link,vZ=pe.relational_triggers,gZ=pe.referential_action_field_label_m2o,yZ=pe.referential_action_field_label_o2m,_Z=pe.referential_action_no_action,bZ=pe.referential_action_cascade,wZ=pe.referential_action_set_null,xZ=pe.referential_action_set_default,kZ=pe.choose_action,SZ=pe.continue_label,CZ=pe.continue_as,EZ=pe.editing_role,AZ=pe.creating_webhook,TZ=pe.default_label,DZ=pe.delete_label,IZ=pe.delete_are_you_sure,MZ=pe.delete_field_are_you_sure,LZ=pe.description,PZ=pe.done,FZ=pe.duplicate,RZ=pe.limit,OZ=pe.email,$Z=pe.embed,zZ=pe.fallback_icon,jZ=pe.field,VZ=pe.file,NZ=pe.file_library,BZ=pe.forgot_password,UZ=pe.hidden,HZ=pe.hidden_in_group,qZ=pe.icon,WZ=pe.info,GZ=pe.normal,YZ=pe.success,XZ=pe.warning,KZ=pe.danger,ZZ=pe.colors,JZ=pe.junction_collection,QZ=pe.latency,eJ=pe.login,tJ=pe.my_activity,nJ=pe.not_authenticated,iJ=pe.authenticated,rJ=pe.options,aJ=pe.otp,oJ=pe.password,sJ=pe.permissions,lJ=pe.relationship,cJ=pe.reset,uJ=pe.reset_password,dJ=pe.revisions,fJ=pe.no_revisions,pJ=pe.no_logs,hJ=pe.revert,mJ=pe.save,vJ=pe.schema,gJ=pe.search,yJ=pe.select_existing,_J=pe.select_field_type,bJ=pe.select_interface,wJ=pe.settings,xJ=pe.sign_in,kJ=pe.sign_out,SJ=pe.sign_out_confirm,CJ=pe.something_went_wrong,EJ=pe.sort_direction,AJ=pe.export_location,TJ=pe.export_started,DJ=pe.export_started_copy,IJ=pe.sort_asc,MJ=pe.sort_desc,LJ=pe.template,PJ=pe.require_value_to_be_set,FJ=pe.translation,RJ=pe.translation_placeholder,OJ=pe.value,$J=pe.view_project,zJ=pe.weeks,jJ=pe.report_error,VJ=pe.start,NJ=pe.table,BJ=pe.list,UJ=pe.search_filter,HJ=pe.enable_search_filter,qJ=pe.item_link,WJ=pe.show_link_to_item,GJ=pe.navigate_to_item,YJ=pe.undo_removed_item,XJ=pe.remove_item,KJ=pe.delete_item,ZJ=pe.interfaces,JJ=pe.displays,QJ=pe.layouts,eQ=pe.panels,tQ=pe.triggers,nQ=pe.a_flow_uuid,iQ=pe.any_string_or_json,rQ=pe.item_payload_placeholder,aQ=pe.operation_variables_note,oQ=pe.operations,sQ=Object.freeze(Object.defineProperty({__proto__:null,default:iE,identifier:TR,avatar:DR,application:IR,default_provider:MR,method:LR,published:PR,draft:FR,archived:RR,modules:OR,module_bar:$R,logs:zR,reset_width:jR,tile_size:VR,edit_field:NR,conditions:BR,location:UR,condition_rules:HR,input:qR,maps:WR,switch_user:GR,item_creation:YR,item_revision:XR,enter_a_name:KR,duplicate_field:ZR,half_width:JR,full_width:QR,group:eO,export_items:tO,and:nO,or:iO,init:rO,dataset_too_large_currently_showing_n_items:aO,modifier:oO,custom:sO,hook:lO,fill_width:cO,field_name_translations:uO,enter_password_to_enable_tfa:dO,add_field:fO,role_name:pO,branch:hO,leaf:mO,indeterminate:vO,edit_collection:gO,exclusive:yO,children:_O,db_only_click_to_configure:bO,show_active_items:wO,show_archived_items:xO,show_all_items:kO,edited:SO,required:CO,required_for_app_access:EO,requires_value:AO,create_preset:TO,create_panel:DO,create_role:IO,create_user:MO,message:LO,delete_panel:PO,create_webhook:FO,create_translation_string:RO,no_translation_string:OO,no_translation_string_copy:$O,translation_string_key_placeholder:zO,translation_string_translations_placeholder:jO,edit_translation_string:VO,delete_translation_string_copy:NO,invite_users:BO,invite:UO,email_already_invited:HO,subject:qO,inbox:WO,emails:GO,connection_excellent:YO,connection_good:XO,connection_fair:KO,connection_poor:ZO,primary:JO,rename_folder:QO,delete_folder:e$,prefix:t$,suffix:n$,reset_bookmark:i$,update_bookmark:r$,delete_bookmark:a$,delete_bookmark_copy:o$,delete_personal_bookmark:s$,delete_role_bookmark:l$,delete_global_bookmark:c$,logoutReason:u$,public_label:d$,public_description:f$,admin_description:p$,not_allowed:h$,directus_version:m$,node_version:v$,node_uptime:g$,os_type:y$,os_version:_$,os_uptime:b$,os_totalmem:w$,archive:x$,archive_confirm:k$,archive_confirm_count:S$,reset_system_permissions_to:C$,reset_system_permissions_copy:E$,the_following_are_minimum_permissions:A$,app_access_minimum:T$,recommended_defaults:D$,unarchive:I$,unarchive_confirm:M$,nested_files_folders_will_be_moved:L$,validation_errors_notice:P$,validationError:F$,all_access:R$,no_access:O$,use_custom:$$,nullable:z$,allow_null_value:j$,allow_multiple:V$,allow_multiple_to_be_open:N$,enter_value_to_replace_nulls:B$,field_standard:U$,field_presentation:H$,field_file:q$,field_files:W$,field_m2o:G$,field_m2a:Y$,field_o2m:X$,field_m2m:K$,field_translations:Z$,field_group:J$,item_permissions:Q$,field_permissions:ez,field_validation:tz,field_presets:nz,permissions_for_role:iz,fields_for_role:rz,validation_for_role:az,presets_for_role:oz,presentation_and_aliases:sz,revision_post_create:lz,revision_post_update:cz,changes_made:uz,no_relational_data:dz,junction_field_location:fz,top:pz,bottom:hz,hide_field:mz,hide_field_on_detail:vz,show_field_on_detail:gz,delete_field:yz,fields_and_layout:_z,field_create_success:bz,field_update_success:wz,duplicate_where_to:xz,language:kz,language_placeholder:Sz,aggregate_function:Cz,aggregate_precision:Ez,group_aggregation:Az,group_precision:Tz,global:Dz,admins_have_all_permissions:Iz,camera:Mz,show_zero:Lz,create_in_advanced_field_creation_mode:Pz,continue_in_advanced_field_creation_mode:Fz,validation:Rz,sum:Oz,sum_distinct:$z,avg:zz,avg_distinct:jz,count:Vz,count_distinct:Nz,min:Bz,max:Uz,exposure:Hz,shutter:qz,iso:Wz,focal_length:Gz,schema_setup_key:Yz,create_field:Xz,creating_new_field:Kz,field_in_collection:Zz,reset_page_preferences:Jz,hidden_field:Qz,hidden_on_detail:ej,disabled_editing_value:tj,key:nj,alias:ij,bigInteger:rj,boolean:aj,date:oj,date_range:sj,datetime:lj,dateTime:cj,precision:uj,decimal:dj,float:fj,integer:pj,json:hj,xml:mj,string:vj,text:gj,time:yj,timestamp:_j,uuid:bj,hash:wj,geometry:xj,not_available_for_type:kj,create_translations:Sj,auto_refresh:Cj,refresh_interval:Ej,no_refresh:Aj,refresh_interval_seconds:Tj,refresh_interval_minutes:Dj,auto_generate:Ij,this_will_auto_setup_fields_relations:Mj,click_here:Lj,to_manually_setup_translations:Pj,click_to_manage_translated_fields:Fj,fields_group:Rj,no_collections_found:Oj,new_data_alert:$j,search_collection:zj,new_field:jj,new_collection:Vj,add_m2o_to_collection:Nj,add_o2m_to_collection:Bj,add_m2m_to_collection:Uj,choose_a_type:Hj,determined_by_relationship:qj,add_note:Wj,add_link:Gj,custom_link:Yj,default_value:Xj,standard_field:Kj,single_file:Zj,multiple_files:Jj,m2o_relationship:Qj,o2m_relationship:eV,m2m_relationship:tV,m2a_relationship:nV,invalid_item:iV,next:rV,field_name:aV,translations:oV,no_translations:sV,left_to_right:lV,right_to_left:cV,note:uV,enter_a_value:dV,enter_a_placeholder:fV,length:pV,soft_length:hV,precision_scale:mV,readonly:vV,unique:gV,updated_on:yV,updated_by:_V,primary_key:bV,foreign_key:wV,finish_setup:xV,dismiss:kV,toggle_raw_editor:SV,raw_editor_placeholder:CV,raw_value:EV,copy_raw_value:AV,copy_raw_value_success:TV,copy_raw_value_fail:DV,paste_raw_value:IV,paste_raw_value_success:MV,paste_raw_value_fail:LV,view_raw_value:PV,edit_raw_value:FV,enter_raw_value:RV,clear_value:OV,clear_changes:$V,reset_to_default:zV,undo_changes:jV,notifications:VV,show_all_activity:NV,page_not_found:BV,page_not_found_body:UV,confirm_revert:HV,confirm_revert_body:qV,display:WV,settings_update_success:GV,title:YV,revision_delta_created:XV,revision_delta_created_externally:KV,revision_delta_updated:ZV,revision_delta_deleted:JV,revision_delta_reverted:QV,revision_delta_update_message:eN,revision_delta_other:tN,revision_delta_by:nN,presentation_text_values_cannot_be_reimported:iN,download_page_as_csv:rN,private_user:aN,creation_preview:oN,revision_preview:sN,updates_made:lN,leave_comment:cN,post_comment_success:uN,post_comment_updated:dN,item_create_success:fN,item_update_success:pN,item_delete_success:hN,this_collection:mN,related_collection:vN,related_collections:gN,translations_collection:yN,languages_collection:_N,import_data_input_placeholder:bN,import_data_button:wN,import_data_indeterminate:xN,import_data_success:kN,import_data_error:SN,label_import:CN,label_export:EN,import_export:AN,format:TN,last_page:DN,last_access:IN,fill_template:MN,a_unique_table_name:LN,a_unique_column_name:PN,enable_custom_values:FN,submit:RN,move_to_folder:ON,move:$N,system:zN,add_field_related:jN,interface_label:VN,today:NN,yesterday:BN,delete_comment:UN,delete_share:HN,functions:qN,minutes:WN,hours:GN,month:YN,year:XN,select_all:KN,months:ZN,drag_mode:JN,cancel_crop:QN,original:eB,url:tB,import_label:nB,file_details:iB,dimensions:rB,size:aB,created:oB,modified:sB,checksum:lB,owner:cB,edited_by:uB,folder:dB,zoom:fB,download:pB,open:hB,open_in_new_window:mB,open_folder:vB,foreground_color:gB,background_color:yB,upload_from_device:_B,choose_from_library:bB,import_from_url:wB,replace_from_device:xB,replace_from_library:kB,replace_from_url:SB,no_file_selected:CB,download_file:EB,open_file_in_tab:AB,start_export:TB,not_available_for_local_downloads:DB,exporting_all_items_in_collection:IB,exporting_limited_items_in_collection:MB,exporting_no_items_to_export:LB,exporting_download_hint:PB,exporting_batch_hint:FB,exporting_batch_hint_forced:RB,collection_key:OB,name:$B,primary_key_field:zB,type:jB,creating_new_collection:VB,created_by:NB,created_on:BB,creating_collection_info:UB,creating_collection_system:HB,auto_increment_integer:qB,auto_increment_big_integer:WB,generated_uuid:GB,manual_string:YB,save_and_create_new:XB,save_and_stay:KB,save_as_copy:ZB,add_existing:JB,creating_items:QB,enable_create_button:eU,selecting_items:tU,enable_select_button:nU,allow_duplicates:iU,comments:rU,no_comments:aU,click_to_expand:oU,select_item:sU,no_items:lU,search_items:cU,disabled:uU,information:dU,report_bug:fU,request_feature:pU,request_body:hU,interface_not_found:mU,operation_not_found:vU,reset_interface:gU,display_not_found:yU,reset_display:_U,item_count:bU,no_items_copy:wU,file_count:xU,no_files_copy:kU,user_count:SU,no_users_copy:CU,webhooks_count:EU,no_webhooks_copy:AU,no_notifications:TU,no_notifications_copy:DU,activity_log:IU,all_items:MU,any:LU,csv:PU,no_collections:FU,create_collection:RU,no_collections_copy_admin:OU,no_collections_copy:$U,relationship_not_setup:zU,display_template_not_setup:jU,collection_field_not_setup:VU,select_a_collection:NU,select_a_field:BU,active:UU,move_to:HU,copy:qU,copy_to:WU,no_other_dashboards_copy:GU,inactive:YU,users:XU,activity:KU,activity_item:ZU,action:JU,ip_address:QU,user_agent:eH,origin:tH,webhooks:nH,decimals:iH,value_decimals:rH,min_value:aH,max_value:oH,automatic:sH,field_width:lH,add_filter:cH,upper_limit:uH,lower_limit:dH,user_directory:fH,documentation:pH,sidebar:hH,duration:mH,charset:vH,second:gH,file_moved:yH,collection_created:_H,modified_on:bH,card_size:wH,sort_field:xH,add_sort_field:kH,sort:SH,status:CH,remove:EH,toggle_manual_sorting:AH,bookmark_doesnt_exist:TH,bookmark_doesnt_exist_copy:DH,bookmark_doesnt_exist_cta:IH,select_an_item:MH,edit:LH,enabled:PH,disable_tfa:FH,tfa_scan_code:RH,enter_otp_to_disable_tfa:OH,create_account:$H,account_created_successfully:zH,auto_fill:jH,corresponding_field:VH,errors:NH,security:BH,value_hashed:UH,bookmark_name:HH,create_bookmark:qH,edit_bookmark:WH,edit_personal_bookmark:GH,edit_role_bookmark:YH,edit_global_bookmark:XH,cannot_edit_role_bookmarks:KH,cannot_edit_global_bookmarks:ZH,bookmarks:JH,presets:QH,unexpected_error:eq,unexpected_error_copy:tq,copy_details:nq,no_app_access:iq,no_app_access_copy:rq,password_reset_sent:aq,password_reset_successful:oq,back:sq,filter:lq,edit_image:cq,editing_image:uq,square:dq,free:fq,flip_horizontal:pq,flip_vertical:hq,aspect_ratio:mq,rotate:vq,all_users:gq,delete_collection:yq,update_collection_success:_q,delete_collection_success:bq,make_collection_visible:wq,make_collection_hidden:xq,make_folder_visible:kq,make_folder_hidden:Sq,goto_collection_content:Cq,start_end_of_count_items:Eq,start_end_of_count_filtered_items:Aq,one_item:Tq,one_filtered_item:Dq,delete_collection_are_you_sure:Iq,delete_folder_are_you_sure:Mq,collections_shown:Lq,visible_collections:Pq,hidden_collections:Fq,show_hidden_collections:Rq,hide_hidden_collections:Oq,show_header:$q,unmanaged_collections:zq,system_collections:jq,placeholder:Vq,icon_left:Nq,icon_right:Bq,count_other_revisions:Uq,font:Hq,sans_serif:qq,serif:Wq,monospace:Gq,divider:Yq,color:Xq,circle:Kq,empty_item:Zq,log_in_with:Jq,conditional_styles:Qq,advanced_settings:eW,advanced_filter:tW,delete_advanced_filter:nW,change_advanced_filter_operator:iW,advanced:rW,operators:aW,custom_validation_message:oW,loading:sW,drop_to_upload:lW,item:cW,items:uW,upload_file:dW,upload_file_indeterminate:fW,upload_file_success:pW,upload_files_indeterminate:hW,upload_files_success:mW,upload_pending:vW,drag_file_here:gW,click_to_browse:yW,interface_options:_W,layout_options:bW,rows:wW,columns:xW,collection_setup:kW,optional_system_fields:SW,value_unique:CW,all_activity:EW,create_item:AW,display_template:TW,language_display_template:DW,translations_display_template:IW,n_items_selected:MW,per_page:LW,all_files:PW,my_files:FW,recent_files:RW,create_folder:OW,edit_folder:$W,folder_name:zW,folder_key:jW,add_file:VW,replace_file:NW,no_results:BW,no_results_copy:UW,clear_filters:HW,saves_automatically:qW,role:WW,edit_role:GW,rule:YW,user:XW,no_presets:KW,no_presets_copy:ZW,no_presets_cta:JW,presets_only:QW,create:eG,on_create:tG,on_update:nG,read:iG,update:rG,select_fields:aG,format_text:oG,format_value:sG,abbreviate_value:lG,operator:cG,bold:uG,toggle:dG,icon_on:fG,icon_off:pG,label:hG,flows:mG,flow:vG,select_a_flow:gG,run_flow_on_current:yG,run_flow_on_current_edited_confirm:_G,run_flow_on_selected:bG,run_flow_success:wG,trigger:xG,trigger_options:kG,view_trigger:SG,create_trigger:CG,trigger_setup:EG,change_trigger:AG,flow_delete_confirm:TG,set_flow_active:DG,set_flow_inactive:IG,edit_flow:MG,delete_flow:LG,no_other_flows_copy:PG,no_flows:FG,no_flows_copy:RG,create_flow:OG,creating_new_flow:$G,updating_flow:zG,flow_setup:jG,flow_name:VG,flow_tracking:NG,flow_tracking_all:BG,flow_tracking_activity:UG,flow_tracking_null:HG,start_flow:qG,stop_flow:WG,create_operation:GG,edit_operation:YG,code:XG,operation_options:KG,operation_name:ZG,operation_key:JG,operation_key_unique_error:QG,operation_handle_resolve:eY,operation_handle_reject:tY,insights:nY,dashboard:iY,panel:rY,panel_options:aY,panel_header:oY,panel_name_placeholder:sY,panel_note_placeholder:lY,panel_delete_confirm:cY,dashboard_delete_confirm:uY,edit_dashboard:dY,delete_dashboard:fY,visible:pY,prefix_placeholder:hY,suffix_placeholder:mY,decimals_placeholder:vY,no_dashboards:gY,no_dashboards_copy:yY,create_dashboard:_Y,dashboard_name:bY,no_data:wY,no_data_in_flow:xY,accountability:kY,payload:SY,details:CY,full_screen:EY,full_text_search:AY,edit_panels:TY,center_align:DY,left_align:IY,right_align:MY,fit_to_screen:LY,image_url:PY,alt_text:FY,media:RY,quality:OY,width:$Y,height:zY,transformation_preset_key:jY,source:VY,url_placeholder:NY,display_text:BY,display_text_placeholder:UY,interface_group_text_and_numbers:HY,interface_group_selection:qY,interface_group_relational:WY,interface_group_presentation:GY,interface_group_groups:YY,interface_group_other:XY,tooltip:KY,tooltip_placeholder:ZY,unlimited:JY,open_link_in:QY,new_tab:eX,current_tab:tX,save_image:nX,save_media:iX,wysiwyg_options:rX,dropdown:aX,choices:oX,choices_option_configured_incorrectly:sX,deselect:lX,deselect_all:cX,other:uX,adding_user:dX,unknown_user:fX,creating_in:pX,editing_in:hX,viewing_in:mX,creating_unit:vX,editing_unit:gX,editing_in_batch:yX,no_options_available:_X,settings_data_model:bX,settings_permissions:wX,settings_project:xX,settings_webhooks:kX,settings_flows:SX,settings_presets:CX,settings_translation_strings:EX,one_or_more_options_are_missing:AX,scope:TX,actions:DX,select:IX,layout:MX,tree_view:LX,changes_are_permanent:PX,preset_name_placeholder:FX,preset_search_placeholder:RX,editing_preset:OX,layout_preview:$X,layout_setup:zX,get data(){return pe},unsaved_changes:jX,unsaved_changes_copy:VX,discard_changes:NX,discard_all_changes:BX,discard_changes_copy:UX,show_x_axis:HX,show_y_axis:qX,keep_editing:WX,page_help_collections_overview:GX,page_help_collections_collection:YX,page_help_collections_item:XX,page_help_activity_collection:KX,page_help_docs_global:ZX,page_help_files_collection:JX,page_help_files_item:QX,page_help_settings_project:eK,page_help_settings_datamodel_collections:tK,page_help_settings_datamodel_fields:nK,page_help_settings_roles_collection:iK,page_help_settings_roles_item:rK,page_help_settings_presets_collection:aK,page_help_settings_presets_item:oK,page_help_settings_webhooks_collection:sK,page_help_settings_webhooks_item:lK,page_help_settings_flows_collection:cK,page_help_settings_flows_item:uK,page_help_settings_translation_strings_collection:dK,page_help_users_collection:fK,page_help_users_item:pK,page_help_insights_overview:hK,page_help_insights_dashboard:mK,activity_feed:vK,add_new:gK,create_new:yK,all:_K,none:bK,no_layout_collection_selected_yet:wK,batch_delete_confirm:xK,cancel:kK,no_upscale:SK,collection:CK,collections:EK,content:AK,singleton:TK,singleton_label:DK,system_fields_locked:IK,directus_collection:MK,fields:LK,field_options:PK,no_fields_in_collection:FK,no_value:RK,do_nothing:OK,generate_and_save_uuid:$K,save_current_user_id:zK,save_current_user_role:jK,save_current_datetime:VK,always_open:NK,start_open:BK,start_collapsed:UK,block:HK,inline:qK,comment:WK,shares:GK,unlimited_usage:YK,uses_left:XK,no_shares:KK,new_share:ZK,expired:JK,upcoming:QK,share:eZ,share_item:tZ,shared_with_you:nZ,shared_enter_passcode:iZ,shared_leave_blank_for_unlimited:rZ,shared_times_remaining:aZ,shared_last_remaining:oZ,shared_uses_left:sZ,share_access_page:lZ,share_access_not_found:cZ,share_access_not_found_desc:uZ,share_access_not_found_title:dZ,share_copy_link:fZ,share_copy_link_success:pZ,share_copy_link_error:hZ,share_send_link:mZ,relational_triggers:vZ,referential_action_field_label_m2o:gZ,referential_action_field_label_o2m:yZ,referential_action_no_action:_Z,referential_action_cascade:bZ,referential_action_set_null:wZ,referential_action_set_default:xZ,choose_action:kZ,continue_label:SZ,continue_as:CZ,editing_role:EZ,creating_webhook:AZ,default_label:TZ,delete_label:DZ,delete_are_you_sure:IZ,delete_field_are_you_sure:MZ,description:LZ,done:PZ,duplicate:FZ,limit:RZ,email:OZ,embed:$Z,fallback_icon:zZ,field:jZ,file:VZ,file_library:NZ,forgot_password:BZ,hidden:UZ,hidden_in_group:HZ,icon:qZ,info:WZ,normal:GZ,success:YZ,warning:XZ,danger:KZ,colors:ZZ,junction_collection:JZ,latency:QZ,login:eJ,my_activity:tJ,not_authenticated:nJ,authenticated:iJ,options:rJ,otp:aJ,password:oJ,permissions:sJ,relationship:lJ,reset:cJ,reset_password:uJ,revisions:dJ,no_revisions:fJ,no_logs:pJ,revert:hJ,save:mJ,schema:vJ,search:gJ,select_existing:yJ,select_field_type:_J,select_interface:bJ,settings:wJ,sign_in:xJ,sign_out:kJ,sign_out_confirm:SJ,something_went_wrong:CJ,sort_direction:EJ,export_location:AJ,export_started:TJ,export_started_copy:DJ,sort_asc:IJ,sort_desc:MJ,template:LJ,require_value_to_be_set:PJ,translation:FJ,translation_placeholder:RJ,value:OJ,view_project:$J,weeks:zJ,report_error:jJ,start:VJ,table:NJ,list:BJ,search_filter:UJ,enable_search_filter:HJ,item_link:qJ,show_link_to_item:WJ,navigate_to_item:GJ,undo_removed_item:YJ,remove_item:XJ,delete_item:KJ,interfaces:ZJ,displays:JJ,layouts:QJ,panels:eQ,triggers:tQ,a_flow_uuid:nQ,any_string_or_json:iQ,item_payload_placeholder:rQ,operation_variables_note:aQ,operations:oQ},Symbol.toStringTag,{value:"Module"}));const mr=iR({legacy:!1,locale:"en-US",fallbackLocale:"en-US",messages:{"en-US":iE},silentTranslationWarn:!0,datetimeFormats:ER,numberFormats:AR}),ww=["en-US"];function c1(e){var o,r,s,l,f;const t=mr.global.t("unexpected_error");let n=e;if(typeof e=="object"&&(n=(f=(l=(s=(r=(o=e==null?void 0:e.response)==null?void 0:o.data)==null?void 0:r.errors)==null?void 0:s[0])==null?void 0:l.extensions)==null?void 0:f.code),!e||!n===void 0)return t;const i=`errors.${n}`;return mr.global.te(i)===!1?t:mr.global.t(i)}function y3(e,t=0,n=["K","M","B","T"]){const i=e<0;e=Math.abs(e);let a=String(e);if(e>=1e3){const o=Math.pow(10,t);for(let r=n.length-1;r>=0;r--){const s=Math.pow(10,(r+1)*3);if(s<=e){e=Math.round(e*o/s)/o,e===1e3&&r<n.length-1&&(e=1,r++),a=e.toFixed(t)+n[r];break}}}return i&&(a=`-${a}`),a}function Lr(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ar(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Nr(e){Ar(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function y4(e,t){Ar(2,arguments);var n=Nr(e),i=Lr(t);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function _4(e,t){Ar(2,arguments);var n=Nr(e),i=Lr(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var a=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+i+1,0);var r=o.getDate();return a>=r?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}function x8(e,t){if(Ar(2,arguments),!t||typeof t!="object")return new Date(NaN);var n=t.years?Lr(t.years):0,i=t.months?Lr(t.months):0,a=t.weeks?Lr(t.weeks):0,o=t.days?Lr(t.days):0,r=t.hours?Lr(t.hours):0,s=t.minutes?Lr(t.minutes):0,l=t.seconds?Lr(t.seconds):0,f=Nr(e),p=i||n?_4(f,i+n*12):f,h=o||a?y4(p,o+a*7):p,v=s+r*60,_=l+v*60,y=_*1e3,k=new Date(h.getTime()+y);return k}function Z0(e,t){Ar(2,arguments);var n=Nr(e).getTime(),i=Lr(t);return new Date(n+i)}var lQ=36e5;function rE(e,t){Ar(2,arguments);var n=Lr(t);return Z0(e,n*lQ)}function Ev(e,t){Ar(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.weekStartsOn,o=a==null?0:Lr(a),r=n.weekStartsOn==null?o:Lr(n.weekStartsOn);if(!(r>=0&&r<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Nr(e),l=s.getDay(),f=(l<r?7:0)+l-r;return s.setDate(s.getDate()-f),s.setHours(0,0,0,0),s}function Av(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function xw(e){Ar(1,arguments);var t=Nr(e);return t.setHours(0,0,0,0),t}var cQ=6e4;function aE(e,t){Ar(2,arguments);var n=Lr(t);return Z0(e,n*cQ)}function oE(e,t){Ar(2,arguments);var n=Lr(t);return Z0(e,n*1e3)}function ob(e,t){Ar(2,arguments);var n=Lr(t),i=n*7;return y4(e,i)}function sE(e,t){Ar(2,arguments);var n=Lr(t);return _4(e,n*12)}function s0(e,t){Ar(2,arguments);var n=Nr(e),i=Nr(t),a=n.getTime()-i.getTime();return a<0?-1:a>0?1:a}function uQ(e){return Ar(1,arguments),e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function b4(e){if(Ar(1,arguments),!uQ(e)&&typeof e!="number")return!1;var t=Nr(e);return!isNaN(Number(t))}function lE(e,t){Ar(2,arguments);var n=xw(e),i=xw(t);return n.getTime()===i.getTime()}function dQ(e,t){Ar(2,arguments);var n=Nr(e),i=Nr(t),a=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return a*12+o}function fQ(e,t){return Ar(2,arguments),Nr(e).getTime()-Nr(t).getTime()}var kw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},pQ="trunc";function hQ(e){return e?kw[e]:kw[pQ]}function mQ(e){Ar(1,arguments);var t=Nr(e);return t.setHours(23,59,59,999),t}function vQ(e){Ar(1,arguments);var t=Nr(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function gQ(e){Ar(1,arguments);var t=Nr(e);return mQ(t).getTime()===vQ(t).getTime()}function yQ(e,t){Ar(2,arguments);var n=Nr(e),i=Nr(t),a=s0(n,i),o=Math.abs(dQ(n,i)),r;if(o<1)r=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-a*o);var s=s0(n,i)===-a;gQ(Nr(e))&&o===1&&s0(e,i)===1&&(s=!1),r=a*(o-Number(s))}return r===0?0:r}function _Q(e,t,n){Ar(2,arguments);var i=fQ(e,t)/1e3;return hQ(n==null?void 0:n.roundingMethod)(i)}var bQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wQ=function(e,t,n){var i,a=bQ[e];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},xQ=wQ;function W_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,i=e.formats[n]||e.formats[e.defaultWidth];return i}}var kQ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},SQ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},CQ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},EQ={date:W_({formats:kQ,defaultWidth:"full"}),time:W_({formats:SQ,defaultWidth:"full"}),dateTime:W_({formats:CQ,defaultWidth:"full"})},AQ=EQ,TQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},DQ=function(e,t,n,i){return TQ[e]},IQ=DQ;function F2(e){return function(t,n){var i=n||{},a=i.context?String(i.context):"standalone",o;if(a==="formatting"&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,s=i.width?String(i.width):r;o=e.formattingValues[s]||e.formattingValues[r]}else{var l=e.defaultWidth,f=i.width?String(i.width):e.defaultWidth;o=e.values[f]||e.values[l]}var p=e.argumentCallback?e.argumentCallback(t):t;return o[p]}}var MQ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},LQ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},PQ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},FQ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},RQ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},OQ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$Q=function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},zQ={ordinalNumber:$Q,era:F2({values:MQ,defaultWidth:"wide"}),quarter:F2({values:LQ,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:F2({values:PQ,defaultWidth:"wide"}),day:F2({values:FQ,defaultWidth:"wide"}),dayPeriod:F2({values:RQ,defaultWidth:"wide",formattingValues:OQ,defaultFormattingWidth:"wide"})},jQ=zQ;function R2(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var r=o[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?NQ(s,function(h){return h.test(r)}):VQ(s,function(h){return h.test(r)}),f;f=e.valueCallback?e.valueCallback(l):l,f=n.valueCallback?n.valueCallback(f):f;var p=t.slice(r.length);return{value:f,rest:p}}}function VQ(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function NQ(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function BQ(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var a=i[0],o=t.match(e.parsePattern);if(!o)return null;var r=e.valueCallback?e.valueCallback(o[0]):o[0];r=n.valueCallback?n.valueCallback(r):r;var s=t.slice(a.length);return{value:r,rest:s}}}var UQ=/^(\d+)(th|st|nd|rd)?/i,HQ=/\d+/i,qQ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},WQ={any:[/^b/i,/^(a|c)/i]},GQ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YQ={any:[/1/i,/2/i,/3/i,/4/i]},XQ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},KQ={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ZQ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},JQ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},QQ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},eee={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},tee={ordinalNumber:BQ({matchPattern:UQ,parsePattern:HQ,valueCallback:function(e){return parseInt(e,10)}}),era:R2({matchPatterns:qQ,defaultMatchWidth:"wide",parsePatterns:WQ,defaultParseWidth:"any"}),quarter:R2({matchPatterns:GQ,defaultMatchWidth:"wide",parsePatterns:YQ,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:R2({matchPatterns:XQ,defaultMatchWidth:"wide",parsePatterns:KQ,defaultParseWidth:"any"}),day:R2({matchPatterns:ZQ,defaultMatchWidth:"wide",parsePatterns:JQ,defaultParseWidth:"any"}),dayPeriod:R2({matchPatterns:QQ,defaultMatchWidth:"any",parsePatterns:eee,defaultParseWidth:"any"})},nee=tee,iee={code:"en-US",formatDistance:xQ,formatLong:AQ,formatRelative:IQ,localize:jQ,match:nee,options:{weekStartsOn:0,firstWeekContainsDate:1}},w4=iee;function sb(e,t){Ar(2,arguments);var n=Lr(t);return Z0(e,-n)}function Ma(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}var ree={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Ma(t==="yy"?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):Ma(n+1,2)},d:function(e,t){return Ma(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return Ma(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ma(e.getUTCHours(),t.length)},m:function(e,t){return Ma(e.getUTCMinutes(),t.length)},s:function(e,t){return Ma(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,n-3));return Ma(a,t.length)}},Ip=ree,aee=864e5;function oee(e){Ar(1,arguments);var t=Nr(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),a=n-i;return Math.floor(a/aee)+1}function Tv(e){Ar(1,arguments);var t=1,n=Nr(e),i=n.getUTCDay(),a=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function cE(e){Ar(1,arguments);var t=Nr(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var a=Tv(i),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var r=Tv(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=r.getTime()?n:n-1}function see(e){Ar(1,arguments);var t=cE(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var i=Tv(n);return i}var lee=6048e5;function uE(e){Ar(1,arguments);var t=Nr(e),n=Tv(t).getTime()-see(t).getTime();return Math.round(n/lee)+1}function jh(e,t){Ar(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.weekStartsOn,o=a==null?0:Lr(a),r=n.weekStartsOn==null?o:Lr(n.weekStartsOn);if(!(r>=0&&r<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Nr(e),l=s.getUTCDay(),f=(l<r?7:0)+l-r;return s.setUTCDate(s.getUTCDate()-f),s.setUTCHours(0,0,0,0),s}function lb(e,t){Ar(1,arguments);var n=Nr(e,t),i=n.getUTCFullYear(),a=t||{},o=a.locale,r=o&&o.options&&o.options.firstWeekContainsDate,s=r==null?1:Lr(r),l=a.firstWeekContainsDate==null?s:Lr(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(i+1,0,l),f.setUTCHours(0,0,0,0);var p=jh(f,t),h=new Date(0);h.setUTCFullYear(i,0,l),h.setUTCHours(0,0,0,0);var v=jh(h,t);return n.getTime()>=p.getTime()?i+1:n.getTime()>=v.getTime()?i:i-1}function cee(e,t){Ar(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.firstWeekContainsDate,o=a==null?1:Lr(a),r=n.firstWeekContainsDate==null?o:Lr(n.firstWeekContainsDate),s=lb(e,t),l=new Date(0);l.setUTCFullYear(s,0,r),l.setUTCHours(0,0,0,0);var f=jh(l,t);return f}var uee=6048e5;function dE(e,t){Ar(1,arguments);var n=Nr(e),i=jh(n,t).getTime()-cee(n,t).getTime();return Math.round(i/uee)+1}var Um={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dee={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return Ip.y(e,t)},Y:function(e,t,n,i){var a=lb(e,i),o=a>0?a:1-a;if(t==="YY"){var r=o%100;return Ma(r,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ma(o,t.length)},R:function(e,t){var n=cE(e);return Ma(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Ma(n,t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Ma(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Ma(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return Ip.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return Ma(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var a=dE(e,i);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):Ma(a,t.length)},I:function(e,t,n){var i=uE(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):Ma(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ip.d(e,t)},D:function(e,t,n){var i=oee(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Ma(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ma(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ma(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return Ma(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i=e.getUTCHours(),a;switch(i===12?a=Um.noon:i===0?a=Um.midnight:a=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i=e.getUTCHours(),a;switch(i>=17?a=Um.evening:i>=12?a=Um.afternoon:i>=4?a=Um.morning:a=Um.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Ip.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ip.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Ma(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):Ma(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ip.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ip.s(e,t)},S:function(e,t){return Ip.S(e,t)},X:function(e,t,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Cw(o);case"XXXX":case"XX":return Oh(o);case"XXXXX":case"XXX":default:return Oh(o,":")}},x:function(e,t,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(t){case"x":return Cw(o);case"xxxx":case"xx":return Oh(o);case"xxxxx":case"xxx":default:return Oh(o,":")}},O:function(e,t,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Sw(o,":");case"OOOO":default:return"GMT"+Oh(o,":")}},z:function(e,t,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Sw(o,":");case"zzzz":default:return"GMT"+Oh(o,":")}},t:function(e,t,n,i){var a=i._originalDate||e,o=Math.floor(a.getTime()/1e3);return Ma(o,t.length)},T:function(e,t,n,i){var a=i._originalDate||e,o=a.getTime();return Ma(o,t.length)}};function Sw(e,t){var n=e>0?"-":"+",i=Math.abs(e),a=Math.floor(i/60),o=i%60;if(o===0)return n+String(a);var r=t||"";return n+String(a)+r+Ma(o,2)}function Cw(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Ma(Math.abs(e)/60,2)}return Oh(e,t)}function Oh(e,t){var n=t||"",i=e>0?"-":"+",a=Math.abs(e),o=Ma(Math.floor(a/60),2),r=Ma(a%60,2);return i+o+n+r}var fee=dee;function Ew(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function fE(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function pee(e,t){var n=e.match(/(P+)(p+)?/),i=n[1],a=n[2];if(!a)return Ew(e,t);var o;switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ew(i,t)).replace("{{time}}",fE(a,t))}var hee={p:fE,P:pee},pE=hee,mee=["D","DD"],vee=["YY","YYYY"];function hE(e){return mee.indexOf(e)!==-1}function mE(e){return vee.indexOf(e)!==-1}function _3(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var gee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yee=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_ee=/^'([^]*?)'?$/,bee=/''/g,wee=/[a-zA-Z]/;function K1(e,t,n){Ar(2,arguments);var i=String(t),a=n||{},o=a.locale||w4,r=o.options&&o.options.firstWeekContainsDate,s=r==null?1:Lr(r),l=a.firstWeekContainsDate==null?s:Lr(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=o.options&&o.options.weekStartsOn,p=f==null?0:Lr(f),h=a.weekStartsOn==null?p:Lr(a.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var v=Nr(e);if(!b4(v))throw new RangeError("Invalid time value");var _=Av(v),y=sb(v,_),k={firstWeekContainsDate:l,weekStartsOn:h,locale:o,_originalDate:v},w=i.match(yee).map(function(D){var A=D[0];if(A==="p"||A==="P"){var L=pE[A];return L(D,o.formatLong,k)}return D}).join("").match(gee).map(function(D){if(D==="''")return"'";var A=D[0];if(A==="'")return xee(D);var L=fee[A];if(L)return!a.useAdditionalWeekYearTokens&&mE(D)&&_3(D,t,e),!a.useAdditionalDayOfYearTokens&&hE(D)&&_3(D,t,e),L(y,D,o.localize,k);if(A.match(wee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return D}).join("");return w}function xee(e){return e.match(_ee)[1].replace(bee,"'")}function vE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");t=t||{};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function gE(e){return vE({},e)}var Aw=1440,kee=2520,G_=43200,See=86400;function Cee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ar(2,arguments);var i=n.locale||w4;if(!i.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=s0(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var o=gE(n);o.addSuffix=Boolean(n.addSuffix),o.comparison=a;var r,s;a>0?(r=Nr(t),s=Nr(e)):(r=Nr(e),s=Nr(t));var l=_Q(s,r),f=(Av(s)-Av(r))/1e3,p=Math.round((l-f)/60),h;if(p<2)return n.includeSeconds?l<5?i.formatDistance("lessThanXSeconds",5,o):l<10?i.formatDistance("lessThanXSeconds",10,o):l<20?i.formatDistance("lessThanXSeconds",20,o):l<40?i.formatDistance("halfAMinute",null,o):l<60?i.formatDistance("lessThanXMinutes",1,o):i.formatDistance("xMinutes",1,o):p===0?i.formatDistance("lessThanXMinutes",1,o):i.formatDistance("xMinutes",p,o);if(p<45)return i.formatDistance("xMinutes",p,o);if(p<90)return i.formatDistance("aboutXHours",1,o);if(p<Aw){var v=Math.round(p/60);return i.formatDistance("aboutXHours",v,o)}else{if(p<kee)return i.formatDistance("xDays",1,o);if(p<G_){var _=Math.round(p/Aw);return i.formatDistance("xDays",_,o)}else if(p<See)return h=Math.round(p/G_),i.formatDistance("aboutXMonths",h,o)}if(h=yQ(s,r),h<12){var y=Math.round(p/G_);return i.formatDistance("xMonths",y,o)}else{var k=h%12,w=Math.floor(h/12);return k<3?i.formatDistance("aboutXYears",w,o):k<9?i.formatDistance("overXYears",w,o):i.formatDistance("almostXYears",w+1,o)}}var Tw=1e3*60,b3=60*24,Dw=b3*30,Iw=b3*365;function Eee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ar(2,arguments);var i=n.locale||w4;if(!i.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var a=s0(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var o=gE(n);o.addSuffix=Boolean(n.addSuffix),o.comparison=a;var r,s;a>0?(r=Nr(t),s=Nr(e)):(r=Nr(e),s=Nr(t));var l=n.roundingMethod==null?"round":String(n.roundingMethod),f;if(l==="floor")f=Math.floor;else if(l==="ceil")f=Math.ceil;else if(l==="round")f=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=s.getTime()-r.getTime(),h=p/Tw,v=Av(s)-Av(r),_=(p-v)/Tw,y;if(n.unit==null?h<1?y="second":h<60?y="minute":h<b3?y="hour":_<Dw?y="day":_<Iw?y="month":y="year":y=String(n.unit),y==="second"){var k=f(p/1e3);return i.formatDistance("xSeconds",k,o)}else if(y==="minute"){var w=f(h);return i.formatDistance("xMinutes",w,o)}else if(y==="hour"){var D=f(h/60);return i.formatDistance("xHours",D,o)}else if(y==="day"){var A=f(_/b3);return i.formatDistance("xDays",A,o)}else if(y==="month"){var L=f(_/Dw);return L===12&&n.unit!=="month"?i.formatDistance("xYears",1,o):i.formatDistance("xMonths",L,o)}else if(y==="year"){var T=f(_/Iw);return i.formatDistance("xYears",T,o)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function J2(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var n=Nr(e);if(!b4(n))throw new RangeError("Invalid time value");var i=t||{},a=i.format==null?"extended":String(i.format),o=i.representation==null?"complete":String(i.representation);if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var r="",s="",l=a==="extended"?"-":"",f=a==="extended"?":":"";if(o!=="time"){var p=Ma(n.getDate(),2),h=Ma(n.getMonth()+1,2),v=Ma(n.getFullYear(),4);r="".concat(v).concat(l).concat(h).concat(l).concat(p)}if(o!=="date"){var _=n.getTimezoneOffset();if(_!==0){var y=Math.abs(_),k=Ma(Math.floor(y/60),2),w=Ma(y%60,2),D=_<0?"+":"-";s="".concat(D).concat(k,":").concat(w)}else s="Z";var A=Ma(n.getHours(),2),L=Ma(n.getMinutes(),2),T=Ma(n.getSeconds(),2),z=r===""?"":"T",B=[A,L,T].join(f);r="".concat(r).concat(z).concat(B).concat(s)}return r}function Aee(e){Ar(1,arguments);var t=Nr(e),n=t.getDate();return n}function Tee(e){Ar(1,arguments);var t=Nr(e),n=t.getDay();return n}function Dee(e){Ar(1,arguments);var t=Nr(e),n=t.getFullYear(),i=t.getMonth(),a=new Date(0);return a.setFullYear(n,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Iee(e,t){var n,i;Ar(1,arguments);var a=Nr(e),o=a.getFullYear(),r=t==null||(n=t.locale)===null||n===void 0||(i=n.options)===null||i===void 0?void 0:i.firstWeekContainsDate,s=r==null?1:Lr(r),l=(t==null?void 0:t.firstWeekContainsDate)==null?s:Lr(t.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setFullYear(o+1,0,l),f.setHours(0,0,0,0);var p=Ev(f,t),h=new Date(0);h.setFullYear(o,0,l),h.setHours(0,0,0,0);var v=Ev(h,t);return a.getTime()>=p.getTime()?o+1:a.getTime()>=v.getTime()?o:o-1}function Mee(e,t){Ar(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.firstWeekContainsDate,o=a==null?1:Lr(a),r=n.firstWeekContainsDate==null?o:Lr(n.firstWeekContainsDate),s=Iee(e,t),l=new Date(0);l.setFullYear(s,0,r),l.setHours(0,0,0,0);var f=Ev(l,t);return f}var Lee=6048e5;function Pee(e,t){Ar(1,arguments);var n=Nr(e),i=Ev(n,t).getTime()-Mee(n,t).getTime();return Math.round(i/Lee)+1}function cb(e,t){Ar(2,arguments);var n=Lr(t);return y4(e,-n)}function Fee(e,t){Ar(2,arguments);var n=Lr(t);return _4(e,-n)}function Y_(e,t,n){Ar(2,arguments);var i=n||{},a=i.locale,o=a&&a.options&&a.options.weekStartsOn,r=o==null?0:Lr(o),s=i.weekStartsOn==null?r:Lr(i.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Nr(e),f=Lr(t),p=l.getUTCDay(),h=f%7,v=(h+7)%7,_=(v<s?7:0)+f-p;return l.setUTCDate(l.getUTCDate()+_),l}function Ree(e,t){Ar(2,arguments);var n=Lr(t);n%7===0&&(n=n-7);var i=1,a=Nr(e),o=a.getUTCDay(),r=n%7,s=(r+7)%7,l=(s<i?7:0)+n-o;return a.setUTCDate(a.getUTCDate()+l),a}function Oee(e,t){Ar(2,arguments);var n=Nr(e),i=Lr(t),a=uE(n)-i;return n.setUTCDate(n.getUTCDate()-a*7),n}function $ee(e,t,n){Ar(2,arguments);var i=Nr(e),a=Lr(t),o=dE(i,n)-a;return i.setUTCDate(i.getUTCDate()-o*7),i}var zee=36e5,jee=6e4,Vee=1e3,El={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},t1={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function zs(e,t,n){var i=t.match(e);if(!i)return null;var a=parseInt(i[0],10);return{value:n?n(a):a,rest:t.slice(i[0].length)}}function n1(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var i=n[1]==="+"?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,r=n[5]?parseInt(n[5],10):0;return{value:i*(a*zee+o*jee+r*Vee),rest:t.slice(n[0].length)}}function Mw(e,t){return zs(El.anyDigitsSigned,e,t)}function el(e,t,n){switch(e){case 1:return zs(El.singleDigit,t,n);case 2:return zs(El.twoDigits,t,n);case 3:return zs(El.threeDigits,t,n);case 4:return zs(El.fourDigits,t,n);default:return zs(new RegExp("^\\d{1,"+e+"}"),t,n)}}function ly(e,t,n){switch(e){case 1:return zs(El.singleDigitSigned,t,n);case 2:return zs(El.twoDigitsSigned,t,n);case 3:return zs(El.threeDigitsSigned,t,n);case 4:return zs(El.fourDigitsSigned,t,n);default:return zs(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function X_(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Lw(e,t){var n=t>0,i=n?t:1-t,a;if(i<=50)a=e||100;else{var o=i+50,r=Math.floor(o/100)*100,s=e>=o%100;a=e+r-(s?100:0)}return n?a:1-a}var Nee=[31,28,31,30,31,30,31,31,30,31,30,31],Bee=[31,29,31,30,31,30,31,31,30,31,30,31];function Pw(e){return e%400===0||e%4===0&&e%100!==0}var Uee={G:{priority:140,parse:function(e,t,n,i){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,i){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,i){var a=function(o){return{year:o,isTwoDigitYear:t==="yy"}};switch(t){case"y":return el(4,e,a);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return el(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,i){var a=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Lw(n.year,a);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var r=!("era"in t)||t.era===1?n.year:1-n.year;return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,i){var a=function(o){return{year:o,isTwoDigitYear:t==="YY"}};switch(t){case"Y":return el(4,e,a);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return el(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,i){var a=lb(e,i);if(n.isTwoDigitYear){var o=Lw(n.year,a);return e.setUTCFullYear(o,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),jh(e,i)}var r=!("era"in t)||t.era===1?n.year:1-n.year;return e.setUTCFullYear(r,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),jh(e,i)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,i){return ly(t==="R"?4:t.length,e)},set:function(e,t,n,i){var a=new Date(0);return a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0),Tv(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,i){return ly(t==="u"?4:t.length,e)},set:function(e,t,n,i){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,i){switch(t){case"Q":case"QQ":return el(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,i){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,i){switch(t){case"q":case"qq":return el(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,i){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,i){var a=function(o){return o-1};switch(t){case"M":return zs(El.month,e,a);case"MM":return el(2,e,a);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,i){var a=function(o){return o-1};switch(t){case"L":return zs(El.month,e,a);case"LL":return el(2,e,a);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,i){switch(t){case"w":return zs(El.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,i){return jh($ee(e,n,i),i)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,i){switch(t){case"I":return zs(El.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,i){return Tv(Oee(e,n,i),i)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,i){switch(t){case"d":return zs(El.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return el(t.length,e)}},validate:function(e,t,n){var i=e.getUTCFullYear(),a=Pw(i),o=e.getUTCMonth();return a?t>=1&&t<=Bee[o]:t>=1&&t<=Nee[o]},set:function(e,t,n,i){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,i){switch(t){case"D":case"DD":return zs(El.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return el(t.length,e)}},validate:function(e,t,n){var i=e.getUTCFullYear(),a=Pw(i);return a?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,i){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,i){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return e=Y_(e,n,i),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,i){var a=function(o){var r=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+r};switch(t){case"e":case"ee":return el(t.length,e,a);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return e=Y_(e,n,i),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,i){var a=function(o){var r=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+r};switch(t){case"c":case"cc":return el(t.length,e,a);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return e=Y_(e,n,i),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,i){var a=function(o){return o===0?7:o};switch(t){case"i":case"ii":return el(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:a})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,i){return e=Ree(e,n,i),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,i){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,i){return e.setUTCHours(X_(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,i){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,i){return e.setUTCHours(X_(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,i){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,i){return e.setUTCHours(X_(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,i){switch(t){case"h":return zs(El.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,i){var a=e.getUTCHours()>=12;return a&&n<12?e.setUTCHours(n+12,0,0,0):!a&&n===12?e.setUTCHours(0,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,i){switch(t){case"H":return zs(El.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,i){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,i){switch(t){case"K":return zs(El.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){var a=e.getUTCHours()>=12;return a&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,i){switch(t){case"k":return zs(El.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,i){var a=n<=24?n%24:n;return e.setUTCHours(a,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,i){switch(t){case"m":return zs(El.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,i){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,i){switch(t){case"s":return zs(El.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return el(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,i){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,i){var a=function(o){return Math.floor(o*Math.pow(10,-t.length+3))};return el(t.length,e,a)},set:function(e,t,n,i){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,i){switch(t){case"X":return n1(t1.basicOptionalMinutes,e);case"XX":return n1(t1.basic,e);case"XXXX":return n1(t1.basicOptionalSeconds,e);case"XXXXX":return n1(t1.extendedOptionalSeconds,e);case"XXX":default:return n1(t1.extended,e)}},set:function(e,t,n,i){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,i){switch(t){case"x":return n1(t1.basicOptionalMinutes,e);case"xx":return n1(t1.basic,e);case"xxxx":return n1(t1.basicOptionalSeconds,e);case"xxxxx":return n1(t1.extendedOptionalSeconds,e);case"xxx":default:return n1(t1.extended,e)}},set:function(e,t,n,i){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,i){return Mw(e)},set:function(e,t,n,i){return[new Date(n*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,i){return Mw(e)},set:function(e,t,n,i){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Hee=Uee,qee=10,Wee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gee=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yee=/^'([^]*?)'?$/,Xee=/''/g,Kee=/\S/,Zee=/[a-zA-Z]/;function u1(e,t,n,i){Ar(3,arguments);var a=String(e),o=String(t),r=i||{},s=r.locale||w4;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,f=l==null?1:Lr(l),p=r.firstWeekContainsDate==null?f:Lr(r.firstWeekContainsDate);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=s.options&&s.options.weekStartsOn,v=h==null?0:Lr(h),_=r.weekStartsOn==null?v:Lr(r.weekStartsOn);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(o==="")return a===""?Nr(n):new Date(NaN);var y={firstWeekContainsDate:p,weekStartsOn:_,locale:s},k=[{priority:qee,subPriority:-1,set:Jee,index:0}],w,D=o.match(Gee).map(function(Ve){var Ye=Ve[0];if(Ye==="p"||Ye==="P"){var ot=pE[Ye];return ot(Ve,s.formatLong,y)}return Ve}).join("").match(Wee),A=[];for(w=0;w<D.length;w++){var L=D[w];!r.useAdditionalWeekYearTokens&&mE(L)&&_3(L,o,e),!r.useAdditionalDayOfYearTokens&&hE(L)&&_3(L,o,e);var T=L[0],z=Hee[T];if(z){var B=z.incompatibleTokens;if(Array.isArray(B)){for(var W=void 0,N=0;N<A.length;N++){var K=A[N].token;if(B.indexOf(K)!==-1||K===T){W=A[N];break}}if(W)throw new RangeError("The format string mustn't contain `".concat(W.fullToken,"` and `").concat(L,"` at the same time"))}else if(z.incompatibleTokens==="*"&&A.length)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));A.push({token:T,fullToken:L});var re=z.parse(a,L,s.match,y);if(!re)return new Date(NaN);k.push({priority:z.priority,subPriority:z.subPriority||0,set:z.set,validate:z.validate,value:re.value,index:k.length}),a=re.rest}else{if(T.match(Zee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");if(L==="''"?L="'":T==="'"&&(L=Qee(L)),a.indexOf(L)===0)a=a.slice(L.length);else return new Date(NaN)}}if(a.length>0&&Kee.test(a))return new Date(NaN);var se=k.map(function(Ve){return Ve.priority}).sort(function(Ve,Ye){return Ye-Ve}).filter(function(Ve,Ye,ot){return ot.indexOf(Ve)===Ye}).map(function(Ve){return k.filter(function(Ye){return Ye.priority===Ve}).sort(function(Ye,ot){return ot.subPriority-Ye.subPriority})}).map(function(Ve){return Ve[0]}),ce=Nr(n);if(isNaN(ce))return new Date(NaN);var de=sb(ce,Av(ce)),ge={};for(w=0;w<se.length;w++){var Ce=se[w];if(Ce.validate&&!Ce.validate(de,Ce.value,y))return new Date(NaN);var Oe=Ce.set(de,ge,Ce.value,y);Oe[0]?(de=Oe[0],vE(ge,Oe[1])):de=Oe}return de}function Jee(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function Qee(e){return e.match(Yee)[1].replace(Xee,"'")}function ete(e,t){Ar(2,arguments);var n=Nr(e),i=Nr(t);return n.getFullYear()===i.getFullYear()}function yE(e){return Ar(1,arguments),ete(e,Date.now())}function _E(e){return Ar(1,arguments),lE(e,Date.now())}function bE(e){return Ar(1,arguments),lE(e,cb(Date.now(),1))}var wE=36e5,xE=6e4,tte=2,cy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},nte=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ite=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,rte=/^([+-])(\d{2})(?::?(\d{2}))?$/;function gf(e,t){Ar(1,arguments);var n=t||{},i=n.additionalDigits==null?tte:Lr(n.additionalDigits);if(i!==2&&i!==1&&i!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=ate(e),o;if(a.date){var r=ote(a.date,i);o=ste(r.restDateString,r.year)}if(isNaN(o)||!o)return new Date(NaN);var s=o.getTime(),l=0,f;if(a.time&&(l=lte(a.time),isNaN(l)||l===null))return new Date(NaN);if(a.timezone){if(f=cte(a.timezone),isNaN(f))return new Date(NaN)}else{var p=new Date(s+l),h=new Date(0);return h.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),h.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),h}return new Date(s+l+f)}function ate(e){var t={},n=e.split(cy.dateTimeDelimiter),i;if(n.length>2)return t;if(/:/.test(n[0])?(t.date=null,i=n[0]):(t.date=n[0],i=n[1],cy.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cy.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var a=cy.timezone.exec(i);a?(t.time=i.replace(a[1],""),t.timezone=a[1]):t.time=i}return t}function ote(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:null};var a=i[1]&&parseInt(i[1]),o=i[2]&&parseInt(i[2]);return{year:o==null?a:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function ste(e,t){if(t===null)return null;var n=e.match(nte);if(!n)return null;var i=!!n[4],a=O2(n[1]),o=O2(n[2])-1,r=O2(n[3]),s=O2(n[4]),l=O2(n[5])-1;if(i)return hte(t,s,l)?ute(t,s,l):new Date(NaN);var f=new Date(0);return!fte(t,o,r)||!pte(t,a)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(a,r)),f)}function O2(e){return e?parseInt(e):1}function lte(e){var t=e.match(ite);if(!t)return null;var n=K_(t[1]),i=K_(t[2]),a=K_(t[3]);return mte(n,i,a)?n*wE+i*xE+a*1e3:NaN}function K_(e){return e&&parseFloat(e.replace(",","."))||0}function cte(e){if(e==="Z")return 0;var t=e.match(rte);if(!t)return 0;var n=t[1]==="+"?-1:1,i=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return vte(i,a)?n*(i*wE+a*xE):NaN}function ute(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var a=i.getUTCDay()||7,o=(t-1)*7+n+1-a;return i.setUTCDate(i.getUTCDate()+o),i}var dte=[31,null,31,30,31,30,31,31,30,31,30,31];function kE(e){return e%400===0||e%4===0&&e%100}function fte(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(dte[t]||(kE(e)?29:28))}function pte(e,t){return t>=1&&t<=(kE(e)?366:365)}function hte(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function mte(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function vte(e,t){return t>=0&&t<=59}function gte(e,t){Ar(2,arguments);var n=Nr(e),i=Lr(t),a=n.getFullYear(),o=n.getDate(),r=new Date(0);r.setFullYear(a,i,15),r.setHours(0,0,0,0);var s=Dee(r);return n.setMonth(i,Math.min(o,s)),n}function uy(e,t){if(Ar(2,arguments),typeof t!="object"||t===null)throw new RangeError("values parameter must be an object");var n=Nr(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=gte(n,t.month)),t.date!=null&&n.setDate(Lr(t.date)),t.hours!=null&&n.setHours(Lr(t.hours)),t.minutes!=null&&n.setMinutes(Lr(t.minutes)),t.seconds!=null&&n.setSeconds(Lr(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Lr(t.milliseconds)),n)}function yte(e,t){Ar(2,arguments);var n=Lr(t);return rE(e,-n)}function _te(e,t){Ar(2,arguments);var n=Lr(t);return aE(e,-n)}function bte(e,t){Ar(2,arguments);var n=Lr(t);return oE(e,-n)}function wte(e,t){Ar(2,arguments);var n=Lr(t);return ob(e,-n)}function xte(e,t){Ar(2,arguments);var n=Lr(t);return sE(e,-n)}function SE(e,t){var n;e=lt.exports.clone(e);const i=t.startsWith("-");(i||t.startsWith("+"))&&(t=t.substring(1));const a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|months?|mth|mo|years?|yrs?|y)?$/i.exec(t);if(!a||!a[1])return;const o=parseFloat(a[1]);switch(((n=a[2])!==null&&n!==void 0?n:"days").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i?xte(e,o):sE(e,o);case"months":case"month":case"mth":case"mo":return i?Fee(e,o):_4(e,o);case"weeks":case"week":case"w":return i?wte(e,o):ob(e,o);case"days":case"day":case"d":return i?cb(e,o):y4(e,o);case"hours":case"hour":case"hrs":case"hr":case"h":return i?yte(e,o):rE(e,o);case"minutes":case"minute":case"mins":case"min":case"m":return i?_te(e,o):aE(e,o);case"seconds":case"second":case"secs":case"sec":case"s":return i?bte(e,o):oE(e,o);case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i?sb(e,o):Z0(e,o);default:return}}var CE=0 .constructor,kte=CE.isFinite;CE.isInteger;var Ste=[].constructor.isArray;function I0(e){return e!==null&&typeof e=="object"}function Cte(e){return typeof e=="function"}function Gy(e,t){return t===void 0&&(t=0),typeof e=="string"&&e.length>=t}function EE(e){return kte(e)}function k8(e){return Ste(e)}function Ete(e,t){return I0(e)&&t in e}var Ate=1e3,Fw="'\"`",Tte=function(){function e(t){this.size=t,this.reset()}return e.prototype.reset=function(){this.oldestIndex=0,this.map={},this.cachedKeys=new Array(this.size)},e.prototype.get=function(t){return this.map[t]},e.prototype.set=function(t,n){this.map[t]=n;var i=this.cachedKeys[this.oldestIndex];i!==void 0&&delete this.map[i],this.cachedKeys[this.oldestIndex]=t,this.oldestIndex++,this.oldestIndex%=this.size},e}(),Rw=new Tte(Ate);function Dte(e){var t=e.charAt(0),n=e.substr(-1);if(Fw.includes(t)||Fw.includes(n)){if(e.length<2||t!==n)throw new SyntaxError('Mismatching string quotation: "'+e+'"');return e.substring(1,e.length-1)}if(e.includes("["))throw new SyntaxError('Missing ] in varName "'+e+'"');return t==="+"?e.substr(1):e}function Ow(e,t,n){var i=t.trim();if(i==="")return e;if(i.startsWith("."))if(n){if(i=i.substr(1).trim(),i==="")return e}else throw new SyntaxError('Unexpected . at the start of "'+t+'"');else if(n)throw new SyntaxError('Missing . at the start of "'+t+'"');if(i.endsWith("."))throw new SyntaxError('Unexpected "." at the end of "'+t+'"');for(var a=i.split("."),o=0,r=a;o<r.length;o++){var s=r[o],l=s.trim();if(l==="")throw new SyntaxError('Empty prop name when parsing "'+t+'"');e.push(l)}return e}function x4(e){if(!Gy(e))throw new TypeError("Cannot parse path. Expected string. Got a "+typeof e);for(var t,n=0,i,a,o=!1,r=new Array(0),s=0;s<e.length&&(t=e.indexOf("[",s),t!==-1);s=n){if(n=e.indexOf("]",t),n===-1)throw new SyntaxError('Missing ] in varName "'+e+'"');if(a=e.substring(t+1,n).trim(),a.length===0)throw new SyntaxError("Unexpected token ]");n++,i=e.substring(s,t),Ow(r,i,o),r.push(Dte(a)),o=!0}var l=e.substring(n);return Ow(r,l,o)}function Ite(e){var t=Rw.get(e);return t===void 0&&(t=x4(e),Rw.set(e,t)),t}x4.cached=Ite;function ub(e,t,n){if(n===void 0&&(n={}),!I0(n))throw new TypeError("get expects an object option. Got "+typeof n);var i=n.depth,a=i===void 0?10:i;if(!EE(a)||a<=0)throw new RangeError("Expected a positive number for depth. Got "+a);var o=Array.isArray(t)?t:x4.cached(t),r=function(){return o.join(" > ")};if(o.length>a)throw new ReferenceError("The path cannot be deeper than "+a+' levels. Got "'+r()+'"');for(var s=e,l=0,f=o;l<f.length;l++){var p=f[l];if(Ete(s,p))s=s[p];else{if(n.propsExist)throw new ReferenceError(p+' is not defined in the scope at path: "'+r()+'"');return}}return s}var Mte=function(){function e(t,n){var i=this;if(n===void 0&&(n={}),this.tokens=t,this.options=n,this.render=function(a){a===void 0&&(a={});var o=i.tokens.varNames,r=o.length;i.cacheParsedPaths();for(var s=new Array(r),l=0;l<r;l++)s[l]=ub(a,i.toPathCache[l],i.options);return i.stringify(s)},this.renderFn=function(a,o){o===void 0&&(o={});var r=i.resolveVarNames(a,o);return i.stringify(r)},this.renderFnAsync=function(a,o){return o===void 0&&(o={}),Promise.all(i.resolveVarNames(a,o)).then(function(r){return i.stringify(r)})},!I0(t)||!k8(t.strings)||!k8(t.varNames)||t.strings.length!==t.varNames.length+1)throw new TypeError("Invalid tokens object");if(!I0(n))throw new TypeError("Options should be an object. Got a "+typeof n);n.validateVarNames&&this.cacheParsedPaths()}return e.prototype.cacheParsedPaths=function(){var t=this.tokens.varNames;if(this.toPathCache===void 0){this.toPathCache=new Array(t.length);for(var n=0;n<t.length;n++)this.toPathCache[n]=x4.cached(t[n])}},e.prototype.resolveVarNames=function(t,n){n===void 0&&(n={});var i=this.tokens.varNames;if(!Cte(t))throw new TypeError("Expected a resolver function. Got "+String(t));for(var a=i.length,o=new Array(a),r=0;r<a;r++)o[r]=t.call(null,i[r],n);return o},e.prototype.stringify=function(t){for(var n=this.tokens.strings,i=this.options.explicit,a=t.length,o="",r=0;r<a;r++){o+=n[r];var s=t[r];(i||s!=null)&&(o+=s)}return o+=n[a],o},e}();function Lte(e,t){if(t===void 0&&(t={}),!Gy(e))throw new TypeError("The template parameter must be a string. Got a "+typeof e);if(!I0(t))throw new TypeError("Options should be an object. Got a "+typeof t);var n=t.tags,i=n===void 0?["{{","}}"]:n,a=t.maxVarNameLength,o=a===void 0?1e3:a;if(!k8(i)||i.length!==2)throw TypeError("tags should be an array of two elements. Got "+String(i));var r=i[0],s=i[1];if(!Gy(r,1)||!Gy(s,1)||r===s)throw new TypeError('The open and close symbols should be two distinct non-empty strings. Got "'+r+'" and "'+s+'"');if(!EE(o)||o<=0)throw new Error("Expected a positive number for maxVarNameLength. Got "+o);for(var l=r.length,f=s.length,p,h=0,v,_=[],y=[],k=0;k<e.length&&(p=e.indexOf(r,k),p!==-1);){var w=p+l;if(h=e.substr(w,o+f).indexOf(s),h===-1)throw new SyntaxError('Missing "'+s+'" in the template for the "'+r+'" at position '+p+" within "+o+" characters");if(h+=w,v=e.substring(w,h).trim(),v.length===0)throw new SyntaxError('Unexpected "'+s+'" tag found at position '+p);if(v.includes(r))throw new SyntaxError('Variable names cannot have "'+r+'". But at position '+p+'. Got "'+v+'"');y.push(v),h+=f,_.push(e.substring(k,p)),k=h}return _.push(e.substring(h)),{strings:_,varNames:y}}function AE(e,t){t===void 0&&(t={});var n=Lte(e,t);return new Mte(n,t)}function v1(e,t,n){var i=AE(e,n);return i.render(t)}function TE(e,t,n,i){var a=AE(e,i);return a.renderFn(t,n)}function ev(e,t,n=[]){return Object.fromEntries(Object.entries(e).map(([i,a])=>{if(typeof a=="string"){const o=a.match(/^\{\{\s*([^}\s]+)\s*\}\}$/);if(o!==null&&o.length>0){const r=ub(t,o[1]);return r!==void 0||!n.includes(i)?[i,r]:[i,a]}}return[i,S8(a,t,n.includes(i))]}))}function Pte(e){return(t,n)=>{if(!n)return e?`{{${t}}}`:void 0;const i=ub(n,t);return i!==void 0||!e?typeof i=="object"?JSON.stringify(i):i:`{{${t}}}`}}function S8(e,t,n){return typeof e=="string"?TE(e,Pte(n),t,{explicit:!0}):Array.isArray(e)?e.map(i=>S8(i,t,n)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([i,a])=>[i,S8(a,t,n)])):e}function Uh(e,t,n){if(Array.isArray(e))return e.map(function(i,a){return lt.exports.isObjectLike(i)?Uh(i,t,n):t.call(n,i,a)});if(lt.exports.isObjectLike(e)){const i={};for(const a in e){const o=e[a];lt.exports.isObjectLike(o)?i[a]=Uh(o,t,n):i[a]=t.call(n,o,a)}return i}else return e}var DE={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(self,function(){return n={1238:a=>{a.exports={version:"17.4.2"}},7629:(a,o,r)=>{const s=r(375),l=r(8571),f=r(9474),p=r(1687),h=r(8652),v=r(8160),_=r(3292),y=r(6354),k=r(8901),w=r(9708),D=r(6914),A=r(2294),L=r(6133),T=r(1152),z=r(8863),B=r(2036),W={Base:class{constructor(N){this.type=N,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new A.Ids,this._preferences=null,this._refs=new L.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return s(typeof w.describe=="function","Manifest functionality disabled"),w.describe(this)}allow(...N){return v.verifyFlat(N,"allow"),this._values(N,"_valids")}alter(N){s(N&&typeof N=="object"&&!Array.isArray(N),"Invalid targets argument"),s(!this._inRuleset(),"Cannot set alterations inside a ruleset");const K=this.clone();K.$_terms.alterations=K.$_terms.alterations||[];for(const re in N){const se=N[re];s(typeof se=="function","Alteration adjuster for",re,"must be a function"),K.$_terms.alterations.push({target:re,adjuster:se})}return K.$_temp.ruleset=!1,K}artifact(N){return s(N!==void 0,"Artifact cannot be undefined"),s(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",N)}cast(N){return s(N===!1||typeof N=="string","Invalid to value"),s(N===!1||this._definition.cast[N],"Type",this.type,"does not support casting to",N),this.$_setFlag("cast",N===!1?void 0:N)}default(N,K){return this._default("default",N,K)}description(N){return s(N&&typeof N=="string","Description must be a non-empty string"),this.$_setFlag("description",N)}empty(N){const K=this.clone();return N!==void 0&&(N=K.$_compile(N,{override:!1})),K.$_setFlag("empty",N,{clone:!1})}error(N){return s(N,"Missing error"),s(N instanceof Error||typeof N=="function","Must provide a valid Error object or a function"),this.$_setFlag("error",N)}example(N,K={}){return s(N!==void 0,"Missing example"),v.assertOptions(K,["override"]),this._inner("examples",N,{single:!0,override:K.override})}external(N,K){return typeof N=="object"&&(s(!K,"Cannot combine options with description"),K=N.description,N=N.method),s(typeof N=="function","Method must be a function"),s(K===void 0||K&&typeof K=="string","Description must be a non-empty string"),this._inner("externals",{method:N,description:K},{single:!0})}failover(N,K){return this._default("failover",N,K)}forbidden(){return this.presence("forbidden")}id(N){return N?(s(typeof N=="string","id must be a non-empty string"),s(/^[^\.]+$/.test(N),"id cannot contain period character"),this.$_setFlag("id",N)):this.$_setFlag("id",void 0)}invalid(...N){return this._values(N,"_invalids")}label(N){return s(N&&typeof N=="string","Label name must be a non-empty string"),this.$_setFlag("label",N)}meta(N){return s(N!==void 0,"Meta cannot be undefined"),this._inner("metas",N,{single:!0})}note(...N){s(N.length,"Missing notes");for(const K of N)s(K&&typeof K=="string","Notes must be non-empty strings");return this._inner("notes",N)}only(N=!0){return s(typeof N=="boolean","Invalid mode:",N),this.$_setFlag("only",N)}optional(){return this.presence("optional")}prefs(N){s(N,"Missing preferences"),s(N.context===void 0,"Cannot override context"),s(N.externals===void 0,"Cannot override externals"),s(N.warnings===void 0,"Cannot override warnings"),s(N.debug===void 0,"Cannot override debug"),v.checkPreferences(N);const K=this.clone();return K._preferences=v.preferences(K._preferences,N),K}presence(N){return s(["optional","required","forbidden"].includes(N),"Unknown presence mode",N),this.$_setFlag("presence",N)}raw(N=!0){return this.$_setFlag("result",N?"raw":void 0)}result(N){return s(["raw","strip"].includes(N),"Unknown result mode",N),this.$_setFlag("result",N)}required(){return this.presence("required")}strict(N){const K=this.clone(),re=N!==void 0&&!N;return K._preferences=v.preferences(K._preferences,{convert:re}),K}strip(N=!0){return this.$_setFlag("result",N?"strip":void 0)}tag(...N){s(N.length,"Missing tags");for(const K of N)s(K&&typeof K=="string","Tags must be non-empty strings");return this._inner("tags",N)}unit(N){return s(N&&typeof N=="string","Unit name must be a non-empty string"),this.$_setFlag("unit",N)}valid(...N){v.verifyFlat(N,"valid");const K=this.allow(...N);return K.$_setFlag("only",!!K._valids,{clone:!1}),K}when(N,K){const re=this.clone();re.$_terms.whens||(re.$_terms.whens=[]);const se=_.when(re,N,K);if(!["any","link"].includes(re.type)){const ce=se.is?[se]:se.switch;for(const de of ce)s(!de.then||de.then.type==="any"||de.then.type===re.type,"Cannot combine",re.type,"with",de.then&&de.then.type),s(!de.otherwise||de.otherwise.type==="any"||de.otherwise.type===re.type,"Cannot combine",re.type,"with",de.otherwise&&de.otherwise.type)}return re.$_terms.whens.push(se),re.$_mutateRebuild()}cache(N){s(!this._inRuleset(),"Cannot set caching inside a ruleset"),s(!this._cache,"Cannot override schema cache"),s(this._flags.artifact===void 0,"Cannot cache a rule with an artifact");const K=this.clone();return K._cache=N||h.provider.provision(),K.$_temp.ruleset=!1,K}clone(){const N=Object.create(Object.getPrototypeOf(this));return this._assign(N)}concat(N){s(v.isSchema(N),"Invalid schema object"),s(this.type==="any"||N.type==="any"||N.type===this.type,"Cannot merge type",this.type,"with another type:",N.type),s(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),s(!N._inRuleset(),"Cannot concatenate a schema with open ruleset");let K=this.clone();if(this.type==="any"&&N.type!=="any"){const re=N.clone();for(const se of Object.keys(K))se!=="type"&&(re[se]=K[se]);K=re}K._ids.concat(N._ids),K._refs.register(N,L.toSibling),K._preferences=K._preferences?v.preferences(K._preferences,N._preferences):N._preferences,K._valids=B.merge(K._valids,N._valids,N._invalids),K._invalids=B.merge(K._invalids,N._invalids,N._valids);for(const re of N._singleRules.keys())K._singleRules.has(re)&&(K._rules=K._rules.filter(se=>se.keep||se.name!==re),K._singleRules.delete(re));for(const re of N._rules)N._definition.rules[re.method].multi||K._singleRules.set(re.name,re),K._rules.push(re);if(K._flags.empty&&N._flags.empty){K._flags.empty=K._flags.empty.concat(N._flags.empty);const re=Object.assign({},N._flags);delete re.empty,p(K._flags,re)}else if(N._flags.empty){K._flags.empty=N._flags.empty;const re=Object.assign({},N._flags);delete re.empty,p(K._flags,re)}else p(K._flags,N._flags);for(const re in N.$_terms){const se=N.$_terms[re];se?K.$_terms[re]?K.$_terms[re]=K.$_terms[re].concat(se):K.$_terms[re]=se.slice():K.$_terms[re]||(K.$_terms[re]=se)}return this.$_root._tracer&&this.$_root._tracer._combine(K,[this,N]),K.$_mutateRebuild()}extend(N){return s(!N.base,"Cannot extend type with another base"),k.type(this,N)}extract(N){return N=Array.isArray(N)?N:N.split("."),this._ids.reach(N)}fork(N,K){s(!this._inRuleset(),"Cannot fork inside a ruleset");let re=this;for(let se of[].concat(N))se=Array.isArray(se)?se:se.split("."),re=re._ids.fork(se,K,re);return re.$_temp.ruleset=!1,re}rule(N){const K=this._definition;v.assertOptions(N,Object.keys(K.modifiers)),s(this.$_temp.ruleset!==!1,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const re=this.$_temp.ruleset===null?this._rules.length-1:this.$_temp.ruleset;s(re>=0&&re<this._rules.length,"Cannot apply rules to empty ruleset");const se=this.clone();for(let ce=re;ce<se._rules.length;++ce){const de=se._rules[ce],ge=l(de);for(const Ce in N)K.modifiers[Ce](ge,N[Ce]),s(ge.name===de.name,"Cannot change rule name");se._rules[ce]=ge,se._singleRules.get(ge.name)===de&&se._singleRules.set(ge.name,ge)}return se.$_temp.ruleset=!1,se.$_mutateRebuild()}get ruleset(){s(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");const N=this.clone();return N.$_temp.ruleset=N._rules.length,N}get $(){return this.ruleset}tailor(N){N=[].concat(N),s(!this._inRuleset(),"Cannot tailor inside a ruleset");let K=this;if(this.$_terms.alterations)for(const{target:re,adjuster:se}of this.$_terms.alterations)N.includes(re)&&(K=se(K),s(v.isSchema(K),"Alteration adjuster for",re,"failed to return a schema object"));return K=K.$_modify({each:re=>re.tailor(N),ref:!1}),K.$_temp.ruleset=!1,K.$_mutateRebuild()}tracer(){return T.location?T.location(this):this}validate(N,K){return z.entry(N,this,K)}validateAsync(N,K){return z.entryAsync(N,this,K)}$_addRule(N){typeof N=="string"&&(N={name:N}),s(N&&typeof N=="object","Invalid options"),s(N.name&&typeof N.name=="string","Invalid rule name");for(const de in N)s(de[0]!=="_","Cannot set private rule properties");const K=Object.assign({},N);K._resolve=[],K.method=K.method||K.name;const re=this._definition.rules[K.method],se=K.args;s(re,"Unknown rule",K.method);const ce=this.clone();if(se){s(Object.keys(se).length===1||Object.keys(se).length===this._definition.rules[K.name].args.length,"Invalid rule definition for",this.type,K.name);for(const de in se){let ge=se[de];if(ge!==void 0){if(re.argsByName){const Ce=re.argsByName.get(de);if(Ce.ref&&v.isResolvable(ge))K._resolve.push(de),ce.$_mutateRegister(ge);else if(Ce.normalize&&(ge=Ce.normalize(ge),se[de]=ge),Ce.assert){const Oe=v.validateArg(ge,de,Ce);s(!Oe,Oe,"or reference")}}se[de]=ge}else delete se[de]}}return re.multi||(ce._ruleRemove(K.name,{clone:!1}),ce._singleRules.set(K.name,K)),ce.$_temp.ruleset===!1&&(ce.$_temp.ruleset=null),re.priority?ce._rules.unshift(K):ce._rules.push(K),ce}$_compile(N,K){return _.schema(this.$_root,N,K)}$_createError(N,K,re,se,ce,de={}){const ge=de.flags!==!1?this._flags:{},Ce=de.messages?D.merge(this._definition.messages,de.messages):this._definition.messages;return new y.Report(N,K,re,ge,Ce,se,ce)}$_getFlag(N){return this._flags[N]}$_getRule(N){return this._singleRules.get(N)}$_mapLabels(N){return N=Array.isArray(N)?N:N.split("."),this._ids.labels(N)}$_match(N,K,re,se){(re=Object.assign({},re)).abortEarly=!0,re._externals=!1,K.snapshot();const ce=!z.validate(N,this,K,re,se).errors;return K.restore(),ce}$_modify(N){return v.assertOptions(N,["each","once","ref","schema"]),A.schema(this,N)||this}$_mutateRebuild(){return s(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(N,{source:K,name:re,path:se,key:ce})=>{const de=this._definition[K][re]&&this._definition[K][re].register;de!==!1&&this.$_mutateRegister(N,{family:de,key:ce})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(N,{family:K,key:re}={}){this._refs.register(N,K),this._ids.register(N,{key:re})}$_property(N){return this._definition.properties[N]}$_reach(N){return this._ids.reach(N)}$_rootReferences(){return this._refs.roots()}$_setFlag(N,K,re={}){s(N[0]==="_"||!this._inRuleset(),"Cannot set flag inside a ruleset");const se=this._definition.flags[N]||{};if(f(K,se.default)&&(K=void 0),f(K,this._flags[N]))return this;const ce=re.clone!==!1?this.clone():this;return K!==void 0?(ce._flags[N]=K,ce.$_mutateRegister(K)):delete ce._flags[N],N[0]!=="_"&&(ce.$_temp.ruleset=!1),ce}$_parent(N,...K){return this[N][v.symbols.parent].call(this,...K)}$_validate(N,K,re){return z.validate(N,this,K,re)}_assign(N){N.type=this.type,N.$_root=this.$_root,N.$_temp=Object.assign({},this.$_temp),N.$_temp.whens={},N._ids=this._ids.clone(),N._preferences=this._preferences,N._valids=this._valids&&this._valids.clone(),N._invalids=this._invalids&&this._invalids.clone(),N._rules=this._rules.slice(),N._singleRules=l(this._singleRules,{shallow:!0}),N._refs=this._refs.clone(),N._flags=Object.assign({},this._flags),N._cache=null,N.$_terms={};for(const K in this.$_terms)N.$_terms[K]=this.$_terms[K]?this.$_terms[K].slice():null;N.$_super={};for(const K in this.$_super)N.$_super[K]=this._super[K].bind(N);return N}_bare(){const N=this.clone();N._reset();const K=N._definition.terms;for(const re in K){const se=K[re];N.$_terms[re]=se.init}return N.$_mutateRebuild()}_default(N,K,re={}){return v.assertOptions(re,"literal"),s(K!==void 0,"Missing",N,"value"),s(typeof K=="function"||!re.literal,"Only function value supports literal option"),typeof K=="function"&&re.literal&&(K={[v.symbols.literal]:!0,literal:K}),this.$_setFlag(N,K)}_generate(N,K,re){if(!this.$_terms.whens)return{schema:this};const se=[],ce=[];for(let Ce=0;Ce<this.$_terms.whens.length;++Ce){const Oe=this.$_terms.whens[Ce];if(Oe.concat){se.push(Oe.concat),ce.push("".concat(Ce,".concat"));continue}const Ve=Oe.ref?Oe.ref.resolve(N,K,re):N,Ye=Oe.is?[Oe]:Oe.switch,ot=ce.length;for(let Te=0;Te<Ye.length;++Te){const{is:it,then:Le,otherwise:De}=Ye[Te],ht="".concat(Ce).concat(Oe.switch?"."+Te:"");if(it.$_match(Ve,K.nest(it,"".concat(ht,".is")),re)){if(Le){const At=K.localize([...K.path,"".concat(ht,".then")],K.ancestors,K.schemas),{schema:Tt,id:Vt}=Le._generate(N,At,re);se.push(Tt),ce.push("".concat(ht,".then").concat(Vt?"(".concat(Vt,")"):""));break}}else if(De){const At=K.localize([...K.path,"".concat(ht,".otherwise")],K.ancestors,K.schemas),{schema:Tt,id:Vt}=De._generate(N,At,re);se.push(Tt),ce.push("".concat(ht,".otherwise").concat(Vt?"(".concat(Vt,")"):""));break}}if(Oe.break&&ce.length>ot)break}const de=ce.join(", ");if(K.mainstay.tracer.debug(K,"rule","when",de),!de)return{schema:this};if(!K.mainstay.tracer.active&&this.$_temp.whens[de])return{schema:this.$_temp.whens[de],id:de};let ge=this;this._definition.generate&&(ge=this._definition.generate(this,N,K,re));for(const Ce of se)ge=ge.concat(Ce);return this.$_root._tracer&&this.$_root._tracer._combine(ge,[this,...se]),this.$_temp.whens[de]=ge,{schema:ge,id:de}}_inner(N,K,re={}){s(!this._inRuleset(),"Cannot set ".concat(N," inside a ruleset"));const se=this.clone();return se.$_terms[N]&&!re.override||(se.$_terms[N]=[]),re.single?se.$_terms[N].push(K):se.$_terms[N].push(...K),se.$_temp.ruleset=!1,se}_inRuleset(){return this.$_temp.ruleset!==null&&this.$_temp.ruleset!==!1}_ruleRemove(N,K={}){if(!this._singleRules.has(N))return this;const re=K.clone!==!1?this.clone():this;re._singleRules.delete(N);const se=[];for(let ce=0;ce<re._rules.length;++ce){const de=re._rules[ce];de.name!==N||de.keep?se.push(de):re._inRuleset()&&ce<re.$_temp.ruleset&&--re.$_temp.ruleset}return re._rules=se,re}_values(N,K){v.verifyFlat(N,K.slice(1,-1));const re=this.clone(),se=N[0]===v.symbols.override;if(se&&(N=N.slice(1)),!re[K]&&N.length?re[K]=new B:se&&(re[K]=N.length?new B:null,re.$_mutateRebuild()),!re[K])return re;se&&re[K].override();for(const ce of N){s(ce!==void 0,"Cannot call allow/valid/invalid with undefined"),s(ce!==v.symbols.override,"Override must be the first value");const de=K==="_invalids"?"_valids":"_invalids";re[de]&&(re[de].remove(ce),re[de].length||(s(K==="_valids"||!re._flags.only,"Setting invalid value",ce,"leaves schema rejecting all values due to previous valid rule"),re[de]=null)),re[K].add(ce,re._refs)}return re}}};W.Base.prototype[v.symbols.any]={version:v.version,compile:_.compile,root:"$_root"},W.Base.prototype.isImmutable=!0,W.Base.prototype.deny=W.Base.prototype.invalid,W.Base.prototype.disallow=W.Base.prototype.invalid,W.Base.prototype.equal=W.Base.prototype.valid,W.Base.prototype.exist=W.Base.prototype.required,W.Base.prototype.not=W.Base.prototype.invalid,W.Base.prototype.options=W.Base.prototype.prefs,W.Base.prototype.preferences=W.Base.prototype.prefs,a.exports=new W.Base},8652:(a,o,r)=>{const s=r(375),l=r(8571),f=r(8160),p={max:1e3,supported:new Set(["undefined","boolean","number","string"])};o.provider={provision:h=>new p.Cache(h)},p.Cache=class{constructor(h={}){f.assertOptions(h,["max"]),s(h.max===void 0||h.max&&h.max>0&&isFinite(h.max),"Invalid max cache size"),this._max=h.max||p.max,this._map=new Map,this._list=new p.List}get length(){return this._map.size}set(h,v){if(h!==null&&!p.supported.has(typeof h))return;let _=this._map.get(h);if(_)return _.value=v,void this._list.first(_);_=this._list.unshift({key:h,value:v}),this._map.set(h,_),this._compact()}get(h){const v=this._map.get(h);if(v)return this._list.first(v),l(v.value)}_compact(){if(this._map.size>this._max){const h=this._list.pop();this._map.delete(h.key)}}},p.List=class{constructor(){this.tail=null,this.head=null}unshift(h){return h.next=null,h.prev=this.head,this.head&&(this.head.next=h),this.head=h,this.tail||(this.tail=h),h}first(h){h!==this.head&&(this._remove(h),this.unshift(h))}pop(){return this._remove(this.tail)}_remove(h){const{next:v,prev:_}=h;return v.prev=_,_&&(_.next=v),h===this.tail&&(this.tail=v),h.prev=null,h.next=null,h}}},8160:(a,o,r)=>{const s=r(375),l=r(7916),f=r(1238);let p,h;const v={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};o.version=f.version,o.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},o.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},o.assertOptions=function(_,y,k="Options"){s(_&&typeof _=="object"&&!Array.isArray(_),"Options must be of type object");const w=Object.keys(_).filter(D=>!y.includes(D));s(w.length===0,"".concat(k," contain unknown keys: ").concat(w))},o.checkPreferences=function(_){h=h||r(3378);const y=h.preferences.validate(_);if(y.error)throw new l([y.error.details[0].message])},o.compare=function(_,y,k){switch(k){case"=":return _===y;case">":return _>y;case"<":return _<y;case">=":return _>=y;case"<=":return _<=y}},o.default=function(_,y){return _===void 0?y:_},o.isIsoDate=function(_){return v.isoDate.test(_)},o.isNumber=function(_){return typeof _=="number"&&!isNaN(_)},o.isResolvable=function(_){return!!_&&(_[o.symbols.ref]||_[o.symbols.template])},o.isSchema=function(_,y={}){const k=_&&_[o.symbols.any];return!!k&&(s(y.legacy||k.version===o.version,"Cannot mix different versions of joi schemas"),!0)},o.isValues=function(_){return _[o.symbols.values]},o.limit=function(_){return Number.isSafeInteger(_)&&_>=0},o.preferences=function(_,y){p=p||r(6914),_=_||{},y=y||{};const k=Object.assign({},_,y);return y.errors&&_.errors&&(k.errors=Object.assign({},_.errors,y.errors),k.errors.wrap=Object.assign({},_.errors.wrap,y.errors.wrap)),y.messages&&(k.messages=p.compile(y.messages,_.messages)),delete k[o.symbols.prefs],k},o.tryWithPath=function(_,y,k={}){try{return _()}catch(w){throw w.path!==void 0?w.path=y+"."+w.path:w.path=y,k.append&&(w.message="".concat(w.message," (").concat(w.path,")")),w}},o.validateArg=function(_,y,{assert:k,message:w}){if(o.isSchema(k)){const D=k.validate(_);return D.error?D.error.message:void 0}if(!k(_))return y?"".concat(y," ").concat(w):w},o.verifyFlat=function(_,y){for(const k of _)s(!Array.isArray(k),"Method no longer accepts array arguments:",y)}},3292:(a,o,r)=>{const s=r(375),l=r(8160),f=r(6133),p={};o.schema=function(h,v,_={}){l.assertOptions(_,["appendPath","override"]);try{return p.schema(h,v,_)}catch(y){throw _.appendPath&&y.path!==void 0&&(y.message="".concat(y.message," (").concat(y.path,")")),y}},p.schema=function(h,v,_){s(v!==void 0,"Invalid undefined schema"),Array.isArray(v)&&(s(v.length,"Invalid empty array schema"),v.length===1&&(v=v[0]));const y=(k,...w)=>_.override!==!1?k.valid(h.override,...w):k.valid(...w);if(p.simple(v))return y(h,v);if(typeof v=="function")return h.custom(v);if(s(typeof v=="object","Invalid schema content:",typeof v),l.isResolvable(v))return y(h,v);if(l.isSchema(v))return v;if(Array.isArray(v)){for(const k of v)if(!p.simple(k))return h.alternatives().try(...v);return y(h,...v)}return v instanceof RegExp?h.string().regex(v):v instanceof Date?y(h.date(),v):(s(Object.getPrototypeOf(v)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),h.object().keys(v))},o.ref=function(h,v){return f.isRef(h)?h:f.create(h,v)},o.compile=function(h,v,_={}){l.assertOptions(_,["legacy"]);const y=v&&v[l.symbols.any];if(y)return s(_.legacy||y.version===l.version,"Cannot mix different versions of joi schemas:",y.version,l.version),v;if(typeof v!="object"||!_.legacy)return o.schema(h,v,{appendPath:!0});const k=p.walk(v);return k?k.compile(k.root,v):o.schema(h,v,{appendPath:!0})},p.walk=function(h){if(typeof h!="object")return null;if(Array.isArray(h)){for(const _ of h){const y=p.walk(_);if(y)return y}return null}const v=h[l.symbols.any];if(v)return{root:h[v.root],compile:v.compile};s(Object.getPrototypeOf(h)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const _ in h){const y=p.walk(h[_]);if(y)return y}return null},p.simple=function(h){return h===null||["boolean","string","number"].includes(typeof h)},o.when=function(h,v,_){if(_===void 0&&(s(v&&typeof v=="object","Missing options"),_=v,v=f.create(".")),Array.isArray(_)&&(_={switch:_}),l.assertOptions(_,["is","not","then","otherwise","switch","break"]),l.isSchema(v))return s(_.is===void 0,'"is" can not be used with a schema condition'),s(_.not===void 0,'"not" can not be used with a schema condition'),s(_.switch===void 0,'"switch" can not be used with a schema condition'),p.condition(h,{is:v,then:_.then,otherwise:_.otherwise,break:_.break});if(s(f.isRef(v)||typeof v=="string","Invalid condition:",v),s(_.not===void 0||_.is===void 0,'Cannot combine "is" with "not"'),_.switch===void 0){let k=_;_.not!==void 0&&(k={is:_.not,then:_.otherwise,otherwise:_.then,break:_.break});let w=k.is!==void 0?h.$_compile(k.is):h.$_root.invalid(null,!1,0,"").required();return s(k.then!==void 0||k.otherwise!==void 0,'options must have at least one of "then", "otherwise", or "switch"'),s(k.break===void 0||k.then===void 0||k.otherwise===void 0,"Cannot specify then, otherwise, and break all together"),_.is===void 0||f.isRef(_.is)||l.isSchema(_.is)||(w=w.required()),p.condition(h,{ref:o.ref(v),is:w,then:k.then,otherwise:k.otherwise,break:k.break})}s(Array.isArray(_.switch),'"switch" must be an array'),s(_.is===void 0,'Cannot combine "switch" with "is"'),s(_.not===void 0,'Cannot combine "switch" with "not"'),s(_.then===void 0,'Cannot combine "switch" with "then"');const y={ref:o.ref(v),switch:[],break:_.break};for(let k=0;k<_.switch.length;++k){const w=_.switch[k],D=k===_.switch.length-1;l.assertOptions(w,D?["is","then","otherwise"]:["is","then"]),s(w.is!==void 0,'Switch statement missing "is"'),s(w.then!==void 0,'Switch statement missing "then"');const A={is:h.$_compile(w.is),then:h.$_compile(w.then)};if(f.isRef(w.is)||l.isSchema(w.is)||(A.is=A.is.required()),D){s(_.otherwise===void 0||w.otherwise===void 0,'Cannot specify "otherwise" inside and outside a "switch"');const L=_.otherwise!==void 0?_.otherwise:w.otherwise;L!==void 0&&(s(y.break===void 0,"Cannot specify both otherwise and break"),A.otherwise=h.$_compile(L))}y.switch.push(A)}return y},p.condition=function(h,v){for(const _ of["then","otherwise"])v[_]===void 0?delete v[_]:v[_]=h.$_compile(v[_]);return v}},6354:(a,o,r)=>{const s=r(5688),l=r(8160),f=r(3328);o.Report=class{constructor(p,h,v,_,y,k,w){if(this.code=p,this.flags=_,this.messages=y,this.path=k.path,this.prefs=w,this.state=k,this.value=h,this.message=null,this.template=null,this.local=v||{},this.local.label=o.label(this.flags,this.state,this.prefs,this.messages),this.value===void 0||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const D=this.path[this.path.length-1];typeof D!="object"&&(this.local.key=D)}}_setTemplate(p){if(this.template=p,!this.flags.label&&this.path.length===0){const h=this._template(this.template,"root");h&&(this.local.label=h)}}toString(){if(this.message)return this.message;const p=this.code;if(!this.prefs.errors.render)return this.code;const h=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return h===void 0?'Error code "'.concat(p,'" is not defined, your custom type is missing the correct messages definition'):(this.message=h.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(p,h){return o.template(this.value,p,h||this.code,this.state,this.prefs)}},o.path=function(p){let h="";for(const v of p)typeof v!="object"&&(typeof v=="string"?(h&&(h+="."),h+=v):h+="[".concat(v,"]"));return h},o.template=function(p,h,v,_,y){if(!h)return;if(f.isTemplate(h))return v!=="root"?h:null;let k=y.errors.language;return l.isResolvable(k)&&(k=k.resolve(p,_,y)),k&&h[k]&&h[k][v]!==void 0?h[k][v]:h[v]},o.label=function(p,h,v,_){if(p.label)return p.label;if(!v.errors.label)return"";let y=h.path;return v.errors.label==="key"&&h.path.length>1&&(y=h.path.slice(-1)),o.path(y)||o.template(null,v.messages,"root",h,v)||_&&o.template(null,_,"root",h,v)||"value"},o.process=function(p,h,v){if(!p)return null;const{override:_,message:y,details:k}=o.details(p);if(_)return _;if(v.errors.stack)return new o.ValidationError(y,k,h);const w=Error.stackTraceLimit;Error.stackTraceLimit=0;const D=new o.ValidationError(y,k,h);return Error.stackTraceLimit=w,D},o.details=function(p,h={}){let v=[];const _=[];for(const y of p){if(y instanceof Error){if(h.override!==!1)return{override:y};const w=y.toString();v.push(w),_.push({message:w,type:"override",context:{error:y}});continue}const k=y.toString();v.push(k),_.push({message:k,path:y.path.filter(w=>typeof w!="object"),type:y.code,context:y.local})}return v.length>1&&(v=[...new Set(v)]),{message:v.join(". "),details:_}},o.ValidationError=class extends Error{constructor(p,h,v){super(p),this._original=v,this.details=h}static isError(p){return p instanceof o.ValidationError}},o.ValidationError.prototype.isJoi=!0,o.ValidationError.prototype.name="ValidationError",o.ValidationError.prototype.annotate=s.error},8901:(a,o,r)=>{const s=r(375),l=r(8571),f=r(8160),p=r(6914),h={};o.type=function(v,_){const y=Object.getPrototypeOf(v),k=l(y),w=v._assign(Object.create(k)),D=Object.assign({},_);delete D.base,k._definition=D;const A=y._definition||{};D.messages=p.merge(A.messages,D.messages),D.properties=Object.assign({},A.properties,D.properties),w.type=D.type,D.flags=Object.assign({},A.flags,D.flags);const L=Object.assign({},A.terms);if(D.terms)for(const W in D.terms){const N=D.terms[W];s(w.$_terms[W]===void 0,"Invalid term override for",D.type,W),w.$_terms[W]=N.init,L[W]=N}D.terms=L,D.args||(D.args=A.args),D.prepare=h.prepare(D.prepare,A.prepare),D.coerce&&(typeof D.coerce=="function"&&(D.coerce={method:D.coerce}),D.coerce.from&&!Array.isArray(D.coerce.from)&&(D.coerce={method:D.coerce.method,from:[].concat(D.coerce.from)})),D.coerce=h.coerce(D.coerce,A.coerce),D.validate=h.validate(D.validate,A.validate);const T=Object.assign({},A.rules);if(D.rules)for(const W in D.rules){const N=D.rules[W];s(typeof N=="object","Invalid rule definition for",D.type,W);let K=N.method;if(K===void 0&&(K=function(){return this.$_addRule(W)}),K&&(s(!k[W],"Rule conflict in",D.type,W),k[W]=K),s(!T[W],"Rule conflict in",D.type,W),T[W]=N,N.alias){const re=[].concat(N.alias);for(const se of re)k[se]=N.method}N.args&&(N.argsByName=new Map,N.args=N.args.map(re=>(typeof re=="string"&&(re={name:re}),s(!N.argsByName.has(re.name),"Duplicated argument name",re.name),f.isSchema(re.assert)&&(re.assert=re.assert.strict().label(re.name)),N.argsByName.set(re.name,re),re)))}D.rules=T;const z=Object.assign({},A.modifiers);if(D.modifiers)for(const W in D.modifiers){s(!k[W],"Rule conflict in",D.type,W);const N=D.modifiers[W];s(typeof N=="function","Invalid modifier definition for",D.type,W);const K=function(re){return this.rule({[W]:re})};k[W]=K,z[W]=N}if(D.modifiers=z,D.overrides){k._super=y,w.$_super={};for(const W in D.overrides)s(y[W],"Cannot override missing",W),D.overrides[W][f.symbols.parent]=y[W],w.$_super[W]=y[W].bind(w);Object.assign(k,D.overrides)}D.cast=Object.assign({},A.cast,D.cast);const B=Object.assign({},A.manifest,D.manifest);return B.build=h.build(D.manifest&&D.manifest.build,A.manifest&&A.manifest.build),D.manifest=B,D.rebuild=h.rebuild(D.rebuild,A.rebuild),w},h.build=function(v,_){return v&&_?function(y,k){return _(v(y,k),k)}:v||_},h.coerce=function(v,_){return v&&_?{from:v.from&&_.from?[...new Set([...v.from,..._.from])]:null,method(y,k){let w;if((!_.from||_.from.includes(typeof y))&&(w=_.method(y,k),w)){if(w.errors||w.value===void 0)return w;y=w.value}if(!v.from||v.from.includes(typeof y)){const D=v.method(y,k);if(D)return D}return w}}:v||_},h.prepare=function(v,_){return v&&_?function(y,k){const w=v(y,k);if(w){if(w.errors||w.value===void 0)return w;y=w.value}return _(y,k)||w}:v||_},h.rebuild=function(v,_){return v&&_?function(y){_(y),v(y)}:v||_},h.validate=function(v,_){return v&&_?function(y,k){const w=_(y,k);if(w){if(w.errors&&(!Array.isArray(w.errors)||w.errors.length))return w;y=w.value}return v(y,k)||w}:v||_}},5107:(a,o,r)=>{const s=r(375),l=r(8571),f=r(8652),p=r(8160),h=r(3292),v=r(6354),_=r(8901),y=r(9708),k=r(6133),w=r(3328),D=r(1152);let A;const L={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const T={_types:new Set(Object.keys(L.types))};for(const z of T._types)T[z]=function(...B){return s(!B.length||["alternatives","link","object"].includes(z),"The",z,"type does not allow arguments"),L.generate(this,L.types[z],B)};for(const z of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])T[z]=function(...B){return this.any()[z](...B)};Object.assign(T,L.methods);for(const z in L.aliases){const B=L.aliases[z];T[z]=T[B]}return T.x=T.expression,D.setup&&D.setup(T),T}};L.methods={ValidationError:v.ValidationError,version:p.version,cache:f.provider,assert(T,z,...B){L.assert(T,z,!0,B)},attempt:(T,z,...B)=>L.assert(T,z,!1,B),build(T){return s(typeof y.build=="function","Manifest functionality disabled"),y.build(this,T)},checkPreferences(T){p.checkPreferences(T)},compile(T,z){return h.compile(this,T,z)},defaults(T){s(typeof T=="function","modifier must be a function");const z=Object.assign({},this);for(const B of z._types){const W=T(z[B]());s(p.isSchema(W),"modifier must return a valid schema object"),z[B]=function(...N){return L.generate(this,W,N)}}return z},expression:(...T)=>new w(...T),extend(...T){p.verifyFlat(T,"extend"),A=A||r(3378),s(T.length,"You need to provide at least one extension"),this.assert(T,A.extensions);const z=Object.assign({},this);z._types=new Set(z._types);for(let B of T){typeof B=="function"&&(B=B(z)),this.assert(B,A.extension);const W=L.expandExtension(B,z);for(const N of W){s(z[N.type]===void 0||z._types.has(N.type),"Cannot override name",N.type);const K=N.base||this.any(),re=_.type(K,N);z._types.add(N.type),z[N.type]=function(...se){return L.generate(this,re,se)}}}return z},isError:v.ValidationError.isError,isExpression:w.isTemplate,isRef:k.isRef,isSchema:p.isSchema,in:(...T)=>k.in(...T),override:p.symbols.override,ref:(...T)=>k.create(...T),types(){const T={};for(const z of this._types)T[z]=this[z]();for(const z in L.aliases)T[z]=this[z]();return T}},L.assert=function(T,z,B,W){const N=W[0]instanceof Error||typeof W[0]=="string"?W[0]:null,K=N?W[1]:W[0],re=z.validate(T,p.preferences({errors:{stack:!0}},K||{}));let se=re.error;if(!se)return re.value;if(N instanceof Error)throw N;const ce=B&&typeof se.annotate=="function"?se.annotate():se.message;throw se instanceof v.ValidationError==0&&(se=l(se)),se.message=N?"".concat(N," ").concat(ce):ce,se},L.generate=function(T,z,B){return s(T,"Must be invoked on a Joi instance."),z.$_root=T,z._definition.args&&B.length?z._definition.args(z,...B):z},L.expandExtension=function(T,z){if(typeof T.type=="string")return[T];const B=[];for(const W of z._types)if(T.type.test(W)){const N=Object.assign({},T);N.type=W,N.base=z[W](),B.push(N)}return B},a.exports=L.root()},6914:(a,o,r)=>{const s=r(375),l=r(8571),f=r(3328);o.compile=function(p,h){if(typeof p=="string")return s(!h,"Cannot set single message string"),new f(p);if(f.isTemplate(p))return s(!h,"Cannot set single message template"),p;s(typeof p=="object"&&!Array.isArray(p),"Invalid message options"),h=h?l(h):{};for(let v in p){const _=p[v];if(v==="root"||f.isTemplate(_)){h[v]=_;continue}if(typeof _=="string"){h[v]=new f(_);continue}s(typeof _=="object"&&!Array.isArray(_),"Invalid message for",v);const y=v;for(v in h[y]=h[y]||{},_){const k=_[v];v==="root"||f.isTemplate(k)?h[y][v]=k:(s(typeof k=="string","Invalid message for",v,"in",y),h[y][v]=new f(k))}}return h},o.decompile=function(p){const h={};for(let v in p){const _=p[v];if(v==="root"){h[v]=_;continue}if(f.isTemplate(_)){h[v]=_.describe({compact:!0});continue}const y=v;for(v in h[y]={},_){const k=_[v];h[y][v]=v!=="root"?k.describe({compact:!0}):k}}return h},o.merge=function(p,h){if(!p)return o.compile(h);if(!h)return p;if(typeof h=="string")return new f(h);if(f.isTemplate(h))return h;const v=l(p);for(let _ in h){const y=h[_];if(_==="root"||f.isTemplate(y)){v[_]=y;continue}if(typeof y=="string"){v[_]=new f(y);continue}s(typeof y=="object"&&!Array.isArray(y),"Invalid message for",_);const k=_;for(_ in v[k]=v[k]||{},y){const w=y[_];_==="root"||f.isTemplate(w)?v[k][_]=w:(s(typeof w=="string","Invalid message for",_,"in",k),v[k][_]=new f(w))}}return v}},2294:(a,o,r)=>{function s(y,k){var w=Object.keys(y);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(y);k&&(D=D.filter(function(A){return Object.getOwnPropertyDescriptor(y,A).enumerable})),w.push.apply(w,D)}return w}function l(y){for(var k=1;k<arguments.length;k++){var w=arguments[k]!=null?arguments[k]:{};k%2?s(Object(w),!0).forEach(function(D){f(y,D,w[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(w)):s(Object(w)).forEach(function(D){Object.defineProperty(y,D,Object.getOwnPropertyDescriptor(w,D))})}return y}function f(y,k,w){return k in y?Object.defineProperty(y,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):y[k]=w,y}const p=r(375),h=r(8160),v=r(6133),_={};o.Ids=_.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const y=new _.Ids;return y._byId=new Map(this._byId),y._byKey=new Map(this._byKey),y._schemaChain=this._schemaChain,y}concat(y){y._schemaChain&&(this._schemaChain=!0);for(const[k,w]of y._byId.entries())p(!this._byKey.has(k),"Schema id conflicts with existing key:",k),this._byId.set(k,w);for(const[k,w]of y._byKey.entries())p(!this._byId.has(k),"Schema key conflicts with existing id:",k),this._byKey.set(k,w)}fork(y,k,w){const D=this._collect(y);D.push({schema:w});const A=D.shift();let L={id:A.id,schema:k(A.schema)};p(h.isSchema(L.schema),"adjuster function failed to return a joi schema type");for(const T of D)L={id:T.id,schema:_.fork(T.schema,L.id,L.schema)};return L.schema}labels(y,k=[]){const w=y[0],D=this._get(w);if(!D)return[...k,...y].join(".");const A=y.slice(1);return k=[...k,D.schema._flags.label||w],A.length?D.schema._ids.labels(A,k):k.join(".")}reach(y,k=[]){const w=y[0],D=this._get(w);p(D,"Schema does not contain path",[...k,...y].join("."));const A=y.slice(1);return A.length?D.schema._ids.reach(A,[...k,w]):D.schema}register(y,{key:k}={}){if(!y||!h.isSchema(y))return;(y.$_property("schemaChain")||y._ids._schemaChain)&&(this._schemaChain=!0);const w=y._flags.id;if(w){const D=this._byId.get(w);p(!D||D.schema===y,"Cannot add different schemas with the same id:",w),p(!this._byKey.has(w),"Schema id conflicts with existing key:",w),this._byId.set(w,{schema:y,id:w})}k&&(p(!this._byKey.has(k),"Schema already contains key:",k),p(!this._byId.has(k),"Schema key conflicts with existing id:",k),this._byKey.set(k,{schema:y,id:k}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(y,k=[],w=[]){const D=y[0],A=this._get(D);p(A,"Schema does not contain path",[...k,...y].join(".")),w=[A,...w];const L=y.slice(1);return L.length?A.schema._ids._collect(L,[...k,D],w):w}_get(y){return this._byId.get(y)||this._byKey.get(y)}},_.fork=function(y,k,w){const D=o.schema(y,{each:(A,{key:L})=>{if(k===(A._flags.id||L))return w},ref:!1});return D?D.$_mutateRebuild():y},o.schema=function(y,k){let w;for(const D in y._flags){if(D[0]==="_")continue;const A=_.scan(y._flags[D],{source:"flags",name:D},k);A!==void 0&&(w=w||y.clone(),w._flags[D]=A)}for(let D=0;D<y._rules.length;++D){const A=y._rules[D],L=_.scan(A.args,{source:"rules",name:A.name},k);if(L!==void 0){w=w||y.clone();const T=Object.assign({},A);T.args=L,w._rules[D]=T,w._singleRules.get(A.name)===A&&w._singleRules.set(A.name,T)}}for(const D in y.$_terms){if(D[0]==="_")continue;const A=_.scan(y.$_terms[D],{source:"terms",name:D},k);A!==void 0&&(w=w||y.clone(),w.$_terms[D]=A)}return w},_.scan=function(y,k,w,D,A){const L=D||[];if(y===null||typeof y!="object")return;let T;if(Array.isArray(y)){for(let z=0;z<y.length;++z){const B=k.source==="terms"&&k.name==="keys"&&y[z].key,W=_.scan(y[z],k,w,[z,...L],B);W!==void 0&&(T=T||y.slice(),T[z]=W)}return T}if(w.schema!==!1&&h.isSchema(y)||w.ref!==!1&&v.isRef(y)){const z=w.each(y,l(l({},k),{},{path:L,key:A}));return z===y?void 0:z}for(const z in y){if(z[0]==="_")continue;const B=_.scan(y[z],k,w,[z,...L],A);B!==void 0&&(T=T||Object.assign({},y),T[z]=B)}return T}},6133:(a,o,r)=>{function s(w,D){var A=Object.keys(w);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(w);D&&(L=L.filter(function(T){return Object.getOwnPropertyDescriptor(w,T).enumerable})),A.push.apply(A,L)}return A}function l(w){for(var D=1;D<arguments.length;D++){var A=arguments[D]!=null?arguments[D]:{};D%2?s(Object(A),!0).forEach(function(L){f(w,L,A[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(A)):s(Object(A)).forEach(function(L){Object.defineProperty(w,L,Object.getOwnPropertyDescriptor(A,L))})}return w}function f(w,D,A){return D in w?Object.defineProperty(w,D,{value:A,enumerable:!0,configurable:!0,writable:!0}):w[D]=A,w}const p=r(375),h=r(8571),v=r(9621),_=r(8160);let y;const k={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};o.create=function(w,D={}){p(typeof w=="string","Invalid reference key:",w),_.assertOptions(D,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),p(!D.prefix||typeof D.prefix=="object","options.prefix must be of type object");const A=Object.assign({},k.defaults,D);delete A.prefix;const L=A.separator,T=k.context(w,L,D.prefix);if(A.type=T.type,w=T.key,A.type==="value")if(T.root&&(p(!L||w[0]!==L,"Cannot specify relative path with root prefix"),A.ancestor="root",w||(w=null)),L&&L===w)w=null,A.ancestor=0;else if(A.ancestor!==void 0)p(!L||!w||w[0]!==L,"Cannot combine prefix with ancestor option");else{const[z,B]=k.ancestor(w,L);B&&(w=w.slice(B))===""&&(w=null),A.ancestor=z}return A.path=L?w===null?[]:w.split(L):[w],new k.Ref(A)},o.in=function(w,D={}){return o.create(w,l(l({},D),{},{in:!0}))},o.isRef=function(w){return!!w&&!!w[_.symbols.ref]},k.Ref=class{constructor(w){p(typeof w=="object","Invalid reference construction"),_.assertOptions(w,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),p([!1,void 0].includes(w.separator)||typeof w.separator=="string"&&w.separator.length===1,"Invalid separator"),p(!w.adjust||typeof w.adjust=="function","options.adjust must be a function"),p(!w.map||Array.isArray(w.map),"options.map must be an array"),p(!w.map||!w.adjust,"Cannot set both map and adjust options"),Object.assign(this,k.defaults,w),p(this.type==="value"||this.ancestor===void 0,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(w,D,A,L,T={}){return p(!this.in||T.in,"Invalid in() reference usage"),this.type==="global"?this._resolve(A.context,D,T):this.type==="local"?this._resolve(L,D,T):this.ancestor?this.ancestor==="root"?this._resolve(D.ancestors[D.ancestors.length-1],D,T):(p(this.ancestor<=D.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(D.ancestors[this.ancestor-1],D,T)):this._resolve(w,D,T)}_resolve(w,D,A){let L;if(this.type==="value"&&D.mainstay.shadow&&A.shadow!==!1&&(L=D.mainstay.shadow.get(this.absolute(D))),L===void 0&&(L=v(w,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(L=this.adjust(L)),this.map){const T=this.map.get(L);T!==void 0&&(L=T)}return D.mainstay&&D.mainstay.tracer.resolve(D,this,L),L}toString(){return this.display}absolute(w){return[...w.path.slice(0,-this.ancestor),...this.path]}clone(){return new k.Ref(this)}describe(){const w={path:this.path};this.type!=="value"&&(w.type=this.type),this.separator!=="."&&(w.separator=this.separator),this.type==="value"&&this.ancestor!==1&&(w.ancestor=this.ancestor),this.map&&(w.map=[...this.map]);for(const D of["adjust","iterables","render"])this[D]!==null&&this[D]!==void 0&&(w[D]=this[D]);return this.in!==!1&&(w.in=!0),{ref:w}}updateDisplay(){const w=this.key!==null?this.key:"";if(this.type!=="value")return void(this.display="ref:".concat(this.type,":").concat(w));if(!this.separator)return void(this.display="ref:".concat(w));if(!this.ancestor)return void(this.display="ref:".concat(this.separator).concat(w));if(this.ancestor==="root")return void(this.display="ref:root:".concat(w));if(this.ancestor===1)return void(this.display="ref:".concat(w||".."));const D=new Array(this.ancestor+1).fill(this.separator).join("");this.display="ref:".concat(D).concat(w||"")}},k.Ref.prototype[_.symbols.ref]=!0,o.build=function(w){return(w=Object.assign({},k.defaults,w)).type==="value"&&w.ancestor===void 0&&(w.ancestor=1),new k.Ref(w)},k.context=function(w,D,A={}){if(w=w.trim(),A){const L=A.global===void 0?"$":A.global;if(L!==D&&w.startsWith(L))return{key:w.slice(L.length),type:"global"};const T=A.local===void 0?"#":A.local;if(T!==D&&w.startsWith(T))return{key:w.slice(T.length),type:"local"};const z=A.root===void 0?"/":A.root;if(z!==D&&w.startsWith(z))return{key:w.slice(z.length),type:"value",root:!0}}return{key:w,type:"value"}},k.ancestor=function(w,D){if(!D)return[1,0];if(w[0]!==D)return[1,0];if(w[1]!==D)return[0,1];let A=2;for(;w[A]===D;)++A;return[A-1,A]},o.toSibling=0,o.toParent=1,o.Manager=class{constructor(){this.refs=[]}register(w,D){if(w)if(D=D===void 0?o.toParent:D,Array.isArray(w))for(const A of w)this.register(A,D);else if(_.isSchema(w))for(const A of w._refs.refs)A.ancestor-D>=0&&this.refs.push({ancestor:A.ancestor-D,root:A.root});else o.isRef(w)&&w.type==="value"&&w.ancestor-D>=0&&this.refs.push({ancestor:w.ancestor-D,root:w.root}),y=y||r(3328),y.isTemplate(w)&&this.register(w.refs(),D)}get length(){return this.refs.length}clone(){const w=new o.Manager;return w.refs=h(this.refs),w}reset(){this.refs=[]}roots(){return this.refs.filter(w=>!w.ancestor).map(w=>w.root)}}},3378:(a,o,r)=>{const s=r(5107),l={};l.wrap=s.string().min(1).max(2).allow(!1),o.preferences=s.object({allowUnknown:s.boolean(),abortEarly:s.boolean(),artifacts:s.boolean(),cache:s.boolean(),context:s.object(),convert:s.boolean(),dateFormat:s.valid("date","iso","string","time","utc"),debug:s.boolean(),errors:{escapeHtml:s.boolean(),label:s.valid("path","key",!1),language:[s.string(),s.object().ref()],render:s.boolean(),stack:s.boolean(),wrap:{label:l.wrap,array:l.wrap}},externals:s.boolean(),messages:s.object(),noDefaults:s.boolean(),nonEnumerables:s.boolean(),presence:s.valid("required","optional","forbidden"),skipFunctions:s.boolean(),stripUnknown:s.object({arrays:s.boolean(),objects:s.boolean()}).or("arrays","objects").allow(!0,!1),warnings:s.boolean()}).strict(),l.nameRx=/^[a-zA-Z0-9]\w*$/,l.rule=s.object({alias:s.array().items(s.string().pattern(l.nameRx)).single(),args:s.array().items(s.string(),s.object({name:s.string().pattern(l.nameRx).required(),ref:s.boolean(),assert:s.alternatives([s.function(),s.object().schema()]).conditional("ref",{is:!0,then:s.required()}),normalize:s.function(),message:s.string().when("assert",{is:s.function(),then:s.required()})})),convert:s.boolean(),manifest:s.boolean(),method:s.function().allow(!1),multi:s.boolean(),validate:s.function()}),o.extension=s.object({type:s.alternatives([s.string(),s.object().regex()]).required(),args:s.function(),cast:s.object().pattern(l.nameRx,s.object({from:s.function().maxArity(1).required(),to:s.function().minArity(1).maxArity(2).required()})),base:s.object().schema().when("type",{is:s.object().regex(),then:s.forbidden()}),coerce:[s.function().maxArity(3),s.object({method:s.function().maxArity(3).required(),from:s.array().items(s.string()).single()})],flags:s.object().pattern(l.nameRx,s.object({setter:s.string(),default:s.any()})),manifest:{build:s.function().arity(2)},messages:[s.object(),s.string()],modifiers:s.object().pattern(l.nameRx,s.function().minArity(1).maxArity(2)),overrides:s.object().pattern(l.nameRx,s.function()),prepare:s.function().maxArity(3),rebuild:s.function().arity(1),rules:s.object().pattern(l.nameRx,l.rule),terms:s.object().pattern(l.nameRx,s.object({init:s.array().allow(null).required(),manifest:s.object().pattern(/.+/,[s.valid("schema","single"),s.object({mapped:s.object({from:s.string().required(),to:s.string().required()}).required()})])})),validate:s.function().maxArity(3)}).strict(),o.extensions=s.array().items(s.object(),s.function().arity(1)).strict(),l.desc={buffer:s.object({buffer:s.string()}),func:s.object({function:s.function().required(),options:{literal:!0}}),override:s.object({override:!0}),ref:s.object({ref:s.object({type:s.valid("value","global","local"),path:s.array().required(),separator:s.string().length(1).allow(!1),ancestor:s.number().min(0).integer().allow("root"),map:s.array().items(s.array().length(2)).min(1),adjust:s.function(),iterables:s.boolean(),in:s.boolean(),render:s.boolean()}).required()}),regex:s.object({regex:s.string().min(3)}),special:s.object({special:s.valid("deep").required()}),template:s.object({template:s.string().required(),options:s.object()}),value:s.object({value:s.alternatives([s.object(),s.array()]).required()})},l.desc.entity=s.alternatives([s.array().items(s.link("...")),s.boolean(),s.function(),s.number(),s.string(),l.desc.buffer,l.desc.func,l.desc.ref,l.desc.regex,l.desc.special,l.desc.template,l.desc.value,s.link("/")]),l.desc.values=s.array().items(null,s.boolean(),s.function(),s.number().allow(1/0,-1/0),s.string().allow(""),s.symbol(),l.desc.buffer,l.desc.func,l.desc.override,l.desc.ref,l.desc.regex,l.desc.template,l.desc.value),l.desc.messages=s.object().pattern(/.+/,[s.string(),l.desc.template,s.object().pattern(/.+/,[s.string(),l.desc.template])]),o.description=s.object({type:s.string().required(),flags:s.object({cast:s.string(),default:s.any(),description:s.string(),empty:s.link("/"),failover:l.desc.entity,id:s.string(),label:s.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:s.boolean(),unit:s.string()}).unknown(),preferences:{allowUnknown:s.boolean(),abortEarly:s.boolean(),artifacts:s.boolean(),cache:s.boolean(),convert:s.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:s.boolean(),label:["path","key"],language:[s.string(),l.desc.ref],wrap:{label:l.wrap,array:l.wrap}},externals:s.boolean(),messages:l.desc.messages,noDefaults:s.boolean(),nonEnumerables:s.boolean(),presence:["required","optional","forbidden"],skipFunctions:s.boolean(),stripUnknown:s.object({arrays:s.boolean(),objects:s.boolean()}).or("arrays","objects").allow(!0,!1),warnings:s.boolean()},allow:l.desc.values,invalid:l.desc.values,rules:s.array().min(1).items({name:s.string().required(),args:s.object().min(1),keep:s.boolean(),message:[s.string(),l.desc.messages],warn:s.boolean()}),keys:s.object().pattern(/.*/,s.link("/")),link:l.desc.ref}).pattern(/^[a-z]\w*$/,s.any())},493:(a,o,r)=>{const s=r(8571),l=r(9621),f=r(8160),p={value:Symbol("value")};a.exports=p.State=class{constructor(h,v,_){this.path=h,this.ancestors=v,this.mainstay=_.mainstay,this.schemas=_.schemas,this.debug=null}localize(h,v=null,_=null){const y=new p.State(h,v,this);return _&&y.schemas&&(y.schemas=[p.schemas(_),...y.schemas]),y}nest(h,v){const _=new p.State(this.path,this.ancestors,this);return _.schemas=_.schemas&&[p.schemas(h),..._.schemas],_.debug=v,_}shadow(h,v){this.mainstay.shadow=this.mainstay.shadow||new p.Shadow,this.mainstay.shadow.set(this.path,h,v)}snapshot(){this.mainstay.shadow&&(this._snapshot=s(this.mainstay.shadow.node(this.path)))}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0)}},p.schemas=function(h){return f.isSchema(h)?{schema:h}:h},p.Shadow=class{constructor(){this._values=null}set(h,v,_){if(!h.length||_==="strip"&&typeof h[h.length-1]=="number")return;this._values=this._values||new Map;let y=this._values;for(let k=0;k<h.length;++k){const w=h[k];let D=y.get(w);D||(D=new Map,y.set(w,D)),y=D}y[p.value]=v}get(h){const v=this.node(h);if(v)return v[p.value]}node(h){if(this._values)return l(this._values,h,{iterables:!0})}override(h,v){if(!this._values)return;const _=h.slice(0,-1),y=h[h.length-1],k=l(this._values,_,{iterables:!0});v?k.set(y,v):k&&k.delete(y)}}},3328:(a,o,r)=>{function s(D,A){var L=Object.keys(D);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(D);A&&(T=T.filter(function(z){return Object.getOwnPropertyDescriptor(D,z).enumerable})),L.push.apply(L,T)}return L}function l(D,A,L){return A in D?Object.defineProperty(D,A,{value:L,enumerable:!0,configurable:!0,writable:!0}):D[A]=L,D}const f=r(375),p=r(8571),h=r(5277),v=r(1447),_=r(8160),y=r(6354),k=r(6133),w={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join(""),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};a.exports=w.Template=class{constructor(D,A){f(typeof D=="string","Template source must be a string"),f(!D.includes("\0")&&!D.includes(""),"Template source cannot contain reserved control characters"),this.source=D,this.rendered=D,this._template=null,this._settings=p(A),this._parse()}_parse(){if(!this.source.includes("{"))return;const D=w.encode(this.source),A=w.split(D);let L=!1;const T=[],z=A.shift();z&&T.push(z);for(const B of A){const W=B[0]!=="{",N=W?"}":"}}",K=B.indexOf(N);if(K===-1||B[1]==="{"){T.push("{".concat(w.decode(B)));continue}let re=B.slice(W?0:1,K);const se=re[0]===":";se&&(re=re.slice(1));const ce=this._ref(w.decode(re),{raw:W,wrapped:se});T.push(ce),typeof ce!="string"&&(L=!0);const de=B.slice(K+N.length);de&&T.push(w.decode(de))}L?this._template=T:this.rendered=T.join("")}static date(D,A){return w.dateFormat[A.dateFormat].call(D)}describe(D={}){if(!this._settings&&D.compact)return this.source;const A={template:this.source};return this._settings&&(A.options=this._settings),A}static build(D){return new w.Template(D.template,D.options)}isDynamic(){return!!this._template}static isTemplate(D){return!!D&&!!D[_.symbols.template]}refs(){if(!this._template)return;const D=[];for(const A of this._template)typeof A!="string"&&D.push(...A.refs);return D}resolve(D,A,L,T){return this._template&&this._template.length===1?this._part(this._template[0],D,A,L,T,{}):this.render(D,A,L,T)}_part(D,...A){return D.ref?D.ref.resolve(...A):D.formula.evaluate(A)}render(D,A,L,T,z={}){if(!this.isDynamic())return this.rendered;const B=[];for(const W of this._template)if(typeof W=="string")B.push(W);else{const N=this._part(W,D,A,L,T,z),K=w.stringify(N,D,A,L,T,z);if(K!==void 0){const re=W.raw||(z.errors&&z.errors.escapeHtml)===!1?K:h(K);B.push(w.wrap(re,W.wrapped&&L.errors.wrap.label))}}return B.join("")}_ref(D,{raw:A,wrapped:L}){const T=[],z=W=>{const N=k.create(W,this._settings);return T.push(N),K=>N.resolve(...K)};try{var B=new v.Parser(D,{reference:z,functions:w.functions,constants:w.constants})}catch(W){throw W.message='Invalid template variable "'.concat(D,'" fails due to: ').concat(W.message),W}if(B.single){if(B.single.type==="reference"){const W=T[0];return{ref:W,raw:A,refs:T,wrapped:L||W.type==="local"&&W.key==="label"}}return w.stringify(B.single.value)}return{formula:B,raw:A,refs:T}}toString(){return this.source}},w.Template.prototype[_.symbols.template]=!0,w.Template.prototype.isImmutable=!0,w.encode=function(D){return D.replace(/\\(\{+)/g,(A,L)=>w.opens.slice(0,L.length)).replace(/\\(\}+)/g,(A,L)=>w.closes.slice(0,L.length))},w.decode=function(D){return D.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},w.split=function(D){const A=[];let L="";for(let T=0;T<D.length;++T){const z=D[T];if(z==="{"){let B="";for(;T+1<D.length&&D[T+1]==="{";)B+="{",++T;A.push(L),L=B}else L+=z}return A.push(L),A},w.wrap=function(D,A){return A?A.length===1?"".concat(A).concat(D).concat(A):"".concat(A[0]).concat(D).concat(A[1]):D},w.stringify=function(D,A,L,T,z,B){const W=typeof D;let N=!1;if(k.isRef(D)&&D.render&&(N=D.in,D=D.resolve(A,L,T,z,function(re){for(var se=1;se<arguments.length;se++){var ce=arguments[se]!=null?arguments[se]:{};se%2?s(Object(ce),!0).forEach(function(de){l(re,de,ce[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(re,Object.getOwnPropertyDescriptors(ce)):s(Object(ce)).forEach(function(de){Object.defineProperty(re,de,Object.getOwnPropertyDescriptor(ce,de))})}return re}({in:D.in},B))),D===null)return"null";if(W==="string")return D;if(W==="number"||W==="function"||W==="symbol")return D.toString();if(W!=="object")return JSON.stringify(D);if(D instanceof Date)return w.Template.date(D,T);if(D instanceof Map){const re=[];for(const[se,ce]of D.entries())re.push("".concat(se.toString()," -> ").concat(ce.toString()));D=re}if(!Array.isArray(D))return D.toString();let K="";for(const re of D)K=K+(K.length?", ":"")+w.stringify(re,A,L,T,z,B);return N?K:w.wrap(K,T.errors.wrap.array)},w.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},w.functions={if:(D,A,L)=>D?A:L,msg(D){const[A,L,T,z,B]=this,W=B.messages;if(!W)return"";const N=y.template(A,W[0],D,L,T)||y.template(A,W[1],D,L,T);return N?N.render(A,L,T,z,B):""},number:D=>typeof D=="number"?D:typeof D=="string"?parseFloat(D):typeof D=="boolean"?D?1:0:D instanceof Date?D.getTime():null}},4946:(a,o,r)=>{const s=r(375),l=r(1687),f=r(8068),p=r(8160),h=r(3292),v=r(6354),_=r(6133),y={};a.exports=f.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:_.toSibling}},args:(k,...w)=>w.length===1&&Array.isArray(w[0])?k.try(...w[0]):k.try(...w),validate(k,w){const{schema:D,error:A,state:L,prefs:T}=w;if(D._flags.match){const B=[];for(let W=0;W<D.$_terms.matches.length;++W){const N=D.$_terms.matches[W],K=L.nest(N.schema,"match.".concat(W));K.snapshot();const re=N.schema.$_validate(k,K,T);re.errors?K.restore():B.push(re.value)}return B.length===0?{errors:A("alternatives.any")}:D._flags.match==="one"?B.length===1?{value:B[0]}:{errors:A("alternatives.one")}:B.length!==D.$_terms.matches.length?{errors:A("alternatives.all")}:D.$_terms.matches.reduce((W,N)=>W&&N.schema.type==="object",!0)?{value:B.reduce((W,N)=>l(W,N,{mergeArrays:!1}))}:{value:B[B.length-1]}}const z=[];for(let B=0;B<D.$_terms.matches.length;++B){const W=D.$_terms.matches[B];if(W.schema){const re=L.nest(W.schema,"match.".concat(B));re.snapshot();const se=W.schema.$_validate(k,re,T);if(!se.errors)return se;re.restore(),z.push({schema:W.schema,reports:se.errors});continue}const N=W.ref?W.ref.resolve(k,L,T):k,K=W.is?[W]:W.switch;for(let re=0;re<K.length;++re){const se=K[re],{is:ce,then:de,otherwise:ge}=se,Ce="match.".concat(B).concat(W.switch?"."+re:"");if(ce.$_match(N,L.nest(ce,"".concat(Ce,".is")),T)){if(de)return de.$_validate(k,L.nest(de,"".concat(Ce,".then")),T)}else if(ge)return ge.$_validate(k,L.nest(ge,"".concat(Ce,".otherwise")),T)}}return y.errors(z,w)},rules:{conditional:{method(k,w){s(!this._flags._endedSwitch,"Unreachable condition"),s(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),s(w.break===void 0,"Cannot use break option with alternatives conditional");const D=this.clone(),A=h.when(D,k,w),L=A.is?[A]:A.switch;for(const T of L)if(T.then&&T.otherwise){D.$_setFlag("_endedSwitch",!0,{clone:!1});break}return D.$_terms.matches.push(A),D.$_mutateRebuild()}},match:{method(k){if(s(["any","one","all"].includes(k),"Invalid alternatives match mode",k),k!=="any")for(const w of this.$_terms.matches)s(w.schema,"Cannot combine match mode",k,"with conditional rules");return this.$_setFlag("match",k)}},try:{method(...k){s(k.length,"Missing alternative schemas"),p.verifyFlat(k,"try"),s(!this._flags._endedSwitch,"Unreachable condition");const w=this.clone();for(const D of k)w.$_terms.matches.push({schema:w.$_compile(D)});return w.$_mutateRebuild()}}},overrides:{label(k){return this.$_parent("label",k).$_modify({each:(w,D)=>D.path[0]!=="is"?w.label(k):void 0,ref:!1})}},rebuild(k){k.$_modify({each:w=>{p.isSchema(w)&&w.type==="array"&&k.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(k,w){if(w.matches)for(const D of w.matches){const{schema:A,ref:L,is:T,not:z,then:B,otherwise:W}=D;k=A?k.try(A):L?k.conditional(L,{is:T,then:B,not:z,otherwise:W,switch:D.switch}):k.conditional(T,{then:B,otherwise:W})}return k}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),y.errors=function(k,{error:w,state:D}){if(!k.length)return{errors:w("alternatives.any")};if(k.length===1)return{errors:k[0].reports};const A=new Set,L=[];for(const{reports:T,schema:z}of k){if(T.length>1)return y.unmatched(k,w);const B=T[0];if(B instanceof v.Report==0)return y.unmatched(k,w);if(B.state.path.length!==D.path.length){L.push({type:z.type,report:B});continue}if(B.code==="any.only"){for(const K of B.local.valids)A.add(K);continue}const[W,N]=B.code.split(".");N==="base"?A.add(W):L.push({type:z.type,report:B})}return L.length?L.length===1?{errors:L[0].report}:y.unmatched(k,w):{errors:w("alternatives.types",{types:[...A]})}},y.unmatched=function(k,w){const D=[];for(const A of k)D.push(...A.reports);return{errors:w("alternatives.match",v.details(D,{override:!1}))}}},8068:(a,o,r)=>{const s=r(375),l=r(7629),f=r(8160),p=r(6914);a.exports=l.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(h,v){return s(typeof h=="function","Method must be a function"),s(v===void 0||v&&typeof v=="string","Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:h,description:v}})},validate(h,v,{method:_}){try{return _(h,v)}catch(y){return v.error("any.custom",{error:y})}},args:["method","description"],multi:!0},messages:{method(h){return this.prefs({messages:h})}},shared:{method(h){s(f.isSchema(h)&&h._flags.id,"Schema must be a schema with an id");const v=this.clone();return v.$_terms.shared=v.$_terms.shared||[],v.$_terms.shared.push(h),v.$_mutateRegister(h),v}},warning:{method(h,v){return s(h&&typeof h=="string","Invalid warning code"),this.$_addRule({name:"warning",args:{code:h,local:v},warn:!0})},validate:(h,v,{code:_,local:y})=>v.error(_,y),args:["code","local"],multi:!0}},modifiers:{keep(h,v=!0){h.keep=v},message(h,v){h.message=p.compile(v)},warn(h,v=!0){h.warn=v}},manifest:{build(h,v){for(const _ in v){const y=v[_];if(["examples","externals","metas","notes","tags"].includes(_))for(const k of y)h=h[_.slice(0,-1)](k);else if(_!=="alterations")if(_!=="whens"){if(_==="shared")for(const k of y)h=h.shared(k)}else for(const k of y){const{ref:w,is:D,not:A,then:L,otherwise:T,concat:z}=k;h=z?h.concat(z):w?h.when(w,{is:D,not:A,then:L,otherwise:T,switch:k.switch,break:k.break}):h.when(D,{then:L,otherwise:T,break:k.break})}else{const k={};for(const{target:w,adjuster:D}of y)k[w]=D;h=h.alter(k)}}return h}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(a,o,r)=>{const s=r(375),l=r(9474),f=r(9621),p=r(8068),h=r(8160),v=r(3292),_={};a.exports=p.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(y,{schema:k,state:w,prefs:D}){if(!Array.isArray(y))return;const A=k.$_getRule("sort");return A?_.sort(k,y,A.args.options,w,D):void 0}},validate(y,{schema:k,error:w}){if(!Array.isArray(y)){if(k._flags.single){const D=[y];return D[h.symbols.arraySingle]=!0,{value:D}}return{errors:w("array.base")}}if(k.$_getRule("items")||k.$_terms.externals)return{value:y.slice()}},rules:{has:{method(y){y=this.$_compile(y,{appendPath:!0});const k=this.$_addRule({name:"has",args:{schema:y}});return k.$_mutateRegister(y),k},validate(y,{state:k,prefs:w,error:D},{schema:A}){const L=[y,...k.ancestors];for(let z=0;z<y.length;++z){const B=k.localize([...k.path,z],L,A);if(A.$_match(y[z],B,w))return y}const T=A._flags.label;return T?D("array.hasKnown",{patternLabel:T}):D("array.hasUnknown",null)},multi:!0},items:{method(...y){h.verifyFlat(y,"items");const k=this.$_addRule("items");for(let w=0;w<y.length;++w){const D=h.tryWithPath(()=>this.$_compile(y[w]),w,{append:!0});k.$_terms.items.push(D)}return k.$_mutateRebuild()},validate(y,{schema:k,error:w,state:D,prefs:A,errorsArray:L}){const T=k.$_terms._requireds.slice(),z=k.$_terms.ordered.slice(),B=[...k.$_terms._inclusions,...T],W=!y[h.symbols.arraySingle];delete y[h.symbols.arraySingle];const N=L();let K=y.length;for(let re=0;re<K;++re){const se=y[re];let ce=!1,de=!1;const ge=W?re:new Number(re),Ce=[...D.path,ge];if(!k._flags.sparse&&se===void 0){if(N.push(w("array.sparse",{key:ge,path:Ce,pos:re,value:void 0},D.localize(Ce))),A.abortEarly)return N;z.shift();continue}const Oe=[y,...D.ancestors];for(const Te of k.$_terms._exclusions)if(Te.$_match(se,D.localize(Ce,Oe,Te),A,{presence:"ignore"})){if(N.push(w("array.excludes",{pos:re,value:se},D.localize(Ce))),A.abortEarly)return N;ce=!0,z.shift();break}if(ce)continue;if(k.$_terms.ordered.length){if(z.length){const Te=z.shift(),it=Te.$_validate(se,D.localize(Ce,Oe,Te),A);if(it.errors){if(N.push(...it.errors),A.abortEarly)return N}else if(Te._flags.result==="strip")_.fastSplice(y,re),--re,--K;else{if(!k._flags.sparse&&it.value===void 0){if(N.push(w("array.sparse",{key:ge,path:Ce,pos:re,value:void 0},D.localize(Ce))),A.abortEarly)return N;continue}y[re]=it.value}continue}if(!k.$_terms.items.length){if(N.push(w("array.orderedLength",{pos:re,limit:k.$_terms.ordered.length})),A.abortEarly)return N;break}}const Ve=[];let Ye=T.length;for(let Te=0;Te<Ye;++Te){const it=D.localize(Ce,Oe,T[Te]);it.snapshot();const Le=T[Te].$_validate(se,it,A);if(Ve[Te]=Le,!Le.errors){if(y[re]=Le.value,de=!0,_.fastSplice(T,Te),--Te,--Ye,!k._flags.sparse&&Le.value===void 0&&(N.push(w("array.sparse",{key:ge,path:Ce,pos:re,value:void 0},D.localize(Ce))),A.abortEarly))return N;break}it.restore()}if(de)continue;const ot=A.stripUnknown&&!!A.stripUnknown.arrays||!1;Ye=B.length;for(const Te of B){let it;const Le=T.indexOf(Te);if(Le!==-1)it=Ve[Le];else{const De=D.localize(Ce,Oe,Te);if(De.snapshot(),it=Te.$_validate(se,De,A),!it.errors){Te._flags.result==="strip"?(_.fastSplice(y,re),--re,--K):k._flags.sparse||it.value!==void 0?y[re]=it.value:(N.push(w("array.sparse",{key:ge,path:Ce,pos:re,value:void 0},D.localize(Ce))),ce=!0),de=!0;break}De.restore()}if(Ye===1){if(ot){_.fastSplice(y,re),--re,--K,de=!0;break}if(N.push(...it.errors),A.abortEarly)return N;ce=!0;break}}if(!ce&&(k.$_terms._inclusions.length||k.$_terms._requireds.length)&&!de){if(ot){_.fastSplice(y,re),--re,--K;continue}if(N.push(w("array.includes",{pos:re,value:se},D.localize(Ce))),A.abortEarly)return N}}return T.length&&_.fillMissedErrors(k,N,T,y,D,A),z.length&&(_.fillOrderedErrors(k,N,z,y,D,A),N.length||_.fillDefault(z,y,D,A)),N.length?N:y},priority:!0,manifest:!1},length:{method(y){return this.$_addRule({name:"length",args:{limit:y},operator:"="})},validate:(y,k,{limit:w},{name:D,operator:A,args:L})=>h.compare(y.length,w,A)?y:k.error("array."+D,{limit:L.limit,value:y}),args:[{name:"limit",ref:!0,assert:h.limit,message:"must be a positive integer"}]},max:{method(y){return this.$_addRule({name:"max",method:"length",args:{limit:y},operator:"<="})}},min:{method(y){return this.$_addRule({name:"min",method:"length",args:{limit:y},operator:">="})}},ordered:{method(...y){h.verifyFlat(y,"ordered");const k=this.$_addRule("items");for(let w=0;w<y.length;++w){const D=h.tryWithPath(()=>this.$_compile(y[w]),w,{append:!0});_.validateSingle(D,k),k.$_mutateRegister(D),k.$_terms.ordered.push(D)}return k.$_mutateRebuild()}},single:{method(y){const k=y===void 0||!!y;return s(!k||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",k)}},sort:{method(y={}){h.assertOptions(y,["by","order"]);const k={order:y.order||"ascending"};return y.by&&(k.by=v.ref(y.by,{ancestor:0}),s(!k.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:k}})},validate(y,{error:k,state:w,prefs:D,schema:A},{options:L}){const{value:T,errors:z}=_.sort(A,y,L,w,D);if(z)return z;for(let B=0;B<y.length;++B)if(y[B]!==T[B])return k("array.sort",{order:L.order,by:L.by?L.by.key:"value"});return y},convert:!0},sparse:{method(y){const k=y===void 0||!!y;return this._flags.sparse===k?this:(k?this.clone():this.$_addRule("items")).$_setFlag("sparse",k,{clone:!1})}},unique:{method(y,k={}){s(!y||typeof y=="function"||typeof y=="string","comparator must be a function or a string"),h.assertOptions(k,["ignoreUndefined","separator"]);const w={name:"unique",args:{options:k,comparator:y}};if(y)if(typeof y=="string"){const D=h.default(k.separator,".");w.path=D?y.split(D):[y]}else w.comparator=y;return this.$_addRule(w)},validate(y,{state:k,error:w,schema:D},{comparator:A,options:L},{comparator:T,path:z}){const B={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},W=T||l,N=L.ignoreUndefined;for(let K=0;K<y.length;++K){const re=z?f(y[K],z):y[K],se=T?B.custom:B[typeof re];if(s(se,"Failed to find unique map container for type",typeof re),se instanceof Map){const ce=se.entries();let de;for(;!(de=ce.next()).done;)if(W(de.value[0],re)){const ge=k.localize([...k.path,K],[y,...k.ancestors]),Ce={pos:K,value:y[K],dupePos:de.value[1],dupeValue:y[de.value[1]]};return z&&(Ce.path=A),w("array.unique",Ce,ge)}se.set(re,K)}else{if((!N||re!==void 0)&&se[re]!==void 0){const ce={pos:K,value:y[K],dupePos:se[re],dupeValue:y[se[re]]};return z&&(ce.path=A),w("array.unique",ce,k.localize([...k.path,K],[y,...k.ancestors]))}se[re]=K}}return y},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:(y,k)=>new Set(y)}},rebuild(y){y.$_terms._inclusions=[],y.$_terms._exclusions=[],y.$_terms._requireds=[];for(const k of y.$_terms.items)_.validateSingle(k,y),k._flags.presence==="required"?y.$_terms._requireds.push(k):k._flags.presence==="forbidden"?y.$_terms._exclusions.push(k):y.$_terms._inclusions.push(k);for(const k of y.$_terms.ordered)_.validateSingle(k,y)},manifest:{build:(y,k)=>(k.items&&(y=y.items(...k.items)),k.ordered&&(y=y.ordered(...k.ordered)),y)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),_.fillMissedErrors=function(y,k,w,D,A,L){const T=[];let z=0;for(const B of w){const W=B._flags.label;W?T.push(W):++z}T.length?z?k.push(y.$_createError("array.includesRequiredBoth",D,{knownMisses:T,unknownMisses:z},A,L)):k.push(y.$_createError("array.includesRequiredKnowns",D,{knownMisses:T},A,L)):k.push(y.$_createError("array.includesRequiredUnknowns",D,{unknownMisses:z},A,L))},_.fillOrderedErrors=function(y,k,w,D,A,L){const T=[];for(const z of w)z._flags.presence==="required"&&T.push(z);T.length&&_.fillMissedErrors(y,k,T,D,A,L)},_.fillDefault=function(y,k,w,D){const A=[];let L=!0;for(let T=y.length-1;T>=0;--T){const z=y[T],B=[k,...w.ancestors],W=z.$_validate(void 0,w.localize(w.path,B,z),D).value;if(L){if(W===void 0)continue;L=!1}A.unshift(W)}A.length&&k.push(...A)},_.fastSplice=function(y,k){let w=k;for(;w<y.length;)y[w++]=y[w];--y.length},_.validateSingle=function(y,k){(y.type==="array"||y._flags._arrayItems)&&(s(!k._flags.single,"Cannot specify array item with single rule enabled"),k.$_setFlag("_arrayItems",!0,{clone:!1}))},_.sort=function(y,k,w,D,A){const L=w.order==="ascending"?1:-1,T=-1*L,z=L,B=(W,N)=>{let K=_.compare(W,N,T,z);if(K!==null||(w.by&&(W=w.by.resolve(W,D,A),N=w.by.resolve(N,D,A)),K=_.compare(W,N,T,z),K!==null))return K;const re=typeof W;if(re!==typeof N)throw y.$_createError("array.sort.mismatching",k,null,D,A);if(re!=="number"&&re!=="string")throw y.$_createError("array.sort.unsupported",k,{type:re},D,A);return re==="number"?(W-N)*L:W<N?T:z};try{return{value:k.slice().sort(B)}}catch(W){return{errors:W}}},_.compare=function(y,k,w,D){return y===k?0:y===void 0?1:k===void 0?-1:y===null?D:k===null?w:null}},4937:(a,o,r)=>{const s=r(375),l=r(8068),f=r(8160),p=r(2036),h={isBool:function(v){return typeof v=="boolean"}};a.exports=l.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(v,{schema:_}){if(typeof v!="boolean"){if(typeof v=="string"){const y=_._flags.sensitive?v:v.toLowerCase();v=y==="true"||y!=="false"&&v}return typeof v!="boolean"&&(v=_.$_terms.truthy&&_.$_terms.truthy.has(v,null,null,!_._flags.sensitive)||(!_.$_terms.falsy||!_.$_terms.falsy.has(v,null,null,!_._flags.sensitive))&&v),{value:v}}},validate(v,{error:_}){if(typeof v!="boolean")return{value:v,errors:_("boolean.base")}},rules:{truthy:{method(...v){f.verifyFlat(v,"truthy");const _=this.clone();_.$_terms.truthy=_.$_terms.truthy||new p;for(let y=0;y<v.length;++y){const k=v[y];s(k!==void 0,"Cannot call truthy with undefined"),_.$_terms.truthy.add(k)}return _}},falsy:{method(...v){f.verifyFlat(v,"falsy");const _=this.clone();_.$_terms.falsy=_.$_terms.falsy||new p;for(let y=0;y<v.length;++y){const k=v[y];s(k!==void 0,"Cannot call falsy with undefined"),_.$_terms.falsy.add(k)}return _}},sensitive:{method(v=!0){return this.$_setFlag("sensitive",v)}}},cast:{number:{from:h.isBool,to:(v,_)=>v?1:0},string:{from:h.isBool,to:(v,_)=>v?"true":"false"}},manifest:{build:(v,_)=>(_.truthy&&(v=v.truthy(..._.truthy)),_.falsy&&(v=v.falsy(..._.falsy)),v)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(a,o,r)=>{const s=r(375),l=r(8068),f=r(8160),p=r(3328),h={isDate:function(v){return v instanceof Date}};a.exports=l.extend({type:"date",coerce:{from:["number","string"],method:(v,{schema:_})=>({value:h.parse(v,_._flags.format)||v})},validate(v,{schema:_,error:y,prefs:k}){if(v instanceof Date&&!isNaN(v.getTime()))return;const w=_._flags.format;return k.convert&&w&&typeof v=="string"?{value:v,errors:y("date.format",{format:w})}:{value:v,errors:y("date.base")}},rules:{compare:{method:!1,validate(v,_,{date:y},{name:k,operator:w,args:D}){const A=y==="now"?Date.now():y.getTime();return f.compare(v.getTime(),A,w)?v:_.error("date."+k,{limit:D.date,value:v})},args:[{name:"date",ref:!0,normalize:v=>v==="now"?v:h.parse(v),assert:v=>v!==null,message:"must have a valid date format"}]},format:{method(v){return s(["iso","javascript","unix"].includes(v),"Unknown date format",v),this.$_setFlag("format",v)}},greater:{method(v){return this.$_addRule({name:"greater",method:"compare",args:{date:v},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(v){return this.$_addRule({name:"less",method:"compare",args:{date:v},operator:"<"})}},max:{method(v){return this.$_addRule({name:"max",method:"compare",args:{date:v},operator:"<="})}},min:{method(v){return this.$_addRule({name:"min",method:"compare",args:{date:v},operator:">="})}},timestamp:{method(v="javascript"){return s(["javascript","unix"].includes(v),'"type" must be one of "javascript, unix"'),this.format(v)}}},cast:{number:{from:h.isDate,to:(v,_)=>v.getTime()},string:{from:h.isDate,to:(v,{prefs:_})=>p.date(v,_)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),h.parse=function(v,_){if(v instanceof Date)return v;if(typeof v!="string"&&(isNaN(v)||!isFinite(v))||/^\s*$/.test(v))return null;if(_==="iso")return f.isIsoDate(v)?h.date(v.toString()):null;const y=v;if(typeof v=="string"&&/^[+-]?\d+(\.\d+)?$/.test(v)&&(v=parseFloat(v)),_){if(_==="javascript")return h.date(1*v);if(_==="unix")return h.date(1e3*v);if(typeof y=="string")return null}return h.date(v)},h.date=function(v){const _=new Date(v);return isNaN(_.getTime())?null:_}},390:(a,o,r)=>{const s=r(375),l=r(7824);a.exports=l.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(f){return s(Number.isSafeInteger(f)&&f>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:f}})},validate:(f,p,{n:h})=>f.length===h?f:p.error("function.arity",{n:h})},class:{method(){return this.$_addRule("class")},validate:(f,p)=>/^\s*class\s/.test(f.toString())?f:p.error("function.class",{value:f})},minArity:{method(f){return s(Number.isSafeInteger(f)&&f>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:f}})},validate:(f,p,{n:h})=>f.length>=h?f:p.error("function.minArity",{n:h})},maxArity:{method(f){return s(Number.isSafeInteger(f)&&f>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:f}})},validate:(f,p,{n:h})=>f.length<=h?f:p.error("function.maxArity",{n:h})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(a,o,r)=>{const s=r(978),l=r(375),f=r(8571),p=r(3652),h=r(8068),v=r(8160),_=r(3292),y=r(6354),k=r(6133),w=r(3328),D={renameDefaults:{alias:!1,multiple:!1,override:!1}};a.exports=h.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(A,L)=>A.keys(L),validate(A,{schema:L,error:T,state:z,prefs:B}){if(!A||typeof A!==L.$_property("typeof")||Array.isArray(A))return{value:A,errors:T("object.base",{type:L.$_property("typeof")})};if(!(L.$_terms.renames||L.$_terms.dependencies||L.$_terms.keys||L.$_terms.patterns||L.$_terms.externals))return;A=D.clone(A,B);const W=[];if(L.$_terms.renames&&!D.rename(L,A,z,B,W))return{value:A,errors:W};if(!L.$_terms.keys&&!L.$_terms.patterns&&!L.$_terms.dependencies)return{value:A,errors:W};const N=new Set(Object.keys(A));if(L.$_terms.keys){const K=[A,...z.ancestors];for(const re of L.$_terms.keys){const se=re.key,ce=A[se];N.delete(se);const de=z.localize([...z.path,se],K,re),ge=re.schema.$_validate(ce,de,B);if(ge.errors){if(B.abortEarly)return{value:A,errors:ge.errors};ge.value!==void 0&&(A[se]=ge.value),W.push(...ge.errors)}else re.schema._flags.result==="strip"||ge.value===void 0&&ce!==void 0?delete A[se]:ge.value!==void 0&&(A[se]=ge.value)}}if(N.size||L._flags._hasPatternMatch){const K=D.unknown(L,A,N,W,z,B);if(K)return K}if(L.$_terms.dependencies)for(const K of L.$_terms.dependencies){if(K.key&&K.key.resolve(A,z,B,null,{shadow:!1})===void 0)continue;const re=D.dependencies[K.rel](L,K,A,z,B);if(re){const se=L.$_createError(re.code,A,re.context,z,B);if(B.abortEarly)return{value:A,errors:se};W.push(se)}}return{value:A,errors:W}},rules:{and:{method(...A){return v.verifyFlat(A,"and"),D.dependency(this,"and",null,A)}},append:{method(A){return A==null||Object.keys(A).length===0?this:this.keys(A)}},assert:{method(A,L,T){w.isTemplate(A)||(A=_.ref(A)),l(T===void 0||typeof T=="string","Message must be a string"),L=this.$_compile(L,{appendPath:!0});const z=this.$_addRule({name:"assert",args:{subject:A,schema:L,message:T}});return z.$_mutateRegister(A),z.$_mutateRegister(L),z},validate(A,{error:L,prefs:T,state:z},{subject:B,schema:W,message:N}){const K=B.resolve(A,z,T),re=k.isRef(B)?B.absolute(z):[];return W.$_match(K,z.localize(re,[A,...z.ancestors],W),T)?A:L("object.assert",{subject:B,message:N})},args:["subject","schema","message"],multi:!0},instance:{method(A,L){return l(typeof A=="function","constructor must be a function"),L=L||A.name,this.$_addRule({name:"instance",args:{constructor:A,name:L}})},validate:(A,L,{constructor:T,name:z})=>A instanceof T?A:L.error("object.instance",{type:z,value:A}),args:["constructor","name"]},keys:{method(A){l(A===void 0||typeof A=="object","Object schema must be a valid object"),l(!v.isSchema(A),"Object schema cannot be a joi schema");const L=this.clone();if(A)if(Object.keys(A).length){L.$_terms.keys=L.$_terms.keys?L.$_terms.keys.filter(T=>!A.hasOwnProperty(T.key)):new D.Keys;for(const T in A)v.tryWithPath(()=>L.$_terms.keys.push({key:T,schema:this.$_compile(A[T])}),T)}else L.$_terms.keys=new D.Keys;else L.$_terms.keys=null;return L.$_mutateRebuild()}},length:{method(A){return this.$_addRule({name:"length",args:{limit:A},operator:"="})},validate:(A,L,{limit:T},{name:z,operator:B,args:W})=>v.compare(Object.keys(A).length,T,B)?A:L.error("object."+z,{limit:W.limit,value:A}),args:[{name:"limit",ref:!0,assert:v.limit,message:"must be a positive integer"}]},max:{method(A){return this.$_addRule({name:"max",method:"length",args:{limit:A},operator:"<="})}},min:{method(A){return this.$_addRule({name:"min",method:"length",args:{limit:A},operator:">="})}},nand:{method(...A){return v.verifyFlat(A,"nand"),D.dependency(this,"nand",null,A)}},or:{method(...A){return v.verifyFlat(A,"or"),D.dependency(this,"or",null,A)}},oxor:{method(...A){return D.dependency(this,"oxor",null,A)}},pattern:{method(A,L,T={}){const z=A instanceof RegExp;z||(A=this.$_compile(A,{appendPath:!0})),l(L!==void 0,"Invalid rule"),v.assertOptions(T,["fallthrough","matches"]),z&&l(!A.flags.includes("g")&&!A.flags.includes("y"),"pattern should not use global or sticky mode"),L=this.$_compile(L,{appendPath:!0});const B=this.clone();B.$_terms.patterns=B.$_terms.patterns||[];const W={[z?"regex":"schema"]:A,rule:L};return T.matches&&(W.matches=this.$_compile(T.matches),W.matches.type!=="array"&&(W.matches=W.matches.$_root.array().items(W.matches)),B.$_mutateRegister(W.matches),B.$_setFlag("_hasPatternMatch",!0,{clone:!1})),T.fallthrough&&(W.fallthrough=!0),B.$_terms.patterns.push(W),B.$_mutateRegister(L),B}},ref:{method(){return this.$_addRule("ref")},validate:(A,L)=>k.isRef(A)?A:L.error("object.refType",{value:A})},regex:{method(){return this.$_addRule("regex")},validate:(A,L)=>A instanceof RegExp?A:L.error("object.regex",{value:A})},rename:{method(A,L,T={}){l(typeof A=="string"||A instanceof RegExp,"Rename missing the from argument"),l(typeof L=="string"||L instanceof w,"Invalid rename to argument"),l(L!==A,"Cannot rename key to same name:",A),v.assertOptions(T,["alias","ignoreUndefined","override","multiple"]);const z=this.clone();z.$_terms.renames=z.$_terms.renames||[];for(const B of z.$_terms.renames)l(B.from!==A,"Cannot rename the same key multiple times");return L instanceof w&&z.$_mutateRegister(L),z.$_terms.renames.push({from:A,to:L,options:s(D.renameDefaults,T)}),z}},schema:{method(A="any"){return this.$_addRule({name:"schema",args:{type:A}})},validate:(A,L,{type:T})=>!v.isSchema(A)||T!=="any"&&A.type!==T?L.error("object.schema",{type:T}):A},unknown:{method(A){return this.$_setFlag("unknown",A!==!1)}},with:{method(A,L,T={}){return D.dependency(this,"with",A,L,T)}},without:{method(A,L,T={}){return D.dependency(this,"without",A,L,T)}},xor:{method(...A){return v.verifyFlat(A,"xor"),D.dependency(this,"xor",null,A)}}},overrides:{default(A,L){return A===void 0&&(A=v.symbols.deepDefault),this.$_parent("default",A,L)}},rebuild(A){if(A.$_terms.keys){const L=new p.Sorter;for(const T of A.$_terms.keys)v.tryWithPath(()=>L.add(T,{after:T.schema.$_rootReferences(),group:T.key}),T.key);A.$_terms.keys=new D.Keys(...L.nodes)}},manifest:{build(A,L){if(L.keys&&(A=A.keys(L.keys)),L.dependencies)for(const{rel:T,key:z=null,peers:B,options:W}of L.dependencies)A=D.dependency(A,T,z,B,W);if(L.patterns)for(const{regex:T,schema:z,rule:B,fallthrough:W,matches:N}of L.patterns)A=A.pattern(T||z,B,{fallthrough:W,matches:N});if(L.renames)for(const{from:T,to:z,options:B}of L.renames)A=A.rename(T,z,B);return A}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),D.clone=function(A,L){if(typeof A=="object"){if(L.nonEnumerables)return f(A,{shallow:!0});const z=Object.create(Object.getPrototypeOf(A));return Object.assign(z,A),z}const T=function(...z){return A.apply(this,z)};return T.prototype=f(A.prototype),Object.defineProperty(T,"name",{value:A.name,writable:!1}),Object.defineProperty(T,"length",{value:A.length,writable:!1}),Object.assign(T,A),T},D.dependency=function(A,L,T,z,B){l(T===null||typeof T=="string",L,"key must be a strings"),B||(B=z.length>1&&typeof z[z.length-1]=="object"?z.pop():{}),v.assertOptions(B,["separator"]),z=[].concat(z);const W=v.default(B.separator,"."),N=[];for(const re of z)l(typeof re=="string",L,"peers must be strings"),N.push(_.ref(re,{separator:W,ancestor:0,prefix:!1}));T!==null&&(T=_.ref(T,{separator:W,ancestor:0,prefix:!1}));const K=A.clone();return K.$_terms.dependencies=K.$_terms.dependencies||[],K.$_terms.dependencies.push(new D.Dependency(L,T,N,z)),K},D.dependencies={and(A,L,T,z,B){const W=[],N=[],K=L.peers.length;for(const re of L.peers)re.resolve(T,z,B,null,{shadow:!1})===void 0?W.push(re.key):N.push(re.key);if(W.length!==K&&N.length!==K)return{code:"object.and",context:{present:N,presentWithLabels:D.keysToLabels(A,N),missing:W,missingWithLabels:D.keysToLabels(A,W)}}},nand(A,L,T,z,B){const W=[];for(const re of L.peers)re.resolve(T,z,B,null,{shadow:!1})!==void 0&&W.push(re.key);if(W.length!==L.peers.length)return;const N=L.paths[0],K=L.paths.slice(1);return{code:"object.nand",context:{main:N,mainWithLabel:D.keysToLabels(A,N),peers:K,peersWithLabels:D.keysToLabels(A,K)}}},or(A,L,T,z,B){for(const W of L.peers)if(W.resolve(T,z,B,null,{shadow:!1})!==void 0)return;return{code:"object.missing",context:{peers:L.paths,peersWithLabels:D.keysToLabels(A,L.paths)}}},oxor(A,L,T,z,B){const W=[];for(const K of L.peers)K.resolve(T,z,B,null,{shadow:!1})!==void 0&&W.push(K.key);if(!W.length||W.length===1)return;const N={peers:L.paths,peersWithLabels:D.keysToLabels(A,L.paths)};return N.present=W,N.presentWithLabels=D.keysToLabels(A,W),{code:"object.oxor",context:N}},with(A,L,T,z,B){for(const W of L.peers)if(W.resolve(T,z,B,null,{shadow:!1})===void 0)return{code:"object.with",context:{main:L.key.key,mainWithLabel:D.keysToLabels(A,L.key.key),peer:W.key,peerWithLabel:D.keysToLabels(A,W.key)}}},without(A,L,T,z,B){for(const W of L.peers)if(W.resolve(T,z,B,null,{shadow:!1})!==void 0)return{code:"object.without",context:{main:L.key.key,mainWithLabel:D.keysToLabels(A,L.key.key),peer:W.key,peerWithLabel:D.keysToLabels(A,W.key)}}},xor(A,L,T,z,B){const W=[];for(const K of L.peers)K.resolve(T,z,B,null,{shadow:!1})!==void 0&&W.push(K.key);if(W.length===1)return;const N={peers:L.paths,peersWithLabels:D.keysToLabels(A,L.paths)};return W.length===0?{code:"object.missing",context:N}:(N.present=W,N.presentWithLabels=D.keysToLabels(A,W),{code:"object.xor",context:N})}},D.keysToLabels=function(A,L){return Array.isArray(L)?L.map(T=>A.$_mapLabels(T)):A.$_mapLabels(L)},D.rename=function(A,L,T,z,B){const W={};for(const N of A.$_terms.renames){const K=[],re=typeof N.from!="string";if(re)for(const se in L){if(L[se]===void 0&&N.options.ignoreUndefined||se===N.to)continue;const ce=N.from.exec(se);ce&&K.push({from:se,to:N.to,match:ce})}else!Object.prototype.hasOwnProperty.call(L,N.from)||L[N.from]===void 0&&N.options.ignoreUndefined||K.push(N);for(const se of K){const ce=se.from;let de=se.to;if(de instanceof w&&(de=de.render(L,T,z,se.match)),ce!==de){if(!N.options.multiple&&W[de]&&(B.push(A.$_createError("object.rename.multiple",L,{from:ce,to:de,pattern:re},T,z)),z.abortEarly)||Object.prototype.hasOwnProperty.call(L,de)&&!N.options.override&&!W[de]&&(B.push(A.$_createError("object.rename.override",L,{from:ce,to:de,pattern:re},T,z)),z.abortEarly))return!1;L[ce]===void 0?delete L[de]:L[de]=L[ce],W[de]=!0,N.options.alias||delete L[ce]}}}return!0},D.unknown=function(A,L,T,z,B,W){if(A.$_terms.patterns){let N=!1;const K=A.$_terms.patterns.map(se=>{if(se.matches)return N=!0,[]}),re=[L,...B.ancestors];for(const se of T){const ce=L[se],de=[...B.path,se];for(let ge=0;ge<A.$_terms.patterns.length;++ge){const Ce=A.$_terms.patterns[ge];if(Ce.regex){const Ye=Ce.regex.test(se);if(B.mainstay.tracer.debug(B,"rule","pattern.".concat(ge),Ye?"pass":"error"),!Ye)continue}else if(!Ce.schema.$_match(se,B.nest(Ce.schema,"pattern.".concat(ge)),W))continue;T.delete(se);const Oe=B.localize(de,re,{schema:Ce.rule,key:se}),Ve=Ce.rule.$_validate(ce,Oe,W);if(Ve.errors){if(W.abortEarly)return{value:L,errors:Ve.errors};z.push(...Ve.errors)}if(Ce.matches&&K[ge].push(se),L[se]=Ve.value,!Ce.fallthrough)break}}if(N)for(let se=0;se<K.length;++se){const ce=K[se];if(!ce)continue;const de=A.$_terms.patterns[se].matches,ge=B.localize(B.path,re,de),Ce=de.$_validate(ce,ge,W);if(Ce.errors){const Oe=y.details(Ce.errors,{override:!1});Oe.matches=ce;const Ve=A.$_createError("object.pattern.match",L,Oe,B,W);if(W.abortEarly)return{value:L,errors:Ve};z.push(Ve)}}}if(T.size&&(A.$_terms.keys||A.$_terms.patterns)){if(W.stripUnknown&&!A._flags.unknown||W.skipFunctions){const N=!(!W.stripUnknown||W.stripUnknown!==!0&&!W.stripUnknown.objects);for(const K of T)N?(delete L[K],T.delete(K)):typeof L[K]=="function"&&T.delete(K)}if(!v.default(A._flags.unknown,W.allowUnknown))for(const N of T){const K=B.localize([...B.path,N],[]),re=A.$_createError("object.unknown",L[N],{child:N},K,W,{flags:!1});if(W.abortEarly)return{value:L,errors:re};z.push(re)}}},D.Dependency=class{constructor(A,L,T,z){this.rel=A,this.key=L,this.peers=T,this.paths=z}describe(){const A={rel:this.rel,peers:this.paths};return this.key!==null&&(A.key=this.key.key),this.peers[0].separator!=="."&&(A.options={separator:this.peers[0].separator}),A}},D.Keys=class extends Array{concat(A){const L=this.slice(),T=new Map;for(let z=0;z<L.length;++z)T.set(L[z].key,z);for(const z of A){const B=z.key,W=T.get(B);W!==void 0?L[W]={key:B,schema:L[W].schema.concat(z.schema)}:L.push(z)}return L}}},8785:(a,o,r)=>{const s=r(375),l=r(8068),f=r(8160),p=r(3292),h=r(6354),v={};a.exports=l.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(_,y)=>_.ref(y),validate(_,{schema:y,state:k,prefs:w}){s(y.$_terms.link,"Uninitialized link schema");const D=v.generate(y,_,k,w),A=y.$_terms.link[0].ref;return D.$_validate(_,k.nest(D,"link:".concat(A.display,":").concat(D.type)),w)},generate:(_,y,k,w)=>v.generate(_,y,k,w),rules:{ref:{method(_){s(!this.$_terms.link,"Cannot reinitialize schema"),_=p.ref(_),s(_.type==="value"||_.type==="local","Invalid reference type:",_.type),s(_.type==="local"||_.ancestor==="root"||_.ancestor>0,"Link cannot reference itself");const y=this.clone();return y.$_terms.link=[{ref:_}],y}},relative:{method(_=!0){return this.$_setFlag("relative",_)}}},overrides:{concat(_){s(this.$_terms.link,"Uninitialized link schema"),s(f.isSchema(_),"Invalid schema object"),s(_.type!=="link","Cannot merge type link with another link");const y=this.clone();return y.$_terms.whens||(y.$_terms.whens=[]),y.$_terms.whens.push({concat:_}),y.$_mutateRebuild()}},manifest:{build:(_,y)=>(s(y.link,"Invalid link description missing link"),_.ref(y.link))}}),v.generate=function(_,y,k,w){let D=k.mainstay.links.get(_);if(D)return D._generate(y,k,w).schema;const A=_.$_terms.link[0].ref,{perspective:L,path:T}=v.perspective(A,k);v.assert(L,"which is outside of schema boundaries",A,_,k,w);try{D=T.length?L.$_reach(T):L}catch{v.assert(!1,"to non-existing schema",A,_,k,w)}return v.assert(D.type!=="link","which is another link",A,_,k,w),_._flags.relative||k.mainstay.links.set(_,D),D._generate(y,k,w).schema},v.perspective=function(_,y){if(_.type==="local"){for(const{schema:k,key:w}of y.schemas){if((k._flags.id||w)===_.path[0])return{perspective:k,path:_.path.slice(1)};if(k.$_terms.shared){for(const D of k.$_terms.shared)if(D._flags.id===_.path[0])return{perspective:D,path:_.path.slice(1)}}}return{perspective:null,path:null}}return _.ancestor==="root"?{perspective:y.schemas[y.schemas.length-1].schema,path:_.path}:{perspective:y.schemas[_.ancestor]&&y.schemas[_.ancestor].schema,path:_.path}},v.assert=function(_,y,k,w,D,A){_||s(!1,'"'.concat(h.label(w._flags,D,A),'" contains link reference "').concat(k.display,'" ').concat(y))}},3832:(a,o,r)=>{const s=r(375),l=r(8068),f=r(8160),p={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/};a.exports=l.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(h,{schema:v,error:_}){const y=h.match(p.numberRx);if(!y)return;h=h.trim();const k={value:parseFloat(h)};if(k.value===0&&(k.value=0),!v._flags.unsafe)if(h.match(/e/i)){if(p.normalizeExponent("".concat(k.value/Math.pow(10,y[1]),"e").concat(y[1]))!==p.normalizeExponent(h))return k.errors=_("number.unsafe"),k}else{const w=k.value.toString();if(w.match(/e/i))return k;if(w!==p.normalizeDecimal(h))return k.errors=_("number.unsafe"),k}return k}},validate(h,{schema:v,error:_,prefs:y}){if(h===1/0||h===-1/0)return{value:h,errors:_("number.infinity")};if(!f.isNumber(h))return{value:h,errors:_("number.base")};const k={value:h};if(y.convert){const w=v.$_getRule("precision");if(w){const D=Math.pow(10,w.args.limit);k.value=Math.round(k.value*D)/D}}return k.value===0&&(k.value=0),!v._flags.unsafe&&(h>Number.MAX_SAFE_INTEGER||h<Number.MIN_SAFE_INTEGER)&&(k.errors=_("number.unsafe")),k},rules:{compare:{method:!1,validate:(h,v,{limit:_},{name:y,operator:k,args:w})=>f.compare(h,_,k)?h:v.error("number."+y,{limit:w.limit,value:h}),args:[{name:"limit",ref:!0,assert:f.isNumber,message:"must be a number"}]},greater:{method(h){return this.$_addRule({name:"greater",method:"compare",args:{limit:h},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(h,v)=>Math.trunc(h)-h==0?h:v.error("number.integer")},less:{method(h){return this.$_addRule({name:"less",method:"compare",args:{limit:h},operator:"<"})}},max:{method(h){return this.$_addRule({name:"max",method:"compare",args:{limit:h},operator:"<="})}},min:{method(h){return this.$_addRule({name:"min",method:"compare",args:{limit:h},operator:">="})}},multiple:{method(h){return this.$_addRule({name:"multiple",args:{base:h}})},validate:(h,v,{base:_},y)=>h%_==0?h:v.error("number.multiple",{multiple:y.args.base,value:h}),args:[{name:"base",ref:!0,assert:h=>typeof h=="number"&&isFinite(h)&&h>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(h,v)=>Number.isSafeInteger(h)&&h>=0&&h<=65535?h:v.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(h){return s(Number.isSafeInteger(h),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:h}})},validate(h,v,{limit:_}){const y=h.toString().match(p.precisionRx);return Math.max((y[1]?y[1].length:0)-(y[2]?parseInt(y[2],10):0),0)<=_?h:v.error("number.precision",{limit:_,value:h})},convert:!0},sign:{method(h){return s(["negative","positive"].includes(h),"Invalid sign",h),this.$_addRule({name:"sign",args:{sign:h}})},validate:(h,v,{sign:_})=>_==="negative"&&h<0||_==="positive"&&h>0?h:v.error("number.".concat(_))},unsafe:{method(h=!0){return s(typeof h=="boolean","enabled must be a boolean"),this.$_setFlag("unsafe",h)}}},cast:{string:{from:h=>typeof h=="number",to:(h,v)=>h.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),p.normalizeExponent=function(h){return h.replace(/E/,"e").replace(/\.(\d*[1-9])?0+e/,".$1e").replace(/\.e/,"e").replace(/e\+/,"e").replace(/^\+/,"").replace(/^(-?)0+([1-9])/,"$1$2")},p.normalizeDecimal=function(h){return(h=h.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&h.endsWith("0")&&(h=h.replace(/0+$/,"")),h==="-0"?"0":h}},8966:(a,o,r)=>{const s=r(7824);a.exports=s.extend({type:"object",cast:{map:{from:l=>l&&typeof l=="object",to:(l,f)=>new Map(Object.entries(l))}}})},7417:(a,o,r)=>{function s(T,z){var B=Object.keys(T);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(T);z&&(W=W.filter(function(N){return Object.getOwnPropertyDescriptor(T,N).enumerable})),B.push.apply(B,W)}return B}function l(T){for(var z=1;z<arguments.length;z++){var B=arguments[z]!=null?arguments[z]:{};z%2?s(Object(B),!0).forEach(function(W){f(T,W,B[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(B)):s(Object(B)).forEach(function(W){Object.defineProperty(T,W,Object.getOwnPropertyDescriptor(B,W))})}return T}function f(T,z,B){return z in T?Object.defineProperty(T,z,{value:B,enumerable:!0,configurable:!0,writable:!0}):T[z]=B,T}const p=r(375),h=r(5380),v=r(1745),_=r(9959),y=r(6064),k=r(9926),w=r(5752),D=r(8068),A=r(8160),L={tlds:k instanceof Set&&{tlds:{allow:k,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:_.regex().regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};a.exports=D.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(T,{schema:z,state:B,prefs:W}){const N=z.$_getRule("normalize");N&&(T=T.normalize(N.args.form));const K=z.$_getRule("case");K&&(T=K.args.direction==="upper"?T.toLocaleUpperCase():T.toLocaleLowerCase());const re=z.$_getRule("trim");if(re&&re.args.enabled&&(T=T.trim()),z.$_terms.replacements)for(const ce of z.$_terms.replacements)T=T.replace(ce.pattern,ce.replacement);const se=z.$_getRule("hex");if(se&&se.args.options.byteAligned&&T.length%2!=0&&(T="0".concat(T)),z.$_getRule("isoDate")){const ce=L.isoDate(T);ce&&(T=ce)}if(z._flags.truncate){const ce=z.$_getRule("max");if(ce){let de=ce.args.limit;if(A.isResolvable(de)&&(de=de.resolve(T,B,W),!A.limit(de)))return{value:T,errors:z.$_createError("any.ref",de,{ref:ce.args.limit,arg:"limit",reason:"must be a positive integer"},B,W)};T=T.slice(0,de)}}return{value:T}}},validate:(T,{error:z})=>typeof T!="string"?{value:T,errors:z("string.base")}:T===""?{value:T,errors:z("string.empty")}:void 0,rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(T,z)=>/^[a-zA-Z0-9]+$/.test(T)?T:z.error("string.alphanum")},base64:{method(T={}){return A.assertOptions(T,["paddingRequired","urlSafe"]),T=l({urlSafe:!1,paddingRequired:!0},T),p(typeof T.paddingRequired=="boolean","paddingRequired must be boolean"),p(typeof T.urlSafe=="boolean","urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:T}})},validate:(T,z,{options:B})=>L.base64Regex[B.paddingRequired][B.urlSafe].test(T)?T:z.error("string.base64")},case:{method(T){return p(["lower","upper"].includes(T),"Invalid case:",T),this.$_addRule({name:"case",args:{direction:T}})},validate:(T,z,{direction:B})=>B==="lower"&&T===T.toLocaleLowerCase()||B==="upper"&&T===T.toLocaleUpperCase()?T:z.error("string.".concat(B,"case")),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(T,z){let B=T.length,W=0,N=1;for(;B--;){const K=T.charAt(B)*N;W+=K-9*(K>9),N^=3}return W>0&&W%10==0?T:z.error("string.creditCard")}},dataUri:{method(T={}){return A.assertOptions(T,["paddingRequired"]),T=l({paddingRequired:!0},T),p(typeof T.paddingRequired=="boolean","paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:T}})},validate(T,z,{options:B}){const W=T.match(L.dataUriRegex);return W&&(!W[2]||W[2]!=="base64"||L.base64Regex[B.paddingRequired].false.test(W[3]))?T:z.error("string.dataUri")}},domain:{method(T){T&&A.assertOptions(T,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const z=L.addressOptions(T);return this.$_addRule({name:"domain",args:{options:T},address:z})},validate:(T,z,B,{address:W})=>h.isValid(T,W)?T:z.error("string.domain")},email:{method(T={}){A.assertOptions(T,["allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),p(T.multiple===void 0||typeof T.multiple=="boolean","multiple option must be an boolean");const z=L.addressOptions(T),B=new RegExp("\\s*[".concat(T.separator?y(T.separator):",","]\\s*"));return this.$_addRule({name:"email",args:{options:T},regex:B,address:z})},validate(T,z,{options:B},{regex:W,address:N}){const K=B.multiple?T.split(W):[T],re=[];for(const se of K)v.isValid(se,N)||re.push(se);return re.length?z.error("string.email",{value:T,invalids:re}):T}},guid:{alias:"uuid",method(T={}){A.assertOptions(T,["version","separator"]);let z="";if(T.version){const N=[].concat(T.version);p(N.length>=1,"version must have at least 1 valid version specified");const K=new Set;for(let re=0;re<N.length;++re){const se=N[re];p(typeof se=="string","version at position "+re+" must be a string");const ce=L.guidVersions[se.toLowerCase()];p(ce,"version at position "+re+" must be one of "+Object.keys(L.guidVersions).join(", ")),p(!K.has(ce),"version at position "+re+" must not be a duplicate"),z+=ce,K.add(ce)}}p(L.guidSeparators.has(T.separator),'separator must be one of true, false, "-", or ":"');const B=T.separator===void 0?"[:-]?":T.separator===!0?"[:-]":T.separator===!1?"[]?":"\\".concat(T.separator),W=new RegExp("^([\\[{\\(]?)[0-9A-F]{8}(".concat(B,")[0-9A-F]{4}\\2?[").concat(z||"0-9A-F","][0-9A-F]{3}\\2?[").concat(z?"89AB":"0-9A-F","][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$"),"i");return this.$_addRule({name:"guid",args:{options:T},regex:W})},validate(T,z,B,{regex:W}){const N=W.exec(T);return N?L.guidBrackets[N[1]]!==N[N.length-1]?z.error("string.guid"):T:z.error("string.guid")}},hex:{method(T={}){return A.assertOptions(T,["byteAligned"]),T=l({byteAligned:!1},T),p(typeof T.byteAligned=="boolean","byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:T}})},validate:(T,z,{options:B})=>L.hexRegex.test(T)?B.byteAligned&&T.length%2!=0?z.error("string.hexAlign"):T:z.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(T,z)=>h.isValid(T,{minDomainSegments:1})||L.ipRegex.test(T)?T:z.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(T={}){A.assertOptions(T,["cidr","version"]);const{cidr:z,versions:B,regex:W}=_.regex(T),N=T.version?B:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:z,version:N}},regex:W})},validate:(T,z,{options:B},{regex:W})=>W.test(T)?T:B.version?z.error("string.ipVersion",{value:T,cidr:B.cidr,version:B.version}):z.error("string.ip",{value:T,cidr:B.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(T,{error:z})=>L.isoDate(T)?T:z("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(T,z)=>L.isoDurationRegex.test(T)?T:z.error("string.isoDuration")},length:{method(T,z){return L.length(this,"length",T,"=",z)},validate(T,z,{limit:B,encoding:W},{name:N,operator:K,args:re}){const se=!W&&T.length;return A.compare(se,B,K)?T:z.error("string."+N,{limit:re.limit,value:T,encoding:W})},args:[{name:"limit",ref:!0,assert:A.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(T,z){return L.length(this,"max",T,"<=",z)},args:["limit","encoding"]},min:{method(T,z){return L.length(this,"min",T,">=",z)},args:["limit","encoding"]},normalize:{method(T="NFC"){return p(L.normalizationForms.includes(T),"normalization form must be one of "+L.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:T}})},validate:(T,{error:z},{form:B})=>T===T.normalize(B)?T:z("string.normalize",{value:T,form:B}),convert:!0},pattern:{alias:"regex",method(T,z={}){p(T instanceof RegExp,"regex must be a RegExp"),p(!T.flags.includes("g")&&!T.flags.includes("y"),"regex should not use global or sticky mode"),typeof z=="string"&&(z={name:z}),A.assertOptions(z,["invert","name"]);const B=["string.pattern",z.invert?".invert":"",z.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:T,options:z},errorCode:B})},validate:(T,z,{regex:B,options:W},{errorCode:N})=>B.test(T)^W.invert?T:z.error(N,{name:W.name,regex:B,value:T}),args:["regex","options"],multi:!0},replace:{method(T,z){typeof T=="string"&&(T=new RegExp(y(T),"g")),p(T instanceof RegExp,"pattern must be a RegExp"),p(typeof z=="string","replacement must be a String");const B=this.clone();return B.$_terms.replacements||(B.$_terms.replacements=[]),B.$_terms.replacements.push({pattern:T,replacement:z}),B}},token:{method(){return this.$_addRule("token")},validate:(T,z)=>/^\w+$/.test(T)?T:z.error("string.token")},trim:{method(T=!0){return p(typeof T=="boolean","enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:T}})},validate:(T,z,{enabled:B})=>B&&T!==T.trim()?z.error("string.trim"):T,convert:!0},truncate:{method(T=!0){return p(typeof T=="boolean","enabled must be a boolean"),this.$_setFlag("truncate",T)}},uppercase:{method(){return this.case("upper")}},uri:{method(T={}){A.assertOptions(T,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),T.domain&&A.assertOptions(T.domain,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:z,scheme:B}=w.regex(T),W=T.domain?L.addressOptions(T.domain):null;return this.$_addRule({name:"uri",args:{options:T},regex:z,domain:W,scheme:B})},validate(T,z,{options:B},{regex:W,domain:N,scheme:K}){if(["http:/","https:/"].includes(T))return z.error("string.uri");const re=W.exec(T);if(re){const se=re[1]||re[2];return!N||B.allowRelative&&!se||h.isValid(se,N)?T:z.error("string.domain",{value:se})}return B.relativeOnly?z.error("string.uriRelativeOnly"):B.scheme?z.error("string.uriCustomScheme",{scheme:K,value:T}):z.error("string.uri")}}},manifest:{build(T,z){if(z.replacements)for(const{pattern:B,replacement:W}of z.replacements)T=T.replace(B,W);return T}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),L.addressOptions=function(T){if(!T||(p(T.minDomainSegments===void 0||Number.isSafeInteger(T.minDomainSegments)&&T.minDomainSegments>0,"minDomainSegments must be a positive integer"),p(T.maxDomainSegments===void 0||Number.isSafeInteger(T.maxDomainSegments)&&T.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),T.tlds===!1))return T;if(T.tlds===!0||T.tlds===void 0)return p(L.tlds,"Built-in TLD list disabled"),Object.assign({},T,L.tlds);p(typeof T.tlds=="object","tlds must be true, false, or an object");const z=T.tlds.deny;if(z)return Array.isArray(z)&&(T=Object.assign({},T,{tlds:{deny:new Set(z)}})),p(T.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),p(!T.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),L.validateTlds(T.tlds.deny,"tlds.deny"),T;const B=T.tlds.allow;return B?B===!0?(p(L.tlds,"Built-in TLD list disabled"),Object.assign({},T,L.tlds)):(Array.isArray(B)&&(T=Object.assign({},T,{tlds:{allow:new Set(B)}})),p(T.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),L.validateTlds(T.tlds.allow,"tlds.allow"),T):T},L.validateTlds=function(T,z){for(const B of T)p(h.isValid(B,{minDomainSegments:1,maxDomainSegments:1}),"".concat(z," must contain valid top level domain names"))},L.isoDate=function(T){if(!A.isIsoDate(T))return null;/.*T.*[+-]\d\d$/.test(T)&&(T+="00");const z=new Date(T);return isNaN(z.getTime())?null:z.toISOString()},L.length=function(T,z,B,W,N){return p(!N||!1,"Invalid encoding:",N),T.$_addRule({name:z,method:"length",args:{limit:B,encoding:N},operator:W})}},8826:(a,o,r)=>{const s=r(375),l=r(8068),f={};f.Map=class extends Map{slice(){return new f.Map(this)}},a.exports=l.extend({type:"symbol",terms:{map:{init:new f.Map}},coerce:{method(p,{schema:h,error:v}){const _=h.$_terms.map.get(p);return _&&(p=_),h._flags.only&&typeof p!="symbol"?{value:p,errors:v("symbol.map",{map:h.$_terms.map})}:{value:p}}},validate(p,{error:h}){if(typeof p!="symbol")return{value:p,errors:h("symbol.base")}},rules:{map:{method(p){p&&!p[Symbol.iterator]&&typeof p=="object"&&(p=Object.entries(p)),s(p&&p[Symbol.iterator],"Iterable must be an iterable or object");const h=this.clone(),v=[];for(const _ of p){s(_&&_[Symbol.iterator],"Entry must be an iterable");const[y,k]=_;s(typeof y!="object"&&typeof y!="function"&&typeof y!="symbol","Key must not be of type object, function, or Symbol"),s(typeof k=="symbol","Value must be a Symbol"),h.$_terms.map.set(y,k),v.push(k)}return h.valid(...v)}}},manifest:{build:(p,h)=>(h.map&&(p=p.map(h.map)),p)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(a,o,r)=>{const s=r(375),l=r(8571),f=r(738),p=r(9621),h=r(8160),v=r(6354),_=r(493),y={result:Symbol("result")};o.entry=function(k,w,D){let A=h.defaults;D&&(s(D.warnings===void 0,"Cannot override warnings preference in synchronous validation"),s(D.artifacts===void 0,"Cannot override artifacts preference in synchronous validation"),A=h.preferences(h.defaults,D));const L=y.entry(k,w,A);s(!L.mainstay.externals.length,"Schema with external rules must use validateAsync()");const T={value:L.value};return L.error&&(T.error=L.error),L.mainstay.warnings.length&&(T.warning=v.details(L.mainstay.warnings)),L.mainstay.debug&&(T.debug=L.mainstay.debug),L.mainstay.artifacts&&(T.artifacts=L.mainstay.artifacts),T},o.entryAsync=async function(k,w,D){let A=h.defaults;D&&(A=h.preferences(h.defaults,D));const L=y.entry(k,w,A),T=L.mainstay;if(L.error)throw T.debug&&(L.error.debug=T.debug),L.error;if(T.externals.length){let B=L.value;for(const{method:W,path:N,label:K}of T.externals){let re,se,ce=B;N.length&&(re=N[N.length-1],se=p(B,N.slice(0,-1)),ce=se[re]);try{const de=await W(ce,{prefs:D});if(de===void 0||de===ce)continue;se?se[re]=de:B=de}catch(de){throw de.message+=" (".concat(K,")"),de}}L.value=B}if(!A.warnings&&!A.debug&&!A.artifacts)return L.value;const z={value:L.value};return T.warnings.length&&(z.warning=v.details(T.warnings)),T.debug&&(z.debug=T.debug),T.artifacts&&(z.artifacts=T.artifacts),z},y.entry=function(k,w,D){const{tracer:A,cleanup:L}=y.tracer(w,D),T={externals:[],warnings:[],tracer:A,debug:D.debug?[]:null,links:w._ids._schemaChain?new Map:null},z=w._ids._schemaChain?[{schema:w}]:null,B=new _([],[],{mainstay:T,schemas:z}),W=o.validate(k,w,B,D);L&&w.$_root.untrace();const N=v.process(W.errors,k,D);return{value:W.value,error:N,mainstay:T}},y.tracer=function(k,w){return k.$_root._tracer?{tracer:k.$_root._tracer._register(k)}:w.debug?(s(k.$_root.trace,"Debug mode not supported"),{tracer:k.$_root.trace()._register(k),cleanup:!0}):{tracer:y.ignore}},o.validate=function(k,w,D,A,L={}){if(w.$_terms.whens&&(w=w._generate(k,D,A).schema),w._preferences&&(A=y.prefs(w,A)),w._cache&&A.cache){const re=w._cache.get(k);if(D.mainstay.tracer.debug(D,"validate","cached",!!re),re)return re}const T=(re,se,ce)=>w.$_createError(re,k,se,ce||D,A),z={original:k,prefs:A,schema:w,state:D,error:T,errorsArray:y.errorsArray,warn:(re,se,ce)=>D.mainstay.warnings.push(T(re,se,ce)),message:(re,se)=>w.$_createError("custom",k,se,D,A,{messages:re})};D.mainstay.tracer.entry(w,D);const B=w._definition;if(B.prepare&&k!==void 0&&A.convert){const re=B.prepare(k,z);if(re){if(D.mainstay.tracer.value(D,"prepare",k,re.value),re.errors)return y.finalize(re.value,[].concat(re.errors),z);k=re.value}}if(B.coerce&&k!==void 0&&A.convert&&(!B.coerce.from||B.coerce.from.includes(typeof k))){const re=B.coerce.method(k,z);if(re){if(D.mainstay.tracer.value(D,"coerced",k,re.value),re.errors)return y.finalize(re.value,[].concat(re.errors),z);k=re.value}}const W=w._flags.empty;W&&W.$_match(y.trim(k,w),D.nest(W),h.defaults)&&(D.mainstay.tracer.value(D,"empty",k,void 0),k=void 0);const N=L.presence||w._flags.presence||(w._flags._endedSwitch?null:A.presence);if(k===void 0){if(N==="forbidden")return y.finalize(k,null,z);if(N==="required")return y.finalize(k,[w.$_createError("any.required",k,null,D,A)],z);if(N==="optional"){if(w._flags.default!==h.symbols.deepDefault)return y.finalize(k,null,z);D.mainstay.tracer.value(D,"default",k,{}),k={}}}else if(N==="forbidden")return y.finalize(k,[w.$_createError("any.unknown",k,null,D,A)],z);const K=[];if(w._valids){const re=w._valids.get(k,D,A,w._flags.insensitive);if(re)return A.convert&&(D.mainstay.tracer.value(D,"valids",k,re.value),k=re.value),D.mainstay.tracer.filter(w,D,"valid",re),y.finalize(k,null,z);if(w._flags.only){const se=w.$_createError("any.only",k,{valids:w._valids.values({display:!0})},D,A);if(A.abortEarly)return y.finalize(k,[se],z);K.push(se)}}if(w._invalids){const re=w._invalids.get(k,D,A,w._flags.insensitive);if(re){D.mainstay.tracer.filter(w,D,"invalid",re);const se=w.$_createError("any.invalid",k,{invalids:w._invalids.values({display:!0})},D,A);if(A.abortEarly)return y.finalize(k,[se],z);K.push(se)}}if(B.validate){const re=B.validate(k,z);if(re&&(D.mainstay.tracer.value(D,"base",k,re.value),k=re.value,re.errors)){if(!Array.isArray(re.errors))return K.push(re.errors),y.finalize(k,K,z);if(re.errors.length)return K.push(...re.errors),y.finalize(k,K,z)}}return w._rules.length?y.rules(k,K,z):y.finalize(k,K,z)},y.rules=function(k,w,D){const{schema:A,state:L,prefs:T}=D;for(const z of A._rules){const B=A._definition.rules[z.method];if(B.convert&&T.convert){L.mainstay.tracer.log(A,L,"rule",z.name,"full");continue}let W,N=z.args;if(z._resolve.length){N=Object.assign({},N);for(const re of z._resolve){const se=B.argsByName.get(re),ce=N[re].resolve(k,L,T),de=se.normalize?se.normalize(ce):ce,ge=h.validateArg(de,null,se);if(ge){W=A.$_createError("any.ref",ce,{arg:re,ref:N[re],reason:ge},L,T);break}N[re]=de}}W=W||B.validate(k,D,N,z);const K=y.rule(W,z);if(K.errors){if(L.mainstay.tracer.log(A,L,"rule",z.name,"error"),z.warn){L.mainstay.warnings.push(...K.errors);continue}if(T.abortEarly)return y.finalize(k,K.errors,D);w.push(...K.errors)}else L.mainstay.tracer.log(A,L,"rule",z.name,"pass"),L.mainstay.tracer.value(L,"rule",k,K.value,z.name),k=K.value}return y.finalize(k,w,D)},y.rule=function(k,w){return k instanceof v.Report?(y.error(k,w),{errors:[k],value:null}):Array.isArray(k)&&k[h.symbols.errors]?(k.forEach(D=>y.error(D,w)),{errors:k,value:null}):{errors:null,value:k}},y.error=function(k,w){return w.message&&k._setTemplate(w.message),k},y.finalize=function(k,w,D){w=w||[];const{schema:A,state:L,prefs:T}=D;if(w.length){const B=y.default("failover",void 0,w,D);B!==void 0&&(L.mainstay.tracer.value(L,"failover",k,B),k=B,w=[])}if(w.length&&A._flags.error)if(typeof A._flags.error=="function"){w=A._flags.error(w),Array.isArray(w)||(w=[w]);for(const B of w)s(B instanceof Error||B instanceof v.Report,"error() must return an Error object")}else w=[A._flags.error];if(k===void 0){const B=y.default("default",k,w,D);L.mainstay.tracer.value(L,"default",k,B),k=B}if(A._flags.cast&&k!==void 0){const B=A._definition.cast[A._flags.cast];if(B.from(k)){const W=B.to(k,D);L.mainstay.tracer.value(L,"cast",k,W,A._flags.cast),k=W}}if(A.$_terms.externals&&T.externals&&T._externals!==!1)for(const{method:B}of A.$_terms.externals)L.mainstay.externals.push({method:B,path:L.path,label:v.label(A._flags,L,T)});const z={value:k,errors:w.length?w:null};return A._flags.result&&(z.value=A._flags.result==="strip"?void 0:D.original,L.mainstay.tracer.value(L,A._flags.result,k,z.value),L.shadow(k,A._flags.result)),A._cache&&T.cache!==!1&&!A._refs.length&&A._cache.set(D.original,z),k===void 0||z.errors||A._flags.artifact===void 0||(L.mainstay.artifacts=L.mainstay.artifacts||new Map,L.mainstay.artifacts.has(A._flags.artifact)||L.mainstay.artifacts.set(A._flags.artifact,[]),L.mainstay.artifacts.get(A._flags.artifact).push(L.path)),z},y.prefs=function(k,w){const D=w===h.defaults;return D&&k._preferences[h.symbols.prefs]?k._preferences[h.symbols.prefs]:(w=h.preferences(w,k._preferences),D&&(k._preferences[h.symbols.prefs]=w),w)},y.default=function(k,w,D,A){const{schema:L,state:T,prefs:z}=A,B=L._flags[k];if(z.noDefaults||B===void 0)return w;if(T.mainstay.tracer.log(L,T,"rule",k,"full"),!B)return B;if(typeof B=="function"){const W=B.length?[l(T.ancestors[0]),A]:[];try{return B(...W)}catch(N){return void D.push(L.$_createError("any.".concat(k),null,{error:N},T,z))}}return typeof B!="object"?B:B[h.symbols.literal]?B.literal:h.isResolvable(B)?B.resolve(w,T,z):l(B)},y.trim=function(k,w){if(typeof k!="string")return k;const D=w.$_getRule("trim");return D&&D.args.enabled?k.trim():k},y.ignore={active:!1,debug:f,entry:f,filter:f,log:f,resolve:f,value:f},y.errorsArray=function(){const k=[];return k[h.symbols.errors]=!0,k}},2036:(a,o,r)=>{const s=r(375),l=r(9474),f=r(8160),p={};a.exports=p.Values=class{constructor(h,v){this._values=new Set(h),this._refs=new Set(v),this._lowercase=p.lowercases(h),this._override=!1}get length(){return this._values.size+this._refs.size}add(h,v){f.isResolvable(h)?this._refs.has(h)||(this._refs.add(h),v&&v.register(h)):this.has(h,null,null,!1)||(this._values.add(h),typeof h=="string"&&this._lowercase.set(h.toLowerCase(),h))}static merge(h,v,_){if(h=h||new p.Values,v){if(v._override)return v.clone();for(const y of[...v._values,...v._refs])h.add(y)}if(_)for(const y of[..._._values,..._._refs])h.remove(y);return h.length?h:null}remove(h){f.isResolvable(h)?this._refs.delete(h):(this._values.delete(h),typeof h=="string"&&this._lowercase.delete(h.toLowerCase()))}has(h,v,_,y){return!!this.get(h,v,_,y)}get(h,v,_,y){if(!this.length)return!1;if(this._values.has(h))return{value:h};if(typeof h=="string"&&h&&y){const k=this._lowercase.get(h.toLowerCase());if(k)return{value:k}}if(!this._refs.size&&typeof h!="object")return!1;if(typeof h=="object"){for(const k of this._values)if(l(k,h))return{value:k}}if(v)for(const k of this._refs){const w=k.resolve(h,v,_,null,{in:!0});if(w===void 0)continue;const D=k.in&&typeof w=="object"?Array.isArray(w)?w:Object.keys(w):[w];for(const A of D)if(typeof A==typeof h){if(y&&h&&typeof h=="string"){if(A.toLowerCase()===h.toLowerCase())return{value:A,ref:k}}else if(l(A,h))return{value:A,ref:k}}}return!1}override(){this._override=!0}values(h){if(h&&h.display){const v=[];for(const _ of[...this._values,...this._refs])_!==void 0&&v.push(_);return v}return Array.from([...this._values,...this._refs])}clone(){const h=new p.Values(this._values,this._refs);return h._override=this._override,h}concat(h){s(!h._override,"Cannot concat override set of values");const v=new p.Values([...this._values,...h._values],[...this._refs,...h._refs]);return v._override=this._override,v}describe(){const h=[];this._override&&h.push({override:!0});for(const v of this._values.values())h.push(v&&typeof v=="object"?{value:v}:v);for(const v of this._refs.values())h.push(v.describe());return h}},p.Values.prototype[f.symbols.values]=!0,p.Values.prototype.slice=p.Values.prototype.clone,p.lowercases=function(h){const v=new Map;if(h)for(const _ of h)typeof _=="string"&&v.set(_.toLowerCase(),_);return v}},978:(a,o,r)=>{const s=r(375),l=r(8571),f=r(1687),p=r(9621),h={};a.exports=function(v,_,y={}){if(s(v&&typeof v=="object","Invalid defaults value: must be an object"),s(!_||_===!0||typeof _=="object","Invalid source value: must be true, falsy or an object"),s(typeof y=="object","Invalid options: must be an object"),!_)return null;if(y.shallow)return h.applyToDefaultsWithShallow(v,_,y);const k=l(v);if(_===!0)return k;const w=y.nullOverride!==void 0&&y.nullOverride;return f(k,_,{nullOverride:w,mergeArrays:!1})},h.applyToDefaultsWithShallow=function(v,_,y){const k=y.shallow;s(Array.isArray(k),"Invalid keys");const w=new Map,D=_===!0?null:new Set;for(let T of k){T=Array.isArray(T)?T:T.split(".");const z=p(v,T);z&&typeof z=="object"?w.set(z,D&&p(_,T)||z):D&&D.add(T)}const A=l(v,{},w);if(!D)return A;for(const T of D)h.reachCopy(A,_,T);const L=y.nullOverride!==void 0&&y.nullOverride;return f(A,_,{nullOverride:L,mergeArrays:!1})},h.reachCopy=function(v,_,y){for(const D of y){if(!(D in _))return;const A=_[D];if(typeof A!="object"||A===null)return;_=A}const k=_;let w=v;for(let D=0;D<y.length-1;++D){const A=y[D];typeof w[A]!="object"&&(w[A]={}),w=w[A]}w[y[y.length-1]]=k}},375:(a,o,r)=>{const s=r(7916);a.exports=function(l,...f){if(!l)throw f.length===1&&f[0]instanceof Error?f[0]:new s(f)}},8571:(a,o,r)=>{const s=r(9621),l=r(4277),f=r(7043),p={needsProtoHack:new Set([l.set,l.map,l.weakSet,l.weakMap])};a.exports=p.clone=function(h,v={},_=null){if(typeof h!="object"||h===null)return h;let y=p.clone,k=_;if(v.shallow){if(v.shallow!==!0)return p.cloneWithShallow(h,v);y=L=>L}else if(k){const L=k.get(h);if(L)return L}else k=new Map;const w=l.getInternalProto(h);if(w===l.buffer)return!1;if(w===l.date)return new Date(h.getTime());if(w===l.regex)return new RegExp(h);const D=p.base(h,w,v);if(D===h)return h;if(k&&k.set(h,D),w===l.set)for(const L of h)D.add(y(L,v,k));else if(w===l.map)for(const[L,T]of h)D.set(L,y(T,v,k));const A=f.keys(h,v);for(const L of A){if(L==="__proto__")continue;if(w===l.array&&L==="length"){D.length=h.length;continue}const T=Object.getOwnPropertyDescriptor(h,L);T?T.get||T.set?Object.defineProperty(D,L,T):T.enumerable?D[L]=y(h[L],v,k):Object.defineProperty(D,L,{enumerable:!1,writable:!0,configurable:!0,value:y(h[L],v,k)}):Object.defineProperty(D,L,{enumerable:!0,writable:!0,configurable:!0,value:y(h[L],v,k)})}return D},p.cloneWithShallow=function(h,v){const _=v.shallow;(v=Object.assign({},v)).shallow=!1;const y=new Map;for(const k of _){const w=s(h,k);typeof w!="object"&&typeof w!="function"||y.set(w,w)}return p.clone(h,v,y)},p.base=function(h,v,_){if(_.prototype===!1)return p.needsProtoHack.has(v)?new v.constructor:v===l.array?[]:{};const y=Object.getPrototypeOf(h);if(y&&y.isImmutable)return h;if(v===l.array){const k=[];return y!==v&&Object.setPrototypeOf(k,y),k}if(p.needsProtoHack.has(v)){const k=new y.constructor;return y!==v&&Object.setPrototypeOf(k,y),k}return Object.create(y)}},9474:(a,o,r)=>{const s=r(4277),l={mismatched:null};a.exports=function(f,p,h){return h=Object.assign({prototype:!0},h),!!l.isDeepEqual(f,p,h,[])},l.isDeepEqual=function(f,p,h,v){if(f===p)return f!==0||1/f==1/p;const _=typeof f;if(_!==typeof p||f===null||p===null)return!1;if(_==="function"){if(!h.deepFunction||f.toString()!==p.toString())return!1}else if(_!=="object")return f!=f&&p!=p;const y=l.getSharedType(f,p,!!h.prototype);switch(y){case s.buffer:return!1;case s.promise:return f===p;case s.regex:return f.toString()===p.toString();case l.mismatched:return!1}for(let k=v.length-1;k>=0;--k)if(v[k].isSame(f,p))return!0;v.push(new l.SeenEntry(f,p));try{return!!l.isDeepEqualObj(y,f,p,h,v)}finally{v.pop()}},l.getSharedType=function(f,p,h){if(h)return Object.getPrototypeOf(f)!==Object.getPrototypeOf(p)?l.mismatched:s.getInternalProto(f);const v=s.getInternalProto(f);return v!==s.getInternalProto(p)?l.mismatched:v},l.valueOf=function(f){const p=f.valueOf;if(p===void 0)return f;try{return p.call(f)}catch(h){return h}},l.hasOwnEnumerableProperty=function(f,p){return Object.prototype.propertyIsEnumerable.call(f,p)},l.isSetSimpleEqual=function(f,p){for(const h of Set.prototype.values.call(f))if(!Set.prototype.has.call(p,h))return!1;return!0},l.isDeepEqualObj=function(f,p,h,v,_){const{isDeepEqual:y,valueOf:k,hasOwnEnumerableProperty:w}=l,{keys:D,getOwnPropertySymbols:A}=Object;if(f===s.array){if(!v.part){if(p.length!==h.length)return!1;for(let W=0;W<p.length;++W)if(!y(p[W],h[W],v,_))return!1;return!0}for(const W of p)for(const N of h)if(y(W,N,v,_))return!0}else if(f===s.set){if(p.size!==h.size)return!1;if(!l.isSetSimpleEqual(p,h)){const W=new Set(Set.prototype.values.call(h));for(const N of Set.prototype.values.call(p)){if(W.delete(N))continue;let K=!1;for(const re of W)if(y(N,re,v,_)){W.delete(re),K=!0;break}if(!K)return!1}}}else if(f===s.map){if(p.size!==h.size)return!1;for(const[W,N]of Map.prototype.entries.call(p))if(N===void 0&&!Map.prototype.has.call(h,W)||!y(N,Map.prototype.get.call(h,W),v,_))return!1}else if(f===s.error&&(p.name!==h.name||p.message!==h.message))return!1;const L=k(p),T=k(h);if((p!==L||h!==T)&&!y(L,T,v,_))return!1;const z=D(p);if(!v.part&&z.length!==D(h).length&&!v.skip)return!1;let B=0;for(const W of z)if(v.skip&&v.skip.includes(W))h[W]===void 0&&++B;else if(!w(h,W)||!y(p[W],h[W],v,_))return!1;if(!v.part&&z.length-B!==D(h).length)return!1;if(v.symbols!==!1){const W=A(p),N=new Set(A(h));for(const K of W){if(!v.skip||!v.skip.includes(K)){if(w(p,K)){if(!w(h,K)||!y(p[K],h[K],v,_))return!1}else if(w(h,K))return!1}N.delete(K)}for(const K of N)if(w(h,K))return!1}return!0},l.SeenEntry=class{constructor(f,p){this.obj=f,this.ref=p}isSame(f,p){return this.obj===f&&this.ref===p}}},7916:(a,o,r)=>{const s=r(8761);a.exports=class extends Error{constructor(l){super(l.filter(f=>f!=="").map(f=>typeof f=="string"?f:f instanceof Error?f.message:s(f)).join(" ")||"Unknown error"),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,o.assert)}}},5277:a=>{const o={};a.exports=function(r){if(!r)return"";let s="";for(let l=0;l<r.length;++l){const f=r.charCodeAt(l);o.isSafe(f)?s+=r[l]:s+=o.escapeHtmlChar(f)}return s},o.escapeHtmlChar=function(r){const s=o.namedHtml[r];if(s!==void 0)return s;if(r>=256)return"&#"+r+";";const l=r.toString(16).padStart(2,"0");return"&#x".concat(l,";")},o.isSafe=function(r){return o.safeCharCodes[r]!==void 0},o.namedHtml={38:"&",60:"<",62:">",34:""",160:" ",162:"¢",163:"£",164:"¤",169:"©",174:"®"},o.safeCharCodes=function(){const r={};for(let s=32;s<123;++s)(s>=97||s>=65&&s<=90||s>=48&&s<=57||s===32||s===46||s===44||s===45||s===58||s===95)&&(r[s]=null);return r}()},6064:a=>{a.exports=function(o){return o.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:a=>{a.exports=function(){}},1687:(a,o,r)=>{const s=r(375),l=r(8571),f=r(7043),p={};a.exports=p.merge=function(h,v,_){if(s(h&&typeof h=="object","Invalid target value: must be an object"),s(v==null||typeof v=="object","Invalid source value: must be null, undefined, or an object"),!v)return h;if(_=Object.assign({nullOverride:!0,mergeArrays:!0},_),Array.isArray(v)){s(Array.isArray(h),"Cannot merge array onto an object"),_.mergeArrays||(h.length=0);for(let k=0;k<v.length;++k)h.push(l(v[k],{symbols:_.symbols}));return h}const y=f.keys(v,_);for(let k=0;k<y.length;++k){const w=y[k];if(w==="__proto__"||!Object.prototype.propertyIsEnumerable.call(v,w))continue;const D=v[w];if(D&&typeof D=="object"){if(h[w]===D)continue;!h[w]||typeof h[w]!="object"||Array.isArray(h[w])!==Array.isArray(D)||D instanceof Date||D instanceof RegExp?h[w]=l(D,{symbols:_.symbols}):p.merge(h[w],D,_)}else(D!=null||_.nullOverride)&&(h[w]=D)}return h}},9621:(a,o,r)=>{const s=r(375),l={};a.exports=function(f,p,h){if(p===!1||p==null)return f;typeof(h=h||{})=="string"&&(h={separator:h});const v=Array.isArray(p);s(!v||!h.separator,"Separator option no valid for array-based chain");const _=v?p:p.split(h.separator||".");let y=f;for(let k=0;k<_.length;++k){let w=_[k];const D=h.iterables&&l.iterables(y);if(Array.isArray(y)||D==="set"){const A=Number(w);Number.isInteger(A)&&(w=A<0?y.length+A:A)}if(!y||typeof y=="function"&&h.functions===!1||!D&&y[w]===void 0){s(!h.strict||k+1===_.length,"Missing segment",w,"in reach path ",p),s(typeof y=="object"||h.functions===!0||typeof y!="function","Invalid segment",w,"in reach path ",p),y=h.default;break}y=D?D==="set"?[...y][w]:y.get(w):y[w]}return y},l.iterables=function(f){return f instanceof Set?"set":f instanceof Map?"map":void 0}},8761:a=>{a.exports=function(...o){try{return JSON.stringify.apply(null,o)}catch(r){return"[Cannot display object: "+r.message+"]"}}},4277:(a,o)=>{const r={};o=a.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",o.error],["[object Map]",o.map],["[object Promise]",o.promise],["[object Set]",o.set],["[object WeakMap]",o.weakMap],["[object WeakSet]",o.weakSet]]),o.getInternalProto=function(s){if(Array.isArray(s))return o.array;if(s instanceof Date)return o.date;if(s instanceof RegExp)return o.regex;if(s instanceof Error)return o.error;const l=Object.prototype.toString.call(s);return r.typeMap.get(l)||o.generic}},7043:(a,o)=>{o.keys=function(r,s={}){return s.symbols!==!1?Reflect.ownKeys(r):Object.getOwnPropertyNames(r)}},3652:(a,o,r)=>{const s=r(375),l={};o.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(f,p){const h=[].concat((p=p||{}).before||[]),v=[].concat(p.after||[]),_=p.group||"?",y=p.sort||0;s(!h.includes(_),"Item cannot come before itself: ".concat(_)),s(!h.includes("?"),"Item cannot come before unassociated items"),s(!v.includes(_),"Item cannot come after itself: ".concat(_)),s(!v.includes("?"),"Item cannot come after unassociated items"),Array.isArray(f)||(f=[f]);for(const k of f){const w={seq:this._items.length,sort:y,before:h,after:v,group:_,node:k};this._items.push(w)}if(!p.manual){const k=this._sort();s(k,"item",_!=="?"?"added into group ".concat(_):"","created a dependencies error")}return this.nodes}merge(f){Array.isArray(f)||(f=[f]);for(const h of f)if(h)for(const v of h._items)this._items.push(Object.assign({},v));this._items.sort(l.mergeSort);for(let h=0;h<this._items.length;++h)this._items[h].seq=h;const p=this._sort();return s(p,"merge created a dependencies error"),this.nodes}sort(){const f=this._sort();return s(f,"sort created a dependencies error"),this.nodes}_sort(){const f={},p=Object.create(null),h=Object.create(null);for(const w of this._items){const D=w.seq,A=w.group;h[A]=h[A]||[],h[A].push(D),f[D]=w.before;for(const L of w.after)p[L]=p[L]||[],p[L].push(D)}for(const w in f){const D=[];for(const A in f[w]){const L=f[w][A];h[L]=h[L]||[],D.push(...h[L])}f[w]=D}for(const w in p)if(h[w])for(const D of h[w])f[D].push(...p[w]);const v={};for(const w in f){const D=f[w];for(const A of D)v[A]=v[A]||[],v[A].push(w)}const _={},y=[];for(let w=0;w<this._items.length;++w){let D=w;if(v[w]){D=null;for(let A=0;A<this._items.length;++A){if(_[A]===!0)continue;v[A]||(v[A]=[]);const L=v[A].length;let T=0;for(let z=0;z<L;++z)_[v[A][z]]&&++T;if(T===L){D=A;break}}}D!==null&&(_[D]=!0,y.push(D))}if(y.length!==this._items.length)return!1;const k={};for(const w of this._items)k[w.seq]=w;this._items=[],this.nodes=[];for(const w of y){const D=k[w];this.nodes.push(D.node),this._items.push(D)}return!0}},l.mergeSort=(f,p)=>f.sort===p.sort?0:f.sort<p.sort?-1:1},5380:(a,o,r)=>{const s=r(443),l=r(2178),f={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:s.URL||URL};o.analyze=function(p,h={}){if(typeof p!="string")throw new Error("Invalid input: domain must be a string");if(!p)return l.code("DOMAIN_NON_EMPTY_STRING");if(p.length>256)return l.code("DOMAIN_TOO_LONG");if(f.nonAsciiRx.test(p)){if(h.allowUnicode===!1)return l.code("DOMAIN_INVALID_UNICODE_CHARS");p=p.normalize("NFC")}if(f.domainControlRx.test(p))return l.code("DOMAIN_INVALID_CHARS");p=f.punycode(p);const v=h.minDomainSegments||f.minDomainSegments,_=p.split(".");if(_.length<v)return l.code("DOMAIN_SEGMENTS_COUNT");if(h.maxDomainSegments&&_.length>h.maxDomainSegments)return l.code("DOMAIN_SEGMENTS_COUNT_MAX");const y=h.tlds;if(y){const k=_[_.length-1].toLowerCase();if(y.deny&&y.deny.has(k)||y.allow&&!y.allow.has(k))return l.code("DOMAIN_FORBIDDEN_TLDS")}for(let k=0;k<_.length;++k){const w=_[k];if(!w.length)return l.code("DOMAIN_EMPTY_SEGMENT");if(w.length>63)return l.code("DOMAIN_LONG_SEGMENT");if(k<_.length-1){if(!f.domainSegmentRx.test(w))return l.code("DOMAIN_INVALID_CHARS")}else if(!f.tldSegmentRx.test(w))return l.code("DOMAIN_INVALID_TLDS_CHARS")}return null},o.isValid=function(p,h){return!o.analyze(p,h)},f.punycode=function(p){try{return new f.URL("http://".concat(p)).host}catch{return p}}},1745:(a,o,r)=>{const s=r(9848),l=r(5380),f=r(2178),p={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(s.TextEncoder||TextEncoder)};o.analyze=function(h,v){return p.email(h,v)},o.isValid=function(h,v){return!p.email(h,v)},p.email=function(h,v={}){if(typeof h!="string")throw new Error("Invalid input: email must be a string");if(!h)return f.code("EMPTY_STRING");const _=!p.nonAsciiRx.test(h);if(!_){if(v.allowUnicode===!1)return f.code("FORBIDDEN_UNICODE");h=h.normalize("NFC")}const y=h.split("@");if(y.length!==2)return y.length>2?f.code("MULTIPLE_AT_CHAR"):f.code("MISSING_AT_CHAR");const[k,w]=y;if(!k)return f.code("EMPTY_LOCAL");if(!v.ignoreLength){if(h.length>254)return f.code("ADDRESS_TOO_LONG");if(p.encoder.encode(k).length>64)return f.code("LOCAL_TOO_LONG")}return p.local(k,_)||l.analyze(w,v)},p.local=function(h,v){const _=h.split(".");for(const y of _){if(!y.length)return f.code("EMPTY_LOCAL_SEGMENT");if(v){if(!p.atextRx.test(y))return f.code("INVALID_LOCAL_CHARS")}else for(const k of y){if(p.atextRx.test(k))continue;const w=p.binary(k);if(!p.atomRx.test(w))return f.code("INVALID_LOCAL_CHARS")}}},p.binary=function(h){return Array.from(p.encoder.encode(h)).map(v=>String.fromCharCode(v)).join("")},p.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,p.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(a,o)=>{o.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},o.code=function(r){return{code:r,error:o.codes[r]}}},9959:(a,o,r)=>{const s=r(375),l=r(5752);o.regex=function(f={}){s(f.cidr===void 0||typeof f.cidr=="string","options.cidr must be a string");const p=f.cidr?f.cidr.toLowerCase():"optional";s(["required","optional","forbidden"].includes(p),"options.cidr must be one of required, optional, forbidden"),s(f.version===void 0||typeof f.version=="string"||Array.isArray(f.version),"options.version must be a string or an array of string");let h=f.version||["ipv4","ipv6","ipvfuture"];Array.isArray(h)||(h=[h]),s(h.length>=1,"options.version must have at least 1 version specified");for(let k=0;k<h.length;++k)s(typeof h[k]=="string","options.version must only contain strings"),h[k]=h[k].toLowerCase(),s(["ipv4","ipv6","ipvfuture"].includes(h[k]),"options.version contains unknown version "+h[k]+" - must be one of ipv4, ipv6, ipvfuture");h=Array.from(new Set(h));const v=h.map(k=>{if(p==="forbidden")return l.ip[k];const w="\\/".concat(k==="ipv4"?l.ip.v4Cidr:l.ip.v6Cidr);return p==="required"?"".concat(l.ip[k]).concat(w):"".concat(l.ip[k],"(?:").concat(w,")?")}),_="(?:".concat(v.join("|"),")"),y=new RegExp("^".concat(_,"$"));return{cidr:p,versions:h,regex:y,raw:_}}},5752:(a,o,r)=>{const s=r(375),l=r(6064),f={generate:function(){const p={},h="!\\$&'\\(\\)\\*\\+,;=",v="\\w-\\.~%\\dA-Fa-f"+h+":@",_="["+v+"]",y="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";p.ipv4address="(?:"+y+"\\.){3}"+y;const k="[\\dA-Fa-f]{1,4}",w="(?:"+k+":"+k+"|"+p.ipv4address+")",D="(?:"+k+":){6}"+w,A="::(?:"+k+":){5}"+w,L="(?:"+k+")?::(?:"+k+":){4}"+w,T="(?:(?:"+k+":){0,1}"+k+")?::(?:"+k+":){3}"+w,z="(?:(?:"+k+":){0,2}"+k+")?::(?:"+k+":){2}"+w,B="(?:(?:"+k+":){0,3}"+k+")?::"+k+":"+w,W="(?:(?:"+k+":){0,4}"+k+")?::"+w;p.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",p.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",p.ipv6address="(?:"+D+"|"+A+"|"+L+"|"+T+"|"+z+"|"+B+"|"+W+"|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)",p.ipvFuture="v[\\dA-Fa-f]+\\.[\\w-\\.~"+h+":]+",p.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",p.schemeRegex=new RegExp(p.scheme);const N="[\\w-\\.~%\\dA-Fa-f"+h+":]*",K="(?:\\[(?:"+p.ipv6address+"|"+p.ipvFuture+")\\]|"+p.ipv4address+"|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})",re="(?:"+N+"@)?"+K+"(?::\\d*)?",se="(?:"+N+"@)?("+K+")(?::\\d*)?",ce=_+"+",de="(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*",ge="\\/(?:"+ce+de+")?",Ce=ce+de,Oe="[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=@]+"+de;return p.hierPart="(?:(?:\\/\\/"+re+de+")|"+ge+"|"+Ce+"|(?:\\/\\/\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*))",p.hierPartCapture="(?:(?:\\/\\/"+se+de+")|"+ge+"|"+Ce+")",p.relativeRef="(?:(?:\\/\\/"+re+de+")|"+ge+"|"+Oe+"|)",p.relativeRefCapture="(?:(?:\\/\\/"+se+de+")|"+ge+"|"+Oe+"|)",p.query="["+v+"\\/\\?]*(?=#|$)",p.queryWithSquareBrackets="["+v+"\\[\\]\\/\\?]*(?=#|$)",p.fragment="["+v+"\\/\\?]*",p}};f.rfc3986=f.generate(),o.ip={v4Cidr:f.rfc3986.ipv4Cidr,v6Cidr:f.rfc3986.ipv6Cidr,ipv4:f.rfc3986.ipv4address,ipv6:f.rfc3986.ipv6address,ipvfuture:f.rfc3986.ipvFuture},f.createRegex=function(p){const h=f.rfc3986,v="(?:\\?"+(p.allowQuerySquareBrackets?h.queryWithSquareBrackets:h.query)+")?(?:#"+h.fragment+")?",_=p.domain?h.relativeRefCapture:h.relativeRef;if(p.relativeOnly)return f.wrap(_+v);let y="";if(p.scheme){s(p.scheme instanceof RegExp||typeof p.scheme=="string"||Array.isArray(p.scheme),"scheme must be a RegExp, String, or Array");const D=[].concat(p.scheme);s(D.length>=1,"scheme must have at least 1 scheme specified");const A=[];for(let L=0;L<D.length;++L){const T=D[L];s(T instanceof RegExp||typeof T=="string","scheme at position "+L+" must be a RegExp or String"),T instanceof RegExp?A.push(T.source.toString()):(s(h.schemeRegex.test(T),"scheme at position "+L+" must be a valid scheme"),A.push(l(T)))}y=A.join("|")}const k="(?:"+(y?"(?:"+y+")":h.scheme)+":"+(p.domain?h.hierPartCapture:h.hierPart)+")",w=p.allowRelative?"(?:"+k+"|"+_+")":k;return f.wrap(w+v,y)},f.wrap=function(p,h){return{raw:p="(?=.)(?!https?:/$)".concat(p),regex:new RegExp("^".concat(p,"$")),scheme:h}},f.uriRegex=f.createRegex({}),o.regex=function(p={}){return p.scheme||p.allowRelative||p.relativeOnly||p.allowQuerySquareBrackets||p.domain?f.createRegex(p):f.uriRegex}},1447:(a,o)=>{const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*\.?[0-9]*){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};o.Parser=class{constructor(s,l={}){if(!l[r.settings]&&l.constants)for(const f in l.constants){const p=l.constants[f];if(p!==null&&!["boolean","number","string"].includes(typeof p))throw new Error("Formula constant ".concat(f," contains invalid ").concat(typeof p," value type"))}this.settings=l[r.settings]?l:Object.assign({[r.settings]:!0,constants:{},functions:{}},l),this.single=null,this._parts=null,this._parse(s)}_parse(s){let l=[],f="",p=0,h=!1;const v=y=>{if(p)throw new Error("Formula missing closing parenthesis");const k=l.length?l[l.length-1]:null;if(h||f||y){if(k&&k.type==="reference"&&y===")")return k.type="function",k.value=this._subFormula(f,k.value),void(f="");if(y===")"){const w=new o.Parser(f,this.settings);l.push({type:"segment",value:w})}else if(h){if(h==="]")return l.push({type:"reference",value:f}),void(f="");l.push({type:"literal",value:f})}else if(r.operatorCharacters.includes(f))k&&k.type==="operator"&&r.operators.includes(k.value+f)?k.value+=f:l.push({type:"operator",value:f});else if(f.match(r.numberRx))l.push({type:"constant",value:parseFloat(f)});else if(this.settings.constants[f]!==void 0)l.push({type:"constant",value:this.settings.constants[f]});else{if(!f.match(r.tokenRx))throw new Error("Formula contains invalid token: ".concat(f));l.push({type:"reference",value:f})}f=""}};for(const y of s)h?y===h?(v(),h=!1):f+=y:p?y==="("?(f+=y,++p):y===")"?(--p,p?f+=y:v(y)):f+=y:y in r.literals?h=r.literals[y]:y==="("?(v(),++p):r.operatorCharacters.includes(y)?(v(),f=y,v()):y!==" "?f+=y:v();v(),l=l.map((y,k)=>y.type!=="operator"||y.value!=="-"||k&&l[k-1].type!=="operator"?y:{type:"operator",value:"n"});let _=!1;for(const y of l){if(y.type==="operator"){if(r.operatorsPrefix.includes(y.value))continue;if(!_)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(y.value))throw new Error("Formula contains an unknown operator ".concat(y.value))}else if(_)throw new Error("Formula missing expected operator");_=!_}if(!_)throw new Error("Formula contains invalid trailing operator");l.length===1&&["reference","literal","constant"].includes(l[0].type)&&(this.single={type:l[0].type==="reference"?"reference":"value",value:l[0].value}),this._parts=l.map(y=>{if(y.type==="operator")return r.operatorsPrefix.includes(y.value)?y:y.value;if(y.type!=="reference")return y.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(y.value))throw new Error("Formula contains invalid reference ".concat(y.value));return this.settings.reference?this.settings.reference(y.value):r.reference(y.value)})}_subFormula(s,l){const f=this.settings.functions[l];if(typeof f!="function")throw new Error("Formula contains unknown function ".concat(l));let p=[];if(s){let h="",v=0,_=!1;const y=()=>{if(!h)throw new Error("Formula contains function ".concat(l," with invalid arguments ").concat(s));p.push(h),h=""};for(let k=0;k<s.length;++k){const w=s[k];_?(h+=w,w===_&&(_=!1)):w in r.literals&&!v?(h+=w,_=r.literals[w]):w!==","||v?(h+=w,w==="("?++v:w===")"&&--v):y()}y()}return p=p.map(h=>new o.Parser(h,this.settings)),function(h){const v=[];for(const _ of p)v.push(_.evaluate(h));return f.call(h,...v)}}evaluate(s){const l=this._parts.slice();for(let f=l.length-2;f>=0;--f){const p=l[f];if(p&&p.type==="operator"){const h=l[f+1];l.splice(f+1,1);const v=r.evaluate(h,s);l[f]=r.single(p.value,v)}}return r.operatorsOrder.forEach(f=>{for(let p=1;p<l.length-1;)if(f.includes(l[p])){const h=l[p],v=r.evaluate(l[p-1],s),_=r.evaluate(l[p+1],s);l.splice(p,2);const y=r.calculate(h,v,_);l[p-1]=y===0?0:y}else p+=2}),r.evaluate(l[0],s)}},o.Parser.prototype[r.symbol]=!0,r.reference=function(s){return function(l){return l&&l[s]!==void 0?l[s]:null}},r.evaluate=function(s,l){return s===null?null:typeof s=="function"?s(l):s[r.symbol]?s.evaluate(l):s},r.single=function(s,l){if(s==="!")return!l;const f=-l;return f===0?0:f},r.calculate=function(s,l,f){if(s==="??")return r.exists(l)?l:f;if(typeof l=="string"||typeof f=="string"){if(s==="+")return(l=r.exists(l)?l:"")+(r.exists(f)?f:"")}else switch(s){case"^":return Math.pow(l,f);case"*":return l*f;case"/":return l/f;case"%":return l%f;case"+":return l+f;case"-":return l-f}switch(s){case"<":return l<f;case"<=":return l<=f;case">":return l>f;case">=":return l>=f;case"==":return l===f;case"!=":return l!==f;case"&&":return l&&f;case"||":return l||f}return null},r.exists=function(s){return s!=null}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{}},i={},function a(o){var r=i[o];if(r!==void 0)return r.exports;var s=i[o]={exports:{}};return n[o](s,s.exports,a),s.exports}(5107);var n,i})})(DE);var $w=DE.exports;const td=$w.extend({type:"string",base:$w.string(),messages:{"string.contains":"{{#label}} must contain [{{#substring}}]","string.ncontains":"{{#label}} can't contain [{{#substring}}]"},rules:{contains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"contains",args:{substring:e}})},validate(e,t,{substring:n}){return e.includes(n)===!1?t.error("string.contains",{substring:n}):e}},ncontains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"ncontains",args:{substring:e}})},validate(e,t,{substring:n}){return e.includes(n)===!0?t.error("string.ncontains",{substring:n}):e}}}}),Fte={requireAll:!1};function db(e,t){var n,i;e=e||{},t=lt.exports.merge({},Fte,t);const a={},o=Object.keys(e)[0];if(!o)throw new Error(`[generateJoi] Filter doesn't contain field key. Passed filter: ${JSON.stringify(e)}`);const r=Object.values(e)[0];if(!r)throw new Error(`[generateJoi] Filter doesn't contain filter rule. Passed filter: ${JSON.stringify(e)}`);if(((n=Object.keys(r)[0])===null||n===void 0?void 0:n.startsWith("_"))===!1)a[o]=db(r,t);else{const s=Object.keys(r)[0],l=Object.values(r)[0],f=()=>{var _;return(_=a[o])!==null&&_!==void 0?_:td.any()},p=()=>{var _;return(_=a[o])!==null&&_!==void 0?_:td.string()},h=()=>{var _;return(_=a[o])!==null&&_!==void 0?_:td.number()},v=()=>{var _;return(_=a[o])!==null&&_!==void 0?_:td.date()};if(s==="_eq"&&(a[o]=f().equal(l)),s==="_neq"&&(a[o]=f().not(l)),s==="_contains"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().contains(l)),s==="_icontains"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().contains(l)),s==="_ncontains"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().ncontains(l)),s==="_starts_with"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().pattern(new RegExp(`^${lt.exports.escapeRegExp(l)}.*`),{name:"starts_with"})),s==="_nstarts_with"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().pattern(new RegExp(`^${lt.exports.escapeRegExp(l)}.*`),{name:"starts_with",invert:!0})),s==="_ends_with"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().pattern(new RegExp(`.*${lt.exports.escapeRegExp(l)}$`),{name:"ends_with"})),s==="_nends_with"&&(l==null||typeof l!="string"?a[o]=td.any().equal(!0):a[o]=p().pattern(new RegExp(`.*${lt.exports.escapeRegExp(l)}$`),{name:"ends_with",invert:!0})),s==="_in"&&(a[o]=f().equal(...l)),s==="_nin"&&(a[o]=f().not(...l)),s==="_gt"){const _=l instanceof Date||Number.isNaN(Number(l));a[o]=_?v().greater(l):h().greater(Number(l))}if(s==="_gte"){const _=l instanceof Date||Number.isNaN(Number(l));a[o]=_?v().min(l):h().min(Number(l))}if(s==="_lt"){const _=l instanceof Date||Number.isNaN(Number(l));a[o]=_?v().less(l):h().less(Number(l))}if(s==="_lte"){const _=l instanceof Date||Number.isNaN(Number(l));a[o]=_?v().max(l):h().max(Number(l))}if(s==="_null"&&(a[o]=f().valid(null)),s==="_nnull"&&(a[o]=f().invalid(null)),s==="_empty"&&(a[o]=f().valid("")),s==="_nempty"&&(a[o]=f().invalid("")),s==="_between")if(l.every(_=>{const y=Number(_ instanceof Date?NaN:_);return!Number.isNaN(y)&&Math.abs(y)<=Number.MAX_SAFE_INTEGER})){const _=l;a[o]=h().min(Number(_[0])).max(Number(_[1]))}else{const _=l;a[o]=v().min(_[0]).max(_[1])}if(s==="_nbetween")if(l.every(_=>{const y=Number(_ instanceof Date?NaN:_);return!Number.isNaN(y)&&Math.abs(y)<=Number.MAX_SAFE_INTEGER})){const _=l;a[o]=h().less(Number(_[0])).greater(Number(_[1]))}else{const _=l;a[o]=v().less(_[0]).greater(_[1])}if(s==="_submitted"&&(a[o]=f().required()),s==="_regex")if(l==null)a[o]=td.any().equal(!0);else{const _=typeof l=="string"?l.startsWith("/")&&l.endsWith("/"):!1;a[o]=p().regex(new RegExp(_?l.slice(1,-1):l))}}return a[o]=(i=a[o])!==null&&i!==void 0?i:td.any(),t.requireAll&&(a[o]=a[o].required()),td.object(a).unknown()}function Rte(e){return e.schema?"table":e.meta?"alias":"unknown"}function cf(e){return e.startsWith("directus_")?`/${e.substring(9)}`:`/items/${e}`}function IE(e,t){const n=t!=null&&t.includeValidation?["regex"]:[];switch(e){case"binary":case"string":case"text":case"csv":return["contains","ncontains","icontains","starts_with","nstarts_with","ends_with","nends_with","eq","neq","empty","nempty","null","nnull","in","nin",...n];case"hash":return["empty","nempty","null","nnull"];case"uuid":return["eq","neq","null","nnull","in","nin"];case"json":return["null","nnull"];case"boolean":return["eq","neq","null","nnull"];case"bigInteger":case"integer":case"decimal":case"float":return["eq","neq","lt","lte","gt","gte","between","nbetween","null","nnull","in","nin"];case"dateTime":case"date":case"time":return["eq","neq","lt","lte","gt","gte","between","nbetween","null","nnull","in","nin"];case"geometry":return["null","nnull","intersects","nintersects","intersects_bbox","nintersects_bbox"];default:return["contains","ncontains","eq","neq","lt","lte","gt","gte","between","nbetween","empty","nempty","null","nnull","in","nin",...n]}}function Ote(e){switch(e){case"dateTime":case"timestamp":return["year","month","week","day","weekday","hour","minute","second"];case"date":return["year","month","week","day","weekday"];case"time":return["hour","minute","second"];case"json":return["count"];case"alias":return["count"];default:return[]}}function ME(e){return{year:"integer",month:"integer",week:"integer",day:"integer",weekday:"integer",hour:"integer",minute:"integer",second:"integer",count:"integer"}[e]}function LE(e){let t=0;for(let n=0;n<e.length;t&=t)t=31*t+e.charCodeAt(n++);return Math.abs(t).toString(16)}function Hh(e,t,n){const[i,...a]=t.split("."),o=Array.isArray(e)?e.map(r=>r==null?void 0:r[i]):e==null?void 0:e[i];return a.length>0?Hh(o,a.join("."),n):o!=null?o:n}const $te=["$NOW","$CURRENT_USER","$CURRENT_ROLE"];function zte(e){return typeof e=="string"&&$te.some(t=>e.startsWith(t))}function M0(e,t,n="and"){return e?t?{[`_${n}`]:[e,t]}:e:t}const jte=["bigInteger","boolean","date","dateTime","decimal","float","integer","json","string","text","time","timestamp","binary","uuid"],Vte=[...jte,"alias","hash","csv","geometry","geometry.Point","geometry.LineString","geometry.Polygon","geometry.MultiPoint","geometry.MultiLineString","geometry.MultiPolygon","unknown"],PE=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],Nte=["standard","file","files","m2o","o2m","m2m","m2a","presentation","translations","group"],fb=/\(([^)]+)\)/;function fc(e){return typeof e=="string"?e.split(","):Array.isArray(e)?e:[e]}function C8(e,t,n={}){var i;if(e==null)return null;if(!lt.exports.isObjectLike(e))return{_eq:w3(e,t,n)};const a=Object.entries(e).map(o=>Ute(o,t,n));return a.length===0?{}:a.length===1?(i=a[0])!==null&&i!==void 0?i:null:{_and:a}}function Bte(e,t,n){return e&&Uh(e,i=>w3(i,t,n))}function Ute([e,t],n,i){return["_or","_and"].includes(String(e))?{[e]:t.map(a=>C8(a,n,i))}:["_in","_nin","_between","_nbetween"].includes(String(e))?{[e]:fc(t).flatMap(a=>w3(a,n,i))}:String(e).startsWith("_")?{[e]:w3(t,n,i)}:{[e]:C8(t,n,i)}}function w3(e,t,n){return e==="true"?!0:e==="false"?!1:e==="null"||e==="NULL"?null:zte(e)?Hte(e,t,n):e}function Hte(e,t,n){var i,a,o;if(e.startsWith("$NOW")){if(e.includes("(")&&e.includes(")")){const r=(i=e.match(fb))===null||i===void 0?void 0:i[1];return r?SE(new Date,r):new Date}return new Date}if(e.startsWith("$CURRENT_USER"))return e==="$CURRENT_USER"?(a=t==null?void 0:t.user)!==null&&a!==void 0?a:null:Hh(n,e,null);if(e.startsWith("$CURRENT_ROLE"))return e==="$CURRENT_ROLE"?(o=t==null?void 0:t.role)!==null&&o!==void 0?o:null:Hh(n,e,null)}const qte={year:Wte,month:Gte,week:Yte,day:Xte,weekday:Kte,hour:Zte,minute:Jte,second:Qte,count:ene};function Wte(e){return gf(e).getUTCFullYear()}function Gte(e){return gf(e).getUTCMonth()+1}function Yte(e){return Pee(gf(e))}function Xte(e){return Aee(gf(e))}function Kte(e){return Tee(gf(e))}function Zte(e){return gf(e).getUTCHours()}function Jte(e){return gf(e).getUTCMinutes()}function Qte(e){return gf(e).getUTCSeconds()}function ene(e){return Array.isArray(e)?e.length:null}function tne(e,t){const n=lt.exports.cloneDeep(e);return i(t),n;function i(a,o){var r;for(const[s,l]of Object.entries(a)){const f=o?o+"."+s:s;if(s.startsWith("_")===!1&<.exports.isPlainObject(l)&&i(l,f),s.includes("(")&&s.includes(")")){const p=s.split("(")[0],h=(r=s.match(fb))===null||r===void 0?void 0:r[1];if(!h||!p)continue;const v=o?o+"."+h:h,_=lt.exports.get(n,v);lt.exports.set(n,f,qte[p](_))}}}}function x3(e,t,n){const i=[];if(Object.keys(e)[0]==="_and"){const a=Object.values(e)[0],o=lt.exports.flatten(a.map(r=>x3(r,t,n))).filter(r=>r);i.push(...o)}else if(Object.keys(e)[0]==="_or"){const a=Object.values(e)[0],o=[];a.some(s=>{const l=x3(s,t,n);return l.length>0?(o.push(...l),!1):!0})||i.push(...o)}else{const a=tne(t,e),o=db(e,n),{error:r}=o.validate(a,{abortEarly:!1});r&&i.push(r)}return i}let nne=e=>crypto.getRandomValues(new Uint8Array(e)),ine=(e,t,n)=>{let i=(2<<Math.log(e.length-1)/Math.LN2)-1,a=-~(1.6*i*t/e.length);return()=>{let o="";for(;;){let r=n(a),s=a;for(;s--;)if(o+=e[r[s]&i]||"",o.length===t)return o}}},FE=(e,t)=>ine(e,t,nne),Mu=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let i=n[e]&63;i<36?t+=i.toString(36):i<62?t+=(i-26).toString(36).toUpperCase():i<63?t+="_":t+="-"}return t};const J0=Pu({id:"notificationsStore",state:()=>({dialogs:[],queue:[],previous:[],notifications:[],unread:0}),actions:{async hydrate(){const e=Qr();e.currentUser&&!("share"in e.currentUser)&&await this.getUnreadCount()},async getUnreadCount(){const e=Qr();if(!e.currentUser||!("id"in e.currentUser))return;const t=await $n.get("/notifications",{params:{filter:{_and:[{recipient:{_eq:e.currentUser.id}},{status:{_eq:"inbox"}}]},aggregate:{count:"id"}}});this.unread=t.data.data[0].count.id},add(e){const t=Mu(),n=Date.now();return e.dialog===!0?(e.persist=!0,this.dialogs=[...this.dialogs,{...e,id:t,timestamp:n}]):this.queue=[...this.queue,{...e,id:t,timestamp:n}],e.persist!==!0&&setTimeout(()=>{this.remove(t)},3e3),t},hide(e){const n=[...this.queue,...this.dialogs].find(i=>i.id===e);!n||(n.dialog===!0?this.dialogs=this.dialogs.filter(i=>i.id!==e):this.queue=this.queue.filter(i=>i.id!==e),this.previous=[...this.previous,n])},remove(e){const n=[...this.queue,...this.dialogs].find(i=>i.id===e);!n||(n.dialog===!0?this.dialogs=this.dialogs.filter(i=>i.id!==e):this.queue=this.queue.filter(i=>i.id!==e))},update(e,t){this.queue=this.queue.map(n),this.dialogs=this.dialogs.map(n),this.previous=this.queue.map(n);function n(i){return i.id===e?{...i,...t}:i}}},getters:{lastFour(){const e=[...this.queue,...this.previous.filter(i=>i.dialog!==!0)],n=lt.exports.reverse(lt.exports.sortBy(e,["timestamp"])).slice(0,4);return lt.exports.reverse(n)}}});let Z_;function sl(e){Z_||(Z_=J0()),Z_.add(e)}let J_;function Hi(e){var i,a,o,r,s,l,f,p,h,v;J_||(J_=J0());const t=((s=(r=(o=(a=(i=e.response)==null?void 0:i.data)==null?void 0:a.errors)==null?void 0:o[0])==null?void 0:r.extensions)==null?void 0:s.code)||((l=e==null?void 0:e.extensions)==null?void 0:l.code)||"UNKNOWN",n=((v=(h=(p=(f=e.response)==null?void 0:f.data)==null?void 0:p.errors)==null?void 0:h[0])==null?void 0:v.message)||e.message||void 0;console.warn(e),J_.add({title:mr.global.t(`errors.${t}`),text:n,type:"error",dialog:!0,error:e})}function rne(e){return e.replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1_$2").toLowerCase()}function ane(e){return e.charAt(0).toUpperCase()+e.substring(1)}var one=["2D","3D","4WD","API","BIOS","CCTV","CC","CCV","CD","CD-ROM","COBOL","CIA","CMS","CSS","CSV","CV","DIY","DVD","DB","DNA","E3","EIN","ESPN","FAQ","FAQs","FTP","FPS","FORTRAN","FBI","HTML","HTTP","ID","IP","ISO","JS","JSON","LASER","M2M","M2MM","M2O","MMORPG","NAFTA","NASA","NDA","O2M","PDF","PHP","POP","RAM","RNGR","ROM","RPG","RTFM","RTS","SCUBA","SITCOM","SKU","SMTP","SQL","SSN","SWAT","TBS","TTL","TV","TNA","UI","URL","USB","UWP","VIP","W3C","WYSIWYG","WWW","WWE","WWF"],sne=["a","an","the"],lne=["and","that","but","or","as","if","when","than","because","while","where","after","so","though","since","until","whether","before","although","nor","like","once","unless","now","except"],cne=["about","above","across","after","against","along","among","around","at","because of","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","despite","down","during","except","excepting","for","from","in","in front of","inside","in spite of","instead of","into","like","near","of","off","on","onto","out","outside","over","past","regarding","since","through","throughout","to","toward","under","underneath","until","up","upon","up to","with","within","without","with regard to","with respect to"],une=["2FA","3D","4K","5K","8K","CTA","DateTime","GitHub","HD","IBMid","ID","IDs","iMac","IMAX","iOS","IP","iPad","iPhone","iPod","LDAP","LinkedIn","M2M","M2O","macOS","McDonalds","MySQL","O2M","PDFs","pH","PostgreSQL","SEO","UHD","UUID","XSS","YouTube"];function dne(e,t,n){const i=e.toLowerCase(),a=e.toUpperCase();for(const o of une)if(o.toLowerCase()===i)return o;return one.includes(a)?a:t===0||t===n.length-1||e.length>=4?e:cne.includes(i)||lne.includes(i)||sne.includes(i)?i:e}function fne(e,t){return`${e} ${t}`}function ql(e,t){return t||(t=new RegExp("/s|-|_| ","g")),rne(e).split(t).map(ane).map(dne).reduce(fne)}const k3=["FAILED_VALIDATION","RECORD_NOT_UNIQUE"],pne=`
|
|
2
2
|
|
|
3
3
|
\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u283B\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28F6\u28E6\u28E4\u28C0\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800
|
|
4
4
|
\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2880\u2800\u283B\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28F7\u28E6\u28C0\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800
|
|
@@ -23,7 +23,7 @@ import{defineStore as Pu,storeToRefs as Dl,createPinia as eR}from"./pinia.ee5b7a
|
|
|
23
23
|
`)for(;Ve>=0&&Oe.charAt(Ve)!==" "&&Oe.charAt(Ve)!==`
|
|
24
24
|
`;)Ve--;for(;Ye<Oe.length&&Oe.charAt(Ye)!==" "&&Oe.charAt(Ye)!==`
|
|
25
25
|
`;)Ye++;const ot=Oe.substring(0,Ve+(Oe.charAt(Ve)===`
|
|
26
|
-
`?1:0)),Te=Oe.substring(Ye);s.value=ot+" @"+Ce.id+Te}function W({searchQuery:Ce,caretPosition:Oe}){y=Oe,h.value=!0,D(Ce),k.value=0}function N(Ce){return Ce===null?"":`/assets/${Ce}?key=system-small-cover`}async function K(){if(!(s.value===null||s.value.length===0)){p.value=!0;try{n.existingComment?await $n.patch(`/activity/comment/${n.existingComment.id}`,{comment:s.value}):await $n.post("/activity/comment",{collection:n.collection,item:n.primaryKey,comment:s.value}),n.refresh(),s.value="",sl({title:n.existingComment?i("post_comment_updated"):i("post_comment_success")})}catch(Ce){Hi(Ce)}finally{p.value=!1}}}function re(){k.value>0&&k.value--}function se(){k.value<v.value.length-1&&k.value++}function ce(){B(v.value[k.value]),h.value=!1}return(Ce,Oe)=>{const Ve=Y("v-template-input"),Ye=Y("v-image"),ot=Y("v-icon"),Te=Y("v-avatar"),it=Y("v-list-item-icon"),Le=Y("v-list-item-content"),De=Y("v-list-item"),ht=Y("v-list"),At=Y("v-menu"),Tt=Y("v-button"),Vt=Y("v-emoji-picker");return G(),Me("div",{class:wn(["input-container",{collapsed:V(f)}])},[F(At,{modelValue:h.value,"onUpdate:modelValue":Oe[3]||(Oe[3]=on=>h.value=on),attached:""},{activator:R(()=>[F(Ve,{ref_key:"commentElement",ref:a,modelValue:s.value,"onUpdate:modelValue":Oe[0]||(Oe[0]=on=>s.value=on),"capture-group":"(@[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12})",multiline:"","trigger-character":"@",items:_.value,placeholder:V(i)("leave_comment"),onTrigger:W,onDeactivate:Oe[1]||(Oe[1]=on=>h.value=!1),onUp:re,onDown:se,onEnter:ce,onFocus:Oe[2]||(Oe[2]=on=>l.value=!0)},null,8,["modelValue","items","placeholder"])]),default:R(()=>[F(ht,null,{default:R(()=>[(G(!0),Me(gn,null,vi(v.value,(on,_t)=>(G(),_e(De,{id:"suggestions",key:on.id,clickable:"",active:_t===V(k),onClick:Ut=>B(on)},{default:R(()=>[F(it,null,{default:R(()=>[F(Te,{"x-small":""},{default:R(()=>[on.avatar?(G(),_e(Ye,{key:0,src:N(on.avatar)},null,8,["src"])):(G(),_e(ot,{key:1,name:"person_outline"}))]),_:2},1024)]),_:2},1024),F(Le,null,{default:R(()=>[Ne(he(V(Mc)(on)),1)]),_:2},1024)]),_:2},1032,["active","onClick"]))),128))]),_:1})]),_:1},8,["modelValue"]),ke("div",toe,[F(Tt,{"x-small":"",secondary:"",icon:"",class:"mention",onClick:T},{default:R(()=>[F(ot,{name:"alternate_email"})]),_:1}),F(Vt,{onClick:L,onEmojiSelected:Oe[4]||(Oe[4]=on=>z(on))}),noe,F(Tt,{class:"cancel","x-small":"",secondary:"",onClick:A},{default:R(()=>[Ne(he(V(i)("cancel")),1)]),_:1}),F(Tt,{disabled:!s.value||s.value.length===0||s.value.trim()==="",loading:p.value,class:"post-comment","x-small":"",onClick:K},{default:R(()=>[Ne(he(V(i)("submit")),1)]),_:1},8,["disabled","loading"])])],2)}}});var uA=Ot(ioe,[["__scopeId","data-v-18581a34"]]);const Tl=(e,t,n)=>K1(e,t,{...n,locale:hb()});const roe={class:"comment-header"},aoe={class:"name"},ooe={class:"header-right"},soe={class:"time"},loe=$t({name:"comment-item-header",props:{activity:null,refresh:null},emits:["edit"],setup(e){const t=e,{t:n}=yn(),i=Ee(()=>t.activity.timestamp?K1(new Date(t.activity.timestamp),String(n("date-fns_time_no_seconds"))):null),a=Ee(()=>{var f;return(f=t.activity.user)!=null&&f.avatar?`/assets/${t.activity.user.avatar.id}?key=system-small-cover`:null}),{confirmDelete:o,deleting:r,remove:s}=l();function l(){const f=ze(!1),p=ze(!1);return{confirmDelete:f,deleting:p,remove:h};async function h(){p.value=!0;try{await $n.delete(`/activity/comment/${t.activity.id}`),await t.refresh(),f.value=!1}catch(v){Hi(v)}finally{p.value=!1}}}return(f,p)=>{const h=Y("v-image"),v=Y("v-icon"),_=Y("v-avatar"),y=Y("user-popover"),k=Y("v-list-item-icon"),w=Y("v-list-item-content"),D=Y("v-list-item"),A=Y("v-list"),L=Y("v-menu"),T=Y("v-card-title"),z=Y("v-card-text"),B=Y("v-button"),W=Y("v-card-actions"),N=Y("v-card"),K=Y("v-dialog");return G(),Me("div",roe,[F(_,{"x-small":""},{default:R(()=>[V(a)?(G(),_e(h,{key:0,src:V(a),alt:V(Mc)(e.activity.user)},null,8,["src","alt"])):(G(),_e(v,{key:1,name:"person_outline"}))]),_:1}),ke("div",aoe,[e.activity.user&&e.activity.user.id?(G(),_e(y,{key:0,user:e.activity.user.id},{default:R(()=>[ke("span",null,[e.activity.user&&e.activity.user?(G(),Me(gn,{key:0},[Ne(he(V(Mc)(e.activity.user)),1)],64)):(G(),Me(gn,{key:1},[Ne(he(V(n)("private_user")),1)],64))])]),_:1},8,["user"])):Je("",!0)]),ke("div",ooe,[F(L,{"show-arrow":"",placement:"bottom-end"},{activator:R(({toggle:re,active:se})=>[F(v,{class:wn(["more",{active:se}]),name:"more_horiz",clickable:"",onClick:re},null,8,["class","onClick"]),ke("div",soe,he(V(i)),1)]),default:R(()=>[F(A,null,{default:R(()=>[F(D,{clickable:"",onClick:p[0]||(p[0]=re=>f.$emit("edit"))},{default:R(()=>[F(k,null,{default:R(()=>[F(v,{name:"edit"})]),_:1}),F(w,null,{default:R(()=>[Ne(he(V(n)("edit")),1)]),_:1})]),_:1}),F(D,{clickable:"",onClick:p[1]||(p[1]=re=>o.value=!0)},{default:R(()=>[F(k,null,{default:R(()=>[F(v,{name:"delete"})]),_:1}),F(w,null,{default:R(()=>[Ne(he(V(n)("delete_label")),1)]),_:1})]),_:1})]),_:1})]),_:1})]),F(K,{modelValue:V(o),"onUpdate:modelValue":p[3]||(p[3]=re=>zr(o)?o.value=re:null),onEsc:p[4]||(p[4]=re=>o.value=!1)},{default:R(()=>[F(N,null,{default:R(()=>[F(T,null,{default:R(()=>[Ne(he(V(n)("delete_comment")),1)]),_:1}),F(z,null,{default:R(()=>[Ne(he(V(n)("delete_are_you_sure")),1)]),_:1}),F(W,null,{default:R(()=>[F(B,{secondary:"",onClick:p[2]||(p[2]=re=>o.value=!1)},{default:R(()=>[Ne(he(V(n)("cancel")),1)]),_:1}),F(B,{kind:"danger",loading:V(r),onClick:V(s)},{default:R(()=>[Ne(he(V(n)("delete_label")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}});var coe=Ot(loe,[["__scopeId","data-v-076be903"]]);const uoe={class:"comment-item"},doe={key:1,class:"content selectable"},foe=$t({name:"comment-item",props:{activity:null,refresh:null,collection:null,primaryKey:null,userPreviews:{default:()=>({})}},setup(e){const t=e,{editing:n,cancelEditing:i}=a();function a(){const o=ze(t.activity.comment),r=ze(!1),s=ze(!1);return Zn(()=>t.activity,()=>o.value=t.activity.comment),{edits:o,editing:r,savingEdits:s,saveEdits:l,cancelEditing:f};async function l(){s.value=!0;try{await $n.patch(`/activity/comment/${t.activity.id}`,{comment:o.value}),t.refresh()}catch(p){Hi(p)}finally{s.value=!1,r.value=!1}}function f(){o.value=t.activity.comment,r.value=!1}}return(o,r)=>{const s=pi("md");return G(),Me("div",uoe,[F(coe,{refresh:e.refresh,activity:e.activity,onEdit:r[0]||(r[0]=l=>n.value=!0)},null,8,["refresh","activity"]),V(n)?(G(),_e(uA,{key:0,"existing-comment":e.activity,"primary-key":e.primaryKey,collection:e.collection,refresh:e.refresh,previews:e.userPreviews,onCancel:V(i)},null,8,["existing-comment","primary-key","collection","refresh","previews","onCancel"])):dn((G(),Me("div",doe,null,512)),[[s,{value:e.activity.display,target:"_blank"}]])])}}});var poe=Ot(foe,[["__scopeId","data-v-a4a35e98"]]);const hoe={key:1,class:"empty"},moe={class:"content"},voe=$t({name:"comments-sidebar-detail",props:{collection:null,primaryKey:null},setup(e){const t=e,{t:n}=yn(),{activity:i,loading:a,refresh:o,count:r,userPreviews:s}=l(t.collection,t.primaryKey);function l(p,h){const v=/\s@[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}/gm,_=ze(null),y=ze(0),k=ze(null),w=ze(!1),D=ze({});return A(),{activity:_,error:k,loading:w,refresh:L,count:y,userPreviews:D};async function A(){k.value=null,w.value=!0;try{const T=await $n.get("/activity",{params:{"filter[collection][_eq]":p,"filter[item][_eq]":h,"filter[action][_eq]":"comment",sort:"-id",fields:["id","action","timestamp","user.id","user.email","user.first_name","user.last_name","user.avatar.id","revisions.id","comment"]}});y.value=T.data.data.length,D.value=await f(T.data.data,v);const z=T.data.data.map(N=>{const K=N.comment.replace(v,re=>`<mark>${D.value[re.substring(2)]}</mark>`);return{...N,display:K}}),B=lt.exports.groupBy(z,N=>new Date(new Date(N.timestamp).toDateString())),W=[];for(const[N,K]of Object.entries(B)){const re=new Date(N),se=_E(re),ce=bE(re),de=yE(re);let ge;se?ge=n("today"):ce?ge=n("yesterday"):de?ge=Tl(re,String(n("date-fns_date_short_no_year"))):ge=Tl(re,String(n("date-fns_date_short"))),W.push({date:re,dateFormatted:String(ge),activity:K})}_.value=lt.exports.orderBy(W,["date"],["desc"])}catch(T){T.value=T}finally{w.value=!1}}async function L(){await A()}}async function f(p,h){let v=[];p.forEach(y=>{v.push(y.comment.match(h))});const _=[...new Set(lt.exports.flatten(v))].filter(y=>{if(y)return y});if(_.length>0){const y=await $n.get("/users",{params:{filter:{id:{_in:_.map(w=>w.substring(2))}},fields:["first_name","last_name","email","id"]}}),k={};return y.data.data.map(w=>{k[w.id]=Mc(w)}),k}return{}}return(p,h)=>{const v=Y("v-progress-linear"),_=Y("v-divider"),y=Y("sidebar-detail");return G(),_e(y,{title:V(n)("comments"),icon:"chat_bubble_outline",badge:V(r)||null},{default:R(()=>[F(uA,{refresh:V(o),collection:e.collection,"primary-key":e.primaryKey},null,8,["refresh","collection","primary-key"]),V(a)?(G(),_e(v,{key:0,indeterminate:""})):!V(i)||V(i).length===0?(G(),Me("div",hoe,[ke("div",moe,he(V(n)("no_comments")),1)])):(G(!0),Me(gn,{key:2},vi(V(i),k=>(G(),Me(gn,{key:k.date.toString()},[F(_,null,{default:R(()=>[Ne(he(k.dateFormatted),1)]),_:2},1024),(G(!0),Me(gn,null,vi(k.activity,w=>(G(),_e(poe,{key:w.id,refresh:V(o),activity:w,"user-previews":V(s),"primary-key":e.primaryKey,collection:e.collection},null,8,["refresh","activity","user-previews","primary-key","collection"]))),128))],64))),128))]),_:1},8,["title","badge"])}}});var Tb=Ot(voe,[["__scopeId","data-v-ade7dd8c"]]);const Db=(e,t,n)=>Cee(e,t,{...n,locale:hb()});function dA(e,t,n){const{t:i}=yn(),a=ze(null),o=ze(null),r=ze(!1),s=ze(0),l=ze(),f=ze(0);return Zn([e,t],()=>p(),{immediate:!0}),{created:l,revisions:a,revisionsByDate:o,loading:r,refresh:h,revisionsCount:s,pagesCount:f};async function p(y=0){var w,D,A,L;if(typeof V(t)=="undefined")return;r.value=!0;const k=100;try{const T={_and:[{collection:{_eq:V(e)}},{item:{_eq:V(t)}}]};n!=null&&n.action&&T._and.push({activity:{action:{_eq:n==null?void 0:n.action}}});const z=await $n.get("/revisions",{params:{filter:T,sort:"-id",limit:k,page:y,fields:["id","data","delta","collection","item","activity.action","activity.timestamp","activity.user.id","activity.user.email","activity.user.first_name","activity.user.last_name","activity.ip","activity.user_agent","activity.origin"],meta:["filter_count"]}}),B=await $n.get("/revisions",{params:{filter:{collection:{_eq:V(e)},item:{_eq:V(t)},activity:{action:{_eq:"create"}}},sort:"-id",limit:1,fields:["id","data","delta","collection","item","activity.action","activity.timestamp","activity.user.id","activity.user.email","activity.user.first_name","activity.user.last_name","activity.ip","activity.user_agent","activity.origin"],meta:["filter_count"]}});l.value=(w=B.data.data)==null?void 0:w[0];const W=lt.exports.groupBy(z.data.data.filter(K=>!!K.activity),K=>new Date(new Date(K.activity.timestamp).toDateString())),N=[];for(const[K,re]of Object.entries(W)){const se=new Date(K),ce=_E(se),de=bE(se),ge=yE(se);let Ce;ce?Ce=i("today"):de?Ce=i("yesterday"):ge?Ce=Tl(se,String(i("date-fns_date_short_no_year"))):Ce=Tl(se,String(i("date-fns_date_short")));const Oe=[];for(const Ve of re)Oe.push({...Ve,timestampFormatted:await _((D=Ve.activity)==null?void 0:D.timestamp),timeRelative:`${v((A=Ve.activity)==null?void 0:A.timestamp)} (${Db(gf((L=Ve.activity)==null?void 0:L.timestamp),new Date,{addSuffix:!0})})`});N.push({date:se,dateFormatted:String(Ce),revisions:Oe})}o.value=lt.exports.orderBy(N,["date"],["desc"]),a.value=lt.exports.orderBy(z.data.data,["activity.timestamp"],["desc"]),s.value=z.data.meta.filter_count,f.value=Math.ceil(s.value/k)}catch(T){Hi(T)}finally{r.value=!1}}async function h(y=0){await p(y)}function v(y){return K1(new Date(y),String(i("date-fns_time")))}async function _(y){const k=Tl(new Date(y),String(i("date-fns_date_short"))),w=Tl(new Date(y),String(i("date-fns_time")));return`${k} (${w})`}}const goe=$t({props:{revision:{type:Object,required:!0},last:{type:Boolean,default:!1}},emits:["click"],setup(e){const{t}=yn(),n=Ee(()=>Object.keys(e.revision.delta).length),i=Ee(()=>{switch(e.revision.activity.action.toLowerCase()){case"create":return t("revision_delta_created");case"update":return t("revision_delta_updated",n.value);case"delete":return t("revision_delta_deleted");case"revert":return t("revision_delta_reverted");default:return t("revision_delta_other")}}),a=Ee(()=>K1(new Date(e.revision.activity.timestamp),String(t("date-fns_time")))),o=Ee(()=>{var r,s;return((s=(r=e.revision)==null?void 0:r.activity)==null?void 0:s.user)&&typeof e.revision.activity.user=="object"?Mc(e.revision.activity.user):t("private_user")});return{t,headerMessage:i,time:a,user:o}}}),yoe={class:"header"},_oe={class:"content"},boe={class:"time"},woe=Ne(" \u2013 "),xoe={key:1};function koe(e,t,n,i,a,o){const r=Y("user-popover");return G(),Me("div",{class:wn(["revision-item",{last:e.last}]),onClick:t[0]||(t[0]=s=>e.$emit("click"))},[ke("div",yoe,[ke("span",{class:wn(["dot",e.revision.activity.action])},null,2),Ne(" "+he(e.headerMessage),1)]),ke("div",_oe,[ke("span",boe,he(e.time),1),woe,e.revision.activity.user?(G(),_e(r,{key:0,class:"user",user:e.revision.activity.user.id},{default:R(()=>[ke("span",null,he(e.user),1)]),_:1},8,["user"])):(G(),Me("span",xoe,he(e.t("private_user")),1))])],2)}var Soe=Ot(goe,[["render",koe],["__scopeId","data-v-5ea76508"]]);const Coe={class:"scroll-container"},Eoe=$t({name:"revisions-date-group",props:{group:null},emits:["click"],setup(e){const t=ze(!0);return(n,i)=>{const a=Y("v-detail");return G(),_e(a,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o),label:e.group.dateFormatted,class:"revisions-date-group"},{default:R(()=>[dn(ke("div",Coe,[(G(!0),Me(gn,null,vi(e.group.revisions,(o,r)=>(G(),_e(Soe,{key:o.id,revision:o,last:r===e.group.revisions.length-1,onClick:s=>n.$emit("click",o.id)},null,8,["revision","last","onClick"]))),128))],512),[[Ff,t.value]])]),_:1},8,["modelValue","label"])}}});const Aoe=$t({props:{revisions:{type:Array,required:!0},current:{type:Number,required:!0}},emits:["update:current"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"current",t),a=ze(null);Zn(()=>e.revisions,async()=>{const s=[];for(const l of e.revisions){const f=await r(l);let p=n("private_user");if(typeof l.activity.user=="object"){const _=l.activity.user;p=Mc(_)}const h=String(n("revision_delta_by",{date:f,user:p})),v=l.id;s.push({text:h,value:v})}a.value=s},{immediate:!0});const o=Ee(()=>{var s;return(s=a.value)==null?void 0:s.find(l=>l.value===i.value)});return{internalCurrent:i,options:a,selectedOption:o};async function r(s){const l=Tl(new Date(s.activity.timestamp),String(n("date-fns_date_short"))),f=Tl(new Date(s.activity.timestamp),String(n("date-fns_time")));return`${l} (${f})`}}}),Toe=["onClick"];function Doe(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-content"),l=Y("v-list-item"),f=Y("v-list"),p=Y("v-menu");return G(),_e(p,{"show-arrow":""},{activator:R(({toggle:h})=>[ke("span",{class:"picker",onClick:h},[Ne(he(e.selectedOption&&e.selectedOption.text)+" ",1),F(r,{name:"expand_more",small:""})],8,Toe)]),default:R(()=>[F(f,{class:"menu"},{default:R(()=>[(G(!0),Me(gn,null,vi(e.options,h=>(G(),_e(l,{key:h.value,clickable:"",active:e.internalCurrent===h.value,onClick:v=>e.internalCurrent=h.value},{default:R(()=>[F(r,{name:"commit_node"}),F(s,null,{default:R(()=>[Ne(he(h.text),1)]),_:2},1024)]),_:2},1032,["active","onClick"]))),128))]),_:1})]),_:1})}var Ioe=Ot(Aoe,[["render",Doe],["__scopeId","data-v-ae901cba"]]);const Moe=$t({props:{revision:{type:Object,required:!0}},setup(){const{t:e}=yn();return{t:e}}}),Loe=e=>(ya("data-v-3b33029f"),e=e(),_a(),e),Poe=Loe(()=>ke("br",null,null,-1));function Foe(e,t,n,i,a,o){const r=Y("v-notice"),s=Y("v-form");return G(),Me("div",null,[F(r,{type:"info"},{default:R(()=>[Ne(he(e.revision.activity.action==="create"?e.t("revision_post_create"):e.t("revision_post_update"))+" ",1),Poe,Ne(" "+he(e.t("no_relational_data")),1)]),_:1}),F(s,{disabled:"",collection:e.revision.collection,"primary-key":e.revision.item,"initial-values":e.revision.data},null,8,["collection","primary-key","initial-values"])])}var Roe=Ot(Moe,[["render",Foe],["__scopeId","data-v-3b33029f"]]);function oh(){}oh.prototype={diff:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.callback;typeof i=="function"&&(a=i,i={}),this.options=i;var o=this;function r(k){return a?(setTimeout(function(){a(void 0,k)},0),!0):k}t=this.castInput(t),n=this.castInput(n),t=this.removeEmpty(this.tokenize(t)),n=this.removeEmpty(this.tokenize(n));var s=n.length,l=t.length,f=1,p=s+l;i.maxEditLength&&(p=Math.min(p,i.maxEditLength));var h=[{newPos:-1,components:[]}],v=this.extractCommon(h[0],n,t,0);if(h[0].newPos+1>=s&&v+1>=l)return r([{value:this.join(n),count:n.length}]);function _(){for(var k=-1*f;k<=f;k+=2){var w=void 0,D=h[k-1],A=h[k+1],L=(A?A.newPos:0)-k;D&&(h[k-1]=void 0);var T=D&&D.newPos+1<s,z=A&&0<=L&&L<l;if(!T&&!z){h[k]=void 0;continue}if(!T||z&&D.newPos<A.newPos?(w=$oe(A),o.pushComponent(w.components,void 0,!0)):(w=D,w.newPos++,o.pushComponent(w.components,!0,void 0)),L=o.extractCommon(w,n,t,k),w.newPos+1>=s&&L+1>=l)return r(Ooe(o,w.components,n,t,o.useLongestToken));h[k]=w}f++}if(a)(function k(){setTimeout(function(){if(f>p)return a();_()||k()},0)})();else for(;f<=p;){var y=_();if(y)return y}},pushComponent:function(t,n,i){var a=t[t.length-1];a&&a.added===n&&a.removed===i?t[t.length-1]={count:a.count+1,added:n,removed:i}:t.push({count:1,added:n,removed:i})},extractCommon:function(t,n,i,a){for(var o=n.length,r=i.length,s=t.newPos,l=s-a,f=0;s+1<o&&l+1<r&&this.equals(n[s+1],i[l+1]);)s++,l++,f++;return f&&t.components.push({count:f}),t.newPos=s,l},equals:function(t,n){return this.options.comparator?this.options.comparator(t,n):t===n||this.options.ignoreCase&&t.toLowerCase()===n.toLowerCase()},removeEmpty:function(t){for(var n=[],i=0;i<t.length;i++)t[i]&&n.push(t[i]);return n},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function Ooe(e,t,n,i,a){for(var o=0,r=t.length,s=0,l=0;o<r;o++){var f=t[o];if(f.removed){if(f.value=e.join(i.slice(l,l+f.count)),l+=f.count,o&&t[o-1].added){var h=t[o-1];t[o-1]=t[o],t[o]=h}}else{if(!f.added&&a){var p=n.slice(s,s+f.count);p=p.map(function(_,y){var k=i[l+y];return k.length>_.length?k:_}),f.value=e.join(p)}else f.value=e.join(n.slice(s,s+f.count));s+=f.count,f.added||(l+=f.count)}}var v=t[r-1];return r>1&&typeof v.value=="string"&&(v.added||v.removed)&&e.equals("",v.value)&&(t[r-2].value+=v.value,t.pop()),t}function $oe(e){return{newPos:e.newPos,components:e.components.slice(0)}}var Jw=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Qw=/\S/,Ib=new oh;Ib.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Qw.test(e)&&!Qw.test(t)};Ib.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&Jw.test(t[n])&&Jw.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};function zoe(e,t,n){return Ib.diff(e,t,n)}var fA=new oh;fA.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var i=0;i<n.length;i++){var a=n[i];i%2&&!this.options.newlineIsToken?t[t.length-1]+=a:(this.options.ignoreWhitespace&&(a=a.trim()),t.push(a))}return t};var joe=new oh;joe.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Voe=new oh;Voe.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ky(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ky=function(t){return typeof t}:Ky=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ky(e)}var Noe=Object.prototype.toString,Mv=new oh;Mv.useLongestToken=!0;Mv.tokenize=fA.tokenize;Mv.castInput=function(e){var t=this.options,n=t.undefinedReplacement,i=t.stringifyReplacer,a=i===void 0?function(o,r){return typeof r=="undefined"?n:r}:i;return typeof e=="string"?e:JSON.stringify(D8(e,null,null,a),a," ")};Mv.equals=function(e,t){return oh.prototype.equals.call(Mv,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Boe(e,t,n){return Mv.diff(e,t,n)}function D8(e,t,n,i,a){t=t||[],n=n||[],i&&(e=i(a,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var r;if(Noe.call(e)==="[object Array]"){for(t.push(e),r=new Array(e.length),n.push(r),o=0;o<e.length;o+=1)r[o]=D8(e[o],t,n,i,a);return t.pop(),n.pop(),r}if(e&&e.toJSON&&(e=e.toJSON()),Ky(e)==="object"&&e!==null){t.push(e),r={},n.push(r);var s=[],l;for(l in e)e.hasOwnProperty(l)&&s.push(l);for(s.sort(),o=0;o<s.length;o+=1)l=s[o],r[l]=D8(e[l],t,n,i,l);t.pop(),n.pop()}else r=e;return r}var C3=new oh;C3.tokenize=function(e){return e.slice()};C3.join=C3.removeEmpty=function(e){return e};function Uoe(e,t,n){return C3.diff(e,t,n)}const Hoe=$t({props:{changes:{type:Array,required:!0},added:{type:Boolean,default:!1},deleted:{type:Boolean,default:!1},updated:{type:Boolean,default:!1}},setup(e){const{t}=yn(),n=Ee(()=>e.changes.filter(a=>e.updated?!0:e.added===!0?a.removed!==!0:a.added!==!0)),i=Ee(()=>e.changes.length===2);return{t,changesFiltered:n,wholeThing:i}}}),qoe={class:"delta"},Woe={key:2,class:"no-value"};function Goe(e,t,n,i,a,o){const r=Y("v-icon");return G(),Me("div",{class:wn(["change-line",{added:e.added,deleted:e.deleted,updated:e.updated,"no-highlight":e.wholeThing}])},[F(r,{name:e.added?"add":e.deleted?"remove":"warning"},null,8,["name"]),ke("div",qoe,[(G(!0),Me(gn,null,vi(e.changesFiltered,(s,l)=>(G(),Me("span",{key:l,class:wn({changed:s.added||s.removed})},[s.updated?(G(),Me(gn,{key:0},[Ne(he(e.t("revision_delta_update_message")),1)],64)):s.value?(G(),Me(gn,{key:1},[Ne(he(s.value),1)],64)):(G(),Me("span",Woe,he(e.t("no_value")),1))],2))),128))])],2)}var Yoe=Ot(Hoe,[["render",Goe],["__scopeId","data-v-3860d9f4"]]);const Xoe=$t({components:{RevisionsDrawerUpdatesChange:Yoe},props:{revision:{type:Object,required:!0},revisions:{type:Array,required:!0}},setup(e){const{t}=yn(),n=nr(),i=Ee(()=>{const o=e.revisions.findIndex(r=>r.id===e.revision.id);return e.revisions[o+1]}),a=Ee(()=>i.value?Object.keys(e.revision.delta).map(r=>{var _,y,k;const s=n.getField(e.revision.collection,r),l=s==null?void 0:s.name;if(!l)return null;const f=(_=e.revision.delta)==null?void 0:_[r],p=(y=i.value.data)==null?void 0:y[r];let h,v=!1;if(lt.exports.isEqual(f,p))if(((k=s==null?void 0:s.meta)==null?void 0:k.special)&&s.meta.special.includes("conceal"))v=!0,h=[{updated:!0,value:f}];else return null;else typeof p=="string"&&typeof f=="string"&&f.length>25?h=zoe(p,f):Array.isArray(p)&&Array.isArray(f)?h=Uoe(p,f):p&&f&&typeof f=="object"&&typeof f=="object"?h=Boe(p,f):h=[{removed:!0,value:p},{added:!0,value:f}];return{name:l,updated:v,changes:h}}).filter(r=>r):null);return{t,changes:a,previousRevision:i}}}),Koe=e=>(ya("data-v-d6ee9746"),e=e(),_a(),e),Zoe={class:"updates"},Joe=Koe(()=>ke("br",null,null,-1)),Qoe={class:"type-label"};function ese(e,t,n,i,a,o){const r=Y("v-notice"),s=Y("revisions-drawer-updates-change");return G(),Me("div",Zoe,[F(r,{type:"info"},{default:R(()=>[Ne(he(e.t("changes_made"))+" ",1),Joe,Ne(" "+he(e.t("no_relational_data")),1)]),_:1}),(G(!0),Me(gn,null,vi(e.changes,l=>(G(),Me("div",{key:l.name,class:"change"},[ke("div",Qoe,he(l.name),1),l.updated?(G(),_e(s,{key:0,updated:"",changes:l.changes},null,8,["changes"])):(G(),Me(gn,{key:1},[F(s,{deleted:"",changes:l.changes},null,8,["changes"]),F(s,{added:"",changes:l.changes},null,8,["changes"])],64))]))),128))])}var tse=Ot(Xoe,[["render",ese],["__scopeId","data-v-d6ee9746"]]);const nse=$t({components:{RevisionsDrawerPicker:Ioe,RevisionsDrawerPreview:Roe,RevisionsDrawerUpdates:tse},props:{revisions:{type:Array,required:!0},current:{type:[Number,String],default:null},active:{type:Boolean,default:!1}},emits:["revert","update:active","update:current"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"active",t),a=qr(e,"current",t),o=ze(["updates_made"]),r=Ee(()=>{var v;return((v=s.value)==null?void 0:v.activity.action)==="create"?n("item_creation"):n("item_revision")}),s=Ee(()=>e.revisions.find(v=>v.id===e.current)),l=Ee(()=>{const v=e.revisions.findIndex(_=>_.id===e.current);return e.revisions[v+1]}),f=Ee(()=>{var v;return((v=s.value)==null?void 0:v.activity.action)==="create"?[{text:n("creation_preview"),value:"revision_preview"}]:[{text:n("updates_made"),value:"updates_made"},{text:n("revision_preview"),value:"revision_preview"}]}),p=Ee(()=>{var v;return((v=s.value)==null?void 0:v.activity.action)!=="create"});return rR(()=>o.value=[f.value[0].value]),{t:n,internalActive:i,internalCurrent:a,title:r,currentRevision:s,currentTab:o,tabs:f,hasPastRevision:p,revert:h};function h(){var _,y;if(!s.value)return;const v={};for(const[k,w]of Object.entries(s.value.delta)){const D=(y=(_=l.value)==null?void 0:_.data[k])!=null?y:null;lt.exports.isEqual(w,D)||(v[k]=D)}t("revert",v),i.value=!1}}}),ise={class:"content"};function rse(e,t,n,i,a,o){const r=Y("revisions-drawer-picker"),s=Y("v-tab"),l=Y("v-tabs"),f=Y("revisions-drawer-updates"),p=Y("revisions-drawer-preview"),h=Y("v-icon"),v=Y("v-button"),_=Y("v-drawer"),y=pi("tooltip");return G(),Me("div",null,[F(_,{modelValue:e.internalActive,"onUpdate:modelValue":t[3]||(t[3]=k=>e.internalActive=k),title:e.title,icon:"change_history","sidebar-label":e.t(e.currentTab[0]),onCancel:t[4]||(t[4]=k=>e.internalActive=!1)},{subtitle:R(()=>[F(r,{current:e.internalCurrent,"onUpdate:current":t[0]||(t[0]=k=>e.internalCurrent=k),revisions:e.revisions},null,8,["current","revisions"])]),sidebar:R(()=>[F(l,{modelValue:e.currentTab,"onUpdate:modelValue":t[1]||(t[1]=k=>e.currentTab=k),vertical:""},{default:R(()=>[(G(!0),Me(gn,null,vi(e.tabs,k=>(G(),_e(s,{key:k.value,value:k.value},{default:R(()=>[Ne(he(k.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),actions:R(()=>[e.hasPastRevision?dn((G(),_e(v,{key:0,secondary:"",icon:"",rounded:"",onClick:e.revert},{default:R(()=>[F(h,{name:"restore"})]),_:1},8,["onClick"])),[[y,e.t("revert"),void 0,{bottom:!0}]]):Je("",!0),dn((G(),_e(v,{icon:"",rounded:"",onClick:t[2]||(t[2]=k=>e.internalActive=!1)},{default:R(()=>[F(h,{name:"check"})]),_:1})),[[y,e.t("done"),void 0,{bottom:!0}]])]),default:R(()=>[ke("div",ise,[e.currentTab[0]==="updates_made"?(G(),_e(f,{key:0,revision:e.currentRevision,revisions:e.revisions},null,8,["revision","revisions"])):Je("",!0),e.currentTab[0]==="revision_preview"?(G(),_e(p,{key:1,revision:e.currentRevision},null,8,["revision"])):Je("",!0)])]),_:1},8,["modelValue","title","sidebar-label"])])}var ase=Ot(nse,[["render",rse],["__scopeId","data-v-9165a912"]]);const ose={key:1,class:"empty"},sse={class:"content"},lse={class:"external"},cse=$t({name:"revisions-drawer-detail",props:{collection:null,primaryKey:null},emits:["revert"],setup(e,{expose:t}){const n=e,{t:i}=yn(),{collection:a,primaryKey:o}=wr(n),{revisions:r,revisionsByDate:s,loading:l,refresh:f,revisionsCount:p,pagesCount:h,created:v}=dA(a,o),_=ze(!1),y=ze(null),k=ze(1);Zn(()=>k.value,D=>{f(D)});function w(D){y.value=D,_.value=!0}return t({refresh:f}),(D,A)=>{const L=Y("v-progress-linear"),T=Y("v-divider"),z=Y("v-pagination"),B=Y("sidebar-detail");return G(),_e(B,{title:V(i)("revisions"),icon:"change_history",badge:!V(l)&&V(p)>0?V(y3)(V(p)):null},{default:R(()=>[V(l)?(G(),_e(L,{key:0,indeterminate:""})):V(p)===0?(G(),Me("div",ose,[ke("div",sse,he(V(i)("no_revisions")),1)])):(G(),Me(gn,{key:2},[(G(!0),Me(gn,null,vi(V(s),W=>(G(),_e(Eoe,{key:W.date.toString(),group:W,onClick:w},null,8,["group"]))),128)),k.value==V(h)&&!V(v)?(G(),Me(gn,{key:0},[V(s).length>0?(G(),_e(T,{key:0})):Je("",!0),ke("div",lse,he(V(i)("revision_delta_created_externally")),1)],64)):Je("",!0),V(h)>1?(G(),_e(z,{key:1,modelValue:k.value,"onUpdate:modelValue":A[0]||(A[0]=W=>k.value=W),length:V(h),"total-visible":2},null,8,["modelValue","length"])):Je("",!0)],64)),V(r)?(G(),_e(ase,{key:3,current:y.value,"onUpdate:current":A[1]||(A[1]=W=>y.value=W),active:_.value,"onUpdate:active":A[2]||(A[2]=W=>_.value=W),revisions:V(r),onRevert:A[3]||(A[3]=W=>D.$emit("revert",W))},null,8,["current","active","revisions"])):Je("",!0)]),_:1},8,["title","badge"])}}});var ig=Ot(cse,[["__scopeId","data-v-41ebe19a"]]);function pA(e){return navigator.platform.toLowerCase().startsWith("mac")||navigator.platform.startsWith("iP")?e.map(n=>n==="meta"?"\u2318":n==="option"?"\u2325":n==="shift"?"\u21E7":n==="alt"?"\u2325":lt.exports.capitalize(n)).join(""):e.map(n=>n==="meta"?"Ctrl":lt.exports.capitalize(n)).join("+")}const use=$t({props:{disabledOptions:{type:Array,default:()=>[]}},emits:["save-and-stay","save-and-add-new","save-as-copy","discard-and-stay"],setup(){const{t:e}=yn();return{t:e,translateShortcut:pA}}});function dse(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-icon"),l=Y("v-list-item-content"),f=Y("v-list-item-hint"),p=Y("v-list-item"),h=Y("v-list"),v=Y("v-menu");return G(),_e(v,{"show-arrow":""},{activator:R(({toggle:_})=>[F(r,{name:"more_vert",clickable:"",onClick:_},null,8,["onClick"])]),default:R(()=>[F(h,null,{default:R(()=>[e.disabledOptions.includes("save-and-stay")?Je("",!0):(G(),_e(p,{key:0,clickable:"",onClick:t[0]||(t[0]=_=>e.$emit("save-and-stay"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"check"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("save_and_stay")),1)]),_:1}),F(f,null,{default:R(()=>[Ne(he(e.translateShortcut(["meta","s"])),1)]),_:1})]),_:1})),e.disabledOptions.includes("save-and-add-new")?Je("",!0):(G(),_e(p,{key:1,clickable:"",onClick:t[1]||(t[1]=_=>e.$emit("save-and-add-new"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"add"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("save_and_create_new")),1)]),_:1}),F(f,null,{default:R(()=>[Ne(he(e.translateShortcut(["meta","shift","s"])),1)]),_:1})]),_:1})),e.disabledOptions.includes("save-as-copy")?Je("",!0):(G(),_e(p,{key:2,clickable:"",onClick:t[2]||(t[2]=_=>e.$emit("save-as-copy"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"done_all"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("save_as_copy")),1)]),_:1})]),_:1})),e.disabledOptions.includes("discard-and-stay")?Je("",!0):(G(),_e(p,{key:3,clickable:"",onClick:t[3]||(t[3]=_=>e.$emit("discard-and-stay"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"undo"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("discard_all_changes")),1)]),_:1})]),_:1}))]),_:1})]),_:1})}var M4=Ot(use,[["render",dse],["__scopeId","data-v-58888885"]]);const fse={key:1,class:"video"},pse=["src"],hse=["src"],mse={key:3,class:"fallback"},vse=$t({name:"file-preview",props:{mime:null,width:{default:void 0},height:{default:void 0},src:null,title:null,inModal:{type:Boolean,default:!1}},emits:["click"],setup(e){const t=e;c4(l=>({"4cb14cfe":V(o)}));const n=ze(!1),i=Ee(()=>{var l;return t.mime===null?"unknown":t.mime.startsWith("image")?"image":t.mime.startsWith("video")?"video":t.mime.startsWith("audio")?"audio":(l=Q1(t.mime,!0))!=null?l:"unknown"}),a=Ee(()=>t.mime.includes("svg")),o=Ee(()=>{var l;return Math.min((l=t.height)!=null?l:528,528)+"px"}),r=Ee(()=>t.height<528),s=Ee(()=>p1(As()+t.src));return(l,f)=>{const p=Y("v-image"),h=Y("v-icon-file");return V(i)&&!n.value?(G(),Me("div",{key:0,class:wn(["file-preview",{modal:e.inModal,small:V(r),svg:V(a)}])},[V(i)==="image"?(G(),Me("div",{key:0,class:"image",onClick:f[1]||(f[1]=v=>l.$emit("click"))},[F(p,{src:e.src,width:e.width,height:e.height,alt:e.title,onError:f[0]||(f[0]=v=>n.value=!0)},null,8,["src","width","height","alt"])])):V(i)==="video"?(G(),Me("div",fse,[ke("video",{controls:"",src:V(s)},null,8,pse)])):V(i)==="audio"?(G(),Me("audio",{key:2,controls:"",src:V(s)},null,8,hse)):(G(),Me("div",mse,[F(h,{ext:V(i)},null,8,["ext"])]))],2)):Je("",!0)}}});var Mb=Ot(vse,[["__scopeId","data-v-c9ff2bf4"]]);const gse={key:1,class:"type-title"},yse={class:"drawer-item-content"},_se=$t({name:"drawer-item",props:{collection:null,active:{type:Boolean,default:void 0},primaryKey:{default:null},edits:{default:void 0},junctionField:{default:null},disabled:{type:Boolean,default:!1},relatedPrimaryKey:{default:"+"},circularField:{default:null},junctionFieldLocation:{default:"bottom"}},emits:["update:active","input"],setup(e,{emit:t}){const n=e,{t:i,te:a}=yn(),o=ze([]),r=nr(),s=Qo(),{internalActive:l}=Te(),{junctionFieldInfo:f,relatedCollection:p,relatedCollectionInfo:h,setRelationEdits:v,relatedPrimaryKeyField:_}=Le(),{internalEdits:y,loading:k,initialValues:w}=it(),{save:D,cancel:A}=De(),{collection:L}=wr(n),{info:T,primaryKeyField:z}=Ns(L),B=Ee(()=>n.primaryKey==="+"&&n.relatedPrimaryKey==="+"),W=Ee(()=>n.junctionFieldLocation==="top"),N=Ee(()=>{const ht=(h==null?void 0:h.value)||T.value;return a(`collection_names_singular.${ht.collection}`)?B.value?i("creating_unit",{unit:i(`collection_names_singular.${ht.collection}`)}):i("editing_unit",{unit:i(`collection_names_singular.${ht.collection}`)}):B.value?i("creating_in",{collection:ht.name}):i("editing_in",{collection:ht.name})}),{fields:K}=Dv(p,Ee(()=>w.value&&w.value[n.junctionField]),Ee(()=>n.primaryKey==="+")),{fields:re}=Dv(L,w,Ee(()=>n.primaryKey==="+")),se=Ee(()=>n.circularField?re.value.map(ht=>(ht.field===n.circularField&<.exports.set(ht,"meta.readonly",!0),ht)):re.value),ce=Ee(()=>n.circularField?se.value.filter(ht=>ht.field!==n.circularField):se.value),de=Ee(()=>f.value?String(n.relatedPrimaryKey):String(n.primaryKey)),ge=Ee(()=>h.value||T.value),{templateData:Ce,loading:Oe}=KE(ge,de),Ve=Ee(()=>{var ht,At,Tt,Vt;return((At=(ht=h.value)==null?void 0:ht.meta)==null?void 0:At.display_template)||((Vt=(Tt=T.value)==null?void 0:Tt.meta)==null?void 0:Vt.display_template)||null}),{file:Ye}=ot();function ot(){const ht=Ee(()=>p.value==="directus_files");return{file:Ee(()=>{var on;if(ht.value===!1||!w.value||!n.junctionField)return null;const Tt=(on=w.value)==null?void 0:on[n.junctionField];if(!Tt)return null;const Vt=`assets/${Tt.id}?key=system-large-contain`;return{...Tt,src:Vt}}),isDirectusFiles:ht}}function Te(){const ht=ze(!1);return{internalActive:Ee({get(){var Tt;return(Tt=n.active)!=null?Tt:ht.value},set(Tt){ht.value=Tt,t("update:active",Tt)}})}}function it(){const ht=ze({}),At=ze(!1),Tt=ze(null);return Zn(()=>n.active,_t=>{var Ut;_t?(n.primaryKey!=="+"&&Vt(),n.relatedPrimaryKey!=="+"&&on(),ht.value=(Ut=n.edits)!=null?Ut:{}):(At.value=!1,Tt.value=null,ht.value={})},{immediate:!0}),{internalEdits:ht,loading:At,initialValues:Tt,fetchItem:Vt};async function Vt(){if(At.value=!0,!n.primaryKey)return;const _t=n.collection.startsWith("directus_")?`/${n.collection.substring(9)}/${n.primaryKey}`:`/items/${n.collection}/${encodeURIComponent(n.primaryKey)}`;let Ut="*";n.junctionField&&(Ut=`*,${n.junctionField}.*`);try{const Nt=await $n.get(_t,{params:{fields:Ut}});Tt.value=Nt.data.data}catch(Nt){Hi(Nt)}finally{At.value=!1}}async function on(){At.value=!0;const _t=p.value;if(!_t||!f.value)return;const Ut=_t.startsWith("directus_")?`/${_t.substring(9)}/${n.relatedPrimaryKey}`:`/items/${_t}/${encodeURIComponent(n.relatedPrimaryKey)}`;try{const Nt=await $n.get(Ut);Tt.value={...Tt.value||{},[f.value.field]:Nt.data.data}}catch(Nt){Hi(Nt)}finally{At.value=!1}}}function Le(){const ht=Ee(()=>n.junctionField?r.getField(n.collection,n.junctionField):null),At=Ee(()=>{var Nt,Qt;if(!n.junctionField)return null;const Ut=s.getRelationsForField(n.collection,n.junctionField).find(Jt=>Jt.collection===n.collection&&Jt.field===n.junctionField);return Ut?Ut.related_collection?Ut.related_collection:(Nt=Ut.meta)!=null&&Nt.one_collection_field?n.edits[Ut.meta.one_collection_field]||((Qt=w.value)==null?void 0:Qt[Ut.meta.one_collection_field]):null:null}),{info:Tt,primaryKeyField:Vt}=Ns(At);return{junctionFieldInfo:ht,relatedCollection:At,relatedCollectionInfo:Tt,setRelationEdits:on,relatedPrimaryKeyField:Vt};function on(_t){!n.junctionField||(y.value[n.junctionField]=_t)}}function De(){return{save:ht,cancel:At};function ht(){const Tt=n.junctionField?y.value[n.junctionField]:y.value,Vt=n.junctionField?K.value:ce.value,on=bb(Vt);let _t=E8(lt.exports.merge({},on.value,w.value,Tt),Vt,B.value);if(_t.length>0){o.value=_t;return}n.junctionField&&n.relatedPrimaryKey!=="+"&&_.value&<.exports.set(y.value,[n.junctionField,_.value.field],n.relatedPrimaryKey),n.primaryKey&&n.primaryKey!=="+"&&z.value&&(y.value[z.value.field]=n.primaryKey),t("input",y.value),l.value=!1,y.value={}}function At(){o.value=[],l.value=!1,y.value={}}}return(ht,At)=>{const Tt=Y("v-skeleton-loader"),Vt=Y("render-template"),on=Y("v-breadcrumb"),_t=Y("v-icon"),Ut=Y("v-button"),Nt=Y("v-form"),Qt=Y("v-drawer"),Jt=pi("tooltip");return G(),_e(Qt,{modelValue:V(l),"onUpdate:modelValue":At[1]||(At[1]=qt=>zr(l)?l.value=qt:null),title:V(N),persistent:"",onCancel:V(A)},La({subtitle:R(()=>{var qt;return[F(on,{items:[{name:(qt=V(T))==null?void 0:qt.name,disabled:!0}]},null,8,["items"])]}),actions:R(()=>[di(ht.$slots,"actions",{},void 0,!0),dn((G(),_e(Ut,{icon:"",rounded:"",onClick:V(D)},{default:R(()=>[F(_t,{name:"check"})]),_:1},8,["onClick"])),[[Jt,V(i)("save"),void 0,{bottom:!0}]])]),default:R(()=>{var qt,Dt;return[ke("div",yse,[e.junctionField?(G(),Me(gn,{key:0},[V(Ye)?(G(),_e(Mb,{key:0,src:V(Ye).src,mime:V(Ye).type,width:V(Ye).width,height:V(Ye).height,title:V(Ye).title,"in-modal":!0},null,8,["src","mime","width","height","title"])):Je("",!0),ke("div",{class:wn(["drawer-item-order",{swap:V(W)}])},[F(Nt,{disabled:e.disabled,loading:V(k),"initial-values":(qt=V(w))==null?void 0:qt[e.junctionField],"primary-key":e.relatedPrimaryKey,"model-value":(Dt=V(y))==null?void 0:Dt[e.junctionField],fields:V(K),"validation-errors":e.junctionField?o.value:void 0,autofocus:"","show-divider":!V(W),"onUpdate:modelValue":V(v)},null,8,["disabled","loading","initial-values","primary-key","model-value","fields","validation-errors","show-divider","onUpdate:modelValue"]),F(Nt,{modelValue:V(y),"onUpdate:modelValue":At[0]||(At[0]=nt=>zr(y)?y.value=nt:null),disabled:e.disabled,loading:V(k),"initial-values":V(w),"show-divider":V(W),"primary-key":e.primaryKey,fields:V(se),"validation-errors":e.junctionField?void 0:o.value},null,8,["modelValue","disabled","loading","initial-values","show-divider","primary-key","fields","validation-errors"])],2)],64)):Je("",!0)])]}),_:2},[V(Ve)!==null&&V(Ce)&&e.primaryKey!=="+"?{name:"title",fn:R(()=>{var qt;return[V(k)||V(Oe)?(G(),_e(Tt,{key:0,class:"title-loader",type:"text"})):(G(),Me("h1",gse,[F(Vt,{collection:(qt=V(ge))==null?void 0:qt.collection,item:V(Ce),template:V(Ve)},null,8,["collection","item","template"])]))]})}:void 0]),1032,["modelValue","title","onCancel"])}}});var Nf=Ot(_se,[["__scopeId","data-v-5f379c12"]]);function um(){const{t:e}=yn(),t=Ee(()=>{var o;return!!((o=navigator==null?void 0:navigator.clipboard)!=null&&o.writeText)}),n=Ee(()=>{var o;return!!((o=navigator==null?void 0:navigator.clipboard)!=null&&o.readText)});return{isCopySupported:t,isPasteSupported:n,copyToClipboard:i,pasteFromClipboard:a};async function i(o,r){var s,l,f;try{return await((s=navigator==null?void 0:navigator.clipboard)==null?void 0:s.writeText(o)),sl({title:(l=r==null?void 0:r.success)!=null?l:e("copy_raw_value_success")}),!0}catch{return sl({type:"error",title:(f=r==null?void 0:r.fail)!=null?f:e("copy_raw_value_fail")}),!1}}async function a(o){var r,s,l;try{const f=await((r=navigator==null?void 0:navigator.clipboard)==null?void 0:r.readText());return sl({title:(s=o==null?void 0:o.success)!=null?s:e("paste_raw_value_success")}),f}catch{return sl({type:"error",title:(l=o==null?void 0:o.fail)!=null?l:e("paste_raw_value_fail")}),null}}}const bse=$t({props:{share:{type:Object,required:!0}},emits:["copy","edit","invite","delete"],setup(e){const{t,d:n}=yn(),i=Ee(()=>Rp("directus_shares","update",e.share)),a=Ee(()=>Rp("directus_shares","delete",e.share)),o=Ee(()=>e.share.max_uses===null?null:e.share.max_uses-e.share.times_used),r=Ee(()=>e.share.date_end&&new Date(e.share.date_end)<new Date?"expired":e.share.date_start&&new Date(e.share.date_start)>new Date?"upcoming":null),s=Ee(()=>K1(new Date(e.share.date_created),String(t("date-fns_date_short")))),l=ze(null);return{editAllowed:i,deleteAllowed:a,usesLeft:o,status:r,t,d:n,formattedTime:s,confirmDelete:l}}}),wse=e=>(ya("data-v-3ab171d8"),e=e(),_a(),e),xse={class:"item"},kse={class:"item-header"},Sse={class:"type-label"},Cse={class:"header-right"},Ese={class:"date"},Ase={class:"item-info"},Tse=wse(()=>ke("span",{style:{"flex-grow":"1"}},null,-1));function Dse(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-icon"),l=Y("v-list-item-content"),f=Y("v-list-item"),p=Y("v-divider"),h=Y("v-list"),v=Y("v-menu");return G(),Me("div",xse,[ke("div",kse,[ke("span",Sse,he(e.share.name),1),ke("div",Cse,[F(v,{"show-arrow":"",placement:"bottom-end"},{activator:R(({toggle:_,active:y})=>[F(r,{class:wn(["more",{active:y}]),name:"more_horiz",clickable:"",onClick:_},null,8,["class","onClick"]),ke("div",Ese,he(e.formattedTime),1)]),default:R(()=>[F(h,null,{default:R(()=>[F(f,{clickable:"",onClick:t[0]||(t[0]=_=>e.$emit("copy"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"copy"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("share_copy_link")),1)]),_:1})]),_:1}),F(f,{clickable:"",onClick:t[1]||(t[1]=_=>e.$emit("invite"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"send"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("share_send_link")),1)]),_:1})]),_:1}),e.deleteAllowed&&e.editAllowed?(G(),_e(p,{key:0})):Je("",!0),e.editAllowed?(G(),_e(f,{key:1,clickable:"",onClick:t[2]||(t[2]=_=>e.$emit("edit"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"edit"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("edit")),1)]),_:1})]),_:1})):Je("",!0),e.deleteAllowed?(G(),_e(f,{key:2,clickable:"",class:"danger",onClick:t[3]||(t[3]=_=>e.$emit("delete"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"delete"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("delete_label")),1)]),_:1})]),_:1})):Je("",!0)]),_:1})]),_:1})])]),ke("div",Ase,[ke("span",{class:wn(["share-uses",{"no-left":e.usesLeft===0}])},[e.usesLeft===null?(G(),Me(gn,{key:0},[Ne(he(e.t("unlimited_usage")),1)],64)):(G(),Me(gn,{key:1},[Ne(he(e.t("uses_left",e.usesLeft)),1)],64))],2),e.share.password?(G(),_e(r,{key:0,small:"",name:"lock"})):Je("",!0),Tse,e.status?(G(),Me("span",{key:1,class:wn(["share-status",{[e.status]:!0}])},he(e.t(e.status)),3)):Je("",!0)])])}var Ise=Ot(bse,[["render",Dse],["__scopeId","data-v-3ab171d8"]]);const Mse=$t({components:{ShareItem:Ise,DrawerItem:Nf},props:{collection:{type:String,required:!0},primaryKey:{type:[String,Number],required:!0},allowed:{type:Boolean,required:!0}},setup(e){const{t}=yn(),{copyToClipboard:n}=um(),i=ze(null),a=ze(0),o=ze(null),r=ze(!1),s=ze(!1),l=ze(null),f=ze(null),p=ze(null),h=ze(!1),v=ze(""),_=Ee(()=>f.value?window.location.origin+As()+"admin/shared/"+f.value.id:null);return A(),{shareToDelete:p,t,shares:i,loading:r,error:o,refresh:A,count:a,select:w,unselect:D,shareToEdit:l,input:y,copy:k,shareToSend:f,remove:L,deleting:s,sendPublicLink:_,send:T,sending:h,sendEmails:v};async function y(z){if(!!z){z.collection=e.collection,z.item=e.primaryKey;try{l.value==="+"?await $n.post("/shares",z):await $n.patch(`/shares/${l.value}`,z),await A(),l.value=null}catch(B){Hi(B)}}}async function k(z){const B=window.location.origin+As()+"admin/shared/"+z;await n(B,{success:t("share_copy_link_success"),fail:t("share_copy_link_error")})}function w(z){l.value=z}function D(){l.value=null}async function A(){o.value=null,r.value=!0;try{const z=await $n.get("/shares",{params:{filter:{_and:[{collection:{_eq:e.collection}},{item:{_eq:e.primaryKey}}]},sort:"name"}});a.value=z.data.data.length,i.value=z.data.data}catch(z){z.value=z}finally{r.value=!1}}async function L(){if(!!p.value){s.value=!0;try{await $n.delete(`/shares/${p.value.id}`),await A(),p.value=null}catch(z){Hi(z)}finally{s.value=!1}}}async function T(){if(!!f.value){h.value=!0;try{const z=v.value.split(/,|\n/).filter(B=>B).map(B=>B.trim());await $n.post("/shares/invite",{emails:z,share:f.value.id}),v.value="",f.value=null}catch(z){Hi(z)}finally{h.value=!1}}}}}),Lse={key:2,class:"empty"},Pse={class:"content"},Fse={class:"grid"},Rse={class:"field"},Ose={class:"field"},$se={class:"type-label"};function zse(e,t,n,i,a,o){const r=Y("v-notice"),s=Y("v-progress-linear"),l=Y("share-item"),f=Y("drawer-item"),p=Y("v-card-title"),h=Y("v-card-text"),v=Y("v-button"),_=Y("v-card-actions"),y=Y("v-card"),k=Y("v-dialog"),w=Y("v-input"),D=Y("v-textarea"),A=Y("sidebar-detail");return G(),_e(A,{title:e.t("shares"),icon:"share",badge:e.count},{default:R(()=>[e.error?(G(),_e(r,{key:0,type:"danger"},{default:R(()=>[Ne(he(e.t("unexpected_error")),1)]),_:1})):e.loading?(G(),_e(s,{key:1,indeterminate:""})):!e.shares||e.shares.length===0?(G(),Me("div",Lse,[ke("div",Pse,he(e.t("no_shares")),1)])):Je("",!0),(G(!0),Me(gn,null,vi(e.shares,L=>(G(),_e(l,{key:L.id,share:L,onCopy:T=>e.copy(L.id),onEdit:T=>e.select(L.id),onDelete:T=>e.shareToDelete=L,onInvite:T=>e.shareToSend=L},null,8,["share","onCopy","onEdit","onDelete","onInvite"]))),128)),F(f,{collection:"directus_shares","primary-key":e.shareToEdit,active:!!e.shareToEdit,onCancel:e.unselect,onInput:e.input},null,8,["primary-key","active","onCancel","onInput"]),F(k,{"model-value":!!e.shareToDelete,"onUpdate:modelValue":t[1]||(t[1]=L=>e.shareToDelete=null),onEsc:t[2]||(t[2]=L=>e.shareToDelete=null)},{default:R(()=>[F(y,null,{default:R(()=>[F(p,null,{default:R(()=>[Ne(he(e.t("delete_share")),1)]),_:1}),F(h,null,{default:R(()=>[Ne(he(e.t("delete_are_you_sure")),1)]),_:1}),F(_,null,{default:R(()=>[F(v,{secondary:"",onClick:t[0]||(t[0]=L=>e.shareToDelete=null)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(v,{kind:"danger",loading:e.deleting,onClick:e.remove},{default:R(()=>[Ne(he(e.t("delete_label")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["model-value"]),F(k,{"model-value":!!e.shareToSend,"onUpdate:modelValue":t[5]||(t[5]=L=>e.shareToSend=null),onEsc:t[6]||(t[6]=L=>e.shareToSend=null)},{default:R(()=>[F(y,null,{default:R(()=>[F(p,null,{default:R(()=>[Ne(he(e.t("share_send_link")),1)]),_:1}),F(h,null,{default:R(()=>[ke("div",Fse,[ke("div",Rse,[F(w,{disabled:"","model-value":e.sendPublicLink},null,8,["model-value"])]),ke("div",Ose,[ke("div",$se,he(e.t("emails")),1),F(D,{modelValue:e.sendEmails,"onUpdate:modelValue":t[3]||(t[3]=L=>e.sendEmails=L),nullable:!1,placeholder:"admin@example.com, user@example.com..."},null,8,["modelValue"])])])]),_:1}),F(_,null,{default:R(()=>[F(v,{secondary:"",onClick:t[4]||(t[4]=L=>e.shareToSend=null)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(v,{loading:e.sending,onClick:e.send},{default:R(()=>[Ne(he(e.t("share_send_link")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["model-value"]),e.allowed?(G(),_e(v,{key:3,"full-width":"",onClick:t[7]||(t[7]=L=>e.select("+"))},{default:R(()=>[Ne(he(e.t("new_share")),1)]),_:1})):Je("",!0)]),_:1},8,["title","badge"])}var jse=Ot(Mse,[["render",zse],["__scopeId","data-v-101fc574"]]);const Vse={class:"type-title"},Nse={class:"page-description"},Bse=$t({name:"item",props:{collection:null,primaryKey:{default:null},singleton:{type:Boolean,default:!1}},setup(e){const t=e,{t:n,te:i}=yn(),a=qa(),o=ze(),{collection:r,primaryKey:s}=wr(t),{breadcrumb:l}=Dt(),f=ze(null),{info:p,defaults:h,primaryKeyField:v,isSingleton:_,accountabilityScope:y}=Ns(r),{isNew:k,edits:w,hasEdits:D,item:A,saving:L,loading:T,error:z,save:B,remove:W,deleting:N,archive:K,archiving:re,isArchived:se,saveAsCopy:ce,refresh:de,validationErrors:ge}=lm(r,s),{templateData:Ce,loading:Oe}=KE(p,s),Ve=Ee(()=>{var Gn,Pn,ri,qi,vn,en;return on.value===!1?!1:D.value===!0?!0:!((Pn=(Gn=v.value)==null?void 0:Gn.schema)!=null&&Pn.has_auto_increment)&&!((vn=(qi=(ri=v.value)==null?void 0:ri.meta)==null?void 0:qi.special)!=null&&vn.includes("uuid"))?!!((en=w.value)!=null&&en[v.value.field]):k.value===!0&&Object.keys(h.value).length>0||D.value}),{confirmLeave:Ye,leaveTo:ot}=w1(D),Te=ze(!1),it=ze(!1),Le=Ee(()=>{var Gn,Pn;return i(`collection_names_singular.${t.collection}`)?k.value?n("creating_unit",{unit:n(`collection_names_singular.${t.collection}`)}):n("editing_unit",{unit:n(`collection_names_singular.${t.collection}`)}):k.value?n("creating_in",{collection:(Gn=p.value)==null?void 0:Gn.name}):n("editing_in",{collection:(Pn=p.value)==null?void 0:Pn.name})}),De=Ee(()=>{var Pn;let Gn=(((Pn=p.value)==null?void 0:Pn.name)||"")+" | ";if(p.value&&p.value.meta){if(p.value.meta.singleton===!0)return Gn+p.value.name;if(k.value===!1&&p.value.meta.display_template){const{displayValue:ri}=ZE(p.value.meta.display_template,Ce);if(ri.value!==void 0)return Gn+ri.value}}return Gn+Le.value});Bre(De);const ht=Ee(()=>Vt.value===!1?n("not_allowed"):se.value===!0?n("unarchive"):n("archive"));So("meta+s",Pe,o),So("meta+shift+s",He,o);const{createAllowed:At,deleteAllowed:Tt,archiveAllowed:Vt,saveAllowed:on,updateAllowed:_t,shareAllowed:Ut,fields:Nt,revisionsAllowed:Qt}=Dv(r,A,k),Jt=Ee(()=>{var Gn,Pn,ri;return V(T)||V(k)?"+":V(_)?(ri=(Pn=V(A))==null?void 0:Pn[(Gn=V(v))==null?void 0:Gn.field])!=null?ri:"+":t.primaryKey}),qt=Ee(()=>At.value?k.value?["save-as-copy"]:[]:["save-and-add-new","save-as-copy"]);function Dt(){return{breadcrumb:Ee(()=>{var Pn;return[{name:(Pn=p.value)==null?void 0:Pn.name,to:`/content/${t.collection}`}]})}}async function nt(){if(Ve.value!==!1)try{await B(),t.singleton===!1&&a.push(`/content/${t.collection}`)}catch{}}async function Pe(){var Gn,Pn;if(Ve.value!==!1)try{const ri=await B();if((Pn=(Gn=f.value)==null?void 0:Gn.refresh)==null||Pn.call(Gn),t.primaryKey==="+"){const qi=ri[v.value.field];a.replace(`/content/${t.collection}/${encodeURIComponent(qi)}`)}}catch{}}async function He(){if(Ve.value!==!1)try{await B(),k.value===!0?de():a.push(`/content/${t.collection}/+`)}catch{}}async function mt(){try{const Gn=await ce();Gn&&a.replace(`/content/${t.collection}/${encodeURIComponent(Gn)}`)}catch{}}async function Pt(){try{await W(),w.value={},a.replace(`/content/${t.collection}`)}catch{}}async function Bt(){try{await K(),se.value===!0?a.push(`/content/${t.collection}`):it.value=!1}catch{}}function wt(){!ot.value||(w.value={},Ye.value=!1,a.push(ot.value))}function nn(){w.value={},Ye.value=!1}function Ln(Gn){w.value={...w.value,...Gn}}return(Gn,Pn)=>{var xt,jt;const ri=Y("v-skeleton-loader"),qi=Y("render-template"),vn=Y("v-icon"),en=Y("v-button"),Sn=Y("v-breadcrumb"),Kn=Y("v-card-title"),ti=Y("v-card-actions"),On=Y("v-card"),ei=Y("v-dialog"),Mi=Y("v-form"),gi=Y("v-card-text"),Ai=Y("sidebar-detail"),Oi=Y("private-view"),Fi=pi("tooltip"),sr=pi("md");return V(z)||!V(p)||((jt=(xt=V(p))==null?void 0:xt.meta)==null?void 0:jt.singleton)===!0&&V(s)!==null?(G(),_e(yb,{key:0})):(G(),_e(Oi,{key:1,title:V(Le)},La({"title-outer:prepend":R(()=>[V(p).meta&&V(p).meta.singleton===!0?(G(),_e(en,{key:0,class:"header-icon",rounded:"",icon:"",secondary:"",disabled:""},{default:R(()=>[F(vn,{name:V(p).icon},null,8,["name"])]),_:1})):dn((G(),_e(en,{key:1,class:"header-icon",rounded:"",icon:"",secondary:"",exact:"",onClick:Pn[0]||(Pn[0]=xn=>V(a).back())},{default:R(()=>[F(vn,{name:"arrow_back"})]),_:1})),[[Fi,V(n)("back"),void 0,{bottom:!0}]])]),headline:R(()=>[V(p).meta&&V(p).meta.singleton===!0?(G(),_e(Sn,{key:0,items:[{name:V(n)("content"),to:"/content"}]},null,8,["items"])):(G(),_e(Sn,{key:1,items:V(l)},null,8,["items"]))]),actions:R(()=>[V(k)?Je("",!0):(G(),_e(ei,{key:0,modelValue:Te.value,"onUpdate:modelValue":Pn[2]||(Pn[2]=xn=>Te.value=xn),disabled:V(Tt)===!1,onEsc:Pn[3]||(Pn[3]=xn=>Te.value=!1)},{activator:R(({on:xn})=>[V(p).meta&&V(p).meta.singleton===!1?dn((G(),_e(en,{key:0,rounded:"",icon:"",class:"action-delete",secondary:"",disabled:V(A)===null||V(Tt)!==!0,onClick:xn},{default:R(()=>[F(vn,{name:"delete",outline:""})]),_:2},1032,["disabled","onClick"])),[[Fi,V(Tt)?V(n)("delete_label"):V(n)("not_allowed"),void 0,{bottom:!0}]]):Je("",!0)]),default:R(()=>[F(On,null,{default:R(()=>[F(Kn,null,{default:R(()=>[Ne(he(V(n)("delete_are_you_sure")),1)]),_:1}),F(ti,null,{default:R(()=>[F(en,{secondary:"",onClick:Pn[1]||(Pn[1]=xn=>Te.value=!1)},{default:R(()=>[Ne(he(V(n)("cancel")),1)]),_:1}),F(en,{kind:"danger",loading:V(N),onClick:Pt},{default:R(()=>[Ne(he(V(n)("delete_label")),1)]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue","disabled"])),V(p).meta&&V(p).meta.archive_field&&!V(k)?(G(),_e(ei,{key:1,modelValue:it.value,"onUpdate:modelValue":Pn[5]||(Pn[5]=xn=>it.value=xn),disabled:V(Vt)===!1,onEsc:Pn[6]||(Pn[6]=xn=>it.value=!1)},{activator:R(({on:xn})=>[V(p).meta&&V(p).meta.singleton===!1?dn((G(),_e(en,{key:0,rounded:"",icon:"",secondary:"",disabled:V(A)===null||V(Vt)!==!0,onClick:xn},{default:R(()=>[F(vn,{name:V(se)?"unarchive":"archive",outline:""},null,8,["name"])]),_:2},1032,["disabled","onClick"])),[[Fi,V(ht),void 0,{bottom:!0}]]):Je("",!0)]),default:R(()=>[F(On,null,{default:R(()=>[F(Kn,null,{default:R(()=>[Ne(he(V(se)?V(n)("unarchive_confirm"):V(n)("archive_confirm")),1)]),_:1}),F(ti,null,{default:R(()=>[F(en,{secondary:"",onClick:Pn[4]||(Pn[4]=xn=>it.value=!1)},{default:R(()=>[Ne(he(V(n)("cancel")),1)]),_:1}),F(en,{kind:"warning",loading:V(re),onClick:Bt},{default:R(()=>[Ne(he(V(se)?V(n)("unarchive"):V(n)("archive")),1)]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue","disabled"])):Je("",!0),dn((G(),_e(en,{rounded:"",icon:"",loading:V(L),disabled:!V(Ve),onClick:nt},{"append-outer":R(()=>[V(p).meta&&V(p).meta.singleton!==!0&&V(Ve)===!0?(G(),_e(M4,{key:0,"disabled-options":V(qt),onSaveAndStay:Pe,onSaveAndAddNew:He,onSaveAsCopy:mt,onDiscardAndStay:nn},null,8,["disabled-options"])):Je("",!0)]),default:R(()=>[F(vn,{name:"check"})]),_:1},8,["loading","disabled"])),[[Fi,V(on)?V(n)("save"):V(n)("not_allowed"),void 0,{bottom:!0}]])]),navigation:R(()=>[F(k4,{"current-collection":V(r)},null,8,["current-collection"])]),sidebar:R(()=>[F(Ai,{icon:"info_outline",title:V(n)("information"),close:""},{default:R(()=>[dn(ke("div",Nse,null,512),[[sr,V(n)("page_help_collections_item")]])]),_:1},8,["title"]),V(k)===!1&&V(T)===!1&&V(Jt)&&V(Qt)&&V(y)==="all"?(G(),_e(ig,{key:0,ref_key:"revisionsDrawerDetailRef",ref:f,collection:V(r),"primary-key":V(Jt),scope:V(y),onRevert:Ln},null,8,["collection","primary-key","scope"])):Je("",!0),V(k)===!1&&V(T)===!1&&V(Jt)?(G(),_e(Tb,{key:1,collection:V(r),"primary-key":V(Jt)},null,8,["collection","primary-key"])):Je("",!0),V(k)===!1&&V(T)===!1&&V(Jt)?(G(),_e(jse,{key:2,collection:V(r),"primary-key":V(Jt),allowed:V(Ut)},null,8,["collection","primary-key","allowed"])):Je("",!0),V(k)===!1&&V(T)===!1&&V(Jt)?(G(),_e(YE,{key:3,location:"item",collection:V(r),"primary-key":V(Jt),"has-edits":V(D),onRefresh:V(de)},null,8,["collection","primary-key","has-edits","onRefresh"])):Je("",!0)]),default:R(()=>[(G(),_e(Mi,{ref_key:"form",ref:o,key:V(r),modelValue:V(w),"onUpdate:modelValue":Pn[7]||(Pn[7]=xn=>zr(w)?w.value=xn:null),autofocus:V(k),disabled:V(k)?!1:V(_t)===!1,loading:V(T),"initial-values":V(A),fields:V(Nt),"primary-key":V(Jt),"validation-errors":V(ge)},null,8,["modelValue","autofocus","disabled","loading","initial-values","fields","primary-key","validation-errors"])),F(ei,{modelValue:V(Ye),"onUpdate:modelValue":Pn[9]||(Pn[9]=xn=>zr(Ye)?Ye.value=xn:null),onEsc:Pn[10]||(Pn[10]=xn=>Ye.value=!1)},{default:R(()=>[F(On,null,{default:R(()=>[F(Kn,null,{default:R(()=>[Ne(he(V(n)("unsaved_changes")),1)]),_:1}),F(gi,null,{default:R(()=>[Ne(he(V(n)("unsaved_changes_copy")),1)]),_:1}),F(ti,null,{default:R(()=>[F(en,{secondary:"",onClick:wt},{default:R(()=>[Ne(he(V(n)("discard_changes")),1)]),_:1}),F(en,{onClick:Pn[8]||(Pn[8]=xn=>Ye.value=!1)},{default:R(()=>[Ne(he(V(n)("keep_editing")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:2},[V(p).meta&&V(p).meta.singleton===!0?{name:"title",fn:R(()=>[ke("h1",Vse,he(V(p).name),1)])}:V(k)===!1&&V(p).meta&&V(p).meta.display_template?{name:"title",fn:R(()=>[V(T)||V(Oe)?(G(),_e(ri,{key:0,class:"title-loader",type:"text"})):(G(),Me("h1",{key:1,class:"type-title"},[F(qi,{collection:V(p).collection,item:V(Ce),template:V(p).meta.display_template},null,8,["collection","item","template"])]))])}:void 0]),1032,["title"]))}}});var hA=Ot(Bse,[["__scopeId","data-v-4d2bc646"]]);function mA(e){const t=`directus-${e}`,n=ze(null);function i(){let a;try{a=localStorage.getItem(t)}catch{}if(!!a)try{const o=JSON.parse(a);n.value=o}catch{}}return i(),Zn(n,()=>{try{n.value==null?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(n.value))}catch{}}),{data:n}}const Use=$t({components:{CollectionRoute:$re,ItemRoute:hA},props:{collection:{type:String,required:!0},bookmark:{type:String,default:null},archive:{type:String,default:null}},setup(e){const t=Vf(),{data:n}=mA("last-accessed-collection"),i=ea(),a=Ee(()=>{var r;const o=i.getCollection(e.collection);return!!((r=o==null?void 0:o.meta)!=null&&r.singleton)});return Zn(()=>t.params,o=>{o.collection&&n.value!==o.collection&&(n.value=o.collection)},{immediate:!0}),{isSingleton:a}}});function Hse(e,t,n,i,a,o){return G(),_e(Fr(e.isSingleton?"item-route":"collection-route"),{collection:e.collection,bookmark:e.bookmark,singleton:e.isSingleton,archive:e.archive},null,8,["collection","bookmark","singleton","archive"])}var qse=Ot(Use,[["render",Hse]]);const Wse=$t({name:"ContentOverview",components:{ContentNavigation:k4},props:{},setup(){const{t:e}=yn(),t=Qr(),n=Ee(()=>{var i;return((i=t.currentUser)==null?void 0:i.role.admin_access)===!0});return{t:e,isAdmin:n}}}),Gse={class:"page-description"};function Yse(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-button"),l=Y("content-navigation"),f=Y("v-info"),p=Y("sidebar-detail"),h=Y("private-view"),v=pi("md");return G(),_e(h,{class:"content-overview",title:e.t("content")},{"title-outer:prepend":R(()=>[F(s,{class:"header-icon",rounded:"",disabled:"",icon:"",secondary:""},{default:R(()=>[F(r,{name:"box"})]),_:1})]),navigation:R(()=>[F(l)]),sidebar:R(()=>[F(p,{icon:"info_outline",title:e.t("information"),close:""},{default:R(()=>[dn(ke("div",Gse,null,512),[[v,e.t("page_help_collections_overview")]])]),_:1},8,["title"])]),default:R(()=>[F(f,{icon:"box",title:e.t("no_collections"),center:""},La({default:R(()=>[e.isAdmin?(G(),Me(gn,{key:0},[Ne(he(e.t("no_collections_copy_admin")),1)],64)):(G(),Me(gn,{key:1},[Ne(he(e.t("no_collections_copy")),1)],64))]),_:2},[e.isAdmin?{name:"append",fn:R(()=>[F(s,{to:"/settings/data-model/+"},{default:R(()=>[Ne(he(e.t("create_collection")),1)]),_:1})])}:void 0]),1032,["title"])]),_:1},8,["title"])}var Xse=Ot(Wse,[["render",Yse],["__scopeId","data-v-b639f274"]]);const r5=(e,t)=>{var n;if(!!((n=e.params)!=null&&n.collection)){if(e.params.collection==="directus_users")return e.params.primaryKey?`/users/${e.params.primaryKey}`:"/users";if(e.params.collection==="directus_files")return e.params.primaryKey?`/files/${e.params.primaryKey}`:"/files";if(e.params.collection==="directus_activity")return e.params.primaryKey?`/activity/${e.params.primaryKey}`:"/activity";if(e.params.collection==="directus_webhooks")return e.params.primaryKey?`/settings/webhooks/${e.params.primaryKey}`:"/settings/webhooks";if(e.params.collection==="directus_presets")return e.params.primaryKey?`/settings/presets/${e.params.primaryKey}`:"/settings/presets";if("bookmark"in t.query&&typeof t.query.bookmark=="string"&&!("bookmark"in e.query)&&e.params.collection===t.params.collection)return gb(e.fullPath,{bookmark:t.query.bookmark})}},Kse=e=>"all"in e?"all":"archived"in e?"archived":null;var Zse=em({id:"content",name:"$t:content",icon:"box",routes:[{name:"no-collections",path:"",component:Xse,beforeEnter(){const e=ea(),{activeGroups:t}=HE(ze(null));if(e.visibleCollections.length===0)return;const n=lt.exports.orderBy(e.visibleCollections.filter(r=>{var s;return lt.exports.isNil((s=r==null?void 0:r.meta)==null?void 0:s.group)}),["meta.sort","collection"]),{data:i}=mA("last-accessed-collection");if(i.value&&e.visibleCollections.find(r=>r.collection===i.value))return`/content/${i.value}`;let a=o(n);if(a=o(n,{skipClosed:!1}),!a)return;return`/content/${a.collection}`;function o(r,{skipClosed:s}={skipClosed:!0}){for(const l of r){if(l.schema)return l;if(s&&t.value.includes(l.collection)===!1)continue;const f=lt.exports.orderBy(e.visibleCollections.filter(h=>{var v;return l.collection===((v=h.meta)==null?void 0:v.group)}),["meta.sort","collection"]),p=o(f);if(p)return p}}}},{path:":collection",component:W1,children:[{name:"content-collection",path:"",component:qse,props:e=>{const t=Kse(e.query);return{collection:e.params.collection,bookmark:e.query.bookmark,archive:t}},beforeEnter:r5},{name:"content-item",path:":primaryKey",component:hA,props:!0,beforeEnter:r5}]},{name:"content-item-not-found",path:":_(.+)+",component:yb,beforeEnter:r5}]}),Jse=Object.freeze(Object.defineProperty({__proto__:null,default:Zse},Symbol.toStringTag,{value:"Module"})),Qse=[{name:"app",path:"app",children:[{name:"content",path:"app/content",children:[{name:"collections",path:"app/content/collections",import:()=>ct(()=>import("./collections.2fa0dd8e.js"),["assets/collections.2fa0dd8e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"items",path:"app/content/items",import:()=>ct(()=>import("./items.cc802753.js"),["assets/items.cc802753.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"shares",path:"app/content/shares",import:()=>ct(()=>import("./shares.cc7ce751.js"),["assets/shares.cc7ce751.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"content",path:"app/content",import:()=>ct(()=>import("./content.f9b34bf7.js"),["assets/content.f9b34bf7.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"display-templates",path:"app/display-templates",import:()=>ct(()=>import("./display-templates.91e34e9f.js"),["assets/display-templates.91e34e9f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"documentation",path:"app/documentation",import:()=>ct(()=>import("./documentation.cb5bf843.js"),["assets/documentation.cb5bf843.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"file-library",path:"app/file-library",import:()=>ct(()=>import("./file-library.5d646392.js"),["assets/file-library.5d646392.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"filters",path:"app/filters",import:()=>ct(()=>import("./filters.5cf9b5c5.js"),["assets/filters.5cf9b5c5.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"import-export",path:"app/import-export",import:()=>ct(()=>import("./import-export.92aee031.js"),["assets/import-export.92aee031.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"insights",path:"app/insights",import:()=>ct(()=>import("./insights.c3df1bb3.js"),["assets/insights.c3df1bb3.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"layouts",path:"app/layouts",import:()=>ct(()=>import("./layouts.39ffa712.js"),["assets/layouts.39ffa712.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"overview",path:"app/overview",import:()=>ct(()=>import("./overview.eb55d14f.js"),["assets/overview.eb55d14f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"settings",path:"app/settings",import:()=>ct(()=>import("./settings.25cab07d.js"),["assets/settings.25cab07d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"user-directory",path:"app/user-directory",import:()=>ct(()=>import("./user-directory.59b8470a.js"),["assets/user-directory.59b8470a.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"cloud",path:"cloud",children:[{name:"accounts",path:"cloud/accounts",import:()=>ct(()=>import("./accounts.e4c64fb1.js"),["assets/accounts.e4c64fb1.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"glossary",path:"cloud/glossary",import:()=>ct(()=>import("./glossary.238763c8.js"),["assets/glossary.238763c8.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"overview",path:"cloud/overview",import:()=>ct(()=>import("./overview.211898b7.js"),["assets/overview.211898b7.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"projects",path:"cloud/projects",import:()=>ct(()=>import("./projects.398642da.js"),["assets/projects.398642da.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"teams",path:"cloud/teams",import:()=>ct(()=>import("./teams.541d1f0c.js"),["assets/teams.541d1f0c.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"configuration",path:"configuration",children:[{name:"activity-log",path:"configuration/activity-log",import:()=>ct(()=>import("./activity-log.147dd93e.js"),["assets/activity-log.147dd93e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"data-model",path:"configuration/data-model",children:[{name:"collections",path:"configuration/data-model/collections",import:()=>ct(()=>import("./collections.18cc2518.js"),["assets/collections.18cc2518.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"fields",path:"configuration/data-model/fields",children:[{name:"conditions",path:"configuration/data-model/fields/conditions",import:()=>ct(()=>import("./conditions.281a6ed5.js"),["assets/conditions.281a6ed5.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"display",path:"configuration/data-model/fields/display",import:()=>ct(()=>import("./display.494b7d1f.js"),["assets/display.494b7d1f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"field-types",path:"configuration/data-model/fields/field-types",import:()=>ct(()=>import("./field-types.ed85836e.js"),["assets/field-types.ed85836e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"field",path:"configuration/data-model/fields/field",import:()=>ct(()=>import("./field.fb2213dd.js"),["assets/field.fb2213dd.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"index",path:"configuration/data-model/fields/index",import:()=>ct(()=>import("./index.0d2e59f7.js"),["assets/index.0d2e59f7.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"interface",path:"configuration/data-model/fields/interface",import:()=>ct(()=>import("./interface.1195a442.js"),["assets/interface.1195a442.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"relationship",path:"configuration/data-model/fields/relationship",import:()=>ct(()=>import("./relationship.32af0bee.js"),["assets/relationship.32af0bee.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"schema",path:"configuration/data-model/fields/schema",import:()=>ct(()=>import("./schema.7eb35ba9.js"),["assets/schema.7eb35ba9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"translations",path:"configuration/data-model/fields/translations",import:()=>ct(()=>import("./translations.4a2d59ad.js"),["assets/translations.4a2d59ad.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"validation",path:"configuration/data-model/fields/validation",import:()=>ct(()=>import("./validation.10b8a2f3.js"),["assets/validation.10b8a2f3.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"fields",path:"configuration/data-model/fields",import:()=>ct(()=>import("./fields.f3868bd3.js"),["assets/fields.f3868bd3.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"relationships",path:"configuration/data-model/relationships",import:()=>ct(()=>import("./relationships.1cd9b5d9.js"),["assets/relationships.1cd9b5d9.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"data-model",path:"configuration/data-model",import:()=>ct(()=>import("./data-model.dbce1366.js"),["assets/data-model.dbce1366.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"faq",path:"configuration/faq",import:()=>ct(()=>import("./faq.4ca4b467.js"),["assets/faq.4ca4b467.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"flows",path:"configuration/flows",children:[{name:"operations",path:"configuration/flows/operations",import:()=>ct(()=>import("./operations.30fc2625.js"),["assets/operations.30fc2625.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"triggers",path:"configuration/flows/triggers",import:()=>ct(()=>import("./triggers.6baf300f.js"),["assets/triggers.6baf300f.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"flows",path:"configuration/flows",import:()=>ct(()=>import("./flows.79e56304.js"),["assets/flows.79e56304.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"localization",path:"configuration/localization",import:()=>ct(()=>import("./localization.6486db5d.js"),["assets/localization.6486db5d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"overview",path:"configuration/overview",import:()=>ct(()=>import("./overview.91ec2552.js"),["assets/overview.91ec2552.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"presets-bookmarks",path:"configuration/presets-bookmarks",import:()=>ct(()=>import("./presets-bookmarks.0a83b030.js"),["assets/presets-bookmarks.0a83b030.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"project-settings",path:"configuration/project-settings",import:()=>ct(()=>import("./project-settings.eebfbd8c.js"),["assets/project-settings.eebfbd8c.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"security",path:"configuration/security",import:()=>ct(()=>import("./security.0f4880b1.js"),["assets/security.0f4880b1.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"translation-strings",path:"configuration/translation-strings",import:()=>ct(()=>import("./translation-strings.6f6737a7.js"),["assets/translation-strings.6f6737a7.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"users-roles-permissions",path:"configuration/users-roles-permissions",import:()=>ct(()=>import("./users-roles-permissions.ed9e814c.js"),["assets/users-roles-permissions.ed9e814c.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"webhooks",path:"configuration/webhooks",import:()=>ct(()=>import("./webhooks.a7e035b7.js"),["assets/webhooks.a7e035b7.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"contributing",path:"contributing",children:[{name:"codebase-overview",path:"contributing/codebase-overview",import:()=>ct(()=>import("./codebase-overview.7f69e795.js"),["assets/codebase-overview.7f69e795.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"github-ci",path:"contributing/github-ci",import:()=>ct(()=>import("./github-ci.b23bbe2d.js"),["assets/github-ci.b23bbe2d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"introduction",path:"contributing/introduction",import:()=>ct(()=>import("./introduction.201b3a46.js"),["assets/introduction.201b3a46.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"running-locally",path:"contributing/running-locally",import:()=>ct(()=>import("./running-locally.6bdbd71e.js"),["assets/running-locally.6bdbd71e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"translations",path:"contributing/translations",import:()=>ct(()=>import("./translations.7e97efc3.js"),["assets/translations.7e97efc3.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"extensions",path:"extensions",children:[{name:"creating-extensions",path:"extensions/creating-extensions",import:()=>ct(()=>import("./creating-extensions.4533b8ed.js"),["assets/creating-extensions.4533b8ed.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"displays",path:"extensions/displays",import:()=>ct(()=>import("./displays.54ddeb10.js"),["assets/displays.54ddeb10.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"email-templates",path:"extensions/email-templates",import:()=>ct(()=>import("./email-templates.b0b82036.js"),["assets/email-templates.b0b82036.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"endpoints",path:"extensions/endpoints",import:()=>ct(()=>import("./endpoints.1ba44e66.js"),["assets/endpoints.1ba44e66.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"hooks",path:"extensions/hooks",import:()=>ct(()=>import("./hooks.7b1e235e.js"),["assets/hooks.7b1e235e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"interfaces",path:"extensions/interfaces",import:()=>ct(()=>import("./interfaces.0dddec2f.js"),["assets/interfaces.0dddec2f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"introduction",path:"extensions/introduction",import:()=>ct(()=>import("./introduction.2a49238f.js"),["assets/introduction.2a49238f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"layouts",path:"extensions/layouts",import:()=>ct(()=>import("./layouts.6d10b629.js"),["assets/layouts.6d10b629.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"migrations",path:"extensions/migrations",import:()=>ct(()=>import("./migrations.ecdb3334.js"),["assets/migrations.ecdb3334.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"modules",path:"extensions/modules",import:()=>ct(()=>import("./modules.0dab0325.js"),["assets/modules.0dab0325.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"operations",path:"extensions/operations",import:()=>ct(()=>import("./operations.c5ee7367.js"),["assets/operations.c5ee7367.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"panels",path:"extensions/panels",import:()=>ct(()=>import("./panels.9b48e2ab.js"),["assets/panels.9b48e2ab.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"themes",path:"extensions/themes",import:()=>ct(()=>import("./themes.47d63f74.js"),["assets/themes.47d63f74.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"getting-started",path:"getting-started",children:[{name:"architecture",path:"getting-started/architecture",import:()=>ct(()=>import("./architecture.aaf5c296.js"),["assets/architecture.aaf5c296.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"backing-directus",path:"getting-started/backing-directus",import:()=>ct(()=>import("./backing-directus.bd29d5e2.js"),["assets/backing-directus.bd29d5e2.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"glossary",path:"getting-started/glossary",import:()=>ct(()=>import("./glossary.db37b807.js"),["assets/glossary.db37b807.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"introduction",path:"getting-started/introduction",import:()=>ct(()=>import("./introduction.daef5dfe.js"),["assets/introduction.daef5dfe.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"quickstart",path:"getting-started/quickstart",import:()=>ct(()=>import("./quickstart.a567dd49.js"),["assets/quickstart.a567dd49.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"resources",path:"getting-started/resources",import:()=>ct(()=>import("./resources.f947272a.js"),["assets/resources.f947272a.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"support",path:"getting-started/support",import:()=>ct(()=>import("./support.55199a3e.js"),["assets/support.55199a3e.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"index",path:"index",import:()=>ct(()=>import("./index.556512f9.js"),["assets/index.556512f9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"readme",path:"readme",import:()=>ct(()=>import("./readme.1996f39f.js"),["assets/readme.1996f39f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"reference",path:"reference",children:[{name:"authentication",path:"reference/authentication",import:()=>ct(()=>import("./authentication.61c42dda.js"),["assets/authentication.61c42dda.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"cli",path:"reference/cli",import:()=>ct(()=>import("./cli.b2fbc62f.js"),["assets/cli.b2fbc62f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"files",path:"reference/files",import:()=>ct(()=>import("./files.e0ad4209.js"),["assets/files.e0ad4209.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"filter-rules",path:"reference/filter-rules",import:()=>ct(()=>import("./filter-rules.22fc9a6d.js"),["assets/filter-rules.22fc9a6d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"introduction",path:"reference/introduction",import:()=>ct(()=>import("./introduction.569a3b41.js"),["assets/introduction.569a3b41.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"items",path:"reference/items",import:()=>ct(()=>import("./items.207153dc.js"),["assets/items.207153dc.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"query",path:"reference/query",import:()=>ct(()=>import("./query.8ccae3a9.js"),["assets/query.8ccae3a9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"sdk",path:"reference/sdk",import:()=>ct(()=>import("./sdk.d1cc970a.js"),["assets/sdk.d1cc970a.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"system",path:"reference/system",children:[{name:"activity",path:"reference/system/activity",import:()=>ct(()=>import("./activity.dd401932.js"),["assets/activity.dd401932.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"collections",path:"reference/system/collections",import:()=>ct(()=>import("./collections.b7aafbfb.js"),["assets/collections.b7aafbfb.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"extensions",path:"reference/system/extensions",import:()=>ct(()=>import("./extensions.b4c93ce0.js"),["assets/extensions.b4c93ce0.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"fields",path:"reference/system/fields",import:()=>ct(()=>import("./fields.057754cf.js"),["assets/fields.057754cf.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"flows",path:"reference/system/flows",import:()=>ct(()=>import("./flows.eec58d0b.js"),["assets/flows.eec58d0b.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"folders",path:"reference/system/folders",import:()=>ct(()=>import("./folders.83d5bb9d.js"),["assets/folders.83d5bb9d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"notifications",path:"reference/system/notifications",import:()=>ct(()=>import("./notifications.5b10ad0b.js"),["assets/notifications.5b10ad0b.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"operations",path:"reference/system/operations",import:()=>ct(()=>import("./operations.296e9710.js"),["assets/operations.296e9710.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"permissions",path:"reference/system/permissions",import:()=>ct(()=>import("./permissions.66ecdced.js"),["assets/permissions.66ecdced.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"presets",path:"reference/system/presets",import:()=>ct(()=>import("./presets.198afe35.js"),["assets/presets.198afe35.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"relations",path:"reference/system/relations",import:()=>ct(()=>import("./relations.ad6c2398.js"),["assets/relations.ad6c2398.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"revisions",path:"reference/system/revisions",import:()=>ct(()=>import("./revisions.c13b66e0.js"),["assets/revisions.c13b66e0.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"roles",path:"reference/system/roles",import:()=>ct(()=>import("./roles.e767878c.js"),["assets/roles.e767878c.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"server",path:"reference/system/server",import:()=>ct(()=>import("./server.bcf6175e.js"),["assets/server.bcf6175e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"settings",path:"reference/system/settings",import:()=>ct(()=>import("./settings.f21d244b.js"),["assets/settings.f21d244b.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"users",path:"reference/system/users",import:()=>ct(()=>import("./users.de050e21.js"),["assets/users.de050e21.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"utilities",path:"reference/system/utilities",import:()=>ct(()=>import("./utilities.99f7a370.js"),["assets/utilities.99f7a370.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"webhooks",path:"reference/system/webhooks",import:()=>ct(()=>import("./webhooks.53b2215e.js"),["assets/webhooks.53b2215e.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]}]},{name:"self-hosted",path:"self-hosted",children:[{name:"config-options",path:"self-hosted/config-options",import:()=>ct(()=>import("./config-options.d33aab72.js"),["assets/config-options.d33aab72.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"installation",path:"self-hosted/installation",children:[{name:"aws",path:"self-hosted/installation/aws",import:()=>ct(()=>import("./aws.55405db9.js"),["assets/aws.55405db9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"cli",path:"self-hosted/installation/cli",import:()=>ct(()=>import("./cli.ca0055cb.js"),["assets/cli.ca0055cb.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"cloudron",path:"self-hosted/installation/cloudron",import:()=>ct(()=>import("./cloudron.8200e84b.js"),["assets/cloudron.8200e84b.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"digitalocean-app-platform",path:"self-hosted/installation/digitalocean-app-platform",import:()=>ct(()=>import("./digitalocean-app-platform.b046ae55.js"),["assets/digitalocean-app-platform.b046ae55.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"docker",path:"self-hosted/installation/docker",import:()=>ct(()=>import("./docker.36215dae.js"),["assets/docker.36215dae.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"gcp",path:"self-hosted/installation/gcp",import:()=>ct(()=>import("./gcp.60b49ff2.js"),["assets/gcp.60b49ff2.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"iis",path:"self-hosted/installation/iis",import:()=>ct(()=>import("./iis.67a83939.js"),["assets/iis.67a83939.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"manual",path:"self-hosted/installation/manual",import:()=>ct(()=>import("./manual.edc6cff6.js"),["assets/manual.edc6cff6.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"plesk",path:"self-hosted/installation/plesk",import:()=>ct(()=>import("./plesk.0a2c4855.js"),["assets/plesk.0a2c4855.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"ubuntu",path:"self-hosted/installation/ubuntu",import:()=>ct(()=>import("./ubuntu.14eb3ea1.js"),["assets/ubuntu.14eb3ea1.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"installation",path:"self-hosted/installation",import:()=>ct(()=>import("./installation.4ab6ce97.js"),["assets/installation.4ab6ce97.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"quickstart",path:"self-hosted/quickstart",import:()=>ct(()=>import("./quickstart.de9843d9.js"),["assets/quickstart.de9843d9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"sso-examples",path:"self-hosted/sso-examples",import:()=>ct(()=>import("./sso-examples.0b7c81f4.js"),["assets/sso-examples.0b7c81f4.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"sso",path:"self-hosted/sso",import:()=>ct(()=>import("./sso.49e87f3a.js"),["assets/sso.49e87f3a.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"upgrades-migrations",path:"self-hosted/upgrades-migrations",import:()=>ct(()=>import("./upgrades-migrations.a9a9ca7c.js"),["assets/upgrades-migrations.a9a9ca7c.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]}];const ele=$t({name:"NavigationListItem",props:{section:{type:Object,default:null},dense:{type:Boolean,default:!1}}});function tle(e,t,n,i,a,o){const r=Y("v-divider"),s=Y("v-icon"),l=Y("v-list-item-icon"),f=Y("v-text-overflow"),p=Y("v-list-item-content"),h=Y("navigation-list-item"),v=Y("v-list-group"),_=Y("v-list-item");return e.section.divider?(G(),_e(r,{key:0})):e.section.children?(G(),_e(v,{key:1,scope:"docs-navigation",dense:e.dense,multiple:!1,value:e.section.to},{activator:R(()=>[e.section.icon!==void 0?(G(),_e(l,{key:0},{default:R(()=>[F(s,{name:e.section.icon},null,8,["name"])]),_:1})):Je("",!0),F(p,null,{default:R(()=>[F(f,{text:e.section.name},null,8,["text"])]),_:1})]),default:R(()=>[(G(!0),Me(gn,null,vi(e.section.children,(y,k)=>(G(),_e(h,{key:k,section:y,dense:""},null,8,["section"]))),128))]),_:1},8,["dense","value"])):(G(),_e(_,{key:2,scope:"docs-navigation",to:`/docs${e.section.to}`,dense:e.dense,value:e.section.to},{default:R(()=>[e.section.icon!==void 0?(G(),_e(l,{key:0},{default:R(()=>[F(s,{name:e.section.icon},null,8,["name"])]),_:1})):Je("",!0),F(p,null,{default:R(()=>[F(f,{text:e.section.name},null,8,["text"])]),_:1})]),_:1},8,["to","dense","value"]))}var nle=Ot(ele,[["render",tle]]),ile=[{name:"App Overview",to:"/app/overview",icon:"school"},{name:"Collection Page",to:"/app/content/collections",icon:"list_alt"},{name:"Item Page",to:"/app/content/items",icon:"edit_note"},{name:"User Directory",to:"/app/user-directory",icon:"people_alt"},{name:"File Library",to:"/app/file-library",icon:"folder"},{name:"Insights",to:"/app/insights",icon:"insights"},{name:"Documentation",to:"/app/documentation",icon:"help_outline"},{name:"Settings",to:"/app/settings",icon:"settings"},{name:"Backing Directus",to:"/getting-started/backing-directus",icon:"card_giftcard"},{name:"Glossary",to:"/getting-started/glossary",icon:"menu_book"}];function rle(e){const t=e.slice(1).split("/");if(t.length===0)return[];const n=["/"+t[0]];for(let i=1;i<t.length;i++)n.push(n[i-1]+"/"+t[i]);return n[0]==="/reference"&&n[1]==="/reference/api"&&n.shift(),n}const ale=$t({components:{NavigationItem:nle},props:{path:{type:String,default:"/docs"}},setup(e){const t=ze(null);return Zn(()=>e.path,n=>{n!==null&&(t.value=[...t.value||[],...rle(n.replace("/docs",""))])},{immediate:!0}),{navSections:ile,selection:t}}});function ole(e,t,n,i,a,o){const r=Y("navigation-item"),s=Y("v-list");return G(),_e(s,{modelValue:e.selection,"onUpdate:modelValue":t[0]||(t[0]=l=>e.selection=l),nav:"",mandatory:!1,scope:"docs-navigation"},{default:R(()=>[(G(!0),Me(gn,null,vi(e.navSections,l=>(G(),_e(r,{key:l.name,section:l},null,8,["section"]))),128))]),_:1},8,["modelValue"])}var vA=Ot(ale,[["render",ole]]);const sle=$t({name:"NotFound",components:{DocsNavigation:vA},setup(){const{t:e}=yn(),t=Vf();return{t:e,route:t}}}),lle={class:"not-found"};function cle(e,t,n,i,a,o){const r=Y("docs-navigation"),s=Y("v-info"),l=Y("private-view");return G(),_e(l,{title:e.t("page_not_found")},{navigation:R(()=>[F(r,{path:e.route.path},null,8,["path"])]),default:R(()=>[ke("div",lle,[F(s,{title:e.t("page_not_found"),icon:"not_interested"},{default:R(()=>[Ne(he(e.t("page_not_found_body")),1)]),_:1},8,["title"])])]),_:1},8,["title"])}var ule=Ot(sle,[["render",cle],["__scopeId","data-v-736afbfa"]]);const dle=$t({name:"StaticDocs",components:{DocsNavigation:vA},setup(){const{t:e}=yn(),t=Vf(),n=ze("Test"),i=ze(!1);return{t:e,route:t,title:n,modularExtension:i}}}),fle={class:"type-title"},ple=Ne("Modular Extension"),hle={class:"docs-content selectable"},mle={class:"page-description"};function vle(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-button"),l=Y("v-chip"),f=Y("docs-navigation"),p=Y("router-view"),h=Y("sidebar-detail"),v=Y("private-view"),_=pi("md");return G(),_e(v,{title:e.title},{"title-outer:prepend":R(()=>[F(s,{rounded:"",disabled:"",icon:""},{default:R(()=>[F(r,{name:"info"})]),_:1})]),title:R(()=>[ke("h1",fle,he(e.title),1),e.modularExtension?(G(),_e(l,{key:0,disabled:"",small:""},{default:R(()=>[ple]),_:1})):Je("",!0)]),navigation:R(()=>[F(f,{path:e.route.path},null,8,["path"])]),sidebar:R(()=>[F(h,{icon:"info_outline",title:e.t("information"),close:""},{default:R(()=>[dn(ke("div",mle,null,512),[[_,e.t("page_help_docs_global")]])]),_:1},8,["title"])]),default:R(()=>[ke("div",hle,[F(p,{"onUpdate:title":t[0]||(t[0]=y=>e.title=y),"onUpdate:modularExtension":t[1]||(t[1]=y=>e.modularExtension=y)})])]),_:1},8,["title"])}var gle=Ot(dle,[["render",vle],["__scopeId","data-v-3383fb1a"]]),yle=em({id:"docs",name:"$t:documentation",icon:"help_outline",routes:[{path:"",component:gle,children:[{path:"",redirect:"/docs/app/overview"},...gA(Qse)]},{path:":_(.+)+",component:ule}]});function gA(e){const t=[];for(const n of e)"children"in n?(t.push({path:n.path,redirect:`/docs/${n.children[0].path}`}),t.push(...gA(n.children))):t.push({name:`docs-${n.path.replace("/","-")}`,path:n.path,component:n.import});return t}var _le=Object.freeze(Object.defineProperty({__proto__:null,default:yle},Symbol.toStringTag,{value:"Module"}));const ble=$t({props:{folder:{type:String,default:null}},setup(e){const{t}=yn(),n=qa(),i=ah();return{t,isOpen:i,close:a};function a(){n.push(e.folder?{path:`/files/folders/${e.folder}`}:{path:"/files"})}}});function wle(e,t,n,i,a,o){const r=Y("v-card-title"),s=Y("v-upload"),l=Y("v-card-text"),f=Y("v-button"),p=Y("v-card-actions"),h=Y("v-card"),v=Y("v-dialog");return G(),_e(v,{"model-value":e.isOpen,"onUpdate:modelValue":e.close,onEsc:e.close},{default:R(()=>[F(h,null,{default:R(()=>[F(r,null,{default:R(()=>[Ne(he(e.t("add_file")),1)]),_:1}),F(l,null,{default:R(()=>[F(s,{preset:{folder:e.folder},multiple:"","from-url":"",onInput:e.close},null,8,["preset","onInput"])]),_:1}),F(p,null,{default:R(()=>[F(f,{secondary:"",onClick:e.close},{default:R(()=>[Ne(he(e.t("done")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model-value","onUpdate:modelValue","onEsc"])}var ex=Ot(ble,[["render",wle]]);let Dh=null,Gm=null,$2=null,a5=null,z2=null;function rg(){return Dh===null&&(Dh=ze(!1)),Gm===null&&(Gm=ze(null)),$2===null&&($2=ze(null)),z2===null&&(z2=ze(null)),a5===null&&(a5=ze(["root"])),Gm.value===null&&Dh.value===!1&&e(),{loading:Dh,folders:Gm,nestedFolders:$2,error:z2,fetchFolders:e,openFolders:a5};async function e(){if(Dh!==null&&Gm!==null&&$2!==null&&z2!==null){Dh.value=!0;try{const t=await $n.get("/folders",{params:{limit:-1,sort:"name"}});Gm.value=t.data.data,$2.value=xle(t.data.data)}catch(t){z2.value=t}finally{Dh.value=!1}}}}function xle(e){return e.map(t=>yA(t,e)).filter(t=>t.parent===null)}function yA(e,t){const n={...e},i=t.filter(a=>a.parent===e.id&&a.id!==e.id).map(a=>yA(a,t));return i.length>0&&(n.children=i),n}const kle=$t({name:"NavigationFolder",components:{FolderPicker:S4},props:{folder:{type:Object,required:!0},currentFolder:{type:String,default:null},clickHandler:{type:Function,default:()=>{}}},setup(e){const{t}=yn(),n=qa(),{renameActive:i,renameValue:a,renameSave:o,renameSaving:r}=k(),{moveActive:s,moveValue:l,moveSave:f,moveSaving:p}=w(),{deleteActive:h,deleteSave:v,deleteSaving:_}=D(),{fetchFolders:y}=rg();return{t,renameActive:i,renameValue:a,renameSave:o,renameSaving:r,moveActive:s,moveValue:l,moveSave:f,moveSaving:p,deleteActive:h,deleteSave:v,deleteSaving:_};function k(){const A=ze(!1),L=ze(e.folder.name),T=ze(!1);return{renameActive:A,renameValue:L,renameSave:z,renameSaving:T};async function z(){T.value=!0;try{await $n.patch(`/folders/${e.folder.id}`,{name:L.value})}catch(B){Hi(B)}finally{T.value=!1,await y(),A.value=!1}}}function w(){const A=ze(!1),L=ze(e.folder.parent),T=ze(!1);return{moveActive:A,moveValue:L,moveSave:z,moveSaving:T};async function z(){T.value=!0;try{await $n.patch(`/folders/${e.folder.id}`,{parent:L.value})}catch(B){Hi(B)}finally{T.value=!1,await y(),A.value=!1}}}function D(){const A=ze(!1),L=ze(!1);return{deleteActive:A,deleteSave:T,deleteSaving:L};async function T(){L.value=!0;try{const z=await $n.get("/folders",{params:{filter:{parent:{_eq:e.folder.id}}}}),B=await $n.get("/files",{params:{filter:{folder:{_eq:e.folder.id}}}}),W=e.folder.parent||null,N=z.data.data.map(re=>re.id),K=B.data.data.map(re=>re.id);N.length>0&&await $n.patch("/folders",{keys:N,data:{parent:W}}),K.length>0&&await $n.patch("/files",{keys:K,data:{folder:W}}),await $n.delete(`/folders/${e.folder.id}`),W?n.replace(`/files/folders/${W}`):n.replace("/files"),A.value=!1}catch(z){Hi(z)}finally{await y(),L.value=!1}}}}});function Sle(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-icon"),l=Y("v-text-overflow"),f=Y("v-list-item-content"),p=Y("v-list-item"),h=Y("navigation-folder",!0),v=Y("v-list-group"),_=Y("v-list"),y=Y("v-menu"),k=Y("v-card-title"),w=Y("v-input"),D=Y("v-card-text"),A=Y("v-button"),L=Y("v-card-actions"),T=Y("v-card"),z=Y("v-dialog"),B=Y("folder-picker"),W=Y("v-notice"),N=pi("context-menu");return G(),Me("div",null,[e.folder.children===void 0?dn((G(),_e(p,{key:0,to:`/files/folders/${e.folder.id}`,active:e.currentFolder===e.folder.id},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"folder"})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.folder.name},null,8,["text"])]),_:1})]),_:1},8,["to","active"])),[[N,"contextMenu"]]):dn((G(),_e(v,{key:1,to:`/files/folders/${e.folder.id}`,active:e.currentFolder===e.folder.id,value:e.folder.id,scope:"files-navigation","disable-groupable-parent":""},{activator:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"folder"})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.folder.name},null,8,["text"])]),_:1})]),default:R(()=>[(G(!0),Me(gn,null,vi(e.folder.children,K=>(G(),_e(h,{key:K.id,folder:K,"current-folder":e.currentFolder,"click-handler":e.clickHandler},null,8,["folder","current-folder","click-handler"]))),128))]),_:1},8,["to","active","value"])),[[N,"contextMenu"]]),F(y,{ref:"contextMenu","show-arrow":"",placement:"bottom-start"},{default:R(()=>[F(_,null,{default:R(()=>[F(p,{clickable:"",onClick:t[0]||(t[0]=K=>e.renameActive=!0)},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"edit",outline:""})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.t("rename_folder")},null,8,["text"])]),_:1})]),_:1}),F(p,{clickable:"",onClick:t[1]||(t[1]=K=>e.moveActive=!0)},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"folder_move"})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.t("move_to_folder")},null,8,["text"])]),_:1})]),_:1}),F(p,{class:"danger",clickable:"",onClick:t[2]||(t[2]=K=>e.deleteActive=!0)},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"delete",outline:""})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.t("delete_folder")},null,8,["text"])]),_:1})]),_:1})]),_:1})]),_:1},512),F(z,{modelValue:e.renameActive,"onUpdate:modelValue":t[5]||(t[5]=K=>e.renameActive=K),persistent:"",onEsc:t[6]||(t[6]=K=>e.renameActive=!1)},{default:R(()=>[F(T,null,{default:R(()=>[F(k,null,{default:R(()=>[Ne(he(e.t("rename_folder")),1)]),_:1}),F(D,null,{default:R(()=>[F(w,{modelValue:e.renameValue,"onUpdate:modelValue":t[3]||(t[3]=K=>e.renameValue=K),autofocus:"",onKeyup:Qh(e.renameSave,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),F(L,null,{default:R(()=>[F(A,{secondary:"",onClick:t[4]||(t[4]=K=>e.renameActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(A,{disabled:e.renameValue===null,loading:e.renameSaving,onClick:e.renameSave},{default:R(()=>[Ne(he(e.t("save")),1)]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),F(z,{modelValue:e.moveActive,"onUpdate:modelValue":t[9]||(t[9]=K=>e.moveActive=K),persistent:"",onEsc:t[10]||(t[10]=K=>e.moveActive=!1)},{default:R(()=>[F(T,null,{default:R(()=>[F(k,null,{default:R(()=>[Ne(he(e.t("move_to_folder")),1)]),_:1}),F(D,null,{default:R(()=>[F(B,{modelValue:e.moveValue,"onUpdate:modelValue":t[7]||(t[7]=K=>e.moveValue=K),"disabled-folders":[e.folder.id]},null,8,["modelValue","disabled-folders"])]),_:1}),F(L,null,{default:R(()=>[F(A,{secondary:"",onClick:t[8]||(t[8]=K=>e.moveActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(A,{loading:e.moveSaving,onClick:e.moveSave},{default:R(()=>[Ne(he(e.t("save")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),F(z,{modelValue:e.deleteActive,"onUpdate:modelValue":t[12]||(t[12]=K=>e.deleteActive=K),persistent:"",onEsc:t[13]||(t[13]=K=>e.deleteActive=!1)},{default:R(()=>[F(T,null,{default:R(()=>[F(k,null,{default:R(()=>[Ne(he(e.t("delete_folder")),1)]),_:1}),F(D,null,{default:R(()=>[F(W,null,{default:R(()=>[Ne(he(e.t("nested_files_folders_will_be_moved")),1)]),_:1})]),_:1}),F(L,null,{default:R(()=>[F(A,{secondary:"",onClick:t[11]||(t[11]=K=>e.deleteActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(A,{kind:"danger",loading:e.deleteSaving,onClick:e.deleteSave},{default:R(()=>[Ne(he(e.t("delete_label")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}var Cle=Ot(kle,[["render",Sle],["__scopeId","data-v-0244c872"]]);const Ele=$t({components:{NavigationFolder:Cle},props:{currentFolder:{type:String,default:null}},setup(e){const{t}=yn(),{nestedFolders:n,folders:i,error:a,loading:o,openFolders:r}=rg();return s(),Zn(()=>e.currentFolder,s),{t,folders:i,nestedFolders:n,error:a,loading:o,openFolders:r};function s(){if(!i.value)return[];if(!(r!=null&&r.value))return[];const l=[],f=i.value.find(v=>v.id===e.currentFolder);f&&f.parent&&h(f.parent);const p=[...r.value];for(const v of l)p.includes(v)===!1&&p.push(v);p.length!==1&<.exports.isEqual(p,r.value)===!1&&(r.value=p);function h(v){if(!i.value)return;l.push(v);const _=i.value.find(y=>y.id===v);_&&_.parent&&h(_.parent)}}}}),Ale={class:"folders"};function Tle(e,t,n,i,a,o){const r=Y("v-skeleton-loader"),s=Y("v-list-item"),l=Y("v-icon"),f=Y("v-list-item-icon"),p=Y("v-text-overflow"),h=Y("v-list-item-content"),v=Y("navigation-folder"),_=Y("v-list-group"),y=Y("v-item-group"),k=Y("v-divider"),w=Y("v-list");return G(),_e(w,{nav:""},{default:R(()=>[e.loading&&(e.nestedFolders===null||e.nestedFolders.length===0)?(G(),Me(gn,{key:0},vi(4,D=>F(s,{key:D},{default:R(()=>[F(r,{type:"list-item-icon"})]),_:2},1024)),64)):Je("",!0),ke("div",Ale,[F(y,{modelValue:e.openFolders,"onUpdate:modelValue":t[0]||(t[0]=D=>e.openFolders=D),scope:"files-navigation",multiple:""},{default:R(()=>[F(_,{to:"/files",active:e.currentFolder===null,value:"root",scope:"files-navigation",exact:"","disable-groupable-parent":""},{activator:R(()=>[F(f,null,{default:R(()=>[F(l,{name:"folder_special",outline:""})]),_:1}),F(h,null,{default:R(()=>[F(p,{text:e.t("file_library")},null,8,["text"])]),_:1})]),default:R(()=>[(G(!0),Me(gn,null,vi(e.nestedFolders,D=>(G(),_e(v,{key:D.id,folder:D,"current-folder":e.currentFolder},null,8,["folder","current-folder"]))),128))]),_:1},8,["active"])]),_:1},8,["modelValue"])]),F(k),F(s,{to:"/files/all"},{default:R(()=>[F(f,null,{default:R(()=>[F(l,{name:"file_copy",outline:""})]),_:1}),F(h,null,{default:R(()=>[F(p,{text:e.t("all_files")},null,8,["text"])]),_:1})]),_:1}),F(s,{to:"/files/mine"},{default:R(()=>[F(f,null,{default:R(()=>[F(l,{name:"folder_shared"})]),_:1}),F(h,null,{default:R(()=>[F(p,{text:e.t("my_files")},null,8,["text"])]),_:1})]),_:1}),F(s,{to:"/files/recent"},{default:R(()=>[F(f,null,{default:R(()=>[F(l,{name:"history"})]),_:1}),F(h,null,{default:R(()=>[F(p,{text:e.t("recent_files")},null,8,["text"])]),_:1})]),_:1})]),_:1})}var Lb=Ot(Ele,[["render",Tle],["__scopeId","data-v-3cc479c4"]]);const Dle=$t({props:{parent:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup(e){const{t}=yn(),n=qa(),i=ze(!1),a=ze(!1),o=ze(null),{fetchFolders:r}=rg();return{t,addFolder:s,dialogActive:i,newFolderName:o,saving:a};async function s(){a.value=!0;try{const l=await $n.post("/folders",{name:o.value,parent:e.parent==="root"?null:e.parent});await r(),i.value=!1,o.value=null,n.push({path:`/files/folders/${l.data.data.id}`})}catch(l){Hi(l)}finally{a.value=!1}}}});function Ile(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-button"),l=Y("v-card-title"),f=Y("v-input"),p=Y("v-card-text"),h=Y("v-card-actions"),v=Y("v-card"),_=Y("v-dialog"),y=pi("tooltip");return G(),_e(_,{modelValue:e.dialogActive,"onUpdate:modelValue":t[2]||(t[2]=k=>e.dialogActive=k),onEsc:t[3]||(t[3]=k=>e.dialogActive=!1)},{activator:R(({on:k})=>[dn((G(),_e(s,{rounded:"",icon:"",secondary:"",disabled:e.disabled,onClick:k},{default:R(()=>[F(r,{name:"create_new_folder",outline:""})]),_:2},1032,["disabled","onClick"])),[[y,e.disabled?e.t("not_allowed"):e.t("create_folder"),void 0,{bottom:!0}]])]),default:R(()=>[F(v,null,{default:R(()=>[F(l,null,{default:R(()=>[Ne(he(e.t("create_folder")),1)]),_:1}),F(p,null,{default:R(()=>[F(f,{modelValue:e.newFolderName,"onUpdate:modelValue":t[0]||(t[0]=k=>e.newFolderName=k),autofocus:"",placeholder:e.t("folder_name"),onKeyup:Qh(e.addFolder,["enter"])},null,8,["modelValue","placeholder","onKeyup"])]),_:1}),F(h,null,{default:R(()=>[F(s,{secondary:"",onClick:t[1]||(t[1]=k=>e.dialogActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(s,{disabled:e.newFolderName===null,loading:e.saving,onClick:e.addFolder},{default:R(()=>[Ne(he(e.t("save")),1)]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}var Mle=Ot(Dle,[["render",Ile]]);function _A(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var i=e.get(t);i&&i.slice().map(function(a){a(n)}),(i=e.get("*"))&&i.slice().map(function(a){a(t,n)})}}}const l0=_A();var pv=(e=>(e.upload="upload",e))(pv||{});function av(e,t,n,i){Lo(()=>{V(e).addEventListener(t,n,i)}),d4(()=>{V(e).removeEventListener(t,n,i)})}async function bA(e,t){const n=(t==null?void 0:t.onProgressChange)||(()=>{}),i=new FormData;if(t!=null&&t.preset)for(const[o,r]of Object.entries(t.preset))i.append(o,r);i.append("file",e);try{let o=null;return t!=null&&t.fileId?o=await $n.patch(`/files/${t.fileId}`,i,{onUploadProgress:a}):o=await $n.post("/files",i,{onUploadProgress:a}),t!=null&&t.notifications&&sl({title:mr.global.t("upload_file_success")}),l0.emit(pv.upload),o.data.data}catch(o){Hi(o)}function a(o){const r=Math.floor(o.loaded*100/o.total);n(r)}}async function wA(e,t){const n=(t==null?void 0:t.onProgressChange)||(()=>{}),i=e.map(()=>0);try{const a=await Promise.all(e.map((o,r)=>bA(o,{...t,onProgressChange:s=>{i[r]=s,n(i)}})));return t!=null&&t.notifications&&sl({title:mr.global.t("upload_files_success",{count:e.length})}),a}catch(a){Hi(a)}}const Lle=$t({name:"FilesCollection",components:{FilesNavigation:Lb,LayoutSidebarDetail:e2,AddFolder:Mle,SearchInput:cp,FolderPicker:S4,DrawerBatch:tg},props:{folder:{type:String,default:null},special:{type:String,default:null}},setup(e){const{t}=yn(),n=qa(),i=J0(),a=Ml(),{folders:o}=rg(),r=ze(),s=ze([]),l=Qr(),{layout:f,layoutOptions:p,layoutQuery:h,filter:v,search:_,resetPreset:y}=am(ze("directus_files")),{confirmDelete:k,deleting:w,batchDelete:D,error:A,batchEditActive:L}=Le(),{breadcrumb:T,title:z}=De(),B=Ee(()=>{const _t={_and:[{type:{_nnull:!0}}]};return e.special===null&&(e.folder!==null?_t._and.push({folder:{_eq:e.folder}}):_t._and.push({folder:{_null:!0}})),e.special==="mine"&&l.currentUser&&_t._and.push({uploaded_by:{_eq:l.currentUser.id}}),e.special==="recent"&&_t._and.push({uploaded_on:{_gt:cb(new Date,5).toISOString()}}),_t}),{layoutWrapper:W}=rh(f),{moveToDialogActive:N,moveToFolder:K,moving:re,selectedFolder:se}=ht();Lo(()=>l0.on(pv.upload,At)),Lc(()=>l0.off(pv.upload,At)),m4(()=>{s.value=[]}),rb(()=>{s.value=[]});const{onDragEnter:ce,onDragLeave:de,onDrop:ge,onDragOver:Ce,showDropEffect:Oe,dragging:Ve}=on();av(window,"dragenter",ce),av(window,"dragover",Ce),av(window,"dragleave",de),av(window,"drop",ge);const{batchEditAllowed:Ye,batchDeleteAllowed:ot,createAllowed:Te,createFolderAllowed:it}=Vt();return{t,breadcrumb:T,title:z,layoutRef:r,layoutWrapper:W,selection:s,layoutOptions:p,layoutQuery:h,layout:f,folderTypeFilter:B,search:_,moveToDialogActive:N,moveToFolder:K,moving:re,selectedFolder:se,refresh:At,clearFilters:Tt,onDragEnter:ce,onDragLeave:de,showDropEffect:Oe,onDrop:ge,dragging:Ve,batchEditAllowed:Ye,batchDeleteAllowed:ot,createAllowed:Te,createFolderAllowed:it,resetPreset:y,confirmDelete:k,deleting:w,batchDelete:D,deleteError:A,batchEditActive:L,filter:v,mergeFilters:M0};function Le(){const _t=ze(!1),Ut=ze(!1),Nt=ze(!1),Qt=ze();return{batchEditActive:Nt,confirmDelete:_t,deleting:Ut,batchDelete:Jt,error:Qt};async function Jt(){Ut.value=!0;const qt=s.value;try{await $n.delete("/files",{data:qt}),await At(),s.value=[]}catch(Dt){Hi(Dt),Qt.value=Dt}finally{_t.value=!1,Ut.value=!1}}}function De(){const _t=Ee(()=>{var Nt;if(e.special==="all")return t("all_files");if(e.special==="mine")return t("my_files");if(e.special==="recent")return t("recent_files");if(e.folder){const Qt=(Nt=o.value)==null?void 0:Nt.find(Jt=>Jt.id===e.folder);if(Qt)return Qt.name}return t("file_library")});return{breadcrumb:Ee(()=>_t.value!==t("file_library")?[{name:t("file_library"),to:"/files"}]:null),title:_t}}function ht(){const _t=ze(!1),Ut=ze(!1),Nt=ze();return{moveToDialogActive:_t,moving:Ut,moveToFolder:Qt,selectedFolder:Nt};async function Qt(){Ut.value=!0;try{await $n.patch("/files",{keys:s.value,data:{folder:Nt.value}}),s.value=[],Nt.value&&n.push(`/files/folders/${Nt.value}`),await Jv(),await At()}catch(Jt){Hi(Jt)}finally{_t.value=!1,Ut.value=!1}}}async function At(){var _t,Ut,Nt;await((Nt=(Ut=(_t=r.value)==null?void 0:_t.state)==null?void 0:Ut.refresh)==null?void 0:Nt.call(Ut))}function Tt(){v.value=null,_.value=null}function Vt(){const _t=Ee(()=>{var Dt;return((Dt=l==null?void 0:l.currentUser)==null?void 0:Dt.role.admin_access)===!0?!0:!!a.permissions.find(nt=>nt.action==="update"&&nt.collection==="directus_files")}),Ut=Ee(()=>{var Dt;return((Dt=l==null?void 0:l.currentUser)==null?void 0:Dt.role.admin_access)===!0?!0:!!a.permissions.find(nt=>nt.action==="delete"&&nt.collection==="directus_files")}),Nt=Ee(()=>{var Dt;return((Dt=l==null?void 0:l.currentUser)==null?void 0:Dt.role.admin_access)===!0?!0:!!a.permissions.find(nt=>nt.action==="create"&&nt.collection==="directus_files")}),Qt=Ee(()=>{var Dt;return((Dt=l==null?void 0:l.currentUser)==null?void 0:Dt.role.admin_access)===!0?!0:!!a.permissions.find(nt=>nt.action==="create"&&nt.collection==="directus_folders")});return{batchEditAllowed:_t,batchDeleteAllowed:Ut,createAllowed:Nt,createFolderAllowed:Qt}}function on(){const _t=ze(!1);let Ut,Nt;const Qt=ze(0),Jt=Ee(()=>Qt.value>0);return{onDragEnter:nt,onDragLeave:He,onDrop:mt,onDragOver:Pe,showDropEffect:_t,dragging:Jt};function qt(){_t.value=!0,Ut=i.add({title:t("drop_to_upload"),icon:"cloud_upload",type:"info",persist:!0,closeable:!1})}function Dt(){_t.value=!1,Ut&&i.remove(Ut)}function nt(Pt){var wt,nn,Ln;if(!Pt.dataTransfer||((wt=Pt.dataTransfer)==null?void 0:wt.types.indexOf("Files"))===-1)return;Pt.preventDefault(),Qt.value++;const Bt=Pt.target&&((Ln=(nn=Pt.target).getAttribute)==null?void 0:Ln.call(nn,"data-dropzone"))==="";Qt.value===1&&_t.value===!1&&Bt===!1&&qt(),Bt&&(Dt(),Qt.value=0)}function Pe(Pt){var Bt;!Pt.dataTransfer||((Bt=Pt.dataTransfer)==null?void 0:Bt.types.indexOf("Files"))!==-1&&Pt.preventDefault()}function He(Pt){var Bt,wt,nn;!Pt.dataTransfer||((Bt=Pt.dataTransfer)==null?void 0:Bt.types.indexOf("Files"))!==-1&&(Pt.preventDefault(),Qt.value--,Qt.value===0&&Dt(),Pt.target&&((nn=(wt=Pt.target).getAttribute)==null?void 0:nn.call(wt,"data-dropzone"))===""&&(qt(),Qt.value=1))}async function mt(Pt){var wt;if(!Pt.dataTransfer||((wt=Pt.dataTransfer)==null?void 0:wt.types.indexOf("Files"))===-1)return;Pt.preventDefault(),_t.value=!1,Qt.value=0,Ut&&i.remove(Ut);const Bt=[...Pt.dataTransfer.files];Nt=i.add({title:t("upload_files_indeterminate",{done:0,total:Bt.length},Bt.length),type:"info",persist:!0,closeable:!1,loading:!0}),await wA(Bt,{preset:{folder:e.folder},onProgressChange:nn=>{const Ln=nn.reduce((ri,qi)=>ri+=qi)/nn.length,Gn=Bt.length,Pn=nn.filter(ri=>ri===100).length;i.update(Nt,{title:t("upload_files_indeterminate",{done:Pn,total:Gn},Bt.length),loading:!1,progress:Ln})}}),i.remove(Nt),l0.emit(pv.upload)}}}}),L4=e=>(ya("data-v-1cd3dfdc"),e=e(),_a(),e),Ple={class:"page-description"},Fle=L4(()=>ke("div",{class:"drop-border top"},null,-1)),Rle=L4(()=>ke("div",{class:"drop-border right"},null,-1)),Ole=L4(()=>ke("div",{class:"drop-border bottom"},null,-1)),$le=L4(()=>ke("div",{class:"drop-border left"},null,-1));function zle(e,t,n,i,a,o){const r=Y("v-breadcrumb"),s=Y("v-icon"),l=Y("v-button"),f=Y("search-input"),p=Y("add-folder"),h=Y("v-card-title"),v=Y("folder-picker"),_=Y("v-card-text"),y=Y("v-card-actions"),k=Y("v-card"),w=Y("v-dialog"),D=Y("files-navigation"),A=Y("v-info"),L=Y("router-view"),T=Y("drawer-batch"),z=Y("sidebar-detail"),B=Y("layout-sidebar-detail"),W=Y("export-sidebar-detail"),N=Y("private-view"),K=pi("tooltip"),re=pi("md");return G(),_e(Fr(e.layoutWrapper),{ref:"layoutRef",selection:e.selection,"onUpdate:selection":t[12]||(t[12]=se=>e.selection=se),"layout-options":e.layoutOptions,"onUpdate:layout-options":t[13]||(t[13]=se=>e.layoutOptions=se),"layout-query":e.layoutQuery,"onUpdate:layout-query":t[14]||(t[14]=se=>e.layoutQuery=se),filter:e.mergeFilters(e.filter,e.folderTypeFilter),"filter-user":e.filter,"filter-system":e.folderTypeFilter,search:e.search,collection:"directus_files","reset-preset":e.resetPreset},{default:R(({layoutState:se})=>[F(N,{title:e.title,class:wn({dragging:e.dragging})},La({"title-outer:prepend":R(()=>[F(l,{class:"header-icon",rounded:"",disabled:"",icon:"",secondary:""},{default:R(()=>[F(s,{name:"folder",outline:""})]),_:1})]),"actions:prepend":R(()=>[(G(),_e(Fr(`layout-actions-${e.layout}`),Ca(ja(se)),null,16))]),actions:R(()=>[F(f,{modelValue:e.search,"onUpdate:modelValue":t[0]||(t[0]=ce=>e.search=ce),filter:e.filter,"onUpdate:filter":t[1]||(t[1]=ce=>e.filter=ce),collection:"directus_files"},null,8,["modelValue","filter"]),F(p,{parent:e.folder,disabled:e.createFolderAllowed!==!0},null,8,["parent","disabled"]),e.selection.length>0?(G(),_e(w,{key:0,modelValue:e.moveToDialogActive,"onUpdate:modelValue":t[4]||(t[4]=ce=>e.moveToDialogActive=ce),onEsc:t[5]||(t[5]=ce=>e.moveToDialogActive=!1)},{activator:R(({on:ce})=>[dn((G(),_e(l,{rounded:"",icon:"",class:"folder",secondary:"",onClick:ce},{default:R(()=>[F(s,{name:"folder_move"})]),_:2},1032,["onClick"])),[[K,e.t("move_to_folder"),void 0,{bottom:!0}]])]),default:R(()=>[F(k,null,{default:R(()=>[F(h,null,{default:R(()=>[Ne(he(e.t("move_to_folder")),1)]),_:1}),F(_,null,{default:R(()=>[F(v,{modelValue:e.selectedFolder,"onUpdate:modelValue":t[2]||(t[2]=ce=>e.selectedFolder=ce)},null,8,["modelValue"])]),_:1}),F(y,null,{default:R(()=>[F(l,{secondary:"",onClick:t[3]||(t[3]=ce=>e.moveToDialogActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(l,{loading:e.moving,onClick:e.moveToFolder},{default:R(()=>[Ne(he(e.t("move")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])):Je("",!0),e.selection.length>0?(G(),_e(w,{key:1,modelValue:e.confirmDelete,"onUpdate:modelValue":t[7]||(t[7]=ce=>e.confirmDelete=ce),onEsc:t[8]||(t[8]=ce=>e.confirmDelete=!1)},{activator:R(({on:ce})=>[dn((G(),_e(l,{disabled:e.batchDeleteAllowed!==!0,rounded:"",icon:"",class:"action-delete",secondary:"",onClick:ce},{default:R(()=>[F(s,{name:"delete",outline:""})]),_:2},1032,["disabled","onClick"])),[[K,e.batchDeleteAllowed?e.t("delete_label"):e.t("not_allowed"),void 0,{bottom:!0}]])]),default:R(()=>[F(k,null,{default:R(()=>[F(h,null,{default:R(()=>[Ne(he(e.t("batch_delete_confirm",e.selection.length)),1)]),_:1}),F(y,null,{default:R(()=>[F(l,{secondary:"",onClick:t[6]||(t[6]=ce=>e.confirmDelete=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(l,{kind:"danger",loading:e.deleting,onClick:e.batchDelete},{default:R(()=>[Ne(he(e.t("delete_label")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])):Je("",!0),e.selection.length>0?dn((G(),_e(l,{key:2,rounded:"",icon:"",secondary:"",disabled:e.batchEditAllowed===!1,onClick:t[9]||(t[9]=ce=>e.batchEditActive=!0)},{default:R(()=>[F(s,{name:"edit",outline:""})]),_:1},8,["disabled"])),[[K,e.batchEditAllowed?e.t("edit"):e.t("not_allowed"),void 0,{bottom:!0}]]):Je("",!0),dn((G(),_e(l,{rounded:"",icon:"",to:e.folder?{path:`/files/folders/${e.folder}/+`}:{path:"/files/+"},disabled:e.createAllowed===!1},{default:R(()=>[F(s,{name:"add"})]),_:1},8,["to","disabled"])),[[K,e.createAllowed?e.t("create_item"):e.t("not_allowed"),void 0,{bottom:!0}]])]),navigation:R(()=>[F(D,{"current-folder":e.folder},null,8,["current-folder"])]),sidebar:R(()=>[F(z,{icon:"info_outline",title:e.t("information"),close:""},{default:R(()=>[dn(ke("div",Ple,null,512),[[re,e.t("page_help_files_collection")]])]),_:1},8,["title"]),F(B,{modelValue:e.layout,"onUpdate:modelValue":t[11]||(t[11]=ce=>e.layout=ce)},{default:R(()=>[(G(),_e(Fr(`layout-options-${e.layout}`),Ca(ja(se)),null,16))]),_:2},1032,["modelValue"]),(G(),_e(Fr(`layout-sidebar-${e.layout}`),Ca(ja(se)),null,16)),F(W,{collection:"directus_files","layout-query":e.layoutQuery,filter:e.mergeFilters(e.filter,e.folderTypeFilter),search:e.search,onRefresh:e.refresh},null,8,["layout-query","filter","search","onRefresh"])]),default:R(()=>[(G(),_e(Fr(`layout-${e.layout}`),Io({class:"layout"},se),{"no-results":R(()=>[!e.filter&&!e.search?(G(),_e(A,{key:0,title:e.t("file_count",0),icon:"folder",center:""},{append:R(()=>[F(l,{to:e.folder?{path:`/files/folders/${e.folder}/+`}:{path:"/files/+"}},{default:R(()=>[Ne(he(e.t("add_file")),1)]),_:1},8,["to"])]),default:R(()=>[Ne(he(e.t("no_files_copy"))+" ",1)]),_:1},8,["title"])):(G(),_e(A,{key:1,title:e.t("no_results"),icon:"search",center:""},{append:R(()=>[F(l,{onClick:e.clearFilters},{default:R(()=>[Ne(he(e.t("clear_filters")),1)]),_:1},8,["onClick"])]),default:R(()=>[Ne(he(e.t("no_results_copy"))+" ",1)]),_:1},8,["title"]))]),"no-items":R(()=>[F(A,{title:e.t("file_count",0),icon:"folder",center:""},{append:R(()=>[F(l,{to:e.folder?{path:`/files/folders/${e.folder}/+`}:{path:"/files/+"}},{default:R(()=>[Ne(he(e.t("add_file")),1)]),_:1},8,["to"])]),default:R(()=>[Ne(he(e.t("no_files_copy"))+" ",1)]),_:1},8,["title"])]),_:2},1040)),F(L,{name:"addNew",folder:e.folder,onUpload:e.refresh},null,8,["folder","onUpload"]),F(T,{active:e.batchEditActive,"onUpdate:active":t[10]||(t[10]=ce=>e.batchEditActive=ce),"primary-keys":e.selection,collection:"directus_files",onRefresh:e.refresh},null,8,["active","primary-keys","onRefresh"]),e.showDropEffect?(G(),Me(gn,{key:0},[Fle,Rle,Ole,$le],64)):Je("",!0)]),_:2},[e.breadcrumb?{name:"headline",fn:R(()=>[F(r,{items:e.breadcrumb},null,8,["items"])])}:void 0]),1032,["title","class"])]),_:1},40,["selection","layout-options","layout-query","filter","filter-user","filter-system","search","reset-preset"])}var j2=Ot(Lle,[["render",zle],["__scopeId","data-v-1cd3dfdc"]]);const sh=Pu({id:"settingsStore",state:()=>({settings:null}),actions:{async hydrate(){const e=Qr();if(!e.currentUser||"share"in e.currentUser)return;const t=await $n.get("/settings");this.settings=t.data.data},async dehydrate(){this.$reset()},async updateSettings(e){const t={...this.settings},n=lt.exports.merge({},this.settings,e);this.settings=n;try{const i=await $n.patch("/settings",e);this.settings=i.data.data,sl({title:mr.global.t("settings_update_success")})}catch(i){this.settings=t,Hi(i)}}}});/*!
|
|
26
|
+
`?1:0)),Te=Oe.substring(Ye);s.value=ot+" @"+Ce.id+Te}function W({searchQuery:Ce,caretPosition:Oe}){y=Oe,h.value=!0,D(Ce),k.value=0}function N(Ce){return Ce===null?"":`/assets/${Ce}?key=system-small-cover`}async function K(){if(!(s.value===null||s.value.length===0)){p.value=!0;try{n.existingComment?await $n.patch(`/activity/comment/${n.existingComment.id}`,{comment:s.value}):await $n.post("/activity/comment",{collection:n.collection,item:n.primaryKey,comment:s.value}),n.refresh(),s.value="",sl({title:n.existingComment?i("post_comment_updated"):i("post_comment_success")})}catch(Ce){Hi(Ce)}finally{p.value=!1}}}function re(){k.value>0&&k.value--}function se(){k.value<v.value.length-1&&k.value++}function ce(){B(v.value[k.value]),h.value=!1}return(Ce,Oe)=>{const Ve=Y("v-template-input"),Ye=Y("v-image"),ot=Y("v-icon"),Te=Y("v-avatar"),it=Y("v-list-item-icon"),Le=Y("v-list-item-content"),De=Y("v-list-item"),ht=Y("v-list"),At=Y("v-menu"),Tt=Y("v-button"),Vt=Y("v-emoji-picker");return G(),Me("div",{class:wn(["input-container",{collapsed:V(f)}])},[F(At,{modelValue:h.value,"onUpdate:modelValue":Oe[3]||(Oe[3]=on=>h.value=on),attached:""},{activator:R(()=>[F(Ve,{ref_key:"commentElement",ref:a,modelValue:s.value,"onUpdate:modelValue":Oe[0]||(Oe[0]=on=>s.value=on),"capture-group":"(@[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12})",multiline:"","trigger-character":"@",items:_.value,placeholder:V(i)("leave_comment"),onTrigger:W,onDeactivate:Oe[1]||(Oe[1]=on=>h.value=!1),onUp:re,onDown:se,onEnter:ce,onFocus:Oe[2]||(Oe[2]=on=>l.value=!0)},null,8,["modelValue","items","placeholder"])]),default:R(()=>[F(ht,null,{default:R(()=>[(G(!0),Me(gn,null,vi(v.value,(on,_t)=>(G(),_e(De,{id:"suggestions",key:on.id,clickable:"",active:_t===V(k),onClick:Ut=>B(on)},{default:R(()=>[F(it,null,{default:R(()=>[F(Te,{"x-small":""},{default:R(()=>[on.avatar?(G(),_e(Ye,{key:0,src:N(on.avatar)},null,8,["src"])):(G(),_e(ot,{key:1,name:"person_outline"}))]),_:2},1024)]),_:2},1024),F(Le,null,{default:R(()=>[Ne(he(V(Mc)(on)),1)]),_:2},1024)]),_:2},1032,["active","onClick"]))),128))]),_:1})]),_:1},8,["modelValue"]),ke("div",toe,[F(Tt,{"x-small":"",secondary:"",icon:"",class:"mention",onClick:T},{default:R(()=>[F(ot,{name:"alternate_email"})]),_:1}),F(Vt,{onClick:L,onEmojiSelected:Oe[4]||(Oe[4]=on=>z(on))}),noe,F(Tt,{class:"cancel","x-small":"",secondary:"",onClick:A},{default:R(()=>[Ne(he(V(i)("cancel")),1)]),_:1}),F(Tt,{disabled:!s.value||s.value.length===0||s.value.trim()==="",loading:p.value,class:"post-comment","x-small":"",onClick:K},{default:R(()=>[Ne(he(V(i)("submit")),1)]),_:1},8,["disabled","loading"])])],2)}}});var uA=Ot(ioe,[["__scopeId","data-v-18581a34"]]);const Tl=(e,t,n)=>K1(e,t,{...n,locale:hb()});const roe={class:"comment-header"},aoe={class:"name"},ooe={class:"header-right"},soe={class:"time"},loe=$t({name:"comment-item-header",props:{activity:null,refresh:null},emits:["edit"],setup(e){const t=e,{t:n}=yn(),i=Ee(()=>t.activity.timestamp?K1(new Date(t.activity.timestamp),String(n("date-fns_time_no_seconds"))):null),a=Ee(()=>{var f;return(f=t.activity.user)!=null&&f.avatar?`/assets/${t.activity.user.avatar.id}?key=system-small-cover`:null}),{confirmDelete:o,deleting:r,remove:s}=l();function l(){const f=ze(!1),p=ze(!1);return{confirmDelete:f,deleting:p,remove:h};async function h(){p.value=!0;try{await $n.delete(`/activity/comment/${t.activity.id}`),await t.refresh(),f.value=!1}catch(v){Hi(v)}finally{p.value=!1}}}return(f,p)=>{const h=Y("v-image"),v=Y("v-icon"),_=Y("v-avatar"),y=Y("user-popover"),k=Y("v-list-item-icon"),w=Y("v-list-item-content"),D=Y("v-list-item"),A=Y("v-list"),L=Y("v-menu"),T=Y("v-card-title"),z=Y("v-card-text"),B=Y("v-button"),W=Y("v-card-actions"),N=Y("v-card"),K=Y("v-dialog");return G(),Me("div",roe,[F(_,{"x-small":""},{default:R(()=>[V(a)?(G(),_e(h,{key:0,src:V(a),alt:V(Mc)(e.activity.user)},null,8,["src","alt"])):(G(),_e(v,{key:1,name:"person_outline"}))]),_:1}),ke("div",aoe,[e.activity.user&&e.activity.user.id?(G(),_e(y,{key:0,user:e.activity.user.id},{default:R(()=>[ke("span",null,[e.activity.user&&e.activity.user?(G(),Me(gn,{key:0},[Ne(he(V(Mc)(e.activity.user)),1)],64)):(G(),Me(gn,{key:1},[Ne(he(V(n)("private_user")),1)],64))])]),_:1},8,["user"])):Je("",!0)]),ke("div",ooe,[F(L,{"show-arrow":"",placement:"bottom-end"},{activator:R(({toggle:re,active:se})=>[F(v,{class:wn(["more",{active:se}]),name:"more_horiz",clickable:"",onClick:re},null,8,["class","onClick"]),ke("div",soe,he(V(i)),1)]),default:R(()=>[F(A,null,{default:R(()=>[F(D,{clickable:"",onClick:p[0]||(p[0]=re=>f.$emit("edit"))},{default:R(()=>[F(k,null,{default:R(()=>[F(v,{name:"edit"})]),_:1}),F(w,null,{default:R(()=>[Ne(he(V(n)("edit")),1)]),_:1})]),_:1}),F(D,{clickable:"",onClick:p[1]||(p[1]=re=>o.value=!0)},{default:R(()=>[F(k,null,{default:R(()=>[F(v,{name:"delete"})]),_:1}),F(w,null,{default:R(()=>[Ne(he(V(n)("delete_label")),1)]),_:1})]),_:1})]),_:1})]),_:1})]),F(K,{modelValue:V(o),"onUpdate:modelValue":p[3]||(p[3]=re=>zr(o)?o.value=re:null),onEsc:p[4]||(p[4]=re=>o.value=!1)},{default:R(()=>[F(N,null,{default:R(()=>[F(T,null,{default:R(()=>[Ne(he(V(n)("delete_comment")),1)]),_:1}),F(z,null,{default:R(()=>[Ne(he(V(n)("delete_are_you_sure")),1)]),_:1}),F(W,null,{default:R(()=>[F(B,{secondary:"",onClick:p[2]||(p[2]=re=>o.value=!1)},{default:R(()=>[Ne(he(V(n)("cancel")),1)]),_:1}),F(B,{kind:"danger",loading:V(r),onClick:V(s)},{default:R(()=>[Ne(he(V(n)("delete_label")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}});var coe=Ot(loe,[["__scopeId","data-v-076be903"]]);const uoe={class:"comment-item"},doe={key:1,class:"content selectable"},foe=$t({name:"comment-item",props:{activity:null,refresh:null,collection:null,primaryKey:null,userPreviews:{default:()=>({})}},setup(e){const t=e,{editing:n,cancelEditing:i}=a();function a(){const o=ze(t.activity.comment),r=ze(!1),s=ze(!1);return Zn(()=>t.activity,()=>o.value=t.activity.comment),{edits:o,editing:r,savingEdits:s,saveEdits:l,cancelEditing:f};async function l(){s.value=!0;try{await $n.patch(`/activity/comment/${t.activity.id}`,{comment:o.value}),t.refresh()}catch(p){Hi(p)}finally{s.value=!1,r.value=!1}}function f(){o.value=t.activity.comment,r.value=!1}}return(o,r)=>{const s=pi("md");return G(),Me("div",uoe,[F(coe,{refresh:e.refresh,activity:e.activity,onEdit:r[0]||(r[0]=l=>n.value=!0)},null,8,["refresh","activity"]),V(n)?(G(),_e(uA,{key:0,"existing-comment":e.activity,"primary-key":e.primaryKey,collection:e.collection,refresh:e.refresh,previews:e.userPreviews,onCancel:V(i)},null,8,["existing-comment","primary-key","collection","refresh","previews","onCancel"])):dn((G(),Me("div",doe,null,512)),[[s,{value:e.activity.display,target:"_blank"}]])])}}});var poe=Ot(foe,[["__scopeId","data-v-a4a35e98"]]);const hoe={key:1,class:"empty"},moe={class:"content"},voe=$t({name:"comments-sidebar-detail",props:{collection:null,primaryKey:null},setup(e){const t=e,{t:n}=yn(),{activity:i,loading:a,refresh:o,count:r,userPreviews:s}=l(t.collection,t.primaryKey);function l(p,h){const v=/\s@[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}/gm,_=ze(null),y=ze(0),k=ze(null),w=ze(!1),D=ze({});return A(),{activity:_,error:k,loading:w,refresh:L,count:y,userPreviews:D};async function A(){k.value=null,w.value=!0;try{const T=await $n.get("/activity",{params:{"filter[collection][_eq]":p,"filter[item][_eq]":h,"filter[action][_eq]":"comment",sort:"-id",fields:["id","action","timestamp","user.id","user.email","user.first_name","user.last_name","user.avatar.id","revisions.id","comment"]}});y.value=T.data.data.length,D.value=await f(T.data.data,v);const z=T.data.data.map(N=>{const K=N.comment.replace(v,re=>`<mark>${D.value[re.substring(2)]}</mark>`);return{...N,display:K}}),B=lt.exports.groupBy(z,N=>new Date(new Date(N.timestamp).toDateString())),W=[];for(const[N,K]of Object.entries(B)){const re=new Date(N),se=_E(re),ce=bE(re),de=yE(re);let ge;se?ge=n("today"):ce?ge=n("yesterday"):de?ge=Tl(re,String(n("date-fns_date_short_no_year"))):ge=Tl(re,String(n("date-fns_date_short"))),W.push({date:re,dateFormatted:String(ge),activity:K})}_.value=lt.exports.orderBy(W,["date"],["desc"])}catch(T){T.value=T}finally{w.value=!1}}async function L(){await A()}}async function f(p,h){let v=[];p.forEach(y=>{v.push(y.comment.match(h))});const _=[...new Set(lt.exports.flatten(v))].filter(y=>{if(y)return y});if(_.length>0){const y=await $n.get("/users",{params:{filter:{id:{_in:_.map(w=>w.substring(2))}},fields:["first_name","last_name","email","id"]}}),k={};return y.data.data.map(w=>{k[w.id]=Mc(w)}),k}return{}}return(p,h)=>{const v=Y("v-progress-linear"),_=Y("v-divider"),y=Y("sidebar-detail");return G(),_e(y,{title:V(n)("comments"),icon:"chat_bubble_outline",badge:V(r)||null},{default:R(()=>[F(uA,{refresh:V(o),collection:e.collection,"primary-key":e.primaryKey},null,8,["refresh","collection","primary-key"]),V(a)?(G(),_e(v,{key:0,indeterminate:""})):!V(i)||V(i).length===0?(G(),Me("div",hoe,[ke("div",moe,he(V(n)("no_comments")),1)])):(G(!0),Me(gn,{key:2},vi(V(i),k=>(G(),Me(gn,{key:k.date.toString()},[F(_,null,{default:R(()=>[Ne(he(k.dateFormatted),1)]),_:2},1024),(G(!0),Me(gn,null,vi(k.activity,w=>(G(),_e(poe,{key:w.id,refresh:V(o),activity:w,"user-previews":V(s),"primary-key":e.primaryKey,collection:e.collection},null,8,["refresh","activity","user-previews","primary-key","collection"]))),128))],64))),128))]),_:1},8,["title","badge"])}}});var Tb=Ot(voe,[["__scopeId","data-v-ade7dd8c"]]);const Db=(e,t,n)=>Cee(e,t,{...n,locale:hb()});function dA(e,t,n){const{t:i}=yn(),a=ze(null),o=ze(null),r=ze(!1),s=ze(0),l=ze(),f=ze(0);return Zn([e,t],()=>p(),{immediate:!0}),{created:l,revisions:a,revisionsByDate:o,loading:r,refresh:h,revisionsCount:s,pagesCount:f};async function p(y=0){var w,D,A,L;if(typeof V(t)=="undefined")return;r.value=!0;const k=100;try{const T={_and:[{collection:{_eq:V(e)}},{item:{_eq:V(t)}}]};n!=null&&n.action&&T._and.push({activity:{action:{_eq:n==null?void 0:n.action}}});const z=await $n.get("/revisions",{params:{filter:T,sort:"-id",limit:k,page:y,fields:["id","data","delta","collection","item","activity.action","activity.timestamp","activity.user.id","activity.user.email","activity.user.first_name","activity.user.last_name","activity.ip","activity.user_agent","activity.origin"],meta:["filter_count"]}}),B=await $n.get("/revisions",{params:{filter:{collection:{_eq:V(e)},item:{_eq:V(t)},activity:{action:{_eq:"create"}}},sort:"-id",limit:1,fields:["id","data","delta","collection","item","activity.action","activity.timestamp","activity.user.id","activity.user.email","activity.user.first_name","activity.user.last_name","activity.ip","activity.user_agent","activity.origin"],meta:["filter_count"]}});l.value=(w=B.data.data)==null?void 0:w[0];const W=lt.exports.groupBy(z.data.data.filter(K=>!!K.activity),K=>new Date(new Date(K.activity.timestamp).toDateString())),N=[];for(const[K,re]of Object.entries(W)){const se=new Date(K),ce=_E(se),de=bE(se),ge=yE(se);let Ce;ce?Ce=i("today"):de?Ce=i("yesterday"):ge?Ce=Tl(se,String(i("date-fns_date_short_no_year"))):Ce=Tl(se,String(i("date-fns_date_short")));const Oe=[];for(const Ve of re)Oe.push({...Ve,timestampFormatted:await _((D=Ve.activity)==null?void 0:D.timestamp),timeRelative:`${v((A=Ve.activity)==null?void 0:A.timestamp)} (${Db(gf((L=Ve.activity)==null?void 0:L.timestamp),new Date,{addSuffix:!0})})`});N.push({date:se,dateFormatted:String(Ce),revisions:Oe})}o.value=lt.exports.orderBy(N,["date"],["desc"]),a.value=lt.exports.orderBy(z.data.data,["activity.timestamp"],["desc"]),s.value=z.data.meta.filter_count,f.value=Math.ceil(s.value/k)}catch(T){Hi(T)}finally{r.value=!1}}async function h(y=0){await p(y)}function v(y){return K1(new Date(y),String(i("date-fns_time")))}async function _(y){const k=Tl(new Date(y),String(i("date-fns_date_short"))),w=Tl(new Date(y),String(i("date-fns_time")));return`${k} (${w})`}}const goe=$t({props:{revision:{type:Object,required:!0},last:{type:Boolean,default:!1}},emits:["click"],setup(e){const{t}=yn(),n=Ee(()=>Object.keys(e.revision.delta).length),i=Ee(()=>{switch(e.revision.activity.action.toLowerCase()){case"create":return t("revision_delta_created");case"update":return t("revision_delta_updated",n.value);case"delete":return t("revision_delta_deleted");case"revert":return t("revision_delta_reverted");default:return t("revision_delta_other")}}),a=Ee(()=>K1(new Date(e.revision.activity.timestamp),String(t("date-fns_time")))),o=Ee(()=>{var r,s;return((s=(r=e.revision)==null?void 0:r.activity)==null?void 0:s.user)&&typeof e.revision.activity.user=="object"?Mc(e.revision.activity.user):t("private_user")});return{t,headerMessage:i,time:a,user:o}}}),yoe={class:"header"},_oe={class:"content"},boe={class:"time"},woe=Ne(" \u2013 "),xoe={key:1};function koe(e,t,n,i,a,o){const r=Y("user-popover");return G(),Me("div",{class:wn(["revision-item",{last:e.last}]),onClick:t[0]||(t[0]=s=>e.$emit("click"))},[ke("div",yoe,[ke("span",{class:wn(["dot",e.revision.activity.action])},null,2),Ne(" "+he(e.headerMessage),1)]),ke("div",_oe,[ke("span",boe,he(e.time),1),woe,e.revision.activity.user?(G(),_e(r,{key:0,class:"user",user:e.revision.activity.user.id},{default:R(()=>[ke("span",null,he(e.user),1)]),_:1},8,["user"])):(G(),Me("span",xoe,he(e.t("private_user")),1))])],2)}var Soe=Ot(goe,[["render",koe],["__scopeId","data-v-5ea76508"]]);const Coe={class:"scroll-container"},Eoe=$t({name:"revisions-date-group",props:{group:null},emits:["click"],setup(e){const t=ze(!0);return(n,i)=>{const a=Y("v-detail");return G(),_e(a,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o),label:e.group.dateFormatted,class:"revisions-date-group"},{default:R(()=>[dn(ke("div",Coe,[(G(!0),Me(gn,null,vi(e.group.revisions,(o,r)=>(G(),_e(Soe,{key:o.id,revision:o,last:r===e.group.revisions.length-1,onClick:s=>n.$emit("click",o.id)},null,8,["revision","last","onClick"]))),128))],512),[[Ff,t.value]])]),_:1},8,["modelValue","label"])}}});const Aoe=$t({props:{revisions:{type:Array,required:!0},current:{type:Number,required:!0}},emits:["update:current"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"current",t),a=ze(null);Zn(()=>e.revisions,async()=>{const s=[];for(const l of e.revisions){const f=await r(l);let p=n("private_user");if(typeof l.activity.user=="object"){const _=l.activity.user;p=Mc(_)}const h=String(n("revision_delta_by",{date:f,user:p})),v=l.id;s.push({text:h,value:v})}a.value=s},{immediate:!0});const o=Ee(()=>{var s;return(s=a.value)==null?void 0:s.find(l=>l.value===i.value)});return{internalCurrent:i,options:a,selectedOption:o};async function r(s){const l=Tl(new Date(s.activity.timestamp),String(n("date-fns_date_short"))),f=Tl(new Date(s.activity.timestamp),String(n("date-fns_time")));return`${l} (${f})`}}}),Toe=["onClick"];function Doe(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-content"),l=Y("v-list-item"),f=Y("v-list"),p=Y("v-menu");return G(),_e(p,{"show-arrow":""},{activator:R(({toggle:h})=>[ke("span",{class:"picker",onClick:h},[Ne(he(e.selectedOption&&e.selectedOption.text)+" ",1),F(r,{name:"expand_more",small:""})],8,Toe)]),default:R(()=>[F(f,{class:"menu"},{default:R(()=>[(G(!0),Me(gn,null,vi(e.options,h=>(G(),_e(l,{key:h.value,clickable:"",active:e.internalCurrent===h.value,onClick:v=>e.internalCurrent=h.value},{default:R(()=>[F(r,{name:"commit_node"}),F(s,null,{default:R(()=>[Ne(he(h.text),1)]),_:2},1024)]),_:2},1032,["active","onClick"]))),128))]),_:1})]),_:1})}var Ioe=Ot(Aoe,[["render",Doe],["__scopeId","data-v-ae901cba"]]);const Moe=$t({props:{revision:{type:Object,required:!0}},setup(){const{t:e}=yn();return{t:e}}}),Loe=e=>(ya("data-v-3b33029f"),e=e(),_a(),e),Poe=Loe(()=>ke("br",null,null,-1));function Foe(e,t,n,i,a,o){const r=Y("v-notice"),s=Y("v-form");return G(),Me("div",null,[F(r,{type:"info"},{default:R(()=>[Ne(he(e.revision.activity.action==="create"?e.t("revision_post_create"):e.t("revision_post_update"))+" ",1),Poe,Ne(" "+he(e.t("no_relational_data")),1)]),_:1}),F(s,{disabled:"",collection:e.revision.collection,"primary-key":e.revision.item,"initial-values":e.revision.data},null,8,["collection","primary-key","initial-values"])])}var Roe=Ot(Moe,[["render",Foe],["__scopeId","data-v-3b33029f"]]);function oh(){}oh.prototype={diff:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.callback;typeof i=="function"&&(a=i,i={}),this.options=i;var o=this;function r(k){return a?(setTimeout(function(){a(void 0,k)},0),!0):k}t=this.castInput(t),n=this.castInput(n),t=this.removeEmpty(this.tokenize(t)),n=this.removeEmpty(this.tokenize(n));var s=n.length,l=t.length,f=1,p=s+l;i.maxEditLength&&(p=Math.min(p,i.maxEditLength));var h=[{newPos:-1,components:[]}],v=this.extractCommon(h[0],n,t,0);if(h[0].newPos+1>=s&&v+1>=l)return r([{value:this.join(n),count:n.length}]);function _(){for(var k=-1*f;k<=f;k+=2){var w=void 0,D=h[k-1],A=h[k+1],L=(A?A.newPos:0)-k;D&&(h[k-1]=void 0);var T=D&&D.newPos+1<s,z=A&&0<=L&&L<l;if(!T&&!z){h[k]=void 0;continue}if(!T||z&&D.newPos<A.newPos?(w=$oe(A),o.pushComponent(w.components,void 0,!0)):(w=D,w.newPos++,o.pushComponent(w.components,!0,void 0)),L=o.extractCommon(w,n,t,k),w.newPos+1>=s&&L+1>=l)return r(Ooe(o,w.components,n,t,o.useLongestToken));h[k]=w}f++}if(a)(function k(){setTimeout(function(){if(f>p)return a();_()||k()},0)})();else for(;f<=p;){var y=_();if(y)return y}},pushComponent:function(t,n,i){var a=t[t.length-1];a&&a.added===n&&a.removed===i?t[t.length-1]={count:a.count+1,added:n,removed:i}:t.push({count:1,added:n,removed:i})},extractCommon:function(t,n,i,a){for(var o=n.length,r=i.length,s=t.newPos,l=s-a,f=0;s+1<o&&l+1<r&&this.equals(n[s+1],i[l+1]);)s++,l++,f++;return f&&t.components.push({count:f}),t.newPos=s,l},equals:function(t,n){return this.options.comparator?this.options.comparator(t,n):t===n||this.options.ignoreCase&&t.toLowerCase()===n.toLowerCase()},removeEmpty:function(t){for(var n=[],i=0;i<t.length;i++)t[i]&&n.push(t[i]);return n},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function Ooe(e,t,n,i,a){for(var o=0,r=t.length,s=0,l=0;o<r;o++){var f=t[o];if(f.removed){if(f.value=e.join(i.slice(l,l+f.count)),l+=f.count,o&&t[o-1].added){var h=t[o-1];t[o-1]=t[o],t[o]=h}}else{if(!f.added&&a){var p=n.slice(s,s+f.count);p=p.map(function(_,y){var k=i[l+y];return k.length>_.length?k:_}),f.value=e.join(p)}else f.value=e.join(n.slice(s,s+f.count));s+=f.count,f.added||(l+=f.count)}}var v=t[r-1];return r>1&&typeof v.value=="string"&&(v.added||v.removed)&&e.equals("",v.value)&&(t[r-2].value+=v.value,t.pop()),t}function $oe(e){return{newPos:e.newPos,components:e.components.slice(0)}}var Jw=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Qw=/\S/,Ib=new oh;Ib.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Qw.test(e)&&!Qw.test(t)};Ib.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&Jw.test(t[n])&&Jw.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};function zoe(e,t,n){return Ib.diff(e,t,n)}var fA=new oh;fA.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var i=0;i<n.length;i++){var a=n[i];i%2&&!this.options.newlineIsToken?t[t.length-1]+=a:(this.options.ignoreWhitespace&&(a=a.trim()),t.push(a))}return t};var joe=new oh;joe.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Voe=new oh;Voe.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ky(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ky=function(t){return typeof t}:Ky=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ky(e)}var Noe=Object.prototype.toString,Mv=new oh;Mv.useLongestToken=!0;Mv.tokenize=fA.tokenize;Mv.castInput=function(e){var t=this.options,n=t.undefinedReplacement,i=t.stringifyReplacer,a=i===void 0?function(o,r){return typeof r=="undefined"?n:r}:i;return typeof e=="string"?e:JSON.stringify(D8(e,null,null,a),a," ")};Mv.equals=function(e,t){return oh.prototype.equals.call(Mv,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Boe(e,t,n){return Mv.diff(e,t,n)}function D8(e,t,n,i,a){t=t||[],n=n||[],i&&(e=i(a,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var r;if(Noe.call(e)==="[object Array]"){for(t.push(e),r=new Array(e.length),n.push(r),o=0;o<e.length;o+=1)r[o]=D8(e[o],t,n,i,a);return t.pop(),n.pop(),r}if(e&&e.toJSON&&(e=e.toJSON()),Ky(e)==="object"&&e!==null){t.push(e),r={},n.push(r);var s=[],l;for(l in e)e.hasOwnProperty(l)&&s.push(l);for(s.sort(),o=0;o<s.length;o+=1)l=s[o],r[l]=D8(e[l],t,n,i,l);t.pop(),n.pop()}else r=e;return r}var C3=new oh;C3.tokenize=function(e){return e.slice()};C3.join=C3.removeEmpty=function(e){return e};function Uoe(e,t,n){return C3.diff(e,t,n)}const Hoe=$t({props:{changes:{type:Array,required:!0},added:{type:Boolean,default:!1},deleted:{type:Boolean,default:!1},updated:{type:Boolean,default:!1}},setup(e){const{t}=yn(),n=Ee(()=>e.changes.filter(a=>e.updated?!0:e.added===!0?a.removed!==!0:a.added!==!0)),i=Ee(()=>e.changes.length===2);return{t,changesFiltered:n,wholeThing:i}}}),qoe={class:"delta"},Woe={key:2,class:"no-value"};function Goe(e,t,n,i,a,o){const r=Y("v-icon");return G(),Me("div",{class:wn(["change-line",{added:e.added,deleted:e.deleted,updated:e.updated,"no-highlight":e.wholeThing}])},[F(r,{name:e.added?"add":e.deleted?"remove":"warning"},null,8,["name"]),ke("div",qoe,[(G(!0),Me(gn,null,vi(e.changesFiltered,(s,l)=>(G(),Me("span",{key:l,class:wn({changed:s.added||s.removed})},[s.updated?(G(),Me(gn,{key:0},[Ne(he(e.t("revision_delta_update_message")),1)],64)):s.value?(G(),Me(gn,{key:1},[Ne(he(s.value),1)],64)):(G(),Me("span",Woe,he(e.t("no_value")),1))],2))),128))])],2)}var Yoe=Ot(Hoe,[["render",Goe],["__scopeId","data-v-3860d9f4"]]);const Xoe=$t({components:{RevisionsDrawerUpdatesChange:Yoe},props:{revision:{type:Object,required:!0},revisions:{type:Array,required:!0}},setup(e){const{t}=yn(),n=nr(),i=Ee(()=>{const o=e.revisions.findIndex(r=>r.id===e.revision.id);return e.revisions[o+1]}),a=Ee(()=>i.value?Object.keys(e.revision.delta).map(r=>{var _,y,k;const s=n.getField(e.revision.collection,r),l=s==null?void 0:s.name;if(!l)return null;const f=(_=e.revision.delta)==null?void 0:_[r],p=(y=i.value.data)==null?void 0:y[r];let h,v=!1;if(lt.exports.isEqual(f,p))if(((k=s==null?void 0:s.meta)==null?void 0:k.special)&&s.meta.special.includes("conceal"))v=!0,h=[{updated:!0,value:f}];else return null;else typeof p=="string"&&typeof f=="string"&&f.length>25?h=zoe(p,f):Array.isArray(p)&&Array.isArray(f)?h=Uoe(p,f):p&&f&&typeof f=="object"&&typeof f=="object"?h=Boe(p,f):h=[{removed:!0,value:p},{added:!0,value:f}];return{name:l,updated:v,changes:h}}).filter(r=>r):null);return{t,changes:a,previousRevision:i}}}),Koe=e=>(ya("data-v-d6ee9746"),e=e(),_a(),e),Zoe={class:"updates"},Joe=Koe(()=>ke("br",null,null,-1)),Qoe={class:"type-label"};function ese(e,t,n,i,a,o){const r=Y("v-notice"),s=Y("revisions-drawer-updates-change");return G(),Me("div",Zoe,[F(r,{type:"info"},{default:R(()=>[Ne(he(e.t("changes_made"))+" ",1),Joe,Ne(" "+he(e.t("no_relational_data")),1)]),_:1}),(G(!0),Me(gn,null,vi(e.changes,l=>(G(),Me("div",{key:l.name,class:"change"},[ke("div",Qoe,he(l.name),1),l.updated?(G(),_e(s,{key:0,updated:"",changes:l.changes},null,8,["changes"])):(G(),Me(gn,{key:1},[F(s,{deleted:"",changes:l.changes},null,8,["changes"]),F(s,{added:"",changes:l.changes},null,8,["changes"])],64))]))),128))])}var tse=Ot(Xoe,[["render",ese],["__scopeId","data-v-d6ee9746"]]);const nse=$t({components:{RevisionsDrawerPicker:Ioe,RevisionsDrawerPreview:Roe,RevisionsDrawerUpdates:tse},props:{revisions:{type:Array,required:!0},current:{type:[Number,String],default:null},active:{type:Boolean,default:!1}},emits:["revert","update:active","update:current"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"active",t),a=qr(e,"current",t),o=ze(["updates_made"]),r=Ee(()=>{var v;return((v=s.value)==null?void 0:v.activity.action)==="create"?n("item_creation"):n("item_revision")}),s=Ee(()=>e.revisions.find(v=>v.id===e.current)),l=Ee(()=>{const v=e.revisions.findIndex(_=>_.id===e.current);return e.revisions[v+1]}),f=Ee(()=>{var v;return((v=s.value)==null?void 0:v.activity.action)==="create"?[{text:n("creation_preview"),value:"revision_preview"}]:[{text:n("updates_made"),value:"updates_made"},{text:n("revision_preview"),value:"revision_preview"}]}),p=Ee(()=>{var v;return((v=s.value)==null?void 0:v.activity.action)!=="create"});return rR(()=>o.value=[f.value[0].value]),{t:n,internalActive:i,internalCurrent:a,title:r,currentRevision:s,currentTab:o,tabs:f,hasPastRevision:p,revert:h};function h(){var _,y;if(!s.value)return;const v={};for(const[k,w]of Object.entries(s.value.delta)){const D=(y=(_=l.value)==null?void 0:_.data[k])!=null?y:null;lt.exports.isEqual(w,D)||(v[k]=D)}t("revert",v),i.value=!1}}}),ise={class:"content"};function rse(e,t,n,i,a,o){const r=Y("revisions-drawer-picker"),s=Y("v-tab"),l=Y("v-tabs"),f=Y("revisions-drawer-updates"),p=Y("revisions-drawer-preview"),h=Y("v-icon"),v=Y("v-button"),_=Y("v-drawer"),y=pi("tooltip");return G(),Me("div",null,[F(_,{modelValue:e.internalActive,"onUpdate:modelValue":t[3]||(t[3]=k=>e.internalActive=k),title:e.title,icon:"change_history","sidebar-label":e.t(e.currentTab[0]),onCancel:t[4]||(t[4]=k=>e.internalActive=!1)},{subtitle:R(()=>[F(r,{current:e.internalCurrent,"onUpdate:current":t[0]||(t[0]=k=>e.internalCurrent=k),revisions:e.revisions},null,8,["current","revisions"])]),sidebar:R(()=>[F(l,{modelValue:e.currentTab,"onUpdate:modelValue":t[1]||(t[1]=k=>e.currentTab=k),vertical:""},{default:R(()=>[(G(!0),Me(gn,null,vi(e.tabs,k=>(G(),_e(s,{key:k.value,value:k.value},{default:R(()=>[Ne(he(k.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),actions:R(()=>[e.hasPastRevision?dn((G(),_e(v,{key:0,secondary:"",icon:"",rounded:"",onClick:e.revert},{default:R(()=>[F(h,{name:"restore"})]),_:1},8,["onClick"])),[[y,e.t("revert"),void 0,{bottom:!0}]]):Je("",!0),dn((G(),_e(v,{icon:"",rounded:"",onClick:t[2]||(t[2]=k=>e.internalActive=!1)},{default:R(()=>[F(h,{name:"check"})]),_:1})),[[y,e.t("done"),void 0,{bottom:!0}]])]),default:R(()=>[ke("div",ise,[e.currentTab[0]==="updates_made"?(G(),_e(f,{key:0,revision:e.currentRevision,revisions:e.revisions},null,8,["revision","revisions"])):Je("",!0),e.currentTab[0]==="revision_preview"?(G(),_e(p,{key:1,revision:e.currentRevision},null,8,["revision"])):Je("",!0)])]),_:1},8,["modelValue","title","sidebar-label"])])}var ase=Ot(nse,[["render",rse],["__scopeId","data-v-9165a912"]]);const ose={key:1,class:"empty"},sse={class:"content"},lse={class:"external"},cse=$t({name:"revisions-drawer-detail",props:{collection:null,primaryKey:null},emits:["revert"],setup(e,{expose:t}){const n=e,{t:i}=yn(),{collection:a,primaryKey:o}=wr(n),{revisions:r,revisionsByDate:s,loading:l,refresh:f,revisionsCount:p,pagesCount:h,created:v}=dA(a,o),_=ze(!1),y=ze(null),k=ze(1);Zn(()=>k.value,D=>{f(D)});function w(D){y.value=D,_.value=!0}return t({refresh:f}),(D,A)=>{const L=Y("v-progress-linear"),T=Y("v-divider"),z=Y("v-pagination"),B=Y("sidebar-detail");return G(),_e(B,{title:V(i)("revisions"),icon:"change_history",badge:!V(l)&&V(p)>0?V(y3)(V(p)):null},{default:R(()=>[V(l)?(G(),_e(L,{key:0,indeterminate:""})):V(p)===0?(G(),Me("div",ose,[ke("div",sse,he(V(i)("no_revisions")),1)])):(G(),Me(gn,{key:2},[(G(!0),Me(gn,null,vi(V(s),W=>(G(),_e(Eoe,{key:W.date.toString(),group:W,onClick:w},null,8,["group"]))),128)),k.value==V(h)&&!V(v)?(G(),Me(gn,{key:0},[V(s).length>0?(G(),_e(T,{key:0})):Je("",!0),ke("div",lse,he(V(i)("revision_delta_created_externally")),1)],64)):Je("",!0),V(h)>1?(G(),_e(z,{key:1,modelValue:k.value,"onUpdate:modelValue":A[0]||(A[0]=W=>k.value=W),length:V(h),"total-visible":2},null,8,["modelValue","length"])):Je("",!0)],64)),V(r)?(G(),_e(ase,{key:3,current:y.value,"onUpdate:current":A[1]||(A[1]=W=>y.value=W),active:_.value,"onUpdate:active":A[2]||(A[2]=W=>_.value=W),revisions:V(r),onRevert:A[3]||(A[3]=W=>D.$emit("revert",W))},null,8,["current","active","revisions"])):Je("",!0)]),_:1},8,["title","badge"])}}});var ig=Ot(cse,[["__scopeId","data-v-41ebe19a"]]);function pA(e){return navigator.platform.toLowerCase().startsWith("mac")||navigator.platform.startsWith("iP")?e.map(n=>n==="meta"?"\u2318":n==="option"?"\u2325":n==="shift"?"\u21E7":n==="alt"?"\u2325":lt.exports.capitalize(n)).join(""):e.map(n=>n==="meta"?"Ctrl":lt.exports.capitalize(n)).join("+")}const use=$t({props:{disabledOptions:{type:Array,default:()=>[]}},emits:["save-and-stay","save-and-add-new","save-as-copy","discard-and-stay"],setup(){const{t:e}=yn();return{t:e,translateShortcut:pA}}});function dse(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-icon"),l=Y("v-list-item-content"),f=Y("v-list-item-hint"),p=Y("v-list-item"),h=Y("v-list"),v=Y("v-menu");return G(),_e(v,{"show-arrow":""},{activator:R(({toggle:_})=>[F(r,{name:"more_vert",clickable:"",onClick:_},null,8,["onClick"])]),default:R(()=>[F(h,null,{default:R(()=>[e.disabledOptions.includes("save-and-stay")?Je("",!0):(G(),_e(p,{key:0,clickable:"",onClick:t[0]||(t[0]=_=>e.$emit("save-and-stay"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"check"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("save_and_stay")),1)]),_:1}),F(f,null,{default:R(()=>[Ne(he(e.translateShortcut(["meta","s"])),1)]),_:1})]),_:1})),e.disabledOptions.includes("save-and-add-new")?Je("",!0):(G(),_e(p,{key:1,clickable:"",onClick:t[1]||(t[1]=_=>e.$emit("save-and-add-new"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"add"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("save_and_create_new")),1)]),_:1}),F(f,null,{default:R(()=>[Ne(he(e.translateShortcut(["meta","shift","s"])),1)]),_:1})]),_:1})),e.disabledOptions.includes("save-as-copy")?Je("",!0):(G(),_e(p,{key:2,clickable:"",onClick:t[2]||(t[2]=_=>e.$emit("save-as-copy"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"done_all"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("save_as_copy")),1)]),_:1})]),_:1})),e.disabledOptions.includes("discard-and-stay")?Je("",!0):(G(),_e(p,{key:3,clickable:"",onClick:t[3]||(t[3]=_=>e.$emit("discard-and-stay"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"undo"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("discard_all_changes")),1)]),_:1})]),_:1}))]),_:1})]),_:1})}var M4=Ot(use,[["render",dse],["__scopeId","data-v-58888885"]]);const fse={key:1,class:"video"},pse=["src"],hse=["src"],mse={key:3,class:"fallback"},vse=$t({name:"file-preview",props:{mime:null,width:{default:void 0},height:{default:void 0},src:null,title:null,inModal:{type:Boolean,default:!1}},emits:["click"],setup(e){const t=e;c4(l=>({"4cb14cfe":V(o)}));const n=ze(!1),i=Ee(()=>{var l;return t.mime===null?"unknown":t.mime.startsWith("image")?"image":t.mime.startsWith("video")?"video":t.mime.startsWith("audio")?"audio":(l=Q1(t.mime,!0))!=null?l:"unknown"}),a=Ee(()=>t.mime.includes("svg")),o=Ee(()=>{var l;return Math.min((l=t.height)!=null?l:528,528)+"px"}),r=Ee(()=>t.height<528),s=Ee(()=>p1(As()+t.src));return(l,f)=>{const p=Y("v-image"),h=Y("v-icon-file");return V(i)&&!n.value?(G(),Me("div",{key:0,class:wn(["file-preview",{modal:e.inModal,small:V(r),svg:V(a)}])},[V(i)==="image"?(G(),Me("div",{key:0,class:"image",onClick:f[1]||(f[1]=v=>l.$emit("click"))},[F(p,{src:e.src,width:e.width,height:e.height,alt:e.title,onError:f[0]||(f[0]=v=>n.value=!0)},null,8,["src","width","height","alt"])])):V(i)==="video"?(G(),Me("div",fse,[ke("video",{controls:"",src:V(s)},null,8,pse)])):V(i)==="audio"?(G(),Me("audio",{key:2,controls:"",src:V(s)},null,8,hse)):(G(),Me("div",mse,[F(h,{ext:V(i)},null,8,["ext"])]))],2)):Je("",!0)}}});var Mb=Ot(vse,[["__scopeId","data-v-c9ff2bf4"]]);const gse={key:1,class:"type-title"},yse={class:"drawer-item-content"},_se=$t({name:"drawer-item",props:{collection:null,active:{type:Boolean,default:void 0},primaryKey:{default:null},edits:{default:void 0},junctionField:{default:null},disabled:{type:Boolean,default:!1},relatedPrimaryKey:{default:"+"},circularField:{default:null},junctionFieldLocation:{default:"bottom"}},emits:["update:active","input"],setup(e,{emit:t}){const n=e,{t:i,te:a}=yn(),o=ze([]),r=nr(),s=Qo(),{internalActive:l}=Te(),{junctionFieldInfo:f,relatedCollection:p,relatedCollectionInfo:h,setRelationEdits:v,relatedPrimaryKeyField:_}=Le(),{internalEdits:y,loading:k,initialValues:w}=it(),{save:D,cancel:A}=De(),{collection:L}=wr(n),{info:T,primaryKeyField:z}=Ns(L),B=Ee(()=>n.primaryKey==="+"&&n.relatedPrimaryKey==="+"),W=Ee(()=>n.junctionFieldLocation==="top"),N=Ee(()=>{const ht=(h==null?void 0:h.value)||T.value;return a(`collection_names_singular.${ht.collection}`)?B.value?i("creating_unit",{unit:i(`collection_names_singular.${ht.collection}`)}):i("editing_unit",{unit:i(`collection_names_singular.${ht.collection}`)}):B.value?i("creating_in",{collection:ht.name}):i("editing_in",{collection:ht.name})}),{fields:K}=Dv(p,Ee(()=>w.value&&w.value[n.junctionField]),Ee(()=>n.primaryKey==="+")),{fields:re}=Dv(L,w,Ee(()=>n.primaryKey==="+")),se=Ee(()=>n.circularField?re.value.map(ht=>(ht.field===n.circularField&<.exports.set(ht,"meta.readonly",!0),ht)):re.value),ce=Ee(()=>n.circularField?se.value.filter(ht=>ht.field!==n.circularField):se.value),de=Ee(()=>f.value?String(n.relatedPrimaryKey):String(n.primaryKey)),ge=Ee(()=>h.value||T.value),{templateData:Ce,loading:Oe}=KE(ge,de),Ve=Ee(()=>{var ht,At,Tt,Vt;return((At=(ht=h.value)==null?void 0:ht.meta)==null?void 0:At.display_template)||((Vt=(Tt=T.value)==null?void 0:Tt.meta)==null?void 0:Vt.display_template)||null}),{file:Ye}=ot();function ot(){const ht=Ee(()=>p.value==="directus_files");return{file:Ee(()=>{var on;if(ht.value===!1||!w.value||!n.junctionField)return null;const Tt=(on=w.value)==null?void 0:on[n.junctionField];if(!Tt)return null;const Vt=`assets/${Tt.id}?key=system-large-contain`;return{...Tt,src:Vt}}),isDirectusFiles:ht}}function Te(){const ht=ze(!1);return{internalActive:Ee({get(){var Tt;return(Tt=n.active)!=null?Tt:ht.value},set(Tt){ht.value=Tt,t("update:active",Tt)}})}}function it(){const ht=ze({}),At=ze(!1),Tt=ze(null);return Zn(()=>n.active,_t=>{var Ut;_t?(n.primaryKey!=="+"&&Vt(),n.relatedPrimaryKey!=="+"&&on(),ht.value=(Ut=n.edits)!=null?Ut:{}):(At.value=!1,Tt.value=null,ht.value={})},{immediate:!0}),{internalEdits:ht,loading:At,initialValues:Tt,fetchItem:Vt};async function Vt(){if(At.value=!0,!n.primaryKey)return;const _t=n.collection.startsWith("directus_")?`/${n.collection.substring(9)}/${n.primaryKey}`:`/items/${n.collection}/${encodeURIComponent(n.primaryKey)}`;let Ut="*";n.junctionField&&(Ut=`*,${n.junctionField}.*`);try{const Nt=await $n.get(_t,{params:{fields:Ut}});Tt.value=Nt.data.data}catch(Nt){Hi(Nt)}finally{At.value=!1}}async function on(){At.value=!0;const _t=p.value;if(!_t||!f.value)return;const Ut=_t.startsWith("directus_")?`/${_t.substring(9)}/${n.relatedPrimaryKey}`:`/items/${_t}/${encodeURIComponent(n.relatedPrimaryKey)}`;try{const Nt=await $n.get(Ut);Tt.value={...Tt.value||{},[f.value.field]:Nt.data.data}}catch(Nt){Hi(Nt)}finally{At.value=!1}}}function Le(){const ht=Ee(()=>n.junctionField?r.getField(n.collection,n.junctionField):null),At=Ee(()=>{var Nt,Qt;if(!n.junctionField)return null;const Ut=s.getRelationsForField(n.collection,n.junctionField).find(Jt=>Jt.collection===n.collection&&Jt.field===n.junctionField);return Ut?Ut.related_collection?Ut.related_collection:(Nt=Ut.meta)!=null&&Nt.one_collection_field?n.edits[Ut.meta.one_collection_field]||((Qt=w.value)==null?void 0:Qt[Ut.meta.one_collection_field]):null:null}),{info:Tt,primaryKeyField:Vt}=Ns(At);return{junctionFieldInfo:ht,relatedCollection:At,relatedCollectionInfo:Tt,setRelationEdits:on,relatedPrimaryKeyField:Vt};function on(_t){!n.junctionField||(y.value[n.junctionField]=_t)}}function De(){return{save:ht,cancel:At};function ht(){const Tt=n.junctionField?y.value[n.junctionField]:y.value,Vt=n.junctionField?K.value:ce.value,on=bb(Vt);let _t=E8(lt.exports.merge({},on.value,w.value,Tt),Vt,B.value);if(_t.length>0){o.value=_t;return}n.junctionField&&n.relatedPrimaryKey!=="+"&&_.value&<.exports.set(y.value,[n.junctionField,_.value.field],n.relatedPrimaryKey),n.primaryKey&&n.primaryKey!=="+"&&z.value&&(y.value[z.value.field]=n.primaryKey),t("input",y.value),l.value=!1,y.value={}}function At(){o.value=[],l.value=!1,y.value={}}}return(ht,At)=>{const Tt=Y("v-skeleton-loader"),Vt=Y("render-template"),on=Y("v-breadcrumb"),_t=Y("v-icon"),Ut=Y("v-button"),Nt=Y("v-form"),Qt=Y("v-drawer"),Jt=pi("tooltip");return G(),_e(Qt,{modelValue:V(l),"onUpdate:modelValue":At[1]||(At[1]=qt=>zr(l)?l.value=qt:null),title:V(N),persistent:"",onCancel:V(A)},La({subtitle:R(()=>{var qt;return[F(on,{items:[{name:(qt=V(T))==null?void 0:qt.name,disabled:!0}]},null,8,["items"])]}),actions:R(()=>[di(ht.$slots,"actions",{},void 0,!0),dn((G(),_e(Ut,{icon:"",rounded:"",onClick:V(D)},{default:R(()=>[F(_t,{name:"check"})]),_:1},8,["onClick"])),[[Jt,V(i)("save"),void 0,{bottom:!0}]])]),default:R(()=>{var qt,Dt;return[ke("div",yse,[e.junctionField&&V(Ye)?(G(),_e(Mb,{key:0,src:V(Ye).src,mime:V(Ye).type,width:V(Ye).width,height:V(Ye).height,title:V(Ye).title,"in-modal":!0},null,8,["src","mime","width","height","title"])):Je("",!0),ke("div",{class:wn(["drawer-item-order",{swap:V(W)}])},[e.junctionField?(G(),_e(Nt,{key:0,disabled:e.disabled,loading:V(k),"initial-values":(qt=V(w))==null?void 0:qt[e.junctionField],"primary-key":e.relatedPrimaryKey,"model-value":(Dt=V(y))==null?void 0:Dt[e.junctionField],fields:V(K),"validation-errors":e.junctionField?o.value:void 0,autofocus:"","show-divider":!V(W),"onUpdate:modelValue":V(v)},null,8,["disabled","loading","initial-values","primary-key","model-value","fields","validation-errors","show-divider","onUpdate:modelValue"])):Je("",!0),F(Nt,{modelValue:V(y),"onUpdate:modelValue":At[0]||(At[0]=nt=>zr(y)?y.value=nt:null),disabled:e.disabled,loading:V(k),"initial-values":V(w),"show-divider":V(W),"primary-key":e.primaryKey,fields:V(se),"validation-errors":e.junctionField?void 0:o.value},null,8,["modelValue","disabled","loading","initial-values","show-divider","primary-key","fields","validation-errors"])],2)])]}),_:2},[V(Ve)!==null&&V(Ce)&&e.primaryKey!=="+"?{name:"title",fn:R(()=>{var qt;return[V(k)||V(Oe)?(G(),_e(Tt,{key:0,class:"title-loader",type:"text"})):(G(),Me("h1",gse,[F(Vt,{collection:(qt=V(ge))==null?void 0:qt.collection,item:V(Ce),template:V(Ve)},null,8,["collection","item","template"])]))]})}:void 0]),1032,["modelValue","title","onCancel"])}}});var Nf=Ot(_se,[["__scopeId","data-v-3eb07074"]]);function um(){const{t:e}=yn(),t=Ee(()=>{var o;return!!((o=navigator==null?void 0:navigator.clipboard)!=null&&o.writeText)}),n=Ee(()=>{var o;return!!((o=navigator==null?void 0:navigator.clipboard)!=null&&o.readText)});return{isCopySupported:t,isPasteSupported:n,copyToClipboard:i,pasteFromClipboard:a};async function i(o,r){var s,l,f;try{return await((s=navigator==null?void 0:navigator.clipboard)==null?void 0:s.writeText(o)),sl({title:(l=r==null?void 0:r.success)!=null?l:e("copy_raw_value_success")}),!0}catch{return sl({type:"error",title:(f=r==null?void 0:r.fail)!=null?f:e("copy_raw_value_fail")}),!1}}async function a(o){var r,s,l;try{const f=await((r=navigator==null?void 0:navigator.clipboard)==null?void 0:r.readText());return sl({title:(s=o==null?void 0:o.success)!=null?s:e("paste_raw_value_success")}),f}catch{return sl({type:"error",title:(l=o==null?void 0:o.fail)!=null?l:e("paste_raw_value_fail")}),null}}}const bse=$t({props:{share:{type:Object,required:!0}},emits:["copy","edit","invite","delete"],setup(e){const{t,d:n}=yn(),i=Ee(()=>Rp("directus_shares","update",e.share)),a=Ee(()=>Rp("directus_shares","delete",e.share)),o=Ee(()=>e.share.max_uses===null?null:e.share.max_uses-e.share.times_used),r=Ee(()=>e.share.date_end&&new Date(e.share.date_end)<new Date?"expired":e.share.date_start&&new Date(e.share.date_start)>new Date?"upcoming":null),s=Ee(()=>K1(new Date(e.share.date_created),String(t("date-fns_date_short")))),l=ze(null);return{editAllowed:i,deleteAllowed:a,usesLeft:o,status:r,t,d:n,formattedTime:s,confirmDelete:l}}}),wse=e=>(ya("data-v-3ab171d8"),e=e(),_a(),e),xse={class:"item"},kse={class:"item-header"},Sse={class:"type-label"},Cse={class:"header-right"},Ese={class:"date"},Ase={class:"item-info"},Tse=wse(()=>ke("span",{style:{"flex-grow":"1"}},null,-1));function Dse(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-icon"),l=Y("v-list-item-content"),f=Y("v-list-item"),p=Y("v-divider"),h=Y("v-list"),v=Y("v-menu");return G(),Me("div",xse,[ke("div",kse,[ke("span",Sse,he(e.share.name),1),ke("div",Cse,[F(v,{"show-arrow":"",placement:"bottom-end"},{activator:R(({toggle:_,active:y})=>[F(r,{class:wn(["more",{active:y}]),name:"more_horiz",clickable:"",onClick:_},null,8,["class","onClick"]),ke("div",Ese,he(e.formattedTime),1)]),default:R(()=>[F(h,null,{default:R(()=>[F(f,{clickable:"",onClick:t[0]||(t[0]=_=>e.$emit("copy"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"copy"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("share_copy_link")),1)]),_:1})]),_:1}),F(f,{clickable:"",onClick:t[1]||(t[1]=_=>e.$emit("invite"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"send"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("share_send_link")),1)]),_:1})]),_:1}),e.deleteAllowed&&e.editAllowed?(G(),_e(p,{key:0})):Je("",!0),e.editAllowed?(G(),_e(f,{key:1,clickable:"",onClick:t[2]||(t[2]=_=>e.$emit("edit"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"edit"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("edit")),1)]),_:1})]),_:1})):Je("",!0),e.deleteAllowed?(G(),_e(f,{key:2,clickable:"",class:"danger",onClick:t[3]||(t[3]=_=>e.$emit("delete"))},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"delete"})]),_:1}),F(l,null,{default:R(()=>[Ne(he(e.t("delete_label")),1)]),_:1})]),_:1})):Je("",!0)]),_:1})]),_:1})])]),ke("div",Ase,[ke("span",{class:wn(["share-uses",{"no-left":e.usesLeft===0}])},[e.usesLeft===null?(G(),Me(gn,{key:0},[Ne(he(e.t("unlimited_usage")),1)],64)):(G(),Me(gn,{key:1},[Ne(he(e.t("uses_left",e.usesLeft)),1)],64))],2),e.share.password?(G(),_e(r,{key:0,small:"",name:"lock"})):Je("",!0),Tse,e.status?(G(),Me("span",{key:1,class:wn(["share-status",{[e.status]:!0}])},he(e.t(e.status)),3)):Je("",!0)])])}var Ise=Ot(bse,[["render",Dse],["__scopeId","data-v-3ab171d8"]]);const Mse=$t({components:{ShareItem:Ise,DrawerItem:Nf},props:{collection:{type:String,required:!0},primaryKey:{type:[String,Number],required:!0},allowed:{type:Boolean,required:!0}},setup(e){const{t}=yn(),{copyToClipboard:n}=um(),i=ze(null),a=ze(0),o=ze(null),r=ze(!1),s=ze(!1),l=ze(null),f=ze(null),p=ze(null),h=ze(!1),v=ze(""),_=Ee(()=>f.value?window.location.origin+As()+"admin/shared/"+f.value.id:null);return A(),{shareToDelete:p,t,shares:i,loading:r,error:o,refresh:A,count:a,select:w,unselect:D,shareToEdit:l,input:y,copy:k,shareToSend:f,remove:L,deleting:s,sendPublicLink:_,send:T,sending:h,sendEmails:v};async function y(z){if(!!z){z.collection=e.collection,z.item=e.primaryKey;try{l.value==="+"?await $n.post("/shares",z):await $n.patch(`/shares/${l.value}`,z),await A(),l.value=null}catch(B){Hi(B)}}}async function k(z){const B=window.location.origin+As()+"admin/shared/"+z;await n(B,{success:t("share_copy_link_success"),fail:t("share_copy_link_error")})}function w(z){l.value=z}function D(){l.value=null}async function A(){o.value=null,r.value=!0;try{const z=await $n.get("/shares",{params:{filter:{_and:[{collection:{_eq:e.collection}},{item:{_eq:e.primaryKey}}]},sort:"name"}});a.value=z.data.data.length,i.value=z.data.data}catch(z){z.value=z}finally{r.value=!1}}async function L(){if(!!p.value){s.value=!0;try{await $n.delete(`/shares/${p.value.id}`),await A(),p.value=null}catch(z){Hi(z)}finally{s.value=!1}}}async function T(){if(!!f.value){h.value=!0;try{const z=v.value.split(/,|\n/).filter(B=>B).map(B=>B.trim());await $n.post("/shares/invite",{emails:z,share:f.value.id}),v.value="",f.value=null}catch(z){Hi(z)}finally{h.value=!1}}}}}),Lse={key:2,class:"empty"},Pse={class:"content"},Fse={class:"grid"},Rse={class:"field"},Ose={class:"field"},$se={class:"type-label"};function zse(e,t,n,i,a,o){const r=Y("v-notice"),s=Y("v-progress-linear"),l=Y("share-item"),f=Y("drawer-item"),p=Y("v-card-title"),h=Y("v-card-text"),v=Y("v-button"),_=Y("v-card-actions"),y=Y("v-card"),k=Y("v-dialog"),w=Y("v-input"),D=Y("v-textarea"),A=Y("sidebar-detail");return G(),_e(A,{title:e.t("shares"),icon:"share",badge:e.count},{default:R(()=>[e.error?(G(),_e(r,{key:0,type:"danger"},{default:R(()=>[Ne(he(e.t("unexpected_error")),1)]),_:1})):e.loading?(G(),_e(s,{key:1,indeterminate:""})):!e.shares||e.shares.length===0?(G(),Me("div",Lse,[ke("div",Pse,he(e.t("no_shares")),1)])):Je("",!0),(G(!0),Me(gn,null,vi(e.shares,L=>(G(),_e(l,{key:L.id,share:L,onCopy:T=>e.copy(L.id),onEdit:T=>e.select(L.id),onDelete:T=>e.shareToDelete=L,onInvite:T=>e.shareToSend=L},null,8,["share","onCopy","onEdit","onDelete","onInvite"]))),128)),F(f,{collection:"directus_shares","primary-key":e.shareToEdit,active:!!e.shareToEdit,onCancel:e.unselect,onInput:e.input},null,8,["primary-key","active","onCancel","onInput"]),F(k,{"model-value":!!e.shareToDelete,"onUpdate:modelValue":t[1]||(t[1]=L=>e.shareToDelete=null),onEsc:t[2]||(t[2]=L=>e.shareToDelete=null)},{default:R(()=>[F(y,null,{default:R(()=>[F(p,null,{default:R(()=>[Ne(he(e.t("delete_share")),1)]),_:1}),F(h,null,{default:R(()=>[Ne(he(e.t("delete_are_you_sure")),1)]),_:1}),F(_,null,{default:R(()=>[F(v,{secondary:"",onClick:t[0]||(t[0]=L=>e.shareToDelete=null)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(v,{kind:"danger",loading:e.deleting,onClick:e.remove},{default:R(()=>[Ne(he(e.t("delete_label")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["model-value"]),F(k,{"model-value":!!e.shareToSend,"onUpdate:modelValue":t[5]||(t[5]=L=>e.shareToSend=null),onEsc:t[6]||(t[6]=L=>e.shareToSend=null)},{default:R(()=>[F(y,null,{default:R(()=>[F(p,null,{default:R(()=>[Ne(he(e.t("share_send_link")),1)]),_:1}),F(h,null,{default:R(()=>[ke("div",Fse,[ke("div",Rse,[F(w,{disabled:"","model-value":e.sendPublicLink},null,8,["model-value"])]),ke("div",Ose,[ke("div",$se,he(e.t("emails")),1),F(D,{modelValue:e.sendEmails,"onUpdate:modelValue":t[3]||(t[3]=L=>e.sendEmails=L),nullable:!1,placeholder:"admin@example.com, user@example.com..."},null,8,["modelValue"])])])]),_:1}),F(_,null,{default:R(()=>[F(v,{secondary:"",onClick:t[4]||(t[4]=L=>e.shareToSend=null)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(v,{loading:e.sending,onClick:e.send},{default:R(()=>[Ne(he(e.t("share_send_link")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["model-value"]),e.allowed?(G(),_e(v,{key:3,"full-width":"",onClick:t[7]||(t[7]=L=>e.select("+"))},{default:R(()=>[Ne(he(e.t("new_share")),1)]),_:1})):Je("",!0)]),_:1},8,["title","badge"])}var jse=Ot(Mse,[["render",zse],["__scopeId","data-v-101fc574"]]);const Vse={class:"type-title"},Nse={class:"page-description"},Bse=$t({name:"item",props:{collection:null,primaryKey:{default:null},singleton:{type:Boolean,default:!1}},setup(e){const t=e,{t:n,te:i}=yn(),a=qa(),o=ze(),{collection:r,primaryKey:s}=wr(t),{breadcrumb:l}=Dt(),f=ze(null),{info:p,defaults:h,primaryKeyField:v,isSingleton:_,accountabilityScope:y}=Ns(r),{isNew:k,edits:w,hasEdits:D,item:A,saving:L,loading:T,error:z,save:B,remove:W,deleting:N,archive:K,archiving:re,isArchived:se,saveAsCopy:ce,refresh:de,validationErrors:ge}=lm(r,s),{templateData:Ce,loading:Oe}=KE(p,s),Ve=Ee(()=>{var Gn,Pn,ri,qi,vn,en;return on.value===!1?!1:D.value===!0?!0:!((Pn=(Gn=v.value)==null?void 0:Gn.schema)!=null&&Pn.has_auto_increment)&&!((vn=(qi=(ri=v.value)==null?void 0:ri.meta)==null?void 0:qi.special)!=null&&vn.includes("uuid"))?!!((en=w.value)!=null&&en[v.value.field]):k.value===!0&&Object.keys(h.value).length>0||D.value}),{confirmLeave:Ye,leaveTo:ot}=w1(D),Te=ze(!1),it=ze(!1),Le=Ee(()=>{var Gn,Pn;return i(`collection_names_singular.${t.collection}`)?k.value?n("creating_unit",{unit:n(`collection_names_singular.${t.collection}`)}):n("editing_unit",{unit:n(`collection_names_singular.${t.collection}`)}):k.value?n("creating_in",{collection:(Gn=p.value)==null?void 0:Gn.name}):n("editing_in",{collection:(Pn=p.value)==null?void 0:Pn.name})}),De=Ee(()=>{var Pn;let Gn=(((Pn=p.value)==null?void 0:Pn.name)||"")+" | ";if(p.value&&p.value.meta){if(p.value.meta.singleton===!0)return Gn+p.value.name;if(k.value===!1&&p.value.meta.display_template){const{displayValue:ri}=ZE(p.value.meta.display_template,Ce);if(ri.value!==void 0)return Gn+ri.value}}return Gn+Le.value});Bre(De);const ht=Ee(()=>Vt.value===!1?n("not_allowed"):se.value===!0?n("unarchive"):n("archive"));So("meta+s",Pe,o),So("meta+shift+s",He,o);const{createAllowed:At,deleteAllowed:Tt,archiveAllowed:Vt,saveAllowed:on,updateAllowed:_t,shareAllowed:Ut,fields:Nt,revisionsAllowed:Qt}=Dv(r,A,k),Jt=Ee(()=>{var Gn,Pn,ri;return V(T)||V(k)?"+":V(_)?(ri=(Pn=V(A))==null?void 0:Pn[(Gn=V(v))==null?void 0:Gn.field])!=null?ri:"+":t.primaryKey}),qt=Ee(()=>At.value?k.value?["save-as-copy"]:[]:["save-and-add-new","save-as-copy"]);function Dt(){return{breadcrumb:Ee(()=>{var Pn;return[{name:(Pn=p.value)==null?void 0:Pn.name,to:`/content/${t.collection}`}]})}}async function nt(){if(Ve.value!==!1)try{await B(),t.singleton===!1&&a.push(`/content/${t.collection}`)}catch{}}async function Pe(){var Gn,Pn;if(Ve.value!==!1)try{const ri=await B();if((Pn=(Gn=f.value)==null?void 0:Gn.refresh)==null||Pn.call(Gn),t.primaryKey==="+"){const qi=ri[v.value.field];a.replace(`/content/${t.collection}/${encodeURIComponent(qi)}`)}}catch{}}async function He(){if(Ve.value!==!1)try{await B(),k.value===!0?de():a.push(`/content/${t.collection}/+`)}catch{}}async function mt(){try{const Gn=await ce();Gn&&a.replace(`/content/${t.collection}/${encodeURIComponent(Gn)}`)}catch{}}async function Pt(){try{await W(),w.value={},a.replace(`/content/${t.collection}`)}catch{}}async function Bt(){try{await K(),se.value===!0?a.push(`/content/${t.collection}`):it.value=!1}catch{}}function wt(){!ot.value||(w.value={},Ye.value=!1,a.push(ot.value))}function nn(){w.value={},Ye.value=!1}function Ln(Gn){w.value={...w.value,...Gn}}return(Gn,Pn)=>{var xt,jt;const ri=Y("v-skeleton-loader"),qi=Y("render-template"),vn=Y("v-icon"),en=Y("v-button"),Sn=Y("v-breadcrumb"),Kn=Y("v-card-title"),ti=Y("v-card-actions"),On=Y("v-card"),ei=Y("v-dialog"),Mi=Y("v-form"),gi=Y("v-card-text"),Ai=Y("sidebar-detail"),Oi=Y("private-view"),Fi=pi("tooltip"),sr=pi("md");return V(z)||!V(p)||((jt=(xt=V(p))==null?void 0:xt.meta)==null?void 0:jt.singleton)===!0&&V(s)!==null?(G(),_e(yb,{key:0})):(G(),_e(Oi,{key:1,title:V(Le)},La({"title-outer:prepend":R(()=>[V(p).meta&&V(p).meta.singleton===!0?(G(),_e(en,{key:0,class:"header-icon",rounded:"",icon:"",secondary:"",disabled:""},{default:R(()=>[F(vn,{name:V(p).icon},null,8,["name"])]),_:1})):dn((G(),_e(en,{key:1,class:"header-icon",rounded:"",icon:"",secondary:"",exact:"",onClick:Pn[0]||(Pn[0]=xn=>V(a).back())},{default:R(()=>[F(vn,{name:"arrow_back"})]),_:1})),[[Fi,V(n)("back"),void 0,{bottom:!0}]])]),headline:R(()=>[V(p).meta&&V(p).meta.singleton===!0?(G(),_e(Sn,{key:0,items:[{name:V(n)("content"),to:"/content"}]},null,8,["items"])):(G(),_e(Sn,{key:1,items:V(l)},null,8,["items"]))]),actions:R(()=>[V(k)?Je("",!0):(G(),_e(ei,{key:0,modelValue:Te.value,"onUpdate:modelValue":Pn[2]||(Pn[2]=xn=>Te.value=xn),disabled:V(Tt)===!1,onEsc:Pn[3]||(Pn[3]=xn=>Te.value=!1)},{activator:R(({on:xn})=>[V(p).meta&&V(p).meta.singleton===!1?dn((G(),_e(en,{key:0,rounded:"",icon:"",class:"action-delete",secondary:"",disabled:V(A)===null||V(Tt)!==!0,onClick:xn},{default:R(()=>[F(vn,{name:"delete",outline:""})]),_:2},1032,["disabled","onClick"])),[[Fi,V(Tt)?V(n)("delete_label"):V(n)("not_allowed"),void 0,{bottom:!0}]]):Je("",!0)]),default:R(()=>[F(On,null,{default:R(()=>[F(Kn,null,{default:R(()=>[Ne(he(V(n)("delete_are_you_sure")),1)]),_:1}),F(ti,null,{default:R(()=>[F(en,{secondary:"",onClick:Pn[1]||(Pn[1]=xn=>Te.value=!1)},{default:R(()=>[Ne(he(V(n)("cancel")),1)]),_:1}),F(en,{kind:"danger",loading:V(N),onClick:Pt},{default:R(()=>[Ne(he(V(n)("delete_label")),1)]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue","disabled"])),V(p).meta&&V(p).meta.archive_field&&!V(k)?(G(),_e(ei,{key:1,modelValue:it.value,"onUpdate:modelValue":Pn[5]||(Pn[5]=xn=>it.value=xn),disabled:V(Vt)===!1,onEsc:Pn[6]||(Pn[6]=xn=>it.value=!1)},{activator:R(({on:xn})=>[V(p).meta&&V(p).meta.singleton===!1?dn((G(),_e(en,{key:0,rounded:"",icon:"",secondary:"",disabled:V(A)===null||V(Vt)!==!0,onClick:xn},{default:R(()=>[F(vn,{name:V(se)?"unarchive":"archive",outline:""},null,8,["name"])]),_:2},1032,["disabled","onClick"])),[[Fi,V(ht),void 0,{bottom:!0}]]):Je("",!0)]),default:R(()=>[F(On,null,{default:R(()=>[F(Kn,null,{default:R(()=>[Ne(he(V(se)?V(n)("unarchive_confirm"):V(n)("archive_confirm")),1)]),_:1}),F(ti,null,{default:R(()=>[F(en,{secondary:"",onClick:Pn[4]||(Pn[4]=xn=>it.value=!1)},{default:R(()=>[Ne(he(V(n)("cancel")),1)]),_:1}),F(en,{kind:"warning",loading:V(re),onClick:Bt},{default:R(()=>[Ne(he(V(se)?V(n)("unarchive"):V(n)("archive")),1)]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue","disabled"])):Je("",!0),dn((G(),_e(en,{rounded:"",icon:"",loading:V(L),disabled:!V(Ve),onClick:nt},{"append-outer":R(()=>[V(p).meta&&V(p).meta.singleton!==!0&&V(Ve)===!0?(G(),_e(M4,{key:0,"disabled-options":V(qt),onSaveAndStay:Pe,onSaveAndAddNew:He,onSaveAsCopy:mt,onDiscardAndStay:nn},null,8,["disabled-options"])):Je("",!0)]),default:R(()=>[F(vn,{name:"check"})]),_:1},8,["loading","disabled"])),[[Fi,V(on)?V(n)("save"):V(n)("not_allowed"),void 0,{bottom:!0}]])]),navigation:R(()=>[F(k4,{"current-collection":V(r)},null,8,["current-collection"])]),sidebar:R(()=>[F(Ai,{icon:"info_outline",title:V(n)("information"),close:""},{default:R(()=>[dn(ke("div",Nse,null,512),[[sr,V(n)("page_help_collections_item")]])]),_:1},8,["title"]),V(k)===!1&&V(T)===!1&&V(Jt)&&V(Qt)&&V(y)==="all"?(G(),_e(ig,{key:0,ref_key:"revisionsDrawerDetailRef",ref:f,collection:V(r),"primary-key":V(Jt),scope:V(y),onRevert:Ln},null,8,["collection","primary-key","scope"])):Je("",!0),V(k)===!1&&V(T)===!1&&V(Jt)?(G(),_e(Tb,{key:1,collection:V(r),"primary-key":V(Jt)},null,8,["collection","primary-key"])):Je("",!0),V(k)===!1&&V(T)===!1&&V(Jt)?(G(),_e(jse,{key:2,collection:V(r),"primary-key":V(Jt),allowed:V(Ut)},null,8,["collection","primary-key","allowed"])):Je("",!0),V(k)===!1&&V(T)===!1&&V(Jt)?(G(),_e(YE,{key:3,location:"item",collection:V(r),"primary-key":V(Jt),"has-edits":V(D),onRefresh:V(de)},null,8,["collection","primary-key","has-edits","onRefresh"])):Je("",!0)]),default:R(()=>[(G(),_e(Mi,{ref_key:"form",ref:o,key:V(r),modelValue:V(w),"onUpdate:modelValue":Pn[7]||(Pn[7]=xn=>zr(w)?w.value=xn:null),autofocus:V(k),disabled:V(k)?!1:V(_t)===!1,loading:V(T),"initial-values":V(A),fields:V(Nt),"primary-key":V(Jt),"validation-errors":V(ge)},null,8,["modelValue","autofocus","disabled","loading","initial-values","fields","primary-key","validation-errors"])),F(ei,{modelValue:V(Ye),"onUpdate:modelValue":Pn[9]||(Pn[9]=xn=>zr(Ye)?Ye.value=xn:null),onEsc:Pn[10]||(Pn[10]=xn=>Ye.value=!1)},{default:R(()=>[F(On,null,{default:R(()=>[F(Kn,null,{default:R(()=>[Ne(he(V(n)("unsaved_changes")),1)]),_:1}),F(gi,null,{default:R(()=>[Ne(he(V(n)("unsaved_changes_copy")),1)]),_:1}),F(ti,null,{default:R(()=>[F(en,{secondary:"",onClick:wt},{default:R(()=>[Ne(he(V(n)("discard_changes")),1)]),_:1}),F(en,{onClick:Pn[8]||(Pn[8]=xn=>Ye.value=!1)},{default:R(()=>[Ne(he(V(n)("keep_editing")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:2},[V(p).meta&&V(p).meta.singleton===!0?{name:"title",fn:R(()=>[ke("h1",Vse,he(V(p).name),1)])}:V(k)===!1&&V(p).meta&&V(p).meta.display_template?{name:"title",fn:R(()=>[V(T)||V(Oe)?(G(),_e(ri,{key:0,class:"title-loader",type:"text"})):(G(),Me("h1",{key:1,class:"type-title"},[F(qi,{collection:V(p).collection,item:V(Ce),template:V(p).meta.display_template},null,8,["collection","item","template"])]))])}:void 0]),1032,["title"]))}}});var hA=Ot(Bse,[["__scopeId","data-v-4d2bc646"]]);function mA(e){const t=`directus-${e}`,n=ze(null);function i(){let a;try{a=localStorage.getItem(t)}catch{}if(!!a)try{const o=JSON.parse(a);n.value=o}catch{}}return i(),Zn(n,()=>{try{n.value==null?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(n.value))}catch{}}),{data:n}}const Use=$t({components:{CollectionRoute:$re,ItemRoute:hA},props:{collection:{type:String,required:!0},bookmark:{type:String,default:null},archive:{type:String,default:null}},setup(e){const t=Vf(),{data:n}=mA("last-accessed-collection"),i=ea(),a=Ee(()=>{var r;const o=i.getCollection(e.collection);return!!((r=o==null?void 0:o.meta)!=null&&r.singleton)});return Zn(()=>t.params,o=>{o.collection&&n.value!==o.collection&&(n.value=o.collection)},{immediate:!0}),{isSingleton:a}}});function Hse(e,t,n,i,a,o){return G(),_e(Fr(e.isSingleton?"item-route":"collection-route"),{collection:e.collection,bookmark:e.bookmark,singleton:e.isSingleton,archive:e.archive},null,8,["collection","bookmark","singleton","archive"])}var qse=Ot(Use,[["render",Hse]]);const Wse=$t({name:"ContentOverview",components:{ContentNavigation:k4},props:{},setup(){const{t:e}=yn(),t=Qr(),n=Ee(()=>{var i;return((i=t.currentUser)==null?void 0:i.role.admin_access)===!0});return{t:e,isAdmin:n}}}),Gse={class:"page-description"};function Yse(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-button"),l=Y("content-navigation"),f=Y("v-info"),p=Y("sidebar-detail"),h=Y("private-view"),v=pi("md");return G(),_e(h,{class:"content-overview",title:e.t("content")},{"title-outer:prepend":R(()=>[F(s,{class:"header-icon",rounded:"",disabled:"",icon:"",secondary:""},{default:R(()=>[F(r,{name:"box"})]),_:1})]),navigation:R(()=>[F(l)]),sidebar:R(()=>[F(p,{icon:"info_outline",title:e.t("information"),close:""},{default:R(()=>[dn(ke("div",Gse,null,512),[[v,e.t("page_help_collections_overview")]])]),_:1},8,["title"])]),default:R(()=>[F(f,{icon:"box",title:e.t("no_collections"),center:""},La({default:R(()=>[e.isAdmin?(G(),Me(gn,{key:0},[Ne(he(e.t("no_collections_copy_admin")),1)],64)):(G(),Me(gn,{key:1},[Ne(he(e.t("no_collections_copy")),1)],64))]),_:2},[e.isAdmin?{name:"append",fn:R(()=>[F(s,{to:"/settings/data-model/+"},{default:R(()=>[Ne(he(e.t("create_collection")),1)]),_:1})])}:void 0]),1032,["title"])]),_:1},8,["title"])}var Xse=Ot(Wse,[["render",Yse],["__scopeId","data-v-b639f274"]]);const r5=(e,t)=>{var n;if(!!((n=e.params)!=null&&n.collection)){if(e.params.collection==="directus_users")return e.params.primaryKey?`/users/${e.params.primaryKey}`:"/users";if(e.params.collection==="directus_files")return e.params.primaryKey?`/files/${e.params.primaryKey}`:"/files";if(e.params.collection==="directus_activity")return e.params.primaryKey?`/activity/${e.params.primaryKey}`:"/activity";if(e.params.collection==="directus_webhooks")return e.params.primaryKey?`/settings/webhooks/${e.params.primaryKey}`:"/settings/webhooks";if(e.params.collection==="directus_presets")return e.params.primaryKey?`/settings/presets/${e.params.primaryKey}`:"/settings/presets";if("bookmark"in t.query&&typeof t.query.bookmark=="string"&&!("bookmark"in e.query)&&e.params.collection===t.params.collection)return gb(e.fullPath,{bookmark:t.query.bookmark})}},Kse=e=>"all"in e?"all":"archived"in e?"archived":null;var Zse=em({id:"content",name:"$t:content",icon:"box",routes:[{name:"no-collections",path:"",component:Xse,beforeEnter(){const e=ea(),{activeGroups:t}=HE(ze(null));if(e.visibleCollections.length===0)return;const n=lt.exports.orderBy(e.visibleCollections.filter(r=>{var s;return lt.exports.isNil((s=r==null?void 0:r.meta)==null?void 0:s.group)}),["meta.sort","collection"]),{data:i}=mA("last-accessed-collection");if(i.value&&e.visibleCollections.find(r=>r.collection===i.value))return`/content/${i.value}`;let a=o(n);if(a=o(n,{skipClosed:!1}),!a)return;return`/content/${a.collection}`;function o(r,{skipClosed:s}={skipClosed:!0}){for(const l of r){if(l.schema)return l;if(s&&t.value.includes(l.collection)===!1)continue;const f=lt.exports.orderBy(e.visibleCollections.filter(h=>{var v;return l.collection===((v=h.meta)==null?void 0:v.group)}),["meta.sort","collection"]),p=o(f);if(p)return p}}}},{path:":collection",component:W1,children:[{name:"content-collection",path:"",component:qse,props:e=>{const t=Kse(e.query);return{collection:e.params.collection,bookmark:e.query.bookmark,archive:t}},beforeEnter:r5},{name:"content-item",path:":primaryKey",component:hA,props:!0,beforeEnter:r5}]},{name:"content-item-not-found",path:":_(.+)+",component:yb,beforeEnter:r5}]}),Jse=Object.freeze(Object.defineProperty({__proto__:null,default:Zse},Symbol.toStringTag,{value:"Module"})),Qse=[{name:"app",path:"app",children:[{name:"content",path:"app/content",children:[{name:"collections",path:"app/content/collections",import:()=>ct(()=>import("./collections.2fa0dd8e.js"),["assets/collections.2fa0dd8e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"items",path:"app/content/items",import:()=>ct(()=>import("./items.cc802753.js"),["assets/items.cc802753.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"shares",path:"app/content/shares",import:()=>ct(()=>import("./shares.cc7ce751.js"),["assets/shares.cc7ce751.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"content",path:"app/content",import:()=>ct(()=>import("./content.f9b34bf7.js"),["assets/content.f9b34bf7.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"display-templates",path:"app/display-templates",import:()=>ct(()=>import("./display-templates.91e34e9f.js"),["assets/display-templates.91e34e9f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"documentation",path:"app/documentation",import:()=>ct(()=>import("./documentation.cb5bf843.js"),["assets/documentation.cb5bf843.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"file-library",path:"app/file-library",import:()=>ct(()=>import("./file-library.5d646392.js"),["assets/file-library.5d646392.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"filters",path:"app/filters",import:()=>ct(()=>import("./filters.5cf9b5c5.js"),["assets/filters.5cf9b5c5.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"import-export",path:"app/import-export",import:()=>ct(()=>import("./import-export.92aee031.js"),["assets/import-export.92aee031.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"insights",path:"app/insights",import:()=>ct(()=>import("./insights.c3df1bb3.js"),["assets/insights.c3df1bb3.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"layouts",path:"app/layouts",import:()=>ct(()=>import("./layouts.39ffa712.js"),["assets/layouts.39ffa712.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"overview",path:"app/overview",import:()=>ct(()=>import("./overview.eb55d14f.js"),["assets/overview.eb55d14f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"settings",path:"app/settings",import:()=>ct(()=>import("./settings.25cab07d.js"),["assets/settings.25cab07d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"user-directory",path:"app/user-directory",import:()=>ct(()=>import("./user-directory.59b8470a.js"),["assets/user-directory.59b8470a.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"cloud",path:"cloud",children:[{name:"accounts",path:"cloud/accounts",import:()=>ct(()=>import("./accounts.e4c64fb1.js"),["assets/accounts.e4c64fb1.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"glossary",path:"cloud/glossary",import:()=>ct(()=>import("./glossary.238763c8.js"),["assets/glossary.238763c8.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"overview",path:"cloud/overview",import:()=>ct(()=>import("./overview.211898b7.js"),["assets/overview.211898b7.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"projects",path:"cloud/projects",import:()=>ct(()=>import("./projects.398642da.js"),["assets/projects.398642da.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"teams",path:"cloud/teams",import:()=>ct(()=>import("./teams.541d1f0c.js"),["assets/teams.541d1f0c.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"configuration",path:"configuration",children:[{name:"activity-log",path:"configuration/activity-log",import:()=>ct(()=>import("./activity-log.147dd93e.js"),["assets/activity-log.147dd93e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"data-model",path:"configuration/data-model",children:[{name:"collections",path:"configuration/data-model/collections",import:()=>ct(()=>import("./collections.18cc2518.js"),["assets/collections.18cc2518.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"fields",path:"configuration/data-model/fields",children:[{name:"conditions",path:"configuration/data-model/fields/conditions",import:()=>ct(()=>import("./conditions.281a6ed5.js"),["assets/conditions.281a6ed5.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"display",path:"configuration/data-model/fields/display",import:()=>ct(()=>import("./display.494b7d1f.js"),["assets/display.494b7d1f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"field-types",path:"configuration/data-model/fields/field-types",import:()=>ct(()=>import("./field-types.ed85836e.js"),["assets/field-types.ed85836e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"field",path:"configuration/data-model/fields/field",import:()=>ct(()=>import("./field.fb2213dd.js"),["assets/field.fb2213dd.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"index",path:"configuration/data-model/fields/index",import:()=>ct(()=>import("./index.0d2e59f7.js"),["assets/index.0d2e59f7.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"interface",path:"configuration/data-model/fields/interface",import:()=>ct(()=>import("./interface.1195a442.js"),["assets/interface.1195a442.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"relationship",path:"configuration/data-model/fields/relationship",import:()=>ct(()=>import("./relationship.32af0bee.js"),["assets/relationship.32af0bee.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"schema",path:"configuration/data-model/fields/schema",import:()=>ct(()=>import("./schema.7eb35ba9.js"),["assets/schema.7eb35ba9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"translations",path:"configuration/data-model/fields/translations",import:()=>ct(()=>import("./translations.4a2d59ad.js"),["assets/translations.4a2d59ad.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"validation",path:"configuration/data-model/fields/validation",import:()=>ct(()=>import("./validation.10b8a2f3.js"),["assets/validation.10b8a2f3.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"fields",path:"configuration/data-model/fields",import:()=>ct(()=>import("./fields.f3868bd3.js"),["assets/fields.f3868bd3.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"relationships",path:"configuration/data-model/relationships",import:()=>ct(()=>import("./relationships.1cd9b5d9.js"),["assets/relationships.1cd9b5d9.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"data-model",path:"configuration/data-model",import:()=>ct(()=>import("./data-model.dbce1366.js"),["assets/data-model.dbce1366.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"faq",path:"configuration/faq",import:()=>ct(()=>import("./faq.4ca4b467.js"),["assets/faq.4ca4b467.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"flows",path:"configuration/flows",children:[{name:"operations",path:"configuration/flows/operations",import:()=>ct(()=>import("./operations.30fc2625.js"),["assets/operations.30fc2625.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"triggers",path:"configuration/flows/triggers",import:()=>ct(()=>import("./triggers.6baf300f.js"),["assets/triggers.6baf300f.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"flows",path:"configuration/flows",import:()=>ct(()=>import("./flows.79e56304.js"),["assets/flows.79e56304.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"localization",path:"configuration/localization",import:()=>ct(()=>import("./localization.6486db5d.js"),["assets/localization.6486db5d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"overview",path:"configuration/overview",import:()=>ct(()=>import("./overview.91ec2552.js"),["assets/overview.91ec2552.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"presets-bookmarks",path:"configuration/presets-bookmarks",import:()=>ct(()=>import("./presets-bookmarks.0a83b030.js"),["assets/presets-bookmarks.0a83b030.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"project-settings",path:"configuration/project-settings",import:()=>ct(()=>import("./project-settings.eebfbd8c.js"),["assets/project-settings.eebfbd8c.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"security",path:"configuration/security",import:()=>ct(()=>import("./security.0f4880b1.js"),["assets/security.0f4880b1.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"translation-strings",path:"configuration/translation-strings",import:()=>ct(()=>import("./translation-strings.6f6737a7.js"),["assets/translation-strings.6f6737a7.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"users-roles-permissions",path:"configuration/users-roles-permissions",import:()=>ct(()=>import("./users-roles-permissions.ed9e814c.js"),["assets/users-roles-permissions.ed9e814c.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"webhooks",path:"configuration/webhooks",import:()=>ct(()=>import("./webhooks.a7e035b7.js"),["assets/webhooks.a7e035b7.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"contributing",path:"contributing",children:[{name:"codebase-overview",path:"contributing/codebase-overview",import:()=>ct(()=>import("./codebase-overview.7f69e795.js"),["assets/codebase-overview.7f69e795.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"github-ci",path:"contributing/github-ci",import:()=>ct(()=>import("./github-ci.b23bbe2d.js"),["assets/github-ci.b23bbe2d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"introduction",path:"contributing/introduction",import:()=>ct(()=>import("./introduction.201b3a46.js"),["assets/introduction.201b3a46.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"running-locally",path:"contributing/running-locally",import:()=>ct(()=>import("./running-locally.6bdbd71e.js"),["assets/running-locally.6bdbd71e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"translations",path:"contributing/translations",import:()=>ct(()=>import("./translations.7e97efc3.js"),["assets/translations.7e97efc3.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"extensions",path:"extensions",children:[{name:"creating-extensions",path:"extensions/creating-extensions",import:()=>ct(()=>import("./creating-extensions.4533b8ed.js"),["assets/creating-extensions.4533b8ed.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"displays",path:"extensions/displays",import:()=>ct(()=>import("./displays.54ddeb10.js"),["assets/displays.54ddeb10.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"email-templates",path:"extensions/email-templates",import:()=>ct(()=>import("./email-templates.b0b82036.js"),["assets/email-templates.b0b82036.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"endpoints",path:"extensions/endpoints",import:()=>ct(()=>import("./endpoints.1ba44e66.js"),["assets/endpoints.1ba44e66.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"hooks",path:"extensions/hooks",import:()=>ct(()=>import("./hooks.7b1e235e.js"),["assets/hooks.7b1e235e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"interfaces",path:"extensions/interfaces",import:()=>ct(()=>import("./interfaces.0dddec2f.js"),["assets/interfaces.0dddec2f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"introduction",path:"extensions/introduction",import:()=>ct(()=>import("./introduction.2a49238f.js"),["assets/introduction.2a49238f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"layouts",path:"extensions/layouts",import:()=>ct(()=>import("./layouts.6d10b629.js"),["assets/layouts.6d10b629.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"migrations",path:"extensions/migrations",import:()=>ct(()=>import("./migrations.ecdb3334.js"),["assets/migrations.ecdb3334.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"modules",path:"extensions/modules",import:()=>ct(()=>import("./modules.0dab0325.js"),["assets/modules.0dab0325.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"operations",path:"extensions/operations",import:()=>ct(()=>import("./operations.c5ee7367.js"),["assets/operations.c5ee7367.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"panels",path:"extensions/panels",import:()=>ct(()=>import("./panels.9b48e2ab.js"),["assets/panels.9b48e2ab.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"themes",path:"extensions/themes",import:()=>ct(()=>import("./themes.47d63f74.js"),["assets/themes.47d63f74.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"getting-started",path:"getting-started",children:[{name:"architecture",path:"getting-started/architecture",import:()=>ct(()=>import("./architecture.aaf5c296.js"),["assets/architecture.aaf5c296.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"backing-directus",path:"getting-started/backing-directus",import:()=>ct(()=>import("./backing-directus.bd29d5e2.js"),["assets/backing-directus.bd29d5e2.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"glossary",path:"getting-started/glossary",import:()=>ct(()=>import("./glossary.db37b807.js"),["assets/glossary.db37b807.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"introduction",path:"getting-started/introduction",import:()=>ct(()=>import("./introduction.daef5dfe.js"),["assets/introduction.daef5dfe.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"quickstart",path:"getting-started/quickstart",import:()=>ct(()=>import("./quickstart.a567dd49.js"),["assets/quickstart.a567dd49.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"resources",path:"getting-started/resources",import:()=>ct(()=>import("./resources.f947272a.js"),["assets/resources.f947272a.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"support",path:"getting-started/support",import:()=>ct(()=>import("./support.55199a3e.js"),["assets/support.55199a3e.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"index",path:"index",import:()=>ct(()=>import("./index.556512f9.js"),["assets/index.556512f9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"readme",path:"readme",import:()=>ct(()=>import("./readme.1996f39f.js"),["assets/readme.1996f39f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"reference",path:"reference",children:[{name:"authentication",path:"reference/authentication",import:()=>ct(()=>import("./authentication.61c42dda.js"),["assets/authentication.61c42dda.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"cli",path:"reference/cli",import:()=>ct(()=>import("./cli.b2fbc62f.js"),["assets/cli.b2fbc62f.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"files",path:"reference/files",import:()=>ct(()=>import("./files.e0ad4209.js"),["assets/files.e0ad4209.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"filter-rules",path:"reference/filter-rules",import:()=>ct(()=>import("./filter-rules.22fc9a6d.js"),["assets/filter-rules.22fc9a6d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"introduction",path:"reference/introduction",import:()=>ct(()=>import("./introduction.569a3b41.js"),["assets/introduction.569a3b41.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"items",path:"reference/items",import:()=>ct(()=>import("./items.207153dc.js"),["assets/items.207153dc.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"query",path:"reference/query",import:()=>ct(()=>import("./query.8ccae3a9.js"),["assets/query.8ccae3a9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"sdk",path:"reference/sdk",import:()=>ct(()=>import("./sdk.d1cc970a.js"),["assets/sdk.d1cc970a.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"system",path:"reference/system",children:[{name:"activity",path:"reference/system/activity",import:()=>ct(()=>import("./activity.dd401932.js"),["assets/activity.dd401932.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"collections",path:"reference/system/collections",import:()=>ct(()=>import("./collections.b7aafbfb.js"),["assets/collections.b7aafbfb.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"extensions",path:"reference/system/extensions",import:()=>ct(()=>import("./extensions.b4c93ce0.js"),["assets/extensions.b4c93ce0.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"fields",path:"reference/system/fields",import:()=>ct(()=>import("./fields.057754cf.js"),["assets/fields.057754cf.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"flows",path:"reference/system/flows",import:()=>ct(()=>import("./flows.eec58d0b.js"),["assets/flows.eec58d0b.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"folders",path:"reference/system/folders",import:()=>ct(()=>import("./folders.83d5bb9d.js"),["assets/folders.83d5bb9d.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"notifications",path:"reference/system/notifications",import:()=>ct(()=>import("./notifications.5b10ad0b.js"),["assets/notifications.5b10ad0b.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"operations",path:"reference/system/operations",import:()=>ct(()=>import("./operations.296e9710.js"),["assets/operations.296e9710.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"permissions",path:"reference/system/permissions",import:()=>ct(()=>import("./permissions.66ecdced.js"),["assets/permissions.66ecdced.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"presets",path:"reference/system/presets",import:()=>ct(()=>import("./presets.198afe35.js"),["assets/presets.198afe35.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"relations",path:"reference/system/relations",import:()=>ct(()=>import("./relations.ad6c2398.js"),["assets/relations.ad6c2398.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"revisions",path:"reference/system/revisions",import:()=>ct(()=>import("./revisions.c13b66e0.js"),["assets/revisions.c13b66e0.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"roles",path:"reference/system/roles",import:()=>ct(()=>import("./roles.e767878c.js"),["assets/roles.e767878c.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"server",path:"reference/system/server",import:()=>ct(()=>import("./server.bcf6175e.js"),["assets/server.bcf6175e.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"settings",path:"reference/system/settings",import:()=>ct(()=>import("./settings.f21d244b.js"),["assets/settings.f21d244b.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"users",path:"reference/system/users",import:()=>ct(()=>import("./users.de050e21.js"),["assets/users.de050e21.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"utilities",path:"reference/system/utilities",import:()=>ct(()=>import("./utilities.99f7a370.js"),["assets/utilities.99f7a370.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"webhooks",path:"reference/system/webhooks",import:()=>ct(()=>import("./webhooks.53b2215e.js"),["assets/webhooks.53b2215e.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]}]},{name:"self-hosted",path:"self-hosted",children:[{name:"config-options",path:"self-hosted/config-options",import:()=>ct(()=>import("./config-options.d33aab72.js"),["assets/config-options.d33aab72.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"installation",path:"self-hosted/installation",children:[{name:"aws",path:"self-hosted/installation/aws",import:()=>ct(()=>import("./aws.55405db9.js"),["assets/aws.55405db9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"cli",path:"self-hosted/installation/cli",import:()=>ct(()=>import("./cli.ca0055cb.js"),["assets/cli.ca0055cb.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"cloudron",path:"self-hosted/installation/cloudron",import:()=>ct(()=>import("./cloudron.8200e84b.js"),["assets/cloudron.8200e84b.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"digitalocean-app-platform",path:"self-hosted/installation/digitalocean-app-platform",import:()=>ct(()=>import("./digitalocean-app-platform.b046ae55.js"),["assets/digitalocean-app-platform.b046ae55.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"docker",path:"self-hosted/installation/docker",import:()=>ct(()=>import("./docker.36215dae.js"),["assets/docker.36215dae.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"gcp",path:"self-hosted/installation/gcp",import:()=>ct(()=>import("./gcp.60b49ff2.js"),["assets/gcp.60b49ff2.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"iis",path:"self-hosted/installation/iis",import:()=>ct(()=>import("./iis.67a83939.js"),["assets/iis.67a83939.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"manual",path:"self-hosted/installation/manual",import:()=>ct(()=>import("./manual.edc6cff6.js"),["assets/manual.edc6cff6.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"plesk",path:"self-hosted/installation/plesk",import:()=>ct(()=>import("./plesk.0a2c4855.js"),["assets/plesk.0a2c4855.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"ubuntu",path:"self-hosted/installation/ubuntu",import:()=>ct(()=>import("./ubuntu.14eb3ea1.js"),["assets/ubuntu.14eb3ea1.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]},{name:"installation",path:"self-hosted/installation",import:()=>ct(()=>import("./installation.4ab6ce97.js"),["assets/installation.4ab6ce97.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"quickstart",path:"self-hosted/quickstart",import:()=>ct(()=>import("./quickstart.de9843d9.js"),["assets/quickstart.de9843d9.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"sso-examples",path:"self-hosted/sso-examples",import:()=>ct(()=>import("./sso-examples.0b7c81f4.js"),["assets/sso-examples.0b7c81f4.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"sso",path:"self-hosted/sso",import:()=>ct(()=>import("./sso.49e87f3a.js"),["assets/sso.49e87f3a.js","assets/runtime-core.esm-bundler.32cac88a.js"])},{name:"upgrades-migrations",path:"self-hosted/upgrades-migrations",import:()=>ct(()=>import("./upgrades-migrations.a9a9ca7c.js"),["assets/upgrades-migrations.a9a9ca7c.js","assets/runtime-core.esm-bundler.32cac88a.js"])}]}];const ele=$t({name:"NavigationListItem",props:{section:{type:Object,default:null},dense:{type:Boolean,default:!1}}});function tle(e,t,n,i,a,o){const r=Y("v-divider"),s=Y("v-icon"),l=Y("v-list-item-icon"),f=Y("v-text-overflow"),p=Y("v-list-item-content"),h=Y("navigation-list-item"),v=Y("v-list-group"),_=Y("v-list-item");return e.section.divider?(G(),_e(r,{key:0})):e.section.children?(G(),_e(v,{key:1,scope:"docs-navigation",dense:e.dense,multiple:!1,value:e.section.to},{activator:R(()=>[e.section.icon!==void 0?(G(),_e(l,{key:0},{default:R(()=>[F(s,{name:e.section.icon},null,8,["name"])]),_:1})):Je("",!0),F(p,null,{default:R(()=>[F(f,{text:e.section.name},null,8,["text"])]),_:1})]),default:R(()=>[(G(!0),Me(gn,null,vi(e.section.children,(y,k)=>(G(),_e(h,{key:k,section:y,dense:""},null,8,["section"]))),128))]),_:1},8,["dense","value"])):(G(),_e(_,{key:2,scope:"docs-navigation",to:`/docs${e.section.to}`,dense:e.dense,value:e.section.to},{default:R(()=>[e.section.icon!==void 0?(G(),_e(l,{key:0},{default:R(()=>[F(s,{name:e.section.icon},null,8,["name"])]),_:1})):Je("",!0),F(p,null,{default:R(()=>[F(f,{text:e.section.name},null,8,["text"])]),_:1})]),_:1},8,["to","dense","value"]))}var nle=Ot(ele,[["render",tle]]),ile=[{name:"App Overview",to:"/app/overview",icon:"school"},{name:"Collection Page",to:"/app/content/collections",icon:"list_alt"},{name:"Item Page",to:"/app/content/items",icon:"edit_note"},{name:"User Directory",to:"/app/user-directory",icon:"people_alt"},{name:"File Library",to:"/app/file-library",icon:"folder"},{name:"Insights",to:"/app/insights",icon:"insights"},{name:"Documentation",to:"/app/documentation",icon:"help_outline"},{name:"Settings",to:"/app/settings",icon:"settings"},{name:"Backing Directus",to:"/getting-started/backing-directus",icon:"card_giftcard"},{name:"Glossary",to:"/getting-started/glossary",icon:"menu_book"}];function rle(e){const t=e.slice(1).split("/");if(t.length===0)return[];const n=["/"+t[0]];for(let i=1;i<t.length;i++)n.push(n[i-1]+"/"+t[i]);return n[0]==="/reference"&&n[1]==="/reference/api"&&n.shift(),n}const ale=$t({components:{NavigationItem:nle},props:{path:{type:String,default:"/docs"}},setup(e){const t=ze(null);return Zn(()=>e.path,n=>{n!==null&&(t.value=[...t.value||[],...rle(n.replace("/docs",""))])},{immediate:!0}),{navSections:ile,selection:t}}});function ole(e,t,n,i,a,o){const r=Y("navigation-item"),s=Y("v-list");return G(),_e(s,{modelValue:e.selection,"onUpdate:modelValue":t[0]||(t[0]=l=>e.selection=l),nav:"",mandatory:!1,scope:"docs-navigation"},{default:R(()=>[(G(!0),Me(gn,null,vi(e.navSections,l=>(G(),_e(r,{key:l.name,section:l},null,8,["section"]))),128))]),_:1},8,["modelValue"])}var vA=Ot(ale,[["render",ole]]);const sle=$t({name:"NotFound",components:{DocsNavigation:vA},setup(){const{t:e}=yn(),t=Vf();return{t:e,route:t}}}),lle={class:"not-found"};function cle(e,t,n,i,a,o){const r=Y("docs-navigation"),s=Y("v-info"),l=Y("private-view");return G(),_e(l,{title:e.t("page_not_found")},{navigation:R(()=>[F(r,{path:e.route.path},null,8,["path"])]),default:R(()=>[ke("div",lle,[F(s,{title:e.t("page_not_found"),icon:"not_interested"},{default:R(()=>[Ne(he(e.t("page_not_found_body")),1)]),_:1},8,["title"])])]),_:1},8,["title"])}var ule=Ot(sle,[["render",cle],["__scopeId","data-v-736afbfa"]]);const dle=$t({name:"StaticDocs",components:{DocsNavigation:vA},setup(){const{t:e}=yn(),t=Vf(),n=ze("Test"),i=ze(!1);return{t:e,route:t,title:n,modularExtension:i}}}),fle={class:"type-title"},ple=Ne("Modular Extension"),hle={class:"docs-content selectable"},mle={class:"page-description"};function vle(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-button"),l=Y("v-chip"),f=Y("docs-navigation"),p=Y("router-view"),h=Y("sidebar-detail"),v=Y("private-view"),_=pi("md");return G(),_e(v,{title:e.title},{"title-outer:prepend":R(()=>[F(s,{rounded:"",disabled:"",icon:""},{default:R(()=>[F(r,{name:"info"})]),_:1})]),title:R(()=>[ke("h1",fle,he(e.title),1),e.modularExtension?(G(),_e(l,{key:0,disabled:"",small:""},{default:R(()=>[ple]),_:1})):Je("",!0)]),navigation:R(()=>[F(f,{path:e.route.path},null,8,["path"])]),sidebar:R(()=>[F(h,{icon:"info_outline",title:e.t("information"),close:""},{default:R(()=>[dn(ke("div",mle,null,512),[[_,e.t("page_help_docs_global")]])]),_:1},8,["title"])]),default:R(()=>[ke("div",hle,[F(p,{"onUpdate:title":t[0]||(t[0]=y=>e.title=y),"onUpdate:modularExtension":t[1]||(t[1]=y=>e.modularExtension=y)})])]),_:1},8,["title"])}var gle=Ot(dle,[["render",vle],["__scopeId","data-v-3383fb1a"]]),yle=em({id:"docs",name:"$t:documentation",icon:"help_outline",routes:[{path:"",component:gle,children:[{path:"",redirect:"/docs/app/overview"},...gA(Qse)]},{path:":_(.+)+",component:ule}]});function gA(e){const t=[];for(const n of e)"children"in n?(t.push({path:n.path,redirect:`/docs/${n.children[0].path}`}),t.push(...gA(n.children))):t.push({name:`docs-${n.path.replace("/","-")}`,path:n.path,component:n.import});return t}var _le=Object.freeze(Object.defineProperty({__proto__:null,default:yle},Symbol.toStringTag,{value:"Module"}));const ble=$t({props:{folder:{type:String,default:null}},setup(e){const{t}=yn(),n=qa(),i=ah();return{t,isOpen:i,close:a};function a(){n.push(e.folder?{path:`/files/folders/${e.folder}`}:{path:"/files"})}}});function wle(e,t,n,i,a,o){const r=Y("v-card-title"),s=Y("v-upload"),l=Y("v-card-text"),f=Y("v-button"),p=Y("v-card-actions"),h=Y("v-card"),v=Y("v-dialog");return G(),_e(v,{"model-value":e.isOpen,"onUpdate:modelValue":e.close,onEsc:e.close},{default:R(()=>[F(h,null,{default:R(()=>[F(r,null,{default:R(()=>[Ne(he(e.t("add_file")),1)]),_:1}),F(l,null,{default:R(()=>[F(s,{preset:{folder:e.folder},multiple:"","from-url":"",onInput:e.close},null,8,["preset","onInput"])]),_:1}),F(p,null,{default:R(()=>[F(f,{secondary:"",onClick:e.close},{default:R(()=>[Ne(he(e.t("done")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model-value","onUpdate:modelValue","onEsc"])}var ex=Ot(ble,[["render",wle]]);let Dh=null,Gm=null,$2=null,a5=null,z2=null;function rg(){return Dh===null&&(Dh=ze(!1)),Gm===null&&(Gm=ze(null)),$2===null&&($2=ze(null)),z2===null&&(z2=ze(null)),a5===null&&(a5=ze(["root"])),Gm.value===null&&Dh.value===!1&&e(),{loading:Dh,folders:Gm,nestedFolders:$2,error:z2,fetchFolders:e,openFolders:a5};async function e(){if(Dh!==null&&Gm!==null&&$2!==null&&z2!==null){Dh.value=!0;try{const t=await $n.get("/folders",{params:{limit:-1,sort:"name"}});Gm.value=t.data.data,$2.value=xle(t.data.data)}catch(t){z2.value=t}finally{Dh.value=!1}}}}function xle(e){return e.map(t=>yA(t,e)).filter(t=>t.parent===null)}function yA(e,t){const n={...e},i=t.filter(a=>a.parent===e.id&&a.id!==e.id).map(a=>yA(a,t));return i.length>0&&(n.children=i),n}const kle=$t({name:"NavigationFolder",components:{FolderPicker:S4},props:{folder:{type:Object,required:!0},currentFolder:{type:String,default:null},clickHandler:{type:Function,default:()=>{}}},setup(e){const{t}=yn(),n=qa(),{renameActive:i,renameValue:a,renameSave:o,renameSaving:r}=k(),{moveActive:s,moveValue:l,moveSave:f,moveSaving:p}=w(),{deleteActive:h,deleteSave:v,deleteSaving:_}=D(),{fetchFolders:y}=rg();return{t,renameActive:i,renameValue:a,renameSave:o,renameSaving:r,moveActive:s,moveValue:l,moveSave:f,moveSaving:p,deleteActive:h,deleteSave:v,deleteSaving:_};function k(){const A=ze(!1),L=ze(e.folder.name),T=ze(!1);return{renameActive:A,renameValue:L,renameSave:z,renameSaving:T};async function z(){T.value=!0;try{await $n.patch(`/folders/${e.folder.id}`,{name:L.value})}catch(B){Hi(B)}finally{T.value=!1,await y(),A.value=!1}}}function w(){const A=ze(!1),L=ze(e.folder.parent),T=ze(!1);return{moveActive:A,moveValue:L,moveSave:z,moveSaving:T};async function z(){T.value=!0;try{await $n.patch(`/folders/${e.folder.id}`,{parent:L.value})}catch(B){Hi(B)}finally{T.value=!1,await y(),A.value=!1}}}function D(){const A=ze(!1),L=ze(!1);return{deleteActive:A,deleteSave:T,deleteSaving:L};async function T(){L.value=!0;try{const z=await $n.get("/folders",{params:{filter:{parent:{_eq:e.folder.id}}}}),B=await $n.get("/files",{params:{filter:{folder:{_eq:e.folder.id}}}}),W=e.folder.parent||null,N=z.data.data.map(re=>re.id),K=B.data.data.map(re=>re.id);N.length>0&&await $n.patch("/folders",{keys:N,data:{parent:W}}),K.length>0&&await $n.patch("/files",{keys:K,data:{folder:W}}),await $n.delete(`/folders/${e.folder.id}`),W?n.replace(`/files/folders/${W}`):n.replace("/files"),A.value=!1}catch(z){Hi(z)}finally{await y(),L.value=!1}}}}});function Sle(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-icon"),l=Y("v-text-overflow"),f=Y("v-list-item-content"),p=Y("v-list-item"),h=Y("navigation-folder",!0),v=Y("v-list-group"),_=Y("v-list"),y=Y("v-menu"),k=Y("v-card-title"),w=Y("v-input"),D=Y("v-card-text"),A=Y("v-button"),L=Y("v-card-actions"),T=Y("v-card"),z=Y("v-dialog"),B=Y("folder-picker"),W=Y("v-notice"),N=pi("context-menu");return G(),Me("div",null,[e.folder.children===void 0?dn((G(),_e(p,{key:0,to:`/files/folders/${e.folder.id}`,active:e.currentFolder===e.folder.id},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"folder"})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.folder.name},null,8,["text"])]),_:1})]),_:1},8,["to","active"])),[[N,"contextMenu"]]):dn((G(),_e(v,{key:1,to:`/files/folders/${e.folder.id}`,active:e.currentFolder===e.folder.id,value:e.folder.id,scope:"files-navigation","disable-groupable-parent":""},{activator:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"folder"})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.folder.name},null,8,["text"])]),_:1})]),default:R(()=>[(G(!0),Me(gn,null,vi(e.folder.children,K=>(G(),_e(h,{key:K.id,folder:K,"current-folder":e.currentFolder,"click-handler":e.clickHandler},null,8,["folder","current-folder","click-handler"]))),128))]),_:1},8,["to","active","value"])),[[N,"contextMenu"]]),F(y,{ref:"contextMenu","show-arrow":"",placement:"bottom-start"},{default:R(()=>[F(_,null,{default:R(()=>[F(p,{clickable:"",onClick:t[0]||(t[0]=K=>e.renameActive=!0)},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"edit",outline:""})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.t("rename_folder")},null,8,["text"])]),_:1})]),_:1}),F(p,{clickable:"",onClick:t[1]||(t[1]=K=>e.moveActive=!0)},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"folder_move"})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.t("move_to_folder")},null,8,["text"])]),_:1})]),_:1}),F(p,{class:"danger",clickable:"",onClick:t[2]||(t[2]=K=>e.deleteActive=!0)},{default:R(()=>[F(s,null,{default:R(()=>[F(r,{name:"delete",outline:""})]),_:1}),F(f,null,{default:R(()=>[F(l,{text:e.t("delete_folder")},null,8,["text"])]),_:1})]),_:1})]),_:1})]),_:1},512),F(z,{modelValue:e.renameActive,"onUpdate:modelValue":t[5]||(t[5]=K=>e.renameActive=K),persistent:"",onEsc:t[6]||(t[6]=K=>e.renameActive=!1)},{default:R(()=>[F(T,null,{default:R(()=>[F(k,null,{default:R(()=>[Ne(he(e.t("rename_folder")),1)]),_:1}),F(D,null,{default:R(()=>[F(w,{modelValue:e.renameValue,"onUpdate:modelValue":t[3]||(t[3]=K=>e.renameValue=K),autofocus:"",onKeyup:Qh(e.renameSave,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),F(L,null,{default:R(()=>[F(A,{secondary:"",onClick:t[4]||(t[4]=K=>e.renameActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(A,{disabled:e.renameValue===null,loading:e.renameSaving,onClick:e.renameSave},{default:R(()=>[Ne(he(e.t("save")),1)]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),F(z,{modelValue:e.moveActive,"onUpdate:modelValue":t[9]||(t[9]=K=>e.moveActive=K),persistent:"",onEsc:t[10]||(t[10]=K=>e.moveActive=!1)},{default:R(()=>[F(T,null,{default:R(()=>[F(k,null,{default:R(()=>[Ne(he(e.t("move_to_folder")),1)]),_:1}),F(D,null,{default:R(()=>[F(B,{modelValue:e.moveValue,"onUpdate:modelValue":t[7]||(t[7]=K=>e.moveValue=K),"disabled-folders":[e.folder.id]},null,8,["modelValue","disabled-folders"])]),_:1}),F(L,null,{default:R(()=>[F(A,{secondary:"",onClick:t[8]||(t[8]=K=>e.moveActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(A,{loading:e.moveSaving,onClick:e.moveSave},{default:R(()=>[Ne(he(e.t("save")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),F(z,{modelValue:e.deleteActive,"onUpdate:modelValue":t[12]||(t[12]=K=>e.deleteActive=K),persistent:"",onEsc:t[13]||(t[13]=K=>e.deleteActive=!1)},{default:R(()=>[F(T,null,{default:R(()=>[F(k,null,{default:R(()=>[Ne(he(e.t("delete_folder")),1)]),_:1}),F(D,null,{default:R(()=>[F(W,null,{default:R(()=>[Ne(he(e.t("nested_files_folders_will_be_moved")),1)]),_:1})]),_:1}),F(L,null,{default:R(()=>[F(A,{secondary:"",onClick:t[11]||(t[11]=K=>e.deleteActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(A,{kind:"danger",loading:e.deleteSaving,onClick:e.deleteSave},{default:R(()=>[Ne(he(e.t("delete_label")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}var Cle=Ot(kle,[["render",Sle],["__scopeId","data-v-0244c872"]]);const Ele=$t({components:{NavigationFolder:Cle},props:{currentFolder:{type:String,default:null}},setup(e){const{t}=yn(),{nestedFolders:n,folders:i,error:a,loading:o,openFolders:r}=rg();return s(),Zn(()=>e.currentFolder,s),{t,folders:i,nestedFolders:n,error:a,loading:o,openFolders:r};function s(){if(!i.value)return[];if(!(r!=null&&r.value))return[];const l=[],f=i.value.find(v=>v.id===e.currentFolder);f&&f.parent&&h(f.parent);const p=[...r.value];for(const v of l)p.includes(v)===!1&&p.push(v);p.length!==1&<.exports.isEqual(p,r.value)===!1&&(r.value=p);function h(v){if(!i.value)return;l.push(v);const _=i.value.find(y=>y.id===v);_&&_.parent&&h(_.parent)}}}}),Ale={class:"folders"};function Tle(e,t,n,i,a,o){const r=Y("v-skeleton-loader"),s=Y("v-list-item"),l=Y("v-icon"),f=Y("v-list-item-icon"),p=Y("v-text-overflow"),h=Y("v-list-item-content"),v=Y("navigation-folder"),_=Y("v-list-group"),y=Y("v-item-group"),k=Y("v-divider"),w=Y("v-list");return G(),_e(w,{nav:""},{default:R(()=>[e.loading&&(e.nestedFolders===null||e.nestedFolders.length===0)?(G(),Me(gn,{key:0},vi(4,D=>F(s,{key:D},{default:R(()=>[F(r,{type:"list-item-icon"})]),_:2},1024)),64)):Je("",!0),ke("div",Ale,[F(y,{modelValue:e.openFolders,"onUpdate:modelValue":t[0]||(t[0]=D=>e.openFolders=D),scope:"files-navigation",multiple:""},{default:R(()=>[F(_,{to:"/files",active:e.currentFolder===null,value:"root",scope:"files-navigation",exact:"","disable-groupable-parent":""},{activator:R(()=>[F(f,null,{default:R(()=>[F(l,{name:"folder_special",outline:""})]),_:1}),F(h,null,{default:R(()=>[F(p,{text:e.t("file_library")},null,8,["text"])]),_:1})]),default:R(()=>[(G(!0),Me(gn,null,vi(e.nestedFolders,D=>(G(),_e(v,{key:D.id,folder:D,"current-folder":e.currentFolder},null,8,["folder","current-folder"]))),128))]),_:1},8,["active"])]),_:1},8,["modelValue"])]),F(k),F(s,{to:"/files/all"},{default:R(()=>[F(f,null,{default:R(()=>[F(l,{name:"file_copy",outline:""})]),_:1}),F(h,null,{default:R(()=>[F(p,{text:e.t("all_files")},null,8,["text"])]),_:1})]),_:1}),F(s,{to:"/files/mine"},{default:R(()=>[F(f,null,{default:R(()=>[F(l,{name:"folder_shared"})]),_:1}),F(h,null,{default:R(()=>[F(p,{text:e.t("my_files")},null,8,["text"])]),_:1})]),_:1}),F(s,{to:"/files/recent"},{default:R(()=>[F(f,null,{default:R(()=>[F(l,{name:"history"})]),_:1}),F(h,null,{default:R(()=>[F(p,{text:e.t("recent_files")},null,8,["text"])]),_:1})]),_:1})]),_:1})}var Lb=Ot(Ele,[["render",Tle],["__scopeId","data-v-3cc479c4"]]);const Dle=$t({props:{parent:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup(e){const{t}=yn(),n=qa(),i=ze(!1),a=ze(!1),o=ze(null),{fetchFolders:r}=rg();return{t,addFolder:s,dialogActive:i,newFolderName:o,saving:a};async function s(){a.value=!0;try{const l=await $n.post("/folders",{name:o.value,parent:e.parent==="root"?null:e.parent});await r(),i.value=!1,o.value=null,n.push({path:`/files/folders/${l.data.data.id}`})}catch(l){Hi(l)}finally{a.value=!1}}}});function Ile(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-button"),l=Y("v-card-title"),f=Y("v-input"),p=Y("v-card-text"),h=Y("v-card-actions"),v=Y("v-card"),_=Y("v-dialog"),y=pi("tooltip");return G(),_e(_,{modelValue:e.dialogActive,"onUpdate:modelValue":t[2]||(t[2]=k=>e.dialogActive=k),onEsc:t[3]||(t[3]=k=>e.dialogActive=!1)},{activator:R(({on:k})=>[dn((G(),_e(s,{rounded:"",icon:"",secondary:"",disabled:e.disabled,onClick:k},{default:R(()=>[F(r,{name:"create_new_folder",outline:""})]),_:2},1032,["disabled","onClick"])),[[y,e.disabled?e.t("not_allowed"):e.t("create_folder"),void 0,{bottom:!0}]])]),default:R(()=>[F(v,null,{default:R(()=>[F(l,null,{default:R(()=>[Ne(he(e.t("create_folder")),1)]),_:1}),F(p,null,{default:R(()=>[F(f,{modelValue:e.newFolderName,"onUpdate:modelValue":t[0]||(t[0]=k=>e.newFolderName=k),autofocus:"",placeholder:e.t("folder_name"),onKeyup:Qh(e.addFolder,["enter"])},null,8,["modelValue","placeholder","onKeyup"])]),_:1}),F(h,null,{default:R(()=>[F(s,{secondary:"",onClick:t[1]||(t[1]=k=>e.dialogActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(s,{disabled:e.newFolderName===null,loading:e.saving,onClick:e.addFolder},{default:R(()=>[Ne(he(e.t("save")),1)]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}var Mle=Ot(Dle,[["render",Ile]]);function _A(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var i=e.get(t);i&&i.slice().map(function(a){a(n)}),(i=e.get("*"))&&i.slice().map(function(a){a(t,n)})}}}const l0=_A();var pv=(e=>(e.upload="upload",e))(pv||{});function av(e,t,n,i){Lo(()=>{V(e).addEventListener(t,n,i)}),d4(()=>{V(e).removeEventListener(t,n,i)})}async function bA(e,t){const n=(t==null?void 0:t.onProgressChange)||(()=>{}),i=new FormData;if(t!=null&&t.preset)for(const[o,r]of Object.entries(t.preset))i.append(o,r);i.append("file",e);try{let o=null;return t!=null&&t.fileId?o=await $n.patch(`/files/${t.fileId}`,i,{onUploadProgress:a}):o=await $n.post("/files",i,{onUploadProgress:a}),t!=null&&t.notifications&&sl({title:mr.global.t("upload_file_success")}),l0.emit(pv.upload),o.data.data}catch(o){Hi(o)}function a(o){const r=Math.floor(o.loaded*100/o.total);n(r)}}async function wA(e,t){const n=(t==null?void 0:t.onProgressChange)||(()=>{}),i=e.map(()=>0);try{const a=await Promise.all(e.map((o,r)=>bA(o,{...t,onProgressChange:s=>{i[r]=s,n(i)}})));return t!=null&&t.notifications&&sl({title:mr.global.t("upload_files_success",{count:e.length})}),a}catch(a){Hi(a)}}const Lle=$t({name:"FilesCollection",components:{FilesNavigation:Lb,LayoutSidebarDetail:e2,AddFolder:Mle,SearchInput:cp,FolderPicker:S4,DrawerBatch:tg},props:{folder:{type:String,default:null},special:{type:String,default:null}},setup(e){const{t}=yn(),n=qa(),i=J0(),a=Ml(),{folders:o}=rg(),r=ze(),s=ze([]),l=Qr(),{layout:f,layoutOptions:p,layoutQuery:h,filter:v,search:_,resetPreset:y}=am(ze("directus_files")),{confirmDelete:k,deleting:w,batchDelete:D,error:A,batchEditActive:L}=Le(),{breadcrumb:T,title:z}=De(),B=Ee(()=>{const _t={_and:[{type:{_nnull:!0}}]};return e.special===null&&(e.folder!==null?_t._and.push({folder:{_eq:e.folder}}):_t._and.push({folder:{_null:!0}})),e.special==="mine"&&l.currentUser&&_t._and.push({uploaded_by:{_eq:l.currentUser.id}}),e.special==="recent"&&_t._and.push({uploaded_on:{_gt:cb(new Date,5).toISOString()}}),_t}),{layoutWrapper:W}=rh(f),{moveToDialogActive:N,moveToFolder:K,moving:re,selectedFolder:se}=ht();Lo(()=>l0.on(pv.upload,At)),Lc(()=>l0.off(pv.upload,At)),m4(()=>{s.value=[]}),rb(()=>{s.value=[]});const{onDragEnter:ce,onDragLeave:de,onDrop:ge,onDragOver:Ce,showDropEffect:Oe,dragging:Ve}=on();av(window,"dragenter",ce),av(window,"dragover",Ce),av(window,"dragleave",de),av(window,"drop",ge);const{batchEditAllowed:Ye,batchDeleteAllowed:ot,createAllowed:Te,createFolderAllowed:it}=Vt();return{t,breadcrumb:T,title:z,layoutRef:r,layoutWrapper:W,selection:s,layoutOptions:p,layoutQuery:h,layout:f,folderTypeFilter:B,search:_,moveToDialogActive:N,moveToFolder:K,moving:re,selectedFolder:se,refresh:At,clearFilters:Tt,onDragEnter:ce,onDragLeave:de,showDropEffect:Oe,onDrop:ge,dragging:Ve,batchEditAllowed:Ye,batchDeleteAllowed:ot,createAllowed:Te,createFolderAllowed:it,resetPreset:y,confirmDelete:k,deleting:w,batchDelete:D,deleteError:A,batchEditActive:L,filter:v,mergeFilters:M0};function Le(){const _t=ze(!1),Ut=ze(!1),Nt=ze(!1),Qt=ze();return{batchEditActive:Nt,confirmDelete:_t,deleting:Ut,batchDelete:Jt,error:Qt};async function Jt(){Ut.value=!0;const qt=s.value;try{await $n.delete("/files",{data:qt}),await At(),s.value=[]}catch(Dt){Hi(Dt),Qt.value=Dt}finally{_t.value=!1,Ut.value=!1}}}function De(){const _t=Ee(()=>{var Nt;if(e.special==="all")return t("all_files");if(e.special==="mine")return t("my_files");if(e.special==="recent")return t("recent_files");if(e.folder){const Qt=(Nt=o.value)==null?void 0:Nt.find(Jt=>Jt.id===e.folder);if(Qt)return Qt.name}return t("file_library")});return{breadcrumb:Ee(()=>_t.value!==t("file_library")?[{name:t("file_library"),to:"/files"}]:null),title:_t}}function ht(){const _t=ze(!1),Ut=ze(!1),Nt=ze();return{moveToDialogActive:_t,moving:Ut,moveToFolder:Qt,selectedFolder:Nt};async function Qt(){Ut.value=!0;try{await $n.patch("/files",{keys:s.value,data:{folder:Nt.value}}),s.value=[],Nt.value&&n.push(`/files/folders/${Nt.value}`),await Jv(),await At()}catch(Jt){Hi(Jt)}finally{_t.value=!1,Ut.value=!1}}}async function At(){var _t,Ut,Nt;await((Nt=(Ut=(_t=r.value)==null?void 0:_t.state)==null?void 0:Ut.refresh)==null?void 0:Nt.call(Ut))}function Tt(){v.value=null,_.value=null}function Vt(){const _t=Ee(()=>{var Dt;return((Dt=l==null?void 0:l.currentUser)==null?void 0:Dt.role.admin_access)===!0?!0:!!a.permissions.find(nt=>nt.action==="update"&&nt.collection==="directus_files")}),Ut=Ee(()=>{var Dt;return((Dt=l==null?void 0:l.currentUser)==null?void 0:Dt.role.admin_access)===!0?!0:!!a.permissions.find(nt=>nt.action==="delete"&&nt.collection==="directus_files")}),Nt=Ee(()=>{var Dt;return((Dt=l==null?void 0:l.currentUser)==null?void 0:Dt.role.admin_access)===!0?!0:!!a.permissions.find(nt=>nt.action==="create"&&nt.collection==="directus_files")}),Qt=Ee(()=>{var Dt;return((Dt=l==null?void 0:l.currentUser)==null?void 0:Dt.role.admin_access)===!0?!0:!!a.permissions.find(nt=>nt.action==="create"&&nt.collection==="directus_folders")});return{batchEditAllowed:_t,batchDeleteAllowed:Ut,createAllowed:Nt,createFolderAllowed:Qt}}function on(){const _t=ze(!1);let Ut,Nt;const Qt=ze(0),Jt=Ee(()=>Qt.value>0);return{onDragEnter:nt,onDragLeave:He,onDrop:mt,onDragOver:Pe,showDropEffect:_t,dragging:Jt};function qt(){_t.value=!0,Ut=i.add({title:t("drop_to_upload"),icon:"cloud_upload",type:"info",persist:!0,closeable:!1})}function Dt(){_t.value=!1,Ut&&i.remove(Ut)}function nt(Pt){var wt,nn,Ln;if(!Pt.dataTransfer||((wt=Pt.dataTransfer)==null?void 0:wt.types.indexOf("Files"))===-1)return;Pt.preventDefault(),Qt.value++;const Bt=Pt.target&&((Ln=(nn=Pt.target).getAttribute)==null?void 0:Ln.call(nn,"data-dropzone"))==="";Qt.value===1&&_t.value===!1&&Bt===!1&&qt(),Bt&&(Dt(),Qt.value=0)}function Pe(Pt){var Bt;!Pt.dataTransfer||((Bt=Pt.dataTransfer)==null?void 0:Bt.types.indexOf("Files"))!==-1&&Pt.preventDefault()}function He(Pt){var Bt,wt,nn;!Pt.dataTransfer||((Bt=Pt.dataTransfer)==null?void 0:Bt.types.indexOf("Files"))!==-1&&(Pt.preventDefault(),Qt.value--,Qt.value===0&&Dt(),Pt.target&&((nn=(wt=Pt.target).getAttribute)==null?void 0:nn.call(wt,"data-dropzone"))===""&&(qt(),Qt.value=1))}async function mt(Pt){var wt;if(!Pt.dataTransfer||((wt=Pt.dataTransfer)==null?void 0:wt.types.indexOf("Files"))===-1)return;Pt.preventDefault(),_t.value=!1,Qt.value=0,Ut&&i.remove(Ut);const Bt=[...Pt.dataTransfer.files];Nt=i.add({title:t("upload_files_indeterminate",{done:0,total:Bt.length},Bt.length),type:"info",persist:!0,closeable:!1,loading:!0}),await wA(Bt,{preset:{folder:e.folder},onProgressChange:nn=>{const Ln=nn.reduce((ri,qi)=>ri+=qi)/nn.length,Gn=Bt.length,Pn=nn.filter(ri=>ri===100).length;i.update(Nt,{title:t("upload_files_indeterminate",{done:Pn,total:Gn},Bt.length),loading:!1,progress:Ln})}}),i.remove(Nt),l0.emit(pv.upload)}}}}),L4=e=>(ya("data-v-1cd3dfdc"),e=e(),_a(),e),Ple={class:"page-description"},Fle=L4(()=>ke("div",{class:"drop-border top"},null,-1)),Rle=L4(()=>ke("div",{class:"drop-border right"},null,-1)),Ole=L4(()=>ke("div",{class:"drop-border bottom"},null,-1)),$le=L4(()=>ke("div",{class:"drop-border left"},null,-1));function zle(e,t,n,i,a,o){const r=Y("v-breadcrumb"),s=Y("v-icon"),l=Y("v-button"),f=Y("search-input"),p=Y("add-folder"),h=Y("v-card-title"),v=Y("folder-picker"),_=Y("v-card-text"),y=Y("v-card-actions"),k=Y("v-card"),w=Y("v-dialog"),D=Y("files-navigation"),A=Y("v-info"),L=Y("router-view"),T=Y("drawer-batch"),z=Y("sidebar-detail"),B=Y("layout-sidebar-detail"),W=Y("export-sidebar-detail"),N=Y("private-view"),K=pi("tooltip"),re=pi("md");return G(),_e(Fr(e.layoutWrapper),{ref:"layoutRef",selection:e.selection,"onUpdate:selection":t[12]||(t[12]=se=>e.selection=se),"layout-options":e.layoutOptions,"onUpdate:layout-options":t[13]||(t[13]=se=>e.layoutOptions=se),"layout-query":e.layoutQuery,"onUpdate:layout-query":t[14]||(t[14]=se=>e.layoutQuery=se),filter:e.mergeFilters(e.filter,e.folderTypeFilter),"filter-user":e.filter,"filter-system":e.folderTypeFilter,search:e.search,collection:"directus_files","reset-preset":e.resetPreset},{default:R(({layoutState:se})=>[F(N,{title:e.title,class:wn({dragging:e.dragging})},La({"title-outer:prepend":R(()=>[F(l,{class:"header-icon",rounded:"",disabled:"",icon:"",secondary:""},{default:R(()=>[F(s,{name:"folder",outline:""})]),_:1})]),"actions:prepend":R(()=>[(G(),_e(Fr(`layout-actions-${e.layout}`),Ca(ja(se)),null,16))]),actions:R(()=>[F(f,{modelValue:e.search,"onUpdate:modelValue":t[0]||(t[0]=ce=>e.search=ce),filter:e.filter,"onUpdate:filter":t[1]||(t[1]=ce=>e.filter=ce),collection:"directus_files"},null,8,["modelValue","filter"]),F(p,{parent:e.folder,disabled:e.createFolderAllowed!==!0},null,8,["parent","disabled"]),e.selection.length>0?(G(),_e(w,{key:0,modelValue:e.moveToDialogActive,"onUpdate:modelValue":t[4]||(t[4]=ce=>e.moveToDialogActive=ce),onEsc:t[5]||(t[5]=ce=>e.moveToDialogActive=!1)},{activator:R(({on:ce})=>[dn((G(),_e(l,{rounded:"",icon:"",class:"folder",secondary:"",onClick:ce},{default:R(()=>[F(s,{name:"folder_move"})]),_:2},1032,["onClick"])),[[K,e.t("move_to_folder"),void 0,{bottom:!0}]])]),default:R(()=>[F(k,null,{default:R(()=>[F(h,null,{default:R(()=>[Ne(he(e.t("move_to_folder")),1)]),_:1}),F(_,null,{default:R(()=>[F(v,{modelValue:e.selectedFolder,"onUpdate:modelValue":t[2]||(t[2]=ce=>e.selectedFolder=ce)},null,8,["modelValue"])]),_:1}),F(y,null,{default:R(()=>[F(l,{secondary:"",onClick:t[3]||(t[3]=ce=>e.moveToDialogActive=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(l,{loading:e.moving,onClick:e.moveToFolder},{default:R(()=>[Ne(he(e.t("move")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])):Je("",!0),e.selection.length>0?(G(),_e(w,{key:1,modelValue:e.confirmDelete,"onUpdate:modelValue":t[7]||(t[7]=ce=>e.confirmDelete=ce),onEsc:t[8]||(t[8]=ce=>e.confirmDelete=!1)},{activator:R(({on:ce})=>[dn((G(),_e(l,{disabled:e.batchDeleteAllowed!==!0,rounded:"",icon:"",class:"action-delete",secondary:"",onClick:ce},{default:R(()=>[F(s,{name:"delete",outline:""})]),_:2},1032,["disabled","onClick"])),[[K,e.batchDeleteAllowed?e.t("delete_label"):e.t("not_allowed"),void 0,{bottom:!0}]])]),default:R(()=>[F(k,null,{default:R(()=>[F(h,null,{default:R(()=>[Ne(he(e.t("batch_delete_confirm",e.selection.length)),1)]),_:1}),F(y,null,{default:R(()=>[F(l,{secondary:"",onClick:t[6]||(t[6]=ce=>e.confirmDelete=!1)},{default:R(()=>[Ne(he(e.t("cancel")),1)]),_:1}),F(l,{kind:"danger",loading:e.deleting,onClick:e.batchDelete},{default:R(()=>[Ne(he(e.t("delete_label")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])):Je("",!0),e.selection.length>0?dn((G(),_e(l,{key:2,rounded:"",icon:"",secondary:"",disabled:e.batchEditAllowed===!1,onClick:t[9]||(t[9]=ce=>e.batchEditActive=!0)},{default:R(()=>[F(s,{name:"edit",outline:""})]),_:1},8,["disabled"])),[[K,e.batchEditAllowed?e.t("edit"):e.t("not_allowed"),void 0,{bottom:!0}]]):Je("",!0),dn((G(),_e(l,{rounded:"",icon:"",to:e.folder?{path:`/files/folders/${e.folder}/+`}:{path:"/files/+"},disabled:e.createAllowed===!1},{default:R(()=>[F(s,{name:"add"})]),_:1},8,["to","disabled"])),[[K,e.createAllowed?e.t("create_item"):e.t("not_allowed"),void 0,{bottom:!0}]])]),navigation:R(()=>[F(D,{"current-folder":e.folder},null,8,["current-folder"])]),sidebar:R(()=>[F(z,{icon:"info_outline",title:e.t("information"),close:""},{default:R(()=>[dn(ke("div",Ple,null,512),[[re,e.t("page_help_files_collection")]])]),_:1},8,["title"]),F(B,{modelValue:e.layout,"onUpdate:modelValue":t[11]||(t[11]=ce=>e.layout=ce)},{default:R(()=>[(G(),_e(Fr(`layout-options-${e.layout}`),Ca(ja(se)),null,16))]),_:2},1032,["modelValue"]),(G(),_e(Fr(`layout-sidebar-${e.layout}`),Ca(ja(se)),null,16)),F(W,{collection:"directus_files","layout-query":e.layoutQuery,filter:e.mergeFilters(e.filter,e.folderTypeFilter),search:e.search,onRefresh:e.refresh},null,8,["layout-query","filter","search","onRefresh"])]),default:R(()=>[(G(),_e(Fr(`layout-${e.layout}`),Io({class:"layout"},se),{"no-results":R(()=>[!e.filter&&!e.search?(G(),_e(A,{key:0,title:e.t("file_count",0),icon:"folder",center:""},{append:R(()=>[F(l,{to:e.folder?{path:`/files/folders/${e.folder}/+`}:{path:"/files/+"}},{default:R(()=>[Ne(he(e.t("add_file")),1)]),_:1},8,["to"])]),default:R(()=>[Ne(he(e.t("no_files_copy"))+" ",1)]),_:1},8,["title"])):(G(),_e(A,{key:1,title:e.t("no_results"),icon:"search",center:""},{append:R(()=>[F(l,{onClick:e.clearFilters},{default:R(()=>[Ne(he(e.t("clear_filters")),1)]),_:1},8,["onClick"])]),default:R(()=>[Ne(he(e.t("no_results_copy"))+" ",1)]),_:1},8,["title"]))]),"no-items":R(()=>[F(A,{title:e.t("file_count",0),icon:"folder",center:""},{append:R(()=>[F(l,{to:e.folder?{path:`/files/folders/${e.folder}/+`}:{path:"/files/+"}},{default:R(()=>[Ne(he(e.t("add_file")),1)]),_:1},8,["to"])]),default:R(()=>[Ne(he(e.t("no_files_copy"))+" ",1)]),_:1},8,["title"])]),_:2},1040)),F(L,{name:"addNew",folder:e.folder,onUpload:e.refresh},null,8,["folder","onUpload"]),F(T,{active:e.batchEditActive,"onUpdate:active":t[10]||(t[10]=ce=>e.batchEditActive=ce),"primary-keys":e.selection,collection:"directus_files",onRefresh:e.refresh},null,8,["active","primary-keys","onRefresh"]),e.showDropEffect?(G(),Me(gn,{key:0},[Fle,Rle,Ole,$le],64)):Je("",!0)]),_:2},[e.breadcrumb?{name:"headline",fn:R(()=>[F(r,{items:e.breadcrumb},null,8,["items"])])}:void 0]),1032,["title","class"])]),_:1},40,["selection","layout-options","layout-query","filter","filter-user","filter-system","search","reset-preset"])}var j2=Ot(Lle,[["render",zle],["__scopeId","data-v-1cd3dfdc"]]);const sh=Pu({id:"settingsStore",state:()=>({settings:null}),actions:{async hydrate(){const e=Qr();if(!e.currentUser||"share"in e.currentUser)return;const t=await $n.get("/settings");this.settings=t.data.data},async dehydrate(){this.$reset()},async updateSettings(e){const t={...this.settings},n=lt.exports.merge({},this.settings,e);this.settings=n;try{const i=await $n.patch("/settings",e);this.settings=i.data.data,sl({title:mr.global.t("settings_update_success")})}catch(i){this.settings=t,Hi(i)}}}});/*!
|
|
27
27
|
* Cropper.js v1.5.12
|
|
28
28
|
* https://fengyuanchen.github.io/cropperjs
|
|
29
29
|
*
|
|
@@ -2500,7 +2500,7 @@ b`.split(/\n/).length!=3?function(g){for(var C=0,q=[],H=g.length;C<=H;){var J=g.
|
|
|
2500
2500
|
`+Oe,a(T.lastLine()),null,"+swapLine"):T.replaceRange(Oe+`
|
|
2501
2501
|
`,a(Ce,0),null,"+swapLine")}T.setSelections(N),T.scrollIntoView()})},i.swapLineDown=function(T){if(T.isReadOnly())return n.Pass;for(var z=T.listSelections(),B=[],W=T.lastLine()+1,N=z.length-1;N>=0;N--){var K=z[N],re=K.to().line+1,se=K.from().line;K.to().ch==0&&!K.empty()&&re--,re<W?B.push(re,se):B.length&&(B[B.length-1]=se),W=se}T.operation(function(){for(var ce=B.length-2;ce>=0;ce-=2){var de=B[ce],ge=B[ce+1],Ce=T.getLine(de);de==T.lastLine()?T.replaceRange("",a(de-1),a(de),"+swapLine"):T.replaceRange("",a(de,0),a(de+1,0),"+swapLine"),T.replaceRange(Ce+`
|
|
2502
2502
|
`,a(ge,0),null,"+swapLine")}T.scrollIntoView()})},i.toggleCommentIndented=function(T){T.toggleComment({indent:!0})},i.joinLines=function(T){for(var z=T.listSelections(),B=[],W=0;W<z.length;W++){for(var N=z[W],K=N.from(),re=K.line,se=N.to().line;W<z.length-1&&z[W+1].from().line==se;)se=z[++W].to().line;B.push({start:re,end:se,anchor:!N.empty()&&K})}T.operation(function(){for(var ce=0,de=[],ge=0;ge<B.length;ge++){for(var Ce=B[ge],Oe=Ce.anchor&&a(Ce.anchor.line-ce,Ce.anchor.ch),Ve,Ye=Ce.start;Ye<=Ce.end;Ye++){var ot=Ye-ce;Ye==Ce.end&&(Ve=a(ot,T.getLine(ot).length+1)),ot<T.lastLine()&&(T.replaceRange(" ",a(ot),a(ot+1,/^\s*/.exec(T.getLine(ot+1))[0].length)),++ce)}de.push({anchor:Oe||Ve,head:Ve})}T.setSelections(de,0)})},i.duplicateLine=function(T){T.operation(function(){for(var z=T.listSelections().length,B=0;B<z;B++){var W=T.listSelections()[B];W.empty()?T.replaceRange(T.getLine(W.head.line)+`
|
|
2503
|
-
`,a(W.head.line,0)):T.replaceRange(T.getRange(W.from(),W.to()),W.from())}T.scrollIntoView()})};function y(T,z,B){if(T.isReadOnly())return n.Pass;for(var W=T.listSelections(),N=[],K,re=0;re<W.length;re++){var se=W[re];if(!se.empty()){for(var ce=se.from().line,de=se.to().line;re<W.length-1&&W[re+1].from().line==de;)de=W[++re].to().line;W[re].to().ch||de--,N.push(ce,de)}}N.length?K=!0:N.push(T.firstLine(),T.lastLine()),T.operation(function(){for(var ge=[],Ce=0;Ce<N.length;Ce+=2){var Oe=N[Ce],Ve=N[Ce+1],Ye=a(Oe,0),ot=a(Ve),Te=T.getRange(Ye,ot,!1);z?Te.sort(function(it,Le){return it<Le?-B:it==Le?0:B}):Te.sort(function(it,Le){var De=it.toUpperCase(),ht=Le.toUpperCase();return De!=ht&&(it=De,Le=ht),it<Le?-B:it==Le?0:B}),T.replaceRange(Te,Ye,ot),K&&ge.push({anchor:Ye,head:a(Ve+1,0)})}K&&T.setSelections(ge,0)})}i.sortLines=function(T){y(T,!0,1)},i.reverseSortLines=function(T){y(T,!0,-1)},i.sortLinesInsensitive=function(T){y(T,!1,1)},i.reverseSortLinesInsensitive=function(T){y(T,!1,-1)},i.nextBookmark=function(T){var z=T.state.sublimeBookmarks;if(z)for(;z.length;){var B=z.shift(),W=B.find();if(W)return z.push(B),T.setSelection(W.from,W.to)}},i.prevBookmark=function(T){var z=T.state.sublimeBookmarks;if(z)for(;z.length;){z.unshift(z.pop());var B=z[z.length-1].find();if(!B)z.pop();else return T.setSelection(B.from,B.to)}},i.toggleBookmark=function(T){for(var z=T.listSelections(),B=T.state.sublimeBookmarks||(T.state.sublimeBookmarks=[]),W=0;W<z.length;W++){for(var N=z[W].from(),K=z[W].to(),re=z[W].empty()?T.findMarksAt(N):T.findMarks(N,K),se=0;se<re.length;se++)if(re[se].sublimeBookmark){re[se].clear();for(var ce=0;ce<B.length;ce++)B[ce]==re[se]&&B.splice(ce--,1);break}se==re.length&&B.push(T.markText(N,K,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},i.clearBookmarks=function(T){var z=T.state.sublimeBookmarks;if(z)for(var B=0;B<z.length;B++)z[B].clear();z.length=0},i.selectBookmarks=function(T){var z=T.state.sublimeBookmarks,B=[];if(z)for(var W=0;W<z.length;W++){var N=z[W].find();N?B.push({anchor:N.from,head:N.to}):z.splice(W--,0)}B.length&&T.setSelections(B,0)};function k(T,z){T.operation(function(){for(var B=T.listSelections(),W=[],N=[],K=0;K<B.length;K++){var re=B[K];re.empty()?(W.push(K),N.push("")):N.push(z(T.getRange(re.from(),re.to())))}T.replaceSelections(N,"around","case");for(var K=W.length-1,se;K>=0;K--){var re=B[W[K]];if(!(se&&n.cmpPos(re.head,se)>0)){var ce=l(T,re.head);se=ce.from,T.replaceRange(z(ce.word),ce.from,ce.to)}}})}i.smartBackspace=function(T){if(T.somethingSelected())return n.Pass;T.operation(function(){for(var z=T.listSelections(),B=T.getOption("indentUnit"),W=z.length-1;W>=0;W--){var N=z[W].head,K=T.getRange({line:N.line,ch:0},N),re=n.countColumn(K,null,T.getOption("tabSize")),se=T.findPosH(N,-1,"char",!1);if(K&&!/\S/.test(K)&&re%B==0){var ce=new a(N.line,n.findColumn(K,re-B,B));ce.ch!=N.ch&&(se=ce)}T.replaceRange("",se,N,"+delete")}})},i.delLineRight=function(T){T.operation(function(){for(var z=T.listSelections(),B=z.length-1;B>=0;B--)T.replaceRange("",z[B].anchor,a(z[B].to().line),"+delete");T.scrollIntoView()})},i.upcaseAtCursor=function(T){k(T,function(z){return z.toUpperCase()})},i.downcaseAtCursor=function(T){k(T,function(z){return z.toLowerCase()})},i.setSublimeMark=function(T){T.state.sublimeMark&&T.state.sublimeMark.clear(),T.state.sublimeMark=T.setBookmark(T.getCursor())},i.selectToSublimeMark=function(T){var z=T.state.sublimeMark&&T.state.sublimeMark.find();z&&T.setSelection(T.getCursor(),z)},i.deleteToSublimeMark=function(T){var z=T.state.sublimeMark&&T.state.sublimeMark.find();if(z){var B=T.getCursor(),W=z;if(n.cmpPos(B,W)>0){var N=W;W=B,B=N}T.state.sublimeKilled=T.getRange(B,W),T.replaceRange("",B,W)}},i.swapWithSublimeMark=function(T){var z=T.state.sublimeMark&&T.state.sublimeMark.find();z&&(T.state.sublimeMark.clear(),T.state.sublimeMark=T.setBookmark(T.getCursor()),T.setCursor(z))},i.sublimeYank=function(T){T.state.sublimeKilled!=null&&T.replaceSelection(T.state.sublimeKilled,null,"paste")},i.showInCenter=function(T){var z=T.cursorCoords(null,"local");T.scrollTo(null,(z.top+z.bottom)/2-T.getScrollInfo().clientHeight/2)};function w(T){var z=T.getCursor("from"),B=T.getCursor("to");if(n.cmpPos(z,B)==0){var W=l(T,z);if(!W.word)return;z=W.from,B=W.to}return{from:z,to:B,query:T.getRange(z,B),word:W}}function D(T,z){var B=w(T);if(!!B){var W=B.query,N=T.getSearchCursor(W,z?B.to:B.from);(z?N.findNext():N.findPrevious())?T.setSelection(N.from(),N.to()):(N=T.getSearchCursor(W,z?a(T.firstLine(),0):T.clipPos(a(T.lastLine()))),(z?N.findNext():N.findPrevious())?T.setSelection(N.from(),N.to()):B.word&&T.setSelection(B.from,B.to))}}i.findUnder=function(T){D(T,!0)},i.findUnderPrevious=function(T){D(T,!1)},i.findAllUnder=function(T){var z=w(T);if(!!z){for(var B=T.getSearchCursor(z.query),W=[],N=-1;B.findNext();)W.push({anchor:B.from(),head:B.to()}),B.from().line<=z.from.line&&B.from().ch<=z.from.ch&&N++;T.setSelections(W,N)}};var A=n.keyMap;A.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},n.normalizeKeyMap(A.macSublime),A.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},n.normalizeKeyMap(A.pcSublime);var L=A.default==A.macDefault;A.sublime=L?A.macSublime:A.pcSublime})})();function bS(e){switch(e){case"apl":return ct(()=>import("./apl.025ceee0.js").then(function(t){return t.a}),[]);case"asciiarmor":return ct(()=>import("./asciiarmor.e1b5c1a3.js").then(function(t){return t.a}),[]);case"asn.1":return ct(()=>import("./asn.1.bfc58a58.js").then(function(t){return t.a}),[]);case"asterisk":return ct(()=>import("./asterisk.e714dc83.js").then(function(t){return t.a}),[]);case"brainfuck":return ct(()=>import("./brainfuck.6e87069f.js").then(function(t){return t.b}),[]);case"clike":return ct(()=>import("./clike.9663d2b3.js").then(function(t){return t.c}),[]);case"clojure":return ct(()=>import("./clojure.28ee7a22.js").then(function(t){return t.c}),[]);case"cmake":return ct(()=>import("./cmake.aee3c431.js").then(function(t){return t.c}),[]);case"cobol":return ct(()=>import("./cobol.a04dd0ed.js").then(function(t){return t.c}),[]);case"coffeescript":return ct(()=>import("./coffeescript.3fea5290.js").then(function(t){return t.c}),[]);case"commonlisp":return ct(()=>import("./commonlisp.030b0e58.js").then(function(t){return t.c}),[]);case"crystal":return ct(()=>import("./crystal.196d940f.js").then(function(t){return t.c}),[]);case"css":return ct(()=>import("./css.585f2cb0.js").then(function(t){return t.c}),[]);case"cypher":return ct(()=>import("./cypher.35036411.js").then(function(t){return t.c}),[]);case"d":return ct(()=>import("./d.93cfb299.js").then(function(t){return t.d}),[]);case"dart":return ct(()=>import("./dart.478f3544.js").then(function(t){return t.d}),["assets/dart.478f3544.js","assets/clike.9663d2b3.js"]);case"diff":return ct(()=>import("./diff.5cb6e186.js").then(function(t){return t.d}),[]);case"django":return ct(()=>import("./django.8f238632.js").then(function(t){return t.d}),["assets/django.8f238632.js","assets/htmlmixed.b4abda11.js","assets/javascript.0f987dbc.js","assets/css.585f2cb0.js","assets/overlay.0d815e1c.js"]);case"dockerfile":return ct(()=>import("./dockerfile.8f0c0a1e.js").then(function(t){return t.d}),["assets/dockerfile.8f0c0a1e.js","assets/simple.1606e663.js"]);case"dtd":return ct(()=>import("./dtd.989f5165.js").then(function(t){return t.d}),[]);case"dylan":return ct(()=>import("./dylan.dea935ad.js").then(function(t){return t.d}),[]);case"ebnf":return ct(()=>import("./ebnf.4647a1c0.js").then(function(t){return t.e}),[]);case"ecl":return ct(()=>import("./ecl.9a4cb085.js").then(function(t){return t.e}),[]);case"eiffel":return ct(()=>import("./eiffel.e0b19a69.js").then(function(t){return t.e}),[]);case"elm":return ct(()=>import("./elm.391e151c.js").then(function(t){return t.e}),[]);case"erlang":return ct(()=>import("./erlang.7fcf78c6.js").then(function(t){return t.e}),[]);case"factor":return ct(()=>import("./factor.12bfd34d.js").then(function(t){return t.f}),["assets/factor.12bfd34d.js","assets/simple.1606e663.js"]);case"fcl":return ct(()=>import("./fcl.bfa3e74f.js").then(function(t){return t.f}),[]);case"forth":return ct(()=>import("./forth.0ff9d68f.js").then(function(t){return t.f}),[]);case"fortran":return ct(()=>import("./fortran.6a74d293.js").then(function(t){return t.f}),[]);case"gas":return ct(()=>import("./gas.0017dbfc.js").then(function(t){return t.g}),[]);case"gfm":return ct(()=>import("./gfm.0fc0d1d3.js").then(function(t){return t.g}),["assets/gfm.0fc0d1d3.js","assets/overlay.0d815e1c.js"]);case"gherkin":return ct(()=>import("./gherkin.782ca77e.js").then(function(t){return t.g}),[]);case"go":return ct(()=>import("./go.34e44348.js").then(function(t){return t.g}),[]);case"groovy":return ct(()=>import("./groovy.2b36f231.js").then(function(t){return t.g}),[]);case"haml":return ct(()=>import("./haml.812479fd.js").then(function(t){return t.h}),["assets/haml.812479fd.js","assets/htmlmixed.b4abda11.js","assets/javascript.0f987dbc.js","assets/css.585f2cb0.js","assets/ruby.77181664.js"]);case"handlebars":return ct(()=>import("./handlebars.2683bde5.js").then(function(t){return t.h}),["assets/handlebars.2683bde5.js","assets/multiplex.34a284fc.js","assets/simple.1606e663.js"]);case"haskell":return ct(()=>import("./haskell.6faba30b.js").then(function(t){return t.h}),[]);case"haskell-literate":return ct(()=>import("./haskell-literate.699b88bd.js").then(function(t){return t.h}),["assets/haskell-literate.699b88bd.js","assets/haskell.6faba30b.js"]);case"haxe":return ct(()=>import("./haxe.23162719.js").then(function(t){return t.h}),[]);case"htmlembedded":return ct(()=>import("./htmlembedded.6bb4b539.js").then(function(t){return t.h}),["assets/htmlembedded.6bb4b539.js","assets/htmlmixed.b4abda11.js","assets/javascript.0f987dbc.js","assets/css.585f2cb0.js","assets/multiplex.34a284fc.js"]);case"htmlmixed":return ct(()=>import("./htmlmixed.b4abda11.js").then(function(t){return t.h}),["assets/htmlmixed.b4abda11.js","assets/javascript.0f987dbc.js","assets/css.585f2cb0.js"]);case"http":return ct(()=>import("./http.2093b31c.js").then(function(t){return t.h}),[]);case"idl":return ct(()=>import("./idl.cc7f893d.js").then(function(t){return t.i}),[]);case"javascript":return ct(()=>import("./javascript.0f987dbc.js").then(function(t){return t.j}),[]);case"jinja2":return ct(()=>import("./jinja2.1714c6b4.js").then(function(t){return t.j}),[]);case"jsx":return ct(()=>import("./jsx.0436090e.js").then(function(t){return t.j}),["assets/jsx.0436090e.js","assets/javascript.0f987dbc.js"]);case"julia":return ct(()=>import("./julia.17bcd86a.js").then(function(t){return t.j}),[]);case"livescript":return ct(()=>import("./livescript.e4f13644.js").then(function(t){return t.l}),[]);case"lua":return ct(()=>import("./lua.f648e91e.js").then(function(t){return t.l}),[]);case"markdown":return ct(()=>Promise.resolve().then(function(){return DBe}),void 0);case"mathematica":return ct(()=>import("./mathematica.52dc4105.js").then(function(t){return t.m}),[]);case"mbox":return ct(()=>import("./mbox.b896837f.js").then(function(t){return t.m}),[]);case"mirc":return ct(()=>import("./mirc.10bbeea1.js").then(function(t){return t.m}),[]);case"mllike":return ct(()=>import("./mllike.191004b8.js").then(function(t){return t.m}),[]);case"modelica":return ct(()=>import("./modelica.bbfd56e6.js").then(function(t){return t.m}),[]);case"mscgen":return ct(()=>import("./mscgen.c92fd74a.js").then(function(t){return t.m}),[]);case"mumps":return ct(()=>import("./mumps.37f022fb.js").then(function(t){return t.m}),[]);case"nginx":return ct(()=>import("./nginx.baee9366.js").then(function(t){return t.n}),[]);case"nsis":return ct(()=>import("./nsis.7f12c9dc.js").then(function(t){return t.n}),["assets/nsis.7f12c9dc.js","assets/simple.1606e663.js"]);case"ntriples":return ct(()=>import("./ntriples.018e6112.js").then(function(t){return t.n}),[]);case"octave":return ct(()=>import("./octave.372364c9.js").then(function(t){return t.o}),[]);case"oz":return ct(()=>import("./oz.7497f31b.js").then(function(t){return t.o}),[]);case"pascal":return ct(()=>import("./pascal.42e2a8e0.js").then(function(t){return t.p}),[]);case"pegjs":return ct(()=>import("./pegjs.7318728b.js").then(function(t){return t.p}),["assets/pegjs.7318728b.js","assets/javascript.0f987dbc.js"]);case"perl":return ct(()=>import("./perl.cb43c987.js").then(function(t){return t.p}),[]);case"php":return ct(()=>import("./php.04bf2132.js").then(function(t){return t.p}),["assets/php.04bf2132.js","assets/htmlmixed.b4abda11.js","assets/javascript.0f987dbc.js","assets/css.585f2cb0.js","assets/clike.9663d2b3.js"]);case"pig":return ct(()=>import("./pig.4235f7d9.js").then(function(t){return t.p}),[]);case"powershell":return ct(()=>import("./powershell.f967c618.js").then(function(t){return t.p}),[]);case"properties":return ct(()=>import("./properties.1a0b81f0.js").then(function(t){return t.p}),[]);case"protobuf":return ct(()=>import("./protobuf.b8759181.js").then(function(t){return t.p}),[]);case"pug":return ct(()=>import("./pug.902e44de.js").then(function(t){return t.p}),["assets/pug.902e44de.js","assets/javascript.0f987dbc.js","assets/css.585f2cb0.js","assets/htmlmixed.b4abda11.js"]);case"puppet":return ct(()=>import("./puppet.52d18e89.js").then(function(t){return t.p}),[]);case"python":return ct(()=>import("./python.50eb8730.js").then(function(t){return t.p}),[]);case"q":return ct(()=>import("./q.9f996c87.js").then(function(t){return t.q}),[]);case"r":return ct(()=>import("./r.b44dc9fe.js").then(function(t){return t.r}),[]);case"rpm":return ct(()=>import("./rpm.5c635cb3.js").then(function(t){return t.r}),[]);case"rst":return ct(()=>import("./rst.3f01e667.js").then(function(t){return t.r}),["assets/rst.3f01e667.js","assets/python.50eb8730.js","assets/stex.ab2d9a38.js","assets/overlay.0d815e1c.js"]);case"ruby":return ct(()=>import("./ruby.77181664.js").then(function(t){return t.r}),[]);case"rust":return ct(()=>import("./rust.611a3c67.js").then(function(t){return t.r}),["assets/rust.611a3c67.js","assets/simple.1606e663.js"]);case"sas":return ct(()=>import("./sas.3da7c95a.js").then(function(t){return t.s}),[]);case"sass":return ct(()=>import("./sass.b73c972a.js").then(function(t){return t.s}),["assets/sass.b73c972a.js","assets/css.585f2cb0.js"]);case"scheme":return ct(()=>import("./scheme.b8d740c2.js").then(function(t){return t.s}),[]);case"shell":return ct(()=>import("./shell.7de892e9.js").then(function(t){return t.s}),[]);case"sieve":return ct(()=>import("./sieve.d0b23d2d.js").then(function(t){return t.s}),[]);case"slim":return ct(()=>import("./slim.06a7eabb.js").then(function(t){return t.s}),["assets/slim.06a7eabb.js","assets/htmlmixed.b4abda11.js","assets/javascript.0f987dbc.js","assets/css.585f2cb0.js","assets/ruby.77181664.js"]);case"smalltalk":return ct(()=>import("./smalltalk.4a61691e.js").then(function(t){return t.s}),[]);case"smarty":return ct(()=>import("./smarty.dd10b12f.js").then(function(t){return t.s}),[]);case"solr":return ct(()=>import("./solr.44aceea2.js").then(function(t){return t.s}),[]);case"soy":return ct(()=>import("./soy.556b0f73.js").then(function(t){return t.s}),["assets/soy.556b0f73.js","assets/htmlmixed.b4abda11.js","assets/javascript.0f987dbc.js","assets/css.585f2cb0.js"]);case"sparql":return ct(()=>import("./sparql.aa44f70b.js").then(function(t){return t.s}),[]);case"spreadsheet":return ct(()=>import("./spreadsheet.f8b42bd2.js").then(function(t){return t.s}),[]);case"sql":return ct(()=>import("./sql.90fc9d3c.js").then(function(t){return t.s}),[]);case"stex":return ct(()=>import("./stex.ab2d9a38.js").then(function(t){return t.s}),[]);case"stylus":return ct(()=>import("./stylus.f097fe6e.js").then(function(t){return t.s}),[]);case"swift":return ct(()=>import("./swift.2c94ae8d.js").then(function(t){return t.s}),[]);case"tcl":return ct(()=>import("./tcl.a233f5ee.js").then(function(t){return t.t}),[]);case"textile":return ct(()=>import("./textile.4e44687a.js").then(function(t){return t.t}),[]);case"tiddlywiki":return ct(()=>import("./tiddlywiki.81993c15.js").then(function(t){return t.t}),[]);case"tiki":return ct(()=>import("./tiki.5fba512d.js").then(function(t){return t.t}),[]);case"toml":return ct(()=>import("./toml.0a35f429.js").then(function(t){return t.t}),[]);case"tornado":return ct(()=>import("./tornado.5d61b40e.js").then(function(t){return t.t}),["assets/tornado.5d61b40e.js","assets/htmlmixed.b4abda11.js","assets/javascript.0f987dbc.js","assets/css.585f2cb0.js","assets/overlay.0d815e1c.js"]);case"troff":return ct(()=>import("./troff.ff3d44c9.js").then(function(t){return t.t}),[]);case"ttcn":return ct(()=>import("./ttcn.f456167c.js").then(function(t){return t.t}),[]);case"ttcn-cfg":return ct(()=>import("./ttcn-cfg.46e427d6.js").then(function(t){return t.t}),[]);case"turtle":return ct(()=>import("./turtle.1a23c99d.js").then(function(t){return t.t}),[]);case"twig":return ct(()=>import("./twig.e3c621bb.js").then(function(t){return t.t}),["assets/twig.e3c621bb.js","assets/multiplex.34a284fc.js"]);case"vb":return ct(()=>import("./vb.dcd27019.js").then(function(t){return t.v}),[]);case"vbscript":return ct(()=>import("./vbscript.46374125.js").then(function(t){return t.v}),[]);case"velocity":return ct(()=>import("./velocity.304c4a9a.js").then(function(t){return t.v}),[]);case"verilog":return ct(()=>import("./verilog.6a207823.js").then(function(t){return t.v}),[]);case"vhdl":return ct(()=>import("./vhdl.1473d302.js").then(function(t){return t.v}),[]);case"vue":return ct(()=>import("./vue.1240f8e1.js").then(function(t){return t.v}),["assets/vue.1240f8e1.js","assets/overlay.0d815e1c.js","assets/javascript.0f987dbc.js","assets/coffeescript.3fea5290.js","assets/css.585f2cb0.js","assets/sass.b73c972a.js","assets/stylus.f097fe6e.js","assets/pug.902e44de.js","assets/htmlmixed.b4abda11.js","assets/handlebars.2683bde5.js","assets/multiplex.34a284fc.js","assets/simple.1606e663.js"]);case"wast":return ct(()=>import("./wast.070e9cb4.js").then(function(t){return t.w}),["assets/wast.070e9cb4.js","assets/simple.1606e663.js"]);case"webidl":return ct(()=>import("./webidl.81afb130.js").then(function(t){return t.w}),[]);case"xml":return ct(()=>Promise.resolve().then(function(){return ABe}),void 0);case"xquery":return ct(()=>import("./xquery.58d37345.js").then(function(t){return t.x}),[]);case"yacas":return ct(()=>import("./yacas.be272580.js").then(function(t){return t.y}),[]);case"yaml":return ct(()=>import("./yaml.1779a883.js").then(function(t){return t.y}),[]);case"yaml-frontmatter":return ct(()=>import("./yaml-frontmatter.4d2a9afa.js").then(function(t){return t.y}),["assets/yaml-frontmatter.4d2a9afa.js","assets/yaml.1779a883.js"]);case"z80":return ct(()=>import("./z80.f2bb6986.js").then(function(t){return t.z}),[]);default:return Promise.resolve()}}function Z4(e={throttle:100}){const t=ze(0),n=ze(0),i=()=>{t.value=window.innerWidth,n.value=window.innerHeight},a=lt.exports.throttle(i,e.throttle);return WC(i),Lo(()=>{window.addEventListener("resize",a,{passive:!0})}),Lc(()=>{window.removeEventListener("resize",a)}),{width:t,height:n}}const tBe=$t({props:{disabled:{type:Boolean,default:!1},value:{type:[String,Object,Array,Number,Boolean],default:null},altOptions:{type:Object,default:null},template:{type:String,default:null},lineNumber:{type:Boolean,default:!0},lineWrapping:{type:Boolean,default:!1},placeholder:{type:String,default:null},language:{type:String,default:"plaintext"},type:{type:String,default:null}},emits:["input"],setup(e,{emit:t}){const{t:n}=yn(),{width:i}=Z4(),a=ze(null);let o;Lo(async()=>{a.value&&(await l(v.value),await bS(v.value.mode),o=Up(a.value,{...v.value,value:r.value}),o.setOption("mode",{name:"javascript "}),await s(),o.on("change",(y,{origin:k})=>{if(k==="setValue")return;const w=y.getValue();if(e.type==="json"){if(w.length===0)return t("input",null);try{const D=JSON.parse(w);return typeof D!="string"?t("input",D):t("input",w)}catch{}}else t("input",w)}))});const r=Ee(()=>e.value===null?"":e.type==="json"||typeof e.value=="object"?JSON.stringify(e.value,null,4):e.value);Zn(()=>e.language,()=>{s()}),Zn(r,()=>{e.type==="json"&&(o==null?void 0:o.getValue())===e.value||(o==null?void 0:o.getValue())!==r.value&&(o==null||o.setValue(r.value||""))});async function s(){if(o){const y=e.language.toLowerCase();if(e.type==="json"||y==="json"){await ct(()=>import("./javascript.0f987dbc.js").then(function(w){return w.j}),[]);const k=await ct(()=>import("./jsonlint.aae0c1e4.js").then(function(w){return w.j}),[]);o.setOption("mode",{name:"javascript",json:!0}),Up.registerHelper("lint","json",w=>{const D=[],A=k.parser;if(A.parseError=(L,T)=>{const z=T.loc;D.push({from:Up.Pos(z.first_line-1,z.first_column),to:Up.Pos(z.last_line-1,z.last_column),message:L})},w.length>0)try{k.parse(w)}catch{}return D})}else y==="plaintext"?o.setOption("mode",{name:"plaintext"}):(await bS(y),o.setOption("mode",{name:y}))}}async function l(y){const k=[];y&&y.size>0&&(y.styleActiveLine&&k.push(ct(()=>import("./active-line.5c42d9f0.js").then(function(w){return w.a}),[])),y.markSelection&&k.push(ct(()=>import("./mark-selection.86c6319e.js").then(function(w){return w.m}),[])),y.highlightSelectionMatches&&k.push(ct(()=>import("./match-highlighter.a4271354.js").then(function(w){return w.m}),[])),y.autoRefresh&&k.push(ct(()=>import("./autorefresh.cc507a91.js").then(function(w){return w.a}),[])),y.matchBrackets&&k.push(ct(()=>Promise.resolve().then(function(){return eBe}),void 0)),(y.hintOptions||y.showHint)&&(k.push(ct(()=>import("./show-hint.7942c136.js").then(function(w){return w.s}),[])),k.push(ct(()=>Promise.resolve({}),["assets/show-hint.a1d6f238.css"])),k.push(ct(()=>import("./javascript-hint.973e4b78.js").then(function(w){return w.j}),[]))),await Promise.all(k))}const f=Ee(()=>o?o.lineCount():0),p=Ee(()=>i.value<600?e.disabled?"nocursor":!1:e.disabled),h={tabSize:4,autoRefresh:!0,indentUnit:4,styleActiveLine:!0,highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0,delay:100},hintOptions:{completeSingle:!0,hint:()=>{}},matchBrackets:!0,showCursorWhenSelecting:!0,lineWiseCopyCut:!1,theme:"default",extraKeys:{Ctrl:"autocomplete"},lint:!0,gutters:["CodeMirror-lint-markers"]},v=Ee(()=>Object.assign({},h,{lineNumbers:e.lineNumber,lineWrapping:e.lineWrapping,readOnly:p.value,cursorBlinkRate:e.disabled?-1:530,mode:e.language,placeholder:e.placeholder},e.altOptions?e.altOptions:{}));return Zn(()=>e.disabled,y=>{o==null||o.setOption("readOnly",p.value),o==null||o.setOption("cursorBlinkRate",y?-1:530)},{immediate:!0}),Zn(()=>e.altOptions,async y=>{if(!(!y||y.size===0)){await l(y);for(const k in y)o==null||o.setOption(k,y[k])}}),Zn(()=>e.lineNumber,y=>{o==null||o.setOption("lineNumbers",y)}),{t:n,cmOptions:v,lineCount:f,codemirrorEl:a,stringValue:r,fillTemplate:_,formatTitle:ql};function _(){if(e.type==="json")try{t("input",JSON.parse(e.template))}finally{}else t("input",e.template)}}}),nBe={ref:"codemirrorEl"};function iBe(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-button"),l=pi("tooltip");return G(),Me("div",{class:wn(["input-code codemirror-custom-styles",{disabled:e.disabled}])},[ke("div",nBe,null,512),e.template?dn((G(),_e(s,{key:0,small:"",icon:"",secondary:"",onClick:e.fillTemplate},{default:R(()=>[F(r,{name:"playlist_add"})]),_:1},8,["onClick"])),[[l,e.t("fill_template"),void 0,{left:!0}]]):Je("",!0)],2)}var rBe=Ot(tBe,[["render",iBe],["__scopeId","data-v-20d03c2e"]]),aBe=`<svg width="156" height="96" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2503
|
+
`,a(W.head.line,0)):T.replaceRange(T.getRange(W.from(),W.to()),W.from())}T.scrollIntoView()})};function y(T,z,B){if(T.isReadOnly())return n.Pass;for(var W=T.listSelections(),N=[],K,re=0;re<W.length;re++){var se=W[re];if(!se.empty()){for(var ce=se.from().line,de=se.to().line;re<W.length-1&&W[re+1].from().line==de;)de=W[++re].to().line;W[re].to().ch||de--,N.push(ce,de)}}N.length?K=!0:N.push(T.firstLine(),T.lastLine()),T.operation(function(){for(var ge=[],Ce=0;Ce<N.length;Ce+=2){var Oe=N[Ce],Ve=N[Ce+1],Ye=a(Oe,0),ot=a(Ve),Te=T.getRange(Ye,ot,!1);z?Te.sort(function(it,Le){return it<Le?-B:it==Le?0:B}):Te.sort(function(it,Le){var De=it.toUpperCase(),ht=Le.toUpperCase();return De!=ht&&(it=De,Le=ht),it<Le?-B:it==Le?0:B}),T.replaceRange(Te,Ye,ot),K&&ge.push({anchor:Ye,head:a(Ve+1,0)})}K&&T.setSelections(ge,0)})}i.sortLines=function(T){y(T,!0,1)},i.reverseSortLines=function(T){y(T,!0,-1)},i.sortLinesInsensitive=function(T){y(T,!1,1)},i.reverseSortLinesInsensitive=function(T){y(T,!1,-1)},i.nextBookmark=function(T){var z=T.state.sublimeBookmarks;if(z)for(;z.length;){var B=z.shift(),W=B.find();if(W)return z.push(B),T.setSelection(W.from,W.to)}},i.prevBookmark=function(T){var z=T.state.sublimeBookmarks;if(z)for(;z.length;){z.unshift(z.pop());var B=z[z.length-1].find();if(!B)z.pop();else return T.setSelection(B.from,B.to)}},i.toggleBookmark=function(T){for(var z=T.listSelections(),B=T.state.sublimeBookmarks||(T.state.sublimeBookmarks=[]),W=0;W<z.length;W++){for(var N=z[W].from(),K=z[W].to(),re=z[W].empty()?T.findMarksAt(N):T.findMarks(N,K),se=0;se<re.length;se++)if(re[se].sublimeBookmark){re[se].clear();for(var ce=0;ce<B.length;ce++)B[ce]==re[se]&&B.splice(ce--,1);break}se==re.length&&B.push(T.markText(N,K,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},i.clearBookmarks=function(T){var z=T.state.sublimeBookmarks;if(z)for(var B=0;B<z.length;B++)z[B].clear();z.length=0},i.selectBookmarks=function(T){var z=T.state.sublimeBookmarks,B=[];if(z)for(var W=0;W<z.length;W++){var N=z[W].find();N?B.push({anchor:N.from,head:N.to}):z.splice(W--,0)}B.length&&T.setSelections(B,0)};function k(T,z){T.operation(function(){for(var B=T.listSelections(),W=[],N=[],K=0;K<B.length;K++){var re=B[K];re.empty()?(W.push(K),N.push("")):N.push(z(T.getRange(re.from(),re.to())))}T.replaceSelections(N,"around","case");for(var K=W.length-1,se;K>=0;K--){var re=B[W[K]];if(!(se&&n.cmpPos(re.head,se)>0)){var ce=l(T,re.head);se=ce.from,T.replaceRange(z(ce.word),ce.from,ce.to)}}})}i.smartBackspace=function(T){if(T.somethingSelected())return n.Pass;T.operation(function(){for(var z=T.listSelections(),B=T.getOption("indentUnit"),W=z.length-1;W>=0;W--){var N=z[W].head,K=T.getRange({line:N.line,ch:0},N),re=n.countColumn(K,null,T.getOption("tabSize")),se=T.findPosH(N,-1,"char",!1);if(K&&!/\S/.test(K)&&re%B==0){var ce=new a(N.line,n.findColumn(K,re-B,B));ce.ch!=N.ch&&(se=ce)}T.replaceRange("",se,N,"+delete")}})},i.delLineRight=function(T){T.operation(function(){for(var z=T.listSelections(),B=z.length-1;B>=0;B--)T.replaceRange("",z[B].anchor,a(z[B].to().line),"+delete");T.scrollIntoView()})},i.upcaseAtCursor=function(T){k(T,function(z){return z.toUpperCase()})},i.downcaseAtCursor=function(T){k(T,function(z){return z.toLowerCase()})},i.setSublimeMark=function(T){T.state.sublimeMark&&T.state.sublimeMark.clear(),T.state.sublimeMark=T.setBookmark(T.getCursor())},i.selectToSublimeMark=function(T){var z=T.state.sublimeMark&&T.state.sublimeMark.find();z&&T.setSelection(T.getCursor(),z)},i.deleteToSublimeMark=function(T){var z=T.state.sublimeMark&&T.state.sublimeMark.find();if(z){var B=T.getCursor(),W=z;if(n.cmpPos(B,W)>0){var N=W;W=B,B=N}T.state.sublimeKilled=T.getRange(B,W),T.replaceRange("",B,W)}},i.swapWithSublimeMark=function(T){var z=T.state.sublimeMark&&T.state.sublimeMark.find();z&&(T.state.sublimeMark.clear(),T.state.sublimeMark=T.setBookmark(T.getCursor()),T.setCursor(z))},i.sublimeYank=function(T){T.state.sublimeKilled!=null&&T.replaceSelection(T.state.sublimeKilled,null,"paste")},i.showInCenter=function(T){var z=T.cursorCoords(null,"local");T.scrollTo(null,(z.top+z.bottom)/2-T.getScrollInfo().clientHeight/2)};function w(T){var z=T.getCursor("from"),B=T.getCursor("to");if(n.cmpPos(z,B)==0){var W=l(T,z);if(!W.word)return;z=W.from,B=W.to}return{from:z,to:B,query:T.getRange(z,B),word:W}}function D(T,z){var B=w(T);if(!!B){var W=B.query,N=T.getSearchCursor(W,z?B.to:B.from);(z?N.findNext():N.findPrevious())?T.setSelection(N.from(),N.to()):(N=T.getSearchCursor(W,z?a(T.firstLine(),0):T.clipPos(a(T.lastLine()))),(z?N.findNext():N.findPrevious())?T.setSelection(N.from(),N.to()):B.word&&T.setSelection(B.from,B.to))}}i.findUnder=function(T){D(T,!0)},i.findUnderPrevious=function(T){D(T,!1)},i.findAllUnder=function(T){var z=w(T);if(!!z){for(var B=T.getSearchCursor(z.query),W=[],N=-1;B.findNext();)W.push({anchor:B.from(),head:B.to()}),B.from().line<=z.from.line&&B.from().ch<=z.from.ch&&N++;T.setSelections(W,N)}};var A=n.keyMap;A.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},n.normalizeKeyMap(A.macSublime),A.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},n.normalizeKeyMap(A.pcSublime);var L=A.default==A.macDefault;A.sublime=L?A.macSublime:A.pcSublime})})();function bS(e){switch(e){case"apl":return ct(()=>import("./apl.9e95400b.js").then(function(t){return t.a}),[]);case"asciiarmor":return ct(()=>import("./asciiarmor.e53bc239.js").then(function(t){return t.a}),[]);case"asn.1":return ct(()=>import("./asn.1.8d915c0c.js").then(function(t){return t.a}),[]);case"asterisk":return ct(()=>import("./asterisk.fa6be1a0.js").then(function(t){return t.a}),[]);case"brainfuck":return ct(()=>import("./brainfuck.af5df7f4.js").then(function(t){return t.b}),[]);case"clike":return ct(()=>import("./clike.ee280809.js").then(function(t){return t.c}),[]);case"clojure":return ct(()=>import("./clojure.a146bf23.js").then(function(t){return t.c}),[]);case"cmake":return ct(()=>import("./cmake.6b59d5a5.js").then(function(t){return t.c}),[]);case"cobol":return ct(()=>import("./cobol.08192929.js").then(function(t){return t.c}),[]);case"coffeescript":return ct(()=>import("./coffeescript.9e2efa26.js").then(function(t){return t.c}),[]);case"commonlisp":return ct(()=>import("./commonlisp.78d28584.js").then(function(t){return t.c}),[]);case"crystal":return ct(()=>import("./crystal.eb2634a7.js").then(function(t){return t.c}),[]);case"css":return ct(()=>import("./css.a2d713ed.js").then(function(t){return t.c}),[]);case"cypher":return ct(()=>import("./cypher.c949e68a.js").then(function(t){return t.c}),[]);case"d":return ct(()=>import("./d.2a37c670.js").then(function(t){return t.d}),[]);case"dart":return ct(()=>import("./dart.c6dbedeb.js").then(function(t){return t.d}),["assets/dart.c6dbedeb.js","assets/clike.ee280809.js"]);case"diff":return ct(()=>import("./diff.8be02862.js").then(function(t){return t.d}),[]);case"django":return ct(()=>import("./django.ee5dacbf.js").then(function(t){return t.d}),["assets/django.ee5dacbf.js","assets/htmlmixed.4a641ad9.js","assets/javascript.e7187534.js","assets/css.a2d713ed.js","assets/overlay.6ab0a439.js"]);case"dockerfile":return ct(()=>import("./dockerfile.2cbe1412.js").then(function(t){return t.d}),["assets/dockerfile.2cbe1412.js","assets/simple.1606e663.js"]);case"dtd":return ct(()=>import("./dtd.613366e7.js").then(function(t){return t.d}),[]);case"dylan":return ct(()=>import("./dylan.213591bc.js").then(function(t){return t.d}),[]);case"ebnf":return ct(()=>import("./ebnf.f10d9554.js").then(function(t){return t.e}),[]);case"ecl":return ct(()=>import("./ecl.ea8251b5.js").then(function(t){return t.e}),[]);case"eiffel":return ct(()=>import("./eiffel.994a28c8.js").then(function(t){return t.e}),[]);case"elm":return ct(()=>import("./elm.62eeed51.js").then(function(t){return t.e}),[]);case"erlang":return ct(()=>import("./erlang.3768ffe4.js").then(function(t){return t.e}),[]);case"factor":return ct(()=>import("./factor.25b7e5ca.js").then(function(t){return t.f}),["assets/factor.25b7e5ca.js","assets/simple.1606e663.js"]);case"fcl":return ct(()=>import("./fcl.4e536c5f.js").then(function(t){return t.f}),[]);case"forth":return ct(()=>import("./forth.60806310.js").then(function(t){return t.f}),[]);case"fortran":return ct(()=>import("./fortran.59922aba.js").then(function(t){return t.f}),[]);case"gas":return ct(()=>import("./gas.675738c7.js").then(function(t){return t.g}),[]);case"gfm":return ct(()=>import("./gfm.2c1ac50e.js").then(function(t){return t.g}),["assets/gfm.2c1ac50e.js","assets/overlay.6ab0a439.js"]);case"gherkin":return ct(()=>import("./gherkin.774e36f6.js").then(function(t){return t.g}),[]);case"go":return ct(()=>import("./go.bff42e4e.js").then(function(t){return t.g}),[]);case"groovy":return ct(()=>import("./groovy.2178a0f1.js").then(function(t){return t.g}),[]);case"haml":return ct(()=>import("./haml.315dd2c0.js").then(function(t){return t.h}),["assets/haml.315dd2c0.js","assets/htmlmixed.4a641ad9.js","assets/javascript.e7187534.js","assets/css.a2d713ed.js","assets/ruby.6db5c270.js"]);case"handlebars":return ct(()=>import("./handlebars.986c86d4.js").then(function(t){return t.h}),["assets/handlebars.986c86d4.js","assets/multiplex.c53fe1f2.js","assets/simple.1606e663.js"]);case"haskell":return ct(()=>import("./haskell.46e5ce8f.js").then(function(t){return t.h}),[]);case"haskell-literate":return ct(()=>import("./haskell-literate.770d661e.js").then(function(t){return t.h}),["assets/haskell-literate.770d661e.js","assets/haskell.46e5ce8f.js"]);case"haxe":return ct(()=>import("./haxe.d48c4abd.js").then(function(t){return t.h}),[]);case"htmlembedded":return ct(()=>import("./htmlembedded.f6dde48f.js").then(function(t){return t.h}),["assets/htmlembedded.f6dde48f.js","assets/htmlmixed.4a641ad9.js","assets/javascript.e7187534.js","assets/css.a2d713ed.js","assets/multiplex.c53fe1f2.js"]);case"htmlmixed":return ct(()=>import("./htmlmixed.4a641ad9.js").then(function(t){return t.h}),["assets/htmlmixed.4a641ad9.js","assets/javascript.e7187534.js","assets/css.a2d713ed.js"]);case"http":return ct(()=>import("./http.3015a70d.js").then(function(t){return t.h}),[]);case"idl":return ct(()=>import("./idl.f2f96147.js").then(function(t){return t.i}),[]);case"javascript":return ct(()=>import("./javascript.e7187534.js").then(function(t){return t.j}),[]);case"jinja2":return ct(()=>import("./jinja2.b92b3bf4.js").then(function(t){return t.j}),[]);case"jsx":return ct(()=>import("./jsx.cd35bc1f.js").then(function(t){return t.j}),["assets/jsx.cd35bc1f.js","assets/javascript.e7187534.js"]);case"julia":return ct(()=>import("./julia.f2e27ad8.js").then(function(t){return t.j}),[]);case"livescript":return ct(()=>import("./livescript.f9157170.js").then(function(t){return t.l}),[]);case"lua":return ct(()=>import("./lua.fd37e5a7.js").then(function(t){return t.l}),[]);case"markdown":return ct(()=>Promise.resolve().then(function(){return DBe}),void 0);case"mathematica":return ct(()=>import("./mathematica.5933a7bf.js").then(function(t){return t.m}),[]);case"mbox":return ct(()=>import("./mbox.48b2cada.js").then(function(t){return t.m}),[]);case"mirc":return ct(()=>import("./mirc.577ffc8b.js").then(function(t){return t.m}),[]);case"mllike":return ct(()=>import("./mllike.71874c4d.js").then(function(t){return t.m}),[]);case"modelica":return ct(()=>import("./modelica.910d3adb.js").then(function(t){return t.m}),[]);case"mscgen":return ct(()=>import("./mscgen.12b68d55.js").then(function(t){return t.m}),[]);case"mumps":return ct(()=>import("./mumps.0ffff562.js").then(function(t){return t.m}),[]);case"nginx":return ct(()=>import("./nginx.61bbdd3d.js").then(function(t){return t.n}),[]);case"nsis":return ct(()=>import("./nsis.91b5976a.js").then(function(t){return t.n}),["assets/nsis.91b5976a.js","assets/simple.1606e663.js"]);case"ntriples":return ct(()=>import("./ntriples.4da65405.js").then(function(t){return t.n}),[]);case"octave":return ct(()=>import("./octave.4caf8800.js").then(function(t){return t.o}),[]);case"oz":return ct(()=>import("./oz.f353e7c0.js").then(function(t){return t.o}),[]);case"pascal":return ct(()=>import("./pascal.81884765.js").then(function(t){return t.p}),[]);case"pegjs":return ct(()=>import("./pegjs.9b05a647.js").then(function(t){return t.p}),["assets/pegjs.9b05a647.js","assets/javascript.e7187534.js"]);case"perl":return ct(()=>import("./perl.1864a477.js").then(function(t){return t.p}),[]);case"php":return ct(()=>import("./php.005144e0.js").then(function(t){return t.p}),["assets/php.005144e0.js","assets/htmlmixed.4a641ad9.js","assets/javascript.e7187534.js","assets/css.a2d713ed.js","assets/clike.ee280809.js"]);case"pig":return ct(()=>import("./pig.849ddb42.js").then(function(t){return t.p}),[]);case"powershell":return ct(()=>import("./powershell.bb5a2d18.js").then(function(t){return t.p}),[]);case"properties":return ct(()=>import("./properties.fdd23eab.js").then(function(t){return t.p}),[]);case"protobuf":return ct(()=>import("./protobuf.da0cb1b3.js").then(function(t){return t.p}),[]);case"pug":return ct(()=>import("./pug.a693bc7a.js").then(function(t){return t.p}),["assets/pug.a693bc7a.js","assets/javascript.e7187534.js","assets/css.a2d713ed.js","assets/htmlmixed.4a641ad9.js"]);case"puppet":return ct(()=>import("./puppet.da6ba66e.js").then(function(t){return t.p}),[]);case"python":return ct(()=>import("./python.03cf4e30.js").then(function(t){return t.p}),[]);case"q":return ct(()=>import("./q.bb726ddc.js").then(function(t){return t.q}),[]);case"r":return ct(()=>import("./r.d66588c8.js").then(function(t){return t.r}),[]);case"rpm":return ct(()=>import("./rpm.d7012013.js").then(function(t){return t.r}),[]);case"rst":return ct(()=>import("./rst.56d68830.js").then(function(t){return t.r}),["assets/rst.56d68830.js","assets/python.03cf4e30.js","assets/stex.6a9989ca.js","assets/overlay.6ab0a439.js"]);case"ruby":return ct(()=>import("./ruby.6db5c270.js").then(function(t){return t.r}),[]);case"rust":return ct(()=>import("./rust.8f526a93.js").then(function(t){return t.r}),["assets/rust.8f526a93.js","assets/simple.1606e663.js"]);case"sas":return ct(()=>import("./sas.05b84ccc.js").then(function(t){return t.s}),[]);case"sass":return ct(()=>import("./sass.b3a2e00a.js").then(function(t){return t.s}),["assets/sass.b3a2e00a.js","assets/css.a2d713ed.js"]);case"scheme":return ct(()=>import("./scheme.f2ccc6ec.js").then(function(t){return t.s}),[]);case"shell":return ct(()=>import("./shell.35fbb76b.js").then(function(t){return t.s}),[]);case"sieve":return ct(()=>import("./sieve.b326a040.js").then(function(t){return t.s}),[]);case"slim":return ct(()=>import("./slim.cdf5ce1a.js").then(function(t){return t.s}),["assets/slim.cdf5ce1a.js","assets/htmlmixed.4a641ad9.js","assets/javascript.e7187534.js","assets/css.a2d713ed.js","assets/ruby.6db5c270.js"]);case"smalltalk":return ct(()=>import("./smalltalk.28f25b00.js").then(function(t){return t.s}),[]);case"smarty":return ct(()=>import("./smarty.3ffc5d45.js").then(function(t){return t.s}),[]);case"solr":return ct(()=>import("./solr.bf049032.js").then(function(t){return t.s}),[]);case"soy":return ct(()=>import("./soy.97d895d7.js").then(function(t){return t.s}),["assets/soy.97d895d7.js","assets/htmlmixed.4a641ad9.js","assets/javascript.e7187534.js","assets/css.a2d713ed.js"]);case"sparql":return ct(()=>import("./sparql.f7c11eb4.js").then(function(t){return t.s}),[]);case"spreadsheet":return ct(()=>import("./spreadsheet.583570fc.js").then(function(t){return t.s}),[]);case"sql":return ct(()=>import("./sql.581815c1.js").then(function(t){return t.s}),[]);case"stex":return ct(()=>import("./stex.6a9989ca.js").then(function(t){return t.s}),[]);case"stylus":return ct(()=>import("./stylus.6b1b2f94.js").then(function(t){return t.s}),[]);case"swift":return ct(()=>import("./swift.b1b97d51.js").then(function(t){return t.s}),[]);case"tcl":return ct(()=>import("./tcl.9e42954d.js").then(function(t){return t.t}),[]);case"textile":return ct(()=>import("./textile.d8117534.js").then(function(t){return t.t}),[]);case"tiddlywiki":return ct(()=>import("./tiddlywiki.e9e030d1.js").then(function(t){return t.t}),[]);case"tiki":return ct(()=>import("./tiki.627c91cc.js").then(function(t){return t.t}),[]);case"toml":return ct(()=>import("./toml.ada24f3a.js").then(function(t){return t.t}),[]);case"tornado":return ct(()=>import("./tornado.c72c7dd4.js").then(function(t){return t.t}),["assets/tornado.c72c7dd4.js","assets/htmlmixed.4a641ad9.js","assets/javascript.e7187534.js","assets/css.a2d713ed.js","assets/overlay.6ab0a439.js"]);case"troff":return ct(()=>import("./troff.11b7056e.js").then(function(t){return t.t}),[]);case"ttcn":return ct(()=>import("./ttcn.78233af9.js").then(function(t){return t.t}),[]);case"ttcn-cfg":return ct(()=>import("./ttcn-cfg.afb1561e.js").then(function(t){return t.t}),[]);case"turtle":return ct(()=>import("./turtle.77f61426.js").then(function(t){return t.t}),[]);case"twig":return ct(()=>import("./twig.84e27436.js").then(function(t){return t.t}),["assets/twig.84e27436.js","assets/multiplex.c53fe1f2.js"]);case"vb":return ct(()=>import("./vb.11aab2ba.js").then(function(t){return t.v}),[]);case"vbscript":return ct(()=>import("./vbscript.11dc0996.js").then(function(t){return t.v}),[]);case"velocity":return ct(()=>import("./velocity.8f652837.js").then(function(t){return t.v}),[]);case"verilog":return ct(()=>import("./verilog.9b0b4ff6.js").then(function(t){return t.v}),[]);case"vhdl":return ct(()=>import("./vhdl.1eeb9dd1.js").then(function(t){return t.v}),[]);case"vue":return ct(()=>import("./vue.853d1839.js").then(function(t){return t.v}),["assets/vue.853d1839.js","assets/overlay.6ab0a439.js","assets/javascript.e7187534.js","assets/coffeescript.9e2efa26.js","assets/css.a2d713ed.js","assets/sass.b3a2e00a.js","assets/stylus.6b1b2f94.js","assets/pug.a693bc7a.js","assets/htmlmixed.4a641ad9.js","assets/handlebars.986c86d4.js","assets/multiplex.c53fe1f2.js","assets/simple.1606e663.js"]);case"wast":return ct(()=>import("./wast.9145f947.js").then(function(t){return t.w}),["assets/wast.9145f947.js","assets/simple.1606e663.js"]);case"webidl":return ct(()=>import("./webidl.3cd27141.js").then(function(t){return t.w}),[]);case"xml":return ct(()=>Promise.resolve().then(function(){return ABe}),void 0);case"xquery":return ct(()=>import("./xquery.0d6b6717.js").then(function(t){return t.x}),[]);case"yacas":return ct(()=>import("./yacas.5ee3e34b.js").then(function(t){return t.y}),[]);case"yaml":return ct(()=>import("./yaml.0426b27a.js").then(function(t){return t.y}),[]);case"yaml-frontmatter":return ct(()=>import("./yaml-frontmatter.995d4736.js").then(function(t){return t.y}),["assets/yaml-frontmatter.995d4736.js","assets/yaml.0426b27a.js"]);case"z80":return ct(()=>import("./z80.415e79a5.js").then(function(t){return t.z}),[]);default:return Promise.resolve()}}function Z4(e={throttle:100}){const t=ze(0),n=ze(0),i=()=>{t.value=window.innerWidth,n.value=window.innerHeight},a=lt.exports.throttle(i,e.throttle);return WC(i),Lo(()=>{window.addEventListener("resize",a,{passive:!0})}),Lc(()=>{window.removeEventListener("resize",a)}),{width:t,height:n}}const tBe=$t({props:{disabled:{type:Boolean,default:!1},value:{type:[String,Object,Array,Number,Boolean],default:null},altOptions:{type:Object,default:null},template:{type:String,default:null},lineNumber:{type:Boolean,default:!0},lineWrapping:{type:Boolean,default:!1},placeholder:{type:String,default:null},language:{type:String,default:"plaintext"},type:{type:String,default:null}},emits:["input"],setup(e,{emit:t}){const{t:n}=yn(),{width:i}=Z4(),a=ze(null);let o;Lo(async()=>{a.value&&(await l(v.value),await bS(v.value.mode),o=Up(a.value,{...v.value,value:r.value}),o.setOption("mode",{name:"javascript "}),await s(),o.on("change",(y,{origin:k})=>{if(k==="setValue")return;const w=y.getValue();if(e.type==="json"){if(w.length===0)return t("input",null);try{const D=JSON.parse(w);return typeof D!="string"?t("input",D):t("input",w)}catch{}}else t("input",w)}))});const r=Ee(()=>e.value===null?"":e.type==="json"||typeof e.value=="object"?JSON.stringify(e.value,null,4):e.value);Zn(()=>e.language,()=>{s()}),Zn(r,()=>{e.type==="json"&&(o==null?void 0:o.getValue())===e.value||(o==null?void 0:o.getValue())!==r.value&&(o==null||o.setValue(r.value||""))});async function s(){if(o){const y=e.language.toLowerCase();if(e.type==="json"||y==="json"){await ct(()=>import("./javascript.e7187534.js").then(function(w){return w.j}),[]);const k=await ct(()=>import("./jsonlint.aae0c1e4.js").then(function(w){return w.j}),[]);o.setOption("mode",{name:"javascript",json:!0}),Up.registerHelper("lint","json",w=>{const D=[],A=k.parser;if(A.parseError=(L,T)=>{const z=T.loc;D.push({from:Up.Pos(z.first_line-1,z.first_column),to:Up.Pos(z.last_line-1,z.last_column),message:L})},w.length>0)try{k.parse(w)}catch{}return D})}else y==="plaintext"?o.setOption("mode",{name:"plaintext"}):(await bS(y),o.setOption("mode",{name:y}))}}async function l(y){const k=[];y&&y.size>0&&(y.styleActiveLine&&k.push(ct(()=>import("./active-line.135641ca.js").then(function(w){return w.a}),[])),y.markSelection&&k.push(ct(()=>import("./mark-selection.5ffc9e99.js").then(function(w){return w.m}),[])),y.highlightSelectionMatches&&k.push(ct(()=>import("./match-highlighter.55770437.js").then(function(w){return w.m}),[])),y.autoRefresh&&k.push(ct(()=>import("./autorefresh.da8f1d1d.js").then(function(w){return w.a}),[])),y.matchBrackets&&k.push(ct(()=>Promise.resolve().then(function(){return eBe}),void 0)),(y.hintOptions||y.showHint)&&(k.push(ct(()=>import("./show-hint.2f9efc42.js").then(function(w){return w.s}),[])),k.push(ct(()=>Promise.resolve({}),["assets/show-hint.a1d6f238.css"])),k.push(ct(()=>import("./javascript-hint.da53c929.js").then(function(w){return w.j}),[]))),await Promise.all(k))}const f=Ee(()=>o?o.lineCount():0),p=Ee(()=>i.value<600?e.disabled?"nocursor":!1:e.disabled),h={tabSize:4,autoRefresh:!0,indentUnit:4,styleActiveLine:!0,highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0,delay:100},hintOptions:{completeSingle:!0,hint:()=>{}},matchBrackets:!0,showCursorWhenSelecting:!0,lineWiseCopyCut:!1,theme:"default",extraKeys:{Ctrl:"autocomplete"},lint:!0,gutters:["CodeMirror-lint-markers"]},v=Ee(()=>Object.assign({},h,{lineNumbers:e.lineNumber,lineWrapping:e.lineWrapping,readOnly:p.value,cursorBlinkRate:e.disabled?-1:530,mode:e.language,placeholder:e.placeholder},e.altOptions?e.altOptions:{}));return Zn(()=>e.disabled,y=>{o==null||o.setOption("readOnly",p.value),o==null||o.setOption("cursorBlinkRate",y?-1:530)},{immediate:!0}),Zn(()=>e.altOptions,async y=>{if(!(!y||y.size===0)){await l(y);for(const k in y)o==null||o.setOption(k,y[k])}}),Zn(()=>e.lineNumber,y=>{o==null||o.setOption("lineNumbers",y)}),{t:n,cmOptions:v,lineCount:f,codemirrorEl:a,stringValue:r,fillTemplate:_,formatTitle:ql};function _(){if(e.type==="json")try{t("input",JSON.parse(e.template))}finally{}else t("input",e.template)}}}),nBe={ref:"codemirrorEl"};function iBe(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-button"),l=pi("tooltip");return G(),Me("div",{class:wn(["input-code codemirror-custom-styles",{disabled:e.disabled}])},[ke("div",nBe,null,512),e.template?dn((G(),_e(s,{key:0,small:"",icon:"",secondary:"",onClick:e.fillTemplate},{default:R(()=>[F(r,{name:"playlist_add"})]),_:1},8,["onClick"])),[[l,e.t("fill_template"),void 0,{left:!0}]]):Je("",!0)],2)}var rBe=Ot(tBe,[["render",iBe],["__scopeId","data-v-20d03c2e"]]),aBe=`<svg width="156" height="96" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2504
2504
|
<rect x="18" y="15" width="120" height="66" rx="6" fill="var(--background-page)" class="glow" />
|
|
2505
2505
|
<rect x="19" y="16" width="118" height="64" rx="5" stroke="var(--primary)" stroke-width="2" />
|
|
2506
2506
|
<rect x="28" y="25" width="6" height="6" rx="2" fill="var(--primary)" fill-opacity=".25" />
|
|
@@ -2550,7 +2550,7 @@ b`.split(/\n/).length!=3?function(g){for(var C=0,q=[],H=g.length;C<=H;){var J=g.
|
|
|
2550
2550
|
<rect x="92" y="39" width="30" height="6" rx="2" fill="var(--primary)" />
|
|
2551
2551
|
<rect x="72" y="49" width="50" height="6" rx="2" fill="var(--primary)" fill-opacity=".25" />
|
|
2552
2552
|
</svg>
|
|
2553
|
-
`;const kBe=XC(()=>ct(()=>import("./input-rich-text-html.e34edefb.js"),["assets/input-rich-text-html.e34edefb.js","assets/input-rich-text-html.c883b2df.css","assets/runtime-core.esm-bundler.32cac88a.js","assets/vue-i18n.ab96dd58.entry.js","assets/use-sync.3af8e920.js","assets/pinia.ee5b7a45.entry.js","assets/vue.runtime.esm-bundler.61bedc6f.js","assets/vue-router.4ad81e1d.entry.js"]));var SBe=Vr({id:"input-rich-text-html",name:"$t:interfaces.input-rich-text-html.wysiwyg",description:"$t:interfaces.input-rich-text-html.description",icon:"format_quote",component:kBe,types:["text"],group:"standard",preview:xBe,options:{standard:[{field:"toolbar",name:"$t:interfaces.input-rich-text-html.toolbar",type:"json",schema:{default_value:["bold","italic","underline","h1","h2","h3","numlist","bullist","removeformat","blockquote","customLink","customImage","customMedia","hr","code","fullscreen"]},meta:{width:"half",interface:"select-multiple-dropdown",options:{choices:[{value:"undo",text:"$t:wysiwyg_options.undo"},{value:"redo",text:"$t:wysiwyg_options.redo"},{value:"bold",text:"$t:wysiwyg_options.bold"},{value:"italic",text:"$t:wysiwyg_options.italic"},{value:"underline",text:"$t:wysiwyg_options.underline"},{value:"strikethrough",text:"$t:wysiwyg_options.strikethrough"},{value:"subscript",text:"$t:wysiwyg_options.subscript"},{value:"superscript",text:"$t:wysiwyg_options.superscript"},{value:"fontselect",text:"$t:wysiwyg_options.fontselect"},{value:"fontsizeselect",text:"$t:wysiwyg_options.fontsizeselect"},{value:"h1",text:"$t:wysiwyg_options.h1"},{value:"h2",text:"$t:wysiwyg_options.h2"},{value:"h3",text:"$t:wysiwyg_options.h3"},{value:"h4",text:"$t:wysiwyg_options.h4"},{value:"h5",text:"$t:wysiwyg_options.h5"},{value:"h6",text:"$t:wysiwyg_options.h6"},{value:"alignleft",text:"$t:wysiwyg_options.alignleft"},{value:"aligncenter",text:"$t:wysiwyg_options.aligncenter"},{value:"alignright",text:"$t:wysiwyg_options.alignright"},{value:"alignjustify",text:"$t:wysiwyg_options.alignjustify"},{value:"alignnone",text:"$t:wysiwyg_options.alignnone"},{value:"indent",text:"$t:wysiwyg_options.indent"},{value:"outdent",text:"$t:wysiwyg_options.outdent"},{value:"numlist",text:"$t:wysiwyg_options.numlist"},{value:"bullist",text:"$t:wysiwyg_options.bullist"},{value:"forecolor",text:"$t:wysiwyg_options.forecolor"},{value:"backcolor",text:"$t:wysiwyg_options.backcolor"},{value:"removeformat",text:"$t:wysiwyg_options.removeformat"},{value:"cut",text:"$t:wysiwyg_options.cut"},{value:"copy",text:"$t:wysiwyg_options.copy"},{value:"paste",text:"$t:wysiwyg_options.paste"},{value:"remove",text:"$t:wysiwyg_options.remove"},{value:"selectall",text:"$t:wysiwyg_options.selectall"},{value:"blockquote",text:"$t:wysiwyg_options.blockquote"},{value:"customLink",text:"$t:wysiwyg_options.link"},{value:"unlink",text:"$t:wysiwyg_options.unlink"},{value:"customImage",text:"$t:wysiwyg_options.image"},{value:"customMedia",text:"$t:wysiwyg_options.media"},{value:"table",text:"$t:wysiwyg_options.table"},{value:"hr",text:"$t:wysiwyg_options.hr"},{value:"code",text:"$t:wysiwyg_options.source_code"},{value:"fullscreen",text:"$t:wysiwyg_options.fullscreen"},{value:"visualaid",text:"$t:wysiwyg_options.visualaid"},{value:"ltr rtl",text:"$t:wysiwyg_options.directionality"}]}}},{field:"font",name:"$t:font",type:"string",meta:{width:"half",interface:"select-dropdown",options:{choices:[{text:"$t:sans_serif",value:"sans-serif"},{text:"$t:monospace",value:"monospace"},{text:"$t:serif",value:"serif"}]}},schema:{default_value:"sans-serif"}},{field:"folder",name:"$t:folder",type:"uuid",meta:{width:"half",interface:"system-folder",note:"$t:interfaces.input-rich-text-html.folder_note"},schema:{default_value:void 0}},{field:"imageToken",name:"$t:interfaces.input-rich-text-html.imageToken",type:"string",meta:{note:"$t:interfaces.input-rich-text-html.imageToken_label",width:"half",interface:"input"}}],advanced:[{field:"softLength",name:"$t:soft_length",type:"integer",meta:{width:"half",interface:"input",options:{placeholder:"255",min:1}}},{field:"customFormats",name:"$t:interfaces.input-rich-text-html.custom_formats",type:"json",meta:{interface:"code",options:{language:"json",template:JSON.stringify([{title:"My Custom Format",inline:"span",classes:"custom-wrapper",styles:{color:"#00ff00","font-size":"20px"},attributes:{title:"My Custom Wrapper"}}],null,4)}}},{field:"tinymceOverrides",name:"$t:interfaces.input-rich-text-html.options_override",type:"json",meta:{interface:"code",options:{language:"json"}}}]}}),CBe=Object.freeze(Object.defineProperty({__proto__:null,default:SBe},Symbol.toStringTag,{value:"Module"})),GM={exports:{}},N7={exports:{}};(function(e,t){(function(n){n(du.exports)})(function(n){var i={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(o,r){var s=o.indentUnit,l={},f=r.htmlMode?i:a;for(var p in f)l[p]=f[p];for(var p in r)l[p]=r[p];var h,v;function _(Ce,Oe){function Ve(Te){return Oe.tokenize=Te,Te(Ce,Oe)}var Ye=Ce.next();if(Ye=="<")return Ce.eat("!")?Ce.eat("[")?Ce.match("CDATA[")?Ve(w("atom","]]>")):null:Ce.match("--")?Ve(w("comment","-->")):Ce.match("DOCTYPE",!0,!0)?(Ce.eatWhile(/[\w\._\-]/),Ve(D(1))):null:Ce.eat("?")?(Ce.eatWhile(/[\w\._\-]/),Oe.tokenize=w("meta","?>"),"meta"):(h=Ce.eat("/")?"closeTag":"openTag",Oe.tokenize=y,"tag bracket");if(Ye=="&"){var ot;return Ce.eat("#")?Ce.eat("x")?ot=Ce.eatWhile(/[a-fA-F\d]/)&&Ce.eat(";"):ot=Ce.eatWhile(/[\d]/)&&Ce.eat(";"):ot=Ce.eatWhile(/[\w\.\-:]/)&&Ce.eat(";"),ot?"atom":"error"}else return Ce.eatWhile(/[^&<]/),null}_.isInText=!0;function y(Ce,Oe){var Ve=Ce.next();if(Ve==">"||Ve=="/"&&Ce.eat(">"))return Oe.tokenize=_,h=Ve==">"?"endTag":"selfcloseTag","tag bracket";if(Ve=="=")return h="equals",null;if(Ve=="<"){Oe.tokenize=_,Oe.state=B,Oe.tagName=Oe.tagStart=null;var Ye=Oe.tokenize(Ce,Oe);return Ye?Ye+" tag error":"tag error"}else return/[\'\"]/.test(Ve)?(Oe.tokenize=k(Ve),Oe.stringStartCol=Ce.column(),Oe.tokenize(Ce,Oe)):(Ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function k(Ce){var Oe=function(Ve,Ye){for(;!Ve.eol();)if(Ve.next()==Ce){Ye.tokenize=y;break}return"string"};return Oe.isInAttribute=!0,Oe}function w(Ce,Oe){return function(Ve,Ye){for(;!Ve.eol();){if(Ve.match(Oe)){Ye.tokenize=_;break}Ve.next()}return Ce}}function D(Ce){return function(Oe,Ve){for(var Ye;(Ye=Oe.next())!=null;){if(Ye=="<")return Ve.tokenize=D(Ce+1),Ve.tokenize(Oe,Ve);if(Ye==">")if(Ce==1){Ve.tokenize=_;break}else return Ve.tokenize=D(Ce-1),Ve.tokenize(Oe,Ve)}return"meta"}}function A(Ce){return Ce&&Ce.toLowerCase()}function L(Ce,Oe,Ve){this.prev=Ce.context,this.tagName=Oe||"",this.indent=Ce.indented,this.startOfLine=Ve,(l.doNotIndent.hasOwnProperty(Oe)||Ce.context&&Ce.context.noIndent)&&(this.noIndent=!0)}function T(Ce){Ce.context&&(Ce.context=Ce.context.prev)}function z(Ce,Oe){for(var Ve;;){if(!Ce.context||(Ve=Ce.context.tagName,!l.contextGrabbers.hasOwnProperty(A(Ve))||!l.contextGrabbers[A(Ve)].hasOwnProperty(A(Oe))))return;T(Ce)}}function B(Ce,Oe,Ve){return Ce=="openTag"?(Ve.tagStart=Oe.column(),W):Ce=="closeTag"?N:B}function W(Ce,Oe,Ve){return Ce=="word"?(Ve.tagName=Oe.current(),v="tag",se):l.allowMissingTagName&&Ce=="endTag"?(v="tag bracket",se(Ce,Oe,Ve)):(v="error",W)}function N(Ce,Oe,Ve){if(Ce=="word"){var Ye=Oe.current();return Ve.context&&Ve.context.tagName!=Ye&&l.implicitlyClosed.hasOwnProperty(A(Ve.context.tagName))&&T(Ve),Ve.context&&Ve.context.tagName==Ye||l.matchClosing===!1?(v="tag",K):(v="tag error",re)}else return l.allowMissingTagName&&Ce=="endTag"?(v="tag bracket",K(Ce,Oe,Ve)):(v="error",re)}function K(Ce,Oe,Ve){return Ce!="endTag"?(v="error",K):(T(Ve),B)}function re(Ce,Oe,Ve){return v="error",K(Ce,Oe,Ve)}function se(Ce,Oe,Ve){if(Ce=="word")return v="attribute",ce;if(Ce=="endTag"||Ce=="selfcloseTag"){var Ye=Ve.tagName,ot=Ve.tagStart;return Ve.tagName=Ve.tagStart=null,Ce=="selfcloseTag"||l.autoSelfClosers.hasOwnProperty(A(Ye))?z(Ve,Ye):(z(Ve,Ye),Ve.context=new L(Ve,Ye,ot==Ve.indented)),B}return v="error",se}function ce(Ce,Oe,Ve){return Ce=="equals"?de:(l.allowMissing||(v="error"),se(Ce,Oe,Ve))}function de(Ce,Oe,Ve){return Ce=="string"?ge:Ce=="word"&&l.allowUnquoted?(v="string",se):(v="error",se(Ce,Oe,Ve))}function ge(Ce,Oe,Ve){return Ce=="string"?ge:se(Ce,Oe,Ve)}return{startState:function(Ce){var Oe={tokenize:_,state:B,indented:Ce||0,tagName:null,tagStart:null,context:null};return Ce!=null&&(Oe.baseIndent=Ce),Oe},token:function(Ce,Oe){if(!Oe.tagName&&Ce.sol()&&(Oe.indented=Ce.indentation()),Ce.eatSpace())return null;h=null;var Ve=Oe.tokenize(Ce,Oe);return(Ve||h)&&Ve!="comment"&&(v=null,Oe.state=Oe.state(h||Ve,Ce,Oe),v&&(Ve=v=="error"?Ve+" error":v)),Ve},indent:function(Ce,Oe,Ve){var Ye=Ce.context;if(Ce.tokenize.isInAttribute)return Ce.tagStart==Ce.indented?Ce.stringStartCol+1:Ce.indented+s;if(Ye&&Ye.noIndent)return n.Pass;if(Ce.tokenize!=y&&Ce.tokenize!=_)return Ve?Ve.match(/^(\s*)/)[0].length:0;if(Ce.tagName)return l.multilineTagIndentPastTag!==!1?Ce.tagStart+Ce.tagName.length+2:Ce.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(Oe))return 0;var ot=Oe&&/^<(\/)?([\w_:\.-]*)/.exec(Oe);if(ot&&ot[1])for(;Ye;)if(Ye.tagName==ot[2]){Ye=Ye.prev;break}else if(l.implicitlyClosed.hasOwnProperty(A(Ye.tagName)))Ye=Ye.prev;else break;else if(ot)for(;Ye;){var Te=l.contextGrabbers[A(Ye.tagName)];if(Te&&Te.hasOwnProperty(A(ot[2])))Ye=Ye.prev;else break}for(;Ye&&Ye.prev&&!Ye.startOfLine;)Ye=Ye.prev;return Ye?Ye.indent+s:Ce.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(Ce){Ce.state==de&&(Ce.state=se)},xmlCurrentTag:function(Ce){return Ce.tagName?{name:Ce.tagName,close:Ce.type=="closeTag"}:null},xmlCurrentContext:function(Ce){for(var Oe=[],Ve=Ce.context;Ve;Ve=Ve.prev)Oe.push(Ve.tagName);return Oe.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var EBe=N7.exports,ABe=ab({__proto__:null,default:EBe},[N7.exports]);(function(e,t){(function(n){n(du.exports,N7.exports,KNe.exports)})(function(n){n.defineMode("markdown",function(i,a){var o=n.getMode(i,"text/html"),r=o.name=="null";function s(Le){if(n.findModeByName){var De=n.findModeByName(Le);De&&(Le=De.mime||De.mimes[0])}var ht=n.getMode(i,Le);return ht.name=="null"?null:ht}a.highlightFormatting===void 0&&(a.highlightFormatting=!1),a.maxBlockquoteDepth===void 0&&(a.maxBlockquoteDepth=0),a.taskLists===void 0&&(a.taskLists=!1),a.strikethrough===void 0&&(a.strikethrough=!1),a.emoji===void 0&&(a.emoji=!1),a.fencedCodeBlockHighlighting===void 0&&(a.fencedCodeBlockHighlighting=!0),a.fencedCodeBlockDefaultMode===void 0&&(a.fencedCodeBlockDefaultMode="text/plain"),a.xml===void 0&&(a.xml=!0),a.tokenTypeOverrides===void 0&&(a.tokenTypeOverrides={});var l={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var f in l)l.hasOwnProperty(f)&&a.tokenTypeOverrides[f]&&(l[f]=a.tokenTypeOverrides[f]);var p=/^([*\-_])(?:\s*\1){2,}\s*$/,h=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,_=a.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,y=/^ {0,3}(?:\={1,}|-{2,})\s*$/,k=/^[^#!\[\]*_\\<>` "'(~:]+/,w=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,D=/^\s*\[[^\]]+?\]:.*$/,A=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,L=" ";function T(Le,De,ht){return De.f=De.inline=ht,ht(Le,De)}function z(Le,De,ht){return De.f=De.block=ht,ht(Le,De)}function B(Le){return!Le||!/\S/.test(Le.string)}function W(Le){if(Le.linkTitle=!1,Le.linkHref=!1,Le.linkText=!1,Le.em=!1,Le.strong=!1,Le.strikethrough=!1,Le.quote=0,Le.indentedCode=!1,Le.f==K){var De=r;if(!De){var ht=n.innerMode(o,Le.htmlState);De=ht.mode.name=="xml"&&ht.state.tagStart===null&&!ht.state.context&&ht.state.tokenize.isInText}De&&(Le.f=de,Le.block=N,Le.htmlState=null)}return Le.trailingSpace=0,Le.trailingSpaceNewLine=!1,Le.prevLine=Le.thisLine,Le.thisLine={stream:null},null}function N(Le,De){var ht=Le.column()===De.indentation,At=B(De.prevLine.stream),Tt=De.indentedCode,Vt=De.prevLine.hr,on=De.list!==!1,_t=(De.listStack[De.listStack.length-1]||0)+3;De.indentedCode=!1;var Ut=De.indentation;if(De.indentationDiff===null&&(De.indentationDiff=De.indentation,on)){for(De.list=null;Ut<De.listStack[De.listStack.length-1];)De.listStack.pop(),De.listStack.length?De.indentation=De.listStack[De.listStack.length-1]:De.list=!1;De.list!==!1&&(De.indentationDiff=Ut-De.listStack[De.listStack.length-1])}var Nt=!At&&!Vt&&!De.prevLine.header&&(!on||!Tt)&&!De.prevLine.fencedCodeEnd,Qt=(De.list===!1||Vt||At)&&De.indentation<=_t&&Le.match(p),Jt=null;if(De.indentationDiff>=4&&(Tt||De.prevLine.fencedCodeEnd||De.prevLine.header||At))return Le.skipToEnd(),De.indentedCode=!0,l.code;if(Le.eatSpace())return null;if(ht&&De.indentation<=_t&&(Jt=Le.match(_))&&Jt[1].length<=6)return De.quote=0,De.header=Jt[1].length,De.thisLine.header=!0,a.highlightFormatting&&(De.formatting="header"),De.f=De.inline,se(De);if(De.indentation<=_t&&Le.eat(">"))return De.quote=ht?1:De.quote+1,a.highlightFormatting&&(De.formatting="quote"),Le.eatSpace(),se(De);if(!Qt&&!De.setext&&ht&&De.indentation<=_t&&(Jt=Le.match(h))){var qt=Jt[1]?"ol":"ul";return De.indentation=Ut+Le.current().length,De.list=!0,De.quote=0,De.listStack.push(De.indentation),De.em=!1,De.strong=!1,De.code=!1,De.strikethrough=!1,a.taskLists&&Le.match(v,!1)&&(De.taskList=!0),De.f=De.inline,a.highlightFormatting&&(De.formatting=["list","list-"+qt]),se(De)}else{if(ht&&De.indentation<=_t&&(Jt=Le.match(w,!0)))return De.quote=0,De.fencedEndRE=new RegExp(Jt[1]+"+ *$"),De.localMode=a.fencedCodeBlockHighlighting&&s(Jt[2]||a.fencedCodeBlockDefaultMode),De.localMode&&(De.localState=n.startState(De.localMode)),De.f=De.block=re,a.highlightFormatting&&(De.formatting="code-block"),De.code=-1,se(De);if(De.setext||(!Nt||!on)&&!De.quote&&De.list===!1&&!De.code&&!Qt&&!D.test(Le.string)&&(Jt=Le.lookAhead(1))&&(Jt=Jt.match(y)))return De.setext?(De.header=De.setext,De.setext=0,Le.skipToEnd(),a.highlightFormatting&&(De.formatting="header")):(De.header=Jt[0].charAt(0)=="="?1:2,De.setext=De.header),De.thisLine.header=!0,De.f=De.inline,se(De);if(Qt)return Le.skipToEnd(),De.hr=!0,De.thisLine.hr=!0,l.hr;if(Le.peek()==="[")return T(Le,De,Ye)}return T(Le,De,De.inline)}function K(Le,De){var ht=o.token(Le,De.htmlState);if(!r){var At=n.innerMode(o,De.htmlState);(At.mode.name=="xml"&&At.state.tagStart===null&&!At.state.context&&At.state.tokenize.isInText||De.md_inside&&Le.current().indexOf(">")>-1)&&(De.f=de,De.block=N,De.htmlState=null)}return ht}function re(Le,De){var ht=De.listStack[De.listStack.length-1]||0,At=De.indentation<ht,Tt=ht+3;if(De.fencedEndRE&&De.indentation<=Tt&&(At||Le.match(De.fencedEndRE))){a.highlightFormatting&&(De.formatting="code-block");var Vt;return At||(Vt=se(De)),De.localMode=De.localState=null,De.block=N,De.f=de,De.fencedEndRE=null,De.code=0,De.thisLine.fencedCodeEnd=!0,At?z(Le,De,De.block):Vt}else return De.localMode?De.localMode.token(Le,De.localState):(Le.skipToEnd(),l.code)}function se(Le){var De=[];if(Le.formatting){De.push(l.formatting),typeof Le.formatting=="string"&&(Le.formatting=[Le.formatting]);for(var ht=0;ht<Le.formatting.length;ht++)De.push(l.formatting+"-"+Le.formatting[ht]),Le.formatting[ht]==="header"&&De.push(l.formatting+"-"+Le.formatting[ht]+"-"+Le.header),Le.formatting[ht]==="quote"&&(!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Le.quote?De.push(l.formatting+"-"+Le.formatting[ht]+"-"+Le.quote):De.push("error"))}if(Le.taskOpen)return De.push("meta"),De.length?De.join(" "):null;if(Le.taskClosed)return De.push("property"),De.length?De.join(" "):null;if(Le.linkHref?De.push(l.linkHref,"url"):(Le.strong&&De.push(l.strong),Le.em&&De.push(l.em),Le.strikethrough&&De.push(l.strikethrough),Le.emoji&&De.push(l.emoji),Le.linkText&&De.push(l.linkText),Le.code&&De.push(l.code),Le.image&&De.push(l.image),Le.imageAltText&&De.push(l.imageAltText,"link"),Le.imageMarker&&De.push(l.imageMarker)),Le.header&&De.push(l.header,l.header+"-"+Le.header),Le.quote&&(De.push(l.quote),!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Le.quote?De.push(l.quote+"-"+Le.quote):De.push(l.quote+"-"+a.maxBlockquoteDepth)),Le.list!==!1){var At=(Le.listStack.length-1)%3;At?At===1?De.push(l.list2):De.push(l.list3):De.push(l.list1)}return Le.trailingSpaceNewLine?De.push("trailing-space-new-line"):Le.trailingSpace&&De.push("trailing-space-"+(Le.trailingSpace%2?"a":"b")),De.length?De.join(" "):null}function ce(Le,De){if(Le.match(k,!0))return se(De)}function de(Le,De){var ht=De.text(Le,De);if(typeof ht!="undefined")return ht;if(De.list)return De.list=null,se(De);if(De.taskList){var At=Le.match(v,!0)[1]===" ";return At?De.taskOpen=!0:De.taskClosed=!0,a.highlightFormatting&&(De.formatting="task"),De.taskList=!1,se(De)}if(De.taskOpen=!1,De.taskClosed=!1,De.header&&Le.match(/^#+$/,!0))return a.highlightFormatting&&(De.formatting="header"),se(De);var Tt=Le.next();if(De.linkTitle){De.linkTitle=!1;var Vt=Tt;Tt==="("&&(Vt=")"),Vt=(Vt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var on="^\\s*(?:[^"+Vt+"\\\\]+|\\\\\\\\|\\\\.)"+Vt;if(Le.match(new RegExp(on),!0))return l.linkHref}if(Tt==="`"){var _t=De.formatting;a.highlightFormatting&&(De.formatting="code"),Le.eatWhile("`");var Ut=Le.current().length;if(De.code==0&&(!De.quote||Ut==1))return De.code=Ut,se(De);if(Ut==De.code){var Nt=se(De);return De.code=0,Nt}else return De.formatting=_t,se(De)}else if(De.code)return se(De);if(Tt==="\\"&&(Le.next(),a.highlightFormatting)){var Qt=se(De),Jt=l.formatting+"-escape";return Qt?Qt+" "+Jt:Jt}if(Tt==="!"&&Le.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return De.imageMarker=!0,De.image=!0,a.highlightFormatting&&(De.formatting="image"),se(De);if(Tt==="["&&De.imageMarker&&Le.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return De.imageMarker=!1,De.imageAltText=!0,a.highlightFormatting&&(De.formatting="image"),se(De);if(Tt==="]"&&De.imageAltText){a.highlightFormatting&&(De.formatting="image");var Qt=se(De);return De.imageAltText=!1,De.image=!1,De.inline=De.f=Ce,Qt}if(Tt==="["&&!De.image)return De.linkText&&Le.match(/^.*?\]/)||(De.linkText=!0,a.highlightFormatting&&(De.formatting="link")),se(De);if(Tt==="]"&&De.linkText){a.highlightFormatting&&(De.formatting="link");var Qt=se(De);return De.linkText=!1,De.inline=De.f=Le.match(/\(.*?\)| ?\[.*?\]/,!1)?Ce:de,Qt}if(Tt==="<"&&Le.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){De.f=De.inline=ge,a.highlightFormatting&&(De.formatting="link");var Qt=se(De);return Qt?Qt+=" ":Qt="",Qt+l.linkInline}if(Tt==="<"&&Le.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){De.f=De.inline=ge,a.highlightFormatting&&(De.formatting="link");var Qt=se(De);return Qt?Qt+=" ":Qt="",Qt+l.linkEmail}if(a.xml&&Tt==="<"&&Le.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var qt=Le.string.indexOf(">",Le.pos);if(qt!=-1){var Dt=Le.string.substring(Le.start,qt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Dt)&&(De.md_inside=!0)}return Le.backUp(1),De.htmlState=n.startState(o),z(Le,De,K)}if(a.xml&&Tt==="<"&&Le.match(/^\/\w*?>/))return De.md_inside=!1,"tag";if(Tt==="*"||Tt==="_"){for(var nt=1,Pe=Le.pos==1?" ":Le.string.charAt(Le.pos-2);nt<3&&Le.eat(Tt);)nt++;var He=Le.peek()||" ",mt=!/\s/.test(He)&&(!A.test(He)||/\s/.test(Pe)||A.test(Pe)),Pt=!/\s/.test(Pe)&&(!A.test(Pe)||/\s/.test(He)||A.test(He)),Bt=null,wt=null;if(nt%2&&(!De.em&&mt&&(Tt==="*"||!Pt||A.test(Pe))?Bt=!0:De.em==Tt&&Pt&&(Tt==="*"||!mt||A.test(He))&&(Bt=!1)),nt>1&&(!De.strong&&mt&&(Tt==="*"||!Pt||A.test(Pe))?wt=!0:De.strong==Tt&&Pt&&(Tt==="*"||!mt||A.test(He))&&(wt=!1)),wt!=null||Bt!=null){a.highlightFormatting&&(De.formatting=Bt==null?"strong":wt==null?"em":"strong em"),Bt===!0&&(De.em=Tt),wt===!0&&(De.strong=Tt);var Nt=se(De);return Bt===!1&&(De.em=!1),wt===!1&&(De.strong=!1),Nt}}else if(Tt===" "&&(Le.eat("*")||Le.eat("_"))){if(Le.peek()===" ")return se(De);Le.backUp(1)}if(a.strikethrough){if(Tt==="~"&&Le.eatWhile(Tt)){if(De.strikethrough){a.highlightFormatting&&(De.formatting="strikethrough");var Nt=se(De);return De.strikethrough=!1,Nt}else if(Le.match(/^[^\s]/,!1))return De.strikethrough=!0,a.highlightFormatting&&(De.formatting="strikethrough"),se(De)}else if(Tt===" "&&Le.match("~~",!0)){if(Le.peek()===" ")return se(De);Le.backUp(2)}}if(a.emoji&&Tt===":"&&Le.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){De.emoji=!0,a.highlightFormatting&&(De.formatting="emoji");var nn=se(De);return De.emoji=!1,nn}return Tt===" "&&(Le.match(/^ +$/,!1)?De.trailingSpace++:De.trailingSpace&&(De.trailingSpaceNewLine=!0)),se(De)}function ge(Le,De){var ht=Le.next();if(ht===">"){De.f=De.inline=de,a.highlightFormatting&&(De.formatting="link");var At=se(De);return At?At+=" ":At="",At+l.linkInline}return Le.match(/^[^>]+/,!0),l.linkInline}function Ce(Le,De){if(Le.eatSpace())return null;var ht=Le.next();return ht==="("||ht==="["?(De.f=De.inline=Ve(ht==="("?")":"]"),a.highlightFormatting&&(De.formatting="link-string"),De.linkHref=!0,se(De)):"error"}var Oe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ve(Le){return function(De,ht){var At=De.next();if(At===Le){ht.f=ht.inline=de,a.highlightFormatting&&(ht.formatting="link-string");var Tt=se(ht);return ht.linkHref=!1,Tt}return De.match(Oe[Le]),ht.linkHref=!0,se(ht)}}function Ye(Le,De){return Le.match(/^([^\]\\]|\\.)*\]:/,!1)?(De.f=ot,Le.next(),a.highlightFormatting&&(De.formatting="link"),De.linkText=!0,se(De)):T(Le,De,de)}function ot(Le,De){if(Le.match("]:",!0)){De.f=De.inline=Te,a.highlightFormatting&&(De.formatting="link");var ht=se(De);return De.linkText=!1,ht}return Le.match(/^([^\]\\]|\\.)+/,!0),l.linkText}function Te(Le,De){return Le.eatSpace()?null:(Le.match(/^[^\s]+/,!0),Le.peek()===void 0?De.linkTitle=!0:Le.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),De.f=De.inline=de,l.linkHref+" url")}var it={startState:function(){return{f:N,prevLine:{stream:null},thisLine:{stream:null},block:N,htmlState:null,indentation:0,inline:de,text:ce,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Le){return{f:Le.f,prevLine:Le.prevLine,thisLine:Le.thisLine,block:Le.block,htmlState:Le.htmlState&&n.copyState(o,Le.htmlState),indentation:Le.indentation,localMode:Le.localMode,localState:Le.localMode?n.copyState(Le.localMode,Le.localState):null,inline:Le.inline,text:Le.text,formatting:!1,linkText:Le.linkText,linkTitle:Le.linkTitle,linkHref:Le.linkHref,code:Le.code,em:Le.em,strong:Le.strong,strikethrough:Le.strikethrough,emoji:Le.emoji,header:Le.header,setext:Le.setext,hr:Le.hr,taskList:Le.taskList,list:Le.list,listStack:Le.listStack.slice(0),quote:Le.quote,indentedCode:Le.indentedCode,trailingSpace:Le.trailingSpace,trailingSpaceNewLine:Le.trailingSpaceNewLine,md_inside:Le.md_inside,fencedEndRE:Le.fencedEndRE}},token:function(Le,De){if(De.formatting=!1,Le!=De.thisLine.stream){if(De.header=0,De.hr=!1,Le.match(/^\s*$/,!0))return W(De),null;if(De.prevLine=De.thisLine,De.thisLine={stream:Le},De.taskList=!1,De.trailingSpace=0,De.trailingSpaceNewLine=!1,!De.localState&&(De.f=De.block,De.f!=K)){var ht=Le.match(/^\s*/,!0)[0].replace(/\t/g,L).length;if(De.indentation=ht,De.indentationDiff=null,ht>0)return null}}return De.f(Le,De)},innerMode:function(Le){return Le.block==K?{state:Le.htmlState,mode:o}:Le.localState?{state:Le.localState,mode:Le.localMode}:{state:Le,mode:it}},indent:function(Le,De,ht){return Le.block==K&&o.indent?o.indent(Le.htmlState,De,ht):Le.localState&&Le.localMode.indent?Le.localMode.indent(Le.localState,De,ht):n.Pass},blankLine:W,getType:se,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return it},"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})})();var TBe=GM.exports,DBe=ab({__proto__:null,default:TBe},[GM.exports]);const IBe={heading(e,{cursorTo:t},n){const i=(n==null?void 0:n.level)||3;let a=e;const o=t,r="#".repeat(i)+" ";return e.startsWith(r)?a=e.substring(r.length):(a=`${r}${e}`,o.ch=o.ch+r.length),{newSelection:a,newCursor:o}},bold(e,{cursorTo:t}){let n=e;const i=t;return e.startsWith("**")&&e.endsWith("**")?n=e.substring(2,e.length-2):(n=`**${e}**`,i.ch=i.ch+2),{newSelection:n,newCursor:i}},italic(e,{cursorTo:t}){let n=e;const i=t;return e.startsWith("*")&&e.endsWith("*")?n=e.substring(1,e.length-1):(n=`*${e}*`,i.ch=i.ch+1),{newSelection:n,newCursor:i}},strikethrough(e,{cursorTo:t}){let n=e;const i=t;return e.startsWith("~~")&&e.endsWith("~~")?n=e.substring(2,e.length-2):(n=`~~${e}~~`,i.ch=i.ch+2),{newSelection:n,newCursor:i}},listBulleted(e,{cursorTo:t}){let n=e;const i=t,a=e.split(`
|
|
2553
|
+
`;const kBe=XC(()=>ct(()=>import("./input-rich-text-html.f0b71db8.js"),["assets/input-rich-text-html.f0b71db8.js","assets/input-rich-text-html.c883b2df.css","assets/runtime-core.esm-bundler.32cac88a.js","assets/vue-i18n.ab96dd58.entry.js","assets/use-sync.3af8e920.js","assets/pinia.ee5b7a45.entry.js","assets/vue.runtime.esm-bundler.61bedc6f.js","assets/vue-router.4ad81e1d.entry.js"]));var SBe=Vr({id:"input-rich-text-html",name:"$t:interfaces.input-rich-text-html.wysiwyg",description:"$t:interfaces.input-rich-text-html.description",icon:"format_quote",component:kBe,types:["text"],group:"standard",preview:xBe,options:{standard:[{field:"toolbar",name:"$t:interfaces.input-rich-text-html.toolbar",type:"json",schema:{default_value:["bold","italic","underline","h1","h2","h3","numlist","bullist","removeformat","blockquote","customLink","customImage","customMedia","hr","code","fullscreen"]},meta:{width:"half",interface:"select-multiple-dropdown",options:{choices:[{value:"undo",text:"$t:wysiwyg_options.undo"},{value:"redo",text:"$t:wysiwyg_options.redo"},{value:"bold",text:"$t:wysiwyg_options.bold"},{value:"italic",text:"$t:wysiwyg_options.italic"},{value:"underline",text:"$t:wysiwyg_options.underline"},{value:"strikethrough",text:"$t:wysiwyg_options.strikethrough"},{value:"subscript",text:"$t:wysiwyg_options.subscript"},{value:"superscript",text:"$t:wysiwyg_options.superscript"},{value:"fontselect",text:"$t:wysiwyg_options.fontselect"},{value:"fontsizeselect",text:"$t:wysiwyg_options.fontsizeselect"},{value:"h1",text:"$t:wysiwyg_options.h1"},{value:"h2",text:"$t:wysiwyg_options.h2"},{value:"h3",text:"$t:wysiwyg_options.h3"},{value:"h4",text:"$t:wysiwyg_options.h4"},{value:"h5",text:"$t:wysiwyg_options.h5"},{value:"h6",text:"$t:wysiwyg_options.h6"},{value:"alignleft",text:"$t:wysiwyg_options.alignleft"},{value:"aligncenter",text:"$t:wysiwyg_options.aligncenter"},{value:"alignright",text:"$t:wysiwyg_options.alignright"},{value:"alignjustify",text:"$t:wysiwyg_options.alignjustify"},{value:"alignnone",text:"$t:wysiwyg_options.alignnone"},{value:"indent",text:"$t:wysiwyg_options.indent"},{value:"outdent",text:"$t:wysiwyg_options.outdent"},{value:"numlist",text:"$t:wysiwyg_options.numlist"},{value:"bullist",text:"$t:wysiwyg_options.bullist"},{value:"forecolor",text:"$t:wysiwyg_options.forecolor"},{value:"backcolor",text:"$t:wysiwyg_options.backcolor"},{value:"removeformat",text:"$t:wysiwyg_options.removeformat"},{value:"cut",text:"$t:wysiwyg_options.cut"},{value:"copy",text:"$t:wysiwyg_options.copy"},{value:"paste",text:"$t:wysiwyg_options.paste"},{value:"remove",text:"$t:wysiwyg_options.remove"},{value:"selectall",text:"$t:wysiwyg_options.selectall"},{value:"blockquote",text:"$t:wysiwyg_options.blockquote"},{value:"customLink",text:"$t:wysiwyg_options.link"},{value:"unlink",text:"$t:wysiwyg_options.unlink"},{value:"customImage",text:"$t:wysiwyg_options.image"},{value:"customMedia",text:"$t:wysiwyg_options.media"},{value:"table",text:"$t:wysiwyg_options.table"},{value:"hr",text:"$t:wysiwyg_options.hr"},{value:"code",text:"$t:wysiwyg_options.source_code"},{value:"fullscreen",text:"$t:wysiwyg_options.fullscreen"},{value:"visualaid",text:"$t:wysiwyg_options.visualaid"},{value:"ltr rtl",text:"$t:wysiwyg_options.directionality"}]}}},{field:"font",name:"$t:font",type:"string",meta:{width:"half",interface:"select-dropdown",options:{choices:[{text:"$t:sans_serif",value:"sans-serif"},{text:"$t:monospace",value:"monospace"},{text:"$t:serif",value:"serif"}]}},schema:{default_value:"sans-serif"}},{field:"folder",name:"$t:folder",type:"uuid",meta:{width:"half",interface:"system-folder",note:"$t:interfaces.input-rich-text-html.folder_note"},schema:{default_value:void 0}},{field:"imageToken",name:"$t:interfaces.input-rich-text-html.imageToken",type:"string",meta:{note:"$t:interfaces.input-rich-text-html.imageToken_label",width:"half",interface:"input"}}],advanced:[{field:"softLength",name:"$t:soft_length",type:"integer",meta:{width:"half",interface:"input",options:{placeholder:"255",min:1}}},{field:"customFormats",name:"$t:interfaces.input-rich-text-html.custom_formats",type:"json",meta:{interface:"code",options:{language:"json",template:JSON.stringify([{title:"My Custom Format",inline:"span",classes:"custom-wrapper",styles:{color:"#00ff00","font-size":"20px"},attributes:{title:"My Custom Wrapper"}}],null,4)}}},{field:"tinymceOverrides",name:"$t:interfaces.input-rich-text-html.options_override",type:"json",meta:{interface:"code",options:{language:"json"}}}]}}),CBe=Object.freeze(Object.defineProperty({__proto__:null,default:SBe},Symbol.toStringTag,{value:"Module"})),GM={exports:{}},N7={exports:{}};(function(e,t){(function(n){n(du.exports)})(function(n){var i={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(o,r){var s=o.indentUnit,l={},f=r.htmlMode?i:a;for(var p in f)l[p]=f[p];for(var p in r)l[p]=r[p];var h,v;function _(Ce,Oe){function Ve(Te){return Oe.tokenize=Te,Te(Ce,Oe)}var Ye=Ce.next();if(Ye=="<")return Ce.eat("!")?Ce.eat("[")?Ce.match("CDATA[")?Ve(w("atom","]]>")):null:Ce.match("--")?Ve(w("comment","-->")):Ce.match("DOCTYPE",!0,!0)?(Ce.eatWhile(/[\w\._\-]/),Ve(D(1))):null:Ce.eat("?")?(Ce.eatWhile(/[\w\._\-]/),Oe.tokenize=w("meta","?>"),"meta"):(h=Ce.eat("/")?"closeTag":"openTag",Oe.tokenize=y,"tag bracket");if(Ye=="&"){var ot;return Ce.eat("#")?Ce.eat("x")?ot=Ce.eatWhile(/[a-fA-F\d]/)&&Ce.eat(";"):ot=Ce.eatWhile(/[\d]/)&&Ce.eat(";"):ot=Ce.eatWhile(/[\w\.\-:]/)&&Ce.eat(";"),ot?"atom":"error"}else return Ce.eatWhile(/[^&<]/),null}_.isInText=!0;function y(Ce,Oe){var Ve=Ce.next();if(Ve==">"||Ve=="/"&&Ce.eat(">"))return Oe.tokenize=_,h=Ve==">"?"endTag":"selfcloseTag","tag bracket";if(Ve=="=")return h="equals",null;if(Ve=="<"){Oe.tokenize=_,Oe.state=B,Oe.tagName=Oe.tagStart=null;var Ye=Oe.tokenize(Ce,Oe);return Ye?Ye+" tag error":"tag error"}else return/[\'\"]/.test(Ve)?(Oe.tokenize=k(Ve),Oe.stringStartCol=Ce.column(),Oe.tokenize(Ce,Oe)):(Ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function k(Ce){var Oe=function(Ve,Ye){for(;!Ve.eol();)if(Ve.next()==Ce){Ye.tokenize=y;break}return"string"};return Oe.isInAttribute=!0,Oe}function w(Ce,Oe){return function(Ve,Ye){for(;!Ve.eol();){if(Ve.match(Oe)){Ye.tokenize=_;break}Ve.next()}return Ce}}function D(Ce){return function(Oe,Ve){for(var Ye;(Ye=Oe.next())!=null;){if(Ye=="<")return Ve.tokenize=D(Ce+1),Ve.tokenize(Oe,Ve);if(Ye==">")if(Ce==1){Ve.tokenize=_;break}else return Ve.tokenize=D(Ce-1),Ve.tokenize(Oe,Ve)}return"meta"}}function A(Ce){return Ce&&Ce.toLowerCase()}function L(Ce,Oe,Ve){this.prev=Ce.context,this.tagName=Oe||"",this.indent=Ce.indented,this.startOfLine=Ve,(l.doNotIndent.hasOwnProperty(Oe)||Ce.context&&Ce.context.noIndent)&&(this.noIndent=!0)}function T(Ce){Ce.context&&(Ce.context=Ce.context.prev)}function z(Ce,Oe){for(var Ve;;){if(!Ce.context||(Ve=Ce.context.tagName,!l.contextGrabbers.hasOwnProperty(A(Ve))||!l.contextGrabbers[A(Ve)].hasOwnProperty(A(Oe))))return;T(Ce)}}function B(Ce,Oe,Ve){return Ce=="openTag"?(Ve.tagStart=Oe.column(),W):Ce=="closeTag"?N:B}function W(Ce,Oe,Ve){return Ce=="word"?(Ve.tagName=Oe.current(),v="tag",se):l.allowMissingTagName&&Ce=="endTag"?(v="tag bracket",se(Ce,Oe,Ve)):(v="error",W)}function N(Ce,Oe,Ve){if(Ce=="word"){var Ye=Oe.current();return Ve.context&&Ve.context.tagName!=Ye&&l.implicitlyClosed.hasOwnProperty(A(Ve.context.tagName))&&T(Ve),Ve.context&&Ve.context.tagName==Ye||l.matchClosing===!1?(v="tag",K):(v="tag error",re)}else return l.allowMissingTagName&&Ce=="endTag"?(v="tag bracket",K(Ce,Oe,Ve)):(v="error",re)}function K(Ce,Oe,Ve){return Ce!="endTag"?(v="error",K):(T(Ve),B)}function re(Ce,Oe,Ve){return v="error",K(Ce,Oe,Ve)}function se(Ce,Oe,Ve){if(Ce=="word")return v="attribute",ce;if(Ce=="endTag"||Ce=="selfcloseTag"){var Ye=Ve.tagName,ot=Ve.tagStart;return Ve.tagName=Ve.tagStart=null,Ce=="selfcloseTag"||l.autoSelfClosers.hasOwnProperty(A(Ye))?z(Ve,Ye):(z(Ve,Ye),Ve.context=new L(Ve,Ye,ot==Ve.indented)),B}return v="error",se}function ce(Ce,Oe,Ve){return Ce=="equals"?de:(l.allowMissing||(v="error"),se(Ce,Oe,Ve))}function de(Ce,Oe,Ve){return Ce=="string"?ge:Ce=="word"&&l.allowUnquoted?(v="string",se):(v="error",se(Ce,Oe,Ve))}function ge(Ce,Oe,Ve){return Ce=="string"?ge:se(Ce,Oe,Ve)}return{startState:function(Ce){var Oe={tokenize:_,state:B,indented:Ce||0,tagName:null,tagStart:null,context:null};return Ce!=null&&(Oe.baseIndent=Ce),Oe},token:function(Ce,Oe){if(!Oe.tagName&&Ce.sol()&&(Oe.indented=Ce.indentation()),Ce.eatSpace())return null;h=null;var Ve=Oe.tokenize(Ce,Oe);return(Ve||h)&&Ve!="comment"&&(v=null,Oe.state=Oe.state(h||Ve,Ce,Oe),v&&(Ve=v=="error"?Ve+" error":v)),Ve},indent:function(Ce,Oe,Ve){var Ye=Ce.context;if(Ce.tokenize.isInAttribute)return Ce.tagStart==Ce.indented?Ce.stringStartCol+1:Ce.indented+s;if(Ye&&Ye.noIndent)return n.Pass;if(Ce.tokenize!=y&&Ce.tokenize!=_)return Ve?Ve.match(/^(\s*)/)[0].length:0;if(Ce.tagName)return l.multilineTagIndentPastTag!==!1?Ce.tagStart+Ce.tagName.length+2:Ce.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(Oe))return 0;var ot=Oe&&/^<(\/)?([\w_:\.-]*)/.exec(Oe);if(ot&&ot[1])for(;Ye;)if(Ye.tagName==ot[2]){Ye=Ye.prev;break}else if(l.implicitlyClosed.hasOwnProperty(A(Ye.tagName)))Ye=Ye.prev;else break;else if(ot)for(;Ye;){var Te=l.contextGrabbers[A(Ye.tagName)];if(Te&&Te.hasOwnProperty(A(ot[2])))Ye=Ye.prev;else break}for(;Ye&&Ye.prev&&!Ye.startOfLine;)Ye=Ye.prev;return Ye?Ye.indent+s:Ce.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(Ce){Ce.state==de&&(Ce.state=se)},xmlCurrentTag:function(Ce){return Ce.tagName?{name:Ce.tagName,close:Ce.type=="closeTag"}:null},xmlCurrentContext:function(Ce){for(var Oe=[],Ve=Ce.context;Ve;Ve=Ve.prev)Oe.push(Ve.tagName);return Oe.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var EBe=N7.exports,ABe=ab({__proto__:null,default:EBe},[N7.exports]);(function(e,t){(function(n){n(du.exports,N7.exports,KNe.exports)})(function(n){n.defineMode("markdown",function(i,a){var o=n.getMode(i,"text/html"),r=o.name=="null";function s(Le){if(n.findModeByName){var De=n.findModeByName(Le);De&&(Le=De.mime||De.mimes[0])}var ht=n.getMode(i,Le);return ht.name=="null"?null:ht}a.highlightFormatting===void 0&&(a.highlightFormatting=!1),a.maxBlockquoteDepth===void 0&&(a.maxBlockquoteDepth=0),a.taskLists===void 0&&(a.taskLists=!1),a.strikethrough===void 0&&(a.strikethrough=!1),a.emoji===void 0&&(a.emoji=!1),a.fencedCodeBlockHighlighting===void 0&&(a.fencedCodeBlockHighlighting=!0),a.fencedCodeBlockDefaultMode===void 0&&(a.fencedCodeBlockDefaultMode="text/plain"),a.xml===void 0&&(a.xml=!0),a.tokenTypeOverrides===void 0&&(a.tokenTypeOverrides={});var l={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var f in l)l.hasOwnProperty(f)&&a.tokenTypeOverrides[f]&&(l[f]=a.tokenTypeOverrides[f]);var p=/^([*\-_])(?:\s*\1){2,}\s*$/,h=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,_=a.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,y=/^ {0,3}(?:\={1,}|-{2,})\s*$/,k=/^[^#!\[\]*_\\<>` "'(~:]+/,w=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,D=/^\s*\[[^\]]+?\]:.*$/,A=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,L=" ";function T(Le,De,ht){return De.f=De.inline=ht,ht(Le,De)}function z(Le,De,ht){return De.f=De.block=ht,ht(Le,De)}function B(Le){return!Le||!/\S/.test(Le.string)}function W(Le){if(Le.linkTitle=!1,Le.linkHref=!1,Le.linkText=!1,Le.em=!1,Le.strong=!1,Le.strikethrough=!1,Le.quote=0,Le.indentedCode=!1,Le.f==K){var De=r;if(!De){var ht=n.innerMode(o,Le.htmlState);De=ht.mode.name=="xml"&&ht.state.tagStart===null&&!ht.state.context&&ht.state.tokenize.isInText}De&&(Le.f=de,Le.block=N,Le.htmlState=null)}return Le.trailingSpace=0,Le.trailingSpaceNewLine=!1,Le.prevLine=Le.thisLine,Le.thisLine={stream:null},null}function N(Le,De){var ht=Le.column()===De.indentation,At=B(De.prevLine.stream),Tt=De.indentedCode,Vt=De.prevLine.hr,on=De.list!==!1,_t=(De.listStack[De.listStack.length-1]||0)+3;De.indentedCode=!1;var Ut=De.indentation;if(De.indentationDiff===null&&(De.indentationDiff=De.indentation,on)){for(De.list=null;Ut<De.listStack[De.listStack.length-1];)De.listStack.pop(),De.listStack.length?De.indentation=De.listStack[De.listStack.length-1]:De.list=!1;De.list!==!1&&(De.indentationDiff=Ut-De.listStack[De.listStack.length-1])}var Nt=!At&&!Vt&&!De.prevLine.header&&(!on||!Tt)&&!De.prevLine.fencedCodeEnd,Qt=(De.list===!1||Vt||At)&&De.indentation<=_t&&Le.match(p),Jt=null;if(De.indentationDiff>=4&&(Tt||De.prevLine.fencedCodeEnd||De.prevLine.header||At))return Le.skipToEnd(),De.indentedCode=!0,l.code;if(Le.eatSpace())return null;if(ht&&De.indentation<=_t&&(Jt=Le.match(_))&&Jt[1].length<=6)return De.quote=0,De.header=Jt[1].length,De.thisLine.header=!0,a.highlightFormatting&&(De.formatting="header"),De.f=De.inline,se(De);if(De.indentation<=_t&&Le.eat(">"))return De.quote=ht?1:De.quote+1,a.highlightFormatting&&(De.formatting="quote"),Le.eatSpace(),se(De);if(!Qt&&!De.setext&&ht&&De.indentation<=_t&&(Jt=Le.match(h))){var qt=Jt[1]?"ol":"ul";return De.indentation=Ut+Le.current().length,De.list=!0,De.quote=0,De.listStack.push(De.indentation),De.em=!1,De.strong=!1,De.code=!1,De.strikethrough=!1,a.taskLists&&Le.match(v,!1)&&(De.taskList=!0),De.f=De.inline,a.highlightFormatting&&(De.formatting=["list","list-"+qt]),se(De)}else{if(ht&&De.indentation<=_t&&(Jt=Le.match(w,!0)))return De.quote=0,De.fencedEndRE=new RegExp(Jt[1]+"+ *$"),De.localMode=a.fencedCodeBlockHighlighting&&s(Jt[2]||a.fencedCodeBlockDefaultMode),De.localMode&&(De.localState=n.startState(De.localMode)),De.f=De.block=re,a.highlightFormatting&&(De.formatting="code-block"),De.code=-1,se(De);if(De.setext||(!Nt||!on)&&!De.quote&&De.list===!1&&!De.code&&!Qt&&!D.test(Le.string)&&(Jt=Le.lookAhead(1))&&(Jt=Jt.match(y)))return De.setext?(De.header=De.setext,De.setext=0,Le.skipToEnd(),a.highlightFormatting&&(De.formatting="header")):(De.header=Jt[0].charAt(0)=="="?1:2,De.setext=De.header),De.thisLine.header=!0,De.f=De.inline,se(De);if(Qt)return Le.skipToEnd(),De.hr=!0,De.thisLine.hr=!0,l.hr;if(Le.peek()==="[")return T(Le,De,Ye)}return T(Le,De,De.inline)}function K(Le,De){var ht=o.token(Le,De.htmlState);if(!r){var At=n.innerMode(o,De.htmlState);(At.mode.name=="xml"&&At.state.tagStart===null&&!At.state.context&&At.state.tokenize.isInText||De.md_inside&&Le.current().indexOf(">")>-1)&&(De.f=de,De.block=N,De.htmlState=null)}return ht}function re(Le,De){var ht=De.listStack[De.listStack.length-1]||0,At=De.indentation<ht,Tt=ht+3;if(De.fencedEndRE&&De.indentation<=Tt&&(At||Le.match(De.fencedEndRE))){a.highlightFormatting&&(De.formatting="code-block");var Vt;return At||(Vt=se(De)),De.localMode=De.localState=null,De.block=N,De.f=de,De.fencedEndRE=null,De.code=0,De.thisLine.fencedCodeEnd=!0,At?z(Le,De,De.block):Vt}else return De.localMode?De.localMode.token(Le,De.localState):(Le.skipToEnd(),l.code)}function se(Le){var De=[];if(Le.formatting){De.push(l.formatting),typeof Le.formatting=="string"&&(Le.formatting=[Le.formatting]);for(var ht=0;ht<Le.formatting.length;ht++)De.push(l.formatting+"-"+Le.formatting[ht]),Le.formatting[ht]==="header"&&De.push(l.formatting+"-"+Le.formatting[ht]+"-"+Le.header),Le.formatting[ht]==="quote"&&(!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Le.quote?De.push(l.formatting+"-"+Le.formatting[ht]+"-"+Le.quote):De.push("error"))}if(Le.taskOpen)return De.push("meta"),De.length?De.join(" "):null;if(Le.taskClosed)return De.push("property"),De.length?De.join(" "):null;if(Le.linkHref?De.push(l.linkHref,"url"):(Le.strong&&De.push(l.strong),Le.em&&De.push(l.em),Le.strikethrough&&De.push(l.strikethrough),Le.emoji&&De.push(l.emoji),Le.linkText&&De.push(l.linkText),Le.code&&De.push(l.code),Le.image&&De.push(l.image),Le.imageAltText&&De.push(l.imageAltText,"link"),Le.imageMarker&&De.push(l.imageMarker)),Le.header&&De.push(l.header,l.header+"-"+Le.header),Le.quote&&(De.push(l.quote),!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Le.quote?De.push(l.quote+"-"+Le.quote):De.push(l.quote+"-"+a.maxBlockquoteDepth)),Le.list!==!1){var At=(Le.listStack.length-1)%3;At?At===1?De.push(l.list2):De.push(l.list3):De.push(l.list1)}return Le.trailingSpaceNewLine?De.push("trailing-space-new-line"):Le.trailingSpace&&De.push("trailing-space-"+(Le.trailingSpace%2?"a":"b")),De.length?De.join(" "):null}function ce(Le,De){if(Le.match(k,!0))return se(De)}function de(Le,De){var ht=De.text(Le,De);if(typeof ht!="undefined")return ht;if(De.list)return De.list=null,se(De);if(De.taskList){var At=Le.match(v,!0)[1]===" ";return At?De.taskOpen=!0:De.taskClosed=!0,a.highlightFormatting&&(De.formatting="task"),De.taskList=!1,se(De)}if(De.taskOpen=!1,De.taskClosed=!1,De.header&&Le.match(/^#+$/,!0))return a.highlightFormatting&&(De.formatting="header"),se(De);var Tt=Le.next();if(De.linkTitle){De.linkTitle=!1;var Vt=Tt;Tt==="("&&(Vt=")"),Vt=(Vt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var on="^\\s*(?:[^"+Vt+"\\\\]+|\\\\\\\\|\\\\.)"+Vt;if(Le.match(new RegExp(on),!0))return l.linkHref}if(Tt==="`"){var _t=De.formatting;a.highlightFormatting&&(De.formatting="code"),Le.eatWhile("`");var Ut=Le.current().length;if(De.code==0&&(!De.quote||Ut==1))return De.code=Ut,se(De);if(Ut==De.code){var Nt=se(De);return De.code=0,Nt}else return De.formatting=_t,se(De)}else if(De.code)return se(De);if(Tt==="\\"&&(Le.next(),a.highlightFormatting)){var Qt=se(De),Jt=l.formatting+"-escape";return Qt?Qt+" "+Jt:Jt}if(Tt==="!"&&Le.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return De.imageMarker=!0,De.image=!0,a.highlightFormatting&&(De.formatting="image"),se(De);if(Tt==="["&&De.imageMarker&&Le.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return De.imageMarker=!1,De.imageAltText=!0,a.highlightFormatting&&(De.formatting="image"),se(De);if(Tt==="]"&&De.imageAltText){a.highlightFormatting&&(De.formatting="image");var Qt=se(De);return De.imageAltText=!1,De.image=!1,De.inline=De.f=Ce,Qt}if(Tt==="["&&!De.image)return De.linkText&&Le.match(/^.*?\]/)||(De.linkText=!0,a.highlightFormatting&&(De.formatting="link")),se(De);if(Tt==="]"&&De.linkText){a.highlightFormatting&&(De.formatting="link");var Qt=se(De);return De.linkText=!1,De.inline=De.f=Le.match(/\(.*?\)| ?\[.*?\]/,!1)?Ce:de,Qt}if(Tt==="<"&&Le.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){De.f=De.inline=ge,a.highlightFormatting&&(De.formatting="link");var Qt=se(De);return Qt?Qt+=" ":Qt="",Qt+l.linkInline}if(Tt==="<"&&Le.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){De.f=De.inline=ge,a.highlightFormatting&&(De.formatting="link");var Qt=se(De);return Qt?Qt+=" ":Qt="",Qt+l.linkEmail}if(a.xml&&Tt==="<"&&Le.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var qt=Le.string.indexOf(">",Le.pos);if(qt!=-1){var Dt=Le.string.substring(Le.start,qt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Dt)&&(De.md_inside=!0)}return Le.backUp(1),De.htmlState=n.startState(o),z(Le,De,K)}if(a.xml&&Tt==="<"&&Le.match(/^\/\w*?>/))return De.md_inside=!1,"tag";if(Tt==="*"||Tt==="_"){for(var nt=1,Pe=Le.pos==1?" ":Le.string.charAt(Le.pos-2);nt<3&&Le.eat(Tt);)nt++;var He=Le.peek()||" ",mt=!/\s/.test(He)&&(!A.test(He)||/\s/.test(Pe)||A.test(Pe)),Pt=!/\s/.test(Pe)&&(!A.test(Pe)||/\s/.test(He)||A.test(He)),Bt=null,wt=null;if(nt%2&&(!De.em&&mt&&(Tt==="*"||!Pt||A.test(Pe))?Bt=!0:De.em==Tt&&Pt&&(Tt==="*"||!mt||A.test(He))&&(Bt=!1)),nt>1&&(!De.strong&&mt&&(Tt==="*"||!Pt||A.test(Pe))?wt=!0:De.strong==Tt&&Pt&&(Tt==="*"||!mt||A.test(He))&&(wt=!1)),wt!=null||Bt!=null){a.highlightFormatting&&(De.formatting=Bt==null?"strong":wt==null?"em":"strong em"),Bt===!0&&(De.em=Tt),wt===!0&&(De.strong=Tt);var Nt=se(De);return Bt===!1&&(De.em=!1),wt===!1&&(De.strong=!1),Nt}}else if(Tt===" "&&(Le.eat("*")||Le.eat("_"))){if(Le.peek()===" ")return se(De);Le.backUp(1)}if(a.strikethrough){if(Tt==="~"&&Le.eatWhile(Tt)){if(De.strikethrough){a.highlightFormatting&&(De.formatting="strikethrough");var Nt=se(De);return De.strikethrough=!1,Nt}else if(Le.match(/^[^\s]/,!1))return De.strikethrough=!0,a.highlightFormatting&&(De.formatting="strikethrough"),se(De)}else if(Tt===" "&&Le.match("~~",!0)){if(Le.peek()===" ")return se(De);Le.backUp(2)}}if(a.emoji&&Tt===":"&&Le.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){De.emoji=!0,a.highlightFormatting&&(De.formatting="emoji");var nn=se(De);return De.emoji=!1,nn}return Tt===" "&&(Le.match(/^ +$/,!1)?De.trailingSpace++:De.trailingSpace&&(De.trailingSpaceNewLine=!0)),se(De)}function ge(Le,De){var ht=Le.next();if(ht===">"){De.f=De.inline=de,a.highlightFormatting&&(De.formatting="link");var At=se(De);return At?At+=" ":At="",At+l.linkInline}return Le.match(/^[^>]+/,!0),l.linkInline}function Ce(Le,De){if(Le.eatSpace())return null;var ht=Le.next();return ht==="("||ht==="["?(De.f=De.inline=Ve(ht==="("?")":"]"),a.highlightFormatting&&(De.formatting="link-string"),De.linkHref=!0,se(De)):"error"}var Oe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ve(Le){return function(De,ht){var At=De.next();if(At===Le){ht.f=ht.inline=de,a.highlightFormatting&&(ht.formatting="link-string");var Tt=se(ht);return ht.linkHref=!1,Tt}return De.match(Oe[Le]),ht.linkHref=!0,se(ht)}}function Ye(Le,De){return Le.match(/^([^\]\\]|\\.)*\]:/,!1)?(De.f=ot,Le.next(),a.highlightFormatting&&(De.formatting="link"),De.linkText=!0,se(De)):T(Le,De,de)}function ot(Le,De){if(Le.match("]:",!0)){De.f=De.inline=Te,a.highlightFormatting&&(De.formatting="link");var ht=se(De);return De.linkText=!1,ht}return Le.match(/^([^\]\\]|\\.)+/,!0),l.linkText}function Te(Le,De){return Le.eatSpace()?null:(Le.match(/^[^\s]+/,!0),Le.peek()===void 0?De.linkTitle=!0:Le.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),De.f=De.inline=de,l.linkHref+" url")}var it={startState:function(){return{f:N,prevLine:{stream:null},thisLine:{stream:null},block:N,htmlState:null,indentation:0,inline:de,text:ce,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Le){return{f:Le.f,prevLine:Le.prevLine,thisLine:Le.thisLine,block:Le.block,htmlState:Le.htmlState&&n.copyState(o,Le.htmlState),indentation:Le.indentation,localMode:Le.localMode,localState:Le.localMode?n.copyState(Le.localMode,Le.localState):null,inline:Le.inline,text:Le.text,formatting:!1,linkText:Le.linkText,linkTitle:Le.linkTitle,linkHref:Le.linkHref,code:Le.code,em:Le.em,strong:Le.strong,strikethrough:Le.strikethrough,emoji:Le.emoji,header:Le.header,setext:Le.setext,hr:Le.hr,taskList:Le.taskList,list:Le.list,listStack:Le.listStack.slice(0),quote:Le.quote,indentedCode:Le.indentedCode,trailingSpace:Le.trailingSpace,trailingSpaceNewLine:Le.trailingSpaceNewLine,md_inside:Le.md_inside,fencedEndRE:Le.fencedEndRE}},token:function(Le,De){if(De.formatting=!1,Le!=De.thisLine.stream){if(De.header=0,De.hr=!1,Le.match(/^\s*$/,!0))return W(De),null;if(De.prevLine=De.thisLine,De.thisLine={stream:Le},De.taskList=!1,De.trailingSpace=0,De.trailingSpaceNewLine=!1,!De.localState&&(De.f=De.block,De.f!=K)){var ht=Le.match(/^\s*/,!0)[0].replace(/\t/g,L).length;if(De.indentation=ht,De.indentationDiff=null,ht>0)return null}}return De.f(Le,De)},innerMode:function(Le){return Le.block==K?{state:Le.htmlState,mode:o}:Le.localState?{state:Le.localState,mode:Le.localMode}:{state:Le,mode:it}},indent:function(Le,De,ht){return Le.block==K&&o.indent?o.indent(Le.htmlState,De,ht):Le.localState&&Le.localMode.indent?Le.localMode.indent(Le.localState,De,ht):n.Pass},blankLine:W,getType:se,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return it},"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})})();var TBe=GM.exports,DBe=ab({__proto__:null,default:TBe},[GM.exports]);const IBe={heading(e,{cursorTo:t},n){const i=(n==null?void 0:n.level)||3;let a=e;const o=t,r="#".repeat(i)+" ";return e.startsWith(r)?a=e.substring(r.length):(a=`${r}${e}`,o.ch=o.ch+r.length),{newSelection:a,newCursor:o}},bold(e,{cursorTo:t}){let n=e;const i=t;return e.startsWith("**")&&e.endsWith("**")?n=e.substring(2,e.length-2):(n=`**${e}**`,i.ch=i.ch+2),{newSelection:n,newCursor:i}},italic(e,{cursorTo:t}){let n=e;const i=t;return e.startsWith("*")&&e.endsWith("*")?n=e.substring(1,e.length-1):(n=`*${e}*`,i.ch=i.ch+1),{newSelection:n,newCursor:i}},strikethrough(e,{cursorTo:t}){let n=e;const i=t;return e.startsWith("~~")&&e.endsWith("~~")?n=e.substring(2,e.length-2):(n=`~~${e}~~`,i.ch=i.ch+2),{newSelection:n,newCursor:i}},listBulleted(e,{cursorTo:t}){let n=e;const i=t,a=e.split(`
|
|
2554
2554
|
`);return a.every(r=>r.startsWith("- "))?n=a.map(r=>r.substring(2)).join(`
|
|
2555
2555
|
`):n=a.map(r=>`- ${r}`).join(`
|
|
2556
2556
|
`),e||(i.ch=i.ch+2),{newSelection:n,newCursor:i}},listNumbered(e,{cursorTo:t}){let n=e;const i=t,a=e.split(`
|
|
@@ -3399,7 +3399,7 @@ Docs & License: https://fullcalendar.io/
|
|
|
3399
3399
|
FullCalendar v5.10.2
|
|
3400
3400
|
Docs & License: https://fullcalendar.io/
|
|
3401
3401
|
(c) 2021 Adam Shaw
|
|
3402
|
-
*/var mit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(n){return n.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(n){return n.allDay?aQe(n)?["timed","allDay"]:["allDay"]:["timed"]},t}(qQe),vit=Es({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function kF(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return an(hp.Consumer,null,function(n){if(!e.isLabeled)return an("td",{className:t.join(" "),"data-time":e.isoTimeStr});var i=n.dateEnv,a=n.options,o=n.viewApi,r=a.slotLabelFormat==null?vit:Array.isArray(a.slotLabelFormat)?Es(a.slotLabelFormat[0]):Es(a.slotLabelFormat),s={level:0,time:e.time,date:i.toDate(e.date),view:o,text:i.format(e.date,r)};return an(Hd,{hookProps:s,classNames:a.slotLabelClassNames,content:a.slotLabelContent,defaultContent:git,didMount:a.slotLabelDidMount,willUnmount:a.slotLabelWillUnmount},function(l,f,p,h){return an("td",{ref:l,className:t.concat(f).join(" "),"data-time":e.isoTimeStr},an("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},an("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:p},h)))})})}function git(e){return e.text}var yit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return this.props.slatMetas.map(function(n){return an("tr",{key:n.key},an(kF,kn({},n)))})},t}(Wa),_it=Es({week:"short"}),bit=5,wit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allDaySplitter=new mit,n.headerElRef=pc(),n.rootElRef=pc(),n.scrollerElRef=pc(),n.state={slatCoords:null},n.handleScrollTopRequest=function(i){var a=n.scrollerElRef.current;a&&(a.scrollTop=i)},n.renderHeadAxis=function(i,a){a===void 0&&(a="");var o=n.context.options,r=n.props.dateProfile,s=r.renderRange,l=dh(s.start,s.end),f=l===1?Kv(n.context,s.start,"week"):{};return o.weekNumbers&&i==="day"?an(cF,{date:s.start,defaultFormat:_it},function(p,h,v,_){return an("th",{ref:p,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(h).join(" ")},an("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:a}},an("a",kn({ref:v,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},f),_)))}):an("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},an("div",{className:"fc-timegrid-axis-frame",style:{height:a}}))},n.renderTableRowAxis=function(i){var a=n.context,o=a.options,r=a.viewApi,s={text:o.allDayText,view:r};return an(Hd,{hookProps:s,classNames:o.allDayClassNames,content:o.allDayContent,defaultContent:xit,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount},function(l,f,p,h){return an("td",{ref:l,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(f).join(" ")},an("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(i==null?" fc-timegrid-axis-frame-liquid":""),style:{height:i}},an("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:p},h)))})},n.handleSlatCoords=function(i){n.setState({slatCoords:i})},n}return t.prototype.renderSimpleLayout=function(n,i,a){var o=this,r=o.context,s=o.props,l=[],f=s4(r.options);return n&&l.push({type:"header",key:"header",isSticky:f,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}}),i&&(l.push({type:"body",key:"all-day",chunk:{content:i}}),l.push({type:"body",key:"all-day-divider",outerContent:an("tr",{role:"presentation",className:"fc-scrollgrid-section"},an("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),l.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:a}}),an(Zv,{viewSpec:r.viewSpec,elRef:this.rootElRef},function(p,h){return an("div",{className:["fc-timegrid"].concat(h).join(" "),ref:p},an(E9,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))})},t.prototype.renderHScrollLayout=function(n,i,a,o,r,s,l){var f=this,p=this.context.pluginHooks.scrollGridImpl;if(!p)throw new Error("No ScrollGrid implementation");var h=this,v=h.context,_=h.props,y=!_.forPrint&&s4(v.options),k=!_.forPrint&&rF(v.options),w=[];n&&w.push({type:"header",key:"header",isSticky:y,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(A){return an("tr",{role:"presentation"},f.renderHeadAxis("day",A.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}]}),i&&(w.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(A){return an("tr",{role:"presentation"},f.renderTableRowAxis(A.rowSyncHeights[0]))}},{key:"cols",content:i}]}),w.push({key:"all-day-divider",type:"body",outerContent:an("tr",{role:"presentation",className:"fc-scrollgrid-section"},an("td",{colSpan:2,className:"fc-timegrid-divider "+v.theme.getClass("tableCellShaded")}))}));var D=v.options.nowIndicator;return w.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(v.options.expandRows),chunks:[{key:"axis",content:function(A){return an("div",{className:"fc-timegrid-axis-chunk"},an("table",{"aria-hidden":!0,style:{height:A.expandRows?A.clientHeight:""}},A.tableColGroupNode,an("tbody",null,an(yit,{slatMetas:s}))),an("div",{className:"fc-timegrid-now-indicator-container"},an(Cg,{unit:D?"minute":"day"},function(L){var T=D&&l&&l.safeComputeTop(L);return typeof T=="number"?an(A9,{isAxis:!0,date:L},function(z,B,W,N){return an("div",{ref:z,className:["fc-timegrid-now-indicator-arrow"].concat(B).join(" "),style:{top:T}},N)}):null})))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:a}]}),k&&w.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Q6},{key:"cols",content:Q6}]}),an(Zv,{viewSpec:v.viewSpec,elRef:this.rootElRef},function(A,L){return an("div",{className:["fc-timegrid"].concat(L).join(" "),ref:A},an(p,{liquid:!_.isHeightAuto&&!_.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:o,minWidth:r}]}],sections:w}))})},t.prototype.getAllDayMaxEventProps=function(){var n=this.context.options,i=n.dayMaxEvents,a=n.dayMaxEventRows;return(i===!0||a===!0)&&(i=void 0,a=bit),{dayMaxEvents:i,dayMaxEventRows:a}},t}(S1);function xit(e){return e.text}var kit=function(){function e(t,n,i){this.positions=t,this.dateProfile=n,this.slotDuration=i}return e.prototype.safeComputeTop=function(t){var n=this.dateProfile;if(Jp(n.currentRange,t)){var i=Bo(t),a=t.valueOf()-i.valueOf();if(a>=Pf(n.slotMinTime)&&a<Pf(n.slotMaxTime))return this.computeTimeTop(Ba(a))}return null},e.prototype.computeDateTop=function(t,n){return n||(n=Bo(t)),this.computeTimeTop(Ba(t.valueOf()-n.valueOf()))},e.prototype.computeTimeTop=function(t){var n=this,i=n.positions,a=n.dateProfile,o=i.els.length,r=(t.milliseconds-Pf(a.slotMinTime))/Pf(this.slotDuration),s,l;return r=Math.max(0,r),r=Math.min(o,r),s=Math.floor(r),s=Math.min(s,o-1),l=r-s,i.tops[s]+i.getHeight(s)*l},e}(),Sit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this,i=n.props,a=n.context,o=a.options,r=i.slatElRefs;return an("tbody",null,i.slatMetas.map(function(s,l){var f={time:s.time,date:a.dateEnv.toDate(s.date),view:a.viewApi},p=["fc-timegrid-slot","fc-timegrid-slot-lane",s.isLabeled?"":"fc-timegrid-slot-minor"];return an("tr",{key:s.key,ref:r.createRef(s.key)},i.axis&&an(kF,kn({},s)),an(Hd,{hookProps:f,classNames:o.slotLaneClassNames,content:o.slotLaneContent,didMount:o.slotLaneDidMount,willUnmount:o.slotLaneWillUnmount},function(h,v,_,y){return an("td",{ref:h,className:p.concat(v).join(" "),"data-time":s.isoTimeStr},y)}))}))},t}(Wa),Cit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.rootElRef=pc(),n.slatElRefs=new Y1,n}return t.prototype.render=function(){var n=this,i=n.props,a=n.context;return an("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},an("table",{"aria-hidden":!0,className:a.theme.getClass("table"),style:{minWidth:i.tableMinWidth,width:i.clientWidth,height:i.minHeight}},i.tableColGroupNode,an(Sit,{slatElRefs:this.slatElRefs,axis:i.axis,slatMetas:i.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var n=this,i=n.context,a=n.props;if(a.onCoords&&a.clientWidth!==null){var o=this.rootElRef.current;o.offsetHeight&&a.onCoords(new kit(new X0(this.rootElRef.current,Eit(this.slatElRefs.currentMap,a.slatMetas),!1,!0),this.props.dateProfile,i.options.slotDuration))}},t}(Wa);function Eit(e,t){return t.map(function(n){return e[n.key]})}function Z2(e,t){var n=[],i;for(i=0;i<t;i+=1)n.push([]);if(e)for(i=0;i<e.length;i+=1)n[e[i].col].push(e[i]);return n}function VC(e,t){var n=[];if(e){for(var i=0;i<t;i+=1)n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var a=0,o=e.segs;a<o.length;a++){var r=o[a];n[r.col].segs.push(r)}}else for(var i=0;i<t;i+=1)n[i]=null;return n}var Ait=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.rootElRef=pc(),n}return t.prototype.render=function(){var n=this,i=this.props;return an(uF,{allDayDate:null,moreCnt:i.hiddenSegs.length,allSegs:i.hiddenSegs,hiddenSegs:i.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:Tit,extraDateSpan:i.extraDateSpan,dateProfile:i.dateProfile,todayRange:i.todayRange,popoverContent:function(){return CF(i.hiddenSegs,i)}},function(a,o,r,s,l,f,p,h){return an("a",{ref:function(v){jf(a,v),jf(n.rootElRef,v)},className:["fc-timegrid-more-link"].concat(o).join(" "),style:{top:i.top,bottom:i.bottom},onClick:l,title:f,"aria-expanded":p,"aria-controls":h},an("div",{ref:r,className:"fc-timegrid-more-link-inner fc-sticky"},s))})},t}(Wa);function Tit(e){return e.shortText}function Dit(e,t,n){var i=new qP;t!=null&&(i.strictOrder=t),n!=null&&(i.maxStackCnt=n);var a=i.addSegs(e),o=Stt(a),r=Iit(i);r=Fit(r,1);var s=Rit(r);return{segRects:s,hiddenGroups:o}}function Iit(e){var t=e.entriesByLevel,n=M9(function(i,a){return i+":"+a},function(i,a){var o=Pit(e,i,a),r=NC(o,n),s=t[i][a];return[kn(kn({},s),{nextLevelNodes:r[0]}),s.thickness+r[1]]});return NC(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function NC(e,t){if(!e)return[[],0];for(var n=e.level,i=e.lateralStart,a=e.lateralEnd,o=i,r=[];o<a;)r.push(t(n,o)),o+=1;return r.sort(Mit),[r.map(Lit),r[0][1]]}function Mit(e,t){return t[1]-e[1]}function Lit(e){return e[0]}function Pit(e,t,n){for(var i=e.levelCoords,a=e.entriesByLevel,o=a[t][n],r=i[t]+o.thickness,s=i.length,l=t;l<s&&i[l]<r;l+=1);for(;l<s;l+=1){for(var f=a[l],p=void 0,h=Z6(f,o.span.start,K6),v=h[0]+h[1],_=v;(p=f[_])&&p.span.start<o.span.end;)_+=1;if(v<_)return{level:l,lateralStart:v,lateralEnd:_}}return null}function Fit(e,t){var n=M9(function(i,a,o){return Bh(i)},function(i,a,o){var r=i.nextLevelNodes,s=i.thickness,l=s+o,f=s/l,p,h=[];if(!r.length)p=t;else for(var v=0,_=r;v<_.length;v++){var y=_[v];if(p===void 0){var k=n(y,a,l);p=k[0],h.push(k[1])}else{var k=n(y,p,0);h.push(k[1])}}var w=(p-a)*f;return[p-w,kn(kn({},i),{thickness:w,nextLevelNodes:h})]});return e.map(function(i){return n(i,0,0)[1]})}function Rit(e){var t=[],n=M9(function(a,o,r){return Bh(a)},function(a,o,r){var s=kn(kn({},a),{levelCoord:o,stackDepth:r,stackForward:0});return t.push(s),s.stackForward=i(a.nextLevelNodes,o+a.thickness,r+1)+1});function i(a,o,r){for(var s=0,l=0,f=a;l<f.length;l++){var p=f[l];s=Math.max(n(p,o,r),s)}return s}return i(e,0,0),t}function M9(e,t){var n={};return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var o=e.apply(void 0,i);return o in n?n[o]:n[o]=t.apply(void 0,i)}}function BC(e,t,n,i){n===void 0&&(n=null),i===void 0&&(i=0);var a=[];if(n)for(var o=0;o<e.length;o+=1){var r=e[o],s=n.computeDateTop(r.start,t),l=Math.max(s+(i||0),n.computeDateTop(r.end,t));a.push({start:Math.round(s),end:Math.round(l)})}return a}function Oit(e,t,n,i){for(var a=[],o=[],r=0;r<e.length;r+=1){var s=t[r];s?a.push({index:r,thickness:1,span:s}):o.push(e[r])}for(var l=Dit(a,n,i),f=l.segRects,p=l.hiddenGroups,h=[],v=0,_=f;v<_.length;v++){var y=_[v];h.push({seg:e[y.index],rect:y})}for(var k=0,w=o;k<w.length;k++){var D=w[k];h.push({seg:D,rect:null})}return{segPlacements:h,hiddenGroups:p}}var $it=Es({hour:"numeric",minute:"2-digit",meridiem:!1}),SF=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&n.push("fc-timegrid-event-short"),an(aF,kn({},this.props,{defaultTimeFormat:$it,extraClassNames:n}))},t}(Wa),zit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props;return an(T9,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps},function(i,a){return a&&an("div",{className:"fc-timegrid-col-misc",ref:i},a)})},t}(Wa),jit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.sortEventSegs=Or(p9),n}return t.prototype.render=function(){var n=this,i=this,a=i.props,o=i.context,r=o.options.selectMirror,s=a.eventDrag&&a.eventDrag.segs||a.eventResize&&a.eventResize.segs||r&&a.dateSelectionSegs||[],l=a.eventDrag&&a.eventDrag.affectedInstances||a.eventResize&&a.eventResize.affectedInstances||{},f=this.sortEventSegs(a.fgEventSegs,o.options.eventOrder);return an(D9,{elRef:a.elRef,date:a.date,dateProfile:a.dateProfile,todayRange:a.todayRange,extraHookProps:a.extraHookProps},function(p,h,v){return an("td",kn({ref:p,role:"gridcell",className:["fc-timegrid-col"].concat(h,a.extraClassNames||[]).join(" ")},v,a.extraDataAttrs),an("div",{className:"fc-timegrid-col-frame"},an("div",{className:"fc-timegrid-col-bg"},n.renderFillSegs(a.businessHourSegs,"non-business"),n.renderFillSegs(a.bgEventSegs,"bg-event"),n.renderFillSegs(a.dateSelectionSegs,"highlight")),an("div",{className:"fc-timegrid-col-events"},n.renderFgSegs(f,l,!1,!1,!1)),an("div",{className:"fc-timegrid-col-events"},n.renderFgSegs(s,{},Boolean(a.eventDrag),Boolean(a.eventResize),Boolean(r))),an("div",{className:"fc-timegrid-now-indicator-container"},n.renderNowIndicator(a.nowIndicatorSegs)),an(zit,{date:a.date,dateProfile:a.dateProfile,todayRange:a.todayRange,extraHookProps:a.extraHookProps})))})},t.prototype.renderFgSegs=function(n,i,a,o,r){var s=this.props;return s.forPrint?CF(n,s):this.renderPositionedFgSegs(n,i,a,o,r)},t.prototype.renderPositionedFgSegs=function(n,i,a,o,r){var s=this,l=this.context.options,f=l.eventMaxStack,p=l.eventShortHeight,h=l.eventOrderStrict,v=l.eventMinHeight,_=this.props,y=_.date,k=_.slatCoords,w=_.eventSelection,D=_.todayRange,A=_.nowDate,L=a||o||r,T=BC(n,y,k,v),z=Oit(n,T,h,f),B=z.segPlacements,W=z.hiddenGroups;return an(dc,null,this.renderHiddenGroups(W,n),B.map(function(N){var K=N.seg,re=N.rect,se=K.eventRange.instance.instanceId,ce=L||Boolean(!i[se]&&re),de=b8(re&&re.span),ge=!L&&re?s.computeSegHStyle(re):{left:0,right:0},Ce=Boolean(re)&&re.stackForward>0,Oe=Boolean(re)&&re.span.end-re.span.start<p;return an("div",{className:"fc-timegrid-event-harness"+(Ce?" fc-timegrid-event-harness-inset":""),key:se,style:kn(kn({visibility:ce?"":"hidden"},de),ge)},an(SF,kn({seg:K,isDragging:a,isResizing:o,isDateSelecting:r,isSelected:se===w,isShort:Oe},J1(K,D,A))))}))},t.prototype.renderHiddenGroups=function(n,i){var a=this.props,o=a.extraDateSpan,r=a.dateProfile,s=a.todayRange,l=a.nowDate,f=a.eventSelection,p=a.eventDrag,h=a.eventResize;return an(dc,null,n.map(function(v){var _=b8(v.span),y=Vit(v.entries,i);return an(Ait,{key:cP(dF(y)),hiddenSegs:y,top:_.top,bottom:_.bottom,extraDateSpan:o,dateProfile:r,todayRange:s,nowDate:l,eventSelection:f,eventDrag:p,eventResize:h})}))},t.prototype.renderFillSegs=function(n,i){var a=this,o=a.props,r=a.context,s=BC(n,o.date,o.slatCoords,r.options.eventMinHeight),l=s.map(function(f,p){var h=n[p];return an("div",{key:vP(h.eventRange),className:"fc-timegrid-bg-harness",style:b8(f)},i==="bg-event"?an(lF,kn({seg:h},J1(h,o.todayRange,o.nowDate))):sF(i))});return an(dc,null,l)},t.prototype.renderNowIndicator=function(n){var i=this.props,a=i.slatCoords,o=i.date;return a?n.map(function(r,s){return an(A9,{isAxis:!1,date:o,key:s},function(l,f,p,h){return an("div",{ref:l,className:["fc-timegrid-now-indicator-line"].concat(f).join(" "),style:{top:a.computeDateTop(r.start,o)}},h)})}):null},t.prototype.computeSegHStyle=function(n){var i=this.context,a=i.isRtl,o=i.options,r=o.slotEventOverlap,s=n.levelCoord,l=n.levelCoord+n.thickness,f,p;r&&(l=Math.min(1,s+(l-s)*2)),a?(f=1-l,p=s):(f=s,p=1-l);var h={zIndex:n.stackDepth+1,left:f*100+"%",right:p*100+"%"};return r&&!n.stackForward&&(h[a?"marginLeft":"marginRight"]=10*2),h},t}(Wa);function CF(e,t){var n=t.todayRange,i=t.nowDate,a=t.eventSelection,o=t.eventDrag,r=t.eventResize,s=(o?o.affectedInstances:null)||(r?r.affectedInstances:null)||{};return an(dc,null,e.map(function(l){var f=l.eventRange.instance.instanceId;return an("div",{key:f,style:{visibility:s[f]?"hidden":""}},an(SF,kn({seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:f===a,isShort:!1},J1(l,n,i))))}))}function b8(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function Vit(e,t){return e.map(function(n){return t[n.index]})}var Nit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.splitFgEventSegs=Or(Z2),n.splitBgEventSegs=Or(Z2),n.splitBusinessHourSegs=Or(Z2),n.splitNowIndicatorSegs=Or(Z2),n.splitDateSelectionSegs=Or(Z2),n.splitEventDrag=Or(VC),n.splitEventResize=Or(VC),n.rootElRef=pc(),n.cellElRefs=new Y1,n}return t.prototype.render=function(){var n=this,i=this,a=i.props,o=i.context,r=o.options.nowIndicator&&a.slatCoords&&a.slatCoords.safeComputeTop(a.nowDate),s=a.cells.length,l=this.splitFgEventSegs(a.fgEventSegs,s),f=this.splitBgEventSegs(a.bgEventSegs,s),p=this.splitBusinessHourSegs(a.businessHourSegs,s),h=this.splitNowIndicatorSegs(a.nowIndicatorSegs,s),v=this.splitDateSelectionSegs(a.dateSelectionSegs,s),_=this.splitEventDrag(a.eventDrag,s),y=this.splitEventResize(a.eventResize,s);return an("div",{className:"fc-timegrid-cols",ref:this.rootElRef},an("table",{role:"presentation",style:{minWidth:a.tableMinWidth,width:a.clientWidth}},a.tableColGroupNode,an("tbody",{role:"presentation"},an("tr",{role:"row"},a.axis&&an("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},an("div",{className:"fc-timegrid-col-frame"},an("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&an(A9,{isAxis:!0,date:a.nowDate},function(k,w,D,A){return an("div",{ref:k,className:["fc-timegrid-now-indicator-arrow"].concat(w).join(" "),style:{top:r}},A)})))),a.cells.map(function(k,w){return an(jit,{key:k.key,elRef:n.cellElRefs.createRef(k.key),dateProfile:a.dateProfile,date:k.date,nowDate:a.nowDate,todayRange:a.todayRange,extraHookProps:k.extraHookProps,extraDataAttrs:k.extraDataAttrs,extraClassNames:k.extraClassNames,extraDateSpan:k.extraDateSpan,fgEventSegs:l[w],bgEventSegs:f[w],businessHourSegs:p[w],nowIndicatorSegs:h[w],dateSelectionSegs:v[w],eventDrag:_[w],eventResize:y[w],slatCoords:a.slatCoords,eventSelection:a.eventSelection,forPrint:a.forPrint})})))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var n=this.props;n.onColCoords&&n.clientWidth!==null&&n.onColCoords(new X0(this.rootElRef.current,Bit(this.cellElRefs.currentMap,n.cells),!0,!1))},t}(Wa);function Bit(e,t){return t.map(function(n){return e[n.key]})}var Uit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.processSlotOptions=Or(Hit),n.state={slatCoords:null},n.handleRootEl=function(i){i?n.context.registerInteractiveComponent(n,{el:i,isHitComboAllowed:n.props.isHitComboAllowed}):n.context.unregisterInteractiveComponent(n)},n.handleScrollRequest=function(i){var a=n.props.onScrollTopRequest,o=n.state.slatCoords;if(a&&o){if(i.time){var r=o.computeTimeTop(i.time);r=Math.ceil(r),r&&(r+=1),a(r)}return!0}return!1},n.handleColCoords=function(i){n.colCoords=i},n.handleSlatCoords=function(i){n.setState({slatCoords:i}),n.props.onSlatCoords&&n.props.onSlatCoords(i)},n}return t.prototype.render=function(){var n=this,i=n.props,a=n.state;return an("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:i.clientWidth,minWidth:i.tableMinWidth}},an(Cit,{axis:i.axis,dateProfile:i.dateProfile,slatMetas:i.slatMetas,clientWidth:i.clientWidth,minHeight:i.expandRows?i.clientHeight:"",tableMinWidth:i.tableMinWidth,tableColGroupNode:i.axis?i.tableColGroupNode:null,onCoords:this.handleSlatCoords}),an(Nit,{cells:i.cells,axis:i.axis,dateProfile:i.dateProfile,businessHourSegs:i.businessHourSegs,bgEventSegs:i.bgEventSegs,fgEventSegs:i.fgEventSegs,dateSelectionSegs:i.dateSelectionSegs,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,todayRange:i.todayRange,nowDate:i.nowDate,nowIndicatorSegs:i.nowIndicatorSegs,clientWidth:i.clientWidth,tableMinWidth:i.tableMinWidth,tableColGroupNode:i.tableColGroupNode,slatCoords:a.slatCoords,onColCoords:this.handleColCoords,forPrint:i.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(n){this.scrollResponder.update(n.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(n,i){var a=this.context,o=a.dateEnv,r=a.options,s=this.colCoords,l=this.props.dateProfile,f=this.state.slatCoords,p=this.processSlotOptions(this.props.slotDuration,r.snapDuration),h=p.snapDuration,v=p.snapsPerSlot,_=s.leftToIndex(n),y=f.positions.topToIndex(i);if(_!=null&&y!=null){var k=this.props.cells[_],w=f.positions.tops[y],D=f.positions.getHeight(y),A=(i-w)/D,L=Math.floor(A*v),T=y*v+L,z=this.props.cells[_].date,B=B6(l.slotMinTime,EJe(h,T)),W=o.add(z,B),N=o.add(W,h);return{dateProfile:l,dateSpan:kn({range:{start:W,end:N},allDay:!1},k.extraDateSpan),dayEl:s.els[_],rect:{left:s.lefts[_],right:s.rights[_],top:w,bottom:w+D},layer:0}}return null},t}(S1);function Hit(e,t){var n=t||e,i=a9(e,n);return i===null&&(n=e,i=1),{snapDuration:n,snapsPerSlot:i}}var qit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.sliceRange=function(n,i){for(var a=[],o=0;o<i.length;o+=1){var r=Jh(n,i[o]);r&&a.push({start:r.start,end:r.end,isStart:r.start.valueOf()===n.start.valueOf(),isEnd:r.end.valueOf()===n.end.valueOf(),col:o})}return a},t}(JP),Wit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.buildDayRanges=Or(Git),n.slicer=new qit,n.timeColsRef=pc(),n}return t.prototype.render=function(){var n=this,i=this,a=i.props,o=i.context,r=a.dateProfile,s=a.dayTableModel,l=o.options.nowIndicator,f=this.buildDayRanges(s,r,o.dateEnv);return an(Cg,{unit:l?"minute":"day"},function(p,h){return an(Uit,kn({ref:n.timeColsRef},n.slicer.sliceProps(a,r,null,o,f),{forPrint:a.forPrint,axis:a.axis,dateProfile:r,slatMetas:a.slatMetas,slotDuration:a.slotDuration,cells:s.cells[0],tableColGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,clientWidth:a.clientWidth,clientHeight:a.clientHeight,expandRows:a.expandRows,nowDate:p,nowIndicatorSegs:l&&n.slicer.sliceNowDate(p,o,f),todayRange:h,onScrollTopRequest:a.onScrollTopRequest,onSlatCoords:a.onSlatCoords}))})},t}(S1);function Git(e,t,n){for(var i=[],a=0,o=e.headerDates;a<o.length;a++){var r=o[a];i.push({start:n.add(r,t.slotMinTime),end:n.add(r,t.slotMaxTime)})}return i}var UC=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Yit(e,t,n,i,a){for(var o=new Date(0),r=e,s=Ba(0),l=n||Xit(i),f=[];Pf(r)<Pf(t);){var p=a.add(o,r),h=a9(s,l)!==null;f.push({date:p,time:r,key:p.toISOString(),isoTimeStr:DJe(p),isLabeled:h}),r=B6(r,i),s=B6(s,i)}return f}function Xit(e){var t,n,i;for(t=UC.length-1;t>=0;t-=1)if(n=Ba(UC[t]),i=a9(n,e),i!==null&&i>1)return n;return e}var Kit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.buildTimeColsModel=Or(Zit),n.buildSlatMetas=Or(Yit),n}return t.prototype.render=function(){var n=this,i=this.context,a=i.options,o=i.dateEnv,r=i.dateProfileGenerator,s=this.props,l=s.dateProfile,f=this.buildTimeColsModel(l,r),p=this.allDaySplitter.splitProps(s),h=this.buildSlatMetas(l.slotMinTime,l.slotMaxTime,a.slotLabelInterval,a.slotDuration,o),v=a.dayMinWidth,_=!v,y=v,k=a.dayHeaders&&an(XP,{dates:f.headerDates,dateProfile:l,datesRepDistinctDays:!0,renderIntro:_?this.renderHeadAxis:null}),w=a.allDaySlot!==!1&&function(A){return an(gF,kn({},p.allDay,{dateProfile:l,dayTableModel:f,nextDayThreshold:a.nextDayThreshold,tableMinWidth:A.tableMinWidth,colGroupNode:A.tableColGroupNode,renderRowIntro:_?n.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:n.headerElRef,clientWidth:A.clientWidth,clientHeight:A.clientHeight,forPrint:s.forPrint},n.getAllDayMaxEventProps()))},D=function(A){return an(Wit,kn({},p.timed,{dayTableModel:f,dateProfile:l,axis:_,slotDuration:a.slotDuration,slatMetas:h,forPrint:s.forPrint,tableColGroupNode:A.tableColGroupNode,tableMinWidth:A.tableMinWidth,clientWidth:A.clientWidth,clientHeight:A.clientHeight,onSlatCoords:n.handleSlatCoords,expandRows:A.expandRows,onScrollTopRequest:n.handleScrollTopRequest}))};return y?this.renderHScrollLayout(k,w,D,f.colCnt,v,h,this.state.slatCoords):this.renderSimpleLayout(k,w,D)},t}(wit);function Zit(e,t){var n=new KP(e.renderRange,t);return new ZP(n,!1)}var Jit={allDaySlot:Boolean},Qit=C1({initialView:"timeGridWeek",optionRefiners:Jit,views:{timeGrid:{component:Kit,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});const ert=$t({inheritAttrs:!1,props:{itemCount:{type:Number,default:null},showingCount:{type:String,default:null}}}),trt={key:0,class:"item-count"};function nrt(e,t,n,i,a,o){return G(),_e(cd,{name:"fade"},{default:R(()=>[e.itemCount?(G(),Me("span",trt,he(e.showingCount),1)):Je("",!0)]),_:1})}var irt=Ot(ert,[["render",nrt],["__scopeId","data-v-ceefb89c"]]);const rrt={class:"calendar-layout"},art=$t({inheritAttrs:!1}),ort=$t({...art,name:"calendar",props:{createCalendar:null,destroyCalendar:null,itemCount:{default:void 0}},emits:["update:selection"],setup(e){const t=e,{n,t:i}=yn(),a=ze();Lo(()=>{t.createCalendar(a.value)}),Lc(()=>{t.destroyCalendar()});const o=Ee(()=>t.itemCount===1e4);return(r,s)=>{const l=Y("v-notice");return G(),Me("div",rrt,[V(o)?(G(),_e(l,{key:0,type:"warning"},{default:R(()=>[Ne(he(V(i)("dataset_too_large_currently_showing_n_items",{n:V(n)(1e4)})),1)]),_:1})):Je("",!0),ke("div",{ref_key:"calendarElement",ref:a},null,512)])}}});var srt=Ot(ort,[["__scopeId","data-v-49a24244"]]);const lrt=$t({inheritAttrs:!1,props:{collection:{type:String,required:!0},template:{type:String,default:null},dateFields:{type:Array,required:!0},startDateField:{type:String,default:null},endDateField:{type:String,default:null},firstDay:{type:Number,default:0}},emits:["update:template","update:startDateField","update:endDateField","update:firstDay"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"template",t),a=qr(e,"startDateField",t),o=qr(e,"endDateField",t),r=qr(e,"firstDay",t),s=ze([]);return Lo(async()=>{const l=Ev(new Date);s.value=await Promise.all([...Array(7).keys()].map(async(f,p)=>({text:Tl(x8(l,{days:p}),"EEEE"),value:p})))}),{t:n,templateWritable:i,startDateFieldWritable:a,endDateFieldWritable:o,firstDayWritable:r,firstDayOptions:s}}}),crt={class:"field"},urt={class:"type-label"},drt={class:"field"},frt={class:"type-label"},prt={class:"field"},hrt={class:"type-label"},mrt={class:"field"},vrt={class:"type-label"};function grt(e,t,n,i,a,o){const r=Y("v-field-template"),s=Y("v-select");return G(),Me(gn,null,[ke("div",crt,[ke("div",urt,he(e.t("display_template")),1),F(r,{modelValue:e.templateWritable,"onUpdate:modelValue":t[0]||(t[0]=l=>e.templateWritable=l),collection:e.collection},null,8,["modelValue","collection"])]),ke("div",drt,[ke("div",frt,he(e.t("layouts.calendar.start_date_field")),1),F(s,{modelValue:e.startDateFieldWritable,"onUpdate:modelValue":t[1]||(t[1]=l=>e.startDateFieldWritable=l),"show-deselect":"",items:e.dateFields,"item-text":"name","item-value":"field"},null,8,["modelValue","items"])]),ke("div",prt,[ke("div",hrt,he(e.t("layouts.calendar.end_date_field")),1),F(s,{modelValue:e.endDateFieldWritable,"onUpdate:modelValue":t[2]||(t[2]=l=>e.endDateFieldWritable=l),"show-deselect":"",placeholder:e.t("layouts.calendar.optional"),items:e.dateFields,"item-text":"name","item-value":"field"},null,8,["modelValue","placeholder","items"])]),ke("div",mrt,[ke("div",vrt,he(e.t("layouts.calendar.first_day")),1),F(s,{modelValue:e.firstDayWritable,"onUpdate:modelValue":t[3]||(t[3]=l=>e.firstDayWritable=l),items:e.firstDayOptions},null,8,["modelValue","items"])])],64)}var yrt=Ot(lrt,[["render",grt]]),_rt=p4({id:"calendar",name:"$t:layouts.calendar.calendar",icon:"event",component:srt,slots:{options:yrt,sidebar:()=>{},actions:irt},setup(e,{emit:t}){const{t:n,locale:i}=yn(),a=ze(),o=Pc(),r=qr(e,"selection",t),s=qr(e,"layoutOptions",t),{collection:l,filter:f,search:p}=wr(e),{primaryKeyField:h,fields:v}=Ns(l),_=Ee(()=>v.value.filter(At=>["timestamp","dateTime","date"].includes(At.type))),y=Ee(()=>{if(!a.value||!A.value)return;const At=J2(a.value.view.activeStart),Tt=J2(a.value.view.activeEnd),Vt={[A.value]:{_between:[At,Tt]}};if(!T.value)return Vt;const on={[T.value]:{_between:[At,Tt]}},_t={[A.value]:{_lte:At}},Ut={[T.value]:{_gte:Tt}};return{_or:[Vt,on,{_and:[_t,Ut]}]}}),k=Ee(()=>y.value?f.value?{_and:[f.value,y.value]}:null:f.value),w=Al(s,"template",void 0),D=Al(s,"viewInfo",void 0),A=Al(s,"startDateField",void 0),L=Ee(()=>v.value.find(At=>At.field===A.value)),T=Al(s,"endDateField",void 0),z=Ee(()=>v.value.find(At=>At.field===T.value)),B=Al(s,"firstDay",void 0),W=Ee(()=>{if(!h.value)return[];const At=[h.value.field];return w.value&&At.push(...hc(w.value)),A.value&&At.push(A.value),T.value&&At.push(T.value),At}),{items:N,loading:K,error:re,totalPages:se,itemCount:ce,totalCount:de,changeManualSort:ge,getItems:Ce}=h4(l,{sort:Ee(()=>{var At;return[((At=h.value)==null?void 0:At.field)||""]}),page:ze(1),limit:ze(1e4),fields:W,filter:k,search:p},!1),Oe=Ee(()=>N.value.map(At=>De(At)).filter(At=>At)||[]),Ve=Ee(()=>{var Tt,Vt,on,_t,Ut,Nt,Qt;const At={editable:!0,eventStartEditable:!0,eventResizableFromStart:!0,eventDurationEditable:!0,dayMaxEventRows:!0,height:"100%",firstDay:(Tt=B.value)!=null?Tt:0,nextDayThreshold:"01:00:00",plugins:[Pnt,Qit,hit,tit],initialView:(on=(Vt=D.value)==null?void 0:Vt.type)!=null?on:"dayGridMonth",headerToolbar:{left:"prevYear,prev,next,nextYear today",center:"title",right:"dayGridMonth,dayGridWeek,dayGridDay,listWeek"},views:{dayGridMonth:{eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:"narrow"}}},events:Oe.value,initialDate:(Ut=(_t=D.value)==null?void 0:_t.startDateStr)!=null?Ut:J2(new Date),eventClick(Jt){var qt;if(!!l.value)if(e.selectMode||((qt=r.value)==null?void 0:qt.length)>0){const Dt=N.value.find(nt=>nt[h.value.field]==Jt.event.id);if(Dt){const nt=Dt[h.value.field];r.value.includes(nt)?r.value=r.value.filter(Pe=>Pe!==nt):r.value=[...r.value,nt],Te()}}else{const Dt=Jt.event.id,nt=l.value.startsWith("directus")?l.value.substring(9):`content/${l.value}`;ol.push(`/${nt}/${Dt}`)}},async eventChange(Jt){if(!l.value||!A.value||!L.value)return;const qt={[A.value]:ht(Jt.event.startStr,L.value.type)};T.value&&z.value&&Jt.event.endStr&&(qt[T.value]=ht(Jt.event.endStr,z.value.type));const Dt=l.value.startsWith("directus")?l.value.substring(9):`/items/${l.value}`;try{await $n.patch(`${Dt}/${Jt.event.id}`,qt)}catch(nt){Hi(nt)}}};return(((Nt=L.value)==null?void 0:Nt.type)==="dateTime"||((Qt=L.value)==null?void 0:Qt.type)==="timestamp")&&(At.headerToolbar={...At.headerToolbar,right:"dayGridMonth,timeGridWeek,timeGridDay,listWeek"}),At});Zn(()=>o.sidebarOpen,()=>setTimeout(()=>{var At;return(At=a.value)==null?void 0:At.updateSize()},300)),Zn(Ve,()=>Te(),{deep:!0,immediate:!0}),Zn([a,i],async()=>{if(a.value){const At=await vZe(i.value);a.value.setOption("locale",At)}},{immediate:!0});const Ye=Ee(()=>ce.value?n("item_count",ce.value):null);return{items:N,loading:K,error:re,totalPages:se,itemCount:ce,totalCount:de,changeManualSort:ge,getItems:Ce,filterWithCalendarView:k,template:w,dateFields:_,startDateField:A,endDateField:T,firstDay:B,showingCount:Ye,createCalendar:it,destroyCalendar:Le,download:ot};function ot(){!l.value||r_(l.value,W.value,N.value)}function Te(){a.value&&(a.value.pauseRendering(),a.value.resetOptions(Ve.value),a.value.resumeRendering(),a.value.render())}function it(At){a.value=new fnt(At,Ve.value),a.value.on("datesSet",Tt=>{D.value={type:Tt.view.type,startDateStr:J2(Tt.view.currentStart)}}),a.value.render()}function Le(){var At;(At=a.value)==null||At.destroy()}function De(At){if(!A.value||!h.value)return null;let Tt;const Vt=z.value&&z.value.type==="date";if(T.value)if(Vt&&b4(At[T.value])){const _t=u1(At[T.value],"yyyy-MM-dd",new Date);_t.setDate(_t.getDate()+1),Tt=K1(_t,"yyyy-MM-dd")}else Tt=At[T.value];const on=At[h.value.field];return{id:on,title:Hre(l.value,w.value||`{{ ${h.value.field} }}`,At)||At[h.value.field],start:At[A.value],end:Tt,allDay:Vt,className:r.value.includes(on)?"selected":void 0}}function ht(At,Tt){return Tt==="dateTime"?At.substring(0,19):At}}}),brt=Object.freeze(Object.defineProperty({__proto__:null,default:_rt},Symbol.toStringTag,{value:"Module"}));const wrt=$t({inheritAttrs:!1,props:{itemCount:{type:Number,default:null},showingCount:{type:String,required:!0}}}),xrt={key:0,class:"item-count"};function krt(e,t,n,i,a,o){return G(),_e(cd,{name:"fade"},{default:R(()=>[e.itemCount?(G(),Me("span",xrt,he(e.showingCount),1)):Je("",!0)]),_:1})}var Srt=Ot(wrt,[["render",krt],["__scopeId","data-v-4039d1ee"]]);const Crt=$t({props:{icon:{type:String,default:"box"},file:{type:Object,default:null},crop:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},item:{type:Object,default:null},modelValue:{type:Array,default:()=>[]},selectMode:{type:Boolean,default:!1},to:{type:String,default:""},readonly:{type:Boolean,default:!1},itemKey:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=qa(),i=ze(!1),a=Ee(()=>!e.file||!e.file.type||!i.value&&e.file.type.startsWith("image")?null:Q1(e.file.type,!0)),o=Ee(()=>{let p;if(!e.file||!e.file.type)return null;if(e.file.type.startsWith("image")===!0&&(p="image"),e.file.type.includes("svg")&&(p="svg"),!p)return{source:void 0,fileType:p};let h="system-medium-cover";return e.crop===!1&&(h="system-medium-contain"),{source:`/assets/${e.file.id}?key=${h}&modified=${e.file.modified_on}`,fileType:p}}),r=Ee(()=>o.value&&o.value.fileType),s=Ee(()=>e.item&&e.modelValue.includes(e.item[e.itemKey])?"check_circle":"radio_button_unchecked");return{imageInfo:o,type:a,showThumbnail:r,selectionIcon:s,toggleSelection:l,handleClick:f,imgError:i};function l(){if(!e.item)return null;e.modelValue.includes(e.item[e.itemKey])?t("update:modelValue",e.modelValue.filter(p=>p!==e.item[e.itemKey])):t("update:modelValue",[...e.modelValue,e.item[e.itemKey]])}function f(){e.selectMode===!0?l():n.push(e.to)}}}),Ert=e=>(ya("data-v-15c0a270"),e=e(),_a(),e),Art={class:"header"},Trt=Ert(()=>ke("div",{class:"selection-fade"},null,-1)),Drt={key:0,class:"title"},Irt={key:1,class:"subtitle"};function Mrt(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-skeleton-loader"),l=Y("v-icon-file"),f=Y("v-image");return G(),Me("div",{class:wn(["card",{loading:e.loading,readonly:e.readonly,selected:e.item&&e.modelValue.includes(e.item[e.itemKey]),"select-mode":e.selectMode}]),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[F(r,{class:"selector",name:e.selectionIcon,onClick:Li(e.toggleSelection,["stop"])},null,8,["name","onClick"]),ke("div",Art,[Trt,e.loading?(G(),_e(s,{key:0})):(G(),Me(gn,{key:1},[e.type||e.imgError?(G(),_e(l,{key:0,ext:e.type},null,8,["ext"])):(G(),Me(gn,{key:1},[e.showThumbnail?(G(),_e(f,{key:0,class:wn(e.imageInfo.fileType),src:e.imageInfo.source,alt:e.item.title,role:"presentation"},null,8,["class","src","alt"])):(G(),_e(r,{key:1,large:"",name:e.icon},null,8,["name"]))],64))],64))]),e.loading?(G(),_e(s,{key:0,type:"text"})):(G(),Me(gn,{key:1},[e.$slots.title?(G(),Me("div",Drt,[di(e.$slots,"title",{},void 0,!0)])):Je("",!0),e.$slots.subtitle?(G(),Me("div",Irt,[di(e.$slots,"subtitle",{},void 0,!0)])):Je("",!0)],64))],2)}var Lrt=Ot(Crt,[["render",Mrt],["__scopeId","data-v-15c0a270"]]);const Prt=$t({props:{fields:{type:Array,required:!0},size:{type:Number,required:!0},sort:{type:Array,required:!0},showSelect:{type:String,default:"multiple"},selection:{type:Array,default:()=>[]}},emits:["select-all","update:size","update:sort","update:selection"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"size",t),a=qr(e,"sort",t),o=qr(e,"selection",t),r=Ee(()=>e.sort[0].startsWith("-")),s=Ee(()=>e.sort[0].startsWith("-")?e.sort[0].substring(1):e.sort[0]),l=Ee(()=>e.fields.find(v=>v.field===s.value)),f=Ee(()=>e.fields.filter(v=>v.field.startsWith("$")===!1).map(v=>({field:v.field,name:v.name,disabled:["json","o2m","m2o","m2a","file","files","alias","presentation"].includes(v.type)})));return{t:n,toggleSize:p,descending:r,toggleDescending:h,sortField:l,sizeSync:i,sortSync:a,selectionSync:o,sortKey:s,fieldsWithoutFake:f};function p(){e.size>=2&&e.size<5?i.value++:i.value=2}function h(){r.value===!0?a.value=[a.value[0].substring(1)]:a.value=["-"+a.value]}}}),Frt={class:"cards-header"},Rrt={class:"start"},Ort={class:"label"},$rt={class:"label"},zrt={class:"end"},jrt=["onClick"];function Vrt(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-content"),l=Y("v-list-item"),f=Y("v-list"),p=Y("v-menu"),h=pi("tooltip");return G(),Me("div",Frt,[ke("div",Rrt,[e.selectionSync.length>0?(G(),Me("div",{key:0,class:"selected",onClick:t[0]||(t[0]=v=>e.selectionSync=[])},[F(r,{name:"cancel",outline:""}),ke("span",Ort,he(e.t("n_items_selected",e.selectionSync.length)),1)])):(G(),Me("button",{key:1,class:"select-all",onClick:t[1]||(t[1]=v=>e.showSelect==="multiple"?e.$emit("select-all"):void 0)},[F(r,{name:"check_circle",outline:""}),ke("span",$rt,he(e.t(e.showSelect==="multiple"?"select_all":"select_an_item")),1)]))]),ke("div",zrt,[dn(F(r,{class:"size-selector",name:`grid_${7-e.size}`,clickable:"",onClick:e.toggleSize},null,8,["name","onClick"]),[[h,e.t("card_size"),void 0,{top:!0}]]),F(p,{"show-arrow":"",placement:"bottom"},{activator:R(({toggle:v})=>[dn((G(),Me("div",{class:"sort-selector",onClick:v},[Ne(he(e.sortField&&e.sortField.name),1)],8,jrt)),[[h,e.t("sort_field"),void 0,{top:!0}]])]),default:R(()=>[F(f,null,{default:R(()=>[(G(!0),Me(gn,null,vi(e.fieldsWithoutFake,v=>(G(),_e(l,{key:v.field,disabled:v.disabled,active:v.field===e.sortKey,clickable:"",onClick:_=>e.sortSync=[v.field]},{default:R(()=>[F(s,null,{default:R(()=>[Ne(he(v.name),1)]),_:2},1024)]),_:2},1032,["disabled","active","onClick"]))),128))]),_:1})]),_:1}),dn(F(r,{class:wn(["sort-direction",{descending:e.descending}]),name:"sort",clickable:"",onClick:e.toggleDescending},null,8,["class","onClick"]),[[h,e.t("sort_direction"),void 0,{top:!0}]])])])}var Nrt=Ot(Prt,[["render",Vrt],["__scopeId","data-v-e1acf4b8"]]);const Brt=$t({components:{Card:Lrt,CardsHeader:Nrt},inheritAttrs:!1,props:{collection:{type:String,required:!0},selection:{type:Array,required:!0},showSelect:{type:String,default:"multiple"},selectMode:{type:Boolean,required:!0},readonly:{type:Boolean,required:!0},items:{type:Array,required:!0},loading:{type:Boolean,required:!0},error:{type:Object,default:null},totalPages:{type:Number,required:!0},page:{type:Number,required:!0},toPage:{type:Function,required:!0},itemCount:{type:Number,default:null},fieldsInCollection:{type:Array,required:!0},limit:{type:Number,required:!0},size:{type:Number,required:!0},primaryKeyField:{type:Object,default:null},icon:{type:String,required:!0},imageSource:{type:String,default:null},title:{type:String,default:null},subtitle:{type:String,default:null},getLinkForItem:{type:Function,required:!0},imageFit:{type:String,required:!0},sort:{type:Array,required:!0},info:{type:Object,default:null},isSingleRow:{type:Boolean,required:!0},width:{type:Number,required:!0},selectAll:{type:Function,required:!0},resetPresetAndRefresh:{type:Function,required:!0},filter:{type:Object,default:null},search:{type:String,default:null}},emits:["update:selection","update:limit","update:size","update:sort","update:width"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"selection",t),a=qr(e,"limit",t),o=qr(e,"size",t),r=qr(e,"sort",t),s=Il("main-element"),l=ze(),{width:f}=qh(l);return Zn(()=>e.page,()=>{var p;return(p=s.value)==null?void 0:p.scrollTo({top:0,behavior:"smooth"})}),Zn(f,()=>{t("update:width",f.value)}),{t:n,selectionWritable:i,limitWritable:a,sizeWritable:o,sortWritable:r,layoutElement:l}}}),Urt={class:"footer"},Hrt={class:"pagination"},qrt={key:0,class:"per-page"};function Wrt(e,t,n,i,a,o){const r=Y("cards-header"),s=Y("render-template"),l=Y("card"),f=Y("v-pagination"),p=Y("v-select"),h=Y("v-error"),v=Y("v-button"),_=Y("v-info");return G(),Me("div",{ref:"layoutElement",class:"layout-cards",style:Kr({"--size":e.size*40+"px"})},[e.loading||e.itemCount>0?(G(),Me(gn,{key:0},[F(r,{size:e.sizeWritable,"onUpdate:size":t[0]||(t[0]=y=>e.sizeWritable=y),selection:e.selectionWritable,"onUpdate:selection":t[1]||(t[1]=y=>e.selectionWritable=y),sort:e.sortWritable,"onUpdate:sort":t[2]||(t[2]=y=>e.sortWritable=y),fields:e.fieldsInCollection,"show-select":e.showSelect,onSelectAll:e.selectAll},null,8,["size","selection","sort","fields","show-select","onSelectAll"]),ke("div",{class:wn(["grid",{"single-row":e.isSingleRow}])},[(G(!0),Me(gn,null,vi(e.items,y=>(G(),_e(l,{key:y[e.primaryKeyField.field],modelValue:e.selectionWritable,"onUpdate:modelValue":t[3]||(t[3]=k=>e.selectionWritable=k),"item-key":e.primaryKeyField.field,crop:e.imageFit==="crop",icon:e.icon,file:e.imageSource?y[e.imageSource]:null,item:y,"select-mode":e.selectMode||e.selection&&e.selection.length>0,to:e.getLinkForItem(y),readonly:e.readonly},La({_:2},[e.title?{name:"title",fn:R(()=>[F(s,{collection:e.collection,item:y,template:e.title},null,8,["collection","item","template"])])}:void 0,e.subtitle?{name:"subtitle",fn:R(()=>[F(s,{collection:e.collection,item:y,template:e.subtitle},null,8,["collection","item","template"])])}:void 0]),1032,["modelValue","item-key","crop","icon","file","item","select-mode","to","readonly"]))),128))],2),ke("div",Urt,[ke("div",Hrt,[e.totalPages>1?(G(),_e(f,{key:0,length:e.totalPages,"total-visible":7,"show-first-last":"","model-value":e.page,"onUpdate:modelValue":e.toPage},null,8,["length","model-value","onUpdate:modelValue"])):Je("",!0)]),e.loading===!1&&e.items.length>=25?(G(),Me("div",qrt,[ke("span",null,he(e.t("per_page")),1),F(p,{"model-value":`${e.limit}`,items:["25","50","100","250","500","1000"],inline:"","onUpdate:modelValue":t[4]||(t[4]=y=>e.limitWritable=+y)},null,8,["model-value"])])):Je("",!0)])],64)):e.error?(G(),_e(_,{key:1,type:"danger",title:e.t("unexpected_error"),icon:"error",center:""},{append:R(()=>[F(h,{error:e.error},null,8,["error"]),F(v,{small:"",class:"reset-preset",onClick:e.resetPresetAndRefresh},{default:R(()=>[Ne(he(e.t("reset_page_preferences")),1)]),_:1},8,["onClick"])]),default:R(()=>[Ne(he(e.t("unexpected_error_copy"))+" ",1)]),_:1},8,["title"])):e.itemCount===0&&(e.filter||e.search)?di(e.$slots,"no-results",{key:2},void 0,!0):e.itemCount===0?di(e.$slots,"no-items",{key:3},void 0,!0):Je("",!0)],4)}var Grt=Ot(Brt,[["render",Wrt],["__scopeId","data-v-5d9af6b8"]]);const Yrt=$t({inheritAttrs:!1,props:{collection:{type:String,required:!0},icon:{type:String,required:!0},fileFields:{type:Array,required:!0},imageSource:{type:String,default:null},title:{type:String,default:null},subtitle:{type:String,default:null},imageFit:{type:String,required:!0}},emits:["update:icon","update:imageSource","update:title","update:subtitle","update:imageFit"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"icon",t),a=qr(e,"imageSource",t),o=qr(e,"title",t),r=qr(e,"subtitle",t),s=qr(e,"imageFit",t);return{t:n,iconWritable:i,imageSourceWritable:a,titleWritable:o,subtitleWritable:r,imageFitWritable:s}}}),Xrt={class:"field"},Krt={class:"type-label"},Zrt={class:"field"},Jrt={class:"type-label"},Qrt={class:"field"},eat={class:"type-label"},tat={class:"nested-options"},nat={class:"field"},iat={class:"type-label"},rat={class:"field"},aat={class:"type-label"};function oat(e,t,n,i,a,o){const r=Y("v-select"),s=Y("v-field-template"),l=Y("interface-select-icon"),f=Y("v-detail");return G(),Me(gn,null,[ke("div",Xrt,[ke("div",Krt,he(e.t("layouts.cards.image_source")),1),F(r,{modelValue:e.imageSourceWritable,"onUpdate:modelValue":t[0]||(t[0]=p=>e.imageSourceWritable=p),"show-deselect":"","item-value":"field","item-text":"name",items:e.fileFields},null,8,["modelValue","items"])]),ke("div",Zrt,[ke("div",Jrt,he(e.t("layouts.cards.title")),1),F(s,{modelValue:e.titleWritable,"onUpdate:modelValue":t[1]||(t[1]=p=>e.titleWritable=p),collection:e.collection},null,8,["modelValue","collection"])]),ke("div",Qrt,[ke("div",eat,he(e.t("layouts.cards.subtitle")),1),F(s,{modelValue:e.subtitleWritable,"onUpdate:modelValue":t[2]||(t[2]=p=>e.subtitleWritable=p),collection:e.collection},null,8,["modelValue","collection"])]),F(f,{class:"field"},{title:R(()=>[Ne(he(e.t("advanced")),1)]),default:R(()=>[ke("div",tat,[ke("div",nat,[ke("div",iat,he(e.t("layouts.cards.image_fit")),1),F(r,{modelValue:e.imageFitWritable,"onUpdate:modelValue":t[3]||(t[3]=p=>e.imageFitWritable=p),disabled:e.imageSource===null,items:[{text:e.t("layouts.cards.crop"),value:"crop"},{text:e.t("layouts.cards.contain"),value:"contain"}]},null,8,["modelValue","disabled","items"])]),ke("div",rat,[ke("div",aat,he(e.t("fallback_icon")),1),F(l,{value:e.icon,onInput:t[4]||(t[4]=p=>e.iconWritable=p)},null,8,["value"])])])]),_:1})],64)}var sat=Ot(Yrt,[["render",oat],["__scopeId","data-v-04d20ce4"]]),lat=p4({id:"cards",name:"$t:layouts.cards.cards",icon:"grid_4",component:Grt,slots:{options:sat,sidebar:()=>{},actions:Srt},setup(e,{emit:t}){const n=Qo(),i=qr(e,"selection",t),a=qr(e,"layoutOptions",t),o=qr(e,"layoutQuery",t),{collection:r,filter:s,search:l,filterUser:f}=wr(e),{info:p,primaryKeyField:h,fields:v}=Ns(r),_=Ee(()=>v.value.filter(Tt=>Tt.field==="$thumbnail"?!0:!!n.relations.find(on=>on.collection===e.collection&&on.field===Tt.field&&on.related_collection==="directus_files"))),{size:y,icon:k,imageSource:w,title:D,subtitle:A,imageFit:L}=Le(),{sort:T,limit:z,page:B,fields:W}=De(),{items:N,loading:K,error:re,totalPages:se,itemCount:ce,totalCount:de,getItems:ge}=h4(r,{sort:T,limit:z,page:B,fields:W,filter:s,search:l}),Ce=Ee(()=>{const Tt=Boolean((ce.value||0)<(de.value||0)&&f.value);return xg(ce.value||0,B.value,z.value,Tt)}),Oe=ze(0),Ve=Ee(()=>N.value.length*(y.value*40)+(N.value.length-1)*24<=Oe.value);return{items:N,loading:K,error:re,totalPages:se,page:B,toPage:it,itemCount:ce,totalCount:de,fieldsInCollection:v,limit:z,size:y,primaryKeyField:h,icon:k,fileFields:_,imageSource:w,title:D,subtitle:A,getLinkForItem:ht,imageFit:L,sort:T,info:p,showingCount:Ce,isSingleRow:Ve,width:Oe,refresh:ot,selectAll:At,resetPresetAndRefresh:Ye,filter:s,search:l,download:Te};async function Ye(){var Tt;await((Tt=e==null?void 0:e.resetPreset)==null?void 0:Tt.call(e)),ot()}function ot(){ge()}function Te(){!r.value||r_(r.value,W.value,N.value)}function it(Tt){B.value=Tt}function Le(){var Jt,qt;const Tt=Qt("size",4),Vt=Qt("icon","box"),on=Qt("title",null),_t=Qt("subtitle",null),Ut=Qt("imageSource",(qt=(Jt=_.value[0])==null?void 0:Jt.field)!=null?qt:null),Nt=Qt("imageFit","crop");return{size:Tt,icon:Vt,imageSource:Ut,title:on,subtitle:_t,imageFit:Nt};function Qt(Dt,nt){return Ee({get(){var Pe,He;return((Pe=a.value)==null?void 0:Pe[Dt])!==void 0?(He=a.value)==null?void 0:He[Dt]:nt},set(Pe){a.value={...a.value,[Dt]:Pe}}})}}function De(){const Tt=Al(o,"page",1),Vt=Al(o,"limit",25),on=Ee(()=>{var Nt;return h.value?[(Nt=h.value)==null?void 0:Nt.field]:[]}),_t=Al(o,"sort",on),Ut=Ee(()=>{if(!h.value||!e.collection)return[];const Nt=[h.value.field];w.value&&(Nt.push(`${w.value}.modified_on`),Nt.push(`${w.value}.type`),Nt.push(`${w.value}.filename_disk`),Nt.push(`${w.value}.storage`),Nt.push(`${w.value}.id`)),e.collection==="directus_files"&&w.value==="$thumbnail"&&(Nt.push("modified_on"),Nt.push("type"));const Qt=[];return D.value&&Qt.push(...hc(D.value)),A.value&&Qt.push(...hc(A.value)),[...Nt,...dd(Qt,e.collection)]});return{sort:_t,limit:Vt,page:Tt,fields:Ut}}function ht(Tt){if(!!h.value)return`/content/${e.collection}/${encodeURIComponent(Tt[h.value.field])}`}function At(){if(!h.value)return;const Tt=h.value;i.value=lt.exports.clone(N.value).map(Vt=>Vt[Tt.field])}}}),cat=Object.freeze(Object.defineProperty({__proto__:null,default:lat},Symbol.toStringTag,{value:"Module"}));const uat=$t({inheritAttrs:!1,props:{itemCount:{type:Number,default:null},showingCount:{type:String,required:!0}}}),dat={key:0,class:"item-count"};function fat(e,t,n,i,a,o){return G(),_e(cd,{name:"fade"},{default:R(()=>[e.itemCount?(G(),Me("span",dat,he(e.showingCount),1)):Je("",!0)]),_:1})}var pat=Ot(uat,[["render",fat],["__scopeId","data-v-08898882"]]);const hat=$t({components:{},props:{data:{type:Object,required:!0},source:{type:Object,required:!0},layers:{type:Array,default:()=>[]},camera:{type:Object,default:()=>({})},bounds:{type:Array,default:void 0},featureId:{type:String,default:void 0},selection:{type:Array,default:()=>[]},showSelect:{type:String,default:"multiple"}},emits:["moveend","featureclick","featureselect","fitdata","updateitempopup"],setup(e,{emit:t}){var ot;const{t:n}=yn(),i=Pc(),a=sh();let o;const r=ze(),s=ze(),l=ze(),f=ze(),p=[],{sidebarOpen:h,basemap:v}=wr(i),_=(ot=a.settings)==null?void 0:ot.mapbox_key,y=fg(),k=Ee(()=>{var it;const Te=(it=y.find(Le=>Le.name===v.value))!=null?it:y[0];return l7(Te)}),w=new uf.exports.AttributionControl,D=new uf.exports.NavigationControl({showCompass:!1}),A=new uf.exports.GeolocateControl,L=new H7("mapboxgl-ctrl-fitdata",()=>{t("fitdata")}),T=new wHe({boxElementClass:"map-selection-box",selectButtonClass:"mapboxgl-ctrl-select",layers:["__directus_polygons","__directus_points","__directus_lines"]});let z;if(_){const Te=document.createElement("div");Te.className="mapboxgl-user-location-dot mapboxgl-search-location-dot",z=new zL({accessToken:_,collapsed:!0,marker:{element:Te},flyTo:{speed:1.4},mapboxgl:JM,placeholder:n("layouts.map.find_location")})}return Lo(()=>{B()}),Lc(()=>{o.remove()}),{container:f,hoveredFeature:r,hoveredCluster:s,selectMode:l};function B(){o=new uf.exports.Map({container:"map-container",style:k.value,dragRotate:!1,attributionControl:!1,...e.camera,..._?{accessToken:_}:{}}),z&&o.addControl(z,"top-right"),o.addControl(w,"bottom-left"),o.addControl(D,"top-left"),o.addControl(A,"top-left"),o.addControl(L,"top-left"),o.addControl(T,"top-left"),o.on("load",()=>{Zn(()=>k.value,N),Zn(()=>e.bounds,W);const Te=["__directus_polygons","__directus_points","__directus_lines"];for(const it of Te)o.on("click",it,ge),o.on("mousemove",it,Ce),o.on("mouseleave",it,Ce);o.on("move",Oe),o.on("click","__directus_clusters",Ve),o.on("mousemove","__directus_clusters",Ye),o.on("mouseleave","__directus_clusters",Ye),o.on("select.enable",()=>l.value=!0),o.on("select.disable",()=>l.value=!1),o.on("select.end",it=>{var De;const Le=(De=it.features)==null?void 0:De.map(ht=>ht.id);t("featureselect",{ids:Le,replace:!it.alt})}),o.on("moveend",()=>{t("moveend",{center:o.getCenter(),zoom:o.getZoom(),bearing:o.getBearing(),pitch:o.getPitch(),bbox:o.getBounds().toArray().flat()})}),K()}),Zn(()=>h.value,Te=>{Te||setTimeout(()=>o.resize(),300)}),setTimeout(()=>o.resize(),300)}function W(){const Te=e.data.bbox;o&&Te&&o.fitBounds(Te,{padding:100,speed:1.3,maxZoom:14})}function N(Te){p.forEach(it=>it()),p.length=0,o.setStyle(Te,{diff:!1}),o.once("styledata",K)}function K(){p.push(Zn(()=>e.source,se,{immediate:!0}),Zn(()=>e.selection,de,{immediate:!0}),Zn(()=>e.layers,ce),Zn(()=>e.data,re))}function re(Te){o.getSource("__directus").setData(Te),de(e.selection,void 0)}function se(Te){var Le,De;const it=new Set((Le=o.getStyle().layers)==null?void 0:Le.map(({id:ht})=>ht));for(const ht of e.layers)it.has(ht.id)&&o.removeLayer(ht.id);e.featureId?Te.promoteId=e.featureId:Te.generateId=!0,(De=o.getStyle().sources)!=null&&De.__directus&&o.removeSource("__directus"),o.addSource("__directus",{...Te,data:e.data}),o.once("sourcedata",()=>{setTimeout(()=>e.layers.forEach(ht=>o.addLayer(ht)))})}function ce(Te,it){var De;const Le=new Set((De=o.getStyle().layers)==null?void 0:De.map(({id:ht})=>ht));it==null||it.forEach(ht=>{Le.has(ht.id)&&o.removeLayer(ht.id)}),Te==null||Te.forEach(ht=>{o.addLayer(ht)})}function de(Te,it){it==null||it.forEach(Le=>{o.setFeatureState({id:Le,source:"__directus"},{selected:!1}),o.removeFeatureState({id:Le,source:"__directus"})}),Te==null||Te.forEach(Le=>{o.setFeatureState({id:Le,source:"__directus"},{selected:!0})})}function ge(Te){var De;const it=(De=Te.features)==null?void 0:De[0],Le=e.showSelect==="multiple"?!1:!Te.originalEvent.altKey;it&&e.featureId&&(T.active()?t("featureselect",{ids:[it.id],replace:Le}):t("featureclick",{id:it.id,replace:Le}))}function Ce(Te){var ht;const it=o.queryRenderedFeatures(Te.point,{layers:["__directus_polygons","__directus_points","__directus_lines"]})[0],Le=(ht=r.value)==null?void 0:ht.id,De=Le!==(it==null?void 0:it.id);if(Le&&De&&o.setFeatureState({id:Le,source:"__directus"},{hovered:!1}),it&&it.properties){if(it.geometry.type==="Point"){const{x:At,y:Tt}=o.project(it.geometry.coordinates),Vt=o.getContainer().getBoundingClientRect();t("updateitempopup",{position:{x:Vt.x+At,y:Vt.y+Tt}})}else{const{clientX:At,clientY:Tt}=Te.originalEvent;t("updateitempopup",{position:{x:At,y:Tt}})}De&&(o.setFeatureState({id:it.id,source:"__directus"},{hovered:!0}),r.value=it,t("updateitempopup",{item:it.id}))}else De&&(r.value=it,t("updateitempopup",{item:null}))}function Oe(Te){if(r.value&&Te.originalEvent){const{x:it,y:Le}=Te.originalEvent;t("updateitempopup",{position:{x:it,y:Le}})}}function Ve(Te){var ht,At;const it=o.queryRenderedFeatures(Te.point,{layers:["__directus_clusters"]}),Le=(At=(ht=it[0])==null?void 0:ht.properties)==null?void 0:At.cluster_id;o.getSource("__directus").getClusterExpansionZoom(Le,(Tt,Vt)=>{Tt||o.flyTo({center:it[0].geometry.coordinates,zoom:Vt,speed:1.3})})}function Ye(Te){Te.type=="mousemove"?s.value=!0:s.value=!1}}});function mat(e,t,n,i,a,o){return G(),Me("div",{id:"map-container",ref:"container",class:wn({select:e.selectMode,hover:e.hoveredFeature||e.hoveredCluster})},null,2)}var vat=Ot(hat,[["render",mat],["__scopeId","data-v-6baed269"]]);const gat=$t({components:{MapComponent:vat},inheritAttrs:!1,props:{collection:{type:String,required:!0},selection:{type:Array,default:()=>[]},loading:{type:Boolean,required:!0},error:{type:Object,default:null},geojsonError:{type:String,default:null},geometryOptions:{type:Object,default:void 0},geojson:{type:Object,required:!0},featureId:{type:String,default:null},geojsonBounds:{type:Object,default:void 0},directusSource:{type:Object,required:!0},directusLayers:{type:Array,required:!0},handleClick:{type:Function,required:!0},handleSelect:{type:Function,required:!0},cameraOptions:{type:Object,default:void 0},resetPresetAndRefresh:{type:Function,required:!0},geojsonLoading:{type:Boolean,required:!0},itemCount:{type:Number,default:null},totalPages:{type:Number,required:!0},page:{type:Number,required:!0},toPage:{type:Function,required:!0},limit:{type:Number,required:!0},autoLocationFilter:{type:Boolean,default:void 0},fitDataBounds:{type:Function,required:!0},template:{type:String,default:()=>{}},itemPopup:{type:Object,default:()=>{}},updateItemPopup:{type:Function,required:!0}},emits:["update:cameraOptions","update:limit"],setup(e,{emit:t}){const{t:n,n:i}=yn(),a=qr(e,"cameraOptions",t),o=qr(e,"limit",t);return{t:n,n:i,cameraOptionsWritable:a,limitWritable:o}}}),yat={class:"layout-map"},_at={key:0,class:"footer"},bat={key:0,class:"pagination"},wat={class:"mapboxgl-ctrl-dropdown"};function xat(e,t,n,i,a,o){const r=Y("map-component"),s=Y("render-template"),l=Y("v-error"),f=Y("v-button"),p=Y("v-info"),h=Y("v-progress-circular"),v=Y("v-pagination"),_=Y("v-select");return G(),Me("div",yat,[F(r,{ref:"map",class:wn(["mapboxgl-map",{loading:e.loading,error:e.error||e.geojsonError||!e.geometryOptions}]),data:e.geojson,"feature-id":e.featureId,selection:e.selection,camera:e.cameraOptions,bounds:e.geojsonBounds,source:e.directusSource,layers:e.directusLayers,onFeatureclick:e.handleClick,onFeatureselect:e.handleSelect,onMoveend:t[0]||(t[0]=y=>e.cameraOptionsWritable=y),onFitdata:e.fitDataBounds,onUpdateitempopup:e.updateItemPopup},null,8,["class","data","feature-id","selection","camera","bounds","source","layers","onFeatureclick","onFeatureselect","onFitdata","onUpdateitempopup"]),F(cd,{name:"fade"},{default:R(()=>[e.itemPopup.item?(G(),Me("div",{key:0,class:"popup",style:Kr({top:e.itemPopup.position.y+"px",left:e.itemPopup.position.x+"px"})},[F(s,{template:e.template,item:e.itemPopup.item,collection:e.collection},null,8,["template","item","collection"])],4)):Je("",!0)]),_:1}),F(cd,{name:"fade"},{default:R(()=>[e.error?(G(),_e(p,{key:0,type:"danger",title:e.t("unexpected_error"),icon:"error",center:""},{append:R(()=>[F(l,{error:e.error},null,8,["error"]),F(f,{small:"",class:"reset-preset",onClick:e.resetPresetAndRefresh},{default:R(()=>[Ne(he(e.t("reset_page_preferences")),1)]),_:1},8,["onClick"])]),default:R(()=>[Ne(he(e.t("unexpected_error_copy"))+" ",1)]),_:1},8,["title"])):e.geojsonError?(G(),_e(p,{key:1,type:"warning",icon:"wrong_location",center:"",title:e.t("layouts.map.invalid_geometry")},{default:R(()=>[Ne(he(e.geojsonError),1)]),_:1},8,["title"])):e.loading||e.geojsonLoading?(G(),_e(h,{key:2,indeterminate:"","x-large":"",class:"center"})):Je("",!0)]),_:1}),e.loading||e.itemCount>0?(G(),Me("div",_at,[e.totalPages>1?(G(),Me("div",bat,[F(v,{length:e.totalPages,"total-visible":7,"show-first-last":"","model-value":e.page,"onUpdate:modelValue":e.toPage},null,8,["length","model-value","onUpdate:modelValue"])])):Je("",!0),ke("div",wat,[ke("span",null,he(e.t("limit")),1),F(_,{"model-value":e.limit,items:[{text:e.n(100),value:100},{text:e.n(1e3),value:1e3},{text:e.n(1e4),value:1e4},{text:e.n(1e5),value:1e5}],inline:"","onUpdate:modelValue":t[1]||(t[1]=y=>e.limitWritable=+y)},null,8,["model-value","items"])])])):Je("",!0)])}var kat=Ot(gat,[["render",xat],["__scopeId","data-v-8011e978"]]);const Sat=$t({inheritAttrs:!1,props:{collection:{type:String,required:!0},geometryFields:{type:Array,required:!0},geometryField:{type:String,default:void 0},geometryOptions:{type:Object,default:void 0},clusterData:{type:Boolean,default:void 0},displayTemplate:{type:String,default:void 0}},emits:["update:geometryField","update:autoLocationFilter","update:clusterData"],setup(e,{emit:t}){const{t:n}=yn(),i=Pc(),a=qr(e,"geometryField",t),o=qr(e,"clusterData",t),r=qr(e,"displayTemplate",t),s=fg(),{basemap:l}=wr(i);return{t:n,geometryFieldWritable:a,clusterDataWritable:o,displayTemplateWritable:r,basemaps:s,basemap:l}}}),Cat={class:"field"},Eat={class:"type-label"},Aat={key:0,class:"field"},Tat={key:1,class:"field"},Dat={class:"type-label"},Iat={class:"field"},Mat={class:"type-label"},Lat={class:"field"};function Pat(e,t,n,i,a,o){const r=Y("v-select"),s=Y("v-input"),l=Y("v-field-template"),f=Y("v-checkbox");return G(),Me(gn,null,[ke("div",Cat,[ke("div",Eat,he(e.t("layouts.map.basemap")),1),F(r,{modelValue:e.basemap,"onUpdate:modelValue":t[0]||(t[0]=p=>e.basemap=p),items:e.basemaps.map(p=>({text:p.name,value:p.name}))},null,8,["modelValue","items"])]),e.geometryFields.length==0?(G(),Me("div",Aat,[F(s,{type:"text",disabled:"",prefix:e.t("layouts.map.no_compatible_fields")},null,8,["prefix"])])):(G(),Me("div",Tat,[ke("div",Dat,he(e.t("layouts.map.field")),1),F(r,{modelValue:e.geometryFieldWritable,"onUpdate:modelValue":t[1]||(t[1]=p=>e.geometryFieldWritable=p),items:e.geometryFields.map(({name:p,field:h})=>({text:p,value:h}))},null,8,["modelValue","items"])])),ke("div",Iat,[ke("div",Mat,he(e.t("display_template")),1),F(l,{modelValue:e.displayTemplateWritable,"onUpdate:modelValue":t[2]||(t[2]=p=>e.displayTemplateWritable=p),collection:e.collection,placeholder:e.t("layouts.map.default_template")},null,8,["modelValue","collection","placeholder"])]),ke("div",Lat,[F(f,{modelValue:e.clusterDataWritable,"onUpdate:modelValue":t[3]||(t[3]=p=>e.clusterDataWritable=p),label:e.t("layouts.map.cluster"),disabled:e.geometryOptions&&e.geometryOptions.geometryType!=="Point"},null,8,["modelValue","label","disabled"])])],64)}var Fat=Ot(Sat,[["render",Pat]]);function Rat(){return[{id:"__directus_polygons_outline",type:"line",source:"__directus",filter:["all",["!has","point_count"],["==","$type","Polygon"]],paint:{"line-color":["case",["boolean",["feature-state","selected"],!1],$a("--secondary"),["boolean",["feature-state","hovered"],!1],$a("--secondary"),$a("--primary")],"line-width":2},layout:{"line-join":"round"}},{id:"__directus_polygons",type:"fill",source:"__directus",filter:["all",["!has","point_count"],["==","$type","Polygon"]],paint:{"fill-color":["case",["boolean",["feature-state","selected"],!1],$a("--secondary"),["boolean",["feature-state","hovered"],!1],$a("--secondary"),$a("--primary")],"fill-opacity":.15}},{id:"__directus_lines",type:"line",source:"__directus",filter:["all",["!has","point_count"],["==","$type","LineString"]],paint:{"line-color":["case",["boolean",["feature-state","selected"],!1],$a("--secondary"),["boolean",["feature-state","hovered"],!1],$a("--secondary"),$a("--primary")],"line-width":2}},{id:"__directus_points_shadow",type:"circle",source:"__directus",filter:["all",["!has","point_count"],["==","$type","Point"]],layout:{},paint:{"circle-radius":10,"circle-blur":1,"circle-opacity":.9,"circle-color":$a("--black")}},{id:"__directus_points",type:"circle",source:"__directus",filter:["all",["!has","point_count"],["==","$type","Point"]],layout:{},paint:{"circle-radius":6,"circle-color":["case",["boolean",["feature-state","selected"],!1],$a("--secondary"),["boolean",["feature-state","hovered"],!1],$a("--secondary"),$a("--primary")],"circle-stroke-color":$a("--white"),"circle-stroke-width":2}},{id:"__directus_clusters",type:"circle",source:"__directus",filter:["has","point_count"],paint:{"circle-radius":["step",["get","point_count"],20,100,30,750,40],"circle-color":["step",["get","point_count"],"#7fe3ca",100,"#fde2a7",750,"#f0a7b3"],"circle-opacity":.7}},{id:"__directus_cluster_count",type:"symbol",source:"__directus",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["Open Sans Semibold"],"text-size":["step",["get","point_count"],15,100,17,750,19]},paint:{"text-opacity":.85}}]}var Oat=p4({id:"map",name:"$t:layouts.map.map",icon:"map",smallHeader:!0,component:kat,slots:{options:Fat,sidebar:()=>{},actions:pat},setup(e,{emit:t}){const n=qa(),i=qr(e,"selection",t),a=qr(e,"layoutOptions",t),o=qr(e,"layoutQuery",t),{collection:r,filter:s,filterUser:l,search:f}=wr(e),{info:p,primaryKeyField:h,fields:v}=Ns(r),_=Al(o,"page",1),y=Al(o,"limit",1e3),k=Ee(()=>{var wt;return h.value?[(wt=h.value)==null?void 0:wt.field]:[]}),w=Al(o,"sort",k),D=Al(a,"displayTemplate",void 0),A=Al(a,"cameraOptions",void 0),L=Al(a,"clusterData",!1),T=Al(a,"geometryField",void 0),z=Ee(()=>v.value.find(wt=>wt.field==T.value)),B=Ee(()=>v.value.filter(({type:wt,meta:nn})=>wt.startsWith("geometry")||(nn==null?void 0:nn.interface)=="map"));Zn(B,wt=>{!T.value&&wt.length>0&&(T.value=wt[0].field)},{immediate:!0});const W=Ee(()=>{var Pn,ri,qi;const wt=z.value;if(!wt)return;const nn=wt.field,Ln=nL(wt.type),Gn=(qi=wt.type.split(".")[1])!=null?qi:(ri=(Pn=wt.meta)==null?void 0:Pn.options)==null?void 0:ri.geometryType;if(!!Ln)return{geometryField:nn,geometryFormat:Ln,geometryType:Gn}}),N=Ee(()=>{var wt;return((wt=W.value)==null?void 0:wt.geometryFormat)==="native"}),K=Ee(()=>{var wt,nn,Ln;return D.value||((nn=(wt=p.value)==null?void 0:wt.meta)==null?void 0:nn.display_template)||`{{ ${(Ln=h.value)==null?void 0:Ln.field} }}`}),re=Ee(()=>{var wt;return[T.value,...hc(K.value)].concat((wt=h.value)==null?void 0:wt.field).filter(nn=>!!nn)}),se=Ee(()=>{if(!N.value||!A.value||!T.value)return null;const wt=A.value.bbox,nn=[[wt[0],wt[1]],[wt[2],wt[1]],[wt[2],wt[3]],[wt[0],wt[3]],[wt[0],wt[1]]];return{[T.value]:{_intersects_bbox:{type:"Polygon",coordinates:[nn]}}}}),ce=Ee(()=>se.value?s.value?{_and:[s.value,se.value]}:se.value:s.value),de=ze(!1);function ge(){var wt;de.value=!0,!N.value&&(wt=Le.value)!=null&&wt.features.length&&(De.value=lt.exports.cloneDeep(Le.value.bbox))}Zn(A,()=>{de.value=!1});const{items:Ce,loading:Oe,error:Ve,totalPages:Ye,itemCount:ot,totalCount:Te,getItems:it}=h4(r,{sort:w,limit:y,page:_,search:f,filter:ce,fields:re}),Le=ze({type:"FeatureCollection",features:[]}),De=ze(),ht=ze(null),At=ze(!1);Zn([f,r,y,w],Tt),Zn(Ce,Vt),Zn(T,()=>de.value=!0);function Tt(){de.value=!0,At.value=!1}function Vt(){if(W.value)try{Le.value={type:"FeatureCollection",features:[]},At.value=!0,ht.value=null,Le.value=bHe(Ce.value,W.value),At.value=!1,(!A.value||de.value)&&(De.value=Le.value.bbox)}catch(wt){At.value=!1,ht.value=wt,Le.value={type:"FeatureCollection",features:[]}}else Le.value={type:"FeatureCollection",features:[]}}const on=ze({type:"geojson",data:{type:"FeatureCollection",features:[]}});Zn(L,_t,{immediate:!0});function _t(){on.value=lt.exports.merge({},on.value,{cluster:L.value})}function Ut(wt){i.value=Array.from(new Set(wt))}function Nt(wt){i.value=Array.from(new Set(i.value.concat(wt)))}function Qt({ids:wt,replace:nn}){nn?Ut(wt):Nt(wt)}function Jt({id:wt,replace:nn}){e.selectMode?Qt({ids:[wt],replace:nn}):n.push(`/content/${r.value}/${wt}`)}const qt=Ee(()=>{var wt,nn;return e.readonly?null:(nn=(wt=h.value)==null?void 0:wt.field)!=null?nn:null}),Dt=Ee(()=>{const wt=Boolean((ot.value||0)<(Te.value||0)&&l.value);return xg(ot.value||0,_.value,y.value,wt)}),nt=ze({item:null});function Pe(wt){var nn,Ln;if("item"in wt){const Gn=(nn=h.value)==null?void 0:nn.field;wt.item=Gn&&(Ln=Ce.value.find(Pn=>Pn[Gn]===wt.item))!=null?Ln:null}nt.value=lt.exports.merge({},nt.value,wt)}return{collection:r,geojson:Le,directusSource:on,directusLayers:Rat(),featureId:qt,geojsonBounds:De,geojsonLoading:At,geojsonError:ht,geometryOptions:W,handleClick:Jt,handleSelect:Qt,geometryField:T,displayTemplate:D,isGeometryFieldNative:N,cameraOptions:A,clusterData:L,items:Ce,loading:Oe,error:Ve,totalPages:Ye,page:_,toPage:Bt,itemCount:ot,fieldsInCollection:v,limit:y,filter:s,primaryKeyField:h,sort:w,info:p,showingCount:Dt,refresh:mt,resetPresetAndRefresh:He,geometryFields:B,fitDataBounds:ge,template:K,itemPopup:nt,updateItemPopup:Pe,download:Pt};async function He(){var wt;await((wt=e==null?void 0:e.resetPreset)==null?void 0:wt.call(e)),mt()}function mt(){it()}function Pt(){!r.value||r_(r.value,re.value,Ce.value)}function Bt(wt){_.value=wt}}}),$at=Object.freeze(Object.defineProperty({__proto__:null,default:Oat},Symbol.toStringTag,{value:"Module"}));const zat=$t({inheritAttrs:!1,props:{itemCount:{type:Number,default:null},showingCount:{type:String,required:!0}}}),jat={key:0,class:"item-count"};function Vat(e,t,n,i,a,o){return G(),_e(cd,{name:"fade"},{default:R(()=>[e.itemCount?(G(),Me("span",jat,he(e.showingCount),1)):Je("",!0)]),_:1})}var Nat=Ot(zat,[["render",Vat],["__scopeId","data-v-34941803"]]);const Bat={class:"field"},Uat={class:"type-label"},Hat={inheritAttrs:!1},qat=$t({...Hat,name:"options",props:{fields:null,activeFields:null,tableSpacing:null},emits:["update:tableSpacing","update:activeFields","update:fields"],setup(e,{emit:t}){const n=e,{t:i}=yn(),a=qr(n,"tableSpacing",t);return(o,r)=>{const s=Y("v-select");return G(),Me("div",Bat,[ke("div",Uat,he(V(i)("layouts.tabular.spacing")),1),F(s,{modelValue:V(a),"onUpdate:modelValue":r[0]||(r[0]=l=>zr(a)?a.value=l:null),items:[{text:V(i)("layouts.tabular.compact"),value:"compact"},{text:V(i)("layouts.tabular.cozy"),value:"cozy"},{text:V(i)("layouts.tabular.comfortable"),value:"comfortable"}]},null,8,["modelValue","items"])])}}});var Wat=Ot(qat,[["__scopeId","data-v-7553a5af"]]);const Gat={class:"layout-tabular"},Yat={class:"footer"},Xat={class:"pagination"},Kat={key:0,class:"per-page"},Zat={inheritAttrs:!1},Jat=$t({...Zat,name:"tabular",props:{collection:null,selection:{default:()=>[]},readonly:{type:Boolean},tableHeaders:null,showSelect:{default:"none"},items:null,loading:{type:Boolean},error:{default:null},totalPages:null,tableSort:{default:void 0},onRowClick:null,tableRowHeight:null,page:null,toPage:null,itemCount:{default:void 0},fields:null,limit:null,primaryKeyField:{default:void 0},info:{default:void 0},sortField:{default:void 0},changeManualSort:null,resetPresetAndRefresh:null,selectAll:null,filterUser:{default:void 0},search:{default:void 0},onSortChange:{type:Function,default:()=>{}},onAlignChange:{type:Function,default:()=>{}}},emits:["update:selection","update:tableHeaders","update:limit","update:fields"],setup(e,{emit:t}){const n=e,{t:i}=yn(),a=qr(n,"selection",t),o=qr(n,"tableHeaders",t),r=qr(n,"limit",t),s=Il("main-element"),l=ze();Zn(()=>n.page,()=>{var k;return(k=s==null?void 0:s.value)==null?void 0:k.scrollTo({top:0,behavior:"smooth"})}),So("meta+a",()=>{n.selectAll()},l);const f=qr(n,"fields",t),p=Ee(()=>dd(f.value,n.collection)),{aliasFields:h}=C4(p);function v(k,w){if(h.value[w])return Hh(k,h.value[w].fullAlias);const A=Object.values(h.value).filter(T=>T.fieldName===w).map(({fieldAlias:T})=>k[T]);if(A.every(T=>Array.isArray(T)))return A.reduce((T,z)=>{for(let B=0;B<z.length;B++)T[B]=lt.exports.merge(T[B],z[B]);return T},[]);const L=A.reduce((T,z)=>lt.exports.merge(T,z),{});return lt.exports.isEmpty(L)?null:L}function _(k){f.value=[...f.value,k]}function y(k){f.value=f.value.filter(w=>w!==k)}return(k,w)=>{var Ve;const D=Y("render-display"),A=Y("v-icon"),L=Y("v-list-item-icon"),T=Y("v-list-item-content"),z=Y("v-list-item"),B=Y("v-divider"),W=Y("v-list"),N=Y("v-field-list"),K=Y("v-menu"),re=Y("v-pagination"),se=Y("v-select"),ce=Y("v-table"),de=Y("v-error"),ge=Y("v-button"),Ce=Y("v-info"),Oe=pi("tooltip");return G(),Me("div",Gat,[e.loading||e.itemCount&&e.itemCount>0?(G(),_e(ce,{key:0,ref_key:"table",ref:l,modelValue:V(a),"onUpdate:modelValue":w[1]||(w[1]=Ye=>zr(a)?a.value=Ye:null),headers:V(o),"onUpdate:headers":w[2]||(w[2]=Ye=>zr(o)?o.value=Ye:null),class:"table","fixed-header":"","show-select":e.showSelect?e.showSelect:e.selection!==void 0,"show-resize":"","must-sort":"",sort:e.tableSort,items:e.items,loading:e.loading,"row-height":e.tableRowHeight,"server-sort":"","item-key":(Ve=e.primaryKeyField)==null?void 0:Ve.field,"show-manual-sort":e.sortField!==null,"manual-sort-key":e.sortField,"allow-header-reorder":"","selection-use-keys":"","onClick:row":e.onRowClick,"onUpdate:sort":e.onSortChange,onManualSort:e.changeManualSort},La({"header-context-menu":R(({header:Ye})=>[F(W,null,{default:R(()=>{var ot,Te,it,Le;return[F(z,{disabled:!Ye.sortable,active:((ot=e.tableSort)==null?void 0:ot.by)===Ye.value&&((Te=e.tableSort)==null?void 0:Te.desc)===!1,clickable:"",onClick:De=>{var ht;return(ht=e.onSortChange)==null?void 0:ht.call(e,{by:Ye.value,desc:!1})}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"sort",class:"flip"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("sort_asc")),1)]),_:1})]),_:2},1032,["disabled","active","onClick"]),F(z,{active:((it=e.tableSort)==null?void 0:it.by)===Ye.value&&((Le=e.tableSort)==null?void 0:Le.desc)===!0,disabled:!Ye.sortable,clickable:"",onClick:De=>{var ht;return(ht=e.onSortChange)==null?void 0:ht.call(e,{by:Ye.value,desc:!0})}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"sort"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("sort_desc")),1)]),_:1})]),_:2},1032,["active","disabled","onClick"]),F(B),F(z,{active:Ye.align==="left",clickable:"",onClick:De=>{var ht;return(ht=e.onAlignChange)==null?void 0:ht.call(e,Ye.value,"left")}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"format_align_left"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("left_align")),1)]),_:1})]),_:2},1032,["active","onClick"]),F(z,{active:Ye.align==="center",clickable:"",onClick:De=>{var ht;return(ht=e.onAlignChange)==null?void 0:ht.call(e,Ye.value,"center")}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"format_align_center"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("center_align")),1)]),_:1})]),_:2},1032,["active","onClick"]),F(z,{active:Ye.align==="right",clickable:"",onClick:De=>{var ht;return(ht=e.onAlignChange)==null?void 0:ht.call(e,Ye.value,"right")}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"format_align_right"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("right_align")),1)]),_:1})]),_:2},1032,["active","onClick"]),F(B),F(z,{active:Ye.align==="right",clickable:"",onClick:De=>y(Ye.value)},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"remove"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("hide_field")),1)]),_:1})]),_:2},1032,["active","onClick"])]}),_:2},1024)]),"header-append":R(()=>[F(K,{placement:"bottom-end","show-arrow":"","close-on-content-click":!1},{activator:R(({toggle:Ye,active:ot})=>[dn(F(A,{class:wn(["add-field",{active:ot}]),name:"add",clickable:"",onClick:Ye},null,8,["class","onClick"]),[[Oe,V(i)("add_field")]])]),default:R(()=>[F(N,{collection:e.collection,"disabled-fields":e.fields,onSelectField:_},null,8,["collection","disabled-fields"])]),_:1})]),footer:R(()=>[ke("div",Yat,[ke("div",Xat,[e.totalPages>1?(G(),_e(re,{key:0,length:e.totalPages,"total-visible":7,"show-first-last":"","model-value":e.page,"onUpdate:modelValue":e.toPage},null,8,["length","model-value","onUpdate:modelValue"])):Je("",!0)]),e.loading===!1&&e.items.length>=25?(G(),Me("div",Kat,[ke("span",null,he(V(i)("per_page")),1),F(se,{"model-value":`${e.limit}`,items:["25","50","100","250","500"," 1000"],inline:"","onUpdate:modelValue":w[0]||(w[0]=Ye=>r.value=+Ye)},null,8,["model-value"])])):Je("",!0)])]),_:2},[vi(e.tableHeaders,Ye=>({name:`item.${Ye.value}`,fn:R(({item:ot})=>[F(D,{value:!V(h)||ot[Ye.value]!==void 0?V(Hh)(ot,Ye.value):v(ot,Ye.value),display:Ye.field.display,options:Ye.field.displayOptions,interface:Ye.field.interface,"interface-options":Ye.field.interfaceOptions,type:Ye.field.type,collection:Ye.field.collection,field:Ye.value},null,8,["value","display","options","interface","interface-options","type","collection","field"])])}))]),1032,["modelValue","headers","show-select","sort","items","loading","row-height","item-key","show-manual-sort","manual-sort-key","onClick:row","onUpdate:sort","onManualSort"])):e.error?(G(),_e(Ce,{key:1,type:"danger",title:V(i)("unexpected_error"),icon:"error",center:""},{append:R(()=>[F(de,{error:e.error},null,8,["error"]),F(ge,{small:"",class:"reset-preset",onClick:e.resetPresetAndRefresh},{default:R(()=>[Ne(he(V(i)("reset_page_preferences")),1)]),_:1},8,["onClick"])]),default:R(()=>[Ne(he(V(i)("unexpected_error_copy"))+" ",1)]),_:1},8,["title"])):e.itemCount===0&&(e.filterUser||e.search)?di(k.$slots,"no-results",{key:2},void 0,!0):e.itemCount===0?di(k.$slots,"no-items",{key:3},void 0,!0):Je("",!0)])}}});var Qat=Ot(Jat,[["__scopeId","data-v-7b6d5623"]]),eot=p4({id:"tabular",name:"$t:layouts.tabular.tabular",icon:"reorder",component:Qat,slots:{options:Wat,sidebar:()=>{},actions:Nat},setup(e,{emit:t}){const n=qa(),i=nr(),a=qr(e,"selection",t),o=qr(e,"layoutOptions",t),r=qr(e,"layoutQuery",t),{collection:s,filter:l,filterUser:f,search:p}=wr(e),{info:h,primaryKeyField:v,fields:_,sortField:y}=Ns(s),{sort:k,limit:w,page:D,fields:A,fieldsWithRelational:L}=_t(),{aliasFields:T,aliasQuery:z}=C4(L),B=Ee(()=>T.value?L.value.map(Nt=>{var Qt;return(Qt=T.value)!=null&&Qt[Nt]?T.value[Nt].fullAlias:Nt}):L.value),{items:W,loading:N,error:K,totalPages:re,itemCount:se,totalCount:ce,changeManualSort:de,getItems:ge}=h4(s,{sort:k,limit:w,page:D,fields:B,alias:z,filter:l,search:p}),{tableSort:Ce,tableHeaders:Oe,tableRowHeight:Ve,onRowClick:Ye,onSortChange:ot,onAlignChange:Te,activeFields:it,tableSpacing:Le}=Ut(),De=Ee(()=>{const Nt=Boolean((se.value||0)<(ce.value||0)&&f.value);return xg(se.value||0,D.value,w.value,Nt)});return{tableHeaders:Oe,items:W,loading:N,error:K,totalPages:re,tableSort:Ce,onRowClick:Ye,onSortChange:ot,onAlignChange:Te,tableRowHeight:Ve,page:D,toPage:Vt,itemCount:se,totalCount:ce,fieldsInCollection:_,fields:A,limit:w,activeFields:it,tableSpacing:Le,primaryKeyField:v,info:h,showingCount:De,sortField:y,changeManualSort:de,hideDragImage:fp,refresh:At,resetPresetAndRefresh:ht,selectAll:on,filter:l,search:p,download:Tt};async function ht(){var Nt;await((Nt=e==null?void 0:e.resetPreset)==null?void 0:Nt.call(e)),At()}function At(){ge()}function Tt(){!s.value||r_(s.value,A.value,W.value)}function Vt(Nt){D.value=Nt}function on(){if(!v.value)return;const Nt=v.value;a.value=lt.exports.clone(W.value).map(Qt=>Qt[Nt.field])}function _t(){const Nt=Al(r,"page",1),Qt=Al(r,"limit",25),Jt=Ee(()=>{var He;return v.value?[(He=v.value)==null?void 0:He.field]:[]}),qt=Al(r,"sort",Jt),Dt=Ee(()=>_.value.filter(He=>{var mt;return!((mt=He.meta)!=null&&mt.hidden)}).slice(0,4).map(({field:He})=>He).sort()),nt=Al(r,"fields",Dt),Pe=Ee(()=>e.collection?dd(nt.value,e.collection):[]);return{sort:qt,limit:Qt,page:Nt,fields:nt,fieldsWithRelational:Pe}}function Ut(){const Nt=Ee(()=>{var wt,nn;return(wt=k.value)!=null&&wt[0]?(nn=k.value)!=null&&nn[0].startsWith("-")?{by:k.value[0].substring(1),desc:!0}:{by:k.value[0],desc:!1}:null}),Qt=ze({});Zn(()=>o.value,()=>{Qt.value={}});const Jt=lt.exports.debounce(()=>{o.value=Object.assign({},o.value,{widths:Qt.value})},350),qt=Ee({get(){return s.value?A.value.map(wt=>({...i.getField(s.value,wt),key:wt})).filter(wt=>{var nn,Ln;return wt&&((Ln=(nn=wt.meta)==null?void 0:nn.special)==null?void 0:Ln.includes("no-data"))!==!0}):[]},set(wt){A.value=wt.map(nn=>nn.field)}}),Dt=Ee({get(){return qt.value.map(wt=>{var Gn,Pn,ri,qi,vn,en,Sn,Kn;let nn=null;const Ln=wt.key.split(".");return Ln.length>1&&(nn=Ln.map((On,ei)=>{var Ai;const Mi=Ln.slice(0,ei),gi=i.getField(s.value,[...Mi,On].join("."));return(Ai=gi==null?void 0:gi.name)!=null?Ai:On}).join(" -> ")),{text:wt.name,value:wt.key,description:nn,width:Qt.value[wt.key]||((Pn=(Gn=o.value)==null?void 0:Gn.widths)==null?void 0:Pn[wt.key])||null,align:((qi=(ri=o.value)==null?void 0:ri.align)==null?void 0:qi[wt.key])||"left",field:{display:((vn=wt.meta)==null?void 0:vn.display)||_I(wt.type),displayOptions:(en=wt.meta)==null?void 0:en.display_options,interface:(Sn=wt.meta)==null?void 0:Sn.interface,interfaceOptions:(Kn=wt.meta)==null?void 0:Kn.options,type:wt.type,field:wt.field,collection:wt.collection},sortable:["json","alias","presentation","translations"].includes(wt.type)===!1}})},set(wt){const nn={};wt.forEach(Ln=>{Ln.width&&(nn[Ln.value]=Ln.width)}),Qt.value=nn,Jt(),A.value=wt.map(Ln=>Ln.value)}}),nt=Al(o,"spacing","cozy"),Pe=Ee(()=>{switch(nt.value){case"compact":return 32;case"cozy":default:return 48;case"comfortable":return 64}});return{tableSort:Nt,tableHeaders:Dt,tableSpacing:nt,tableRowHeight:Pe,onRowClick:He,onSortChange:mt,onAlignChange:Pt,activeFields:qt,getFieldDisplay:Bt};function He({item:wt,event:nn}){var Gn,Pn;if(e.readonly===!0||!v.value)return;const Ln=wt[v.value.field];if(e.selectMode||((Gn=a.value)==null?void 0:Gn.length)>0)((Pn=a.value)==null?void 0:Pn.includes(Ln))===!1?a.value=a.value.concat(Ln):a.value=a.value.filter(ri=>ri!==Ln);else{const ri=n.resolve(`/content/${s.value}/${encodeURIComponent(Ln)}`);nn.ctrlKey||nn.metaKey?window.open(ri.href,"_blank"):n.push(ri)}}function mt(wt){let nn=wt.by;if(!wt.by){k.value=[];return}wt.desc===!0&&(nn="-"+nn),k.value=[nn]}function Pt(wt,nn){var Ln,Gn;o.value=Object.assign({},o.value,{align:{...(Gn=(Ln=o.value)==null?void 0:Ln.align)!=null?Gn:{},[wt]:nn}})}function Bt(wt){var Ln;const nn=_.value.find(Gn=>Gn.field===wt);return(Ln=nn==null?void 0:nn.meta)!=null&&Ln.display?{display:nn.meta.display,options:nn.meta.display_options}:null}}}}),tot=Object.freeze(Object.defineProperty({__proto__:null,default:eot},Symbol.toStringTag,{value:"Module"}));const{layoutsRaw:HC}=nm();async function not(e){const n=Object.values({"./calendar/index.ts":brt,"./cards/index.ts":cat,"./map/index.ts":$at,"./tabular/index.ts":tot}).map(i=>i.default);try{const i=await ct(()=>import(`${As()}extensions/layouts/index.js`),[]);n.push(...i.default)}catch(i){console.warn("Couldn't load custom layouts"),console.warn(i)}HC.value=n,HC.value.forEach(i=>{e.component(`layout-${i.id}`,i.component),e.component(`layout-options-${i.id}`,i.slots.options),e.component(`layout-sidebar-${i.id}`,i.slots.sidebar),e.component(`layout-actions-${i.id}`,i.slots.actions)})}var iot="assets/logo-light.7a327cdd.svg";const rot=e=>(ya("data-v-ead9afd0"),e=e(),_a(),e),aot={class:"title-box"},oot=rot(()=>ke("img",{src:iot,alt:"Directus",class:"directus-logo"},null,-1)),sot=[oot],lot={class:"title"},cot={class:"type-title"},uot={class:"subtitle"},dot={class:"content"},fot={class:"notice"},pot={key:0,viewBox:"0 0 1152 1152",preserveAspectRatio:"none",fill:"none",class:"fallback"},hot=["fill"],mot=["fill"],vot=["fill"],got=["fill"],yot=["fill"],_ot=["fill"],bot={class:"note-container"},wot={key:0,class:"note"},xot=$t({name:"public-view",props:{wide:{type:Boolean,default:!1}},setup(e){const{t}=yn(),n=Ud(),{info:i}=Dl(n),a=Ee(()=>{var D,A;const p=((A=(D=i.value)==null?void 0:D.project)==null?void 0:A.project_color)||"var(--primary)",h=p.startsWith("var(--")?$a(p.substring(4,p.length-1)):p,v=uI()==="dark",_=ad(h),y=_.hsl(),k=ad({h:y.color[0]+(v?-69.1:69.1),s:y.color[1]+0,l:y.color[2]+(v?-50:16.7)}),w=[];for(let L=1;L<6;L++){const T=ad(_).mix(k,L/10);w.push(T.hex().toString())}return{primary:_.hex().toString(),secondary:k.hex().toString(),shades:w}}),o=Ee(()=>{var p,h;return!!((h=(p=i.value)==null?void 0:p.project)!=null&&h.project_color)}),r=Ee(()=>{var p,h;return!!((h=(p=i.value)==null?void 0:p.project)!=null&&h.public_background)}),s=Ee(()=>{var h;return r.value?{background:`url(${`/assets/${(h=i.value.project)==null?void 0:h.public_background}`})`,backgroundSize:"cover",backgroundPosition:"center center"}:null}),l=Ee(()=>{var p,h,v;return(h=(p=i.value)==null?void 0:p.project)!=null&&h.public_foreground?"/assets/"+((v=i.value.project)==null?void 0:v.public_foreground):null}),f=Ee(()=>{var p,h,v;return(h=(p=i.value)==null?void 0:p.project)!=null&&h.project_logo?"/assets/"+((v=i.value.project)==null?void 0:v.project_logo):null});return(p,h)=>{var y,k,w,D,A,L,T,z,B,W,N,K,re,se;const v=Y("v-image"),_=pi("md");return G(),Me("div",{class:wn(["public-view",{branded:V(o)}])},[ke("div",{class:wn(["container",{wide:e.wide}])},[ke("div",aot,[(k=(y=V(i))==null?void 0:y.project)!=null&&k.project_logo?(G(),Me("div",{key:0,class:"logo",style:Kr({backgroundColor:(w=V(i))==null?void 0:w.project.project_color})},[F(v,{src:V(f),alt:((D=V(i))==null?void 0:D.project.project_name)||"Logo"},null,8,["src","alt"])],4)):(G(),Me("div",{key:1,class:"logo",style:Kr({backgroundColor:(L=(A=V(i))==null?void 0:A.project)==null?void 0:L.project_color})},sot,4)),ke("div",lot,[ke("h1",cot,he((z=(T=V(i))==null?void 0:T.project)==null?void 0:z.project_name),1),ke("p",uot,he((N=(W=(B=V(i))==null?void 0:B.project)==null?void 0:W.project_descriptor)!=null?N:V(t)("application")),1)])]),ke("div",dot,[di(p.$slots,"default")]),ke("div",fot,[di(p.$slots,"notice")])],2),ke("div",{class:"art",style:Kr(V(s))},[V(r)?Je("",!0):(G(),Me("svg",pot,[ke("rect",{width:"1152",height:"1152",fill:V(a).primary},null,8,hot),ke("path",{d:"M1152 409.138C1148.61 406.92 1146.7 405.765 1146.7 405.765L6.87761e-07 958.424L-7.3277e-07 1152L506.681 1152C558.985 1126.93 614.88 1101.25 672.113 1074.95C839.401 998.085 1018.12 915.967 1152 828.591L1152 409.138Z",fill:V(a).shades[0]},null,8,mot),ke("path",{d:"M1152 159.866C1130.19 146.319 1114.45 138.98 1114.45 138.98L-6.09246e-07 759.421L-3.66364e-07 1152L88.7501 1152C131.867 1108.8 194.289 1054.33 281.936 993.927C371.847 931.97 507.23 864.306 651.138 792.382C828.097 703.939 1017.95 609.052 1152 510.407L1152 159.866Z",fill:V(a).shades[1]},null,8,vot),ke("path",{d:"M772.894 -0.000472457L-4.49523e-07 457.782L-5.22658e-07 953.071C22.142 919.082 94.6279 821.1 262.854 696.786C351.427 631.334 485.624 558.338 628.272 480.744C816.642 378.28 1019.75 267.8 1152 156.087L1152 -0.000477328L772.894 -0.000472457Z",fill:V(a).shades[2]},null,8,got),ke("path",{d:"M286.365 -0.000483108L-1.73191e-07 176.373L2.43255e-06 662.21C33.488 615.87 106.028 529.959 243.326 424.909C331.205 357.671 464.771 281.956 606.749 201.473C720.914 136.756 840.519 68.9554 946.182 -0.000479285L286.365 -0.000483108Z",fill:V(a).shades[3]},null,8,yot),ke("path",{d:"M0.00195277 363.139C37.1564 313.499 107.096 233.66 228.181 137.623C281.94 94.9838 353.09 48.7594 432.872 9.43526e-06L0.00195595 0L0.00195277 363.139Z",fill:V(a).shades[4]},null,8,_ot)])),F(cd,{name:"scale"},{default:R(()=>{var ce,de;return[V(l)?(G(),_e(v,{key:0,class:"foreground",src:V(l),alt:(de=(ce=V(i))==null?void 0:ce.project)==null?void 0:de.project_name},null,8,["src","alt"])):Je("",!0)]}),_:1}),ke("div",bot,[(re=(K=V(i))==null?void 0:K.project)!=null&&re.public_note?dn((G(),Me("div",wot,null,512)),[[_,(se=V(i))==null?void 0:se.project.public_note]]):Je("",!0)])],4)],2)}}});var kot=Ot(xot,[["__scopeId","data-v-ead9afd0"]]),Sot="assets/logo.eba1b355.svg";const Cot=$t({name:"SharedView",props:{title:{type:String,default:null},inline:{type:Boolean,default:!1}},setup(){const e=Ud(),{info:t}=Dl(e),{t:n}=yn(),i=Ee(()=>{var a,o,r;return(o=(a=e.info)==null?void 0:a.project)!=null&&o.project_logo?As()+`assets/${(r=e.info.project)==null?void 0:r.project_logo}`:null});return{serverInfo:t,t:n,logoURL:i}}}),Eot=e=>(ya("data-v-41c88981"),e=e(),_a(),e),Aot={class:"inline-container"},Tot={class:"container"},Dot={class:"title-box"},Iot=["src","alt"],Mot=Eot(()=>ke("img",{src:Sot,alt:"Directus",class:"directus-logo"},null,-1)),Lot=[Mot],Pot={class:"title"},Fot={class:"subtitle"},Rot={class:"type-title"},Oot={class:"container"},$ot={class:"content"};function zot(e,t,n,i,a,o){var r,s,l,f,p;return G(),Me("div",{class:wn(["shared",{inline:e.inline}])},[ke("div",Aot,[ke("header",null,[ke("div",Tot,[ke("div",Dot,[(r=e.serverInfo)!=null&&r.project.project_logo?(G(),Me("div",{key:0,class:"logo",style:Kr({backgroundColor:(s=e.serverInfo)==null?void 0:s.project.project_color})},[ke("img",{src:e.logoURL,alt:((l=e.serverInfo)==null?void 0:l.project.project_name)||"Logo"},null,8,Iot)],4)):(G(),Me("div",{key:1,class:"logo",style:Kr({backgroundColor:(f=e.serverInfo)==null?void 0:f.project.project_color})},Lot,4)),ke("div",Pot,[ke("p",Fot,he((p=e.serverInfo)==null?void 0:p.project.project_name),1),di(e.$slots,"title",{},()=>{var h;return[ke("h1",Rot,he((h=e.title)!=null?h:e.t("share_access_page")),1)]},!0)])])])]),ke("div",Oot,[ke("div",$ot,[di(e.$slots,"default",{},void 0,!0)])])])],2)}var jot=Ot(Cot,[["render",zot],["__scopeId","data-v-41c88981"]]);const Vot=XC(()=>ct(()=>import("./index.a47d735b.js"),["assets/index.a47d735b.js","assets/index.29c0adc9.css","assets/vue.runtime.esm-bundler.61bedc6f.js","assets/runtime-core.esm-bundler.32cac88a.js","assets/use-sync.3af8e920.js","assets/pinia.ee5b7a45.entry.js","assets/vue-i18n.ab96dd58.entry.js","assets/vue-router.4ad81e1d.entry.js"]));function Not(e){e.component("PublicView",kot),e.component("PrivateView",Vot),e.component("SharedView",jot)}var Bot=Vd({id:"condition",icon:"rule",name:"$t:operations.condition.name",description:"$t:operations.condition.description",overview:({filter:e})=>[{label:"$t:condition_rules",text:e}],options:()=>[{field:"filter",name:"$t:condition_rules",type:"json",meta:{width:"full",interface:"input-code",options:{language:"json",placeholder:JSON.stringify({$trigger:{category:{_eq:"Example"}}},null,2),template:JSON.stringify({$trigger:{category:{_eq:"Example"}}},null,2)}}}]}),Uot=Object.freeze(Object.defineProperty({__proto__:null,default:Bot},Symbol.toStringTag,{value:"Module"})),Hot=Vd({id:"exec",icon:"code",name:"$t:operations.exec.name",description:"$t:operations.exec.description",overview:()=>[],options:()=>{var i,a;const{t:e}=mr.global,t=Ud(),n=[{field:"code",name:"$t:code",type:"string",meta:{width:"full",interface:"input-code",options:{language:"javascript"}},schema:{default_value:`module.exports = async function(data) {
|
|
3402
|
+
*/var mit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(n){return n.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(n){return n.allDay?aQe(n)?["timed","allDay"]:["allDay"]:["timed"]},t}(qQe),vit=Es({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function kF(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return an(hp.Consumer,null,function(n){if(!e.isLabeled)return an("td",{className:t.join(" "),"data-time":e.isoTimeStr});var i=n.dateEnv,a=n.options,o=n.viewApi,r=a.slotLabelFormat==null?vit:Array.isArray(a.slotLabelFormat)?Es(a.slotLabelFormat[0]):Es(a.slotLabelFormat),s={level:0,time:e.time,date:i.toDate(e.date),view:o,text:i.format(e.date,r)};return an(Hd,{hookProps:s,classNames:a.slotLabelClassNames,content:a.slotLabelContent,defaultContent:git,didMount:a.slotLabelDidMount,willUnmount:a.slotLabelWillUnmount},function(l,f,p,h){return an("td",{ref:l,className:t.concat(f).join(" "),"data-time":e.isoTimeStr},an("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},an("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:p},h)))})})}function git(e){return e.text}var yit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return this.props.slatMetas.map(function(n){return an("tr",{key:n.key},an(kF,kn({},n)))})},t}(Wa),_it=Es({week:"short"}),bit=5,wit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allDaySplitter=new mit,n.headerElRef=pc(),n.rootElRef=pc(),n.scrollerElRef=pc(),n.state={slatCoords:null},n.handleScrollTopRequest=function(i){var a=n.scrollerElRef.current;a&&(a.scrollTop=i)},n.renderHeadAxis=function(i,a){a===void 0&&(a="");var o=n.context.options,r=n.props.dateProfile,s=r.renderRange,l=dh(s.start,s.end),f=l===1?Kv(n.context,s.start,"week"):{};return o.weekNumbers&&i==="day"?an(cF,{date:s.start,defaultFormat:_it},function(p,h,v,_){return an("th",{ref:p,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(h).join(" ")},an("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:a}},an("a",kn({ref:v,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},f),_)))}):an("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},an("div",{className:"fc-timegrid-axis-frame",style:{height:a}}))},n.renderTableRowAxis=function(i){var a=n.context,o=a.options,r=a.viewApi,s={text:o.allDayText,view:r};return an(Hd,{hookProps:s,classNames:o.allDayClassNames,content:o.allDayContent,defaultContent:xit,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount},function(l,f,p,h){return an("td",{ref:l,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(f).join(" ")},an("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(i==null?" fc-timegrid-axis-frame-liquid":""),style:{height:i}},an("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:p},h)))})},n.handleSlatCoords=function(i){n.setState({slatCoords:i})},n}return t.prototype.renderSimpleLayout=function(n,i,a){var o=this,r=o.context,s=o.props,l=[],f=s4(r.options);return n&&l.push({type:"header",key:"header",isSticky:f,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}}),i&&(l.push({type:"body",key:"all-day",chunk:{content:i}}),l.push({type:"body",key:"all-day-divider",outerContent:an("tr",{role:"presentation",className:"fc-scrollgrid-section"},an("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),l.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:a}}),an(Zv,{viewSpec:r.viewSpec,elRef:this.rootElRef},function(p,h){return an("div",{className:["fc-timegrid"].concat(h).join(" "),ref:p},an(E9,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))})},t.prototype.renderHScrollLayout=function(n,i,a,o,r,s,l){var f=this,p=this.context.pluginHooks.scrollGridImpl;if(!p)throw new Error("No ScrollGrid implementation");var h=this,v=h.context,_=h.props,y=!_.forPrint&&s4(v.options),k=!_.forPrint&&rF(v.options),w=[];n&&w.push({type:"header",key:"header",isSticky:y,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(A){return an("tr",{role:"presentation"},f.renderHeadAxis("day",A.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}]}),i&&(w.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(A){return an("tr",{role:"presentation"},f.renderTableRowAxis(A.rowSyncHeights[0]))}},{key:"cols",content:i}]}),w.push({key:"all-day-divider",type:"body",outerContent:an("tr",{role:"presentation",className:"fc-scrollgrid-section"},an("td",{colSpan:2,className:"fc-timegrid-divider "+v.theme.getClass("tableCellShaded")}))}));var D=v.options.nowIndicator;return w.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(v.options.expandRows),chunks:[{key:"axis",content:function(A){return an("div",{className:"fc-timegrid-axis-chunk"},an("table",{"aria-hidden":!0,style:{height:A.expandRows?A.clientHeight:""}},A.tableColGroupNode,an("tbody",null,an(yit,{slatMetas:s}))),an("div",{className:"fc-timegrid-now-indicator-container"},an(Cg,{unit:D?"minute":"day"},function(L){var T=D&&l&&l.safeComputeTop(L);return typeof T=="number"?an(A9,{isAxis:!0,date:L},function(z,B,W,N){return an("div",{ref:z,className:["fc-timegrid-now-indicator-arrow"].concat(B).join(" "),style:{top:T}},N)}):null})))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:a}]}),k&&w.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Q6},{key:"cols",content:Q6}]}),an(Zv,{viewSpec:v.viewSpec,elRef:this.rootElRef},function(A,L){return an("div",{className:["fc-timegrid"].concat(L).join(" "),ref:A},an(p,{liquid:!_.isHeightAuto&&!_.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:o,minWidth:r}]}],sections:w}))})},t.prototype.getAllDayMaxEventProps=function(){var n=this.context.options,i=n.dayMaxEvents,a=n.dayMaxEventRows;return(i===!0||a===!0)&&(i=void 0,a=bit),{dayMaxEvents:i,dayMaxEventRows:a}},t}(S1);function xit(e){return e.text}var kit=function(){function e(t,n,i){this.positions=t,this.dateProfile=n,this.slotDuration=i}return e.prototype.safeComputeTop=function(t){var n=this.dateProfile;if(Jp(n.currentRange,t)){var i=Bo(t),a=t.valueOf()-i.valueOf();if(a>=Pf(n.slotMinTime)&&a<Pf(n.slotMaxTime))return this.computeTimeTop(Ba(a))}return null},e.prototype.computeDateTop=function(t,n){return n||(n=Bo(t)),this.computeTimeTop(Ba(t.valueOf()-n.valueOf()))},e.prototype.computeTimeTop=function(t){var n=this,i=n.positions,a=n.dateProfile,o=i.els.length,r=(t.milliseconds-Pf(a.slotMinTime))/Pf(this.slotDuration),s,l;return r=Math.max(0,r),r=Math.min(o,r),s=Math.floor(r),s=Math.min(s,o-1),l=r-s,i.tops[s]+i.getHeight(s)*l},e}(),Sit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this,i=n.props,a=n.context,o=a.options,r=i.slatElRefs;return an("tbody",null,i.slatMetas.map(function(s,l){var f={time:s.time,date:a.dateEnv.toDate(s.date),view:a.viewApi},p=["fc-timegrid-slot","fc-timegrid-slot-lane",s.isLabeled?"":"fc-timegrid-slot-minor"];return an("tr",{key:s.key,ref:r.createRef(s.key)},i.axis&&an(kF,kn({},s)),an(Hd,{hookProps:f,classNames:o.slotLaneClassNames,content:o.slotLaneContent,didMount:o.slotLaneDidMount,willUnmount:o.slotLaneWillUnmount},function(h,v,_,y){return an("td",{ref:h,className:p.concat(v).join(" "),"data-time":s.isoTimeStr},y)}))}))},t}(Wa),Cit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.rootElRef=pc(),n.slatElRefs=new Y1,n}return t.prototype.render=function(){var n=this,i=n.props,a=n.context;return an("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},an("table",{"aria-hidden":!0,className:a.theme.getClass("table"),style:{minWidth:i.tableMinWidth,width:i.clientWidth,height:i.minHeight}},i.tableColGroupNode,an(Sit,{slatElRefs:this.slatElRefs,axis:i.axis,slatMetas:i.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var n=this,i=n.context,a=n.props;if(a.onCoords&&a.clientWidth!==null){var o=this.rootElRef.current;o.offsetHeight&&a.onCoords(new kit(new X0(this.rootElRef.current,Eit(this.slatElRefs.currentMap,a.slatMetas),!1,!0),this.props.dateProfile,i.options.slotDuration))}},t}(Wa);function Eit(e,t){return t.map(function(n){return e[n.key]})}function Z2(e,t){var n=[],i;for(i=0;i<t;i+=1)n.push([]);if(e)for(i=0;i<e.length;i+=1)n[e[i].col].push(e[i]);return n}function VC(e,t){var n=[];if(e){for(var i=0;i<t;i+=1)n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var a=0,o=e.segs;a<o.length;a++){var r=o[a];n[r.col].segs.push(r)}}else for(var i=0;i<t;i+=1)n[i]=null;return n}var Ait=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.rootElRef=pc(),n}return t.prototype.render=function(){var n=this,i=this.props;return an(uF,{allDayDate:null,moreCnt:i.hiddenSegs.length,allSegs:i.hiddenSegs,hiddenSegs:i.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:Tit,extraDateSpan:i.extraDateSpan,dateProfile:i.dateProfile,todayRange:i.todayRange,popoverContent:function(){return CF(i.hiddenSegs,i)}},function(a,o,r,s,l,f,p,h){return an("a",{ref:function(v){jf(a,v),jf(n.rootElRef,v)},className:["fc-timegrid-more-link"].concat(o).join(" "),style:{top:i.top,bottom:i.bottom},onClick:l,title:f,"aria-expanded":p,"aria-controls":h},an("div",{ref:r,className:"fc-timegrid-more-link-inner fc-sticky"},s))})},t}(Wa);function Tit(e){return e.shortText}function Dit(e,t,n){var i=new qP;t!=null&&(i.strictOrder=t),n!=null&&(i.maxStackCnt=n);var a=i.addSegs(e),o=Stt(a),r=Iit(i);r=Fit(r,1);var s=Rit(r);return{segRects:s,hiddenGroups:o}}function Iit(e){var t=e.entriesByLevel,n=M9(function(i,a){return i+":"+a},function(i,a){var o=Pit(e,i,a),r=NC(o,n),s=t[i][a];return[kn(kn({},s),{nextLevelNodes:r[0]}),s.thickness+r[1]]});return NC(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function NC(e,t){if(!e)return[[],0];for(var n=e.level,i=e.lateralStart,a=e.lateralEnd,o=i,r=[];o<a;)r.push(t(n,o)),o+=1;return r.sort(Mit),[r.map(Lit),r[0][1]]}function Mit(e,t){return t[1]-e[1]}function Lit(e){return e[0]}function Pit(e,t,n){for(var i=e.levelCoords,a=e.entriesByLevel,o=a[t][n],r=i[t]+o.thickness,s=i.length,l=t;l<s&&i[l]<r;l+=1);for(;l<s;l+=1){for(var f=a[l],p=void 0,h=Z6(f,o.span.start,K6),v=h[0]+h[1],_=v;(p=f[_])&&p.span.start<o.span.end;)_+=1;if(v<_)return{level:l,lateralStart:v,lateralEnd:_}}return null}function Fit(e,t){var n=M9(function(i,a,o){return Bh(i)},function(i,a,o){var r=i.nextLevelNodes,s=i.thickness,l=s+o,f=s/l,p,h=[];if(!r.length)p=t;else for(var v=0,_=r;v<_.length;v++){var y=_[v];if(p===void 0){var k=n(y,a,l);p=k[0],h.push(k[1])}else{var k=n(y,p,0);h.push(k[1])}}var w=(p-a)*f;return[p-w,kn(kn({},i),{thickness:w,nextLevelNodes:h})]});return e.map(function(i){return n(i,0,0)[1]})}function Rit(e){var t=[],n=M9(function(a,o,r){return Bh(a)},function(a,o,r){var s=kn(kn({},a),{levelCoord:o,stackDepth:r,stackForward:0});return t.push(s),s.stackForward=i(a.nextLevelNodes,o+a.thickness,r+1)+1});function i(a,o,r){for(var s=0,l=0,f=a;l<f.length;l++){var p=f[l];s=Math.max(n(p,o,r),s)}return s}return i(e,0,0),t}function M9(e,t){var n={};return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var o=e.apply(void 0,i);return o in n?n[o]:n[o]=t.apply(void 0,i)}}function BC(e,t,n,i){n===void 0&&(n=null),i===void 0&&(i=0);var a=[];if(n)for(var o=0;o<e.length;o+=1){var r=e[o],s=n.computeDateTop(r.start,t),l=Math.max(s+(i||0),n.computeDateTop(r.end,t));a.push({start:Math.round(s),end:Math.round(l)})}return a}function Oit(e,t,n,i){for(var a=[],o=[],r=0;r<e.length;r+=1){var s=t[r];s?a.push({index:r,thickness:1,span:s}):o.push(e[r])}for(var l=Dit(a,n,i),f=l.segRects,p=l.hiddenGroups,h=[],v=0,_=f;v<_.length;v++){var y=_[v];h.push({seg:e[y.index],rect:y})}for(var k=0,w=o;k<w.length;k++){var D=w[k];h.push({seg:D,rect:null})}return{segPlacements:h,hiddenGroups:p}}var $it=Es({hour:"numeric",minute:"2-digit",meridiem:!1}),SF=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&n.push("fc-timegrid-event-short"),an(aF,kn({},this.props,{defaultTimeFormat:$it,extraClassNames:n}))},t}(Wa),zit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props;return an(T9,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps},function(i,a){return a&&an("div",{className:"fc-timegrid-col-misc",ref:i},a)})},t}(Wa),jit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.sortEventSegs=Or(p9),n}return t.prototype.render=function(){var n=this,i=this,a=i.props,o=i.context,r=o.options.selectMirror,s=a.eventDrag&&a.eventDrag.segs||a.eventResize&&a.eventResize.segs||r&&a.dateSelectionSegs||[],l=a.eventDrag&&a.eventDrag.affectedInstances||a.eventResize&&a.eventResize.affectedInstances||{},f=this.sortEventSegs(a.fgEventSegs,o.options.eventOrder);return an(D9,{elRef:a.elRef,date:a.date,dateProfile:a.dateProfile,todayRange:a.todayRange,extraHookProps:a.extraHookProps},function(p,h,v){return an("td",kn({ref:p,role:"gridcell",className:["fc-timegrid-col"].concat(h,a.extraClassNames||[]).join(" ")},v,a.extraDataAttrs),an("div",{className:"fc-timegrid-col-frame"},an("div",{className:"fc-timegrid-col-bg"},n.renderFillSegs(a.businessHourSegs,"non-business"),n.renderFillSegs(a.bgEventSegs,"bg-event"),n.renderFillSegs(a.dateSelectionSegs,"highlight")),an("div",{className:"fc-timegrid-col-events"},n.renderFgSegs(f,l,!1,!1,!1)),an("div",{className:"fc-timegrid-col-events"},n.renderFgSegs(s,{},Boolean(a.eventDrag),Boolean(a.eventResize),Boolean(r))),an("div",{className:"fc-timegrid-now-indicator-container"},n.renderNowIndicator(a.nowIndicatorSegs)),an(zit,{date:a.date,dateProfile:a.dateProfile,todayRange:a.todayRange,extraHookProps:a.extraHookProps})))})},t.prototype.renderFgSegs=function(n,i,a,o,r){var s=this.props;return s.forPrint?CF(n,s):this.renderPositionedFgSegs(n,i,a,o,r)},t.prototype.renderPositionedFgSegs=function(n,i,a,o,r){var s=this,l=this.context.options,f=l.eventMaxStack,p=l.eventShortHeight,h=l.eventOrderStrict,v=l.eventMinHeight,_=this.props,y=_.date,k=_.slatCoords,w=_.eventSelection,D=_.todayRange,A=_.nowDate,L=a||o||r,T=BC(n,y,k,v),z=Oit(n,T,h,f),B=z.segPlacements,W=z.hiddenGroups;return an(dc,null,this.renderHiddenGroups(W,n),B.map(function(N){var K=N.seg,re=N.rect,se=K.eventRange.instance.instanceId,ce=L||Boolean(!i[se]&&re),de=b8(re&&re.span),ge=!L&&re?s.computeSegHStyle(re):{left:0,right:0},Ce=Boolean(re)&&re.stackForward>0,Oe=Boolean(re)&&re.span.end-re.span.start<p;return an("div",{className:"fc-timegrid-event-harness"+(Ce?" fc-timegrid-event-harness-inset":""),key:se,style:kn(kn({visibility:ce?"":"hidden"},de),ge)},an(SF,kn({seg:K,isDragging:a,isResizing:o,isDateSelecting:r,isSelected:se===w,isShort:Oe},J1(K,D,A))))}))},t.prototype.renderHiddenGroups=function(n,i){var a=this.props,o=a.extraDateSpan,r=a.dateProfile,s=a.todayRange,l=a.nowDate,f=a.eventSelection,p=a.eventDrag,h=a.eventResize;return an(dc,null,n.map(function(v){var _=b8(v.span),y=Vit(v.entries,i);return an(Ait,{key:cP(dF(y)),hiddenSegs:y,top:_.top,bottom:_.bottom,extraDateSpan:o,dateProfile:r,todayRange:s,nowDate:l,eventSelection:f,eventDrag:p,eventResize:h})}))},t.prototype.renderFillSegs=function(n,i){var a=this,o=a.props,r=a.context,s=BC(n,o.date,o.slatCoords,r.options.eventMinHeight),l=s.map(function(f,p){var h=n[p];return an("div",{key:vP(h.eventRange),className:"fc-timegrid-bg-harness",style:b8(f)},i==="bg-event"?an(lF,kn({seg:h},J1(h,o.todayRange,o.nowDate))):sF(i))});return an(dc,null,l)},t.prototype.renderNowIndicator=function(n){var i=this.props,a=i.slatCoords,o=i.date;return a?n.map(function(r,s){return an(A9,{isAxis:!1,date:o,key:s},function(l,f,p,h){return an("div",{ref:l,className:["fc-timegrid-now-indicator-line"].concat(f).join(" "),style:{top:a.computeDateTop(r.start,o)}},h)})}):null},t.prototype.computeSegHStyle=function(n){var i=this.context,a=i.isRtl,o=i.options,r=o.slotEventOverlap,s=n.levelCoord,l=n.levelCoord+n.thickness,f,p;r&&(l=Math.min(1,s+(l-s)*2)),a?(f=1-l,p=s):(f=s,p=1-l);var h={zIndex:n.stackDepth+1,left:f*100+"%",right:p*100+"%"};return r&&!n.stackForward&&(h[a?"marginLeft":"marginRight"]=10*2),h},t}(Wa);function CF(e,t){var n=t.todayRange,i=t.nowDate,a=t.eventSelection,o=t.eventDrag,r=t.eventResize,s=(o?o.affectedInstances:null)||(r?r.affectedInstances:null)||{};return an(dc,null,e.map(function(l){var f=l.eventRange.instance.instanceId;return an("div",{key:f,style:{visibility:s[f]?"hidden":""}},an(SF,kn({seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:f===a,isShort:!1},J1(l,n,i))))}))}function b8(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function Vit(e,t){return e.map(function(n){return t[n.index]})}var Nit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.splitFgEventSegs=Or(Z2),n.splitBgEventSegs=Or(Z2),n.splitBusinessHourSegs=Or(Z2),n.splitNowIndicatorSegs=Or(Z2),n.splitDateSelectionSegs=Or(Z2),n.splitEventDrag=Or(VC),n.splitEventResize=Or(VC),n.rootElRef=pc(),n.cellElRefs=new Y1,n}return t.prototype.render=function(){var n=this,i=this,a=i.props,o=i.context,r=o.options.nowIndicator&&a.slatCoords&&a.slatCoords.safeComputeTop(a.nowDate),s=a.cells.length,l=this.splitFgEventSegs(a.fgEventSegs,s),f=this.splitBgEventSegs(a.bgEventSegs,s),p=this.splitBusinessHourSegs(a.businessHourSegs,s),h=this.splitNowIndicatorSegs(a.nowIndicatorSegs,s),v=this.splitDateSelectionSegs(a.dateSelectionSegs,s),_=this.splitEventDrag(a.eventDrag,s),y=this.splitEventResize(a.eventResize,s);return an("div",{className:"fc-timegrid-cols",ref:this.rootElRef},an("table",{role:"presentation",style:{minWidth:a.tableMinWidth,width:a.clientWidth}},a.tableColGroupNode,an("tbody",{role:"presentation"},an("tr",{role:"row"},a.axis&&an("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},an("div",{className:"fc-timegrid-col-frame"},an("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&an(A9,{isAxis:!0,date:a.nowDate},function(k,w,D,A){return an("div",{ref:k,className:["fc-timegrid-now-indicator-arrow"].concat(w).join(" "),style:{top:r}},A)})))),a.cells.map(function(k,w){return an(jit,{key:k.key,elRef:n.cellElRefs.createRef(k.key),dateProfile:a.dateProfile,date:k.date,nowDate:a.nowDate,todayRange:a.todayRange,extraHookProps:k.extraHookProps,extraDataAttrs:k.extraDataAttrs,extraClassNames:k.extraClassNames,extraDateSpan:k.extraDateSpan,fgEventSegs:l[w],bgEventSegs:f[w],businessHourSegs:p[w],nowIndicatorSegs:h[w],dateSelectionSegs:v[w],eventDrag:_[w],eventResize:y[w],slatCoords:a.slatCoords,eventSelection:a.eventSelection,forPrint:a.forPrint})})))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var n=this.props;n.onColCoords&&n.clientWidth!==null&&n.onColCoords(new X0(this.rootElRef.current,Bit(this.cellElRefs.currentMap,n.cells),!0,!1))},t}(Wa);function Bit(e,t){return t.map(function(n){return e[n.key]})}var Uit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.processSlotOptions=Or(Hit),n.state={slatCoords:null},n.handleRootEl=function(i){i?n.context.registerInteractiveComponent(n,{el:i,isHitComboAllowed:n.props.isHitComboAllowed}):n.context.unregisterInteractiveComponent(n)},n.handleScrollRequest=function(i){var a=n.props.onScrollTopRequest,o=n.state.slatCoords;if(a&&o){if(i.time){var r=o.computeTimeTop(i.time);r=Math.ceil(r),r&&(r+=1),a(r)}return!0}return!1},n.handleColCoords=function(i){n.colCoords=i},n.handleSlatCoords=function(i){n.setState({slatCoords:i}),n.props.onSlatCoords&&n.props.onSlatCoords(i)},n}return t.prototype.render=function(){var n=this,i=n.props,a=n.state;return an("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:i.clientWidth,minWidth:i.tableMinWidth}},an(Cit,{axis:i.axis,dateProfile:i.dateProfile,slatMetas:i.slatMetas,clientWidth:i.clientWidth,minHeight:i.expandRows?i.clientHeight:"",tableMinWidth:i.tableMinWidth,tableColGroupNode:i.axis?i.tableColGroupNode:null,onCoords:this.handleSlatCoords}),an(Nit,{cells:i.cells,axis:i.axis,dateProfile:i.dateProfile,businessHourSegs:i.businessHourSegs,bgEventSegs:i.bgEventSegs,fgEventSegs:i.fgEventSegs,dateSelectionSegs:i.dateSelectionSegs,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,todayRange:i.todayRange,nowDate:i.nowDate,nowIndicatorSegs:i.nowIndicatorSegs,clientWidth:i.clientWidth,tableMinWidth:i.tableMinWidth,tableColGroupNode:i.tableColGroupNode,slatCoords:a.slatCoords,onColCoords:this.handleColCoords,forPrint:i.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(n){this.scrollResponder.update(n.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(n,i){var a=this.context,o=a.dateEnv,r=a.options,s=this.colCoords,l=this.props.dateProfile,f=this.state.slatCoords,p=this.processSlotOptions(this.props.slotDuration,r.snapDuration),h=p.snapDuration,v=p.snapsPerSlot,_=s.leftToIndex(n),y=f.positions.topToIndex(i);if(_!=null&&y!=null){var k=this.props.cells[_],w=f.positions.tops[y],D=f.positions.getHeight(y),A=(i-w)/D,L=Math.floor(A*v),T=y*v+L,z=this.props.cells[_].date,B=B6(l.slotMinTime,EJe(h,T)),W=o.add(z,B),N=o.add(W,h);return{dateProfile:l,dateSpan:kn({range:{start:W,end:N},allDay:!1},k.extraDateSpan),dayEl:s.els[_],rect:{left:s.lefts[_],right:s.rights[_],top:w,bottom:w+D},layer:0}}return null},t}(S1);function Hit(e,t){var n=t||e,i=a9(e,n);return i===null&&(n=e,i=1),{snapDuration:n,snapsPerSlot:i}}var qit=function(e){or(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.sliceRange=function(n,i){for(var a=[],o=0;o<i.length;o+=1){var r=Jh(n,i[o]);r&&a.push({start:r.start,end:r.end,isStart:r.start.valueOf()===n.start.valueOf(),isEnd:r.end.valueOf()===n.end.valueOf(),col:o})}return a},t}(JP),Wit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.buildDayRanges=Or(Git),n.slicer=new qit,n.timeColsRef=pc(),n}return t.prototype.render=function(){var n=this,i=this,a=i.props,o=i.context,r=a.dateProfile,s=a.dayTableModel,l=o.options.nowIndicator,f=this.buildDayRanges(s,r,o.dateEnv);return an(Cg,{unit:l?"minute":"day"},function(p,h){return an(Uit,kn({ref:n.timeColsRef},n.slicer.sliceProps(a,r,null,o,f),{forPrint:a.forPrint,axis:a.axis,dateProfile:r,slatMetas:a.slatMetas,slotDuration:a.slotDuration,cells:s.cells[0],tableColGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,clientWidth:a.clientWidth,clientHeight:a.clientHeight,expandRows:a.expandRows,nowDate:p,nowIndicatorSegs:l&&n.slicer.sliceNowDate(p,o,f),todayRange:h,onScrollTopRequest:a.onScrollTopRequest,onSlatCoords:a.onSlatCoords}))})},t}(S1);function Git(e,t,n){for(var i=[],a=0,o=e.headerDates;a<o.length;a++){var r=o[a];i.push({start:n.add(r,t.slotMinTime),end:n.add(r,t.slotMaxTime)})}return i}var UC=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Yit(e,t,n,i,a){for(var o=new Date(0),r=e,s=Ba(0),l=n||Xit(i),f=[];Pf(r)<Pf(t);){var p=a.add(o,r),h=a9(s,l)!==null;f.push({date:p,time:r,key:p.toISOString(),isoTimeStr:DJe(p),isLabeled:h}),r=B6(r,i),s=B6(s,i)}return f}function Xit(e){var t,n,i;for(t=UC.length-1;t>=0;t-=1)if(n=Ba(UC[t]),i=a9(n,e),i!==null&&i>1)return n;return e}var Kit=function(e){or(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.buildTimeColsModel=Or(Zit),n.buildSlatMetas=Or(Yit),n}return t.prototype.render=function(){var n=this,i=this.context,a=i.options,o=i.dateEnv,r=i.dateProfileGenerator,s=this.props,l=s.dateProfile,f=this.buildTimeColsModel(l,r),p=this.allDaySplitter.splitProps(s),h=this.buildSlatMetas(l.slotMinTime,l.slotMaxTime,a.slotLabelInterval,a.slotDuration,o),v=a.dayMinWidth,_=!v,y=v,k=a.dayHeaders&&an(XP,{dates:f.headerDates,dateProfile:l,datesRepDistinctDays:!0,renderIntro:_?this.renderHeadAxis:null}),w=a.allDaySlot!==!1&&function(A){return an(gF,kn({},p.allDay,{dateProfile:l,dayTableModel:f,nextDayThreshold:a.nextDayThreshold,tableMinWidth:A.tableMinWidth,colGroupNode:A.tableColGroupNode,renderRowIntro:_?n.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:n.headerElRef,clientWidth:A.clientWidth,clientHeight:A.clientHeight,forPrint:s.forPrint},n.getAllDayMaxEventProps()))},D=function(A){return an(Wit,kn({},p.timed,{dayTableModel:f,dateProfile:l,axis:_,slotDuration:a.slotDuration,slatMetas:h,forPrint:s.forPrint,tableColGroupNode:A.tableColGroupNode,tableMinWidth:A.tableMinWidth,clientWidth:A.clientWidth,clientHeight:A.clientHeight,onSlatCoords:n.handleSlatCoords,expandRows:A.expandRows,onScrollTopRequest:n.handleScrollTopRequest}))};return y?this.renderHScrollLayout(k,w,D,f.colCnt,v,h,this.state.slatCoords):this.renderSimpleLayout(k,w,D)},t}(wit);function Zit(e,t){var n=new KP(e.renderRange,t);return new ZP(n,!1)}var Jit={allDaySlot:Boolean},Qit=C1({initialView:"timeGridWeek",optionRefiners:Jit,views:{timeGrid:{component:Kit,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});const ert=$t({inheritAttrs:!1,props:{itemCount:{type:Number,default:null},showingCount:{type:String,default:null}}}),trt={key:0,class:"item-count"};function nrt(e,t,n,i,a,o){return G(),_e(cd,{name:"fade"},{default:R(()=>[e.itemCount?(G(),Me("span",trt,he(e.showingCount),1)):Je("",!0)]),_:1})}var irt=Ot(ert,[["render",nrt],["__scopeId","data-v-ceefb89c"]]);const rrt={class:"calendar-layout"},art=$t({inheritAttrs:!1}),ort=$t({...art,name:"calendar",props:{createCalendar:null,destroyCalendar:null,itemCount:{default:void 0}},emits:["update:selection"],setup(e){const t=e,{n,t:i}=yn(),a=ze();Lo(()=>{t.createCalendar(a.value)}),Lc(()=>{t.destroyCalendar()});const o=Ee(()=>t.itemCount===1e4);return(r,s)=>{const l=Y("v-notice");return G(),Me("div",rrt,[V(o)?(G(),_e(l,{key:0,type:"warning"},{default:R(()=>[Ne(he(V(i)("dataset_too_large_currently_showing_n_items",{n:V(n)(1e4)})),1)]),_:1})):Je("",!0),ke("div",{ref_key:"calendarElement",ref:a},null,512)])}}});var srt=Ot(ort,[["__scopeId","data-v-49a24244"]]);const lrt=$t({inheritAttrs:!1,props:{collection:{type:String,required:!0},template:{type:String,default:null},dateFields:{type:Array,required:!0},startDateField:{type:String,default:null},endDateField:{type:String,default:null},firstDay:{type:Number,default:0}},emits:["update:template","update:startDateField","update:endDateField","update:firstDay"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"template",t),a=qr(e,"startDateField",t),o=qr(e,"endDateField",t),r=qr(e,"firstDay",t),s=ze([]);return Lo(async()=>{const l=Ev(new Date);s.value=await Promise.all([...Array(7).keys()].map(async(f,p)=>({text:Tl(x8(l,{days:p}),"EEEE"),value:p})))}),{t:n,templateWritable:i,startDateFieldWritable:a,endDateFieldWritable:o,firstDayWritable:r,firstDayOptions:s}}}),crt={class:"field"},urt={class:"type-label"},drt={class:"field"},frt={class:"type-label"},prt={class:"field"},hrt={class:"type-label"},mrt={class:"field"},vrt={class:"type-label"};function grt(e,t,n,i,a,o){const r=Y("v-field-template"),s=Y("v-select");return G(),Me(gn,null,[ke("div",crt,[ke("div",urt,he(e.t("display_template")),1),F(r,{modelValue:e.templateWritable,"onUpdate:modelValue":t[0]||(t[0]=l=>e.templateWritable=l),collection:e.collection},null,8,["modelValue","collection"])]),ke("div",drt,[ke("div",frt,he(e.t("layouts.calendar.start_date_field")),1),F(s,{modelValue:e.startDateFieldWritable,"onUpdate:modelValue":t[1]||(t[1]=l=>e.startDateFieldWritable=l),"show-deselect":"",items:e.dateFields,"item-text":"name","item-value":"field"},null,8,["modelValue","items"])]),ke("div",prt,[ke("div",hrt,he(e.t("layouts.calendar.end_date_field")),1),F(s,{modelValue:e.endDateFieldWritable,"onUpdate:modelValue":t[2]||(t[2]=l=>e.endDateFieldWritable=l),"show-deselect":"",placeholder:e.t("layouts.calendar.optional"),items:e.dateFields,"item-text":"name","item-value":"field"},null,8,["modelValue","placeholder","items"])]),ke("div",mrt,[ke("div",vrt,he(e.t("layouts.calendar.first_day")),1),F(s,{modelValue:e.firstDayWritable,"onUpdate:modelValue":t[3]||(t[3]=l=>e.firstDayWritable=l),items:e.firstDayOptions},null,8,["modelValue","items"])])],64)}var yrt=Ot(lrt,[["render",grt]]),_rt=p4({id:"calendar",name:"$t:layouts.calendar.calendar",icon:"event",component:srt,slots:{options:yrt,sidebar:()=>{},actions:irt},setup(e,{emit:t}){const{t:n,locale:i}=yn(),a=ze(),o=Pc(),r=qr(e,"selection",t),s=qr(e,"layoutOptions",t),{collection:l,filter:f,search:p}=wr(e),{primaryKeyField:h,fields:v}=Ns(l),_=Ee(()=>v.value.filter(At=>["timestamp","dateTime","date"].includes(At.type))),y=Ee(()=>{if(!a.value||!A.value)return;const At=J2(a.value.view.activeStart),Tt=J2(a.value.view.activeEnd),Vt={[A.value]:{_between:[At,Tt]}};if(!T.value)return Vt;const on={[T.value]:{_between:[At,Tt]}},_t={[A.value]:{_lte:At}},Ut={[T.value]:{_gte:Tt}};return{_or:[Vt,on,{_and:[_t,Ut]}]}}),k=Ee(()=>y.value?f.value?{_and:[f.value,y.value]}:null:f.value),w=Al(s,"template",void 0),D=Al(s,"viewInfo",void 0),A=Al(s,"startDateField",void 0),L=Ee(()=>v.value.find(At=>At.field===A.value)),T=Al(s,"endDateField",void 0),z=Ee(()=>v.value.find(At=>At.field===T.value)),B=Al(s,"firstDay",void 0),W=Ee(()=>{if(!h.value)return[];const At=[h.value.field];return w.value&&At.push(...hc(w.value)),A.value&&At.push(A.value),T.value&&At.push(T.value),At}),{items:N,loading:K,error:re,totalPages:se,itemCount:ce,totalCount:de,changeManualSort:ge,getItems:Ce}=h4(l,{sort:Ee(()=>{var At;return[((At=h.value)==null?void 0:At.field)||""]}),page:ze(1),limit:ze(1e4),fields:W,filter:k,search:p},!1),Oe=Ee(()=>N.value.map(At=>De(At)).filter(At=>At)||[]),Ve=Ee(()=>{var Tt,Vt,on,_t,Ut,Nt,Qt;const At={editable:!0,eventStartEditable:!0,eventResizableFromStart:!0,eventDurationEditable:!0,dayMaxEventRows:!0,height:"100%",firstDay:(Tt=B.value)!=null?Tt:0,nextDayThreshold:"01:00:00",plugins:[Pnt,Qit,hit,tit],initialView:(on=(Vt=D.value)==null?void 0:Vt.type)!=null?on:"dayGridMonth",headerToolbar:{left:"prevYear,prev,next,nextYear today",center:"title",right:"dayGridMonth,dayGridWeek,dayGridDay,listWeek"},views:{dayGridMonth:{eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:"narrow"}}},events:Oe.value,initialDate:(Ut=(_t=D.value)==null?void 0:_t.startDateStr)!=null?Ut:J2(new Date),eventClick(Jt){var qt;if(!!l.value)if(e.selectMode||((qt=r.value)==null?void 0:qt.length)>0){const Dt=N.value.find(nt=>nt[h.value.field]==Jt.event.id);if(Dt){const nt=Dt[h.value.field];r.value.includes(nt)?r.value=r.value.filter(Pe=>Pe!==nt):r.value=[...r.value,nt],Te()}}else{const Dt=Jt.event.id,nt=l.value.startsWith("directus")?l.value.substring(9):`content/${l.value}`;ol.push(`/${nt}/${Dt}`)}},async eventChange(Jt){if(!l.value||!A.value||!L.value)return;const qt={[A.value]:ht(Jt.event.startStr,L.value.type)};T.value&&z.value&&Jt.event.endStr&&(qt[T.value]=ht(Jt.event.endStr,z.value.type));const Dt=l.value.startsWith("directus")?l.value.substring(9):`/items/${l.value}`;try{await $n.patch(`${Dt}/${Jt.event.id}`,qt)}catch(nt){Hi(nt)}}};return(((Nt=L.value)==null?void 0:Nt.type)==="dateTime"||((Qt=L.value)==null?void 0:Qt.type)==="timestamp")&&(At.headerToolbar={...At.headerToolbar,right:"dayGridMonth,timeGridWeek,timeGridDay,listWeek"}),At});Zn(()=>o.sidebarOpen,()=>setTimeout(()=>{var At;return(At=a.value)==null?void 0:At.updateSize()},300)),Zn(Ve,()=>Te(),{deep:!0,immediate:!0}),Zn([a,i],async()=>{if(a.value){const At=await vZe(i.value);a.value.setOption("locale",At)}},{immediate:!0});const Ye=Ee(()=>ce.value?n("item_count",ce.value):null);return{items:N,loading:K,error:re,totalPages:se,itemCount:ce,totalCount:de,changeManualSort:ge,getItems:Ce,filterWithCalendarView:k,template:w,dateFields:_,startDateField:A,endDateField:T,firstDay:B,showingCount:Ye,createCalendar:it,destroyCalendar:Le,download:ot};function ot(){!l.value||r_(l.value,W.value,N.value)}function Te(){a.value&&(a.value.pauseRendering(),a.value.resetOptions(Ve.value),a.value.resumeRendering(),a.value.render())}function it(At){a.value=new fnt(At,Ve.value),a.value.on("datesSet",Tt=>{D.value={type:Tt.view.type,startDateStr:J2(Tt.view.currentStart)}}),a.value.render()}function Le(){var At;(At=a.value)==null||At.destroy()}function De(At){if(!A.value||!h.value)return null;let Tt;const Vt=z.value&&z.value.type==="date";if(T.value)if(Vt&&b4(At[T.value])){const _t=u1(At[T.value],"yyyy-MM-dd",new Date);_t.setDate(_t.getDate()+1),Tt=K1(_t,"yyyy-MM-dd")}else Tt=At[T.value];const on=At[h.value.field];return{id:on,title:Hre(l.value,w.value||`{{ ${h.value.field} }}`,At)||At[h.value.field],start:At[A.value],end:Tt,allDay:Vt,className:r.value.includes(on)?"selected":void 0}}function ht(At,Tt){return Tt==="dateTime"?At.substring(0,19):At}}}),brt=Object.freeze(Object.defineProperty({__proto__:null,default:_rt},Symbol.toStringTag,{value:"Module"}));const wrt=$t({inheritAttrs:!1,props:{itemCount:{type:Number,default:null},showingCount:{type:String,required:!0}}}),xrt={key:0,class:"item-count"};function krt(e,t,n,i,a,o){return G(),_e(cd,{name:"fade"},{default:R(()=>[e.itemCount?(G(),Me("span",xrt,he(e.showingCount),1)):Je("",!0)]),_:1})}var Srt=Ot(wrt,[["render",krt],["__scopeId","data-v-4039d1ee"]]);const Crt=$t({props:{icon:{type:String,default:"box"},file:{type:Object,default:null},crop:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},item:{type:Object,default:null},modelValue:{type:Array,default:()=>[]},selectMode:{type:Boolean,default:!1},to:{type:String,default:""},readonly:{type:Boolean,default:!1},itemKey:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=qa(),i=ze(!1),a=Ee(()=>!e.file||!e.file.type||!i.value&&e.file.type.startsWith("image")?null:Q1(e.file.type,!0)),o=Ee(()=>{let p;if(!e.file||!e.file.type)return null;if(e.file.type.startsWith("image")===!0&&(p="image"),e.file.type.includes("svg")&&(p="svg"),!p)return{source:void 0,fileType:p};let h="system-medium-cover";return e.crop===!1&&(h="system-medium-contain"),{source:`/assets/${e.file.id}?key=${h}&modified=${e.file.modified_on}`,fileType:p}}),r=Ee(()=>o.value&&o.value.fileType),s=Ee(()=>e.item&&e.modelValue.includes(e.item[e.itemKey])?"check_circle":"radio_button_unchecked");return{imageInfo:o,type:a,showThumbnail:r,selectionIcon:s,toggleSelection:l,handleClick:f,imgError:i};function l(){if(!e.item)return null;e.modelValue.includes(e.item[e.itemKey])?t("update:modelValue",e.modelValue.filter(p=>p!==e.item[e.itemKey])):t("update:modelValue",[...e.modelValue,e.item[e.itemKey]])}function f(){e.selectMode===!0?l():n.push(e.to)}}}),Ert=e=>(ya("data-v-15c0a270"),e=e(),_a(),e),Art={class:"header"},Trt=Ert(()=>ke("div",{class:"selection-fade"},null,-1)),Drt={key:0,class:"title"},Irt={key:1,class:"subtitle"};function Mrt(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-skeleton-loader"),l=Y("v-icon-file"),f=Y("v-image");return G(),Me("div",{class:wn(["card",{loading:e.loading,readonly:e.readonly,selected:e.item&&e.modelValue.includes(e.item[e.itemKey]),"select-mode":e.selectMode}]),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[F(r,{class:"selector",name:e.selectionIcon,onClick:Li(e.toggleSelection,["stop"])},null,8,["name","onClick"]),ke("div",Art,[Trt,e.loading?(G(),_e(s,{key:0})):(G(),Me(gn,{key:1},[e.type||e.imgError?(G(),_e(l,{key:0,ext:e.type},null,8,["ext"])):(G(),Me(gn,{key:1},[e.showThumbnail?(G(),_e(f,{key:0,class:wn(e.imageInfo.fileType),src:e.imageInfo.source,alt:e.item.title,role:"presentation"},null,8,["class","src","alt"])):(G(),_e(r,{key:1,large:"",name:e.icon},null,8,["name"]))],64))],64))]),e.loading?(G(),_e(s,{key:0,type:"text"})):(G(),Me(gn,{key:1},[e.$slots.title?(G(),Me("div",Drt,[di(e.$slots,"title",{},void 0,!0)])):Je("",!0),e.$slots.subtitle?(G(),Me("div",Irt,[di(e.$slots,"subtitle",{},void 0,!0)])):Je("",!0)],64))],2)}var Lrt=Ot(Crt,[["render",Mrt],["__scopeId","data-v-15c0a270"]]);const Prt=$t({props:{fields:{type:Array,required:!0},size:{type:Number,required:!0},sort:{type:Array,required:!0},showSelect:{type:String,default:"multiple"},selection:{type:Array,default:()=>[]}},emits:["select-all","update:size","update:sort","update:selection"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"size",t),a=qr(e,"sort",t),o=qr(e,"selection",t),r=Ee(()=>e.sort[0].startsWith("-")),s=Ee(()=>e.sort[0].startsWith("-")?e.sort[0].substring(1):e.sort[0]),l=Ee(()=>e.fields.find(v=>v.field===s.value)),f=Ee(()=>e.fields.filter(v=>v.field.startsWith("$")===!1).map(v=>({field:v.field,name:v.name,disabled:["json","o2m","m2o","m2a","file","files","alias","presentation"].includes(v.type)})));return{t:n,toggleSize:p,descending:r,toggleDescending:h,sortField:l,sizeSync:i,sortSync:a,selectionSync:o,sortKey:s,fieldsWithoutFake:f};function p(){e.size>=2&&e.size<5?i.value++:i.value=2}function h(){r.value===!0?a.value=[a.value[0].substring(1)]:a.value=["-"+a.value]}}}),Frt={class:"cards-header"},Rrt={class:"start"},Ort={class:"label"},$rt={class:"label"},zrt={class:"end"},jrt=["onClick"];function Vrt(e,t,n,i,a,o){const r=Y("v-icon"),s=Y("v-list-item-content"),l=Y("v-list-item"),f=Y("v-list"),p=Y("v-menu"),h=pi("tooltip");return G(),Me("div",Frt,[ke("div",Rrt,[e.selectionSync.length>0?(G(),Me("div",{key:0,class:"selected",onClick:t[0]||(t[0]=v=>e.selectionSync=[])},[F(r,{name:"cancel",outline:""}),ke("span",Ort,he(e.t("n_items_selected",e.selectionSync.length)),1)])):(G(),Me("button",{key:1,class:"select-all",onClick:t[1]||(t[1]=v=>e.showSelect==="multiple"?e.$emit("select-all"):void 0)},[F(r,{name:"check_circle",outline:""}),ke("span",$rt,he(e.t(e.showSelect==="multiple"?"select_all":"select_an_item")),1)]))]),ke("div",zrt,[dn(F(r,{class:"size-selector",name:`grid_${7-e.size}`,clickable:"",onClick:e.toggleSize},null,8,["name","onClick"]),[[h,e.t("card_size"),void 0,{top:!0}]]),F(p,{"show-arrow":"",placement:"bottom"},{activator:R(({toggle:v})=>[dn((G(),Me("div",{class:"sort-selector",onClick:v},[Ne(he(e.sortField&&e.sortField.name),1)],8,jrt)),[[h,e.t("sort_field"),void 0,{top:!0}]])]),default:R(()=>[F(f,null,{default:R(()=>[(G(!0),Me(gn,null,vi(e.fieldsWithoutFake,v=>(G(),_e(l,{key:v.field,disabled:v.disabled,active:v.field===e.sortKey,clickable:"",onClick:_=>e.sortSync=[v.field]},{default:R(()=>[F(s,null,{default:R(()=>[Ne(he(v.name),1)]),_:2},1024)]),_:2},1032,["disabled","active","onClick"]))),128))]),_:1})]),_:1}),dn(F(r,{class:wn(["sort-direction",{descending:e.descending}]),name:"sort",clickable:"",onClick:e.toggleDescending},null,8,["class","onClick"]),[[h,e.t("sort_direction"),void 0,{top:!0}]])])])}var Nrt=Ot(Prt,[["render",Vrt],["__scopeId","data-v-e1acf4b8"]]);const Brt=$t({components:{Card:Lrt,CardsHeader:Nrt},inheritAttrs:!1,props:{collection:{type:String,required:!0},selection:{type:Array,required:!0},showSelect:{type:String,default:"multiple"},selectMode:{type:Boolean,required:!0},readonly:{type:Boolean,required:!0},items:{type:Array,required:!0},loading:{type:Boolean,required:!0},error:{type:Object,default:null},totalPages:{type:Number,required:!0},page:{type:Number,required:!0},toPage:{type:Function,required:!0},itemCount:{type:Number,default:null},fieldsInCollection:{type:Array,required:!0},limit:{type:Number,required:!0},size:{type:Number,required:!0},primaryKeyField:{type:Object,default:null},icon:{type:String,required:!0},imageSource:{type:String,default:null},title:{type:String,default:null},subtitle:{type:String,default:null},getLinkForItem:{type:Function,required:!0},imageFit:{type:String,required:!0},sort:{type:Array,required:!0},info:{type:Object,default:null},isSingleRow:{type:Boolean,required:!0},width:{type:Number,required:!0},selectAll:{type:Function,required:!0},resetPresetAndRefresh:{type:Function,required:!0},filter:{type:Object,default:null},search:{type:String,default:null}},emits:["update:selection","update:limit","update:size","update:sort","update:width"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"selection",t),a=qr(e,"limit",t),o=qr(e,"size",t),r=qr(e,"sort",t),s=Il("main-element"),l=ze(),{width:f}=qh(l);return Zn(()=>e.page,()=>{var p;return(p=s.value)==null?void 0:p.scrollTo({top:0,behavior:"smooth"})}),Zn(f,()=>{t("update:width",f.value)}),{t:n,selectionWritable:i,limitWritable:a,sizeWritable:o,sortWritable:r,layoutElement:l}}}),Urt={class:"footer"},Hrt={class:"pagination"},qrt={key:0,class:"per-page"};function Wrt(e,t,n,i,a,o){const r=Y("cards-header"),s=Y("render-template"),l=Y("card"),f=Y("v-pagination"),p=Y("v-select"),h=Y("v-error"),v=Y("v-button"),_=Y("v-info");return G(),Me("div",{ref:"layoutElement",class:"layout-cards",style:Kr({"--size":e.size*40+"px"})},[e.loading||e.itemCount>0?(G(),Me(gn,{key:0},[F(r,{size:e.sizeWritable,"onUpdate:size":t[0]||(t[0]=y=>e.sizeWritable=y),selection:e.selectionWritable,"onUpdate:selection":t[1]||(t[1]=y=>e.selectionWritable=y),sort:e.sortWritable,"onUpdate:sort":t[2]||(t[2]=y=>e.sortWritable=y),fields:e.fieldsInCollection,"show-select":e.showSelect,onSelectAll:e.selectAll},null,8,["size","selection","sort","fields","show-select","onSelectAll"]),ke("div",{class:wn(["grid",{"single-row":e.isSingleRow}])},[(G(!0),Me(gn,null,vi(e.items,y=>(G(),_e(l,{key:y[e.primaryKeyField.field],modelValue:e.selectionWritable,"onUpdate:modelValue":t[3]||(t[3]=k=>e.selectionWritable=k),"item-key":e.primaryKeyField.field,crop:e.imageFit==="crop",icon:e.icon,file:e.imageSource?y[e.imageSource]:null,item:y,"select-mode":e.selectMode||e.selection&&e.selection.length>0,to:e.getLinkForItem(y),readonly:e.readonly},La({_:2},[e.title?{name:"title",fn:R(()=>[F(s,{collection:e.collection,item:y,template:e.title},null,8,["collection","item","template"])])}:void 0,e.subtitle?{name:"subtitle",fn:R(()=>[F(s,{collection:e.collection,item:y,template:e.subtitle},null,8,["collection","item","template"])])}:void 0]),1032,["modelValue","item-key","crop","icon","file","item","select-mode","to","readonly"]))),128))],2),ke("div",Urt,[ke("div",Hrt,[e.totalPages>1?(G(),_e(f,{key:0,length:e.totalPages,"total-visible":7,"show-first-last":"","model-value":e.page,"onUpdate:modelValue":e.toPage},null,8,["length","model-value","onUpdate:modelValue"])):Je("",!0)]),e.loading===!1&&e.items.length>=25?(G(),Me("div",qrt,[ke("span",null,he(e.t("per_page")),1),F(p,{"model-value":`${e.limit}`,items:["25","50","100","250","500","1000"],inline:"","onUpdate:modelValue":t[4]||(t[4]=y=>e.limitWritable=+y)},null,8,["model-value"])])):Je("",!0)])],64)):e.error?(G(),_e(_,{key:1,type:"danger",title:e.t("unexpected_error"),icon:"error",center:""},{append:R(()=>[F(h,{error:e.error},null,8,["error"]),F(v,{small:"",class:"reset-preset",onClick:e.resetPresetAndRefresh},{default:R(()=>[Ne(he(e.t("reset_page_preferences")),1)]),_:1},8,["onClick"])]),default:R(()=>[Ne(he(e.t("unexpected_error_copy"))+" ",1)]),_:1},8,["title"])):e.itemCount===0&&(e.filter||e.search)?di(e.$slots,"no-results",{key:2},void 0,!0):e.itemCount===0?di(e.$slots,"no-items",{key:3},void 0,!0):Je("",!0)],4)}var Grt=Ot(Brt,[["render",Wrt],["__scopeId","data-v-5d9af6b8"]]);const Yrt=$t({inheritAttrs:!1,props:{collection:{type:String,required:!0},icon:{type:String,required:!0},fileFields:{type:Array,required:!0},imageSource:{type:String,default:null},title:{type:String,default:null},subtitle:{type:String,default:null},imageFit:{type:String,required:!0}},emits:["update:icon","update:imageSource","update:title","update:subtitle","update:imageFit"],setup(e,{emit:t}){const{t:n}=yn(),i=qr(e,"icon",t),a=qr(e,"imageSource",t),o=qr(e,"title",t),r=qr(e,"subtitle",t),s=qr(e,"imageFit",t);return{t:n,iconWritable:i,imageSourceWritable:a,titleWritable:o,subtitleWritable:r,imageFitWritable:s}}}),Xrt={class:"field"},Krt={class:"type-label"},Zrt={class:"field"},Jrt={class:"type-label"},Qrt={class:"field"},eat={class:"type-label"},tat={class:"nested-options"},nat={class:"field"},iat={class:"type-label"},rat={class:"field"},aat={class:"type-label"};function oat(e,t,n,i,a,o){const r=Y("v-select"),s=Y("v-field-template"),l=Y("interface-select-icon"),f=Y("v-detail");return G(),Me(gn,null,[ke("div",Xrt,[ke("div",Krt,he(e.t("layouts.cards.image_source")),1),F(r,{modelValue:e.imageSourceWritable,"onUpdate:modelValue":t[0]||(t[0]=p=>e.imageSourceWritable=p),"show-deselect":"","item-value":"field","item-text":"name",items:e.fileFields},null,8,["modelValue","items"])]),ke("div",Zrt,[ke("div",Jrt,he(e.t("layouts.cards.title")),1),F(s,{modelValue:e.titleWritable,"onUpdate:modelValue":t[1]||(t[1]=p=>e.titleWritable=p),collection:e.collection},null,8,["modelValue","collection"])]),ke("div",Qrt,[ke("div",eat,he(e.t("layouts.cards.subtitle")),1),F(s,{modelValue:e.subtitleWritable,"onUpdate:modelValue":t[2]||(t[2]=p=>e.subtitleWritable=p),collection:e.collection},null,8,["modelValue","collection"])]),F(f,{class:"field"},{title:R(()=>[Ne(he(e.t("advanced")),1)]),default:R(()=>[ke("div",tat,[ke("div",nat,[ke("div",iat,he(e.t("layouts.cards.image_fit")),1),F(r,{modelValue:e.imageFitWritable,"onUpdate:modelValue":t[3]||(t[3]=p=>e.imageFitWritable=p),disabled:e.imageSource===null,items:[{text:e.t("layouts.cards.crop"),value:"crop"},{text:e.t("layouts.cards.contain"),value:"contain"}]},null,8,["modelValue","disabled","items"])]),ke("div",rat,[ke("div",aat,he(e.t("fallback_icon")),1),F(l,{value:e.icon,onInput:t[4]||(t[4]=p=>e.iconWritable=p)},null,8,["value"])])])]),_:1})],64)}var sat=Ot(Yrt,[["render",oat],["__scopeId","data-v-04d20ce4"]]),lat=p4({id:"cards",name:"$t:layouts.cards.cards",icon:"grid_4",component:Grt,slots:{options:sat,sidebar:()=>{},actions:Srt},setup(e,{emit:t}){const n=Qo(),i=qr(e,"selection",t),a=qr(e,"layoutOptions",t),o=qr(e,"layoutQuery",t),{collection:r,filter:s,search:l,filterUser:f}=wr(e),{info:p,primaryKeyField:h,fields:v}=Ns(r),_=Ee(()=>v.value.filter(Tt=>Tt.field==="$thumbnail"?!0:!!n.relations.find(on=>on.collection===e.collection&&on.field===Tt.field&&on.related_collection==="directus_files"))),{size:y,icon:k,imageSource:w,title:D,subtitle:A,imageFit:L}=Le(),{sort:T,limit:z,page:B,fields:W}=De(),{items:N,loading:K,error:re,totalPages:se,itemCount:ce,totalCount:de,getItems:ge}=h4(r,{sort:T,limit:z,page:B,fields:W,filter:s,search:l}),Ce=Ee(()=>{const Tt=Boolean((ce.value||0)<(de.value||0)&&f.value);return xg(ce.value||0,B.value,z.value,Tt)}),Oe=ze(0),Ve=Ee(()=>N.value.length*(y.value*40)+(N.value.length-1)*24<=Oe.value);return{items:N,loading:K,error:re,totalPages:se,page:B,toPage:it,itemCount:ce,totalCount:de,fieldsInCollection:v,limit:z,size:y,primaryKeyField:h,icon:k,fileFields:_,imageSource:w,title:D,subtitle:A,getLinkForItem:ht,imageFit:L,sort:T,info:p,showingCount:Ce,isSingleRow:Ve,width:Oe,refresh:ot,selectAll:At,resetPresetAndRefresh:Ye,filter:s,search:l,download:Te};async function Ye(){var Tt;await((Tt=e==null?void 0:e.resetPreset)==null?void 0:Tt.call(e)),ot()}function ot(){ge()}function Te(){!r.value||r_(r.value,W.value,N.value)}function it(Tt){B.value=Tt}function Le(){var Jt,qt;const Tt=Qt("size",4),Vt=Qt("icon","box"),on=Qt("title",null),_t=Qt("subtitle",null),Ut=Qt("imageSource",(qt=(Jt=_.value[0])==null?void 0:Jt.field)!=null?qt:null),Nt=Qt("imageFit","crop");return{size:Tt,icon:Vt,imageSource:Ut,title:on,subtitle:_t,imageFit:Nt};function Qt(Dt,nt){return Ee({get(){var Pe,He;return((Pe=a.value)==null?void 0:Pe[Dt])!==void 0?(He=a.value)==null?void 0:He[Dt]:nt},set(Pe){a.value={...a.value,[Dt]:Pe}}})}}function De(){const Tt=Al(o,"page",1),Vt=Al(o,"limit",25),on=Ee(()=>{var Nt;return h.value?[(Nt=h.value)==null?void 0:Nt.field]:[]}),_t=Al(o,"sort",on),Ut=Ee(()=>{if(!h.value||!e.collection)return[];const Nt=[h.value.field];w.value&&(Nt.push(`${w.value}.modified_on`),Nt.push(`${w.value}.type`),Nt.push(`${w.value}.filename_disk`),Nt.push(`${w.value}.storage`),Nt.push(`${w.value}.id`)),e.collection==="directus_files"&&w.value==="$thumbnail"&&(Nt.push("modified_on"),Nt.push("type"));const Qt=[];return D.value&&Qt.push(...hc(D.value)),A.value&&Qt.push(...hc(A.value)),[...Nt,...dd(Qt,e.collection)]});return{sort:_t,limit:Vt,page:Tt,fields:Ut}}function ht(Tt){if(!!h.value)return`/content/${e.collection}/${encodeURIComponent(Tt[h.value.field])}`}function At(){if(!h.value)return;const Tt=h.value;i.value=lt.exports.clone(N.value).map(Vt=>Vt[Tt.field])}}}),cat=Object.freeze(Object.defineProperty({__proto__:null,default:lat},Symbol.toStringTag,{value:"Module"}));const uat=$t({inheritAttrs:!1,props:{itemCount:{type:Number,default:null},showingCount:{type:String,required:!0}}}),dat={key:0,class:"item-count"};function fat(e,t,n,i,a,o){return G(),_e(cd,{name:"fade"},{default:R(()=>[e.itemCount?(G(),Me("span",dat,he(e.showingCount),1)):Je("",!0)]),_:1})}var pat=Ot(uat,[["render",fat],["__scopeId","data-v-08898882"]]);const hat=$t({components:{},props:{data:{type:Object,required:!0},source:{type:Object,required:!0},layers:{type:Array,default:()=>[]},camera:{type:Object,default:()=>({})},bounds:{type:Array,default:void 0},featureId:{type:String,default:void 0},selection:{type:Array,default:()=>[]},showSelect:{type:String,default:"multiple"}},emits:["moveend","featureclick","featureselect","fitdata","updateitempopup"],setup(e,{emit:t}){var ot;const{t:n}=yn(),i=Pc(),a=sh();let o;const r=ze(),s=ze(),l=ze(),f=ze(),p=[],{sidebarOpen:h,basemap:v}=wr(i),_=(ot=a.settings)==null?void 0:ot.mapbox_key,y=fg(),k=Ee(()=>{var it;const Te=(it=y.find(Le=>Le.name===v.value))!=null?it:y[0];return l7(Te)}),w=new uf.exports.AttributionControl,D=new uf.exports.NavigationControl({showCompass:!1}),A=new uf.exports.GeolocateControl,L=new H7("mapboxgl-ctrl-fitdata",()=>{t("fitdata")}),T=new wHe({boxElementClass:"map-selection-box",selectButtonClass:"mapboxgl-ctrl-select",layers:["__directus_polygons","__directus_points","__directus_lines"]});let z;if(_){const Te=document.createElement("div");Te.className="mapboxgl-user-location-dot mapboxgl-search-location-dot",z=new zL({accessToken:_,collapsed:!0,marker:{element:Te},flyTo:{speed:1.4},mapboxgl:JM,placeholder:n("layouts.map.find_location")})}return Lo(()=>{B()}),Lc(()=>{o.remove()}),{container:f,hoveredFeature:r,hoveredCluster:s,selectMode:l};function B(){o=new uf.exports.Map({container:"map-container",style:k.value,dragRotate:!1,attributionControl:!1,...e.camera,..._?{accessToken:_}:{}}),z&&o.addControl(z,"top-right"),o.addControl(w,"bottom-left"),o.addControl(D,"top-left"),o.addControl(A,"top-left"),o.addControl(L,"top-left"),o.addControl(T,"top-left"),o.on("load",()=>{Zn(()=>k.value,N),Zn(()=>e.bounds,W);const Te=["__directus_polygons","__directus_points","__directus_lines"];for(const it of Te)o.on("click",it,ge),o.on("mousemove",it,Ce),o.on("mouseleave",it,Ce);o.on("move",Oe),o.on("click","__directus_clusters",Ve),o.on("mousemove","__directus_clusters",Ye),o.on("mouseleave","__directus_clusters",Ye),o.on("select.enable",()=>l.value=!0),o.on("select.disable",()=>l.value=!1),o.on("select.end",it=>{var De;const Le=(De=it.features)==null?void 0:De.map(ht=>ht.id);t("featureselect",{ids:Le,replace:!it.alt})}),o.on("moveend",()=>{t("moveend",{center:o.getCenter(),zoom:o.getZoom(),bearing:o.getBearing(),pitch:o.getPitch(),bbox:o.getBounds().toArray().flat()})}),K()}),Zn(()=>h.value,Te=>{Te||setTimeout(()=>o.resize(),300)}),setTimeout(()=>o.resize(),300)}function W(){const Te=e.data.bbox;o&&Te&&o.fitBounds(Te,{padding:100,speed:1.3,maxZoom:14})}function N(Te){p.forEach(it=>it()),p.length=0,o.setStyle(Te,{diff:!1}),o.once("styledata",K)}function K(){p.push(Zn(()=>e.source,se,{immediate:!0}),Zn(()=>e.selection,de,{immediate:!0}),Zn(()=>e.layers,ce),Zn(()=>e.data,re))}function re(Te){o.getSource("__directus").setData(Te),de(e.selection,void 0)}function se(Te){var Le,De;const it=new Set((Le=o.getStyle().layers)==null?void 0:Le.map(({id:ht})=>ht));for(const ht of e.layers)it.has(ht.id)&&o.removeLayer(ht.id);e.featureId?Te.promoteId=e.featureId:Te.generateId=!0,(De=o.getStyle().sources)!=null&&De.__directus&&o.removeSource("__directus"),o.addSource("__directus",{...Te,data:e.data}),o.once("sourcedata",()=>{setTimeout(()=>e.layers.forEach(ht=>o.addLayer(ht)))})}function ce(Te,it){var De;const Le=new Set((De=o.getStyle().layers)==null?void 0:De.map(({id:ht})=>ht));it==null||it.forEach(ht=>{Le.has(ht.id)&&o.removeLayer(ht.id)}),Te==null||Te.forEach(ht=>{o.addLayer(ht)})}function de(Te,it){it==null||it.forEach(Le=>{o.setFeatureState({id:Le,source:"__directus"},{selected:!1}),o.removeFeatureState({id:Le,source:"__directus"})}),Te==null||Te.forEach(Le=>{o.setFeatureState({id:Le,source:"__directus"},{selected:!0})})}function ge(Te){var De;const it=(De=Te.features)==null?void 0:De[0],Le=e.showSelect==="multiple"?!1:!Te.originalEvent.altKey;it&&e.featureId&&(T.active()?t("featureselect",{ids:[it.id],replace:Le}):t("featureclick",{id:it.id,replace:Le}))}function Ce(Te){var ht;const it=o.queryRenderedFeatures(Te.point,{layers:["__directus_polygons","__directus_points","__directus_lines"]})[0],Le=(ht=r.value)==null?void 0:ht.id,De=Le!==(it==null?void 0:it.id);if(Le&&De&&o.setFeatureState({id:Le,source:"__directus"},{hovered:!1}),it&&it.properties){if(it.geometry.type==="Point"){const{x:At,y:Tt}=o.project(it.geometry.coordinates),Vt=o.getContainer().getBoundingClientRect();t("updateitempopup",{position:{x:Vt.x+At,y:Vt.y+Tt}})}else{const{clientX:At,clientY:Tt}=Te.originalEvent;t("updateitempopup",{position:{x:At,y:Tt}})}De&&(o.setFeatureState({id:it.id,source:"__directus"},{hovered:!0}),r.value=it,t("updateitempopup",{item:it.id}))}else De&&(r.value=it,t("updateitempopup",{item:null}))}function Oe(Te){if(r.value&&Te.originalEvent){const{x:it,y:Le}=Te.originalEvent;t("updateitempopup",{position:{x:it,y:Le}})}}function Ve(Te){var ht,At;const it=o.queryRenderedFeatures(Te.point,{layers:["__directus_clusters"]}),Le=(At=(ht=it[0])==null?void 0:ht.properties)==null?void 0:At.cluster_id;o.getSource("__directus").getClusterExpansionZoom(Le,(Tt,Vt)=>{Tt||o.flyTo({center:it[0].geometry.coordinates,zoom:Vt,speed:1.3})})}function Ye(Te){Te.type=="mousemove"?s.value=!0:s.value=!1}}});function mat(e,t,n,i,a,o){return G(),Me("div",{id:"map-container",ref:"container",class:wn({select:e.selectMode,hover:e.hoveredFeature||e.hoveredCluster})},null,2)}var vat=Ot(hat,[["render",mat],["__scopeId","data-v-6baed269"]]);const gat=$t({components:{MapComponent:vat},inheritAttrs:!1,props:{collection:{type:String,required:!0},selection:{type:Array,default:()=>[]},loading:{type:Boolean,required:!0},error:{type:Object,default:null},geojsonError:{type:String,default:null},geometryOptions:{type:Object,default:void 0},geojson:{type:Object,required:!0},featureId:{type:String,default:null},geojsonBounds:{type:Object,default:void 0},directusSource:{type:Object,required:!0},directusLayers:{type:Array,required:!0},handleClick:{type:Function,required:!0},handleSelect:{type:Function,required:!0},cameraOptions:{type:Object,default:void 0},resetPresetAndRefresh:{type:Function,required:!0},geojsonLoading:{type:Boolean,required:!0},itemCount:{type:Number,default:null},totalPages:{type:Number,required:!0},page:{type:Number,required:!0},toPage:{type:Function,required:!0},limit:{type:Number,required:!0},autoLocationFilter:{type:Boolean,default:void 0},fitDataBounds:{type:Function,required:!0},template:{type:String,default:()=>{}},itemPopup:{type:Object,default:()=>{}},updateItemPopup:{type:Function,required:!0}},emits:["update:cameraOptions","update:limit"],setup(e,{emit:t}){const{t:n,n:i}=yn(),a=qr(e,"cameraOptions",t),o=qr(e,"limit",t);return{t:n,n:i,cameraOptionsWritable:a,limitWritable:o}}}),yat={class:"layout-map"},_at={key:0,class:"footer"},bat={key:0,class:"pagination"},wat={class:"mapboxgl-ctrl-dropdown"};function xat(e,t,n,i,a,o){const r=Y("map-component"),s=Y("render-template"),l=Y("v-error"),f=Y("v-button"),p=Y("v-info"),h=Y("v-progress-circular"),v=Y("v-pagination"),_=Y("v-select");return G(),Me("div",yat,[F(r,{ref:"map",class:wn(["mapboxgl-map",{loading:e.loading,error:e.error||e.geojsonError||!e.geometryOptions}]),data:e.geojson,"feature-id":e.featureId,selection:e.selection,camera:e.cameraOptions,bounds:e.geojsonBounds,source:e.directusSource,layers:e.directusLayers,onFeatureclick:e.handleClick,onFeatureselect:e.handleSelect,onMoveend:t[0]||(t[0]=y=>e.cameraOptionsWritable=y),onFitdata:e.fitDataBounds,onUpdateitempopup:e.updateItemPopup},null,8,["class","data","feature-id","selection","camera","bounds","source","layers","onFeatureclick","onFeatureselect","onFitdata","onUpdateitempopup"]),F(cd,{name:"fade"},{default:R(()=>[e.itemPopup.item?(G(),Me("div",{key:0,class:"popup",style:Kr({top:e.itemPopup.position.y+"px",left:e.itemPopup.position.x+"px"})},[F(s,{template:e.template,item:e.itemPopup.item,collection:e.collection},null,8,["template","item","collection"])],4)):Je("",!0)]),_:1}),F(cd,{name:"fade"},{default:R(()=>[e.error?(G(),_e(p,{key:0,type:"danger",title:e.t("unexpected_error"),icon:"error",center:""},{append:R(()=>[F(l,{error:e.error},null,8,["error"]),F(f,{small:"",class:"reset-preset",onClick:e.resetPresetAndRefresh},{default:R(()=>[Ne(he(e.t("reset_page_preferences")),1)]),_:1},8,["onClick"])]),default:R(()=>[Ne(he(e.t("unexpected_error_copy"))+" ",1)]),_:1},8,["title"])):e.geojsonError?(G(),_e(p,{key:1,type:"warning",icon:"wrong_location",center:"",title:e.t("layouts.map.invalid_geometry")},{default:R(()=>[Ne(he(e.geojsonError),1)]),_:1},8,["title"])):e.loading||e.geojsonLoading?(G(),_e(h,{key:2,indeterminate:"","x-large":"",class:"center"})):Je("",!0)]),_:1}),e.loading||e.itemCount>0?(G(),Me("div",_at,[e.totalPages>1?(G(),Me("div",bat,[F(v,{length:e.totalPages,"total-visible":7,"show-first-last":"","model-value":e.page,"onUpdate:modelValue":e.toPage},null,8,["length","model-value","onUpdate:modelValue"])])):Je("",!0),ke("div",wat,[ke("span",null,he(e.t("limit")),1),F(_,{"model-value":e.limit,items:[{text:e.n(100),value:100},{text:e.n(1e3),value:1e3},{text:e.n(1e4),value:1e4},{text:e.n(1e5),value:1e5}],inline:"","onUpdate:modelValue":t[1]||(t[1]=y=>e.limitWritable=+y)},null,8,["model-value","items"])])])):Je("",!0)])}var kat=Ot(gat,[["render",xat],["__scopeId","data-v-8011e978"]]);const Sat=$t({inheritAttrs:!1,props:{collection:{type:String,required:!0},geometryFields:{type:Array,required:!0},geometryField:{type:String,default:void 0},geometryOptions:{type:Object,default:void 0},clusterData:{type:Boolean,default:void 0},displayTemplate:{type:String,default:void 0}},emits:["update:geometryField","update:autoLocationFilter","update:clusterData"],setup(e,{emit:t}){const{t:n}=yn(),i=Pc(),a=qr(e,"geometryField",t),o=qr(e,"clusterData",t),r=qr(e,"displayTemplate",t),s=fg(),{basemap:l}=wr(i);return{t:n,geometryFieldWritable:a,clusterDataWritable:o,displayTemplateWritable:r,basemaps:s,basemap:l}}}),Cat={class:"field"},Eat={class:"type-label"},Aat={key:0,class:"field"},Tat={key:1,class:"field"},Dat={class:"type-label"},Iat={class:"field"},Mat={class:"type-label"},Lat={class:"field"};function Pat(e,t,n,i,a,o){const r=Y("v-select"),s=Y("v-input"),l=Y("v-field-template"),f=Y("v-checkbox");return G(),Me(gn,null,[ke("div",Cat,[ke("div",Eat,he(e.t("layouts.map.basemap")),1),F(r,{modelValue:e.basemap,"onUpdate:modelValue":t[0]||(t[0]=p=>e.basemap=p),items:e.basemaps.map(p=>({text:p.name,value:p.name}))},null,8,["modelValue","items"])]),e.geometryFields.length==0?(G(),Me("div",Aat,[F(s,{type:"text",disabled:"",prefix:e.t("layouts.map.no_compatible_fields")},null,8,["prefix"])])):(G(),Me("div",Tat,[ke("div",Dat,he(e.t("layouts.map.field")),1),F(r,{modelValue:e.geometryFieldWritable,"onUpdate:modelValue":t[1]||(t[1]=p=>e.geometryFieldWritable=p),items:e.geometryFields.map(({name:p,field:h})=>({text:p,value:h}))},null,8,["modelValue","items"])])),ke("div",Iat,[ke("div",Mat,he(e.t("display_template")),1),F(l,{modelValue:e.displayTemplateWritable,"onUpdate:modelValue":t[2]||(t[2]=p=>e.displayTemplateWritable=p),collection:e.collection,placeholder:e.t("layouts.map.default_template")},null,8,["modelValue","collection","placeholder"])]),ke("div",Lat,[F(f,{modelValue:e.clusterDataWritable,"onUpdate:modelValue":t[3]||(t[3]=p=>e.clusterDataWritable=p),label:e.t("layouts.map.cluster"),disabled:e.geometryOptions&&e.geometryOptions.geometryType!=="Point"},null,8,["modelValue","label","disabled"])])],64)}var Fat=Ot(Sat,[["render",Pat]]);function Rat(){return[{id:"__directus_polygons_outline",type:"line",source:"__directus",filter:["all",["!has","point_count"],["==","$type","Polygon"]],paint:{"line-color":["case",["boolean",["feature-state","selected"],!1],$a("--secondary"),["boolean",["feature-state","hovered"],!1],$a("--secondary"),$a("--primary")],"line-width":2},layout:{"line-join":"round"}},{id:"__directus_polygons",type:"fill",source:"__directus",filter:["all",["!has","point_count"],["==","$type","Polygon"]],paint:{"fill-color":["case",["boolean",["feature-state","selected"],!1],$a("--secondary"),["boolean",["feature-state","hovered"],!1],$a("--secondary"),$a("--primary")],"fill-opacity":.15}},{id:"__directus_lines",type:"line",source:"__directus",filter:["all",["!has","point_count"],["==","$type","LineString"]],paint:{"line-color":["case",["boolean",["feature-state","selected"],!1],$a("--secondary"),["boolean",["feature-state","hovered"],!1],$a("--secondary"),$a("--primary")],"line-width":2}},{id:"__directus_points_shadow",type:"circle",source:"__directus",filter:["all",["!has","point_count"],["==","$type","Point"]],layout:{},paint:{"circle-radius":10,"circle-blur":1,"circle-opacity":.9,"circle-color":$a("--black")}},{id:"__directus_points",type:"circle",source:"__directus",filter:["all",["!has","point_count"],["==","$type","Point"]],layout:{},paint:{"circle-radius":6,"circle-color":["case",["boolean",["feature-state","selected"],!1],$a("--secondary"),["boolean",["feature-state","hovered"],!1],$a("--secondary"),$a("--primary")],"circle-stroke-color":$a("--white"),"circle-stroke-width":2}},{id:"__directus_clusters",type:"circle",source:"__directus",filter:["has","point_count"],paint:{"circle-radius":["step",["get","point_count"],20,100,30,750,40],"circle-color":["step",["get","point_count"],"#7fe3ca",100,"#fde2a7",750,"#f0a7b3"],"circle-opacity":.7}},{id:"__directus_cluster_count",type:"symbol",source:"__directus",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["Open Sans Semibold"],"text-size":["step",["get","point_count"],15,100,17,750,19]},paint:{"text-opacity":.85}}]}var Oat=p4({id:"map",name:"$t:layouts.map.map",icon:"map",smallHeader:!0,component:kat,slots:{options:Fat,sidebar:()=>{},actions:pat},setup(e,{emit:t}){const n=qa(),i=qr(e,"selection",t),a=qr(e,"layoutOptions",t),o=qr(e,"layoutQuery",t),{collection:r,filter:s,filterUser:l,search:f}=wr(e),{info:p,primaryKeyField:h,fields:v}=Ns(r),_=Al(o,"page",1),y=Al(o,"limit",1e3),k=Ee(()=>{var wt;return h.value?[(wt=h.value)==null?void 0:wt.field]:[]}),w=Al(o,"sort",k),D=Al(a,"displayTemplate",void 0),A=Al(a,"cameraOptions",void 0),L=Al(a,"clusterData",!1),T=Al(a,"geometryField",void 0),z=Ee(()=>v.value.find(wt=>wt.field==T.value)),B=Ee(()=>v.value.filter(({type:wt,meta:nn})=>wt.startsWith("geometry")||(nn==null?void 0:nn.interface)=="map"));Zn(B,wt=>{!T.value&&wt.length>0&&(T.value=wt[0].field)},{immediate:!0});const W=Ee(()=>{var Pn,ri,qi;const wt=z.value;if(!wt)return;const nn=wt.field,Ln=nL(wt.type),Gn=(qi=wt.type.split(".")[1])!=null?qi:(ri=(Pn=wt.meta)==null?void 0:Pn.options)==null?void 0:ri.geometryType;if(!!Ln)return{geometryField:nn,geometryFormat:Ln,geometryType:Gn}}),N=Ee(()=>{var wt;return((wt=W.value)==null?void 0:wt.geometryFormat)==="native"}),K=Ee(()=>{var wt,nn,Ln;return D.value||((nn=(wt=p.value)==null?void 0:wt.meta)==null?void 0:nn.display_template)||`{{ ${(Ln=h.value)==null?void 0:Ln.field} }}`}),re=Ee(()=>{var wt;return[T.value,...hc(K.value)].concat((wt=h.value)==null?void 0:wt.field).filter(nn=>!!nn)}),se=Ee(()=>{if(!N.value||!A.value||!T.value)return null;const wt=A.value.bbox,nn=[[wt[0],wt[1]],[wt[2],wt[1]],[wt[2],wt[3]],[wt[0],wt[3]],[wt[0],wt[1]]];return{[T.value]:{_intersects_bbox:{type:"Polygon",coordinates:[nn]}}}}),ce=Ee(()=>se.value?s.value?{_and:[s.value,se.value]}:se.value:s.value),de=ze(!1);function ge(){var wt;de.value=!0,!N.value&&(wt=Le.value)!=null&&wt.features.length&&(De.value=lt.exports.cloneDeep(Le.value.bbox))}Zn(A,()=>{de.value=!1});const{items:Ce,loading:Oe,error:Ve,totalPages:Ye,itemCount:ot,totalCount:Te,getItems:it}=h4(r,{sort:w,limit:y,page:_,search:f,filter:ce,fields:re}),Le=ze({type:"FeatureCollection",features:[]}),De=ze(),ht=ze(null),At=ze(!1);Zn([f,r,y,w],Tt),Zn(Ce,Vt),Zn(T,()=>de.value=!0);function Tt(){de.value=!0,At.value=!1}function Vt(){if(W.value)try{Le.value={type:"FeatureCollection",features:[]},At.value=!0,ht.value=null,Le.value=bHe(Ce.value,W.value),At.value=!1,(!A.value||de.value)&&(De.value=Le.value.bbox)}catch(wt){At.value=!1,ht.value=wt,Le.value={type:"FeatureCollection",features:[]}}else Le.value={type:"FeatureCollection",features:[]}}const on=ze({type:"geojson",data:{type:"FeatureCollection",features:[]}});Zn(L,_t,{immediate:!0});function _t(){on.value=lt.exports.merge({},on.value,{cluster:L.value})}function Ut(wt){i.value=Array.from(new Set(wt))}function Nt(wt){i.value=Array.from(new Set(i.value.concat(wt)))}function Qt({ids:wt,replace:nn}){nn?Ut(wt):Nt(wt)}function Jt({id:wt,replace:nn}){e.selectMode?Qt({ids:[wt],replace:nn}):n.push(`/content/${r.value}/${wt}`)}const qt=Ee(()=>{var wt,nn;return e.readonly?null:(nn=(wt=h.value)==null?void 0:wt.field)!=null?nn:null}),Dt=Ee(()=>{const wt=Boolean((ot.value||0)<(Te.value||0)&&l.value);return xg(ot.value||0,_.value,y.value,wt)}),nt=ze({item:null});function Pe(wt){var nn,Ln;if("item"in wt){const Gn=(nn=h.value)==null?void 0:nn.field;wt.item=Gn&&(Ln=Ce.value.find(Pn=>Pn[Gn]===wt.item))!=null?Ln:null}nt.value=lt.exports.merge({},nt.value,wt)}return{collection:r,geojson:Le,directusSource:on,directusLayers:Rat(),featureId:qt,geojsonBounds:De,geojsonLoading:At,geojsonError:ht,geometryOptions:W,handleClick:Jt,handleSelect:Qt,geometryField:T,displayTemplate:D,isGeometryFieldNative:N,cameraOptions:A,clusterData:L,items:Ce,loading:Oe,error:Ve,totalPages:Ye,page:_,toPage:Bt,itemCount:ot,fieldsInCollection:v,limit:y,filter:s,primaryKeyField:h,sort:w,info:p,showingCount:Dt,refresh:mt,resetPresetAndRefresh:He,geometryFields:B,fitDataBounds:ge,template:K,itemPopup:nt,updateItemPopup:Pe,download:Pt};async function He(){var wt;await((wt=e==null?void 0:e.resetPreset)==null?void 0:wt.call(e)),mt()}function mt(){it()}function Pt(){!r.value||r_(r.value,re.value,Ce.value)}function Bt(wt){_.value=wt}}}),$at=Object.freeze(Object.defineProperty({__proto__:null,default:Oat},Symbol.toStringTag,{value:"Module"}));const zat=$t({inheritAttrs:!1,props:{itemCount:{type:Number,default:null},showingCount:{type:String,required:!0}}}),jat={key:0,class:"item-count"};function Vat(e,t,n,i,a,o){return G(),_e(cd,{name:"fade"},{default:R(()=>[e.itemCount?(G(),Me("span",jat,he(e.showingCount),1)):Je("",!0)]),_:1})}var Nat=Ot(zat,[["render",Vat],["__scopeId","data-v-34941803"]]);const Bat={class:"field"},Uat={class:"type-label"},Hat={inheritAttrs:!1},qat=$t({...Hat,name:"options",props:{fields:null,activeFields:null,tableSpacing:null},emits:["update:tableSpacing","update:activeFields","update:fields"],setup(e,{emit:t}){const n=e,{t:i}=yn(),a=qr(n,"tableSpacing",t);return(o,r)=>{const s=Y("v-select");return G(),Me("div",Bat,[ke("div",Uat,he(V(i)("layouts.tabular.spacing")),1),F(s,{modelValue:V(a),"onUpdate:modelValue":r[0]||(r[0]=l=>zr(a)?a.value=l:null),items:[{text:V(i)("layouts.tabular.compact"),value:"compact"},{text:V(i)("layouts.tabular.cozy"),value:"cozy"},{text:V(i)("layouts.tabular.comfortable"),value:"comfortable"}]},null,8,["modelValue","items"])])}}});var Wat=Ot(qat,[["__scopeId","data-v-7553a5af"]]);const Gat={class:"layout-tabular"},Yat={class:"footer"},Xat={class:"pagination"},Kat={key:0,class:"per-page"},Zat={inheritAttrs:!1},Jat=$t({...Zat,name:"tabular",props:{collection:null,selection:{default:()=>[]},readonly:{type:Boolean},tableHeaders:null,showSelect:{default:"none"},items:null,loading:{type:Boolean},error:{default:null},totalPages:null,tableSort:{default:void 0},onRowClick:null,tableRowHeight:null,page:null,toPage:null,itemCount:{default:void 0},fields:null,limit:null,primaryKeyField:{default:void 0},info:{default:void 0},sortField:{default:void 0},changeManualSort:null,resetPresetAndRefresh:null,selectAll:null,filterUser:{default:void 0},search:{default:void 0},onSortChange:{type:Function,default:()=>{}},onAlignChange:{type:Function,default:()=>{}}},emits:["update:selection","update:tableHeaders","update:limit","update:fields"],setup(e,{emit:t}){const n=e,{t:i}=yn(),a=qr(n,"selection",t),o=qr(n,"tableHeaders",t),r=qr(n,"limit",t),s=Il("main-element"),l=ze();Zn(()=>n.page,()=>{var k;return(k=s==null?void 0:s.value)==null?void 0:k.scrollTo({top:0,behavior:"smooth"})}),So("meta+a",()=>{n.selectAll()},l);const f=qr(n,"fields",t),p=Ee(()=>dd(f.value,n.collection)),{aliasFields:h}=C4(p);function v(k,w){if(h.value[w])return Hh(k,h.value[w].fullAlias);const A=Object.values(h.value).filter(T=>T.fieldName===w).map(({fieldAlias:T})=>k[T]);if(A.every(T=>Array.isArray(T)))return A.reduce((T,z)=>{for(let B=0;B<z.length;B++)T[B]=lt.exports.merge(T[B],z[B]);return T},[]);const L=A.reduce((T,z)=>lt.exports.merge(T,z),{});return lt.exports.isEmpty(L)?null:L}function _(k){f.value=[...f.value,k]}function y(k){f.value=f.value.filter(w=>w!==k)}return(k,w)=>{var Ve;const D=Y("render-display"),A=Y("v-icon"),L=Y("v-list-item-icon"),T=Y("v-list-item-content"),z=Y("v-list-item"),B=Y("v-divider"),W=Y("v-list"),N=Y("v-field-list"),K=Y("v-menu"),re=Y("v-pagination"),se=Y("v-select"),ce=Y("v-table"),de=Y("v-error"),ge=Y("v-button"),Ce=Y("v-info"),Oe=pi("tooltip");return G(),Me("div",Gat,[e.loading||e.itemCount&&e.itemCount>0?(G(),_e(ce,{key:0,ref_key:"table",ref:l,modelValue:V(a),"onUpdate:modelValue":w[1]||(w[1]=Ye=>zr(a)?a.value=Ye:null),headers:V(o),"onUpdate:headers":w[2]||(w[2]=Ye=>zr(o)?o.value=Ye:null),class:"table","fixed-header":"","show-select":e.showSelect?e.showSelect:e.selection!==void 0,"show-resize":"","must-sort":"",sort:e.tableSort,items:e.items,loading:e.loading,"row-height":e.tableRowHeight,"server-sort":"","item-key":(Ve=e.primaryKeyField)==null?void 0:Ve.field,"show-manual-sort":e.sortField!==null,"manual-sort-key":e.sortField,"allow-header-reorder":"","selection-use-keys":"","onClick:row":e.onRowClick,"onUpdate:sort":e.onSortChange,onManualSort:e.changeManualSort},La({"header-context-menu":R(({header:Ye})=>[F(W,null,{default:R(()=>{var ot,Te,it,Le;return[F(z,{disabled:!Ye.sortable,active:((ot=e.tableSort)==null?void 0:ot.by)===Ye.value&&((Te=e.tableSort)==null?void 0:Te.desc)===!1,clickable:"",onClick:De=>{var ht;return(ht=e.onSortChange)==null?void 0:ht.call(e,{by:Ye.value,desc:!1})}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"sort",class:"flip"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("sort_asc")),1)]),_:1})]),_:2},1032,["disabled","active","onClick"]),F(z,{active:((it=e.tableSort)==null?void 0:it.by)===Ye.value&&((Le=e.tableSort)==null?void 0:Le.desc)===!0,disabled:!Ye.sortable,clickable:"",onClick:De=>{var ht;return(ht=e.onSortChange)==null?void 0:ht.call(e,{by:Ye.value,desc:!0})}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"sort"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("sort_desc")),1)]),_:1})]),_:2},1032,["active","disabled","onClick"]),F(B),F(z,{active:Ye.align==="left",clickable:"",onClick:De=>{var ht;return(ht=e.onAlignChange)==null?void 0:ht.call(e,Ye.value,"left")}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"format_align_left"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("left_align")),1)]),_:1})]),_:2},1032,["active","onClick"]),F(z,{active:Ye.align==="center",clickable:"",onClick:De=>{var ht;return(ht=e.onAlignChange)==null?void 0:ht.call(e,Ye.value,"center")}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"format_align_center"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("center_align")),1)]),_:1})]),_:2},1032,["active","onClick"]),F(z,{active:Ye.align==="right",clickable:"",onClick:De=>{var ht;return(ht=e.onAlignChange)==null?void 0:ht.call(e,Ye.value,"right")}},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"format_align_right"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("right_align")),1)]),_:1})]),_:2},1032,["active","onClick"]),F(B),F(z,{active:Ye.align==="right",clickable:"",onClick:De=>y(Ye.value)},{default:R(()=>[F(L,null,{default:R(()=>[F(A,{name:"remove"})]),_:1}),F(T,null,{default:R(()=>[Ne(he(V(i)("hide_field")),1)]),_:1})]),_:2},1032,["active","onClick"])]}),_:2},1024)]),"header-append":R(()=>[F(K,{placement:"bottom-end","show-arrow":"","close-on-content-click":!1},{activator:R(({toggle:Ye,active:ot})=>[dn(F(A,{class:wn(["add-field",{active:ot}]),name:"add",clickable:"",onClick:Ye},null,8,["class","onClick"]),[[Oe,V(i)("add_field")]])]),default:R(()=>[F(N,{collection:e.collection,"disabled-fields":e.fields,onSelectField:_},null,8,["collection","disabled-fields"])]),_:1})]),footer:R(()=>[ke("div",Yat,[ke("div",Xat,[e.totalPages>1?(G(),_e(re,{key:0,length:e.totalPages,"total-visible":7,"show-first-last":"","model-value":e.page,"onUpdate:modelValue":e.toPage},null,8,["length","model-value","onUpdate:modelValue"])):Je("",!0)]),e.loading===!1&&e.items.length>=25?(G(),Me("div",Kat,[ke("span",null,he(V(i)("per_page")),1),F(se,{"model-value":`${e.limit}`,items:["25","50","100","250","500"," 1000"],inline:"","onUpdate:modelValue":w[0]||(w[0]=Ye=>r.value=+Ye)},null,8,["model-value"])])):Je("",!0)])]),_:2},[vi(e.tableHeaders,Ye=>({name:`item.${Ye.value}`,fn:R(({item:ot})=>[F(D,{value:!V(h)||ot[Ye.value]!==void 0?V(Hh)(ot,Ye.value):v(ot,Ye.value),display:Ye.field.display,options:Ye.field.displayOptions,interface:Ye.field.interface,"interface-options":Ye.field.interfaceOptions,type:Ye.field.type,collection:Ye.field.collection,field:Ye.value},null,8,["value","display","options","interface","interface-options","type","collection","field"])])}))]),1032,["modelValue","headers","show-select","sort","items","loading","row-height","item-key","show-manual-sort","manual-sort-key","onClick:row","onUpdate:sort","onManualSort"])):e.error?(G(),_e(Ce,{key:1,type:"danger",title:V(i)("unexpected_error"),icon:"error",center:""},{append:R(()=>[F(de,{error:e.error},null,8,["error"]),F(ge,{small:"",class:"reset-preset",onClick:e.resetPresetAndRefresh},{default:R(()=>[Ne(he(V(i)("reset_page_preferences")),1)]),_:1},8,["onClick"])]),default:R(()=>[Ne(he(V(i)("unexpected_error_copy"))+" ",1)]),_:1},8,["title"])):e.itemCount===0&&(e.filterUser||e.search)?di(k.$slots,"no-results",{key:2},void 0,!0):e.itemCount===0?di(k.$slots,"no-items",{key:3},void 0,!0):Je("",!0)])}}});var Qat=Ot(Jat,[["__scopeId","data-v-7b6d5623"]]),eot=p4({id:"tabular",name:"$t:layouts.tabular.tabular",icon:"reorder",component:Qat,slots:{options:Wat,sidebar:()=>{},actions:Nat},setup(e,{emit:t}){const n=qa(),i=nr(),a=qr(e,"selection",t),o=qr(e,"layoutOptions",t),r=qr(e,"layoutQuery",t),{collection:s,filter:l,filterUser:f,search:p}=wr(e),{info:h,primaryKeyField:v,fields:_,sortField:y}=Ns(s),{sort:k,limit:w,page:D,fields:A,fieldsWithRelational:L}=_t(),{aliasFields:T,aliasQuery:z}=C4(L),B=Ee(()=>T.value?L.value.map(Nt=>{var Qt;return(Qt=T.value)!=null&&Qt[Nt]?T.value[Nt].fullAlias:Nt}):L.value),{items:W,loading:N,error:K,totalPages:re,itemCount:se,totalCount:ce,changeManualSort:de,getItems:ge}=h4(s,{sort:k,limit:w,page:D,fields:B,alias:z,filter:l,search:p}),{tableSort:Ce,tableHeaders:Oe,tableRowHeight:Ve,onRowClick:Ye,onSortChange:ot,onAlignChange:Te,activeFields:it,tableSpacing:Le}=Ut(),De=Ee(()=>{const Nt=Boolean((se.value||0)<(ce.value||0)&&f.value);return xg(se.value||0,D.value,w.value,Nt)});return{tableHeaders:Oe,items:W,loading:N,error:K,totalPages:re,tableSort:Ce,onRowClick:Ye,onSortChange:ot,onAlignChange:Te,tableRowHeight:Ve,page:D,toPage:Vt,itemCount:se,totalCount:ce,fieldsInCollection:_,fields:A,limit:w,activeFields:it,tableSpacing:Le,primaryKeyField:v,info:h,showingCount:De,sortField:y,changeManualSort:de,hideDragImage:fp,refresh:At,resetPresetAndRefresh:ht,selectAll:on,filter:l,search:p,download:Tt};async function ht(){var Nt;await((Nt=e==null?void 0:e.resetPreset)==null?void 0:Nt.call(e)),At()}function At(){ge()}function Tt(){!s.value||r_(s.value,A.value,W.value)}function Vt(Nt){D.value=Nt}function on(){if(!v.value)return;const Nt=v.value;a.value=lt.exports.clone(W.value).map(Qt=>Qt[Nt.field])}function _t(){const Nt=Al(r,"page",1),Qt=Al(r,"limit",25),Jt=Ee(()=>{var He;return v.value?[(He=v.value)==null?void 0:He.field]:[]}),qt=Al(r,"sort",Jt),Dt=Ee(()=>_.value.filter(He=>{var mt;return!((mt=He.meta)!=null&&mt.hidden)}).slice(0,4).map(({field:He})=>He).sort()),nt=Al(r,"fields",Dt),Pe=Ee(()=>e.collection?dd(nt.value,e.collection):[]);return{sort:qt,limit:Qt,page:Nt,fields:nt,fieldsWithRelational:Pe}}function Ut(){const Nt=Ee(()=>{var wt,nn;return(wt=k.value)!=null&&wt[0]?(nn=k.value)!=null&&nn[0].startsWith("-")?{by:k.value[0].substring(1),desc:!0}:{by:k.value[0],desc:!1}:null}),Qt=ze({});Zn(()=>o.value,()=>{Qt.value={}});const Jt=lt.exports.debounce(()=>{o.value=Object.assign({},o.value,{widths:Qt.value})},350),qt=Ee({get(){return s.value?A.value.map(wt=>({...i.getField(s.value,wt),key:wt})).filter(wt=>{var nn,Ln;return wt&&((Ln=(nn=wt.meta)==null?void 0:nn.special)==null?void 0:Ln.includes("no-data"))!==!0}):[]},set(wt){A.value=wt.map(nn=>nn.field)}}),Dt=Ee({get(){return qt.value.map(wt=>{var Gn,Pn,ri,qi,vn,en,Sn,Kn;let nn=null;const Ln=wt.key.split(".");return Ln.length>1&&(nn=Ln.map((On,ei)=>{var Ai;const Mi=Ln.slice(0,ei),gi=i.getField(s.value,[...Mi,On].join("."));return(Ai=gi==null?void 0:gi.name)!=null?Ai:On}).join(" -> ")),{text:wt.name,value:wt.key,description:nn,width:Qt.value[wt.key]||((Pn=(Gn=o.value)==null?void 0:Gn.widths)==null?void 0:Pn[wt.key])||null,align:((qi=(ri=o.value)==null?void 0:ri.align)==null?void 0:qi[wt.key])||"left",field:{display:((vn=wt.meta)==null?void 0:vn.display)||_I(wt.type),displayOptions:(en=wt.meta)==null?void 0:en.display_options,interface:(Sn=wt.meta)==null?void 0:Sn.interface,interfaceOptions:(Kn=wt.meta)==null?void 0:Kn.options,type:wt.type,field:wt.field,collection:wt.collection},sortable:["json","alias","presentation","translations"].includes(wt.type)===!1}})},set(wt){const nn={};wt.forEach(Ln=>{Ln.width&&(nn[Ln.value]=Ln.width)}),Qt.value=nn,Jt(),A.value=wt.map(Ln=>Ln.value)}}),nt=Al(o,"spacing","cozy"),Pe=Ee(()=>{switch(nt.value){case"compact":return 32;case"cozy":default:return 48;case"comfortable":return 64}});return{tableSort:Nt,tableHeaders:Dt,tableSpacing:nt,tableRowHeight:Pe,onRowClick:He,onSortChange:mt,onAlignChange:Pt,activeFields:qt,getFieldDisplay:Bt};function He({item:wt,event:nn}){var Gn,Pn;if(e.readonly===!0||!v.value)return;const Ln=wt[v.value.field];if(e.selectMode||((Gn=a.value)==null?void 0:Gn.length)>0)((Pn=a.value)==null?void 0:Pn.includes(Ln))===!1?a.value=a.value.concat(Ln):a.value=a.value.filter(ri=>ri!==Ln);else{const ri=n.resolve(`/content/${s.value}/${encodeURIComponent(Ln)}`);nn.ctrlKey||nn.metaKey?window.open(ri.href,"_blank"):n.push(ri)}}function mt(wt){let nn=wt.by;if(!wt.by){k.value=[];return}wt.desc===!0&&(nn="-"+nn),k.value=[nn]}function Pt(wt,nn){var Ln,Gn;o.value=Object.assign({},o.value,{align:{...(Gn=(Ln=o.value)==null?void 0:Ln.align)!=null?Gn:{},[wt]:nn}})}function Bt(wt){var Ln;const nn=_.value.find(Gn=>Gn.field===wt);return(Ln=nn==null?void 0:nn.meta)!=null&&Ln.display?{display:nn.meta.display,options:nn.meta.display_options}:null}}}}),tot=Object.freeze(Object.defineProperty({__proto__:null,default:eot},Symbol.toStringTag,{value:"Module"}));const{layoutsRaw:HC}=nm();async function not(e){const n=Object.values({"./calendar/index.ts":brt,"./cards/index.ts":cat,"./map/index.ts":$at,"./tabular/index.ts":tot}).map(i=>i.default);try{const i=await ct(()=>import(`${As()}extensions/layouts/index.js`),[]);n.push(...i.default)}catch(i){console.warn("Couldn't load custom layouts"),console.warn(i)}HC.value=n,HC.value.forEach(i=>{e.component(`layout-${i.id}`,i.component),e.component(`layout-options-${i.id}`,i.slots.options),e.component(`layout-sidebar-${i.id}`,i.slots.sidebar),e.component(`layout-actions-${i.id}`,i.slots.actions)})}var iot="assets/logo-light.7a327cdd.svg";const rot=e=>(ya("data-v-ead9afd0"),e=e(),_a(),e),aot={class:"title-box"},oot=rot(()=>ke("img",{src:iot,alt:"Directus",class:"directus-logo"},null,-1)),sot=[oot],lot={class:"title"},cot={class:"type-title"},uot={class:"subtitle"},dot={class:"content"},fot={class:"notice"},pot={key:0,viewBox:"0 0 1152 1152",preserveAspectRatio:"none",fill:"none",class:"fallback"},hot=["fill"],mot=["fill"],vot=["fill"],got=["fill"],yot=["fill"],_ot=["fill"],bot={class:"note-container"},wot={key:0,class:"note"},xot=$t({name:"public-view",props:{wide:{type:Boolean,default:!1}},setup(e){const{t}=yn(),n=Ud(),{info:i}=Dl(n),a=Ee(()=>{var D,A;const p=((A=(D=i.value)==null?void 0:D.project)==null?void 0:A.project_color)||"var(--primary)",h=p.startsWith("var(--")?$a(p.substring(4,p.length-1)):p,v=uI()==="dark",_=ad(h),y=_.hsl(),k=ad({h:y.color[0]+(v?-69.1:69.1),s:y.color[1]+0,l:y.color[2]+(v?-50:16.7)}),w=[];for(let L=1;L<6;L++){const T=ad(_).mix(k,L/10);w.push(T.hex().toString())}return{primary:_.hex().toString(),secondary:k.hex().toString(),shades:w}}),o=Ee(()=>{var p,h;return!!((h=(p=i.value)==null?void 0:p.project)!=null&&h.project_color)}),r=Ee(()=>{var p,h;return!!((h=(p=i.value)==null?void 0:p.project)!=null&&h.public_background)}),s=Ee(()=>{var h;return r.value?{background:`url(${`/assets/${(h=i.value.project)==null?void 0:h.public_background}`})`,backgroundSize:"cover",backgroundPosition:"center center"}:null}),l=Ee(()=>{var p,h,v;return(h=(p=i.value)==null?void 0:p.project)!=null&&h.public_foreground?"/assets/"+((v=i.value.project)==null?void 0:v.public_foreground):null}),f=Ee(()=>{var p,h,v;return(h=(p=i.value)==null?void 0:p.project)!=null&&h.project_logo?"/assets/"+((v=i.value.project)==null?void 0:v.project_logo):null});return(p,h)=>{var y,k,w,D,A,L,T,z,B,W,N,K,re,se;const v=Y("v-image"),_=pi("md");return G(),Me("div",{class:wn(["public-view",{branded:V(o)}])},[ke("div",{class:wn(["container",{wide:e.wide}])},[ke("div",aot,[(k=(y=V(i))==null?void 0:y.project)!=null&&k.project_logo?(G(),Me("div",{key:0,class:"logo",style:Kr({backgroundColor:(w=V(i))==null?void 0:w.project.project_color})},[F(v,{src:V(f),alt:((D=V(i))==null?void 0:D.project.project_name)||"Logo"},null,8,["src","alt"])],4)):(G(),Me("div",{key:1,class:"logo",style:Kr({backgroundColor:(L=(A=V(i))==null?void 0:A.project)==null?void 0:L.project_color})},sot,4)),ke("div",lot,[ke("h1",cot,he((z=(T=V(i))==null?void 0:T.project)==null?void 0:z.project_name),1),ke("p",uot,he((N=(W=(B=V(i))==null?void 0:B.project)==null?void 0:W.project_descriptor)!=null?N:V(t)("application")),1)])]),ke("div",dot,[di(p.$slots,"default")]),ke("div",fot,[di(p.$slots,"notice")])],2),ke("div",{class:"art",style:Kr(V(s))},[V(r)?Je("",!0):(G(),Me("svg",pot,[ke("rect",{width:"1152",height:"1152",fill:V(a).primary},null,8,hot),ke("path",{d:"M1152 409.138C1148.61 406.92 1146.7 405.765 1146.7 405.765L6.87761e-07 958.424L-7.3277e-07 1152L506.681 1152C558.985 1126.93 614.88 1101.25 672.113 1074.95C839.401 998.085 1018.12 915.967 1152 828.591L1152 409.138Z",fill:V(a).shades[0]},null,8,mot),ke("path",{d:"M1152 159.866C1130.19 146.319 1114.45 138.98 1114.45 138.98L-6.09246e-07 759.421L-3.66364e-07 1152L88.7501 1152C131.867 1108.8 194.289 1054.33 281.936 993.927C371.847 931.97 507.23 864.306 651.138 792.382C828.097 703.939 1017.95 609.052 1152 510.407L1152 159.866Z",fill:V(a).shades[1]},null,8,vot),ke("path",{d:"M772.894 -0.000472457L-4.49523e-07 457.782L-5.22658e-07 953.071C22.142 919.082 94.6279 821.1 262.854 696.786C351.427 631.334 485.624 558.338 628.272 480.744C816.642 378.28 1019.75 267.8 1152 156.087L1152 -0.000477328L772.894 -0.000472457Z",fill:V(a).shades[2]},null,8,got),ke("path",{d:"M286.365 -0.000483108L-1.73191e-07 176.373L2.43255e-06 662.21C33.488 615.87 106.028 529.959 243.326 424.909C331.205 357.671 464.771 281.956 606.749 201.473C720.914 136.756 840.519 68.9554 946.182 -0.000479285L286.365 -0.000483108Z",fill:V(a).shades[3]},null,8,yot),ke("path",{d:"M0.00195277 363.139C37.1564 313.499 107.096 233.66 228.181 137.623C281.94 94.9838 353.09 48.7594 432.872 9.43526e-06L0.00195595 0L0.00195277 363.139Z",fill:V(a).shades[4]},null,8,_ot)])),F(cd,{name:"scale"},{default:R(()=>{var ce,de;return[V(l)?(G(),_e(v,{key:0,class:"foreground",src:V(l),alt:(de=(ce=V(i))==null?void 0:ce.project)==null?void 0:de.project_name},null,8,["src","alt"])):Je("",!0)]}),_:1}),ke("div",bot,[(re=(K=V(i))==null?void 0:K.project)!=null&&re.public_note?dn((G(),Me("div",wot,null,512)),[[_,(se=V(i))==null?void 0:se.project.public_note]]):Je("",!0)])],4)],2)}}});var kot=Ot(xot,[["__scopeId","data-v-ead9afd0"]]),Sot="assets/logo.eba1b355.svg";const Cot=$t({name:"SharedView",props:{title:{type:String,default:null},inline:{type:Boolean,default:!1}},setup(){const e=Ud(),{info:t}=Dl(e),{t:n}=yn(),i=Ee(()=>{var a,o,r;return(o=(a=e.info)==null?void 0:a.project)!=null&&o.project_logo?As()+`assets/${(r=e.info.project)==null?void 0:r.project_logo}`:null});return{serverInfo:t,t:n,logoURL:i}}}),Eot=e=>(ya("data-v-41c88981"),e=e(),_a(),e),Aot={class:"inline-container"},Tot={class:"container"},Dot={class:"title-box"},Iot=["src","alt"],Mot=Eot(()=>ke("img",{src:Sot,alt:"Directus",class:"directus-logo"},null,-1)),Lot=[Mot],Pot={class:"title"},Fot={class:"subtitle"},Rot={class:"type-title"},Oot={class:"container"},$ot={class:"content"};function zot(e,t,n,i,a,o){var r,s,l,f,p;return G(),Me("div",{class:wn(["shared",{inline:e.inline}])},[ke("div",Aot,[ke("header",null,[ke("div",Tot,[ke("div",Dot,[(r=e.serverInfo)!=null&&r.project.project_logo?(G(),Me("div",{key:0,class:"logo",style:Kr({backgroundColor:(s=e.serverInfo)==null?void 0:s.project.project_color})},[ke("img",{src:e.logoURL,alt:((l=e.serverInfo)==null?void 0:l.project.project_name)||"Logo"},null,8,Iot)],4)):(G(),Me("div",{key:1,class:"logo",style:Kr({backgroundColor:(f=e.serverInfo)==null?void 0:f.project.project_color})},Lot,4)),ke("div",Pot,[ke("p",Fot,he((p=e.serverInfo)==null?void 0:p.project.project_name),1),di(e.$slots,"title",{},()=>{var h;return[ke("h1",Rot,he((h=e.title)!=null?h:e.t("share_access_page")),1)]},!0)])])])]),ke("div",Oot,[ke("div",$ot,[di(e.$slots,"default",{},void 0,!0)])])])],2)}var jot=Ot(Cot,[["render",zot],["__scopeId","data-v-41c88981"]]);const Vot=XC(()=>ct(()=>import("./index.0b247af5.js"),["assets/index.0b247af5.js","assets/index.29c0adc9.css","assets/vue.runtime.esm-bundler.61bedc6f.js","assets/runtime-core.esm-bundler.32cac88a.js","assets/use-sync.3af8e920.js","assets/pinia.ee5b7a45.entry.js","assets/vue-i18n.ab96dd58.entry.js","assets/vue-router.4ad81e1d.entry.js"]));function Not(e){e.component("PublicView",kot),e.component("PrivateView",Vot),e.component("SharedView",jot)}var Bot=Vd({id:"condition",icon:"rule",name:"$t:operations.condition.name",description:"$t:operations.condition.description",overview:({filter:e})=>[{label:"$t:condition_rules",text:e}],options:()=>[{field:"filter",name:"$t:condition_rules",type:"json",meta:{width:"full",interface:"input-code",options:{language:"json",placeholder:JSON.stringify({$trigger:{category:{_eq:"Example"}}},null,2),template:JSON.stringify({$trigger:{category:{_eq:"Example"}}},null,2)}}}]}),Uot=Object.freeze(Object.defineProperty({__proto__:null,default:Bot},Symbol.toStringTag,{value:"Module"})),Hot=Vd({id:"exec",icon:"code",name:"$t:operations.exec.name",description:"$t:operations.exec.description",overview:()=>[],options:()=>{var i,a;const{t:e}=mr.global,t=Ud(),n=[{field:"code",name:"$t:code",type:"string",meta:{width:"full",interface:"input-code",options:{language:"javascript"}},schema:{default_value:`module.exports = async function(data) {
|
|
3403
3403
|
// Do something...
|
|
3404
3404
|
return {};
|
|
3405
3405
|
}`}}];return((a=(i=t.info)==null?void 0:i.flows)==null?void 0:a.execAllowedModules)&&t.info.flows.execAllowedModules.length>0?[...n,{field:"notice",name:"$t:modules",type:"alias",meta:{width:"full",interface:"presentation-notice",options:{text:e("operations.exec.modules")+`<br>${t.info.flows.execAllowedModules.map(o=>`\`${o}\``).join(", ")}`}}}]:n}}),qot=Object.freeze(Object.defineProperty({__proto__:null,default:Hot},Symbol.toStringTag,{value:"Module"})),Wot=Vd({id:"item-create",icon:"add",name:"$t:operations.item-create.name",description:"$t:operations.item-create.description",overview:({collection:e,payload:t})=>[{label:"$t:collection",text:e},{label:"$t:operations.item-create.payload",text:t}],options:[{field:"collection",name:"$t:collection",type:"string",meta:{width:"half",interface:"system-collection"}},{field:"permissions",name:"$t:permissions",type:"string",schema:{default_value:"$trigger"},meta:{width:"half",interface:"select-dropdown",options:{choices:[{text:"From Trigger",value:"$trigger"},{text:"Public Role",value:"$public"},{text:"Full Access",value:"$full"}],allowOther:!0}}},{field:"emitEvents",name:"$t:operations.item-create.emit_events",type:"boolean",meta:{width:"half",interface:"boolean"},schema:{default_value:!1}},{field:"payload",name:"$t:operations.item-create.payload",type:"json",meta:{width:"full",interface:"input-code",options:{language:"json",placeholder:"$t:item_payload_placeholder"}}}]}),Got=Object.freeze(Object.defineProperty({__proto__:null,default:Wot},Symbol.toStringTag,{value:"Module"})),Yot=Vd({id:"item-delete",icon:"delete",name:"$t:operations.item-delete.name",description:"$t:operations.item-delete.description",overview:({collection:e,key:t})=>[{label:"$t:collection",text:e},{label:"$t:operations.item-delete.key",text:fc(t).length>0?fc(t).join(", "):"--"}],options:[{field:"collection",name:"$t:collection",type:"string",meta:{width:"half",interface:"system-collection"}},{field:"permissions",name:"$t:permissions",type:"string",schema:{default_value:"$trigger"},meta:{width:"half",interface:"select-dropdown",options:{choices:[{text:"From Trigger",value:"$trigger"},{text:"Public Role",value:"$public"},{text:"Full Access",value:"$full"}],allowOther:!0}}},{field:"emitEvents",name:"$t:operations.item-delete.emit_events",type:"boolean",meta:{width:"half",interface:"boolean"},schema:{default_value:!1}},{field:"key",name:"$t:operations.item-delete.key",type:"csv",meta:{width:"half",interface:"tags",options:{iconRight:"vpn_key"}}},{field:"query",name:"$t:operations.item-delete.query",type:"json",meta:{width:"full",interface:"input-code",options:{language:"json",placeholder:JSON.stringify({filter:{status:{_eq:"active"}}},null,2),template:JSON.stringify({filter:{status:{_eq:"active"}}},null,2)}}}]}),Xot=Object.freeze(Object.defineProperty({__proto__:null,default:Yot},Symbol.toStringTag,{value:"Module"})),Kot=Vd({id:"item-read",icon:"visibility",name:"$t:operations.item-read.name",description:"$t:operations.item-read.description",overview:({collection:e,key:t})=>[{label:"$t:collection",text:e},{label:"$t:operations.item-read.key",text:fc(t).length>0?fc(t).join(", "):"--"}],options:[{field:"permissions",name:"$t:permissions",type:"string",schema:{default_value:"$trigger"},meta:{width:"full",interface:"select-dropdown",options:{choices:[{text:"From Trigger",value:"$trigger"},{text:"Public Role",value:"$public"},{text:"Full Access",value:"$full"}],allowOther:!0}}},{field:"collection",name:"$t:collection",type:"string",meta:{width:"half",interface:"system-collection"}},{field:"key",name:"$t:operations.item-read.key",type:"csv",meta:{width:"half",interface:"tags",options:{iconRight:"vpn_key"}}},{field:"query",name:"$t:operations.item-read.query",type:"json",meta:{width:"full",interface:"input-code",options:{language:"json",placeholder:JSON.stringify({filter:{status:{_eq:"active"}}},null,2),template:JSON.stringify({filter:{status:{_eq:"active"}}},null,2)}}},{field:"emitEvents",name:"$t:operations.item-create.emit_events",type:"boolean",meta:{width:"half",interface:"boolean"},schema:{default_value:!1}}]}),Zot=Object.freeze(Object.defineProperty({__proto__:null,default:Kot},Symbol.toStringTag,{value:"Module"})),Jot=Vd({id:"item-update",icon:"edit",name:"$t:operations.item-update.name",description:"$t:operations.item-update.description",overview:({collection:e,key:t})=>[{label:"$t:collection",text:e},{label:"$t:operations.item-update.key",text:fc(t).length>0?fc(t).join(", "):"--"}],options:[{field:"collection",name:"$t:collection",type:"string",meta:{width:"half",interface:"system-collection"}},{field:"permissions",name:"$t:permissions",type:"string",schema:{default_value:"$trigger"},meta:{width:"half",interface:"select-dropdown",options:{choices:[{text:"From Trigger",value:"$trigger"},{text:"Public Role",value:"$public"},{text:"Full Access",value:"$full"}],allowOther:!0}}},{field:"emitEvents",name:"$t:operations.item-update.emit_events",type:"boolean",meta:{width:"half",interface:"boolean"},schema:{default_value:!1}},{field:"key",name:"$t:operations.item-update.key",type:"csv",meta:{width:"half",interface:"tags",options:{iconRight:"vpn_key"}}},{field:"payload",name:"$t:operations.item-update.payload",type:"json",meta:{width:"full",interface:"input-code",options:{language:"json",placeholder:"$t:item_payload_placeholder"}}},{field:"query",name:"$t:operations.item-update.query",type:"json",meta:{width:"full",interface:"input-code",options:{language:"json",placeholder:JSON.stringify({filter:{status:{_eq:"active"}}},null,2),template:JSON.stringify({filter:{status:{_eq:"active"}}},null,2)}}}]}),Qot=Object.freeze(Object.defineProperty({__proto__:null,default:Jot},Symbol.toStringTag,{value:"Module"})),est=Vd({id:"log",icon:"terminal",name:"$t:operations.log.name",description:"$t:operations.log.description",overview:({message:e})=>[{label:"$t:operations.log.message",text:e}],options:[{field:"message",name:"$t:operations.log.message",type:"string",meta:{width:"full",interface:"input",options:{placeholder:"$t:operations.log.message_placeholder"},note:"$t:operation_variables_note"}}]}),tst=Object.freeze(Object.defineProperty({__proto__:null,default:est},Symbol.toStringTag,{value:"Module"})),nst=Vd({id:"mail",icon:"mail",name:"$t:operations.mail.name",description:"$t:operations.mail.description",overview:({subject:e,to:t,body:n})=>[{label:"$t:subject",text:e},{label:"$t:operations.mail.to",text:Array.isArray(t)?t.join(", "):t},{label:"$t:operations.mail.body",text:n}],options:[{field:"to",name:"$t:operations.mail.to",type:"csv",meta:{width:"full",interface:"tags",options:{placeholder:"$t:operations.mail.to_placeholder",iconRight:"alternate_email"}}},{field:"subject",name:"$t:subject",type:"string",meta:{width:"full",interface:"input",options:{iconRight:"title"}}},{field:"body",name:"$t:operations.mail.body",type:"text",meta:{width:"full",interface:"input-rich-text-md"}}]}),ist=Object.freeze(Object.defineProperty({__proto__:null,default:nst},Symbol.toStringTag,{value:"Module"})),rst=Vd({id:"notification",icon:"notifications",name:"$t:operations.notification.name",description:"$t:operations.notification.description",overview:({subject:e,message:t})=>[{label:"$t:subject",text:e},{label:"$t:message",text:t}],options:[{field:"recipient",name:"$t:operations.notification.recipient",type:"csv",meta:{width:"half",interface:"tags",options:{iconRight:"people_alt",placeholder:"$t:operations.notification.recipient_placeholder"}}},{field:"permissions",name:"$t:permissions",type:"string",schema:{default_value:"$trigger"},meta:{width:"half",interface:"select-dropdown",options:{choices:[{text:"From Trigger",value:"$trigger"},{text:"Public Role",value:"$public"},{text:"Full Access",value:"$full"}],allowOther:!0}}},{field:"subject",name:"$t:title",type:"string",meta:{width:"full",interface:"input",options:{iconRight:"title"}}},{field:"message",name:"$t:operations.notification.message",type:"text",meta:{width:"full",interface:"input-rich-text-md"}}]}),ast=Object.freeze(Object.defineProperty({__proto__:null,default:rst},Symbol.toStringTag,{value:"Module"})),ost=Vd({id:"request",icon:"link",name:"$t:operations.request.name",description:"$t:operations.request.description",overview:({url:e,method:t})=>[{label:"$t:operations.request.url",text:e},{label:"$t:operations.request.method",text:t!=null?t:"GET"}],options:[{field:"method",name:"$t:operations.request.method",type:"string",meta:{width:"half",interface:"select-dropdown",options:{choices:[{value:"GET",text:"GET"},{value:"POST",text:"POST"},{value:"PATCH",text:"PATCH"},{value:"DELETE",text:"DELETE"}],allowOther:!0}},schema:{default_value:"GET"}},{field:"url",name:"$t:operations.request.url",type:"string",meta:{width:"half",interface:"input",options:{placeholder:"$t:operations.request.url_placeholder"}}},{field:"headers",name:"$t:operations.request.headers",type:"json",meta:{width:"full",interface:"list",options:{fields:[{field:"header",name:"$t:operations.request.header",type:"string",meta:{width:"half",interface:"input",options:{placeholder:"$t:operations.request.header_placeholder"}}},{field:"value",name:"$t:value",type:"string",meta:{width:"half",interface:"input",options:{placeholder:"$t:operations.request.value_placeholder"}}}]}}},{field:"body",name:"$t:request_body",type:"text",meta:{width:"full",interface:"input-multiline",options:{font:"monospace",placeholder:"$t:any_string_or_json"}}}]}),sst=Object.freeze(Object.defineProperty({__proto__:null,default:ost},Symbol.toStringTag,{value:"Module"})),lst=Vd({id:"sleep",icon:"schedule",name:"$t:operations.sleep.name",description:"$t:operations.sleep.description",overview:({milliseconds:e})=>[{label:"$t:operations.sleep.milliseconds",text:e}],options:[{field:"milliseconds",name:"$t:operations.sleep.milliseconds",type:"integer",meta:{width:"full",interface:"input",options:{min:0,type:"integer",placeholder:"1000"}}}]}),cst=Object.freeze(Object.defineProperty({__proto__:null,default:lst},Symbol.toStringTag,{value:"Module"})),ust=Vd({id:"transform",icon:"move_down",name:"$t:operations.transform.name",description:"$t:operations.transform.description",overview:({json:e})=>[{label:"$t:json",text:e}],options:[{field:"json",name:"$t:json",type:"json",meta:{width:"full",interface:"input-code",options:{language:"json",placeholder:JSON.stringify({user:"{{ $accountability.user }}",data:"{{ $last }}"},null,2),template:JSON.stringify({user:"{{ $accountability.user }}",data:"{{ $last }}"},null,2)}}}]}),dst=Object.freeze(Object.defineProperty({__proto__:null,default:ust},Symbol.toStringTag,{value:"Module"})),fst=Vd({id:"trigger",icon:"flag",name:"$t:operations.trigger.name",description:"$t:operations.trigger.description",overview:({flow:e})=>[{label:"$t:operations.trigger.flow",text:e}],options:[{field:"flow",name:"$t:operations.trigger.flow",type:"string",meta:{width:"full",interface:"input",options:{iconRight:"bolt",placeholder:"$t:a_flow_uuid"}}},{field:"payload",name:"$t:payload",type:"json",meta:{width:"full",interface:"input-code",options:{language:"json",placeholder:JSON.stringify({user:"{{ $accountability.user }}",data:"{{ $last }}"},null,2),template:JSON.stringify({user:"{{ $accountability.user }}",data:"{{ $last }}"},null,2)}}}]}),pst=Object.freeze(Object.defineProperty({__proto__:null,default:fst},Symbol.toStringTag,{value:"Module"}));const{operationsRaw:qC}=im();async function hst(e){const n=Object.values({"./condition/index.ts":Uot,"./exec/index.ts":qot,"./item-create/index.ts":Got,"./item-delete/index.ts":Xot,"./item-read/index.ts":Zot,"./item-update/index.ts":Qot,"./log/index.ts":tst,"./mail/index.ts":ist,"./notification/index.ts":ast,"./request/index.ts":sst,"./sleep/index.ts":cst,"./transform/index.ts":dst,"./trigger/index.ts":pst}).map(i=>i.default);try{const i=await ct(()=>import(`${As()}extensions/operations/index.js`),[]);n.push(...i.default)}catch(i){console.warn("Couldn't load custom operations"),console.warn(i)}qC.value=n,qC.value.forEach(i=>{typeof i.overview!="function"&&Array.isArray(i.overview)===!1&&i.overview!==null&&e.component(`operation-overview-${i.id}`,i.overview),typeof i.options!="function"&&Array.isArray(i.options)===!1&&i.options!==null&&e.component(`operation-options-${i.id}`,i.options)})}mst();async function mst(){console.log(pne),console.info(`Hey! Interested in helping build this open-source data management platform?
|