@sveltia/cms 0.191.1 → 0.191.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/sveltia-cms.js +41 -41
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +40 -40
- package/dist/sveltia-cms.mjs.map +1 -1
- package/locales/en-CA.json +1 -1
- package/locales/en-GB.json +1 -1
- package/locales/en-US.json +1 -1
- package/locales/ja.json +1 -1
- package/package.json +1 -1
package/dist/sveltia-cms.mjs
CHANGED
|
@@ -15,23 +15,23 @@ object-assign
|
|
|
15
15
|
@license MIT
|
|
16
16
|
*/
|
|
17
17
|
var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),p=s(((e,t)=>{var n=f(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps=e.getDefaultProps?g(e.getDefaultProps,t):t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),m=s(((e,t)=>{var n=d(),r=p();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)})),h,g;function _(){return(_=o((()=>{h=e=>typeof e==`object`&&!!e&&!Array.isArray(e),g=e=>JSON.parse(JSON.stringify(e))})))()}function v(e){return typeof e==`function`}function y(e){return typeof e?.then==`function`}function b(e){for(var t=0;t<e.length;t++)e[t]()}function x(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function S(e,t,n=!1){return e===void 0?n?t():t:e}function C(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var w,ee,te,ne,re,ie,ae,oe,se,ce,le,T;function ue(){return(ue=o((()=>{w=Array.isArray,ee=Array.prototype.indexOf,te=Array.prototype.includes,ne=Array.from,re=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=Object.getOwnPropertyDescriptors,oe=Object.prototype,se=Array.prototype,ce=Object.getPrototypeOf,le=Object.isExtensible,T=()=>{}})))()}var de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le;function Re(){return(Re=o((()=>{de=1<<24,fe=1024,pe=2048,me=4096,he=8192,ge=16384,_e=32768,ve=1<<25,ye=65536,be=1<<18,xe=1<<19,Se=1<<20,Ce=1<<25,we=65536,Te=1<<21,Ee=1<<22,De=1<<23,Oe=Symbol(`$state`),ke=Symbol(`legacy props`),Ae=Symbol(``),je=Symbol(`attributes`),Me=Symbol(`class`),Ne=Symbol(`style`),Pe=Symbol(`text`),Fe=Symbol(`form reset`),Ie=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Le=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`)})))()}function ze(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Be(){return(Be=o((()=>{})))()}function Ve(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function He(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ue(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function We(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ge(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ke(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function qe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Je(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Ye(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Xe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ze(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Qe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function $e(){return($e=o((()=>{Be()})))()}var et,tt,nt,rt,it;function at(){return(at=o((()=>{et={},tt=Symbol(`uninitialized`),nt=`http://www.w3.org/1999/xhtml`,rt=`http://www.w3.org/2000/svg`,it=`http://www.w3.org/1998/Math/MathML`})))()}function ot(){console.warn(`https://svelte.dev/e/derived_inert`)}function st(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ct(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function lt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}function ut(){return(ut=o((()=>{})))()}function dt(e){_t=e}function ft(e){if(e===null)throw st(),et;return vt=e}function pt(){return ft(Pr(vt))}function E(e){if(_t){if(Pr(vt)!==null)throw st(),et;vt=e}}function mt(e=1){if(_t){for(var t=e,n=vt;t--;)n=Pr(n);vt=n}}function ht(e=!0){for(var t=0,n=vt;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Pr(n);e&&n.remove(),n=i}}function gt(e){if(!e||e.nodeType!==8)throw st(),et;return e.data}var _t,vt;function yt(){return(yt=o((()=>{Re(),at(),ut(),Wr(),_t=!1})))()}function bt(e){return e===this.v}function xt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function St(e){return!xt(e,this.v)}var Ct,wt;function Tt(){return(Tt=o((()=>{Ct=!1,wt=!1})))()}function Et(){return(Et=o((()=>{})))()}function Dt(e,t=!1,n=!1){return Ot(e,new Map,``,kt,null,n)}function Ot(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(w(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=Ot(l,t,n,r,null,a))}return s}if(ce(e)===oe){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=Ot(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return Ot(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var kt;function At(){return(At=o((()=>{Et(),ue(),kt=[]})))()}function jt(){return(jt=o((()=>{At(),Re(),vi(),Xi()})))()}function Mt(){return(Mt=o((()=>{ue(),Be()})))()}function Nt(e){Bt=e}function Pt(e){return Rt(`getContext`).get(e)}function Ft(e,t){let n=Rt(`setContext`);if(Ct){var r=Hi.f;!Bi&&r&32&&!Bt.i||Je()}return n.set(e,t),t}function It(){return Rt(`getAllContexts`)}function D(e,t=!1,n){Bt={p:Bt,i:!1,c:null,e:null,s:e,x:null,r:Hi,l:wt&&!t?{s:null,u:null,$:[]}:null}}function O(e){var t=Bt,n=t.e;if(n!==null){t.e=null;for(var r of n)Xr(r)}return e!==void 0&&(t.x=e),t.i=!0,Bt=t.p,e??{}}function Lt(){return!wt||Bt!==null&&Bt.l===null}function Rt(e){return Bt===null&&ze(e),Bt.c??=new Map(zt(Bt)||void 0)}function zt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Bt;function Vt(){return(Vt=o((()=>{$e(),Xi(),vi(),Tt(),Re(),Bt=null})))()}function Ht(){var e=Gt;Gt=[],b(e)}function Ut(e){if(Gt.length===0&&!lr){var t=Gt;queueMicrotask(()=>{t===Gt&&Ht()})}Gt.push(e)}function Wt(){for(;Gt.length>0;)Ht()}var Gt;function Kt(){return(Kt=o((()=>{ue(),_r(),Gt=[]})))()}function qt(e){var t=Hi;if(t===null)return Bi.f|=De,e;if(!(t.f&32768)&&!(t.f&4))throw e;Jt(e,t)}function Jt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function Yt(){return(Yt=o((()=>{at(),Wr(),Re(),ue(),Xi()})))()}function Xt(e,t){e.f=e.f&Qt|t}function Zt(e){e.f&512||e.deps===null?Xt(e,fe):Xt(e,me)}var Qt;function $t(){return($t=o((()=>{Re(),Qt=~(pe|me|fe)})))()}function en(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=we,en(t.deps))}function tn(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),en(e.deps),Xt(e,fe)}function nn(){return(nn=o((()=>{Re(),$t()})))()}function rn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),T;let r=Li(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}function an(){return(an=o((()=>{Xi(),ue()})))()}function on(e,t){return{subscribe:sn(e,t).subscribe}}function sn(e,t=T){let n=null,r=new Set;function i(t){if(xt(e,t)&&(e=t,n)){let t=!ln.length;for(let t of r)t[1](),ln.push(t,e);if(t){for(let e=0;e<ln.length;e+=2)ln[e][0](ln[e+1]);ln.length=0}}}function a(t){i(t(e))}function o(o,s=T){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||T),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function cn(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return on(n,(e,n)=>{let o=!1,s=[],c=0,l=T,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:T},d=i.map((e,t)=>rn(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){b(d),l(),o=!1}})}function k(e){let t;return rn(e,e=>t=e)(),t}var ln;function un(){return(un=o((()=>{ue(),an(),ln=[]})))()}function A(e,t,n){let r=n[t]??={store:null,source:yr(void 0),unsubscribe:T};if(r.store!==e&&!(yn in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=T;else{var i=!0;r.unsubscribe=rn(e,e=>{i?r.source.v=e:N(r.source,e)}),i=!1}}return e&&yn in n?k(e):z(r.source)}function dn(e,t){return pn(e,t),t}function fn(){let e={};function t(){Yr(()=>{for(var t in e)e[t].unsubscribe();re(e,yn,{enumerable:!1,value:!0})})}return[e,t]}function pn(e,t){_n=!0;try{e.set(t)}finally{_n=!1}}function mn(e,t,n){return pn(e,n),t}function hn(){vn=!0}function gn(e){var t=vn;try{return vn=!1,[e(),vn]}finally{vn=t}}var _n,vn,yn;function bn(){return(bn=o((()=>{an(),un(),ue(),Xi(),vi(),Er(),_n=!1,vn=!1,yn=Symbol(`unmounted`)})))()}function xn(){return(xn=o((()=>{Re(),At(),Xi()})))()}function Sn(e,t){if(t){let t=document.body;e.autofocus=!0,Ut(()=>{document.activeElement===t&&e.focus()})}}function Cn(e){_t&&Nr(e)!==null&&Fr(e)}function wn(){Tn||(Tn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Fe]?.()})},{capture:!0}))}var Tn;function En(){return(En=o((()=>{yt(),Wr(),Kt(),Re(),Tn=!1})))()}function Dn(e){var t=Bi,n=Hi;Si(null),Ci(null);try{return e()}finally{Si(t),Ci(n)}}function On(e,t,n,r=n){e.addEventListener(t,()=>Dn(n));let i=e[Fe];i?e[Fe]=()=>{i(),r(!0)}:e[Fe]=()=>r(!0),wn()}function kn(){return(kn=o((()=>{vi(),Xi(),Re(),En()})))()}function An(e){let t=0,n=vr(0),r;return()=>{Jr()&&(z(n),ni(()=>(t===0&&(r=Li(()=>e(()=>xr(n)))),t+=1,()=>{Ut(()=>{--t,t===0&&(r?.(),r=void 0,xr(n))})})))}}function jn(){return(jn=o((()=>{Xi(),vi(),Er(),jt(),Kt()})))()}function Mn(e,t,n,r){new Pn(e,t,n,r)}var Nn,Pn;function Fn(){return(Fn=o((()=>{Re(),at(),Vt(),Yt(),vi(),Xi(),yt(),Kt(),$e(),ut(),_r(),Er(),jt(),jn(),Wr(),nn(),Nn=ye|xe,Pn=class{parent;is_pending=!1;transform_error;#e;#t=_t?vt:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=An(()=>(this.#m=vr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Hi;t.b=this,t.f|=128,n(e)},this.parent=Hi.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=ii(()=>{if(_t){let e=this.#t;pt();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},Nn),_t&&(this.#e=vt)}#g(){try{this.#a=oi(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Ut(r),t&&(this.#s=oi(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){lt();return}t=!0,n&&Qe(),this.#s!==null&&pi(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Jt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=oi(()=>e(this.#e)),Ut(()=>{var e=this.#c=document.createDocumentFragment(),t=Mr();e.append(t),this.#a=this.#S(()=>oi(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,pi(this.#o,()=>{this.#o=null}),this.#x(ar))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=oi(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();_i(this.#a,e);let t=this.#n.pending;this.#o=oi(()=>t(this.#e))}else this.#x(ar)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){tn(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=Hi,n=Bi,r=Bt;Ci(this.#i),Si(this.#i),Nt(this.#i.ctx);try{return hr.ensure(),e()}catch(e){return qt(e),null}finally{Ci(t),Si(n),Nt(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&pi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ut(()=>{this.#d=!1,this.#m&&br(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;ar?.is_fork?(this.#a&&ar.skip_effect(this.#a),this.#o&&ar.skip_effect(this.#o),this.#s&&ar.skip_effect(this.#s),ar.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(ui(this.#a),null),this.#o&&=(ui(this.#o),null),this.#s&&=(ui(this.#s),null),_t&&(ft(this.#t),mt(),ft(ht()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return oi(()=>{var r=Hi;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Jt(e,this.#i.parent),null}}))};Ut(()=>{var t;try{t=this.transform_error(e)}catch(e){Jt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Jt(e,this.#i&&this.#i.parent)):n(t)})}}})))()}function In(e,t,n,r){let i=Lt()?Vn:Hn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=Hi,c=Ln(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Jt(e,s)}Rn()}}var d=zn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>eee(e))).then(u).catch(e=>Jt(e,s)).finally(d)}l?l.then(()=>{c(),f(),Rn()}):f()}function Ln(){var e=Hi,t=Bi,n=Bt,r=ar;return function(i=!0){Ci(e),Si(t),Nt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Rn(e=!0){Ci(null),Si(null),Nt(null),e&&ar?.deactivate()}function zn(){var e=Hi,t=e.b,n=ar,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Bn(){return(Bn=o((()=>{Re(),Vt(),Fn(),Yt(),Xi(),_r(),Jn(),vi(),Kt()})))()}function Vn(e){var t=2|pe;return Hi!==null&&(Hi.f|=xe),{ctx:Bt,deps:null,effects:null,equals:bt,f:t,fn:e,reactions:null,rv:0,v:tt,wv:0,parent:Hi,ac:null}}function eee(e,t,n){let r=Hi;r===null&&Ve();var i=void 0,a=vr(tt),o=!Bi,s=new Set;return ti(()=>{var t=Hi,n=x();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Ie&&n.reject(e)}).finally(Rn)}catch(e){n.reject(e),Rn()}var c=ar;if(o){if(t.f&32768)var l=zn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(qn);else for(let e of s.values())e.reject(qn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==qn&&(c.activate(),t?(a.f|=De,br(a,t)):(a.f&8388608&&(a.f^=De),br(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Yr(()=>{for(let e of s)e.reject(qn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function j(e){let t=Vn(e);return Ct||wi(t),t}function Hn(e){let t=Vn(e);return t.equals=St,t}function Un(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ui(t[n])}}function Wn(e){var t,n=Hi,r=e.parent;if(!zi&&r!==null&&e.v!==tt&&r.f&24576)return ot(),e.v;Ci(r);try{e.f&=~we,Un(e),t=Ai(e)}finally{Ci(n)}return t}function Gn(e){var t=Wn(e);if(!e.equals(t)&&(e.wv=Di(),(!ar?.is_fork||e.deps===null)&&(ar===null?e.v=t:(ar.capture(e,t,!0),or?.capture(e,t,!0)),e.deps===null))){Xt(e,fe);return}zi||(sr===null?Zt(e):(Jr()||ar?.is_fork)&&sr.set(e,t))}function tee(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Dn(()=>{t.ac.abort(Ie),t.ac=null}),t.fn!==null&&(t.teardown=T),Mi(t,0),ci(t))}function Kn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Ni(t)}var qn;function Jn(){return(Jn=o((()=>{Re(),Xi(),kn(),$e(),ut(),vi(),Er(),Mt(),Tt(),Vt(),at(),_r(),Bn(),ue(),$t(),qn=Symbol(`obsolete`)})))()}function Yn(e){var t=lr;lr=!0;try{var n;for(e&&(ar!==null&&!ar.is_fork&&ar.flush(),n=e());;){if(Wt(),ar===null)return n;ar.flush()}}finally{lr=t}}function Xn(){try{Ke()}catch(e){Jt(e,cr)}}function Zn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Oi(r)&&(gr=new Set,Ni(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&fi(r),gr?.size>0)){wr.clear();for(let e of gr){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)gr.has(n)&&(gr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Ni(n)}}gr.clear()}}gr=null}}function Qn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Qn(i,t,n,r):e&4194320&&!(e&2048)&&$n(i,t,r)&&(Xt(i,pe),er(i))}}function $n(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(te.call(t,r))return!0;if(r.f&2&&$n(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function er(e){ar.schedule(e)}function tr(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Xt(e,fe);for(var n=e.first;n!==null;)tr(n,t),n=n.next}}function nr(e){Xt(e,fe);for(var t=e.first;t!==null;)nr(t),t=t.next}var rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr;function _r(){return(_r=o((()=>{Re(),Tt(),ue(),Xi(),$e(),Kt(),Yt(),Er(),vi(),nn(),at(),$t(),bn(),Mt(),xn(),Jn(),rr=null,ir=null,ar=null,or=null,sr=null,cr=null,lr=!1,ur=!1,dr=null,fr=null,pr=0,mr=1,hr=class e{id=mr++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){ir===null?rr=ir=this:(ir.#n=this,this.#t=ir),ir=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)Xt(r,pe),t(r);for(r of n.m)Xt(r,me),t(r)}this.#p.add(e)}#g(){this.#e=!0,pr++>1e3&&(this.#S(),Xn());for(let e of this.#u)this.#d.delete(e),Xt(e,pe),this.schedule(e);for(let e of this.#d)Xt(e,me),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=dr=[],r=[],i=fr=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw nr(e),this.#h()||this.discard(),t}if(ar=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(dr=null,fr=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)tr(e,t);i.length>0&&ar.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),or=this,Zn(r),Zn(n),or=null,this.#s?.resolve();var s=ar;if(this.#a===0&&(this.#c.length===0||s!==null)&&(this.#S(),Ct&&(this.#x(),ar=s)),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&s.#g()}#_(e,t,n){e.f^=fe;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=fe:i&4?t.push(r):Ct&&i&16777224?n.push(r):Oi(r)&&(i&16&&this.#d.add(r),Ni(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),Xt(i,pe),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#S(),ar=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)tn(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==tt&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),sr?.set(e,t)),this.is_fork||(e.v=t)}activate(){ar=this}deactivate(){ar=null,sr=null}flush(){try{ur=!0,ar=this,this.#g()}finally{pr=0,cr=null,dr=null,fr=null,ur=!1,ar=null,sr=null,wr.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(qn);this.#S(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}#x(){for(let u=rr;u!==null;u=u.#n){var e=u.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(u.current.has(r)){var n=u.current.get(r)[0];if(e&&i!==n)u.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=u.async_deriveds.get(e);n&&t.promise.then(n.resolve).catch(n.reject)}var r=[...u.current.keys()].filter(e=>!u.current.get(e)[1]);if(!(!u.#e||r.length===0)){var i=r.filter(e=>!this.current.has(e));if(i.length===0)e&&u.discard();else if(t.length>0){if(e)for(let e of this.#p)u.unskip_effect(e,e=>{e.f&4194320?u.schedule(e):u.#b([e])});u.activate();var a=new Set,o=new Map;for(var s of t)Qn(s,i,a,o);o=new Map;var c=[...u.current].filter(([e,t])=>{let n=this.current.get(e);return!n||n[0]!==t[0]||n[1]!==t[1]}).map(([e])=>e);if(c.length>0)for(let e of this.#l)!(e.f&155648)&&$n(e,c,o)&&(e.f&4194320?(Xt(e,pe),u.schedule(e)):u.#u.add(e));if(u.#c.length>0&&!u.#m){u.apply();for(var l of u.#c)u.#_(l,[],[]);u.#c=[]}u.deactivate()}}}}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Ut(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=x()).promise}static ensure(){if(ar===null){let t=ar=new e;!ur&&!lr&&Ut(()=>{t.#e||t.flush()})}return ar}apply(){if(!Ct||!this.is_fork&&this.#t===null&&this.#n===null){sr=null;return}sr=new Map;for(let[e,[t]]of this.current)sr.set(e,t);for(let t=rr;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)sr.has(e)||sr.set(e,n)}}schedule(e){if(cr=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(dr!==null&&t===Hi&&(Ct||(Bi===null||!(Bi.f&2))&&!_n))return;if(n&96){if(!(n&1024))return;t.f^=fe}}this.#c.push(t)}#S(){if(this.linked){var e=this.#t,t=this.#n;e===null?rr=t:e.#n=t,t===null?ir=e:t.#t=e,this.linked=!1}}},gr=null})))()}function vr(e,t){return{f:0,v:e,reactions:null,equals:bt,rv:0,wv:0}}function M(e,t){let n=vr(e,t);return wi(n),n}function yr(e,t=!1,n=!0){let r=vr(e);return t||(r.equals=St),wt&&n&&Bt!==null&&Bt.l!==null&&(Bt.l.s??=[]).push(r),r}function N(e,t,n=!1){return Bi!==null&&(!Vi||Bi.f&131072)&&Lt()&&Bi.f&4325394&&(Ui===null||!Ui.has(e))&&Ze(),br(e,n?Dr(t):t,fr)}function br(e,t,n=null){if(!e.equals(t)){wr.set(e,zi?t:e.v);var r=hr.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Wn(t),sr===null&&Zt(t)}e.wv=Di(),Sr(e,pe,n),Lt()&&Hi!==null&&Hi.f&1024&&!(Hi.f&96)&&(Ki===null?Ti([e]):Ki.push(e)),!r.is_fork&&Cr.size>0&&!Tr&&nee()}return t}function nee(){Tr=!1;for(let e of Cr){e.f&1024&&Xt(e,me);let t;try{t=Oi(e)}catch{t=!0}t&&Ni(e)}Cr.clear()}function xr(e){N(e,e.v+1)}function Sr(e,t,n){var r=e.reactions;if(r!==null)for(var i=Lt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Hi)){var l=(c&pe)===0;if(l&&Xt(s,t),c&131072)Cr.add(s);else if(c&2){var u=s;sr?.delete(u),c&65536||(c&512&&(Hi===null||!(Hi.f&2097152))&&(s.f|=we),Sr(u,me,n))}else if(l){var d=s;c&16&&gr!==null&&gr.add(d),n===null?er(d):n.push(d)}}}}var Cr,wr,Tr;function Er(){return(Er=o((()=>{Xi(),Re(),$e(),Tt(),jt(),Mt(),Vt(),_r(),kr(),Jn(),$t(),Cr=new Set,wr=new Map,Tr=!1})))()}function Dr(e){if(typeof e!=`object`||!e||Oe in e)return e;let t=ce(e);if(t!==oe&&t!==se)return e;var n=new Map,r=w(e),i=M(0),a=null,o=Yi,s=e=>{if(Yi===o)return e();var t=Bi,n=Yi;Si(null),Ei(o);var r=e();return Si(t),Ei(n),r};return r&&n.set(`length`,M(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ye();var i=n.get(t);return i===void 0?s(()=>{var e=M(r.value,a);return n.set(t,e),e}):N(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>M(tt,a));n.set(t,e),xr(i)}}else N(r,tt),xr(i);return!0},get(t,r,i){if(r===Oe)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||ie(t,r)?.writable)&&(o=s(()=>M(Dr(c?t[r]:tt),a)),n.set(r,o)),o!==void 0){var l=z(o);return l===tt?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==tt)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Oe)return!0;var r=n.get(t),i=r!==void 0&&r.v!==tt||Reflect.has(e,t);return(r!==void 0||Hi!==null&&(!i||ie(e,t)?.writable))&&(r===void 0&&(r=s(()=>M(i?Dr(e[t]):tt,a)),n.set(t,r)),z(r)===tt)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>M(tt,a)),n.set(d+``,f)):N(f,tt)}if(l===void 0)(!u||ie(e,t)?.writable)&&(l=s(()=>M(void 0,a)),N(l,Dr(o)),n.set(t,l));else{u=l.v!==tt;var p=s(()=>Dr(o));N(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&N(h,g+1)}xr(i)}return!0},ownKeys(e){z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==tt});for(var[r,a]of n)a.v!==tt&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Xe()}})}function Or(e){try{if(typeof e==`object`&&e&&Oe in e)return e[Oe]}catch{}return e}function ree(e,t){return Object.is(Or(e),Or(t))}function kr(){return(kr=o((()=>{Xi(),ue(),Er(),Re(),at(),$e(),jt(),Mt(),Tt()})))()}function Ar(){return(Ar=o((()=>{ut(),kr()})))()}function jr(){if(zr===void 0){zr=window,Br=document,Vr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Hr=ie(t,`firstChild`).get,Ur=ie(t,`nextSibling`).get,le(e)&&(e[Me]=void 0,e[je]=null,e[Ne]=void 0,e.__e=void 0),le(n)&&(n[Pe]=void 0)}}function Mr(e=``){return document.createTextNode(e)}function Nr(e){return Hr.call(e)}function Pr(e){return Ur.call(e)}function P(e,t){if(!_t)return Nr(e);var n=Nr(vt);if(n===null)n=vt.appendChild(Mr());else if(t&&n.nodeType!==3){var r=Mr();return n?.before(r),ft(r),r}return t&&Rr(n),ft(n),n}function F(e,t=!1){if(!_t){var n=Nr(e);return n instanceof Comment&&n.data===``?Pr(n):n}if(t){if(vt?.nodeType!==3){var r=Mr();return vt?.before(r),ft(r),r}Rr(vt)}return vt}function I(e,t=1,n=!1){let r=_t?vt:e;for(var i;t--;)i=r,r=Pr(r);if(!_t)return r;if(n){if(r?.nodeType!==3){var a=Mr();return r===null?i?.after(a):r.before(a),ft(a),a}Rr(r)}return ft(r),r}function Fr(e){e.textContent=``}function Ir(){return!Ct||gr!==null?!1:(Hi.f&_e)!==0}function Lr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Rr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var zr,Br,Vr,Hr,Ur;function Wr(){return(Wr=o((()=>{yt(),Ar(),ue(),Xi(),Tt(),Re(),_r(),at()})))()}function Gr(e){Hi===null&&(Bi===null&&Ge(e),We()),zi&&Ue(e)}function Kr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function qr(e,t){var n=Hi;n!==null&&n.f&8192&&(e|=he);var r={ctx:Bt,deps:null,nodes:null,f:e|pe|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};ar?.register_created_effect(r);var i=r;if(e&4)dr===null?hr.ensure().schedule(r):dr.push(r);else if(t!==null){try{Ni(r)}catch(e){throw ui(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ye))}if(i!==null&&(i.parent=n,n!==null&&Kr(i,n),Bi!==null&&Bi.f&2&&!(e&64))){var a=Bi;(a.effects??=[]).push(i)}return r}function Jr(){return Bi!==null&&!Vi}function Yr(e){let t=qr(8,null);return Xt(t,fe),t.teardown=e,t}function L(e){Gr(`$effect`);var t=Hi.f;if(!Bi&&t&32&&Bt!==null&&!Bt.i){var n=Bt;(n.e??=[]).push(e)}else return Xr(e)}function Xr(e){return qr(4|Se,e)}function Zr(e){return Gr(`$effect.pre`),qr(8|Se,e)}function Qr(e){hr.ensure();let t=qr(64|xe,e);return()=>{ui(t)}}function $r(e){hr.ensure();let t=qr(64|xe,e);return(e={})=>new Promise(n=>{e.outro?pi(t,()=>{ui(t),n(void 0)}):(ui(t),n(void 0))})}function ei(e){return qr(4,e)}function ti(e){return qr(Ee|xe,e)}function ni(e,t=0){return qr(8|t,e)}function R(e,t=[],n=[],r=[]){In(r,t,n,t=>{qr(8,()=>{e(...t.map(z))})})}function ri(e,t=[],n=[],r=[]){In(r,t,n,t=>{qr(4,()=>e(...t.map(z)))})}function ii(e,t=0){return qr(16|t,e)}function ai(e,t=0){return qr(de|t,e)}function oi(e){return qr(32|xe,e)}function si(e){var t=e.teardown;if(t!==null){let e=zi,n=Bi;xi(!0),Si(null);try{t.call(null)}finally{xi(e),Si(n)}}}function ci(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Dn(()=>{e.abort(Ie)});var r=n.next;n.f&64?n.parent=null:ui(n,t),n=r}}function li(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||ui(t),t=n}}function ui(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(di(e.nodes.start,e.nodes.end),n=!0),e.f|=ve,ci(e,t&&!n),Mi(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();si(e),e.f^=ve,e.f|=ge;var i=e.parent;i!==null&&i.first!==null&&fi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function di(e,t){for(;e!==null;){var n=e===t?null:Pr(e);e.remove(),e=n}}function fi(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function pi(e,t,n=!0){var r=[];mi(e,r,!0);var i=()=>{n&&ui(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function mi(e,t,n){if(!(e.f&8192)){e.f^=he;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);mi(i,t,o?n:!1)}i=a}}}function hi(e){gi(e,!0)}function gi(e,t){if(e.f&8192){e.f^=he,e.f&1024||(Xt(e,pe),hr.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);gi(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function _i(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Pr(n);t.append(n),n=i}}function vi(){return(vi=o((()=>{Xi(),Re(),$e(),ue(),Wr(),Vt(),_r(),Bn(),kn(),$t()})))()}var yi;function bi(){return(bi=o((()=>{Er(),Xi(),yi=null})))()}function xi(e){zi=e}function Si(e){Bi=e}function Ci(e){Hi=e}function wi(e){Bi!==null&&(!Ct||Bi.f&2)&&(Ui??=new Set).add(e)}function Ti(e){Ki=e}function Ei(e){Yi=e}function Di(){return++qi}function Oi(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~we),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Oi(a)&&Gn(a),a.wv>e.wv)return!0}t&512&&sr===null&&Xt(e,fe)}return!1}function ki(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ct&&Ui!==null&&Ui.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?ki(a,t,!1):t===a&&(n?Xt(a,pe):a.f&1024&&Xt(a,me),er(a))}}function Ai(e){var t=Wi,n=Gi,r=Ki,i=Bi,a=Ui,o=Bt,s=Vi,c=Yi,l=e.f;Wi=null,Gi=0,Ki=null,Bi=l&96?null:e,Ui=null,Nt(e.ctx),Vi=!1,Yi=++Ji,e.ac!==null&&(Dn(()=>{e.ac.abort(Ie)}),e.ac=null);try{e.f|=Te;var u=e.fn,d=u();e.f|=_e;var f=e.deps,p=ar?.is_fork;if(Wi!==null){var m;if(p||Mi(e,Gi),f!==null&&Gi>0)for(f.length=Gi+Wi.length,m=0;m<Wi.length;m++)f[Gi+m]=Wi[m];else e.deps=f=Wi;if(Jr()&&e.f&512)for(m=Gi;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Gi<f.length&&(Mi(e,Gi),f.length=Gi);if(Lt()&&Ki!==null&&!Vi&&f!==null&&!(e.f&6146))for(m=0;m<Ki.length;m++)ki(Ki[m],e);if(i!==null&&i!==e){if(Ji++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Ji;if(t!==null)for(let e of t)e.rv=Ji;Ki!==null&&(r===null?r=Ki:r.push(...Ki))}return e.f&8388608&&(e.f^=De),d}catch(e){return qt(e)}finally{e.f^=Te,Wi=t,Gi=n,Ki=r,Bi=i,Ui=a,Nt(o),Vi=s,Yi=c}}function ji(e,t){let n=t.reactions;if(n!==null){var r=ee.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Wi===null||!te.call(Wi,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~we),a.v!==tt&&Zt(a),a.ac!==null&&Dn(()=>{a.ac.abort(Ie),a.ac=null,Xt(a,pe)}),tee(a),Mi(a,0)}}function Mi(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ji(e,n[r])}function Ni(e){var t=e.f;if(!(t&16384)){Xt(e,fe);var n=Hi,r=Ri;Hi=e,Ri=!(t&96);try{t&16777232?li(e):ci(e),si(e);var i=Ai(e);e.teardown=typeof i==`function`?i:null,e.wv=qi}finally{Ri=r,Hi=n}}}async function Pi(){if(Ct)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Yn()}function z(e){var t=!!(e.f&2);if(yi?.add(e),Bi!==null&&!Vi&&!(Hi!==null&&Hi.f&16384)&&(Ui===null||!Ui.has(e))){var n=Bi.deps;if(Bi.f&2097152)e.rv<Ji&&(e.rv=Ji,Wi===null&&n!==null&&n[Gi]===e?Gi++:Wi===null?Wi=[e]:Wi.push(e));else{Bi.deps??=[],te.call(Bi.deps,e)||Bi.deps.push(e);var r=e.reactions;r===null?e.reactions=[Bi]:te.call(r,Bi)||r.push(Bi)}}if(zi&&wr.has(e))return wr.get(e);if(t){var i=e;if(zi){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Ii(i))&&(a=Wn(i)),wr.set(i,a),a}var o=!(i.f&512)&&!Vi&&Bi!==null&&(Ri||!!(Bi.f&512)),s=(i.f&_e)===0;Oi(i)&&(o&&(i.f|=512),Gn(i)),o&&!s&&(Kn(i),Fi(i))}if(sr?.has(e))return sr.get(e);if(e.f&8388608)throw e.v;return e.v}function Fi(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Kn(t),Fi(t))}function Ii(e){if(e.v===tt)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(wr.has(t)||t.f&2&&Ii(t))return!0;return!1}function Li(e){var t=Vi;try{return Vi=!0,e()}finally{Vi=t}}var Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi;function Xi(){return(Xi=o((()=>{ue(),vi(),Re(),Er(),Jn(),Tt(),jt(),Mt(),Vt(),_r(),Yt(),at(),bi(),kn(),$t(),ut(),Ri=!1,zi=!1,Bi=null,Vi=!1,Hi=null,Ui=null,Wi=null,Gi=0,Ki=null,qi=1,Ji=0,Yi=Ji})))()}function Zi(){return(Zi=o((()=>{J(),tc(),vi()})))()}function iee(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}function aee(e){return ea.includes(e)}function oee(e){return e=e.toLowerCase(),na[e]??e}function Qi(e){return ra.includes(e)}function $i(e){return aa.includes(e)}var ea,ta,na,ra,ia,aa;function oa(){return(oa=o((()=>{ea=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`],ta=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),na={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`},[...ta],ra=[`touchstart`,`touchmove`],ia=[`$state`,`$state.raw`,`$derived`,`$derived.by`],[...ia],aa=[`textarea`,`script`,`style`,`title`]})))()}function sa(){return(sa=o((()=>{Re(),oa(),Xi()})))()}function ca(){return(ca=o((()=>{})))()}function la(){return(la=o((()=>{Re(),yt(),Vt()})))()}function ua(e){if(!_t)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function da(e,t,n,r={}){function i(e){if(r.capture||ga.call(t,e),!e.cancelBubble)return Dn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ut(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function fa(e,t,n,r={}){var i=da(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function pa(e,t,n,r,i){var a={capture:r,passive:i},o=da(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Yr(()=>{t.removeEventListener(e,o,a)})}function ma(e,t,n){(t[_a]??={})[e]=n}function ha(e){for(var t=0;t<e.length;t++)va.add(e[t]);for(var n of ya)n(e)}function ga(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;ba=e;var o=0,s=ba===e&&e[_a];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[_a]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){re(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=Bi,d=Hi;Si(null),Ci(null);try{for(var f,p=[];a!==null&&a!==t;){try{var m=a[_a]?.[r];m!=null&&(!a.disabled||e.target===a)&&m.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[_a]=t,delete e.currentTarget,Si(u),Ci(d)}}}var _a,va,ya,ba;function xa(){return(xa=o((()=>{vi(),ue(),yt(),Kt(),Xi(),kn(),_a=Symbol(`events`),va=new Set,ya=new Set,ba=null})))()}function Sa(e){return wa?.createHTML(e)??e}function Ca(e){var t=Lr(`template`);return t.innerHTML=Sa(e.replaceAll(`<!>`,`<!---->`)),t.content}var wa;function Ta(){return(Ta=o((()=>{Wr(),wa=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e})})))()}function Ea(e,t){var n=Hi;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function B(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(_t)return Ea(vt,null),vt;i===void 0&&(i=Ca(a?e:`<!>`+e),n||(i=Nr(i)));var t=r||Vr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Nr(t),s=t.lastChild;Ea(o,s)}else Ea(t,t);return t}}function Da(e=``){if(!_t){var t=Mr(e+``);return Ea(t,t),t}var n=vt;return n.nodeType===3?Rr(n):(n.before(n=Mr()),ft(n)),Ea(n,n),n}function V(){if(_t)return Ea(vt,null),vt;var e=document.createDocumentFragment(),t=document.createComment(``),n=Mr();return e.append(t,n),Ea(t,n),e}function H(e,t){if(_t){var n=Hi;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=vt),pt();return}e!==null&&e.before(t)}function Oa(){if(_t&&vt&&vt.nodeType===8&&vt.textContent?.startsWith(`$`)){let e=vt.textContent.substring(1);return pt(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function ka(){return(ka=o((()=>{yt(),Wr(),Ta(),Xi(),at(),Re()})))()}function Aa(e){Pa=e}function U(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Pe]??=e.nodeValue)&&(e[Pe]=n,e.nodeValue=`${n}`)}function ja(e,t){return Ma(e,t)}function Ma(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){jr();var c=void 0,l=$r(()=>{var l=n??t.appendChild(Mr());Mn(l,{pending:()=>{}},t=>{D({});var n=Bt;if(a&&(n.c=a),i&&(r.$$events=i),_t&&Ea(t,null),Pa=o,c=e(t,r)||{},Pa=!0,_t&&(Hi.nodes.end=vt,vt===null||vt.nodeType!==8||vt.data!==`]`))throw st(),et;O()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=Qi(r);for(let e of[t,document]){var a=Fa.get(e);a===void 0&&(a=new Map,Fa.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ga,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(ne(va)),ya.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Fa.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ga),r.delete(e),r.size===0&&Fa.delete(n)):r.set(e,i)}ya.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Ia.set(c,l),c}function Na(e,t){let n=Ia.get(e);return n?(Ia.delete(e),n(t)):Promise.resolve()}var Pa,Fa,Ia;function La(){return(La=o((()=>{Wr(),at(),Xi(),Vt(),vi(),yt(),ue(),xa(),ut(),$e(),ka(),oa(),Re(),Fn(),Fa=new Map,Ia=new WeakMap})))()}function Ra(){return(Ra=o((()=>{Re(),yt(),vi(),Er(),La(),Xi()})))()}function za(){return(za=o((()=>{ue(),Re(),Vt(),oa()})))()}function Ba(){return(Ba=o((()=>{Vt()})))()}function Va(){return(Va=o((()=>{At(),vi(),Xi(),Mt()})))()}function Ha(){return(Ha=o((()=>{Bn(),Xi(),yt(),ka()})))()}var Ua;function Wa(){return(Wa=o((()=>{_r(),vi(),Re(),yt(),Wr(),Ua=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)hi(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(hi(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(ui(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();_i(r,t),t.append(Mr()),this.#n.set(e,{effect:r,fragment:t})}else ui(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),pi(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(ui(n.effect),this.#n.delete(e))};ensure(e,t){var n=ar,r=Ir();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=Mr();i.append(a),this.#n.set(e,{effect:oi(()=>t(a)),fragment:i})}else this.#t.set(e,oi(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else _t&&(this.anchor=vt),this.#a(n)}}})))()}function Ga(e,t,n,r,i){_t&&pt();var a=Lt(),o=tt,s=a?vr(o):yr(o,!1,!1),c=a?vr(o):yr(o,!1,!1),l=new Ua(e);ii(()=>{var a=ar,o=t(),u=!1;let d=_t&&y(o)===(e.data===`[!`);if(d&&(ft(ht()),dt(!1)),y(o)){var f=Ln(),p=!1;let e=e=>{if(!u){p=!0,f(!1),ar===a&&a.deactivate(),hr.ensure();try{e()}finally{Rn(!1),lr||Yn()}}};o.then(t=>{e(()=>{br(s,t),l.ensure(qa,r&&(e=>r(e,s)))})},t=>{e(()=>{if(br(c,t),l.ensure(Ja,i&&(e=>i(e,c))),!i)throw c.v})}),_t?l.ensure(Ka,n):Ut(()=>{p||e(()=>{l.ensure(Ka,n)})})}else br(s,o),l.ensure(qa,r&&(e=>r(e,s)));return d&&dt(!0),()=>{u=!0}})}var Ka,qa,Ja;function Ya(){return(Ya=o((()=>{ue(),vi(),Er(),yt(),Kt(),at(),Vt(),_r(),Wa(),Bn(),Ka=0,qa=1,Ja=2})))()}function W(e,t,n=!1){var r;_t&&(r=vt,pt());var i=new Ua(e),a=n?ye:0;function o(e,t){if(_t){var n=gt(r);if(e!==parseInt(n.substring(1))){var a=ht();ft(a),i.anchor=a,dt(!1),i.ensure(e,t),dt(!0);return}}i.ensure(e,t)}ii(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Xa(){return(Xa=o((()=>{Re(),yt(),vi(),Wa()})))()}function Za(e,t,n){_t&&pt();var r=new Ua(e),i=!Lt();ii(()=>{var e=t();e!==e&&(e=Qa),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}var Qa;function $a(){return($a=o((()=>{Vt(),vi(),yt(),Wa(),Qa=Symbol(`NaN`)})))()}function eo(e,t){_t&&ft(Nr(e)),ni(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}function to(){return(to=o((()=>{vi(),yt(),Wr()})))()}function no(e,t){return t}function ro(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];pi(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;io(e,ne(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;Fr(u),u.append(l),e.items.clear()}io(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function io(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=Ce,_i(a,document.createDocumentFragment())):ui(t[i],n)}}function ao(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=_t?ft(Nr(c)):c.appendChild(Mr())}_t&&pt();var l=null,u=Hn(()=>{var e=n();return w(e)?e:e==null?[]:ne(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,so(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Ce,lo(l,null,o)):hi(l):pi(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:ii(()=>{d=z(u);var e=d.length;let c=!1;_t&>(o)===`[!`!=(e===0)&&(o=ht(),ft(o),dt(!1),c=!0);for(var g=new Set,_=ar,v=Ir(),y=0;y<e;y+=1){_t&&vt.nodeType===8&&vt.data===`]`&&(o=vt,c=!0,dt(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&br(S.v,b),S.i&&br(S.i,y),v&&_.unskip_effect(S.e)):(S=co(s,p?o:fo??=Mr(),b,x,y,i,t,n),p||(S.e.f|=Ce),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=oi(()=>a(o)):(l=oi(()=>a(fo??=Mr())),l.f|=Ce)),e>g.size&&He(``,``,``),_t&&e>0&&ft(ht()),!p){if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_)}c&&dt(!0),z(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,_t&&(o=vt)}function oo(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function so(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=oo(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(hi(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432){if(g.f^=Ce,g===c)lo(g,null,n);else{var v=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),uo(e,u,g),uo(e,g,v),lo(g,v,n),u=g,f=[],p=[],c=oo(u.next);continue}}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],b;u=y.prev;var x=f[0],S=f[f.length-1];for(b=0;b<f.length;b+=1)lo(f[b],y,n);for(b=0;b<p.length;b+=1)l.delete(p[b]);uo(e,x.prev,S.next),uo(e,u,x),uo(e,S,y),c=y,u=S,--_,f=[],p=[]}else l.delete(g),lo(g,c,n),uo(e,g.prev,g.next),uo(e,g,u===null?e.effect.first:u.next),uo(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=oo(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=oo(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(io(e,ne(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(g of l)g.f&8192||C.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=oo(c.next);var w=C.length;if(w>0){var ee=r&4&&o===0?n:null;if(a){for(_=0;_<w;_+=1)C[_].nodes?.a?.measure();for(_=0;_<w;_+=1)C[_].nodes?.a?.fix()}ro(e,C,ee)}}a&&Ut(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function co(e,t,n,r,i,a,o,s){var c=o&1?o&16?vr(n):yr(n,!1,!1):null,l=o&2?vr(i):null;return{v:c,i:l,e:oi(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function lo(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=Pr(r);if(a.before(r),r===i)return;r=o}}function uo(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var fo;function po(){return(po=o((()=>{at(),yt(),Wr(),vi(),Er(),ue(),Re(),Kt(),Xi(),Jn(),_r(),$e(),jt()})))()}function mo(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;_t&&(o=ft(Nr(c)))}R(()=>{var e=Hi;if(s===(s=t()??``)){_t&&pt();return}if(n&&!_t){e.nodes=null,c.innerHTML=s,s!==``&&Ea(Nr(c),c.lastChild);return}if(e.nodes!==null&&(di(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(_t){for(var a=vt.data,l=pt(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=Pr(l);if(l===null)throw st(),et;Ea(vt,u),o=ft(l);return}var d=Lr(r?`svg`:i?`math`:`template`,r?rt:i?it:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Ea(Nr(f),f.lastChild),r||i)for(;Nr(f);)o.before(Nr(f));else o.before(f)}})}function ho(){return(ho=o((()=>{at(),vi(),yt(),ka(),ut(),oa(),Vt(),Wr(),Xi(),Re()})))()}function go(){return(go=o((()=>{yt()})))()}function _o(){return(_o=o((()=>{oa()})))()}function vo(e,t,...n){var r=new Ua(e);ii(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ye)}function yo(){return(yo=o((()=>{Re(),vi(),Vt(),yt(),Ta(),ka(),$e(),Wr(),_o(),Wa()})))()}function bo(e,t,n){var r;_t&&(r=vt,pt());var i=new Ua(e);ii(()=>{var e=t()??null;if(_t&>(r)===`[`!=(e!==null)){var a=ht();ft(a),i.anchor=a,dt(!1),i.ensure(e,e&&(t=>n(t,e))),dt(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ye)}function xo(){return(xo=o((()=>{Re(),vi(),yt(),Wa(),at()})))()}var So,Co;function wo(){return(wo=o((()=>{ue(),So=()=>performance.now(),Co={tick:e=>requestAnimationFrame(e),now:()=>So(),tasks:new Set}})))()}function To(){let e=Co.now();Co.tasks.forEach(t=>{t.c(e)||(Co.tasks.delete(t),t.f())}),Co.tasks.size!==0&&Co.tick(To)}function Eo(e){let t;return Co.tasks.size===0&&Co.tick(To),{promise:new Promise(n=>{Co.tasks.add(t={c:e,f:n})}),abort(){Co.tasks.delete(t)}}}function Do(){return(Do=o((()=>{wo()})))()}function Oo(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function ko(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Oo(n.trim());t[i]=r.trim()}return t}function Ao(e){Po=e}function jo(e,t,n){var r=(Po??Hi).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Mo(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Mo(e,t,n,r,i,a){var o=r===1;if(v(t)){var s,c=!1;return Ut(()=>{c||(s=Mo(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:T,deactivate:T,reset:T,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=No}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=ko(u(0,1));p.push(m,m)}var h=()=>1-r,g=e.animate(p,{duration:l,fill:`forwards`});return g.onfinish=()=>{g.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var p=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),_=0;_<=m;_+=1){var v=o+s*f(_/m),y=ko(u(v,1-v));l.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),h=()=>{var e=g.currentTime;return o+s*f(e/c)},d&&Eo(()=>{if(g.playState!==`running`)return!1;var e=h();return d(e,1-e),!0})}g=e.animate(l,{duration:c,fill:`forwards`}),g.onfinish=()=>{h=()=>r,d?.(r,1-r),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=T)},deactivate:()=>{a=T},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}var No,Po;function Fo(){return(Fo=o((()=>{ue(),vi(),Xi(),Do(),La(),Re(),Kt(),kn(),No=e=>e,Po=null})))()}function Io(e,t,n,r,i,a){let o=_t;_t&&pt();var s=null;_t&&vt.nodeType===1&&(s=vt,pt());var c=_t?vt:e,l=Hi,u=new Ua(c,!1);ii(()=>{let e=t()||null;var a=i?i():n||e===`svg`?rt:void 0;if(e===null){u.ensure(null,null),Aa(!0);return}return u.ensure(e,t=>{if(e){if(s=_t?s:Lr(e,a),Ea(s,s),r){var n=null;_t&&$i(e)&&s.append(n=document.createComment(``));var i=_t?Nr(s):s.appendChild(Mr());_t&&(i===null?dt(!1):ft(i)),Ao(l),r(s,i),n?.remove(),Ao(null)}Hi.nodes.end=s,t.before(s)}_t&&ft(t)}),Aa(!0),()=>{e&&Aa(!1)}},ye),Yr(()=>{Aa(!0)}),o&&(dt(!0),ft(c))}function Lo(){return(Lo=o((()=>{at(),yt(),Wr(),vi(),La(),Xi(),Vt(),Re(),ka(),oa(),Wa(),Fo()})))()}function Ro(e,t){let n=null,r=_t;var i;if(_t){n=vt;for(var a=Nr(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=Pr(a);if(a===null)dt(!1);else{var o=Pr(a);a.remove(),ft(o)}}_t||(i=document.head.appendChild(Mr()));try{ii(()=>{var e=oi(()=>t(i));e.f|=be})}finally{r&&(dt(!0),ft(n))}}function zo(){return(zo=o((()=>{yt(),Wr(),vi(),Re()})))()}function G(e,t){ei(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Lr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Bo(){return(Bo=o((()=>{ca(),vi(),Wr()})))()}function Vo(){return(Vo=o((()=>{vi(),Xi()})))()}function Ho(e,t){var n=void 0,r;ai(()=>{n!==(n=t())&&(r&&=(ui(r),null),n&&(r=oi(()=>{ei(()=>n(e))})))})}function Uo(){return(Uo=o((()=>{vi()})))()}function Wo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Wo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Go(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Wo(e))&&(r&&(r+=` `),r+=t);return r}function Ko(){return(Ko=o((()=>{})))()}function qo(e){return typeof e==`object`?Go(e):e??``}function Jo(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Qo.includes(r[o-1]))&&(s===r.length||Qo.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Yo(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Xo(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Zo(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Xo)),i&&c.push(...Object.keys(i).map(Xo));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Xo(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Yo(r)),i&&(n+=Yo(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}var Qo;function $o(){return($o=o((()=>{Ko(),ue(),Qo=[...`
|
|
18
|
-
\r\f\xA0\v`]})))()}function es(e,t,n,r,i,a){var o=e[Me];if(_t||o!==n||o===void 0){var s=Jo(n,r,a);(!_t||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Me]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ts(){return(ts=o((()=>{$o(),Re(),yt()})))()}function ns(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function rs(e,t,n,r){var i=e[Ne];if(_t||i!==t){var a=Zo(t,r);(!_t||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ne]=t}else r&&(Array.isArray(r)?(ns(e,n?.[0],r[0]),ns(e,n?.[1],r[1],`important`)):ns(e,n,r));return r}function is(){return(is=o((()=>{$o(),Re(),yt()})))()}function as(e,t,n=!1){if(e.multiple){if(t==null)return;if(!w(t))return ct();for(var r of e.options)r.selected=t.includes(ss(r));return}for(r of e.options)if(ree(ss(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function os(e){var t=new MutationObserver(()=>{`__value`in e&&as(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Yr(()=>{t.disconnect()})}function ss(e){return`__value`in e?e.__value:e.value}function cs(){return(cs=o((()=>{vi(),kn(),kr(),ue(),ut(),_r()})))()}function ls(e){if(_t){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;K(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;K(e,`checked`,null),e.checked=r}}};e[Fe]=n,Ut(n),wn()}}function us(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function K(e,t,n,r){var i=fs(e);_t&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===vs)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Ae]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ps(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function see(e,t,n,r,i=!1,a=!1){if(_t&&i&&e.nodeName===ys){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||ls(o)}var s=fs(e),c=s[gs],l=!s[_s];let u=_t&&c;u&&dt(!1);var d=t||{},f=e.nodeName===bs;for(var p in t)p in n||(n[p]=null);n.class?n.class=qo(n.class):(r||n[ms])&&(n.class=null),n[hs]&&(n.style??=null);var m=ps(e);if(e.nodeName===ys&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,K(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){es(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[ms],n[ms]),d[i]=o,d[ms]=n[ms];continue}if(i===`style`){rs(e,o,t?.[hs],n[hs]),d[i]=o,d[hs]=n[hs];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=aee(r);if(iee(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)ma(r,e,o),ha([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=da(r,e,a,t)}}else if(i===`style`)K(e,i,o);else if(i===`autofocus`)Sn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)us(e,o);else{var y=i;l||(y=oee(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b){if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else b||m.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=tt)):typeof o!=`function`&&K(e,y,o,a)}}}}return u&&dt(!0),d}function ds(e,t,n=[],r=[],i=[],a,o=!1,s=!1){In(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===xs,l=!1;if(ai(()=>{var u=t(...n.map(z)),d=see(e,r,u,a,o,s);l&&c&&`value`in u&&as(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||ui(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&ui(i[t]),i[t]=oi(()=>Ho(e,()=>f))),d[t]=f}r=d}),c){var u=e;ei(()=>{as(u,r.value,!0),os(u)})}l=!0})}function fs(e){return e[je]??={[gs]:e.nodeName.includes(`-`),[_s]:e.namespaceURI===nt}}function ps(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ss.get(t);if(n)return n;Ss.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=ae(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=ce(i)}return n}var ms,hs,gs,_s,vs,ys,bs,xs,Ss;function Cs(){return(Cs=o((()=>{yt(),ue(),xa(),En(),ut(),Re(),Kt(),oa(),Xi(),Uo(),$o(),ts(),is(),at(),vi(),cs(),Bn(),ms=Symbol(`class`),hs=Symbol(`style`),gs=Symbol(`is custom element`),_s=Symbol(`is html`),vs=Le?`link`:`LINK`,ys=Le?`input`:`INPUT`,bs=Le?`option`:`OPTION`,xs=Le?`select`:`SELECT`,Ss=new Map})))()}function ws(){return(ws=o((()=>{yt(),Wr(),Ta(),Uo()})))()}function Ts(){return(Ts=o((()=>{kn()})))()}function Es(e,t,n=t){var r=new WeakSet;On(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ds(e)?Os(a):a,n(a),ar!==null&&r.add(ar),await Pi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(_t&&e.defaultValue!==e.value||Li(t)==null&&e.value)&&(n(Ds(e)?Os(e.value):e.value),ar!==null&&r.add(ar)),ni(()=>{var n=t();if(e===document.activeElement){var i=Ct?or:ar;if(r.has(i))return}Ds(e)&&n===Os(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ds(e){var t=e.type;return t===`number`||t===`range`}function Os(e){return e===``?null:+e}function ks(){return(ks=o((()=>{vi(),kn(),$e(),kr(),Kt(),yt(),Xi(),_r(),Tt()})))()}function As(){return(As=o((()=>{vi(),kn()})))()}function js(){return(js=o((()=>{kn()})))()}function Ms(){return(Ms=o((()=>{vi(),ue()})))()}function Ns(){return(Ns=o((()=>{vi(),Xi()})))()}function Ps(e,t){return e===t||e?.[Oe]===t}function Fs(e={},t,n,r){var i=Bt.r,a=Hi;return ei(()=>{var o,s;return ni(()=>{o=s,s=r?.()||[],Li(()=>{Ps(n(...s),e)||(t(e,...s),o&&Ps(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Ps(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Is(){return(Is=o((()=>{Re(),Vt(),vi(),Xi()})))()}function Ls(){return(Ls=o((()=>{vi(),kn()})))()}function Rs(){return(Rs=o((()=>{vi(),kn()})))()}function zs(){return(zs=o((()=>{ue(),vi(),xa()})))()}function Bs(){return(Bs=o((()=>{ue(),Vt(),Jn(),vi(),Xi()})))()}function Vs(){return(Vs=o((()=>{Er(),Xi(),ue()})))()}function Hs(e,t,n){return new Proxy({props:e,exclude:t},Ws)}function Us(...e){return new Proxy({props:e},Gs)}function q(e,t,n,r){var i=!wt||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=Vn(r),z(l)):(c&&(c=!1,s=o?Li(r):r),s);let d;if(a){var f=Oe in e||ke in e;d=ie(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=gn(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&qe(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Vn:Hn)(()=>(_=!1,h()));a&&z(v);var y=Hi;return(function(e,t){if(arguments.length>0){let n=t?z(v):i&&a?Dr(e):e;return N(v,n),_=!0,s!==void 0&&(s=n),e}return zi&&_||y.f&16384?v.v:z(v)})}var Ws,Gs;function Ks(){return(Ks=o((()=>{at(),ue(),Er(),Jn(),Xi(),$e(),Re(),kr(),bn(),Tt(),vi(),Ws={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}},Gs={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(v(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];v(i)&&(i=i());let a=ie(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(v(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=ie(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Oe||t===ke)return!1;for(let n of e.props)if(v(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(v(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}}})))()}function qs(){return(qs=o((()=>{Vt(),vi(),bn(),Bn()})))()}function Js(){return(Js=o((()=>{Re(),vi(),Er(),La(),Xi(),_r(),ue(),Vt(),Tt(),$t(),zs()})))()}function Ys(){return(Ys=o((()=>{Js(),vi(),ka(),ue(),Wr()})))()}function Xs(){return(Xs=o((()=>{Re(),At(),Xi()})))()}function J(){return(J=o((()=>{Zi(),Vt(),sa(),la(),Ra(),za(),Ba(),jt(),Va(),Ha(),Ya(),Xa(),$a(),to(),po(),ho(),go(),yo(),xo(),Lo(),zo(),Bo(),Vo(),Uo(),Cs(),ts(),xa(),En(),ws(),is(),Fo(),Ts(),ks(),As(),js(),Ms(),cs(),Ns(),Is(),Ls(),Rs(),yt(),zs(),Bs(),Vs(),ka(),Bn(),_r(),Jn(),vi(),Er(),Ks(),bn(),Fn(),bi(),La(),Xi(),qs(),wo(),kr(),Ys(),Wr(),$o(),At(),ue(),_o(),Ar(),Xs()})))()}function Zs(){return(Zs=o((()=>{yt()})))()}function Qs(e){Bt===null&&ze(`onMount`),wt&&Bt.l!==null?ec(Bt).m.push(e):L(()=>{let t=Li(e);if(typeof t==`function`)return t})}function $s(e){Bt===null&&ze(`onDestroy`),Qs(()=>()=>Li(e))}function ec(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function tc(){return(tc=o((()=>{Xi(),ue(),J(),$e(),Tt(),Vt(),_r(),Zs(),La(),yo()})))()}function Y(){return(Y=o((()=>{typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})))()}function nc(e,t){G(e,ac);let n=Hs(t,rc);var r=ic();ds(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-7w3buq`);var i=P(r,!0);E(r),R(()=>U(i,t.name)),H(e,r)}var rc,ic,ac;function oc(){return(oc=o((()=>{Y(),J(),rc=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),ic=B(`<span> </span>`),ac={hash:`svelte-7w3buq`,code:`.icon.small-arrow.svelte-7w3buq {overflow:hidden;width:12px;text-indent:-6px;}`}})))()}function sc(e,t){G(e,uc);let n=q(t,`ariaLive`,3,`assertive`),r=Hs(t,cc);var i=lc();ds(i,()=>({...r,role:`alert`,class:`sui alert ${t.status??``}`,"aria-live":n()}),void 0,void 0,void 0,`svelte-131cama`);var a=P(i),o=e=>{var n=V();vo(F(n),()=>t.icon),H(e,n)},s=e=>{{let n=j(()=>t.status===`success`?`check_circle`:t.status);nc(e,{get name(){return z(n)}})}};W(a,e=>{t.icon?e(o):e(s,-1)}),vo(I(a,2),()=>t.children??T),E(i),H(e,i)}var cc,lc,uc;function dc(){return(dc=o((()=>{Y(),J(),oc(),cc=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`ariaLive`,`children`,`icon`]),lc=B(`<div><!> <!></div>`),uc={hash:`svelte-131cama`,code:`.alert.svelte-131cama {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-131cama {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-131cama {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-131cama {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-131cama {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})))()}function fc(e,t){let n=t,r=e.slice(n).match(pc);r&&(n+=r[0].length);let i=e.slice(n).match(mc);if(!i)return null;let a=i[0];if(hc.test(a))return null;n+=a.length;let o=e.slice(n).match(pc);return o&&(n+=o[0].length),{value:a.normalize(),end:n}}var pc,mc,hc,gc;function _c(){return(_c=o((()=>{pc=/^[\u061c\u200e\u200f\u2066-\u2069]+/,mc=/^[-.+0-9A-Z_a-z\u{a1}-\u{61b}\u{61d}-\u{167f}\u{1681}-\u{1fff}\u{200b}-\u{200d}\u{2010}-\u{2027}\u{2030}-\u{205e}\u{2060}-\u{2065}\u{206a}-\u{2fff}\u{3001}-\u{d7ff}\u{e000}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{1fffd}\u{20000}-\u{2fffd}\u{30000}-\u{3fffd}\u{40000}-\u{4fffd}\u{50000}-\u{5fffd}\u{60000}-\u{6fffd}\u{70000}-\u{7fffd}\u{80000}-\u{8fffd}\u{90000}-\u{9fffd}\u{a0000}-\u{afffd}\u{b0000}-\u{bfffd}\u{c0000}-\u{cfffd}\u{d0000}-\u{dfffd}\u{e0000}-\u{efffd}\u{f0000}-\u{ffffd}\u{100000}-\u{10fffd}]+/u,hc=/^[-.0-9]/,gc=(e,t)=>e.slice(t).match(mc)?.[0]??``})))()}var vc;function yc(){return(yc=o((()=>{vc=Symbol.for(`CST`)})))()}var bc,xc,Sc,Cc,wc;function Tc(){return(Tc=o((()=>{yc(),bc=class extends Error{type;constructor(e,t){super(t),this.type=e}},xc=class extends bc{start;end;constructor(e,t,n,r){let i=r?`Missing ${r}`:e;t>=0&&(i+=` at ${t}`),super(e,i),this.start=t,this.end=n??t+1}},Sc=class extends xc{constructor(e,t){let{start:n,end:r}=t[vc]??{start:-1,end:-1};super(e,n,r)}},Cc=class extends bc{source;cause;constructor(e,t,n,r){super(e,t),this.source=n,r!==void 0&&(this.cause=r)}},wc=class extends bc{source;cause;constructor(e,t){super(e,t),this.source=`�`}}})))()}function Ec(e,t){if(Jc.startsWith(e,qc))t&&(qc+=e.length);else throw Yc(qc,e)}function Dc(e){qc=0,Jc=e;let t=jc();if(Jc.startsWith(`.match`,qc))return Oc(t);let n=t.length>0||Jc.startsWith(`{{`,qc);!n&&qc>0&&(qc=0);let r=Ac(n);if(n&&(Wc(),qc<Jc.length))throw Xc(`extra-content`,qc,Jc.length);return{type:`message`,declarations:t,pattern:r}}function Oc(e){qc+=6,Wc(!0);let t=[];for(;Jc[qc]===`$`;)t.push(zc()),Wc(!0);if(t.length===0)throw Xc(`empty-token`,qc);let n=[];for(;qc<Jc.length;)n.push(kc()),Wc();return{type:`select`,declarations:e,selectors:t,variants:n}}function kc(){let e=[];for(;qc<Jc.length;){Wc(e.length?`{`:!1);let t=Jc[qc];if(t===`{`)break;if(t===`*`)e.push({type:`*`}),qc+=1;else{let t=Bc(!0);t.value=t.value.normalize(),e.push(t)}}return{keys:e,value:Ac(!0)}}function Ac(e){if(e){if(Jc.startsWith(`{{`,qc))qc+=2;else throw Yc(qc,`{{`)}let t=[];loop:for(;qc<Jc.length;)switch(Jc[qc]){case`{`:t.push(Pc(!0));break;case`}`:if(!e)throw Xc(`parse-error`,qc);break loop;default:t.push(Lc())}if(e){if(Jc.startsWith(`}}`,qc))qc+=2;else throw Yc(qc,`}}`)}return t}function jc(){let e=[];Wc();loop:for(;Jc[qc]===`.`;){switch(Jc.substr(qc,6)){case`.input`:e.push(Mc());break;case`.local`:e.push(Nc());break;case`.match`:break loop;default:throw Xc(`parse-error`,qc)}Wc()}return e}function Mc(){qc+=6,Wc(),Ec(`{`,!1);let e=qc,t=Pc(!1);if(t.type===`expression`&&t.arg?.type===`variable`)return{type:`input`,name:t.arg.name,value:t};throw Xc(`bad-input-expression`,e,qc)}function Nc(){qc+=6,Wc(!0),Ec(`$`,!0);let e=Uc();return Wc(),Ec(`=`,!0),Wc(),Ec(`{`,!1),{type:`local`,name:e,value:Pc(!1)}}function Pc(e){let t=qc;qc+=1,Wc();let n=Rc(!1);n&&Wc(`}`);let r=Jc[qc],i,a;switch(r){case`@`:case`}`:break;case`:`:{qc+=1,i={type:`function`,name:Hc()};let e=Fc();e&&(i.options=e);break}case`#`:case`/`:{if(n||!e)throw Xc(`parse-error`,qc);qc+=1,a={type:`markup`,kind:r===`#`?`open`:`close`,name:Hc()};let t=Fc();t&&(a.options=t);break}default:throw Xc(`parse-error`,qc)}let o=Ic();if(a?.kind===`open`&&Jc[qc]===`/`&&(a.kind=`standalone`,qc+=1),Ec(`}`,!0),i){let e=n?{type:`expression`,arg:n,functionRef:i}:{type:`expression`,functionRef:i};return o&&(e.attributes=o),e}if(a)return o&&(a.attributes=o),a;if(!n)throw Xc(`empty-token`,t,qc);return o?{type:`expression`,arg:n,attributes:o}:{type:`expression`,arg:n}}function Fc(){Wc(`/}`);let e={},t=!0;for(;qc<Jc.length;){let n=Jc[qc];if(n===`@`||n===`/`||n===`}`)break;let r=qc,i=Hc();if(Object.hasOwn(e,i))throw Xc(`duplicate-option-name`,r,qc);Wc(),Ec(`=`,!0),Wc(),e[i]=Rc(!0),t=!1,Wc(`/}`)}return t?null:e}function Ic(){let e={},t=!0;for(;Jc[qc]===`@`;){let n=qc;qc+=1;let r=Hc();if(Object.hasOwn(e,r))throw Xc(`duplicate-attribute`,n,qc);Wc(`=/}`),Jc[qc]===`=`?(qc+=1,Wc(),e[r]=Bc(!0),Wc(`/}`)):e[r]=!0,t=!1}return t?null:e}function Lc(){let e=``,t=qc;loop:for(;t<Jc.length;++t)switch(Jc[t]){case`\\`:{let n=Jc[t+1];if(!`\\{|}`.includes(n))throw Xc(`bad-escape`,t,t+2);e+=Jc.substring(qc,t)+n,t+=1,qc=t+1;break}case`{`:case`}`:break loop}return e+=Jc.substring(qc,t),qc=t,e}function Rc(e){return Jc[qc]===`$`?zc():Bc(e)}function zc(){return qc+=1,{type:`variable`,name:Uc()}}function Bc(e){if(Jc[qc]===`|`)return Vc();let t=gc(Jc,qc);if(!t){if(e)throw Xc(`empty-token`,qc);return}return qc+=t.length,{type:`literal`,value:t}}function Vc(){qc+=1;let e=``;for(let t=qc;t<Jc.length;++t)switch(Jc[t]){case`\\`:{let n=Jc[t+1];if(!`\\{|}`.includes(n))throw Xc(`bad-escape`,t,t+2);e+=Jc.substring(qc,t)+n,t+=1,qc=t+1;break}case`|`:return e+=Jc.substring(qc,t),qc=t+1,{type:`literal`,value:e}}throw Yc(Jc.length,`|`)}function Hc(){let e=Uc();return Jc[qc]===`:`?(qc+=1,e+`:`+Uc()):e}function Uc(){let e=fc(Jc,qc);if(!e)throw Xc(`empty-token`,qc);return qc=e.end,e.value}function Wc(e=!1){let t=Jc[qc],n=!1;if(e){for(;Gc.has(t);)t=Jc[++qc];for(;Kc.has(t);)t=Jc[++qc],n=!0}for(;Gc.has(t)||Kc.has(t);)t=Jc[++qc];if(e&&!n&&(e===!0||!e.includes(Jc[qc])))throw Yc(qc,`' '`)}var Gc,Kc,qc,Jc,Yc,Xc;function Zc(){return(Zc=o((()=>{_c(),Tc(),Gc=new Set(``),Kc=new Set(`
|
|
19
|
-
\r `),Yc=(e,t)=>new xc(`missing-syntax`,e,e+t.length,t),Xc=(...e)=>new xc(...e)})))()}function Qc(e,t){let{node:n,pattern:r}=t,{functionRef:i=n,attributes:a=null,declaration:o=n,expression:s=n,key:c=n,markup:l=n,options:u=null,value:d=n,variant:f=n}=t,p=(e,t)=>{if(e){let n=u?.(e,t);if(d)for(let n of Object.values(e))d(n,t,`option`);n?.()}},m=(e,t)=>{if(e){let n=a?.(e,t);if(d)for(let n of Object.values(e))n!==!0&&d(n,t,`attribute`);n?.()}},h=(e,t)=>{if(typeof e==`object`){let n;switch(e.type){case`expression`:if(n=s?.(e,t),e.arg&&d?.(e.arg,t,`arg`),e.functionRef){let n=i?.(e.functionRef,t,e.arg);p(e.functionRef.options,t),n?.()}m(e.attributes,t);break;case`markup`:n=l?.(e,t),p(e.options,t),m(e.attributes,t)}n?.()}},g=e=>{let t=r?.(e);for(let t of e)h(t,`placeholder`);t?.()};for(let t of e.declarations){let e=o?.(t);t.value&&h(t.value,`declaration`),e?.()}if(e.type===`message`)g(e.pattern);else{if(d)for(let t of e.selectors)d(t,`selector`,`arg`);for(let t of e.variants){let e=f?.(t);c&&t.keys.forEach(c),g(t.value),e?.()}}}function cee(e,t=(e,t)=>{throw new Sc(e,t)}){let n=0,r=null,i=new Set,a=new Set,o=new Set,s=new Set,c=new Set,l=new Set,u=!0;Qc(e,{declaration(e){if(e.name)return(e.value.functionRef||e.type===`local`&&e.value.arg?.type===`variable`&&i.has(e.value.arg.name))&&i.add(e.name),e.type===`local`&&s.add(e.name),u=e.type===`local`,()=>{a.has(e.name)?t(`duplicate-declaration`,e):a.add(e.name)}},expression({functionRef:e}){e&&o.add(e.name)},value(e,o,s){if(e.type===`variable`)switch(c.add(e.name),o){case`declaration`:(s!==`arg`||u)&&a.add(e.name);break;case`selector`:n+=1,r=e,i.has(e.name)||t(`missing-selector-annotation`,e)}},variant(e){let{keys:i}=e;i.length!==n&&t(`key-mismatch`,e);let a=JSON.stringify(i.map(e=>e.type===`literal`?e.value:0));l.has(a)?t(`duplicate-variant`,e):l.add(a),r&&=i.every(e=>e.type===`*`)?null:e}}),r&&t(`missing-fallback`,r);for(let e of s)c.delete(e);return{functions:o,variables:c}}function $c(){return($c=o((()=>{Tc()})))()}function el(e){if(e)try{typeof e==`string`&&(e=new Intl.Locale(e));let t=e.getTextInfo?.()??e.textInfo;if(t?.direction)return t.direction;let n=e.maximize().script;if(n)return tl.includes(n)?`rtl`:`ltr`}catch{}return`auto`}var tl;function nl(){return(nl=o((()=>{tl=`Adlm,Arab,Hebr,Mand,Nkoo,Rohg,Syrc,Thaa`})))()}function rl(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`boolean`)return e;if(e&&typeof e==`object`&&(e=String(e)),e===`true`)return!0;if(e===`false`)return!1;throw RangeError(`Not a boolean`)}function il(e){if(e&&typeof e==`object`&&(e=e.valueOf()),e&&typeof e==`object`&&(e=String(e)),typeof e==`string`&&/^(0|[1-9][0-9]*)$/.test(e)&&(e=Number(e)),typeof e==`number`&&e>=0&&Number.isInteger(e))return e;throw RangeError(`Not a positive integer`)}function al(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`string`)return e;if(e&&typeof e==`object`)return String(e);throw RangeError(`Not a string`)}function ol(e){let t;if(typeof e==`object`){let n=e?.valueOf;typeof n==`function`&&(t=e.options,e=n.call(e))}if(typeof e==`string`)try{e=JSON.parse(e)}catch{}if(typeof e!=`bigint`&&typeof e!=`number`)throw new wc(`bad-operand`,`Input is not numeric`);return{value:e,options:t}}function sl(e,t,n,r){let{dir:i,locales:a}=e;n.useGrouping===`never`&&(n.useGrouping=!1),r&&`select`in n&&!e.literalOptionKeys.has(`select`)&&(e.onError(`bad-option`,`The option select may only be set by a literal value`),r=!1);let o,s,c,l;return{type:`number`,get dir(){return i??=(o??=Intl.NumberFormat.supportedLocalesOf(a,n)[0],el(o)),i},get options(){return{...n}},selectKey:r?e=>{let r=t;n.style===`percent`&&(r*=typeof r==`bigint`?100n:100);let i=String(r);if(e.has(i))return i;if(n.select===`exact`)return null;let o=n.select?{...n,select:void 0,type:n.select}:n;return c??=new Intl.PluralRules(a,o).select(Number(r)),e.has(c)?c:null}:void 0,toParts(){s??=new Intl.NumberFormat(a,n);let e=s.formatToParts(t);return o??=s.resolvedOptions().locale,i??=el(o),i===`ltr`||i===`rtl`?[{type:`number`,dir:i,locale:o,parts:e}]:[{type:`number`,locale:o,parts:e}]},toString(){return s??=new Intl.NumberFormat(a,n),l??=s.format(t),l},valueOf:()=>t}}function cl(e,t,n){let r=ol(n),i=r.value,a=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:a[n]=il(r);break;case`roundingMode`:case`roundingPriority`:case`select`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:a[n]=al(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :number option ${n}`)}return sl(e,i,a,!0)}function ll(e,t,n){let r=ol(n),i=Number.isFinite(r.value)?Math.round(r.value):r.value,a=Object.assign({},r.options,{maximumFractionDigits:0,minimumFractionDigits:void 0,minimumSignificantDigits:void 0,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`maximumSignificantDigits`:a[n]=il(r);break;case`select`:case`signDisplay`:case`useGrouping`:a[n]=al(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :integer option ${n}`)}return sl(e,i,a,!0)}function ul(){return(ul=o((()=>{nl(),Tc()})))()}function dl(e,t,n){let r=ol(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`currency`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`currency`:case`currencySign`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=al(r);break;case`minimumIntegerDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=il(r);break;case`currencyDisplay`:{let t=al(r);t===`never`?e.onError(`unsupported-operation`,`Currency display "never" is not yet supported`):i[n]=t;break}case`fractionDigits`:{let e=al(r);if(e===`auto`)i.minimumFractionDigits=void 0,i.maximumFractionDigits=void 0;else{let t=il(e);i.minimumFractionDigits=t,i.maximumFractionDigits=t}break}}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.currency)throw new wc(`bad-operand`,`A currency code is required for :currency`);return sl(e,r.value,i,!1)}function fl(){return(fl=o((()=>{Tc(),ul()})))()}function pl(e,t,n,r){let i={localeMatcher:t.localeMatcher},a=r;if(typeof a==`object`&&a){let t=a.options;t&&(i.calendar=t.calendar,e!==`date`&&(i.hour12=t.hour12),i.timeZone=t.timeZone),typeof a.valueOf==`function`&&(a=a.valueOf())}switch(typeof a){case`number`:case`string`:a=new Date(a)}if(!(a instanceof Date)||isNaN(a.getTime()))throw new wc(`bad-operand`,`Input is not a valid date`);if(n.calendar!==void 0)try{i.calendar=al(n.calendar)}catch{t.onError(`bad-option`,`Invalid :${e} calendar option value`)}if(n.hour12!==void 0&&e!==`date`)try{i.hour12=rl(n.hour12)}catch{t.onError(`bad-option`,`Invalid :${e} hour12 option value`)}if(n.timeZone!==void 0){let r;try{r=al(n.timeZone)}catch{t.onError(`bad-option`,`Invalid :${e} timeZone option value`)}if(r===`input`)i.timeZone===void 0&&t.onError(`bad-operand`,`Missing input timeZone value for :${e}`);else if(r!==void 0){if(i.timeZone!==void 0&&r!==i.timeZone)throw new wc(`bad-option`,`Time zone conversion is not supported`);i.timeZone=r}}if(e!==`time`){let r=e===`date`?`fields`:`dateFields`,a=e===`date`?`length`:`dateLength`,o=ml(t,n,r,hl)??`year-month-day`,s=ml(t,n,a,gl),c=new Set(o.split(`-`));c.has(`year`)&&(i.year=`numeric`),c.has(`month`)&&(i.month=s===`long`?`long`:s===`short`?`numeric`:`short`),c.has(`day`)&&(i.day=`numeric`),c.has(`weekday`)&&(i.weekday=s===`long`?`long`:`short`)}if(e!==`date`){switch(ml(t,n,e===`time`?`precision`:`timePrecision`,_l)){case`hour`:i.hour=`numeric`;break;case`second`:i.hour=`numeric`,i.minute=`numeric`,i.second=`numeric`;break;default:i.hour=`numeric`,i.minute=`numeric`}i.timeZoneName=ml(t,n,`timeZoneStyle`,vl)}let o=new Intl.DateTimeFormat(t.locales,i),s=t.dir,c,l;return{type:`datetime`,get dir(){return s??=(c??=o.resolvedOptions().locale,el(c)),s},get options(){return{...i}},toParts(){let e=o.formatToParts(a);return c??=o.resolvedOptions().locale,s??=el(c),s===`ltr`||s===`rtl`?[{type:`datetime`,dir:s,locale:c,parts:e}]:[{type:`datetime`,locale:c,parts:e}]},toString(){return l??=o.format(a),l},valueOf:()=>a}}function ml(e,t,n,r){let i=t[n];if(i!==void 0)try{let e=al(i);if(r&&!r.has(e))throw Error();return e}catch{e.onError(`bad-option`,`Invalid value for ${n} option`)}}var hl,gl,_l,vl,yl,bl,xl;function Sl(){return(Sl=o((()=>{nl(),Tc(),hl=new Set([`weekday`,`day-weekday`,`month-day`,`month-day-weekday`,`year-month-day`,`year-month-day-weekday`]),gl=new Set([`long`,`medium`,`short`]),_l=new Set([`hour`,`minute`,`second`]),vl=new Set([`long`,`short`]),yl=(e,t,n)=>pl(`datetime`,e,t,n),bl=(e,t,n)=>pl(`date`,e,t,n),xl=(e,t,n)=>pl(`time`,e,t,n)})))()}function Cl(e,t,n){let{value:r,options:i}=ol(n),a;try{a=`add`in t?il(t.add):-1}catch{throw new wc(`bad-option`,`Value ${t.add} is not valid for :offset option add`)}let o;try{o=`subtract`in t?il(t.subtract):-1}catch{throw new wc(`bad-option`,`Value ${t.subtract} is not valid for :offset option subtract`)}if(a<0==o<0)throw new wc(`bad-option`,`Exactly one of "add" or "subtract" is required as an :offset option`);let s=a<0?-o:a;return r+=typeof r==`number`?s:BigInt(s),cl(e,{},{valueOf:()=>r,options:i})}function wl(){return(wl=o((()=>{Tc(),ul()})))()}function Tl(e,t,n){let r=ol(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`percent`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`roundingMode`:case`roundingPriority`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=al(r);break;case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:i[n]=il(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :percent option ${n}`)}return sl(e,r.value,i,!0)}function El(){return(El=o((()=>{ul()})))()}function Dl(e,t,n){let r=n===void 0?``:String(n),i=r.normalize();return{type:`string`,dir:e.dir??`auto`,selectKey:e=>e.has(i)?i:null,toParts(){let{dir:t}=e,n=e.locales[0];return t===`ltr`||t===`rtl`?[{type:`string`,dir:t,locale:n,value:r}]:[{type:`string`,locale:n,value:r}]},toString:()=>r,valueOf:()=>r}}function Ol(e,t,n){let r=ol(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`unit`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`signDisplay`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`unit`:case`unitDisplay`:case`useGrouping`:i[n]=al(r);break;case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=il(r)}}catch(t){t instanceof bc?e.onError(t):e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.unit)throw new wc(`bad-operand`,`A unit identifier is required for :unit`);return sl(e,r.value,i,!1)}function kl(){return(kl=o((()=>{Tc(),ul()})))()}var Al,jl;function Ml(){return(Ml=o((()=>{nl(),fl(),Sl(),ul(),wl(),El(),kl(),Al={integer:ll,number:cl,offset:Cl,string:Dl},Al=Object.freeze(Object.assign(Object.create(null),Al)),jl={currency:dl,date:bl,datetime:yl,percent:Tl,time:xl,unit:Ol},jl=Object.freeze(Object.assign(Object.create(null),jl))})))()}var Nl;function Pl(){return(Pl=o((()=>{Nl=Symbol(`bidi-isolate`)})))()}var Fl;function Il(){return(Il=o((()=>{Fl=(e=`�`)=>({type:`fallback`,source:e,toParts:()=>[{type:`fallback`,source:e}],toString:()=>`{${e}}`})})))()}var Ll;function Rl(){return(Rl=o((()=>{Ll=(e,t)=>({type:`unknown`,source:e,dir:`auto`,toParts:()=>[{type:`unknown`,value:t}],toString:()=>String(t),valueOf:()=>t})})))()}var zl;function Bl(){return(Bl=o((()=>{Tc(),eu(),zl=class{#e;#t;#n;dir;id;constructor(e,t,n){this.#e=e,this.#n=t,this.dir=void 0;let r=n&&Object.hasOwn(n,`u:dir`)?n[`u:dir`]:void 0;if(r){let t=String(Ql(e,r));if(t===`ltr`||t===`rtl`||t===`auto`)this.dir=t;else if(t!==`inherit`){let t=new wc(`bad-option`,`Unsupported value for u:dir option`);t.source=$l(r),e.onError(t)}}let i=n&&Object.hasOwn(n,`u:id`)?n[`u:id`]:void 0;if(this.id=i?String(Ql(e,i)):void 0,n){this.#t=new Set;for(let[e,t]of Object.entries(n))t.type===`literal`&&this.#t.add(e)}}get literalOptionKeys(){return new Set(this.#t)}get localeMatcher(){return this.#e.localeMatcher}get locales(){return this.#e.locales.map(String)}onError(e,t){let n;e instanceof wc?n=e:typeof e==`string`&&typeof t==`string`?n=new wc(e,t):(n=new wc(`function-error`,String(e)),n.cause=e),n.source=this.#n,this.#e.onError(n)}}})))()}function Vl(e,t,{name:n,options:r}){let i=`:${n}`,a=$l(t)??i;try{let o=t?[Ql(e,t)]:[],s=e.functions[n];if(!s)throw new Cc(`unknown-function`,`Unknown function ${i}`,a);let c=new zl(e,a,r),l=s(c,Hl(e,r),...o);if(typeof l!=`object`||!l||typeof l.type!=`string`)throw new Cc(`bad-function-result`,`Function ${i} did not return a MessageValue`,a);let u={source:a};return c.dir&&(u.dir=c.dir,u[Nl]=!0),c.id&&typeof l.toParts==`function`&&(u.toParts=()=>{let e=l.toParts();for(let t of e)t.id=c.id;return e}),{...l,...u}}catch(t){return e.onError(t instanceof bc?t:new Cc(`bad-function-result`,String(t),a,t)),Fl(a)}}function Hl(e,t){let n=Object.create(null);if(t)for(let[r,i]of Object.entries(t))r.startsWith(`u:`)||(n[r]=Ql(e,i));return n}function Ul(){return(Ul=o((()=>{Tc(),Il(),Pl(),Bl(),eu()})))()}function Wl(e,{arg:t,functionRef:n}){if(n)return Vl(e,t,n);switch(t?.type){case`literal`:{let n=`|${t.value}|`,r=Dl(new zl(e,n),{},t.value);return r.source=n,r}case`variable`:return Jl(e,t);default:throw Error(`Unsupported expression: ${t?.type}`)}}function Gl(){return(Gl=o((()=>{Bl(),Ul(),Zl()})))()}function Kl(e,t){if(Xl(e)){if(t in e)return e[t];let n=t.split(`.`);for(let t=n.length-1;t>0;--t){let r=n.slice(0,t).join(`.`);if(r in e){let i=n.slice(t).join(`.`);return Kl(e[r],i)}}for(let[n,r]of Object.entries(e))if(n.normalize()===t)return r}}function ql(e,{name:t}){let n=Kl(e.scope,t);if(n===void 0){let n=`$`+t,r=`Variable not available: ${n}`;e.onError(new Cc(`unresolved-variable`,r,n))}else if(n instanceof Yl){let r=Wl(n.scope?{...e,scope:n.scope}:e,n.expression);return e.scope[t]=r,e.localVars.add(r),r}return n}function Jl(e,t){let n=`$`+t.name,r=ql(e,t);if(r===void 0)return Fl(n);let i=typeof r;if(i===`object`){let t=r;if(t.type===`fallback`)return Fl(n);if(e.localVars.has(t))return t.source=n,t;r instanceof Number?i=`number`:r instanceof String&&(i=`string`)}let a;switch(i){case`bigint`:case`number`:a=e.functions.number;break;case`string`:a=e.functions.string;break;default:return Ll(n,r)}let o=new zl(e,n),s=a(o,{},r);return s.source=n,s}var Yl,Xl;function Zl(){return(Zl=o((()=>{Tc(),Il(),Rl(),Bl(),Gl(),Yl=class{expression;scope;constructor(e,t){this.expression=e,this.scope=t}},Xl=e=>e!==null&&(typeof e==`object`||typeof e==`function`)})))()}function Ql(e,t){switch(t.type){case`literal`:return t.value;case`variable`:return ql(e,t);default:throw Error(`Unsupported value: ${t.type}`)}}function $l(e){switch(e?.type){case`literal`:return`|`+e.value.replaceAll(`\\`,`\\\\`).replaceAll(`|`,`\\|`)+`|`;case`variable`:return`$`+e.name;default:return}}function eu(){return(eu=o((()=>{Zl()})))()}function tu(e,{kind:t,name:n,options:r}){let i={type:`markup`,kind:t,name:n},a=r?Object.entries(r):null;if(a?.length){i.options={};for(let[t,n]of a)if(t===`u:dir`){let r=new wc(`bad-option`,`The option ${t} is not valid for markup`);r.source=$l(n),e.onError(r)}else{let r=Ql(e,n);typeof r==`object`&&typeof r?.valueOf==`function`&&(r=r.valueOf()),t===`u:id`?i.id=String(r):i.options[t]=r}}return i}function nu(){return(nu=o((()=>{Tc(),eu()})))()}function ru(e,t){if(t.type===`message`)return t.pattern;let n=t.selectors.map(t=>{let n=Jl(e,t),r;return typeof n.selectKey==`function`?r=n.selectKey.bind(n):(e.onError(new Cc(`bad-selector`,`Selector does not support selection`,n.source)),r=()=>null),{selectKey:r,source:n.source,best:null,keys:null}}),r=t.variants;loop:for(let i=0;i<n.length;++i){let a=n[i];if(!a.keys){a.keys=new Set;for(let{keys:e}of r){let t=e[i];if(!t)break loop;t.type!==`*`&&a.keys.add(t.value)}}try{a.best=a.keys.size?a.selectKey(a.keys):null}catch(t){e.onError(new Cc(`bad-selector`,`Selection failed`,a.source,t)),a.selectKey=()=>null,a.best=null}if(r=r.filter(e=>{let t=e.keys[i];return t.type===`*`?a.best==null:a.best===t.value}),r.length===0){if(i===0)break;let e=n[i-1];e.best==null?e.keys?.clear():e.keys?.delete(e.best);for(let e=i;e<n.length;++e)n[e].keys=null;r=t.variants,i=-1}}let i=r[0];return i?i.value:(e.onError(new Cc(`no-match`,`No variant was selected!?`,`.match`)),[])}function iu(){return(iu=o((()=>{Tc(),Zl()})))()}var au;function ou(){return(ou=o((()=>{Zc(),$c(),nl(),Tc(),Ml(),Pl(),nu(),Gl(),Zl(),iu(),au=class{#e;#t;#n;#r;#i;#a;constructor(e,t,n){this.#e=n?.bidiIsolation!==`none`,this.#n=n?.localeMatcher??`best fit`,this.#r=Array.isArray(e)?e.map(e=>new Intl.Locale(e)):e?[new Intl.Locale(e)]:[],this.#t=n?.dir??el(this.#r[0]),this.#i=typeof t==`string`?Dc(t):t,cee(this.#i),this.#a=n?.functions?Object.assign(Object.create(null),Al,n.functions):Al}format(e,t){let n=this.#o(e,t),r=``;for(let e of ru(n,this.#i))if(typeof e==`string`)r+=e;else if(e.type===`markup`)tu(n,e);else{let t;try{if(t=Wl(n,e),typeof t.toString==`function`){if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[Nl])){let e=t.dir===`ltr`?``:t.dir===`rtl`?``:``;r+=e+t.toString()+``}else r+=t.toString()}else{let e=new wc(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i=`{${t?.source??`�`}}`;r+=this.#e?``+i+``:i}}return r}formatToParts(e,t){let n=this.#o(e,t),r=[];for(let e of ru(n,this.#i))if(typeof e==`string`)r.push({type:`text`,value:e});else if(e.type===`markup`)r.push(tu(n,e));else{let t;try{if(t=Wl(n,e),typeof t.toParts==`function`){let e=t.toParts();if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[Nl])){let n=t.dir===`ltr`?``:t.dir===`rtl`?``:``;r.push({type:`bidiIsolation`,value:n},...e,{type:`bidiIsolation`,value:``})}else r.push(...e)}else{let e=new wc(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i={type:`fallback`,source:t?.source??`�`};this.#e?r.push({type:`bidiIsolation`,value:``},i,{type:`bidiIsolation`,value:``}):r.push(i)}}return r}#o(e,t=e=>{try{process.emitWarning(e)}catch{console.warn(e)}}){let n={...e};for(let t of this.#i.declarations)n[t.name]=new Yl(t.value,t.type===`input`?e??{}:void 0);return{onError:t,localeMatcher:this.#n,locales:this.#r,localVars:new WeakSet,functions:this.#a,scope:n}}}})))()}function su(){return(su=o((()=>{ou()})))()}function cu(){return(cu=o((()=>{J(),Er(),jt(),Xi()})))()}function lu(){return(lu=o((()=>{Er(),jt(),Xi()})))()}var uu;function du(){return(du=o((()=>{Er(),jt(),Xi(),uu=class extends Map{#e=new Map;#t=M(0);#n=M(0);#r=Yi||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return Yi===this.#r?M(e):vr(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return z(this.#t),!1}return z(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{z(this.#t);return}}return z(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),N(this.#n,super.size),xr(o);else if(i!==t){xr(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&xr(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),N(n,-1)),r&&(N(this.#n,super.size),xr(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;N(this.#n,0);for(var t of e.values())N(t,-1);xr(this.#t),e.clear()}}#a(){z(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)z(n)}keys(){return z(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return z(this.#n),super.size}}})))()}function fu(){return(fu=o((()=>{Er(),jt(),Xi(),pu()})))()}function pu(){return(pu=o((()=>{Er(),jt(),Xi(),fu()})))()}function mu(){return(mu=o((()=>{xa()})))()}function hu(){return(hu=o((()=>{jn()})))()}function gu(){return(gu=o((()=>{mu(),hu()})))()}function _u(){return(_u=o((()=>{cu(),lu(),du(),pu(),fu(),gu(),jn()})))()}var vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,X,Uu,Wu,Gu,Ku,qu,Ju,Yu;function Z(){return(Z=o((()=>{J(),su(),Ml(),_u(),Intl.MessageFormat??=au,vu=M(``),yu=Dr([]),bu=Dr({}),xu=``,Su=``,wu={},Tu={},Du=(e,t)=>{if(typeof t!=`string`||!t)throw TypeError(`${e} must be a non-empty string (got ${JSON.stringify(t)})`)},Ou=(e,t)=>{if(typeof t!=`string`)throw TypeError(`${e} must be a string (got ${typeof t})`)},ku=(e,t)=>{if(typeof t!=`function`)throw TypeError(`${e} must be a function (got ${typeof t})`)},Au=(e,t)=>{if(!e||!t.length||t.includes(e))return e;try{let n=new Intl.Locale(e).language;return t.find(e=>{try{return new Intl.Locale(e).language===n}catch{return!1}})??e}catch{return e}},ju=(e,t=``)=>Object.entries(e).reduce((e,[n,r])=>{let i=t?`${t}.${n}`:n;return typeof r==`object`&&r&&!Array.isArray(r)?Object.assign(e,ju(r,i)):e[i]=r,e},Object.create(null)),Mu=e=>{yu.includes(e)||(yu.push(e),Su=Au(xu,yu))},Nu=()=>{z(vu)&&!yu.includes(z(vu))&&zu.set(z(vu))},Pu=(e,...t)=>{Du(`addMessages: localeCode`,e),t.forEach((e,t)=>{if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`addMessages: maps[${t}] must be a plain object (got ${Array.isArray(e)?`array`:typeof e})`)}),Mu(e),bu[e]??={};let n=bu[e],r={...Yu,...Tu};t.forEach(t=>{Object.entries(ju(t)).forEach(([t,i])=>{n[t]=new Intl.MessageFormat(e,String(i),{functions:r})})}),Nu()},Fu=new uu,Iu=new uu,Lu=(e=z(vu))=>{if(Ou(`waitLocale: localeCode`,e),!e)return Promise.resolve();if(!Iu.has(e)){let t=Fu.get(e);if(t){let n=Promise.resolve(t()).then(t=>{Pu(e,t)},()=>{Iu.delete(e),z(vu)===e&&!bu[e]&&Su&&N(vu,Su,!0)});Iu.set(e,n)}else Iu.set(e,Promise.resolve())}return Iu.get(e)??Promise.resolve()},Ru=(e=z(vu))=>el(e)===`rtl`,zu={get current(){return z(vu)},set(e){Ou(`locale.set: value`,e);let t=yu.length?Au(e,yu):e;if(e&&yu.length&&!yu.includes(t)&&Su&&yu.includes(Su)&&(t=Su),N(vu,t,!0),typeof document<`u`&&t){document.documentElement.lang=t;let e=el(t);e!==`auto`&&(document.documentElement.dir=e)}return Lu(t)}},Bu=(e,t)=>{Du(`register: localeCode`,e),ku(`register: loader`,t),Fu.set(e,t),Iu.delete(e),Mu(e),Nu()},Vu=()=>typeof navigator>`u`?void 0:navigator.languages?.[0]??navigator.language,Hu=e=>{if(!e||typeof e.fallbackLocale!=`string`)throw TypeError(`init: fallbackLocale must be a string (got ${JSON.stringify(e?.fallbackLocale)})`);e.initialLocale!==void 0&&Ou(`init: initialLocale`,e.initialLocale),e.handleMissingMessage!==void 0&&ku(`init: handleMissingMessage`,e.handleMissingMessage),xu=e.fallbackLocale,Su=Au(xu,yu),Cu=e.handleMissingMessage,wu=e.formats??{},e.initialLocale&&zu.set(e.initialLocale)},X=(e,{values:t={},locale:n,default:r,formats:i}={})=>{if(e==null)throw TypeError(`format: key must be a string or message object (got ${JSON.stringify(e)})`);if(typeof e==`object`){let{id:t,values:n={},locale:r,default:i,formats:a}=e;return X(t,{values:n,locale:r,default:i,formats:a})}let a=n??z(vu),o=Su;Eu=i;let s;try{s=bu[a]?.[e]?.format(t)??(a===o?void 0:bu[o]?.[e]?.format(t))}finally{Eu=void 0}if(s!==void 0)return s;if(Cu){let t=Cu(e,a,r);if(t!==void 0)return t}return r??e},Uu=`_default`,Wu={date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}},number:{currency:{style:`currency`},percent:{style:`percent`},scientific:{notation:`scientific`},engineering:{notation:`engineering`},compactLong:{notation:`compact`,compactDisplay:`long`},compactShort:{notation:`compact`,compactDisplay:`short`}}},Gu=(e,t)=>wu[e]?.[t]??Wu[e]?.[t],Ku=e=>{let t=Eu?.[e];return(typeof t==`string`?Gu(e,t):t)??wu[e]?.[Uu]},qu=(e,t,n)=>{let r=e.valueOf();return{...e,dir:n?el(n):e.dir,toString:()=>t.format(r)}},Ju=(e,t,n)=>(r,i,a)=>{let o=e(r,i,a),s=Ku(t);if(!s)return o;let{locale:c,...l}=s;return qu(o,new n(c??r.locales,l),c)},Yu={...jl,date:Ju(jl.date,`date`,Intl.DateTimeFormat),time:Ju(jl.time,`time`,Intl.DateTimeFormat),datetime:Ju(jl.datetime,`datetime`,Intl.DateTimeFormat),number:Ju(Al.number,`number`,Intl.NumberFormat),integer:Ju(Al.integer,`number`,Intl.NumberFormat)}})))()}var Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld;function ud(){return(ud=o((()=>{Zu=()=>(Xu??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Xu),Qu=[`Ctrl`,`Meta`,`Alt`,`Shift`],$u=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),ed=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:$u.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),td=e=>e.replace(/\bAccel\b/g,Zu()?`Meta`:`Ctrl`),nd=new Map,rd=e=>{let t=nd.get(e);return t||(t=td(e).split(/\s+/).map(e=>{let t=e.split(`+`);return{ctrl:t.includes(`Ctrl`),meta:t.includes(`Meta`),alt:t.includes(`Alt`),shift:t.includes(`Shift`),tokens:t.filter(e=>!Qu.includes(e))}}),nd.set(e,t)),t},id=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.some(({ctrl:t,meta:o,alt:s,shift:c,tokens:l})=>t===n&&o===r&&s===i&&c===a&&l.every(t=>ed(t,e)))},ad=(e,t)=>id(e,rd(t)),od=new Map,sd=(e,t)=>{let{disabled:n}=e;if(!e.getClientRects().length)return;let{top:r,left:i}=e.getBoundingClientRect();n&&e.style.setProperty(`pointer-events`,`auto`);let a=document.elementsFromPoint(i+4,r+4).includes(e);n&&e.style.removeProperty(`pointer-events`),a&&(t.preventDefault(),n||(e.focus(),e.click()))},cd=e=>{od.forEach((t,n)=>{id(e,t)&&sd(n,e)})},ld=(e=``)=>{let t=e?td(e):void 0;if(!t)return()=>()=>{};let n=rd(t);return e=>(od.size||globalThis.addEventListener(`keydown`,cd,{capture:!0}),od.set(e,n),e.setAttribute(`aria-keyshortcuts`,t),()=>{od.delete(e),e.removeAttribute(`aria-keyshortcuts`),od.size||globalThis.removeEventListener(`keydown`,cd,{capture:!0})})}})))()}function dd(e,t){G(e,pd);let n=q(t,`lines`,3,1),r=q(t,`children`,3,void 0);var i=fd();vo(P(i),()=>r()??T),E(i),R(()=>rs(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),H(e,i)}var fd,pd;function md(){return(md=o((()=>{Y(),J(),fd=B(`<span role="none" class="sui truncated-text svelte-oxlw4x"><!></span>`),pd={hash:`svelte-oxlw4x`,code:`.truncated-text.svelte-oxlw4x {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})))()}var hd;function gd(){return(gd=o((()=>{hd=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)})})))()}function _d(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}function vd(e,t,n){n||={};let r,i;switch(t){case`RFC3548`:case`RFC4648`:r=yd,i=!0;break;case`RFC4648-HEX`:r=bd,i=!0;break;case`Crockford`:r=xd,i=!1;break;default:throw Error(`Unknown base32 variant: `+t)}let a=n.padding===void 0?i:n.padding,o=_d(e),s=0,c=0,l=``;for(let e=0;e<o.byteLength;e++)for(c=c<<8|o.getUint8(e),s+=8;s>=5;)l+=r[c>>>s-5&31],s-=5;if(s>0&&(l+=r[c<<5-s&31]),a)for(;l.length%8!=0;)l+=`=`;return l}var yd,bd,xd;function Sd(){return(Sd=o((()=>{yd=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,bd=`0123456789ABCDEFGHIJKLMNOPQRSTUV`,xd=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`})))()}var Cd,wd,Td,Ed;function Dd(){return(Dd=o((()=>{Sd(),Cd=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,wd=e=>{let t=globalThis.crypto.randomUUID();return e===`short`?t.split(`-`).pop():e===`shorter`?t.split(`-`).shift():typeof e==`number`?t.split(`-`).join(``).slice(0,e):t},Td=()=>{let e=wd().replaceAll(`-`,``),{buffer:t}=new Uint8Array(e.match(/../g).map(e=>parseInt(e,16)));return vd(t,`RFC4648`,{padding:!1}).toLowerCase()},Ed=async(e,{algorithm:t=`SHA-1`,format:n=`hex`}={})=>{let r;if(typeof e==`string`){let t=new TextEncoder().encode(e);r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e instanceof ArrayBuffer)r=e;else if(ArrayBuffer.isView(e)){let t=e;r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e&&typeof e.arrayBuffer==`function`)r=await e.arrayBuffer();else throw Error(`Unsupported input type for getHash`);let i=await globalThis.crypto.subtle.digest(t,r);return n===`binary`?Array.from(new Uint8Array(i),e=>String.fromCharCode(e)).join(``):Array.from(new Uint8Array(i),e=>e.toString(16).padStart(2,`0`)).join(``)}})))()}var Od,kd,Ad,jd,Md,Nd,Pd,Fd;function Id(){return(Id=o((()=>{Dd(),Ad=(e=`e`,t=7)=>[e,wd(t)].join(`-`),jd=e=>{Od?.delete(e),kd?.unobserve(e)},Md=()=>{if(`IntersectionObserver`in globalThis)return kd||(Od=new WeakMap,kd=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=Od?.get(t);n&&(n(),jd(t))})}),kd)},Nd=e=>{let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=globalThis;return r>0&&i>0&&t<a&&n<o},Pd=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},Fd=e=>{let t=Md();if(t)return Nd(e)?Promise.resolve(void 0):new Promise(n=>{Od?.set(e,n),Pd(()=>{t.observe(e)})})}})))()}var Ld,Rd;function zd(){return(zd=o((()=>{J(),Id(),gd(),mu(),Ld=class{#e=M(!1);get open(){return z(this.#e)}set open(e){N(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&window.requestAnimationFrame(()=>{let{activeElement:e}=document;(!e||e===document.body||this.popupElement?.contains(e))&&this.anchorElement.focus()}),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=M(Dr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){N(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let n=this.contentElement??this.popupElement?.querySelector(`.content`)??null;if(!n)return;let{scrollHeight:r,scrollWidth:i}=n,a=e.top-8,o=t.height-e.bottom-8,{position:s}=this,c;document.dir===`rtl`&&(s.endsWith(`-left`)?s=s.replace(`-left`,`-right`):s.endsWith(`-right`)&&(s=s.replace(`-right`,`-left`)),s.startsWith(`left-`)?s=s.replace(`left-`,`right-`):s.startsWith(`right-`)&&(s=s.replace(`right-`,`left-`))),s.startsWith(`bottom-`)&&r>o&&(a>o?(s=s.replace(`bottom-`,`top-`),c=a):c=o),s.endsWith(`-left`)&&e.left+i>t.width-8&&(s=s.replace(`-left`,`-right`)),s.endsWith(`-right`)&&e.right-i<8&&(s=s.replace(`-right`,`-left`));let l={inset:[s.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:s.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,s.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:s.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,s.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:s.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,s.startsWith(`right-`)?`${Math.round(e.right)}px`:s.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:s.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:c?`${Math.round(c)}px`:`auto`};(l.inset!==this.style.inset||l.zIndex!==this.style.zIndex||l.minWidth!==this.style.minWidth||l.maxWidth!==this.style.maxWidth||l.height!==this.style.height)&&(this.style=l)})});popupElement=void 0;contentElement=void 0;#n=void 0;constructor(e,t,n,r){this.anchorElement=e,this.position=n,this.positionBaseElement=r??e,this.id=Ad(`popup`),this.anchorElement.setAttribute(`aria-expanded`,`false`),fa(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),fa(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),fa(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement),t&&this.attachPopupElement(t)}attachPopupElement(e,t){if(this.popupElement===e&&this.contentElement===t)return;this.detachPopupElement(),this.popupElement=e,this.contentElement=t;let n=t??e;n.id=this.id,this.anchorElement.setAttribute(`aria-controls`,this.id);let r=fa(e,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),i=fa(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)});this.#n=()=>{r(),i()}}detachPopupElement(){this.#n?.(),this.#n=void 0,this.anchorElement.getAttribute(`aria-controls`)===this.id&&this.anchorElement.removeAttribute(`aria-controls`),this.popupElement=void 0,this.contentElement=void 0}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.popupElement&&(this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement))}async hideImmediately(){this.popupElement&&(this.popupElement.hidden=!0),this.open=!1,await hd(50),this.popupElement&&(this.popupElement.hidden=!1)}destroy(){this.detachPopupElement(),this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Rd=(...e)=>new Ld(...e)})))()}function Bd(e,t){var n=V();vo(F(n),()=>t.children??T),H(e,n)}function Vd(){return(Vd=o((()=>{Y(),J()})))()}function Hd(e,t){D(t,!0),G(e,Kd);let n=e=>{var n=V(),l=F(n),d=e=>{var n=Gd(),l=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},d=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};ds(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:l,oncancel:d,[ms]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-1ncvgxv`);var f=P(n);vo(f,()=>t.extraContent??T),vo(I(f,2),()=>t.children??T),E(n),Fs(n,e=>i(e),()=>i()),H(e,n)};W(l,e=>{z(v)&&e(d)}),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`dialog`,15),a=q(t,`role`,3,`dialog`),o=q(t,`showBackdrop`,3,!1),s=q(t,`lightDismiss`,3,!1),c=q(t,`escapeDismiss`,3,!0),l=q(t,`keepContent`,3,!1),u=Hs(t,Wd),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=M(!1),m=M(!1),h=M(!1),g=M(0),_=Pt(Ud);Ft(Ud,{retain:()=>{Li(()=>{N(g,z(g)+1)})},release:()=>{Li(()=>{N(g,z(g)-1)})}});let v=j(()=>l()||z(h)||z(g)>0),y=!1,b=0,x=e=>Math.max(0,...e.split(`,`).map(e=>Number.parseFloat(e)||0))*1e3,S=async()=>{if(await Pi(),!i())return;let{transitionDuration:e,transitionDelay:t}=getComputedStyle(i()),n=x(e)+x(t)+100,r=new AbortController,{signal:a}=r;i().addEventListener(`transitionend`,e=>{e.target===i()&&r.abort()},{signal:a});let o=window.setTimeout(()=>r.abort(),n);await new Promise(e=>{a.addEventListener(`abort`,()=>e(void 0))}),window.clearTimeout(o)},C=async()=>{if(y)return;y=!0,b+=1;let e=b;t.onOpening?.(new CustomEvent(`Opening`)),N(h,!0),await Pi(),!(e!==b||!i()||i().open)&&(i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),i().getBoundingClientRect(),N(p,!0),await S(),e===b&&N(m,!0))},w=async()=>{if(!y)return;y=!1,b+=1;let e=b,n=z(p),r=i()?.returnValue??``;t.onClosing?.(new CustomEvent(`Closing`)),i()?.open&&(document.body.inert=!0,i().close(),document.body.inert=!1),N(m,!1),N(p,!1),n&&await S(),e===b&&(N(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i()&&i(i().returnValue=``,!0))},ee=It();return Qs(()=>{let e=ja(Bd,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n},context:ee});return()=>{i()?.close(),Na(e)}}),L(()=>{r()?C():w()}),L(()=>{if(z(h))return _?.retain(),()=>{_?.release()}}),O({focus:d,close:f})}var Ud,Wd,Gd,Kd;function qd(){return(qd=o((()=>{Y(),J(),tc(),Vd(),Ud=Symbol(`sui-modal-retainer`),Wd=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),Gd=B(`<dialog><!> <!></dialog>`),Kd={hash:`svelte-1ncvgxv`,code:`dialog.svelte-1ncvgxv {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-1ncvgxv::backdrop {background:transparent;}dialog.backdrop.svelte-1ncvgxv {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-1ncvgxv {transition-duration:50ms;opacity:1;}dialog.svelte-1ncvgxv:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-1ncvgxv {transition-duration:1ms !important;}dialog.svelte-1ncvgxv:not(.active) {pointer-events:none !important;}dialog.svelte-1ncvgxv:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}})))()}function Jd(e,t){D(t,!0),G(e,Zd);let n=e=>{var n=Xd();let o,s;vo(P(n),()=>t.children??T),E(n),Fs(n,e=>a(e),()=>a()),R(()=>{K(n,`hidden`,!r()),o=es(n,1,`content ${t.class??``} ${z(m)??``}`,`svelte-g4j8q`,o,{touch:z(_)}),s=rs(n,``,s,{inset:z(h)?.style.inset,"z-index":z(h)?.style.zIndex,"min-width":z(h)?.style.minWidth,"max-width":z(h)?.style.maxWidth,"max-height":z(h)?.style.height,visibility:z(h)?.style.inset?void 0:`hidden`})}),pa(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(g)}),pa(`mouseleave`,n,()=>{i(!1),l()&&(g=window.setTimeout(()=>{r(!1)},200))}),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`hovered`,15,!1),a=q(t,`content`,15,void 0),o=q(t,`showBackdrop`,3,void 0),s=q(t,`position`,3,`bottom-left`),c=q(t,`positionBaseElement`,3,void 0),l=q(t,`parentDialogElement`,3,void 0),u=q(t,`touchOptimized`,3,!1),d=Hs(t,Yd),f=M(void 0),p=M(!1),m=M(void 0),h=M(void 0),g=0;L(()=>{z(h)&&r(z(h).open)}),L(()=>{l()&&!z(f)&&a()&&(N(f,l()),z(f).append(a()))}),L(()=>{t.anchor&&!z(h)&&(N(h,Rd(t.anchor,void 0,s(),c()),!0),N(m,t.anchor.getAttribute(`aria-haspopup`)??void 0,!0))}),L(()=>{if(z(h)&&z(f)&&a())return z(h).attachPopupElement(z(f),a()),()=>{z(h)?.detachPopupElement()}}),L(()=>{r()&&z(f)&&z(h)?.checkPosition()});let _=j(()=>u()&&z(p));Qs(()=>(N(p,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(h)?.destroy?.(),globalThis.clearTimeout(g)}));var v=V(),y=F(v),b=e=>{n(e)},x=e=>{{let i=j(()=>o()??z(_));Hd(e,Us(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,onOpen:async e=>{if(t.onOpen?.(e),await hd(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(f)},set dialog(e){N(f,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};W(y,e=>{l()?e(b):e(x,-1)}),H(e,v),O()}var Yd,Xd,Zd;function Qd(){return(Qd=o((()=>{Y(),J(),gd(),tc(),zd(),qd(),Yd=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),Xd=B(`<div role="none"><!></div>`),Zd={hash:`svelte-g4j8q`,code:`.content.svelte-g4j8q {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-g4j8q {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-g4j8q .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-g4j8q {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-g4j8q .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.combobox.svelte-g4j8q {display:flex;flex-direction:column;overflow:hidden;}.content.touch.svelte-g4j8q {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-g4j8q {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-g4j8q {transform:scale(90%);}.content.touch.combobox.svelte-g4j8q .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-g4j8q {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-g4j8q {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}})))()}function $d(e,t){D(t,!0),G(e,af);let n=q(t,`element`,15),r=q(t,`class`,3,``),i=q(t,`type`,3,`button`),a=q(t,`role`,3,`button`),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,19,()=>typeof s()),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`pressed`,3,void 0),p=q(t,`keyShortcuts`,3,void 0),m=q(t,`label`,3,``),h=q(t,`lines`,3,1),g=q(t,`variant`,3,void 0),_=q(t,`size`,3,`medium`),v=q(t,`iconic`,3,!1),y=q(t,`pill`,3,!1),b=q(t,`flex`,3,!1),x=q(t,`popupPosition`,3,`bottom-left`),S=q(t,`showPopupBackdrop`,3,!1),C=Hs(t,ef);var w=rf(),ee=F(w);ds(ee,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[ms]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-12eqcs8`);var te=P(ee);vo(te,()=>t.startIcon??T);var ne=I(te,2),re=e=>{var n=V(),r=F(n),i=e=>{var t=tf();dd(P(t),{get lines(){return h()},children:(e,t)=>{mt();var n=Da();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),E(t),H(e,t)},a=e=>{var n=tf();vo(P(n),()=>t.children??T),E(n),H(e,n)};W(r,e=>{m()?e(i):e(a,-1)}),H(e,n)},ie=e=>{var n=nf(),r=F(n),i=e=>{var t=tf();dd(P(t),{get lines(){return h()},children:(e,t)=>{mt();var n=Da();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),E(t),H(e,t)};W(r,e=>{m()&&e(i)}),vo(I(r,2),()=>t.children??T),H(e,n)};W(ne,e=>{g()===`link`?e(re):e(ie,-1)}),vo(I(ne,2),()=>t.endIcon??T),E(ee),Fs(ee,e=>n(e),()=>n()),Ho(ee,()=>p()&&ld(p()));var ae=I(ee,2),oe=e=>{Jd(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=V();vo(F(r),()=>t.popup),H(e,r)},$$slots:{default:!0}})};W(ae,e=>{t.popup&&e(oe)}),H(e,w),O()}var ef,tf,nf,rf,af;function of(){return(of=o((()=>{Y(),J(),ud(),md(),Qd(),ef=new Set(`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`)),tf=B(`<span role="none" class="label svelte-12eqcs8"><!></span>`),nf=B(`<!> <!>`,1),rf=B(`<button><!> <!> <!></button> <!>`,1),af={hash:`svelte-12eqcs8`,code:`button.svelte-12eqcs8 {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-12eqcs8 {display:none !important;}button.svelte-12eqcs8:not(:disabled):focus-visible {z-index:1;}button.svelte-12eqcs8:is(.primary:where(.svelte-12eqcs8), .secondary:where(.svelte-12eqcs8), .tertiary:where(.svelte-12eqcs8), .ghost:where(.svelte-12eqcs8)) {justify-content:center;border-width:1px;}button.svelte-12eqcs8:is(.primary:where(.svelte-12eqcs8), .secondary:where(.svelte-12eqcs8), .tertiary:where(.svelte-12eqcs8), .ghost:where(.svelte-12eqcs8)) .label:where(.svelte-12eqcs8):only-child {padding:0 4px;}button.primary.svelte-12eqcs8 {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-12eqcs8:is(:where(.svelte-12eqcs8):hover, :where(.svelte-12eqcs8):focus-visible, [aria-expanded=true]:where(.svelte-12eqcs8)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-12eqcs8:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-12eqcs8 {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-12eqcs8:is(:where(.svelte-12eqcs8):hover, :where(.svelte-12eqcs8):focus-visible, [aria-expanded=true]:where(.svelte-12eqcs8)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-12eqcs8:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-12eqcs8 {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-12eqcs8 {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-12eqcs8:is(:where(.svelte-12eqcs8):hover, :where(.svelte-12eqcs8):focus-visible, [aria-expanded=true]:where(.svelte-12eqcs8)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-12eqcs8:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-12eqcs8 {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-12eqcs8 {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-12eqcs8:is(:where(.svelte-12eqcs8):hover, :where(.svelte-12eqcs8):focus-visible, [aria-expanded=true]:where(.svelte-12eqcs8)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-12eqcs8:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-12eqcs8 {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-12eqcs8 {margin:0;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-12eqcs8 .label:where(.svelte-12eqcs8) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-12eqcs8 .label:where(.svelte-12eqcs8) {text-decoration:underline;}button.small.svelte-12eqcs8 {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-12eqcs8 .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-12eqcs8 {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-12eqcs8 {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-12eqcs8 {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-12eqcs8:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-12eqcs8 {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-12eqcs8 {background-color:var(--sui-error-background-color);}button.svelte-12eqcs8 .label:where(.svelte-12eqcs8) {padding:0 4px;}button.svelte-12eqcs8 > * {pointer-events:none;}button.svelte-12eqcs8 :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}})))()}function sf(e,t){D(t,!0),G(e,uf);let n=q(t,`show`,15,!0),r=q(t,`dismissible`,3,!0),i=q(t,`status`,3,`info`),a=q(t,`ariaLive`,3,`polite`),o=q(t,`children`,3,void 0),s=q(t,`icon`,3,void 0);var c=V(),l=F(c),u=e=>{var t=lf(),c=P(t),l=P(c),u=e=>{var t=V();vo(F(t),s),H(e,t)},d=e=>{{let t=j(()=>i()===`success`?`check_circle`:i());nc(e,{get name(){return z(t)}})}};W(l,e=>{s()?e(u):e(d,-1)}),vo(I(l,2),()=>o()??T),E(c);var f=I(c,2),p=e=>{var t=cf(),r=P(t);{let e=j(()=>X(`_sui.dismiss`));$d(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{nc(e,{name:`close`})},$$slots:{default:!0}})}E(t),H(e,t)};W(f,e=>{r()&&e(p)}),E(t),R(()=>{es(t,1,`infobar ${i()??``}`,`svelte-16xc59d`),K(c,`aria-live`,a())}),H(e,t)};W(l,e=>{n()&&e(u)}),H(e,c),O()}var cf,lf,uf;function df(){return(df=o((()=>{Y(),J(),Z(),of(),oc(),cf=B(`<div role="none"><!></div>`),lf=B(`<div role="none"><div role="alert" class="message svelte-16xc59d"><!> <!></div> <!></div>`),uf={hash:`svelte-16xc59d`,code:`.infobar.svelte-16xc59d {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-16xc59d {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-16xc59d {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-16xc59d {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-16xc59d {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-16xc59d {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-16xc59d button {font-size:inherit !important;}.message.svelte-16xc59d .icon {font-size:16px; /* !hardcoded */}`}})))()}function ff(e,t){G(e,hf);let n=Hs(t,pf);var r=mf();ds(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-1n077li`),vo(P(r),()=>t.children??T),E(r),H(e,r)}var pf,mf,hf;function gf(){return(gf=o((()=>{Y(),J(),pf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),mf=B(`<div><!></div>`),hf={hash:`svelte-1n077li`,code:`.bottom-navigation.svelte-1n077li {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-1n077li:is([inert]:where(.svelte-1n077li), [hidden]:where(.svelte-1n077li)) {display:none;}.bottom-navigation.svelte-1n077li .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}})))()}function lee(e,t){G(e,yf);let n=q(t,`ariaLabel`,3,void 0),r=Hs(t,_f);var i=vf();ds(i,()=>({...r,role:`group`,class:`sui button-group ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-1d0uh3e`),vo(P(i),()=>t.children??T),E(i),H(e,i)}var _f,vf,yf;function bf(){return(bf=o((()=>{Y(),J(),_f=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),vf=B(`<div><!></div>`),yf={hash:`svelte-1d0uh3e`,code:`.button-group.svelte-1d0uh3e {flex:none;display:inline-flex;align-items:center;}`}})))()}function xf(e,t){G(e,Cf);let n=q(t,`children`,3,void 0);var r=Sf();vo(P(r),()=>n()??T),E(r),H(e,r)}var Sf,Cf;function wf(){return(wf=o((()=>{Y(),J(),Sf=B(`<div role="none" class="sui floating-action-button-wrapper svelte-68eex4"><!></div>`),Cf={hash:`svelte-68eex4`,code:`.floating-action-button-wrapper.svelte-68eex4 {display:contents;}
|
|
20
|
-
@media (width < 768px) {.floating-action-button-wrapper.svelte-
|
|
21
|
-
}`}})))()}var Tf,Ef,Df,Of,kf;function Af(){return(Af=o((()=>{J(),tc(),Tf=Symbol(`sui-option-registry`),Ef=class{#e=M(!1);get expanded(){return z(this.#e)}set expanded(e){N(this.#e,e,!0)}#t=M([]);get count(){return z(this.#t).length}get selectedEntry(){return z(this.#t).find(e=>e.selected)}register(e){return N(this.#t,[...z(this.#t),e]),()=>{N(this.#t,z(this.#t).filter(t=>t!==e))}}find(e){return z(this.#t).find(t=>t.value===e)}selectOnly(e){z(this.#t).forEach(t=>{let n=t.value===e;t.selected!==n&&(t.selected=n)})}},Df=()=>Ft(Tf,new Ef),Of=()=>Pt(Tf),kf=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}}})))()}var jf,Mf,Nf,Pf,Ff,If,Lf,Rf;function zf(){return(zf=o((()=>{J(),Z(),Id(),gd(),Af(),jf=/\p{Diacritic}/gu,Mf=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(jf,``).toLocaleLowerCase():``),Nf={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!1,rovingTabStop:`selected`},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!0,rovingTabStop:`selected`}},Pf=`a[href], button, input, select, textarea, summary, [tabindex]`,Ff=(e,t)=>{let n=[...document.querySelectorAll(Pf)].filter(t=>t===e||t.tabIndex>=0&&!t.matches(`:disabled, [aria-disabled="true"], [hidden], [inert], [inert] *`)),r=n.indexOf(e);if(r===-1)return;let i=t?-1:1;for(let e=r+i;e>=0&&e<n.length;e+=i)if(n[e].getClientRects().length){n[e].focus();return}},If=e=>{let t=e;for(;t;){if(t.id){let e=document.querySelector(`[aria-haspopup="menu"][aria-controls="${CSS.escape(t.id)}"]`);if(e)return e}t=t.parentElement}return null},Lf=class{#e=void 0;#t=new WeakMap;#n=new WeakMap;#r(e){let t=e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent,n=this.#t.get(e);if(n?.raw===t)return n.normalized;let r=Mf(t);return this.#t.set(e,{raw:t,normalized:r}),r}constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=Ad(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o,controlsPanel:s,rovingTabStop:c}=Nf[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.controlsPanel=s,this.rovingTabStop=c,this.parent.tabIndex=a?-1:0,this.observer=new globalThis.MutationObserver(()=>{this.#e=void 0}),this.observer.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`aria-disabled`,`aria-hidden`]}),(async()=>{await hd(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=this.controlsPanel?document.querySelector(`#${e.getAttribute(`aria-controls`)}`):null;e.id||=`${this.id}-item-${t+1}`,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),this.updateTabStop(),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}updateTabStop(){let{allMembers:e,activeMembers:t}=this;if(!this.focusChild){e.forEach(e=>{e.tabIndex=-1});return}let n=this.rovingTabStop===`selected`?t.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)??t[0]:t[0];e.forEach(e=>{e.tabIndex=e===n?0:-1})}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get#i(){if(this.observer.takeRecords().length&&(this.#e=void 0),!this.#e){let e=[...this.parent.querySelectorAll(this.selector)];this.#e={all:e,active:e.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}}return this.#e}get allMembers(){return this.#i.all}get activeMembers(){return this.#i.active}get opener(){return If(this.parent)}get parentMenuItem(){let{opener:e}=this;return e?.matches(`[role^="menuitem"]`)?e:null}closeMenuChain(){let{opener:e}=this,t=e,n=null;for(let e=0;e<10&&t;e+=1){n=t,t.getAttribute(`aria-expanded`)===`true`&&t.click();let e=t.closest(`[role="menu"], [role="menubar"]`);t=e?If(e):null}return n}async leaveMenu(e){let t=this.closeMenuChain();t&&(t.focus(),await hd(50),Ff(t,e))}async enterSubmenu(e){let t=e.getAttribute(`aria-controls`);if(!t)return;e.getAttribute(`aria-expanded`)!==`true`&&e.click();let n=document.getElementById(t);for(let e=0;e<20;e+=1){let e=[...n?.querySelectorAll(this.selector)??[]].find(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`));if(e?.focus(),e&&document.activeElement===e)return;await hd(20)}}leaveSubmenu(e){e.getAttribute(`aria-expanded`)===`true`&&e.click(),e.focus()}get selected(){return this.activeMembers.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `,o=[],s=!1;this.activeMembers.forEach(c=>{let l=c.getAttribute(`role`),u=l===`menuitemcheckbox`,d=l===`menuitemradio`;if((u||d)&&(l!==n||c.closest(this.parentGroupSelector)!==r))return;let f=u||this.multi,p=d||!f,m=c===t,h=c.getAttribute(this.childSelectedAttr)===`true`,g=this.controlsPanel?c.getAttribute(`aria-controls`):null,_=g?document.getElementById(g):null;o.push(c),s||=m,f&&m&&(i||a)&&(c.setAttribute(this.childSelectedAttr,String(!h)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!h}})),h||c.dispatchEvent(new CustomEvent(`Select`))),p&&h!==m&&(!d||a||i)&&(c.setAttribute(this.childSelectedAttr,String(m)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:m}})),m&&(e.type===`keydown`&&l===`radio`&&c.click(),c.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild||(c.classList.toggle(`focused`,m),m&&c.dispatchEvent(new CustomEvent(`Focus`))),_&&(_.inert=!m,_.setAttribute(`aria-hidden`,String(!m)),m&&globalThis.setTimeout(()=>{try{_.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{_.scrollIntoView(!0)}},300)),m&&(this.parent.setAttribute(`aria-activedescendant`,c.id),globalThis.setTimeout(()=>{try{c.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{c.scrollIntoView(!0)}},300))}),this.focusChild&&globalThis.requestAnimationFrame(()=>{o.forEach(e=>{e.tabIndex=e===t?0:-1}),s&&(t.focus(),t.dispatchEvent(new CustomEvent(`Focus`)))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:kf(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r,s=this.childRoles.includes(`menuitem`);if(t===`Tab`&&s&&!n&&!r&&!a){e.preventDefault(),this.leaveMenu(i);return}if(o)return;let c=e.target,{allMembers:l,activeMembers:u}=this,d=(()=>{if(!this.focusChild)return u.find(e=>e.matches(`.focused`));if(c.matches(this.selector))return c})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){d?.click();return}if(t===` `){d&&this.selectTarget(e,d);return}if(t===`Escape`&&s){let{parentMenuItem:t}=this;if(t){e.preventDefault(),e.stopPropagation(),this.leaveSubmenu(t);return}}if(this.orientation===`vertical`&&s){let e=Ru()?`ArrowLeft`:`ArrowRight`,n=Ru()?`ArrowRight`:`ArrowLeft`;if(t===e&&d?.getAttribute(`aria-haspopup`)===`menu`){this.enterSubmenu(d);return}if(t===n){let{parentMenuItem:e}=this;if(e){this.leaveSubmenu(e);return}}}let f,p;if(this.grid){let e=Math.floor(this.parent.clientWidth/u[0].clientWidth),n=Ru();f=d?l.indexOf(d):-1,t===`ArrowUp`&&f>0&&(p=l[f-e]),t===`ArrowDown`&&f<l.length-1&&(p=l[f+e]),t===`ArrowLeft`&&f>0&&(p=l[f+(n?1:-1)]),t===`ArrowRight`&&f<l.length-1&&(p=l[f+(n?-1:1)]),p?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(p=void 0)}else{f=d?u.indexOf(d):-1;let e=Ru(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(f>0&&(p=u[f-1]),f<=0&&(p=u[u.length-1])),t===r&&(f<u.length-1&&(p=u[f+1]),f===u.length-1&&([p]=u))}p&&p!==d&&this.selectTarget(e,p)}destroy(){this.observer.disconnect(),this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=Mf(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=this.#r(e),r=!n.every(e=>t.includes(e));return this.#n.get(e)!==r&&(this.#n.set(e,r),e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}}))),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},Rf=e=>t=>{let n=typeof e==`function`,r=n?e():e,i=new Lf(t,r);return n&&L(()=>{i.onUpdate(e())}),()=>{i.destroy()}}})))()}function Bf(e,t){D(t,!0),G(e,Uf);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`ariaLabel`,3,void 0),c=Hs(t,Vf);var l=Hf();ds(l,()=>({...c,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-label":s()}),void 0,void 0,void 0,`svelte-1hno00v`);var u=P(l);vo(P(u),()=>t.children??T),E(u),E(l),Ho(l,Rf),R(()=>u.inert=r()),H(e,l),O()}var Vf,Hf,Uf;function Wf(){return(Wf=o((()=>{Y(),J(),zf(),Vf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`]),Hf=B(`<div><div role="none" class="inner svelte-1hno00v"><!></div></div>`),Uf={hash:`svelte-1hno00v`,code:`.select-button-group.svelte-1hno00v {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1hno00v:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1hno00v button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1hno00v button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-1hno00v button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-1hno00v button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-1hno00v button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1hno00v [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1hno00v [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1hno00v [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1hno00v {display:contents;}`}})))()}function Gf(e,t){D(t,!0);let n=q(t,`selected`,15,!1),r=Hs(t,Kf);$d(e,Us(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),O()}var Kf;function qf(){return(qf=o((()=>{Y(),J(),of(),Kf=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`])})))()}function Jf(e,t){D(t,!0);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`popupPosition`,3,`bottom-left`),a=q(t,`popupPositionBaseElement`,3,void 0),o=q(t,`showPopupBackdrop`,3,!1),s=q(t,`label`,3,``),c=q(t,`variant`,3,void 0),l=q(t,`size`,3,`medium`),u=q(t,`iconic`,3,!1),d=Hs(t,Yf),f=M(void 0);var p={focus:()=>{z(f)?.focus()}},m=Xf(),h=F(m);return $d(h,Us(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return z(f)},set element(e){N(f,e,!0)},startIcon:e=>{var n=V();vo(F(n),()=>t.startIcon??T),H(e,n)},children:e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)},endIcon:e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.endIcon),H(e,n)},a=e=>{nc(e,{name:`more_vert`})},o=e=>{nc(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),Jd(I(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=V();vo(F(r),()=>t.popup??T),H(e,r)},$$slots:{default:!0}}),H(e,m),O(p)}var Yf,Xf;function Zf(){return(Zf=o((()=>{Y(),J(),of(),oc(),Qd(),Yf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),Xf=B(`<!> <!>`,1)})))()}function Qf(e,t){D(t,!0),G(e,tp);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`label`,3,``),a=q(t,`variant`,3,void 0),o=q(t,`size`,3,`medium`),s=q(t,`popupPosition`,3,`bottom-left`),c=q(t,`showPopupBackdrop`,3,!1),l=Hs(t,$f),u=M(void 0);var d=ep(),f=P(d);$d(f,Us(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=I(f,2);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.chevronIcon),H(e,n)},a=e=>{nc(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},i=e=>{var n=V();vo(F(n),()=>t.popup??T),H(e,n)},l=j(()=>X(`_sui.split_button.more_options`));Jf(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return z(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return z(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}E(d),Fs(d,e=>N(u,e),()=>z(u)),R(e=>{K(d,`hidden`,n()),K(d,`aria-hidden`,n()),K(d,`aria-disabled`,r()),K(d,`aria-label`,e)},[()=>X(`_sui.split_button.x_options`,{values:{name:i()}})]),H(e,d),O()}var $f,ep,tp;function np(){return(np=o((()=>{Y(),J(),Z(),oc(),Zf(),of(),$f=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),ep=B(`<div role="group" class="sui split-button svelte-1ovs8c3"><!> <!></div>`),tp={hash:`svelte-1ovs8c3`,code:`.split-button.svelte-1ovs8c3 {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-1ovs8c3 button {margin:0;}.split-button.svelte-1ovs8c3 button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-1ovs8c3 button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}})))()}function rp(e,t){G(e,op);let n=q(t,`hidden`,3,!1),r=q(t,`orientation`,3,`horizontal`),i=q(t,`ariaLabel`,3,void 0),a=Hs(t,ip);var o=ap();ds(o,()=>({...a,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-9m8jje`),H(e,o)}var ip,ap,op;function sp(){return(sp=o((()=>{Y(),J(),ip=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`,`ariaLabel`]),ap=B(`<div></div>`),op={hash:`svelte-9m8jje`,code:`.divider.svelte-9m8jje {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-9m8jje {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-9m8jje {margin:0 8px;width:1px;height:100%;}`}})))()}function cp(e,t){G(e,dp);let n=q(t,`flex`,3,!1),r=Hs(t,lp);var i=up();ds(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[ms]:{flex:n()}}),void 0,void 0,void 0,`svelte-1j2awwb`),H(e,i)}var lp,up,dp;function fp(){return(fp=o((()=>{Y(),J(),lp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),up=B(`<div></div>`),dp={hash:`svelte-1j2awwb`,code:`.spacer.flex.svelte-1j2awwb:not([hidden]) {display:block;flex:auto;}.spacer.svelte-1j2awwb:not(.flex) {width:8px;height:8px;}`}})))()}function pp(e,t){G(e,gp);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`ariaLabel`,3,void 0),o=Hs(t,mp);var s=hp();ds(s,()=>({...o,role:`group`,class:`sui checkbox-group ${t.class??``} ${i()??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-roledescription":`checkbox group`,"aria-label":a()}),void 0,void 0,void 0,`svelte-cg90lg`);var c=P(s);vo(P(c),()=>t.children??T),E(c),E(s),R(()=>c.inert=r()),H(e,s)}var mp,hp,gp;function _p(){return(_p=o((()=>{Y(),J(),mp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`ariaLabel`,`children`]),hp=B(`<div><div role="none" class="inner svelte-cg90lg"><!></div></div>`),gp={hash:`svelte-cg90lg`,code:`.checkbox-group.svelte-cg90lg {display:inline-flex;}.checkbox-group.horizontal.svelte-cg90lg {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-cg90lg {gap:4px;flex-direction:column;}
|
|
22
|
-
@media (pointer: coarse) {.checkbox-group.vertical.svelte-
|
|
23
|
-
}.inner.svelte-
|
|
24
|
-
@media (max-height: 400px) {.content.small.svelte-
|
|
25
|
-
}.content.medium.svelte-
|
|
26
|
-
@media (max-height: 600px) {.content.medium.svelte-
|
|
27
|
-
}.content.large.svelte-
|
|
28
|
-
@media (max-height: 800px) {.content.large.svelte-
|
|
29
|
-
}.content.x-large.svelte-
|
|
30
|
-
@media (max-height: 1000px) {.content.x-large.svelte-
|
|
31
|
-
}:is(.header.svelte-
|
|
32
|
-
@media (width < 768px) {.footer.svelte-
|
|
33
|
-
}.body.svelte-
|
|
34
|
-
@media (width < 768px) {.body.svelte-
|
|
18
|
+
\r\f\xA0\v`]})))()}function es(e,t,n,r,i,a){var o=e[Me];if(_t||o!==n||o===void 0){var s=Jo(n,r,a);(!_t||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Me]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ts(){return(ts=o((()=>{$o(),Re(),yt()})))()}function ns(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function rs(e,t,n,r){var i=e[Ne];if(_t||i!==t){var a=Zo(t,r);(!_t||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ne]=t}else r&&(Array.isArray(r)?(ns(e,n?.[0],r[0]),ns(e,n?.[1],r[1],`important`)):ns(e,n,r));return r}function is(){return(is=o((()=>{$o(),Re(),yt()})))()}function as(e,t,n=!1){if(e.multiple){if(t==null)return;if(!w(t))return ct();for(var r of e.options)r.selected=t.includes(ss(r));return}for(r of e.options)if(ree(ss(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function os(e){var t=new MutationObserver(()=>{`__value`in e&&as(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Yr(()=>{t.disconnect()})}function ss(e){return`__value`in e?e.__value:e.value}function cs(){return(cs=o((()=>{vi(),kn(),kr(),ue(),ut(),_r()})))()}function ls(e){if(_t){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;K(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;K(e,`checked`,null),e.checked=r}}};e[Fe]=n,Ut(n),wn()}}function us(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function K(e,t,n,r){var i=fs(e);_t&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===vs)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Ae]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ps(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function see(e,t,n,r,i=!1,a=!1){if(_t&&i&&e.nodeName===ys){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||ls(o)}var s=fs(e),c=s[gs],l=!s[_s];let u=_t&&c;u&&dt(!1);var d=t||{},f=e.nodeName===bs;for(var p in t)p in n||(n[p]=null);n.class?n.class=qo(n.class):(r||n[ms])&&(n.class=null),n[hs]&&(n.style??=null);var m=ps(e);if(e.nodeName===ys&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,K(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){es(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[ms],n[ms]),d[i]=o,d[ms]=n[ms];continue}if(i===`style`){rs(e,o,t?.[hs],n[hs]),d[i]=o,d[hs]=n[hs];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=aee(r);if(iee(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)ma(r,e,o),ha([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=da(r,e,a,t)}}else if(i===`style`)K(e,i,o);else if(i===`autofocus`)Sn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)us(e,o);else{var y=i;l||(y=oee(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b){if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else b||m.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=tt)):typeof o!=`function`&&K(e,y,o,a)}}}}return u&&dt(!0),d}function ds(e,t,n=[],r=[],i=[],a,o=!1,s=!1){In(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===xs,l=!1;if(ai(()=>{var u=t(...n.map(z)),d=see(e,r,u,a,o,s);l&&c&&`value`in u&&as(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||ui(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&ui(i[t]),i[t]=oi(()=>Ho(e,()=>f))),d[t]=f}r=d}),c){var u=e;ei(()=>{as(u,r.value,!0),os(u)})}l=!0})}function fs(e){return e[je]??={[gs]:e.nodeName.includes(`-`),[_s]:e.namespaceURI===nt}}function ps(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ss.get(t);if(n)return n;Ss.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=ae(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=ce(i)}return n}var ms,hs,gs,_s,vs,ys,bs,xs,Ss;function Cs(){return(Cs=o((()=>{yt(),ue(),xa(),En(),ut(),Re(),Kt(),oa(),Xi(),Uo(),$o(),ts(),is(),at(),vi(),cs(),Bn(),ms=Symbol(`class`),hs=Symbol(`style`),gs=Symbol(`is custom element`),_s=Symbol(`is html`),vs=Le?`link`:`LINK`,ys=Le?`input`:`INPUT`,bs=Le?`option`:`OPTION`,xs=Le?`select`:`SELECT`,Ss=new Map})))()}function ws(){return(ws=o((()=>{yt(),Wr(),Ta(),Uo()})))()}function Ts(){return(Ts=o((()=>{kn()})))()}function Es(e,t,n=t){var r=new WeakSet;On(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ds(e)?Os(a):a,n(a),ar!==null&&r.add(ar),await Pi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(_t&&e.defaultValue!==e.value||Li(t)==null&&e.value)&&(n(Ds(e)?Os(e.value):e.value),ar!==null&&r.add(ar)),ni(()=>{var n=t();if(e===document.activeElement){var i=Ct?or:ar;if(r.has(i))return}Ds(e)&&n===Os(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ds(e){var t=e.type;return t===`number`||t===`range`}function Os(e){return e===``?null:+e}function ks(){return(ks=o((()=>{vi(),kn(),$e(),kr(),Kt(),yt(),Xi(),_r(),Tt()})))()}function As(){return(As=o((()=>{vi(),kn()})))()}function js(){return(js=o((()=>{kn()})))()}function Ms(){return(Ms=o((()=>{vi(),ue()})))()}function Ns(){return(Ns=o((()=>{vi(),Xi()})))()}function Ps(e,t){return e===t||e?.[Oe]===t}function Fs(e={},t,n,r){var i=Bt.r,a=Hi;return ei(()=>{var o,s;return ni(()=>{o=s,s=r?.()||[],Li(()=>{Ps(n(...s),e)||(t(e,...s),o&&Ps(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Ps(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Is(){return(Is=o((()=>{Re(),Vt(),vi(),Xi()})))()}function Ls(){return(Ls=o((()=>{vi(),kn()})))()}function Rs(){return(Rs=o((()=>{vi(),kn()})))()}function zs(){return(zs=o((()=>{ue(),vi(),xa()})))()}function Bs(){return(Bs=o((()=>{ue(),Vt(),Jn(),vi(),Xi()})))()}function Vs(){return(Vs=o((()=>{Er(),Xi(),ue()})))()}function Hs(e,t,n){return new Proxy({props:e,exclude:t},Ws)}function Us(...e){return new Proxy({props:e},Gs)}function q(e,t,n,r){var i=!wt||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=Vn(r),z(l)):(c&&(c=!1,s=o?Li(r):r),s);let d;if(a){var f=Oe in e||ke in e;d=ie(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=gn(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&qe(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Vn:Hn)(()=>(_=!1,h()));a&&z(v);var y=Hi;return(function(e,t){if(arguments.length>0){let n=t?z(v):i&&a?Dr(e):e;return N(v,n),_=!0,s!==void 0&&(s=n),e}return zi&&_||y.f&16384?v.v:z(v)})}var Ws,Gs;function Ks(){return(Ks=o((()=>{at(),ue(),Er(),Jn(),Xi(),$e(),Re(),kr(),bn(),Tt(),vi(),Ws={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}},Gs={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(v(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];v(i)&&(i=i());let a=ie(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(v(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=ie(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Oe||t===ke)return!1;for(let n of e.props)if(v(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(v(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}}})))()}function qs(){return(qs=o((()=>{Vt(),vi(),bn(),Bn()})))()}function Js(){return(Js=o((()=>{Re(),vi(),Er(),La(),Xi(),_r(),ue(),Vt(),Tt(),$t(),zs()})))()}function Ys(){return(Ys=o((()=>{Js(),vi(),ka(),ue(),Wr()})))()}function Xs(){return(Xs=o((()=>{Re(),At(),Xi()})))()}function J(){return(J=o((()=>{Zi(),Vt(),sa(),la(),Ra(),za(),Ba(),jt(),Va(),Ha(),Ya(),Xa(),$a(),to(),po(),ho(),go(),yo(),xo(),Lo(),zo(),Bo(),Vo(),Uo(),Cs(),ts(),xa(),En(),ws(),is(),Fo(),Ts(),ks(),As(),js(),Ms(),cs(),Ns(),Is(),Ls(),Rs(),yt(),zs(),Bs(),Vs(),ka(),Bn(),_r(),Jn(),vi(),Er(),Ks(),bn(),Fn(),bi(),La(),Xi(),qs(),wo(),kr(),Ys(),Wr(),$o(),At(),ue(),_o(),Ar(),Xs()})))()}function Zs(){return(Zs=o((()=>{yt()})))()}function Qs(e){Bt===null&&ze(`onMount`),wt&&Bt.l!==null?ec(Bt).m.push(e):L(()=>{let t=Li(e);if(typeof t==`function`)return t})}function $s(e){Bt===null&&ze(`onDestroy`),Qs(()=>()=>Li(e))}function ec(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function tc(){return(tc=o((()=>{Xi(),ue(),J(),$e(),Tt(),Vt(),_r(),Zs(),La(),yo()})))()}function Y(){return(Y=o((()=>{typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})))()}function nc(e,t){G(e,ac);let n=Hs(t,rc);var r=ic();ds(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-eg70yr`);var i=P(r,!0);E(r),R(()=>U(i,t.name)),H(e,r)}var rc,ic,ac;function oc(){return(oc=o((()=>{Y(),J(),rc=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),ic=B(`<span> </span>`),ac={hash:`svelte-eg70yr`,code:`.icon.small-arrow.svelte-eg70yr {overflow:hidden;width:12px;text-indent:-6px;}`}})))()}function sc(e,t){G(e,uc);let n=q(t,`ariaLive`,3,`assertive`),r=Hs(t,cc);var i=lc();ds(i,()=>({...r,role:`alert`,class:`sui alert ${t.status??``}`,"aria-live":n()}),void 0,void 0,void 0,`svelte-19lfzqb`);var a=P(i),o=e=>{var n=V();vo(F(n),()=>t.icon),H(e,n)},s=e=>{{let n=j(()=>t.status===`success`?`check_circle`:t.status);nc(e,{get name(){return z(n)}})}};W(a,e=>{t.icon?e(o):e(s,-1)}),vo(I(a,2),()=>t.children??T),E(i),H(e,i)}var cc,lc,uc;function dc(){return(dc=o((()=>{Y(),J(),oc(),cc=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`ariaLive`,`children`,`icon`]),lc=B(`<div><!> <!></div>`),uc={hash:`svelte-19lfzqb`,code:`.alert.svelte-19lfzqb {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-19lfzqb {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-19lfzqb {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-19lfzqb {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-19lfzqb {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})))()}function fc(e,t){let n=t,r=e.slice(n).match(pc);r&&(n+=r[0].length);let i=e.slice(n).match(mc);if(!i)return null;let a=i[0];if(hc.test(a))return null;n+=a.length;let o=e.slice(n).match(pc);return o&&(n+=o[0].length),{value:a.normalize(),end:n}}var pc,mc,hc,gc;function _c(){return(_c=o((()=>{pc=/^[\u061c\u200e\u200f\u2066-\u2069]+/,mc=/^[-.+0-9A-Z_a-z\u{a1}-\u{61b}\u{61d}-\u{167f}\u{1681}-\u{1fff}\u{200b}-\u{200d}\u{2010}-\u{2027}\u{2030}-\u{205e}\u{2060}-\u{2065}\u{206a}-\u{2fff}\u{3001}-\u{d7ff}\u{e000}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{1fffd}\u{20000}-\u{2fffd}\u{30000}-\u{3fffd}\u{40000}-\u{4fffd}\u{50000}-\u{5fffd}\u{60000}-\u{6fffd}\u{70000}-\u{7fffd}\u{80000}-\u{8fffd}\u{90000}-\u{9fffd}\u{a0000}-\u{afffd}\u{b0000}-\u{bfffd}\u{c0000}-\u{cfffd}\u{d0000}-\u{dfffd}\u{e0000}-\u{efffd}\u{f0000}-\u{ffffd}\u{100000}-\u{10fffd}]+/u,hc=/^[-.0-9]/,gc=(e,t)=>e.slice(t).match(mc)?.[0]??``})))()}var vc;function yc(){return(yc=o((()=>{vc=Symbol.for(`CST`)})))()}var bc,xc,Sc,Cc,wc;function Tc(){return(Tc=o((()=>{yc(),bc=class extends Error{type;constructor(e,t){super(t),this.type=e}},xc=class extends bc{start;end;constructor(e,t,n,r){let i=r?`Missing ${r}`:e;t>=0&&(i+=` at ${t}`),super(e,i),this.start=t,this.end=n??t+1}},Sc=class extends xc{constructor(e,t){let{start:n,end:r}=t[vc]??{start:-1,end:-1};super(e,n,r)}},Cc=class extends bc{source;cause;constructor(e,t,n,r){super(e,t),this.source=n,r!==void 0&&(this.cause=r)}},wc=class extends bc{source;cause;constructor(e,t){super(e,t),this.source=`�`}}})))()}function Ec(e,t){if(Jc.startsWith(e,qc))t&&(qc+=e.length);else throw Yc(qc,e)}function Dc(e){qc=0,Jc=e;let t=jc();if(Jc.startsWith(`.match`,qc))return Oc(t);let n=t.length>0||Jc.startsWith(`{{`,qc);!n&&qc>0&&(qc=0);let r=Ac(n);if(n&&(Wc(),qc<Jc.length))throw Xc(`extra-content`,qc,Jc.length);return{type:`message`,declarations:t,pattern:r}}function Oc(e){qc+=6,Wc(!0);let t=[];for(;Jc[qc]===`$`;)t.push(zc()),Wc(!0);if(t.length===0)throw Xc(`empty-token`,qc);let n=[];for(;qc<Jc.length;)n.push(kc()),Wc();return{type:`select`,declarations:e,selectors:t,variants:n}}function kc(){let e=[];for(;qc<Jc.length;){Wc(e.length?`{`:!1);let t=Jc[qc];if(t===`{`)break;if(t===`*`)e.push({type:`*`}),qc+=1;else{let t=Bc(!0);t.value=t.value.normalize(),e.push(t)}}return{keys:e,value:Ac(!0)}}function Ac(e){if(e){if(Jc.startsWith(`{{`,qc))qc+=2;else throw Yc(qc,`{{`)}let t=[];loop:for(;qc<Jc.length;)switch(Jc[qc]){case`{`:t.push(Pc(!0));break;case`}`:if(!e)throw Xc(`parse-error`,qc);break loop;default:t.push(Lc())}if(e){if(Jc.startsWith(`}}`,qc))qc+=2;else throw Yc(qc,`}}`)}return t}function jc(){let e=[];Wc();loop:for(;Jc[qc]===`.`;){switch(Jc.substr(qc,6)){case`.input`:e.push(Mc());break;case`.local`:e.push(Nc());break;case`.match`:break loop;default:throw Xc(`parse-error`,qc)}Wc()}return e}function Mc(){qc+=6,Wc(),Ec(`{`,!1);let e=qc,t=Pc(!1);if(t.type===`expression`&&t.arg?.type===`variable`)return{type:`input`,name:t.arg.name,value:t};throw Xc(`bad-input-expression`,e,qc)}function Nc(){qc+=6,Wc(!0),Ec(`$`,!0);let e=Uc();return Wc(),Ec(`=`,!0),Wc(),Ec(`{`,!1),{type:`local`,name:e,value:Pc(!1)}}function Pc(e){let t=qc;qc+=1,Wc();let n=Rc(!1);n&&Wc(`}`);let r=Jc[qc],i,a;switch(r){case`@`:case`}`:break;case`:`:{qc+=1,i={type:`function`,name:Hc()};let e=Fc();e&&(i.options=e);break}case`#`:case`/`:{if(n||!e)throw Xc(`parse-error`,qc);qc+=1,a={type:`markup`,kind:r===`#`?`open`:`close`,name:Hc()};let t=Fc();t&&(a.options=t);break}default:throw Xc(`parse-error`,qc)}let o=Ic();if(a?.kind===`open`&&Jc[qc]===`/`&&(a.kind=`standalone`,qc+=1),Ec(`}`,!0),i){let e=n?{type:`expression`,arg:n,functionRef:i}:{type:`expression`,functionRef:i};return o&&(e.attributes=o),e}if(a)return o&&(a.attributes=o),a;if(!n)throw Xc(`empty-token`,t,qc);return o?{type:`expression`,arg:n,attributes:o}:{type:`expression`,arg:n}}function Fc(){Wc(`/}`);let e={},t=!0;for(;qc<Jc.length;){let n=Jc[qc];if(n===`@`||n===`/`||n===`}`)break;let r=qc,i=Hc();if(Object.hasOwn(e,i))throw Xc(`duplicate-option-name`,r,qc);Wc(),Ec(`=`,!0),Wc(),e[i]=Rc(!0),t=!1,Wc(`/}`)}return t?null:e}function Ic(){let e={},t=!0;for(;Jc[qc]===`@`;){let n=qc;qc+=1;let r=Hc();if(Object.hasOwn(e,r))throw Xc(`duplicate-attribute`,n,qc);Wc(`=/}`),Jc[qc]===`=`?(qc+=1,Wc(),e[r]=Bc(!0),Wc(`/}`)):e[r]=!0,t=!1}return t?null:e}function Lc(){let e=``,t=qc;loop:for(;t<Jc.length;++t)switch(Jc[t]){case`\\`:{let n=Jc[t+1];if(!`\\{|}`.includes(n))throw Xc(`bad-escape`,t,t+2);e+=Jc.substring(qc,t)+n,t+=1,qc=t+1;break}case`{`:case`}`:break loop}return e+=Jc.substring(qc,t),qc=t,e}function Rc(e){return Jc[qc]===`$`?zc():Bc(e)}function zc(){return qc+=1,{type:`variable`,name:Uc()}}function Bc(e){if(Jc[qc]===`|`)return Vc();let t=gc(Jc,qc);if(!t){if(e)throw Xc(`empty-token`,qc);return}return qc+=t.length,{type:`literal`,value:t}}function Vc(){qc+=1;let e=``;for(let t=qc;t<Jc.length;++t)switch(Jc[t]){case`\\`:{let n=Jc[t+1];if(!`\\{|}`.includes(n))throw Xc(`bad-escape`,t,t+2);e+=Jc.substring(qc,t)+n,t+=1,qc=t+1;break}case`|`:return e+=Jc.substring(qc,t),qc=t+1,{type:`literal`,value:e}}throw Yc(Jc.length,`|`)}function Hc(){let e=Uc();return Jc[qc]===`:`?(qc+=1,e+`:`+Uc()):e}function Uc(){let e=fc(Jc,qc);if(!e)throw Xc(`empty-token`,qc);return qc=e.end,e.value}function Wc(e=!1){let t=Jc[qc],n=!1;if(e){for(;Gc.has(t);)t=Jc[++qc];for(;Kc.has(t);)t=Jc[++qc],n=!0}for(;Gc.has(t)||Kc.has(t);)t=Jc[++qc];if(e&&!n&&(e===!0||!e.includes(Jc[qc])))throw Yc(qc,`' '`)}var Gc,Kc,qc,Jc,Yc,Xc;function Zc(){return(Zc=o((()=>{_c(),Tc(),Gc=new Set(``),Kc=new Set(`
|
|
19
|
+
\r `),Yc=(e,t)=>new xc(`missing-syntax`,e,e+t.length,t),Xc=(...e)=>new xc(...e)})))()}function Qc(e,t){let{node:n,pattern:r}=t,{functionRef:i=n,attributes:a=null,declaration:o=n,expression:s=n,key:c=n,markup:l=n,options:u=null,value:d=n,variant:f=n}=t,p=(e,t)=>{if(e){let n=u?.(e,t);if(d)for(let n of Object.values(e))d(n,t,`option`);n?.()}},m=(e,t)=>{if(e){let n=a?.(e,t);if(d)for(let n of Object.values(e))n!==!0&&d(n,t,`attribute`);n?.()}},h=(e,t)=>{if(typeof e==`object`){let n;switch(e.type){case`expression`:if(n=s?.(e,t),e.arg&&d?.(e.arg,t,`arg`),e.functionRef){let n=i?.(e.functionRef,t,e.arg);p(e.functionRef.options,t),n?.()}m(e.attributes,t);break;case`markup`:n=l?.(e,t),p(e.options,t),m(e.attributes,t)}n?.()}},g=e=>{let t=r?.(e);for(let t of e)h(t,`placeholder`);t?.()};for(let t of e.declarations){let e=o?.(t);t.value&&h(t.value,`declaration`),e?.()}if(e.type===`message`)g(e.pattern);else{if(d)for(let t of e.selectors)d(t,`selector`,`arg`);for(let t of e.variants){let e=f?.(t);c&&t.keys.forEach(c),g(t.value),e?.()}}}function cee(e,t=(e,t)=>{throw new Sc(e,t)}){let n=0,r=null,i=new Set,a=new Set,o=new Set,s=new Set,c=new Set,l=new Set,u=!0;Qc(e,{declaration(e){if(e.name)return(e.value.functionRef||e.type===`local`&&e.value.arg?.type===`variable`&&i.has(e.value.arg.name))&&i.add(e.name),e.type===`local`&&s.add(e.name),u=e.type===`local`,()=>{a.has(e.name)?t(`duplicate-declaration`,e):a.add(e.name)}},expression({functionRef:e}){e&&o.add(e.name)},value(e,o,s){if(e.type===`variable`)switch(c.add(e.name),o){case`declaration`:(s!==`arg`||u)&&a.add(e.name);break;case`selector`:n+=1,r=e,i.has(e.name)||t(`missing-selector-annotation`,e)}},variant(e){let{keys:i}=e;i.length!==n&&t(`key-mismatch`,e);let a=JSON.stringify(i.map(e=>e.type===`literal`?e.value:0));l.has(a)?t(`duplicate-variant`,e):l.add(a),r&&=i.every(e=>e.type===`*`)?null:e}}),r&&t(`missing-fallback`,r);for(let e of s)c.delete(e);return{functions:o,variables:c}}function $c(){return($c=o((()=>{Tc()})))()}function el(e){if(e)try{typeof e==`string`&&(e=new Intl.Locale(e));let t=e.getTextInfo?.()??e.textInfo;if(t?.direction)return t.direction;let n=e.maximize().script;if(n)return tl.includes(n)?`rtl`:`ltr`}catch{}return`auto`}var tl;function nl(){return(nl=o((()=>{tl=`Adlm,Arab,Hebr,Mand,Nkoo,Rohg,Syrc,Thaa`})))()}function rl(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`boolean`)return e;if(e&&typeof e==`object`&&(e=String(e)),e===`true`)return!0;if(e===`false`)return!1;throw RangeError(`Not a boolean`)}function il(e){if(e&&typeof e==`object`&&(e=e.valueOf()),e&&typeof e==`object`&&(e=String(e)),typeof e==`string`&&/^(0|[1-9][0-9]*)$/.test(e)&&(e=Number(e)),typeof e==`number`&&e>=0&&Number.isInteger(e))return e;throw RangeError(`Not a positive integer`)}function al(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`string`)return e;if(e&&typeof e==`object`)return String(e);throw RangeError(`Not a string`)}function ol(e){let t;if(typeof e==`object`){let n=e?.valueOf;typeof n==`function`&&(t=e.options,e=n.call(e))}if(typeof e==`string`)try{e=JSON.parse(e)}catch{}if(typeof e!=`bigint`&&typeof e!=`number`)throw new wc(`bad-operand`,`Input is not numeric`);return{value:e,options:t}}function sl(e,t,n,r){let{dir:i,locales:a}=e;n.useGrouping===`never`&&(n.useGrouping=!1),r&&`select`in n&&!e.literalOptionKeys.has(`select`)&&(e.onError(`bad-option`,`The option select may only be set by a literal value`),r=!1);let o,s,c,l;return{type:`number`,get dir(){return i??=(o??=Intl.NumberFormat.supportedLocalesOf(a,n)[0],el(o)),i},get options(){return{...n}},selectKey:r?e=>{let r=t;n.style===`percent`&&(r*=typeof r==`bigint`?100n:100);let i=String(r);if(e.has(i))return i;if(n.select===`exact`)return null;let o=n.select?{...n,select:void 0,type:n.select}:n;return c??=new Intl.PluralRules(a,o).select(Number(r)),e.has(c)?c:null}:void 0,toParts(){s??=new Intl.NumberFormat(a,n);let e=s.formatToParts(t);return o??=s.resolvedOptions().locale,i??=el(o),i===`ltr`||i===`rtl`?[{type:`number`,dir:i,locale:o,parts:e}]:[{type:`number`,locale:o,parts:e}]},toString(){return s??=new Intl.NumberFormat(a,n),l??=s.format(t),l},valueOf:()=>t}}function cl(e,t,n){let r=ol(n),i=r.value,a=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:a[n]=il(r);break;case`roundingMode`:case`roundingPriority`:case`select`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:a[n]=al(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :number option ${n}`)}return sl(e,i,a,!0)}function ll(e,t,n){let r=ol(n),i=Number.isFinite(r.value)?Math.round(r.value):r.value,a=Object.assign({},r.options,{maximumFractionDigits:0,minimumFractionDigits:void 0,minimumSignificantDigits:void 0,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`maximumSignificantDigits`:a[n]=il(r);break;case`select`:case`signDisplay`:case`useGrouping`:a[n]=al(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :integer option ${n}`)}return sl(e,i,a,!0)}function ul(){return(ul=o((()=>{nl(),Tc()})))()}function dl(e,t,n){let r=ol(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`currency`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`currency`:case`currencySign`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=al(r);break;case`minimumIntegerDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=il(r);break;case`currencyDisplay`:{let t=al(r);t===`never`?e.onError(`unsupported-operation`,`Currency display "never" is not yet supported`):i[n]=t;break}case`fractionDigits`:{let e=al(r);if(e===`auto`)i.minimumFractionDigits=void 0,i.maximumFractionDigits=void 0;else{let t=il(e);i.minimumFractionDigits=t,i.maximumFractionDigits=t}break}}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.currency)throw new wc(`bad-operand`,`A currency code is required for :currency`);return sl(e,r.value,i,!1)}function fl(){return(fl=o((()=>{Tc(),ul()})))()}function pl(e,t,n,r){let i={localeMatcher:t.localeMatcher},a=r;if(typeof a==`object`&&a){let t=a.options;t&&(i.calendar=t.calendar,e!==`date`&&(i.hour12=t.hour12),i.timeZone=t.timeZone),typeof a.valueOf==`function`&&(a=a.valueOf())}switch(typeof a){case`number`:case`string`:a=new Date(a)}if(!(a instanceof Date)||isNaN(a.getTime()))throw new wc(`bad-operand`,`Input is not a valid date`);if(n.calendar!==void 0)try{i.calendar=al(n.calendar)}catch{t.onError(`bad-option`,`Invalid :${e} calendar option value`)}if(n.hour12!==void 0&&e!==`date`)try{i.hour12=rl(n.hour12)}catch{t.onError(`bad-option`,`Invalid :${e} hour12 option value`)}if(n.timeZone!==void 0){let r;try{r=al(n.timeZone)}catch{t.onError(`bad-option`,`Invalid :${e} timeZone option value`)}if(r===`input`)i.timeZone===void 0&&t.onError(`bad-operand`,`Missing input timeZone value for :${e}`);else if(r!==void 0){if(i.timeZone!==void 0&&r!==i.timeZone)throw new wc(`bad-option`,`Time zone conversion is not supported`);i.timeZone=r}}if(e!==`time`){let r=e===`date`?`fields`:`dateFields`,a=e===`date`?`length`:`dateLength`,o=ml(t,n,r,hl)??`year-month-day`,s=ml(t,n,a,gl),c=new Set(o.split(`-`));c.has(`year`)&&(i.year=`numeric`),c.has(`month`)&&(i.month=s===`long`?`long`:s===`short`?`numeric`:`short`),c.has(`day`)&&(i.day=`numeric`),c.has(`weekday`)&&(i.weekday=s===`long`?`long`:`short`)}if(e!==`date`){switch(ml(t,n,e===`time`?`precision`:`timePrecision`,_l)){case`hour`:i.hour=`numeric`;break;case`second`:i.hour=`numeric`,i.minute=`numeric`,i.second=`numeric`;break;default:i.hour=`numeric`,i.minute=`numeric`}i.timeZoneName=ml(t,n,`timeZoneStyle`,vl)}let o=new Intl.DateTimeFormat(t.locales,i),s=t.dir,c,l;return{type:`datetime`,get dir(){return s??=(c??=o.resolvedOptions().locale,el(c)),s},get options(){return{...i}},toParts(){let e=o.formatToParts(a);return c??=o.resolvedOptions().locale,s??=el(c),s===`ltr`||s===`rtl`?[{type:`datetime`,dir:s,locale:c,parts:e}]:[{type:`datetime`,locale:c,parts:e}]},toString(){return l??=o.format(a),l},valueOf:()=>a}}function ml(e,t,n,r){let i=t[n];if(i!==void 0)try{let e=al(i);if(r&&!r.has(e))throw Error();return e}catch{e.onError(`bad-option`,`Invalid value for ${n} option`)}}var hl,gl,_l,vl,yl,bl,xl;function Sl(){return(Sl=o((()=>{nl(),Tc(),hl=new Set([`weekday`,`day-weekday`,`month-day`,`month-day-weekday`,`year-month-day`,`year-month-day-weekday`]),gl=new Set([`long`,`medium`,`short`]),_l=new Set([`hour`,`minute`,`second`]),vl=new Set([`long`,`short`]),yl=(e,t,n)=>pl(`datetime`,e,t,n),bl=(e,t,n)=>pl(`date`,e,t,n),xl=(e,t,n)=>pl(`time`,e,t,n)})))()}function Cl(e,t,n){let{value:r,options:i}=ol(n),a;try{a=`add`in t?il(t.add):-1}catch{throw new wc(`bad-option`,`Value ${t.add} is not valid for :offset option add`)}let o;try{o=`subtract`in t?il(t.subtract):-1}catch{throw new wc(`bad-option`,`Value ${t.subtract} is not valid for :offset option subtract`)}if(a<0==o<0)throw new wc(`bad-option`,`Exactly one of "add" or "subtract" is required as an :offset option`);let s=a<0?-o:a;return r+=typeof r==`number`?s:BigInt(s),cl(e,{},{valueOf:()=>r,options:i})}function wl(){return(wl=o((()=>{Tc(),ul()})))()}function Tl(e,t,n){let r=ol(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`percent`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`roundingMode`:case`roundingPriority`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=al(r);break;case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:i[n]=il(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :percent option ${n}`)}return sl(e,r.value,i,!0)}function El(){return(El=o((()=>{ul()})))()}function Dl(e,t,n){let r=n===void 0?``:String(n),i=r.normalize();return{type:`string`,dir:e.dir??`auto`,selectKey:e=>e.has(i)?i:null,toParts(){let{dir:t}=e,n=e.locales[0];return t===`ltr`||t===`rtl`?[{type:`string`,dir:t,locale:n,value:r}]:[{type:`string`,locale:n,value:r}]},toString:()=>r,valueOf:()=>r}}function Ol(e,t,n){let r=ol(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`unit`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`signDisplay`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`unit`:case`unitDisplay`:case`useGrouping`:i[n]=al(r);break;case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=il(r)}}catch(t){t instanceof bc?e.onError(t):e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.unit)throw new wc(`bad-operand`,`A unit identifier is required for :unit`);return sl(e,r.value,i,!1)}function kl(){return(kl=o((()=>{Tc(),ul()})))()}var Al,jl;function Ml(){return(Ml=o((()=>{nl(),fl(),Sl(),ul(),wl(),El(),kl(),Al={integer:ll,number:cl,offset:Cl,string:Dl},Al=Object.freeze(Object.assign(Object.create(null),Al)),jl={currency:dl,date:bl,datetime:yl,percent:Tl,time:xl,unit:Ol},jl=Object.freeze(Object.assign(Object.create(null),jl))})))()}var Nl;function Pl(){return(Pl=o((()=>{Nl=Symbol(`bidi-isolate`)})))()}var Fl;function Il(){return(Il=o((()=>{Fl=(e=`�`)=>({type:`fallback`,source:e,toParts:()=>[{type:`fallback`,source:e}],toString:()=>`{${e}}`})})))()}var Ll;function Rl(){return(Rl=o((()=>{Ll=(e,t)=>({type:`unknown`,source:e,dir:`auto`,toParts:()=>[{type:`unknown`,value:t}],toString:()=>String(t),valueOf:()=>t})})))()}var zl;function Bl(){return(Bl=o((()=>{Tc(),eu(),zl=class{#e;#t;#n;dir;id;constructor(e,t,n){this.#e=e,this.#n=t,this.dir=void 0;let r=n&&Object.hasOwn(n,`u:dir`)?n[`u:dir`]:void 0;if(r){let t=String(Ql(e,r));if(t===`ltr`||t===`rtl`||t===`auto`)this.dir=t;else if(t!==`inherit`){let t=new wc(`bad-option`,`Unsupported value for u:dir option`);t.source=$l(r),e.onError(t)}}let i=n&&Object.hasOwn(n,`u:id`)?n[`u:id`]:void 0;if(this.id=i?String(Ql(e,i)):void 0,n){this.#t=new Set;for(let[e,t]of Object.entries(n))t.type===`literal`&&this.#t.add(e)}}get literalOptionKeys(){return new Set(this.#t)}get localeMatcher(){return this.#e.localeMatcher}get locales(){return this.#e.locales.map(String)}onError(e,t){let n;e instanceof wc?n=e:typeof e==`string`&&typeof t==`string`?n=new wc(e,t):(n=new wc(`function-error`,String(e)),n.cause=e),n.source=this.#n,this.#e.onError(n)}}})))()}function Vl(e,t,{name:n,options:r}){let i=`:${n}`,a=$l(t)??i;try{let o=t?[Ql(e,t)]:[],s=e.functions[n];if(!s)throw new Cc(`unknown-function`,`Unknown function ${i}`,a);let c=new zl(e,a,r),l=s(c,Hl(e,r),...o);if(typeof l!=`object`||!l||typeof l.type!=`string`)throw new Cc(`bad-function-result`,`Function ${i} did not return a MessageValue`,a);let u={source:a};return c.dir&&(u.dir=c.dir,u[Nl]=!0),c.id&&typeof l.toParts==`function`&&(u.toParts=()=>{let e=l.toParts();for(let t of e)t.id=c.id;return e}),{...l,...u}}catch(t){return e.onError(t instanceof bc?t:new Cc(`bad-function-result`,String(t),a,t)),Fl(a)}}function Hl(e,t){let n=Object.create(null);if(t)for(let[r,i]of Object.entries(t))r.startsWith(`u:`)||(n[r]=Ql(e,i));return n}function Ul(){return(Ul=o((()=>{Tc(),Il(),Pl(),Bl(),eu()})))()}function Wl(e,{arg:t,functionRef:n}){if(n)return Vl(e,t,n);switch(t?.type){case`literal`:{let n=`|${t.value}|`,r=Dl(new zl(e,n),{},t.value);return r.source=n,r}case`variable`:return Jl(e,t);default:throw Error(`Unsupported expression: ${t?.type}`)}}function Gl(){return(Gl=o((()=>{Bl(),Ul(),Zl()})))()}function Kl(e,t){if(Xl(e)){if(t in e)return e[t];let n=t.split(`.`);for(let t=n.length-1;t>0;--t){let r=n.slice(0,t).join(`.`);if(r in e){let i=n.slice(t).join(`.`);return Kl(e[r],i)}}for(let[n,r]of Object.entries(e))if(n.normalize()===t)return r}}function ql(e,{name:t}){let n=Kl(e.scope,t);if(n===void 0){let n=`$`+t,r=`Variable not available: ${n}`;e.onError(new Cc(`unresolved-variable`,r,n))}else if(n instanceof Yl){let r=Wl(n.scope?{...e,scope:n.scope}:e,n.expression);return e.scope[t]=r,e.localVars.add(r),r}return n}function Jl(e,t){let n=`$`+t.name,r=ql(e,t);if(r===void 0)return Fl(n);let i=typeof r;if(i===`object`){let t=r;if(t.type===`fallback`)return Fl(n);if(e.localVars.has(t))return t.source=n,t;r instanceof Number?i=`number`:r instanceof String&&(i=`string`)}let a;switch(i){case`bigint`:case`number`:a=e.functions.number;break;case`string`:a=e.functions.string;break;default:return Ll(n,r)}let o=new zl(e,n),s=a(o,{},r);return s.source=n,s}var Yl,Xl;function Zl(){return(Zl=o((()=>{Tc(),Il(),Rl(),Bl(),Gl(),Yl=class{expression;scope;constructor(e,t){this.expression=e,this.scope=t}},Xl=e=>e!==null&&(typeof e==`object`||typeof e==`function`)})))()}function Ql(e,t){switch(t.type){case`literal`:return t.value;case`variable`:return ql(e,t);default:throw Error(`Unsupported value: ${t.type}`)}}function $l(e){switch(e?.type){case`literal`:return`|`+e.value.replaceAll(`\\`,`\\\\`).replaceAll(`|`,`\\|`)+`|`;case`variable`:return`$`+e.name;default:return}}function eu(){return(eu=o((()=>{Zl()})))()}function tu(e,{kind:t,name:n,options:r}){let i={type:`markup`,kind:t,name:n},a=r?Object.entries(r):null;if(a?.length){i.options={};for(let[t,n]of a)if(t===`u:dir`){let r=new wc(`bad-option`,`The option ${t} is not valid for markup`);r.source=$l(n),e.onError(r)}else{let r=Ql(e,n);typeof r==`object`&&typeof r?.valueOf==`function`&&(r=r.valueOf()),t===`u:id`?i.id=String(r):i.options[t]=r}}return i}function nu(){return(nu=o((()=>{Tc(),eu()})))()}function ru(e,t){if(t.type===`message`)return t.pattern;let n=t.selectors.map(t=>{let n=Jl(e,t),r;return typeof n.selectKey==`function`?r=n.selectKey.bind(n):(e.onError(new Cc(`bad-selector`,`Selector does not support selection`,n.source)),r=()=>null),{selectKey:r,source:n.source,best:null,keys:null}}),r=t.variants;loop:for(let i=0;i<n.length;++i){let a=n[i];if(!a.keys){a.keys=new Set;for(let{keys:e}of r){let t=e[i];if(!t)break loop;t.type!==`*`&&a.keys.add(t.value)}}try{a.best=a.keys.size?a.selectKey(a.keys):null}catch(t){e.onError(new Cc(`bad-selector`,`Selection failed`,a.source,t)),a.selectKey=()=>null,a.best=null}if(r=r.filter(e=>{let t=e.keys[i];return t.type===`*`?a.best==null:a.best===t.value}),r.length===0){if(i===0)break;let e=n[i-1];e.best==null?e.keys?.clear():e.keys?.delete(e.best);for(let e=i;e<n.length;++e)n[e].keys=null;r=t.variants,i=-1}}let i=r[0];return i?i.value:(e.onError(new Cc(`no-match`,`No variant was selected!?`,`.match`)),[])}function iu(){return(iu=o((()=>{Tc(),Zl()})))()}var au;function ou(){return(ou=o((()=>{Zc(),$c(),nl(),Tc(),Ml(),Pl(),nu(),Gl(),Zl(),iu(),au=class{#e;#t;#n;#r;#i;#a;constructor(e,t,n){this.#e=n?.bidiIsolation!==`none`,this.#n=n?.localeMatcher??`best fit`,this.#r=Array.isArray(e)?e.map(e=>new Intl.Locale(e)):e?[new Intl.Locale(e)]:[],this.#t=n?.dir??el(this.#r[0]),this.#i=typeof t==`string`?Dc(t):t,cee(this.#i),this.#a=n?.functions?Object.assign(Object.create(null),Al,n.functions):Al}format(e,t){let n=this.#o(e,t),r=``;for(let e of ru(n,this.#i))if(typeof e==`string`)r+=e;else if(e.type===`markup`)tu(n,e);else{let t;try{if(t=Wl(n,e),typeof t.toString==`function`){if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[Nl])){let e=t.dir===`ltr`?``:t.dir===`rtl`?``:``;r+=e+t.toString()+``}else r+=t.toString()}else{let e=new wc(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i=`{${t?.source??`�`}}`;r+=this.#e?``+i+``:i}}return r}formatToParts(e,t){let n=this.#o(e,t),r=[];for(let e of ru(n,this.#i))if(typeof e==`string`)r.push({type:`text`,value:e});else if(e.type===`markup`)r.push(tu(n,e));else{let t;try{if(t=Wl(n,e),typeof t.toParts==`function`){let e=t.toParts();if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[Nl])){let n=t.dir===`ltr`?``:t.dir===`rtl`?``:``;r.push({type:`bidiIsolation`,value:n},...e,{type:`bidiIsolation`,value:``})}else r.push(...e)}else{let e=new wc(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i={type:`fallback`,source:t?.source??`�`};this.#e?r.push({type:`bidiIsolation`,value:``},i,{type:`bidiIsolation`,value:``}):r.push(i)}}return r}#o(e,t=e=>{try{process.emitWarning(e)}catch{console.warn(e)}}){let n={...e};for(let t of this.#i.declarations)n[t.name]=new Yl(t.value,t.type===`input`?e??{}:void 0);return{onError:t,localeMatcher:this.#n,locales:this.#r,localVars:new WeakSet,functions:this.#a,scope:n}}}})))()}function su(){return(su=o((()=>{ou()})))()}function cu(){return(cu=o((()=>{J(),Er(),jt(),Xi()})))()}function lu(){return(lu=o((()=>{Er(),jt(),Xi()})))()}var uu;function du(){return(du=o((()=>{Er(),jt(),Xi(),uu=class extends Map{#e=new Map;#t=M(0);#n=M(0);#r=Yi||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return Yi===this.#r?M(e):vr(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return z(this.#t),!1}return z(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{z(this.#t);return}}return z(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),N(this.#n,super.size),xr(o);else if(i!==t){xr(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&xr(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),N(n,-1)),r&&(N(this.#n,super.size),xr(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;N(this.#n,0);for(var t of e.values())N(t,-1);xr(this.#t),e.clear()}}#a(){z(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)z(n)}keys(){return z(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return z(this.#n),super.size}}})))()}function fu(){return(fu=o((()=>{Er(),jt(),Xi(),pu()})))()}function pu(){return(pu=o((()=>{Er(),jt(),Xi(),fu()})))()}function mu(){return(mu=o((()=>{xa()})))()}function hu(){return(hu=o((()=>{jn()})))()}function gu(){return(gu=o((()=>{mu(),hu()})))()}function _u(){return(_u=o((()=>{cu(),lu(),du(),pu(),fu(),gu(),jn()})))()}var vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,X,Uu,Wu,Gu,Ku,qu,Ju,Yu;function Z(){return(Z=o((()=>{J(),su(),Ml(),_u(),Intl.MessageFormat??=au,vu=M(``),yu=Dr([]),bu=Dr({}),xu=``,Su=``,wu={},Tu={},Du=(e,t)=>{if(typeof t!=`string`||!t)throw TypeError(`${e} must be a non-empty string (got ${JSON.stringify(t)})`)},Ou=(e,t)=>{if(typeof t!=`string`)throw TypeError(`${e} must be a string (got ${typeof t})`)},ku=(e,t)=>{if(typeof t!=`function`)throw TypeError(`${e} must be a function (got ${typeof t})`)},Au=(e,t)=>{if(!e||!t.length||t.includes(e))return e;try{let n=new Intl.Locale(e).language;return t.find(e=>{try{return new Intl.Locale(e).language===n}catch{return!1}})??e}catch{return e}},ju=(e,t=``)=>Object.entries(e).reduce((e,[n,r])=>{let i=t?`${t}.${n}`:n;return typeof r==`object`&&r&&!Array.isArray(r)?Object.assign(e,ju(r,i)):e[i]=r,e},Object.create(null)),Mu=e=>{yu.includes(e)||(yu.push(e),Su=Au(xu,yu))},Nu=()=>{z(vu)&&!yu.includes(z(vu))&&zu.set(z(vu))},Pu=(e,...t)=>{Du(`addMessages: localeCode`,e),t.forEach((e,t)=>{if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`addMessages: maps[${t}] must be a plain object (got ${Array.isArray(e)?`array`:typeof e})`)}),Mu(e),bu[e]??={};let n=bu[e],r={...Yu,...Tu};t.forEach(t=>{Object.entries(ju(t)).forEach(([t,i])=>{n[t]=new Intl.MessageFormat(e,String(i),{functions:r})})}),Nu()},Fu=new uu,Iu=new uu,Lu=(e=z(vu))=>{if(Ou(`waitLocale: localeCode`,e),!e)return Promise.resolve();if(!Iu.has(e)){let t=Fu.get(e);if(t){let n=Promise.resolve(t()).then(t=>{Pu(e,t)},()=>{Iu.delete(e),z(vu)===e&&!bu[e]&&Su&&N(vu,Su,!0)});Iu.set(e,n)}else Iu.set(e,Promise.resolve())}return Iu.get(e)??Promise.resolve()},Ru=(e=z(vu))=>el(e)===`rtl`,zu={get current(){return z(vu)},set(e){Ou(`locale.set: value`,e);let t=yu.length?Au(e,yu):e;if(e&&yu.length&&!yu.includes(t)&&Su&&yu.includes(Su)&&(t=Su),N(vu,t,!0),typeof document<`u`&&t){document.documentElement.lang=t;let e=el(t);e!==`auto`&&(document.documentElement.dir=e)}return Lu(t)}},Bu=(e,t)=>{Du(`register: localeCode`,e),ku(`register: loader`,t),Fu.set(e,t),Iu.delete(e),Mu(e),Nu()},Vu=()=>typeof navigator>`u`?void 0:navigator.languages?.[0]??navigator.language,Hu=e=>{if(!e||typeof e.fallbackLocale!=`string`)throw TypeError(`init: fallbackLocale must be a string (got ${JSON.stringify(e?.fallbackLocale)})`);e.initialLocale!==void 0&&Ou(`init: initialLocale`,e.initialLocale),e.handleMissingMessage!==void 0&&ku(`init: handleMissingMessage`,e.handleMissingMessage),xu=e.fallbackLocale,Su=Au(xu,yu),Cu=e.handleMissingMessage,wu=e.formats??{},e.initialLocale&&zu.set(e.initialLocale)},X=(e,{values:t={},locale:n,default:r,formats:i}={})=>{if(e==null)throw TypeError(`format: key must be a string or message object (got ${JSON.stringify(e)})`);if(typeof e==`object`){let{id:t,values:n={},locale:r,default:i,formats:a}=e;return X(t,{values:n,locale:r,default:i,formats:a})}let a=n??z(vu),o=Su;Eu=i;let s;try{s=bu[a]?.[e]?.format(t)??(a===o?void 0:bu[o]?.[e]?.format(t))}finally{Eu=void 0}if(s!==void 0)return s;if(Cu){let t=Cu(e,a,r);if(t!==void 0)return t}return r??e},Uu=`_default`,Wu={date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}},number:{currency:{style:`currency`},percent:{style:`percent`},scientific:{notation:`scientific`},engineering:{notation:`engineering`},compactLong:{notation:`compact`,compactDisplay:`long`},compactShort:{notation:`compact`,compactDisplay:`short`}}},Gu=(e,t)=>wu[e]?.[t]??Wu[e]?.[t],Ku=e=>{let t=Eu?.[e];return(typeof t==`string`?Gu(e,t):t)??wu[e]?.[Uu]},qu=(e,t,n)=>{let r=e.valueOf();return{...e,dir:n?el(n):e.dir,toString:()=>t.format(r)}},Ju=(e,t,n)=>(r,i,a)=>{let o=e(r,i,a),s=Ku(t);if(!s)return o;let{locale:c,...l}=s;return qu(o,new n(c??r.locales,l),c)},Yu={...jl,date:Ju(jl.date,`date`,Intl.DateTimeFormat),time:Ju(jl.time,`time`,Intl.DateTimeFormat),datetime:Ju(jl.datetime,`datetime`,Intl.DateTimeFormat),number:Ju(Al.number,`number`,Intl.NumberFormat),integer:Ju(Al.integer,`number`,Intl.NumberFormat)}})))()}var Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld;function ud(){return(ud=o((()=>{Zu=()=>(Xu??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Xu),Qu=[`Ctrl`,`Meta`,`Alt`,`Shift`],$u=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),ed=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:$u.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),td=e=>e.replace(/\bAccel\b/g,Zu()?`Meta`:`Ctrl`),nd=new Map,rd=e=>{let t=nd.get(e);return t||(t=td(e).split(/\s+/).map(e=>{let t=e.split(`+`);return{ctrl:t.includes(`Ctrl`),meta:t.includes(`Meta`),alt:t.includes(`Alt`),shift:t.includes(`Shift`),tokens:t.filter(e=>!Qu.includes(e))}}),nd.set(e,t)),t},id=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.some(({ctrl:t,meta:o,alt:s,shift:c,tokens:l})=>t===n&&o===r&&s===i&&c===a&&l.every(t=>ed(t,e)))},ad=(e,t)=>id(e,rd(t)),od=new Map,sd=(e,t)=>{let{disabled:n}=e;if(!e.getClientRects().length)return;let{top:r,left:i}=e.getBoundingClientRect();n&&e.style.setProperty(`pointer-events`,`auto`);let a=document.elementsFromPoint(i+4,r+4).includes(e);n&&e.style.removeProperty(`pointer-events`),a&&(t.preventDefault(),n||(e.focus(),e.click()))},cd=e=>{od.forEach((t,n)=>{id(e,t)&&sd(n,e)})},ld=(e=``)=>{let t=e?td(e):void 0;if(!t)return()=>()=>{};let n=rd(t);return e=>(od.size||globalThis.addEventListener(`keydown`,cd,{capture:!0}),od.set(e,n),e.setAttribute(`aria-keyshortcuts`,t),()=>{od.delete(e),e.removeAttribute(`aria-keyshortcuts`),od.size||globalThis.removeEventListener(`keydown`,cd,{capture:!0})})}})))()}function dd(e,t){G(e,pd);let n=q(t,`lines`,3,1),r=q(t,`children`,3,void 0);var i=fd();vo(P(i),()=>r()??T),E(i),R(()=>rs(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),H(e,i)}var fd,pd;function md(){return(md=o((()=>{Y(),J(),fd=B(`<span role="none" class="sui truncated-text svelte-9bsz68"><!></span>`),pd={hash:`svelte-9bsz68`,code:`.truncated-text.svelte-9bsz68 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})))()}var hd;function gd(){return(gd=o((()=>{hd=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)})})))()}function _d(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}function vd(e,t,n){n||={};let r,i;switch(t){case`RFC3548`:case`RFC4648`:r=yd,i=!0;break;case`RFC4648-HEX`:r=bd,i=!0;break;case`Crockford`:r=xd,i=!1;break;default:throw Error(`Unknown base32 variant: `+t)}let a=n.padding===void 0?i:n.padding,o=_d(e),s=0,c=0,l=``;for(let e=0;e<o.byteLength;e++)for(c=c<<8|o.getUint8(e),s+=8;s>=5;)l+=r[c>>>s-5&31],s-=5;if(s>0&&(l+=r[c<<5-s&31]),a)for(;l.length%8!=0;)l+=`=`;return l}var yd,bd,xd;function Sd(){return(Sd=o((()=>{yd=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,bd=`0123456789ABCDEFGHIJKLMNOPQRSTUV`,xd=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`})))()}var Cd,wd,Td,Ed;function Dd(){return(Dd=o((()=>{Sd(),Cd=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,wd=e=>{let t=globalThis.crypto.randomUUID();return e===`short`?t.split(`-`).pop():e===`shorter`?t.split(`-`).shift():typeof e==`number`?t.split(`-`).join(``).slice(0,e):t},Td=()=>{let e=wd().replaceAll(`-`,``),{buffer:t}=new Uint8Array(e.match(/../g).map(e=>parseInt(e,16)));return vd(t,`RFC4648`,{padding:!1}).toLowerCase()},Ed=async(e,{algorithm:t=`SHA-1`,format:n=`hex`}={})=>{let r;if(typeof e==`string`){let t=new TextEncoder().encode(e);r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e instanceof ArrayBuffer)r=e;else if(ArrayBuffer.isView(e)){let t=e;r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e&&typeof e.arrayBuffer==`function`)r=await e.arrayBuffer();else throw Error(`Unsupported input type for getHash`);let i=await globalThis.crypto.subtle.digest(t,r);return n===`binary`?Array.from(new Uint8Array(i),e=>String.fromCharCode(e)).join(``):Array.from(new Uint8Array(i),e=>e.toString(16).padStart(2,`0`)).join(``)}})))()}var Od,kd,Ad,jd,Md,Nd,Pd,Fd;function Id(){return(Id=o((()=>{Dd(),Ad=(e=`e`,t=7)=>[e,wd(t)].join(`-`),jd=e=>{Od?.delete(e),kd?.unobserve(e)},Md=()=>{if(`IntersectionObserver`in globalThis)return kd||(Od=new WeakMap,kd=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=Od?.get(t);n&&(n(),jd(t))})}),kd)},Nd=e=>{let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=globalThis;return r>0&&i>0&&t<a&&n<o},Pd=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},Fd=e=>{let t=Md();if(t)return Nd(e)?Promise.resolve(void 0):new Promise(n=>{Od?.set(e,n),Pd(()=>{t.observe(e)})})}})))()}var Ld,Rd;function zd(){return(zd=o((()=>{J(),Id(),gd(),mu(),Ld=class{#e=M(!1);get open(){return z(this.#e)}set open(e){N(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&window.requestAnimationFrame(()=>{let{activeElement:e}=document;(!e||e===document.body||this.popupElement?.contains(e))&&this.anchorElement.focus()}),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=M(Dr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){N(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let n=this.contentElement??this.popupElement?.querySelector(`.content`)??null;if(!n)return;let{scrollHeight:r,scrollWidth:i}=n,a=e.top-8,o=t.height-e.bottom-8,{position:s}=this,c;document.dir===`rtl`&&(s.endsWith(`-left`)?s=s.replace(`-left`,`-right`):s.endsWith(`-right`)&&(s=s.replace(`-right`,`-left`)),s.startsWith(`left-`)?s=s.replace(`left-`,`right-`):s.startsWith(`right-`)&&(s=s.replace(`right-`,`left-`))),s.startsWith(`bottom-`)&&r>o&&(a>o?(s=s.replace(`bottom-`,`top-`),c=a):c=o),s.endsWith(`-left`)&&e.left+i>t.width-8&&(s=s.replace(`-left`,`-right`)),s.endsWith(`-right`)&&e.right-i<8&&(s=s.replace(`-right`,`-left`));let l={inset:[s.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:s.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,s.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:s.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,s.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:s.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,s.startsWith(`right-`)?`${Math.round(e.right)}px`:s.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:s.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:c?`${Math.round(c)}px`:`auto`};(l.inset!==this.style.inset||l.zIndex!==this.style.zIndex||l.minWidth!==this.style.minWidth||l.maxWidth!==this.style.maxWidth||l.height!==this.style.height)&&(this.style=l)})});popupElement=void 0;contentElement=void 0;#n=void 0;constructor(e,t,n,r){this.anchorElement=e,this.position=n,this.positionBaseElement=r??e,this.id=Ad(`popup`),this.anchorElement.setAttribute(`aria-expanded`,`false`),fa(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),fa(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),fa(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement),t&&this.attachPopupElement(t)}attachPopupElement(e,t){if(this.popupElement===e&&this.contentElement===t)return;this.detachPopupElement(),this.popupElement=e,this.contentElement=t;let n=t??e;n.id=this.id,this.anchorElement.setAttribute(`aria-controls`,this.id);let r=fa(e,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),i=fa(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)});this.#n=()=>{r(),i()}}detachPopupElement(){this.#n?.(),this.#n=void 0,this.anchorElement.getAttribute(`aria-controls`)===this.id&&this.anchorElement.removeAttribute(`aria-controls`),this.popupElement=void 0,this.contentElement=void 0}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.popupElement&&(this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement))}async hideImmediately(){this.popupElement&&(this.popupElement.hidden=!0),this.open=!1,await hd(50),this.popupElement&&(this.popupElement.hidden=!1)}destroy(){this.detachPopupElement(),this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Rd=(...e)=>new Ld(...e)})))()}function Bd(e,t){var n=V();vo(F(n),()=>t.children??T),H(e,n)}function Vd(){return(Vd=o((()=>{Y(),J()})))()}function Hd(e,t){D(t,!0),G(e,Kd);let n=e=>{var n=V(),l=F(n),d=e=>{var n=Gd(),l=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},d=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};ds(n,()=>({tabindex:`-1`,...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:l,oncancel:d,[ms]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-10xb2ci`);var f=P(n);vo(f,()=>t.extraContent??T),vo(I(f,2),()=>t.children??T),E(n),Fs(n,e=>i(e),()=>i()),H(e,n)};W(l,e=>{z(v)&&e(d)}),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`dialog`,15),a=q(t,`role`,3,`dialog`),o=q(t,`showBackdrop`,3,!1),s=q(t,`lightDismiss`,3,!1),c=q(t,`escapeDismiss`,3,!0),l=q(t,`keepContent`,3,!1),u=Hs(t,Wd),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=M(!1),m=M(!1),h=M(!1),g=M(0),_=Pt(Ud);Ft(Ud,{retain:()=>{Li(()=>{N(g,z(g)+1)})},release:()=>{Li(()=>{N(g,z(g)-1)})}});let v=j(()=>l()||z(h)||z(g)>0),y=!1,b=0,x,S=()=>{let{activeElement:e}=document,t=x;x=void 0,t?.isConnected&&(!e||e===document.body||i()?.contains(e))&&t.focus()},C=e=>Math.max(0,...e.split(`,`).map(e=>Number.parseFloat(e)||0))*1e3,w=async()=>{if(await Pi(),!i())return;let{transitionDuration:e,transitionDelay:t}=getComputedStyle(i()),n=C(e)+C(t)+100,r=new AbortController,{signal:a}=r;i().addEventListener(`transitionend`,e=>{e.target===i()&&r.abort()},{signal:a});let o=window.setTimeout(()=>r.abort(),n);await new Promise(e=>{a.addEventListener(`abort`,()=>e(void 0))}),window.clearTimeout(o)},ee=async()=>{if(y)return;y=!0,b+=1;let e=b,{activeElement:n}=document;x=n instanceof HTMLElement?n:void 0,t.onOpening?.(new CustomEvent(`Opening`)),N(h,!0),await Pi(),!(e!==b||!i()||i().open)&&(i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),i().getBoundingClientRect(),N(p,!0),await Pi(),!(e!==b||!i())&&(i().contains(document.activeElement)||d(),await w(),e===b&&N(m,!0)))},te=async()=>{if(!y)return;y=!1,b+=1;let e=b,n=z(p),r=i()?.returnValue??``;t.onClosing?.(new CustomEvent(`Closing`)),i()?.open&&(document.body.inert=!0,i().close(),document.body.inert=!1),S(),N(m,!1),N(p,!1),n&&await w(),e===b&&(N(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i()&&i(i().returnValue=``,!0))},ne=It();return Qs(()=>{let e=ja(Bd,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n},context:ne});return()=>{i()?.close(),Na(e)}}),L(()=>{r()?ee():te()}),L(()=>{if(z(h))return _?.retain(),()=>{_?.release()}}),O({focus:d,close:f})}var Ud,Wd,Gd,Kd;function qd(){return(qd=o((()=>{Y(),J(),tc(),Vd(),Ud=Symbol(`sui-modal-retainer`),Wd=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),Gd=B(`<dialog><!> <!></dialog>`),Kd={hash:`svelte-10xb2ci`,code:`dialog.svelte-10xb2ci {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-10xb2ci::backdrop {background:transparent;}dialog.backdrop.svelte-10xb2ci {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-10xb2ci {transition-duration:50ms;opacity:1;}dialog.svelte-10xb2ci:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-10xb2ci {transition-duration:1ms !important;}dialog.svelte-10xb2ci:not(.active) {pointer-events:none !important;}dialog.svelte-10xb2ci:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}})))()}function Jd(e,t){D(t,!0),G(e,Zd);let n=e=>{var n=Xd();let o,s;vo(P(n),()=>t.children??T),E(n),Fs(n,e=>a(e),()=>a()),R(()=>{K(n,`hidden`,!r()),o=es(n,1,`content ${t.class??``} ${z(m)??``}`,`svelte-du3zm3`,o,{touch:z(_)}),s=rs(n,``,s,{inset:z(h)?.style.inset,"z-index":z(h)?.style.zIndex,"min-width":z(h)?.style.minWidth,"max-width":z(h)?.style.maxWidth,"max-height":z(h)?.style.height,visibility:z(h)?.style.inset?void 0:`hidden`})}),pa(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(g)}),pa(`mouseleave`,n,()=>{i(!1),l()&&(g=window.setTimeout(()=>{r(!1)},200))}),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`hovered`,15,!1),a=q(t,`content`,15,void 0),o=q(t,`showBackdrop`,3,void 0),s=q(t,`position`,3,`bottom-left`),c=q(t,`positionBaseElement`,3,void 0),l=q(t,`parentDialogElement`,3,void 0),u=q(t,`touchOptimized`,3,!1),d=Hs(t,Yd),f=M(void 0),p=M(!1),m=M(void 0),h=M(void 0),g=0;L(()=>{z(h)&&r(z(h).open)}),L(()=>{l()&&!z(f)&&a()&&(N(f,l()),z(f).append(a()))}),L(()=>{t.anchor&&!z(h)&&(N(h,Rd(t.anchor,void 0,s(),c()),!0),N(m,t.anchor.getAttribute(`aria-haspopup`)??void 0,!0))}),L(()=>{if(z(h)&&z(f)&&a())return z(h).attachPopupElement(z(f),a()),()=>{z(h)?.detachPopupElement()}}),L(()=>{r()&&z(f)&&z(h)?.checkPosition()});let _=j(()=>u()&&z(p));Qs(()=>(N(p,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(h)?.destroy?.(),globalThis.clearTimeout(g)}));var v=V(),y=F(v),b=e=>{n(e)},x=e=>{{let i=j(()=>o()??z(_));Hd(e,Us(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,onOpen:async e=>{if(t.onOpen?.(e),await hd(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(f)},set dialog(e){N(f,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};W(y,e=>{l()?e(b):e(x,-1)}),H(e,v),O()}var Yd,Xd,Zd;function Qd(){return(Qd=o((()=>{Y(),J(),gd(),tc(),zd(),qd(),Yd=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),Xd=B(`<div role="none"><!></div>`),Zd={hash:`svelte-du3zm3`,code:`.content.svelte-du3zm3 {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-du3zm3 {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-du3zm3 .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-du3zm3 {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-du3zm3 .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.combobox.svelte-du3zm3 {display:flex;flex-direction:column;overflow:hidden;}.content.touch.svelte-du3zm3 {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-du3zm3 {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-du3zm3 {transform:scale(90%);}.content.touch.combobox.svelte-du3zm3 .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-du3zm3 {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-du3zm3 {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}})))()}function $d(e,t){D(t,!0),G(e,af);let n=q(t,`element`,15),r=q(t,`class`,3,``),i=q(t,`type`,3,`button`),a=q(t,`role`,3,`button`),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,19,()=>typeof s()),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`pressed`,3,void 0),p=q(t,`keyShortcuts`,3,void 0),m=q(t,`label`,3,``),h=q(t,`lines`,3,1),g=q(t,`variant`,3,void 0),_=q(t,`size`,3,`medium`),v=q(t,`iconic`,3,!1),y=q(t,`pill`,3,!1),b=q(t,`flex`,3,!1),x=q(t,`popupPosition`,3,`bottom-left`),S=q(t,`showPopupBackdrop`,3,!1),C=Hs(t,ef);var w=rf(),ee=F(w);ds(ee,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[ms]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-1pnpxw9`);var te=P(ee);vo(te,()=>t.startIcon??T);var ne=I(te,2),re=e=>{var n=V(),r=F(n),i=e=>{var t=tf();dd(P(t),{get lines(){return h()},children:(e,t)=>{mt();var n=Da();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),E(t),H(e,t)},a=e=>{var n=tf();vo(P(n),()=>t.children??T),E(n),H(e,n)};W(r,e=>{m()?e(i):e(a,-1)}),H(e,n)},ie=e=>{var n=nf(),r=F(n),i=e=>{var t=tf();dd(P(t),{get lines(){return h()},children:(e,t)=>{mt();var n=Da();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),E(t),H(e,t)};W(r,e=>{m()&&e(i)}),vo(I(r,2),()=>t.children??T),H(e,n)};W(ne,e=>{g()===`link`?e(re):e(ie,-1)}),vo(I(ne,2),()=>t.endIcon??T),E(ee),Fs(ee,e=>n(e),()=>n()),Ho(ee,()=>p()&&ld(p()));var ae=I(ee,2),oe=e=>{Jd(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=V();vo(F(r),()=>t.popup),H(e,r)},$$slots:{default:!0}})};W(ae,e=>{t.popup&&e(oe)}),H(e,w),O()}var ef,tf,nf,rf,af;function of(){return(of=o((()=>{Y(),J(),ud(),md(),Qd(),ef=new Set(`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`)),tf=B(`<span role="none" class="label svelte-1pnpxw9"><!></span>`),nf=B(`<!> <!>`,1),rf=B(`<button><!> <!> <!></button> <!>`,1),af={hash:`svelte-1pnpxw9`,code:`button.svelte-1pnpxw9 {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-1pnpxw9 {display:none !important;}button.svelte-1pnpxw9:not(:disabled):focus-visible {z-index:1;}button.svelte-1pnpxw9:is(.primary:where(.svelte-1pnpxw9), .secondary:where(.svelte-1pnpxw9), .tertiary:where(.svelte-1pnpxw9), .ghost:where(.svelte-1pnpxw9)) {justify-content:center;border-width:1px;}button.svelte-1pnpxw9:is(.primary:where(.svelte-1pnpxw9), .secondary:where(.svelte-1pnpxw9), .tertiary:where(.svelte-1pnpxw9), .ghost:where(.svelte-1pnpxw9)) .label:where(.svelte-1pnpxw9):only-child {padding:0 4px;}button.primary.svelte-1pnpxw9 {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-1pnpxw9:is(:where(.svelte-1pnpxw9):hover, :where(.svelte-1pnpxw9):focus-visible, [aria-expanded=true]:where(.svelte-1pnpxw9)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-1pnpxw9:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-1pnpxw9 {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-1pnpxw9:is(:where(.svelte-1pnpxw9):hover, :where(.svelte-1pnpxw9):focus-visible, [aria-expanded=true]:where(.svelte-1pnpxw9)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-1pnpxw9:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-1pnpxw9 {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-1pnpxw9 {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-1pnpxw9:is(:where(.svelte-1pnpxw9):hover, :where(.svelte-1pnpxw9):focus-visible, [aria-expanded=true]:where(.svelte-1pnpxw9)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-1pnpxw9:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-1pnpxw9 {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-1pnpxw9 {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-1pnpxw9:is(:where(.svelte-1pnpxw9):hover, :where(.svelte-1pnpxw9):focus-visible, [aria-expanded=true]:where(.svelte-1pnpxw9)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-1pnpxw9:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-1pnpxw9 {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-1pnpxw9 {margin:0;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-1pnpxw9 .label:where(.svelte-1pnpxw9) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-1pnpxw9 .label:where(.svelte-1pnpxw9) {text-decoration:underline;}button.small.svelte-1pnpxw9 {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-1pnpxw9 .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-1pnpxw9 {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-1pnpxw9 {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-1pnpxw9 {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-1pnpxw9:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-1pnpxw9 {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-1pnpxw9 {background-color:var(--sui-error-background-color);}button.svelte-1pnpxw9 .label:where(.svelte-1pnpxw9) {padding:0 4px;}button.svelte-1pnpxw9 > * {pointer-events:none;}button.svelte-1pnpxw9 :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}})))()}function sf(e,t){D(t,!0),G(e,uf);let n=q(t,`show`,15,!0),r=q(t,`dismissible`,3,!0),i=q(t,`status`,3,`info`),a=q(t,`ariaLive`,3,`polite`),o=q(t,`children`,3,void 0),s=q(t,`icon`,3,void 0);var c=V(),l=F(c),u=e=>{var t=lf(),c=P(t),l=P(c),u=e=>{var t=V();vo(F(t),s),H(e,t)},d=e=>{{let t=j(()=>i()===`success`?`check_circle`:i());nc(e,{get name(){return z(t)}})}};W(l,e=>{s()?e(u):e(d,-1)}),vo(I(l,2),()=>o()??T),E(c);var f=I(c,2),p=e=>{var t=cf(),r=P(t);{let e=j(()=>X(`_sui.dismiss`));$d(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{nc(e,{name:`close`})},$$slots:{default:!0}})}E(t),H(e,t)};W(f,e=>{r()&&e(p)}),E(t),R(()=>{es(t,1,`infobar ${i()??``}`,`svelte-176ehs0`),K(c,`aria-live`,a())}),H(e,t)};W(l,e=>{n()&&e(u)}),H(e,c),O()}var cf,lf,uf;function df(){return(df=o((()=>{Y(),J(),Z(),of(),oc(),cf=B(`<div role="none"><!></div>`),lf=B(`<div role="none"><div role="alert" class="message svelte-176ehs0"><!> <!></div> <!></div>`),uf={hash:`svelte-176ehs0`,code:`.infobar.svelte-176ehs0 {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-176ehs0 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-176ehs0 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-176ehs0 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-176ehs0 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-176ehs0 {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-176ehs0 button {font-size:inherit !important;}.message.svelte-176ehs0 .icon {font-size:16px; /* !hardcoded */}`}})))()}function ff(e,t){G(e,hf);let n=Hs(t,pf);var r=mf();ds(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-15fpcw7`),vo(P(r),()=>t.children??T),E(r),H(e,r)}var pf,mf,hf;function gf(){return(gf=o((()=>{Y(),J(),pf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),mf=B(`<div><!></div>`),hf={hash:`svelte-15fpcw7`,code:`.bottom-navigation.svelte-15fpcw7 {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-15fpcw7:is([inert]:where(.svelte-15fpcw7), [hidden]:where(.svelte-15fpcw7)) {display:none;}.bottom-navigation.svelte-15fpcw7 .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}})))()}function lee(e,t){G(e,yf);let n=q(t,`ariaLabel`,3,void 0),r=Hs(t,_f);var i=vf();ds(i,()=>({...r,role:`group`,class:`sui button-group ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-7ggmgb`),vo(P(i),()=>t.children??T),E(i),H(e,i)}var _f,vf,yf;function bf(){return(bf=o((()=>{Y(),J(),_f=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),vf=B(`<div><!></div>`),yf={hash:`svelte-7ggmgb`,code:`.button-group.svelte-7ggmgb {flex:none;display:inline-flex;align-items:center;}`}})))()}function xf(e,t){G(e,Cf);let n=q(t,`children`,3,void 0);var r=Sf();vo(P(r),()=>n()??T),E(r),H(e,r)}var Sf,Cf;function wf(){return(wf=o((()=>{Y(),J(),Sf=B(`<div role="none" class="sui floating-action-button-wrapper svelte-svl02x"><!></div>`),Cf={hash:`svelte-svl02x`,code:`.floating-action-button-wrapper.svelte-svl02x {display:contents;}
|
|
20
|
+
@media (width < 768px) {.floating-action-button-wrapper.svelte-svl02x {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-svl02x button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-svl02x button .icon {font-size:32px;}
|
|
21
|
+
}`}})))()}var Tf,Ef,Df,Of,kf;function Af(){return(Af=o((()=>{J(),tc(),Tf=Symbol(`sui-option-registry`),Ef=class{#e=M(!1);get expanded(){return z(this.#e)}set expanded(e){N(this.#e,e,!0)}#t=M([]);get count(){return z(this.#t).length}get selectedEntry(){return z(this.#t).find(e=>e.selected)}register(e){return N(this.#t,[...z(this.#t),e]),()=>{N(this.#t,z(this.#t).filter(t=>t!==e))}}find(e){return z(this.#t).find(t=>t.value===e)}selectOnly(e){z(this.#t).forEach(t=>{let n=t.value===e;t.selected!==n&&(t.selected=n)})}},Df=()=>Ft(Tf,new Ef),Of=()=>Pt(Tf),kf=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}}})))()}var jf,Mf,Nf,Pf,Ff,If,Lf,Rf;function zf(){return(zf=o((()=>{J(),Z(),Id(),gd(),Af(),jf=/\p{Diacritic}/gu,Mf=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(jf,``).toLocaleLowerCase():``),Nf={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!1,rovingTabStop:`selected`},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!0,rovingTabStop:`selected`}},Pf=`a[href], button, input, select, textarea, summary, [tabindex]`,Ff=(e,t)=>{let n=[...document.querySelectorAll(Pf)].filter(t=>t===e||t.tabIndex>=0&&!t.matches(`:disabled, [aria-disabled="true"], [hidden], [inert], [inert] *`)),r=n.indexOf(e);if(r===-1)return;let i=t?-1:1;for(let e=r+i;e>=0&&e<n.length;e+=i)if(n[e].getClientRects().length){n[e].focus();return}},If=e=>{let t=e;for(;t;){if(t.id){let e=document.querySelector(`[aria-haspopup="menu"][aria-controls="${CSS.escape(t.id)}"]`);if(e)return e}t=t.parentElement}return null},Lf=class{#e=void 0;#t=new WeakMap;#n=new WeakMap;#r(e){let t=e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent,n=this.#t.get(e);if(n?.raw===t)return n.normalized;let r=Mf(t);return this.#t.set(e,{raw:t,normalized:r}),r}constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=Ad(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o,controlsPanel:s,rovingTabStop:c}=Nf[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.controlsPanel=s,this.rovingTabStop=c,this.parent.tabIndex=a?-1:0,this.observer=new globalThis.MutationObserver(()=>{this.#e=void 0}),this.observer.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`aria-disabled`,`aria-hidden`]}),(async()=>{await hd(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=this.controlsPanel?document.querySelector(`#${e.getAttribute(`aria-controls`)}`):null;e.id||=`${this.id}-item-${t+1}`,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),this.updateTabStop(),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}updateTabStop(){let{allMembers:e,activeMembers:t}=this;if(!this.focusChild){e.forEach(e=>{e.tabIndex=-1});return}let n=this.rovingTabStop===`selected`?t.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)??t[0]:t[0];e.forEach(e=>{e.tabIndex=e===n?0:-1})}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get#i(){if(this.observer.takeRecords().length&&(this.#e=void 0),!this.#e){let e=[...this.parent.querySelectorAll(this.selector)];this.#e={all:e,active:e.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}}return this.#e}get allMembers(){return this.#i.all}get activeMembers(){return this.#i.active}get opener(){return If(this.parent)}get parentMenuItem(){let{opener:e}=this;return e?.matches(`[role^="menuitem"]`)?e:null}closeMenuChain(){let{opener:e}=this,t=e,n=null;for(let e=0;e<10&&t;e+=1){n=t,t.getAttribute(`aria-expanded`)===`true`&&t.click();let e=t.closest(`[role="menu"], [role="menubar"]`);t=e?If(e):null}return n}async leaveMenu(e){let t=this.closeMenuChain();t&&(t.focus(),await hd(50),Ff(t,e))}async enterSubmenu(e){let t=e.getAttribute(`aria-controls`);if(!t)return;e.getAttribute(`aria-expanded`)!==`true`&&e.click();let n=document.getElementById(t);for(let e=0;e<20;e+=1){let e=[...n?.querySelectorAll(this.selector)??[]].find(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`));if(e?.focus(),e&&document.activeElement===e)return;await hd(20)}}leaveSubmenu(e){e.getAttribute(`aria-expanded`)===`true`&&e.click(),e.focus()}get selected(){return this.activeMembers.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `,o=[],s=!1;this.activeMembers.forEach(c=>{let l=c.getAttribute(`role`),u=l===`menuitemcheckbox`,d=l===`menuitemradio`;if((u||d)&&(l!==n||c.closest(this.parentGroupSelector)!==r))return;let f=u||this.multi,p=d||!f,m=c===t,h=c.getAttribute(this.childSelectedAttr)===`true`,g=this.controlsPanel?c.getAttribute(`aria-controls`):null,_=g?document.getElementById(g):null;o.push(c),s||=m,f&&m&&(i||a)&&(c.setAttribute(this.childSelectedAttr,String(!h)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!h}})),h||c.dispatchEvent(new CustomEvent(`Select`))),p&&h!==m&&(!d||a||i)&&(c.setAttribute(this.childSelectedAttr,String(m)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:m}})),m&&(e.type===`keydown`&&l===`radio`&&c.click(),c.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild||(c.classList.toggle(`focused`,m),m&&c.dispatchEvent(new CustomEvent(`Focus`))),_&&(_.inert=!m,_.setAttribute(`aria-hidden`,String(!m)),m&&globalThis.setTimeout(()=>{try{_.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{_.scrollIntoView(!0)}},300)),m&&(this.parent.setAttribute(`aria-activedescendant`,c.id),globalThis.setTimeout(()=>{try{c.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{c.scrollIntoView(!0)}},300))}),this.focusChild&&globalThis.requestAnimationFrame(()=>{o.forEach(e=>{e.tabIndex=e===t?0:-1}),s&&(t.focus(),t.dispatchEvent(new CustomEvent(`Focus`)))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:kf(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r,s=this.childRoles.includes(`menuitem`);if(t===`Tab`&&s&&!n&&!r&&!a){e.preventDefault(),this.leaveMenu(i);return}if(o)return;let c=e.target,{allMembers:l,activeMembers:u}=this,d=(()=>{if(!this.focusChild)return u.find(e=>e.matches(`.focused`));if(c.matches(this.selector))return c})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){d?.click();return}if(t===` `){d&&this.selectTarget(e,d);return}if(t===`Escape`&&s){let{parentMenuItem:t}=this;if(t){e.preventDefault(),e.stopPropagation(),this.leaveSubmenu(t);return}}if(this.orientation===`vertical`&&s){let e=Ru()?`ArrowLeft`:`ArrowRight`,n=Ru()?`ArrowRight`:`ArrowLeft`;if(t===e&&d?.getAttribute(`aria-haspopup`)===`menu`){this.enterSubmenu(d);return}if(t===n){let{parentMenuItem:e}=this;if(e){this.leaveSubmenu(e);return}}}let f,p;if(this.grid){let e=Math.floor(this.parent.clientWidth/u[0].clientWidth),n=Ru();f=d?l.indexOf(d):-1,t===`ArrowUp`&&f>0&&(p=l[f-e]),t===`ArrowDown`&&f<l.length-1&&(p=l[f+e]),t===`ArrowLeft`&&f>0&&(p=l[f+(n?1:-1)]),t===`ArrowRight`&&f<l.length-1&&(p=l[f+(n?-1:1)]),p?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(p=void 0)}else{f=d?u.indexOf(d):-1;let e=Ru(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(f>0&&(p=u[f-1]),f<=0&&(p=u[u.length-1])),t===r&&(f<u.length-1&&(p=u[f+1]),f===u.length-1&&([p]=u))}p&&p!==d&&this.selectTarget(e,p)}destroy(){this.observer.disconnect(),this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=Mf(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=this.#r(e),r=!n.every(e=>t.includes(e));return this.#n.get(e)!==r&&(this.#n.set(e,r),e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}}))),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},Rf=e=>t=>{let n=typeof e==`function`,r=n?e():e,i=new Lf(t,r);return n&&L(()=>{i.onUpdate(e())}),()=>{i.destroy()}}})))()}function Bf(e,t){D(t,!0),G(e,Uf);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`ariaLabel`,3,void 0),c=Hs(t,Vf);var l=Hf();ds(l,()=>({...c,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-label":s()}),void 0,void 0,void 0,`svelte-1uyhpou`);var u=P(l);vo(P(u),()=>t.children??T),E(u),E(l),Ho(l,Rf),R(()=>u.inert=r()),H(e,l),O()}var Vf,Hf,Uf;function Wf(){return(Wf=o((()=>{Y(),J(),zf(),Vf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`]),Hf=B(`<div><div role="none" class="inner svelte-1uyhpou"><!></div></div>`),Uf={hash:`svelte-1uyhpou`,code:`.select-button-group.svelte-1uyhpou {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1uyhpou:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1uyhpou button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1uyhpou button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-1uyhpou button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-1uyhpou button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-1uyhpou button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1uyhpou [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1uyhpou [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1uyhpou [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1uyhpou {display:contents;}`}})))()}function Gf(e,t){D(t,!0);let n=q(t,`selected`,15,!1),r=Hs(t,Kf);$d(e,Us(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),O()}var Kf;function qf(){return(qf=o((()=>{Y(),J(),of(),Kf=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`])})))()}function Jf(e,t){D(t,!0);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`popupPosition`,3,`bottom-left`),a=q(t,`popupPositionBaseElement`,3,void 0),o=q(t,`showPopupBackdrop`,3,!1),s=q(t,`label`,3,``),c=q(t,`variant`,3,void 0),l=q(t,`size`,3,`medium`),u=q(t,`iconic`,3,!1),d=Hs(t,Yf),f=M(void 0);var p={focus:()=>{z(f)?.focus()}},m=Xf(),h=F(m);return $d(h,Us(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return z(f)},set element(e){N(f,e,!0)},startIcon:e=>{var n=V();vo(F(n),()=>t.startIcon??T),H(e,n)},children:e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)},endIcon:e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.endIcon),H(e,n)},a=e=>{nc(e,{name:`more_vert`})},o=e=>{nc(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),Jd(I(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=V();vo(F(r),()=>t.popup??T),H(e,r)},$$slots:{default:!0}}),H(e,m),O(p)}var Yf,Xf;function Zf(){return(Zf=o((()=>{Y(),J(),of(),oc(),Qd(),Yf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),Xf=B(`<!> <!>`,1)})))()}function Qf(e,t){D(t,!0),G(e,tp);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`label`,3,``),a=q(t,`variant`,3,void 0),o=q(t,`size`,3,`medium`),s=q(t,`popupPosition`,3,`bottom-left`),c=q(t,`showPopupBackdrop`,3,!1),l=Hs(t,$f),u=M(void 0);var d=ep(),f=P(d);$d(f,Us(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=I(f,2);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.chevronIcon),H(e,n)},a=e=>{nc(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},i=e=>{var n=V();vo(F(n),()=>t.popup??T),H(e,n)},l=j(()=>X(`_sui.split_button.more_options`));Jf(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return z(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return z(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}E(d),Fs(d,e=>N(u,e),()=>z(u)),R(e=>{K(d,`hidden`,n()),K(d,`aria-hidden`,n()),K(d,`aria-disabled`,r()),K(d,`aria-label`,e)},[()=>X(`_sui.split_button.x_options`,{values:{name:i()}})]),H(e,d),O()}var $f,ep,tp;function np(){return(np=o((()=>{Y(),J(),Z(),oc(),Zf(),of(),$f=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),ep=B(`<div role="group" class="sui split-button svelte-12j2cnm"><!> <!></div>`),tp={hash:`svelte-12j2cnm`,code:`.split-button.svelte-12j2cnm {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-12j2cnm button {margin:0;}.split-button.svelte-12j2cnm button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-12j2cnm button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}})))()}function rp(e,t){G(e,op);let n=q(t,`hidden`,3,!1),r=q(t,`orientation`,3,`horizontal`),i=q(t,`ariaLabel`,3,void 0),a=Hs(t,ip);var o=ap();ds(o,()=>({...a,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-n07zwr`),H(e,o)}var ip,ap,op;function sp(){return(sp=o((()=>{Y(),J(),ip=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`,`ariaLabel`]),ap=B(`<div></div>`),op={hash:`svelte-n07zwr`,code:`.divider.svelte-n07zwr {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-n07zwr {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-n07zwr {margin:0 8px;width:1px;height:100%;}`}})))()}function cp(e,t){G(e,dp);let n=q(t,`flex`,3,!1),r=Hs(t,lp);var i=up();ds(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[ms]:{flex:n()}}),void 0,void 0,void 0,`svelte-15obgiy`),H(e,i)}var lp,up,dp;function fp(){return(fp=o((()=>{Y(),J(),lp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),up=B(`<div></div>`),dp={hash:`svelte-15obgiy`,code:`.spacer.flex.svelte-15obgiy:not([hidden]) {display:block;flex:auto;}.spacer.svelte-15obgiy:not(.flex) {width:8px;height:8px;}`}})))()}function pp(e,t){G(e,gp);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`ariaLabel`,3,void 0),o=Hs(t,mp);var s=hp();ds(s,()=>({...o,role:`group`,class:`sui checkbox-group ${t.class??``} ${i()??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-roledescription":`checkbox group`,"aria-label":a()}),void 0,void 0,void 0,`svelte-1m8ft1`);var c=P(s);vo(P(c),()=>t.children??T),E(c),E(s),R(()=>c.inert=r()),H(e,s)}var mp,hp,gp;function _p(){return(_p=o((()=>{Y(),J(),mp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`ariaLabel`,`children`]),hp=B(`<div><div role="none" class="inner svelte-1m8ft1"><!></div></div>`),gp={hash:`svelte-1m8ft1`,code:`.checkbox-group.svelte-1m8ft1 {display:inline-flex;}.checkbox-group.horizontal.svelte-1m8ft1 {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-1m8ft1 {gap:4px;flex-direction:column;}
|
|
22
|
+
@media (pointer: coarse) {.checkbox-group.vertical.svelte-1m8ft1 {gap:8px;}
|
|
23
|
+
}.inner.svelte-1m8ft1 {display:contents;}`}})))()}function vp(e,t){let n=Oa();D(t,!0),G(e,Sp);let r=q(t,`checked`,15),i=q(t,`name`,3,void 0),a=q(t,`value`,3,void 0),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=q(t,`label`,3,void 0),f=q(t,`ariaLabel`,3,void 0),p=q(t,`group`,15),m=Hs(t,yp),h=M(void 0),g=j(()=>r()===`mixed`);L(()=>{Array.isArray(p())&&(p().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var _=xp();let v;var y=P(_),b=P(y);{let e=e=>{var n=V(),i=F(n),a=e=>{var n=V();vo(F(n),()=>t.checkIcon),H(e,n)},o=e=>{nc(e,{name:`remove`})},s=e=>{nc(e,{name:`check`})};W(i,e=>{t.checkIcon?e(a):z(g)?e(o,1):r()&&e(s,2)}),H(e,n)},d=j(()=>f()||void 0),_=j(()=>f()?void 0:`${n}-label`);$d(b,Us(()=>m,{role:`checkbox`,get id(){return n},get name(){return i()},get value(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get"aria-invalid"(){return u()},get"aria-checked"(){return r()},get"aria-label"(){return z(d)},get"aria-labelledby"(){return z(_)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!(s()||c())&&(r(z(g)?!0:!r()),Array.isArray(p())&&(r()?p().includes(a())||p([...p(),a()]):p().includes(a())&&p(p().filter(e=>e!==a()))),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:r()}})))},get element(){return z(h)},set element(e){N(h,e,!0)},startIcon:e,$$slots:{startIcon:!0}}))}var x=I(b,2),S=e=>{var r=bp(),i=P(r),a=e=>{var n=V();vo(F(n),()=>t.children),H(e,n)},o=e=>{var t=Da();R(()=>U(t,d())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),E(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(x,e=>{(t.children||d())&&e(S)}),E(y),E(_),R(()=>{v=es(_,1,`sui checkbox ${t.class??``}`,`svelte-crc1tv`,v,{checked:r(),indeterminate:z(g),disabled:s(),readonly:c()}),K(_,`hidden`,o()),y.inert=s()}),ma(`click`,_,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||z(h)?.click()}),H(e,_),O()}var yp,bp,xp,Sp;function Cp(){return(Cp=o((()=>{Y(),J(),of(),oc(),yp=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`ariaLabel`,`group`,`onChange`,`children`,`checkIcon`]),bp=B(`<label class="svelte-crc1tv"><!></label>`),xp=B(`<div role="none"><div role="none" class="inner svelte-crc1tv"><!> <!></div></div>`),Sp={hash:`svelte-crc1tv`,code:`.checkbox.svelte-crc1tv {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.checkbox.svelte-crc1tv:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-crc1tv:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-crc1tv:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-crc1tv:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-crc1tv button {flex:none;align-items:center;justify-content:center;overflow:hidden;margin:0 !important;border-width:var(--sui-checkbox-border-width, 1.5px);border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-border-radius);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);color:var(--sui-primary-accent-text-color);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.checkbox.svelte-crc1tv button[aria-checked=true] {border-color:var(--sui-checkbox-border-color-checked, var(--sui-primary-accent-color));color:var(--sui-checkbox-foreground-color-checked, var(--sui-primary-accent-color-inverted));background-color:var(--sui-checkbox-background-color-checked, var(--sui-primary-accent-color));}.checkbox.svelte-crc1tv button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-crc1tv button[aria-checked=true][aria-invalid=true] {background-color:var(--sui-checkbox-background-color);}.checkbox.svelte-crc1tv button .icon {font-size:calc(var(--sui-checkbox-height) - 2px);}.checkbox.svelte-crc1tv label:where(.svelte-crc1tv) {cursor:inherit;}.inner.svelte-crc1tv {display:contents;}`},ha([`click`])})))()}function wp(e,t){let n=Oa();D(t,!0),G(e,jp);let r=q(t,`open`,15,!1);q(t,`value`,11,``);let i=q(t,`role`,3,`dialog`),a=q(t,`size`,3,`medium`),o=q(t,`showClose`,3,!1),s=q(t,`showOk`,3,!0),c=q(t,`showCancel`,3,!0),l=q(t,`okLabel`,3,``),u=q(t,`okShortcuts`,3,void 0),d=q(t,`okDisabled`,3,!1),f=q(t,`cancelLabel`,3,``),p=q(t,`cancelShortcuts`,3,void 0),m=q(t,`cancelDisabled`,3,!1),h=q(t,`focusInput`,3,!0),g=Hs(t,Tp),_=M(void 0),v=M(void 0);L(()=>{if(r()&&z(v)){let e=!1;return(async()=>{if(await hd(50),e)return;let t=h()?z(v)?.querySelector(`input, button.primary`):null;t?(t.focus(),t instanceof HTMLInputElement&&t.select()):(!h()||!z(v)?.contains(document.activeElement))&&z(_)?.focus()})(),()=>{e=!0}}});{let h=j(()=>t.header?void 0:t.title),y=j(()=>t.header?t.title:`${n}-title`);Fs(Hd(e,Us(()=>g,{get role(){return i()},get id(){return n},class:`dialog`,get"aria-label"(){return z(h)},get"aria-labelledby"(){return z(y)},get"aria-describedby"(){return`${n}-body`},showBackdrop:!0,get open(){return r()},set open(e){r(e)},children:(e,r)=>{var i=Ap(),h=P(i),g=e=>{var r=Dp(),i=P(r),a=e=>{var n=V();vo(F(n),()=>t.header),H(e,n)},s=e=>{var r=Ep(),i=F(r),a=P(i,!0);E(i);var s=I(i,2);cp(s,{flex:!0});var c=I(s,2);vo(c,()=>t.headerExtra??T);var l=I(c,2),u=e=>{{let r=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.closeIcon),H(e,n)},a=e=>{nc(e,{name:`close`})};W(r,e=>{t.closeIcon?e(i):e(a,-1)}),H(e,n)},i=j(()=>X(`_sui.close`));$d(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{z(_)?.close(`close`)},startIcon:r,$$slots:{startIcon:!0}})}};W(l,e=>{o()&&e(u)}),R(()=>{K(i,`id`,`${n}-title`),U(a,t.title)}),H(e,r)};W(i,e=>{t.header?e(a):e(s,-1)}),E(r),H(e,r)};W(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=I(h,2);vo(P(y),()=>t.children??T),E(y);var b=I(y,2),x=e=>{var n=kp(),r=P(n),i=e=>{var n=V();vo(F(n),()=>t.footer??T),H(e,n)},a=e=>{var n=Op(),r=F(n);vo(r,()=>t.footerExtra??T);var i=I(r,2);cp(i,{flex:!0});var a=I(i,2),o=e=>{{let t=j(()=>l()||X(`_sui.ok`));$d(e,{variant:`primary`,get label(){return z(t)},get keyShortcuts(){return u()},get disabled(){return d()},onclick:()=>{z(_)?.close(`ok`)}})}};W(a,e=>{s()&&e(o)});var h=I(a,2),g=e=>{{let t=j(()=>f()||X(`_sui.cancel`));$d(e,{variant:`secondary`,get label(){return z(t)},get keyShortcuts(){return p()},get disabled(){return m()},onclick:()=>{z(_)?.close(`cancel`)}})}};W(h,e=>{c()&&e(g)}),H(e,n)};W(r,e=>{t.footer?e(i):e(a,-1)}),E(n),H(e,n)};W(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),E(i),Fs(i,e=>N(v,e),()=>z(v)),R(()=>{es(i,1,`content ${t.class??``} ${a()??``}`,`svelte-11khq35`),K(y,`id`,`${n}-body`)}),H(e,i)},$$slots:{default:!0}})),e=>N(_,e,!0),()=>z(_))}O()}var Tp,Ep,Dp,Op,kp,Ap,jp;function Mp(){return(Mp=o((()=>{Y(),J(),Z(),gd(),of(),fp(),oc(),qd(),Tp=new Set(`$$slots.$$events.$$legacy.open.value.title.role.size.class.showClose.showOk.showCancel.okLabel.okShortcuts.okDisabled.cancelLabel.cancelShortcuts.cancelDisabled.focusInput.children.header.headerExtra.footer.footerExtra.closeIcon.input`.split(`.`)),Ep=B(`<div role="none" class="title svelte-11khq35"> </div> <!> <!> <!>`,1),Dp=B(`<div role="none" class="header svelte-11khq35"><!></div>`),Op=B(`<!> <!> <!> <!>`,1),kp=B(`<div role="none" class="footer svelte-11khq35"><!></div>`),Ap=B(`<div role="none"><!> <div role="none" class="body svelte-11khq35"><!></div> <!></div>`),jp={hash:`svelte-11khq35`,code:`.content.svelte-11khq35 {position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--sui-dialog-content-border-radius, 4px);max-width:calc(100dvw - var(--sui-dialog-content-margin, 16px) * 2);background-color:var(--sui-dialog-content-background-color, var(--sui-secondary-background-color-translucent));box-shadow:var(--sui-dialog-content-box-shadow, 0 8px 16px var(--sui-popup-shadow-color));-webkit-backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));transition-property:transform;}dialog.open .content.svelte-11khq35 {transition-duration:150ms;transform:scale(100%);}dialog:not(.open) .content.svelte-11khq35 {transition-duration:300ms;transform:scale(90%);}.content.small.svelte-11khq35 {width:var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));max-height:var(--sui-dialog-small-content-max-height, var(--sui-dialog-content-max-height, 400px));}
|
|
24
|
+
@media (max-height: 400px) {.content.small.svelte-11khq35 {max-height:calc(100dvh - 32px);}
|
|
25
|
+
}.content.medium.svelte-11khq35 {width:var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));max-height:var(--sui-dialog-medium-content-max-height, var(--sui-dialog-content-max-height, 600px));}
|
|
26
|
+
@media (max-height: 600px) {.content.medium.svelte-11khq35 {max-height:calc(100dvh - 32px);}
|
|
27
|
+
}.content.large.svelte-11khq35 {width:var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));max-height:var(--sui-dialog-large-content-max-height, var(--sui-dialog-content-max-height, 800px));}
|
|
28
|
+
@media (max-height: 800px) {.content.large.svelte-11khq35 {max-height:calc(100dvh - 32px);}
|
|
29
|
+
}.content.x-large.svelte-11khq35 {width:var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));max-height:var(--sui-dialog-x-large-content-max-height, var(--sui-dialog-content-max-height, 1000px));}
|
|
30
|
+
@media (max-height: 1000px) {.content.x-large.svelte-11khq35 {max-height:calc(100dvh - 32px);}
|
|
31
|
+
}:is(.header.svelte-11khq35, .footer.svelte-11khq35) {display:flex;align-items:center;gap:4px;}.header.svelte-11khq35 {box-sizing:content-box;margin:var(--sui-dialog-header-margin, 0 16px);border-width:var(--sui-dialog-header-border-width, 0 0 1px);border-color:var(--sui-dialog-header-border-color, var(--sui-secondary-border-color));padding:var(--sui-dialog-header-padding, 16px 8px);height:var(--sui-dialog-header-height, 32px);}.header.svelte-11khq35 .title:where(.svelte-11khq35) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-11khq35 {margin:var(--sui-dialog-footer-margin, 0 24px 24px);}
|
|
32
|
+
@media (width < 768px) {.footer.svelte-11khq35 {margin:var(--sui-dialog-footer-margin, 0 16px 16px);}
|
|
33
|
+
}.body.svelte-11khq35 {overflow:auto;margin:var(--sui-dialog-body-margin, 24px 24px);white-space:normal;line-height:var(--sui-line-height-compact);}
|
|
34
|
+
@media (width < 768px) {.body.svelte-11khq35 {margin:var(--sui-dialog-body-margin, 16px 16px);}
|
|
35
35
|
}`}})))()}function Np(e,t){D(t,!0);let n=q(t,`open`,15,!1),r=Hs(t,uee);wp(e,Us(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),O()}var uee;function Pp(){return(Pp=o((()=>{Y(),J(),Mp(),uee=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])})))()}function Fp(e,t){D(t,!0);let n=q(t,`open`,15,!1),r=Hs(t,dee);wp(e,Us(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),O()}var dee;function Ip(){return(Ip=o((()=>{Y(),J(),Mp(),dee=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])})))()}var fee,pee;function mee(){return(mee=o((()=>{fee=`boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.paddingTop.paddingRight.paddingBottom.paddingLeft.fontFamily.fontSize.fontStretch.fontStyle.fontVariant.fontWeight.letterSpacing.lineHeight.tabSize.textAlign.textIndent.textTransform.wordBreak.wordSpacing.overflowWrap.direction`.split(`.`),pee=(e,t,n)=>{let r=e.getBoundingClientRect();if(!r.width&&!r.height)return;let i=globalThis.getComputedStyle(e),a=e.tagName===`INPUT`,o=document.createElement(`div`),s=document.createElement(`span`);fee.forEach(e=>{o.style[e]=i[e]}),Object.assign(o.style,{position:`absolute`,top:`0`,left:`0`,height:`auto`,minHeight:`0`,maxHeight:`none`,overflow:`hidden`,visibility:`hidden`,pointerEvents:`none`,whiteSpace:a?`pre`:`pre-wrap`}),o.setAttribute(`aria-hidden`,`true`),o.textContent=e.value.slice(0,t),s.textContent=e.value.slice(t,n)||``,o.append(s),document.body.append(o);let c=o.getBoundingClientRect(),l=s.getClientRects(),u=l[l.length-1]??s.getBoundingClientRect(),d=u.top-c.top,f=u.left-c.left,p=u.right-c.left,m=u.height||Number.parseFloat(i.lineHeight)||0;o.remove();let h=r.top+d-e.scrollTop,g=r.left+f-e.scrollLeft,_=r.left+p-e.scrollLeft;return{top:h,bottom:h+m,left:g,right:_}}})))()}var hee;function gee(){return(gee=o((()=>{hee=`😀 grinning face
|
|
36
36
|
😃 smiley smiling face open mouth
|
|
37
37
|
😄 smile smiling face open mouth eyes
|
|
@@ -1938,15 +1938,15 @@ var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.pr
|
|
|
1938
1938
|
🏴 flag-england
|
|
1939
1939
|
🏴 flag-scotland
|
|
1940
1940
|
🏴 flag-wales`})))()}var _ee,Lp,vee,yee,Rp,bee,xee,See,Cee,zp,Bp;function Vp(){return(Vp=o((()=>{gee(),_ee=/(?<=^|[\s([{"'«])(?::)(?<query>[a-zA-Z0-9_+-]{1,64})$/,Lp=/[-_]/,yee=e=>e.split(`
|
|
1941
|
-
`).map(e=>{let[t,n,r=``]=e.split(` `),[i,...a]=n.split(` `);return{emoji:t,name:i,aliases:[...a,...r?r.split(` `):[]]}}),Rp=(e,t)=>{let n=e.split(Lp);return e===t?0:e.startsWith(t)&&Lp.test(e.charAt(t.length))?1:n.includes(t)?2:e.startsWith(t)||n.some(e=>e.startsWith(t))?4:9},bee=(e,t)=>e.includes(t)?3:e.some(e=>e.startsWith(t))?5:9,xee=({name:e,aliases:t},n)=>{let r=Rp(e,n),i=bee(t,n);return{rank:Math.min(r,i),nameRank:r}},See=({name:e,aliases:t},n)=>{if(Rp(e,n)<9)return e.split(Lp).length;let r=t.findIndex(e=>e===n||e.startsWith(n));return(r>-1?r:t.length)*100+t.length},Cee=e=>{let t=e.toLowerCase();return t?(vee??=yee(hee),vee.map(e=>{let{rank:n,nameRank:r}=xee(e,t);return{entry:e,rank:n,nameRank:r,centrality:See(e,t)}}).filter(({rank:e})=>e<9).sort((e,t)=>e.rank-t.rank||e.nameRank-t.nameRank||e.centrality-t.centrality).slice(0,50).map(({entry:e})=>e)):[]},zp=(e,t)=>/^\s/.test(t)?e:`${e} `,Bp=e=>e.match(_ee)?.groups?.query})))()}function wee(e,t){let n=Oa();D(t,!0),G(e,Dee);let r=q(t,`ariaOwner`,3,void 0),i=M(void 0),a=M(Dr([])),o=M(0),s=M(void 0),c=M(void 0),l=M(void 0),u=j(()=>!!z(i)&&!!z(a).length),d=M(0),f=M(0),p=j(()=>z(d)?z(d)*5+z(f):180),m=j(()=>{if(!z(s))return;let{innerWidth:e,innerHeight:t}=window,n=t-z(s).bottom,r=z(s).top,i=n<z(p)+8&&r>n,a=document.dir===`rtl`?z(s).right-280:z(s).left;return{top:i?void 0:`${Math.round(z(s).bottom+4)}px`,bottom:i?`${Math.round(t-z(s).top+4)}px`:void 0,left:`${Math.round(Math.max(8,Math.min(a,e-280-8)))}px`,maxHeight:`${Math.round(Math.min(z(p),(i?r:n)-4-8))}px`}}),h=()=>z(u),g=(e=!1)=>{N(l,e&&z(i)?z(i).id:void 0,!0),N(i,void 0),N(a,[],!0),N(o,0),N(s,void 0)},_=e=>{if(!e){(z(i)||z(l))&&g();return}if(z(l)===e.id)return;let{id:n,query:r}=e;if(N(l,void 0),N(s,t.getAnchorRect(e),!0),z(i)?.id===n&&z(i).query===r){N(i,e,!0);return}N(i,e,!0),N(a,Cee(r),!0),N(o,0)},v=e=>{let{length:t}=z(a);t&&N(o,(z(o)+e+t)%t)},y=()=>{let e=z(a)[z(o)];e&&z(i)&&t.onSelect(e,z(i)),g()},b=e=>{let{key:t,altKey:n,ctrlKey:r,metaKey:i,shiftKey:a}=e;if(!z(u)||n||r||i)return!1;if(t===`ArrowDown`||t===`ArrowUp`)v(t===`ArrowDown`?1:-1);else if((t===`Enter`||t===`Tab`)&&!a)y();else if(t===`Escape`)g(!0);else return!1;return e.preventDefault(),!0};L(()=>{if(z(a),!z(c))return;z(c).matches(`:popover-open`)||z(c).showPopover?.();let e=z(c).querySelector(`.option`);if(e){let{paddingTop:t,paddingBottom:n,borderTopWidth:r,borderBottomWidth:i}=getComputedStyle(z(c));N(d,e.getBoundingClientRect().height,!0),N(f,Number.parseFloat(t)+Number.parseFloat(n)+Number.parseFloat(r)+Number.parseFloat(i))}}),L(()=>{if(!r())return;let e=r();return e.setAttribute(`aria-autocomplete`,`list`),e.setAttribute(`aria-haspopup`,`listbox`),()=>{e.removeAttribute(`aria-autocomplete`),e.removeAttribute(`aria-haspopup`)}}),L(()=>{if(!r())return;let e=r();return z(u)?(e.setAttribute(`aria-controls`,n),e.setAttribute(`aria-activedescendant`,`${n}-option-${z(o)}`)):(e.removeAttribute(`aria-controls`),e.removeAttribute(`aria-activedescendant`)),()=>{e.removeAttribute(`aria-controls`),e.removeAttribute(`aria-activedescendant`)}}),L(()=>{z(o),z(c)?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`,behavior:`instant`})}),Qs(()=>{let e=()=>{z(i)&&N(s,t.getAnchorRect(z(i)),!0)},n=({target:e})=>{let t=e;!z(u)||z(c)?.contains(t)||r()?.contains(t)||g()};return window.addEventListener(`scroll`,e,{capture:!0,passive:!0}),window.addEventListener(`resize`,e,{passive:!0}),document.addEventListener(`pointerdown`,n,{capture:!0}),()=>{window.removeEventListener(`scroll`,e,{capture:!0}),window.removeEventListener(`resize`,e),document.removeEventListener(`pointerdown`,n,{capture:!0})}});var x={isOpen:h,close:g,update:_,moveSelection:v,selectHighlighted:y,handleKeyDown:b},S=V(),C=F(S),w=e=>{var t=Eee();let r;ao(t,23,()=>z(a),e=>e.emoji,(e,t,r)=>{var i=Tee(),a=P(i),s=P(a,!0);E(a);var c=I(a,2),l=P(c);E(c),E(i),R(()=>{K(i,`id`,`${n}-option-${z(r)??``}`),K(i,`aria-selected`,z(r)===z(o)),U(s,z(t).emoji),U(l,`:${z(t).name??``}:`)}),pa(`mouseenter`,i,()=>{N(o,z(r),!0)}),ma(`mousedown`,i,e=>{e.preventDefault(),N(o,z(r),!0),y()}),H(e,i)}),E(t),Fs(t,e=>N(c,e),()=>z(c)),R(e=>{K(t,`id`,n),K(t,`aria-label`,e),r=rs(t,``,r,{top:z(m).top,bottom:z(m).bottom,left:z(m).left,"max-height":z(m).maxHeight})},[()=>X(`_sui.emoji_suggestions`)]),H(e,t)};return W(C,e=>{z(u)&&z(m)&&e(w)}),H(e,S),O(x)}var Tee,Eee,Dee;function Hp(){return(Hp=o((()=>{Y(),J(),Z(),tc(),Vp(),Tee=B(`<div role="option" class="option svelte-27epa2" tabindex="-1"><span role="none" class="emoji svelte-27epa2"> </span> <span role="none" class="name svelte-27epa2"> </span></div>`),Eee=B(`<div role="listbox" class="sui emoji-suggestions svelte-27epa2" popover="manual"></div>`),Dee={hash:`svelte-27epa2`,code:`.emoji-suggestions.svelte-27epa2 {position:fixed;inset:auto;z-index:1000;display:flex;flex-direction:column;overflow-y:auto;margin:0;border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);width:280px;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;}.option.svelte-27epa2 {flex:none;display:flex;align-items:center;gap:8px;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);min-height:var(--sui-option-height);cursor:default;}.option[aria-selected=true].svelte-27epa2 {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-27epa2 .emoji:where(.svelte-27epa2) {flex:none;width:1.5em;font-size:var(--sui-font-size-large);text-align:center;}.option.svelte-27epa2 .name:where(.svelte-27epa2) {flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}`},ha([`mousedown`])})))()}function Oee(e,t){D(t,!0);let n=q(t,`element`,3,void 0),r=M(void 0),i=()=>{if(!n()||n().disabled||n().readOnly)return;let{value:e,selectionStart:t,selectionEnd:r}=n();if(t===null||t!==r)return;let i=Bp(e.slice(0,t));if(i===void 0)return;let a=t-i.length-1;return{id:String(a),query:i,start:a,end:t}};L(()=>{if(!n()||!z(r))return;let e=n(),t=()=>{z(r)?.update(i())},a=e=>{z(r)?.handleKeyDown(e)},o=()=>{z(r)?.close()};return e.addEventListener(`keydown`,a),e.addEventListener(`keyup`,t),e.addEventListener(`input`,t),e.addEventListener(`mouseup`,t),e.addEventListener(`blur`,o),()=>{e.removeEventListener(`keydown`,a),e.removeEventListener(`keyup`,t),e.removeEventListener(`input`,t),e.removeEventListener(`mouseup`,t),e.removeEventListener(`blur`,o),z(r)?.close()}}),Fs(wee(e,{getAnchorRect:e=>{let{start:t,end:r}=e;return n()?pee(n(),t,r):void 0},onSelect:(e,t)=>{let{query:r,start:i,end:a}=t;if(!n()||n().value.slice(i,a)!==`:${r}`)return;let o=zp(e.emoji,n().value.slice(a));n().focus(),n().setSelectionRange(i,a);let s=!1;try{s=document.execCommand(`insertText`,!1,o)}catch{s=!1}s||(n().setRangeText(o,i,a,`end`),n().dispatchEvent(new Event(`input`,{bubbles:!0})))},get ariaOwner(){return n()}}),e=>N(r,e,!0),()=>z(r)),O()}function Up(){return(Up=o((()=>{Y(),J(),mee(),Vp(),Hp()})))()}function Wp(e,t){let n=Oa();D(t,!0),G(e,Jp);let r=q(t,`value`,15),i=q(t,`element`,15),a=q(t,`role`,3,`textbox`),o=q(t,`keyShortcuts`,3,void 0),s=q(t,`dir`,3,void 0),c=q(t,`name`,3,void 0),l=q(t,`showInlineLabel`,3,!1),u=q(t,`inputmode`,3,`text`),d=q(t,`flex`,3,!1),f=q(t,`monospace`,3,!1),p=q(t,`debounce`,3,!1),m=q(t,`useEmojiAutocomplete`,3,!1),h=q(t,`hidden`,3,!1),g=q(t,`disabled`,3,!1),_=q(t,`readonly`,3,!1),v=q(t,`required`,3,!1),y=q(t,`invalid`,3,!1),b=q(t,`ariaLabel`,3,void 0),x=Hs(t,Gp),S=j(()=>typeof p()==`number`?p():300),C=0;L(()=>()=>{clearTimeout(C)});let w=e=>{r(i()?.value),t.oninput?.(e)},ee=e=>{let t=e;p()?(clearTimeout(C),C=setTimeout(()=>{w(t)},z(S))):w(t)};var te=qp();let ne;var re=P(te);ds(re,()=>({...x,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:g()?-1:0,disabled:g()||void 0,readonly:_()||void 0,inputmode:u(),"aria-label":b(),"aria-hidden":h(),"aria-disabled":g(),"aria-readonly":_(),"aria-required":v(),"aria-invalid":y(),oninputcapture:ee}),void 0,void 0,void 0,`svelte-1o9e8qk`,!0),Fs(re,e=>i(e),()=>i()),Ho(re,()=>ld(o()));var ie=I(re,2),ae=e=>{Oee(e,{get element(){return i()}})};W(ie,e=>{m()&&!g()&&!_()&&e(ae)});var oe=I(ie,2),se=e=>{var t=Kp();let i;dd(P(t),{children:(e,t)=>{mt();var n=Da();R(()=>U(n,b())),H(e,n)},$$slots:{default:!0}}),E(t),R(()=>{K(t,`id`,`${n}-label`),i=es(t,1,`label svelte-1o9e8qk`,null,i,{hidden:!!r()})}),H(e,t)};W(oe,e=>{b()&&l()&&e(se)}),E(te),R(()=>{ne=es(te,1,`sui text-input ${t.class??``}`,`svelte-1o9e8qk`,ne,{flex:d(),monospace:f(),disabled:g(),readonly:_()}),K(te,`hidden`,h()),re.dir=re.dir}),H(e,te),O()}var Gp,Kp,qp,Jp;function Yp(){return(Yp=o((()=>{Y(),J(),ud(),md(),Up(),Gp=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`useEmojiAutocomplete`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`oninput`]),Kp=B(`<span aria-hidden="true"><!></span>`),qp=B(`<div role="none"><input/> <!> <!></div>`),Jp={hash:`svelte-1o9e8qk`,code:`.text-input.svelte-1o9e8qk {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.text-input.flex.svelte-1o9e8qk:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-1o9e8qk {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-1o9e8qk:is(:where(.svelte-1o9e8qk):-webkit-autofill, :where(.svelte-1o9e8qk):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-1o9e8qk {display:inline-block;flex:auto;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-singleline-padding);min-width:0;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-singleline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}input.svelte-1o9e8qk:focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}input.svelte-1o9e8qk:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-1o9e8qk:is(:where(.svelte-1o9e8qk):disabled, :where(.svelte-1o9e8qk):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-1o9e8qk {border-color:var(--sui-error-border-color);}input.svelte-1o9e8qk ~ button {flex:none;margin-inline-start:-1px;border-width:1px;border-color:var(--sui-textbox-border-color);height:var(--sui-textbox-height);aspect-ratio:1/1;}input.svelte-1o9e8qk ~ button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}input.svelte-1o9e8qk ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-1o9e8qk {position:absolute;inset:var(--sui-textbox-singleline-padding);z-index:2;display:flex;align-items:center;justify-content:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));pointer-events:none;}.label.hidden.svelte-1o9e8qk {opacity:0;}input.svelte-1o9e8qk:focus + .label:where(.svelte-1o9e8qk) {opacity:0;}input.svelte-1o9e8qk::placeholder,
|
|
1942
|
-
.label.svelte-
|
|
1943
|
-
@media (pointer: coarse) {[role=listbox].svelte-
|
|
1944
|
-
}[role=listbox].svelte-
|
|
1945
|
-
@media (pointer: coarse) {.menu.svelte-
|
|
1946
|
-
}.menu.svelte-
|
|
1947
|
-
@media (pointer: coarse) {.radio-group.vertical.svelte-
|
|
1948
|
-
}.radio-group.svelte-8zr58s [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-8zr58s [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-8zr58s [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-8zr58s {display:contents;}`}})))()}function km(e,t){let n=Oa();D(t,!0),G(e,vte);let r=q(t,`checked`,7,!1),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,3,void 0),l=q(t,`label`,3,void 0),u=q(t,`group`,15),d=Hs(t,hte),f=M(void 0);L(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=_te(),m=e=>{e.target.matches(`button`)||z(f)?.click()};ds(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[ms]:{disabled:a()}}),void 0,void 0,void 0,`svelte-1akuqwy`);var h=P(p);$d(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(f)},set element(e){N(f,e,!0)}});var g=I(h,2),_=e=>{var r=gte(),i=P(r),a=e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)},o=e=>{var t=Da();R(()=>U(t,l())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),E(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(g,e=>{(t.children||l())&&e(_)}),E(p),H(e,p),O()}var hte,gte,_te,vte;function Am(){return(Am=o((()=>{Y(),J(),of(),hte=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),gte=B(`<label class="svelte-1akuqwy"><!></label>`),_te=B(`<span><!> <!></span>`),vte={hash:`svelte-1akuqwy`,code:`.radio.svelte-1akuqwy {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.radio.svelte-1akuqwy :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-1akuqwy :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-1akuqwy :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-1akuqwy :active button {background-color:var(--sui-active-background-color);}.radio.svelte-1akuqwy :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-1akuqwy button {flex:none;justify-content:center;overflow:hidden;margin:0 !important;border-width:1.5px;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.radio.svelte-1akuqwy button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-1akuqwy button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-1akuqwy button[aria-checked=true]::before {opacity:1;}.radio.svelte-1akuqwy label:where(.svelte-1akuqwy) {cursor:inherit;}`}})))()}function yte(e,t){D(t,!0),G(e,Cte);let n=q(t,`disabled`,3,!1),r=q(t,`showHandleBar`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=Hs(t,bte),o=Pt(`paneGroup`);if(!o)throw Error(`<ResizableHandle> must be used inside a <ResizablePaneGroup>`);let s=o.registerHandle(),c=j(()=>o.direction===`horizontal`),l=j(()=>o.sizes),u=j(()=>z(l)[s]??0),d=j(()=>o.getPaneConstraints(s)),f=j(()=>Math.max(z(d).minSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).maxSize),0))),p=j(()=>Math.min(z(d).maxSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).minSize),0))),m=M(void 0),h=M(!1),g=M(0),_=M(0),v=M(!1),y=0,b=()=>{let e=z(m)?.closest(`.resizable-pane-group`);return e?z(c)?e.clientWidth:e.clientHeight:0},x=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!z(h)||i!==z(_))return;e.preventDefault(),e.stopPropagation();let a=z(c)?t:r,l=a-z(g);if(!y)return;let u=l/y*100;z(c)&&Ru()&&(u=-u),N(g,a,!0),o.resize(s,u)},S=e=>{let{pointerId:n}=e;!z(h)||n!==z(_)||(z(m)?.releasePointerCapture(n),N(h,!1),N(g,0),N(_,0),t.onResizeEnd?.(),document.removeEventListener(`pointermove`,x),document.removeEventListener(`pointerup`,S),document.removeEventListener(`pointercancel`,S))},C=e=>{if(n())return;e.preventDefault(),e.stopPropagation();let{screenX:r,screenY:i,pointerId:a}=e;N(h,!0),N(g,z(c)?r:i,!0),N(_,a,!0),y=b(),z(m)?.setPointerCapture(a),t.onResizeStart?.(),document.addEventListener(`pointermove`,x),document.addEventListener(`pointerup`,S),document.addEventListener(`pointercancel`,S)},w=e=>{if(n())return;let{key:r,shiftKey:i}=e,a=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),o.toggleCollapse(s);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),o.resize(s,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),o.resize(s,100);return}if(z(c)){let e=Ru();if(r===`ArrowLeft`)l=e?a:-a;else if(r===`ArrowRight`)l=e?-a:a;else return}else if(r===`ArrowUp`)l=-a;else if(r===`ArrowDown`)l=a;else return;e.preventDefault(),e.stopPropagation(),z(v)||(N(v,!0),t.onResizeStart?.()),o.resize(s,l)},ee=()=>{z(v)&&(N(v,!1),t.onResizeEnd?.())};var te=Ste();ds(te,e=>({...a,role:`separator`,tabindex:n()?-1:0,"aria-orientation":z(c)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":z(f),"aria-valuemax":z(p),"aria-controls":o.paneDefs[s]?.id,"aria-disabled":n()||void 0,"aria-label":i(),class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:C,onkeydown:w,onblur:ee,[ms]:{horizontal:z(c),vertical:!z(c),disabled:n(),dragging:z(h)}}),[()=>Math.round(z(u))],void 0,void 0,`svelte-6dq0qo`);var ne=P(te),re=e=>{var n=V();vo(F(n),()=>t.children),H(e,n)},ie=e=>{H(e,xte())};W(ne,e=>{t.children?e(re):r()&&e(ie,1)}),E(te),Fs(te,e=>N(m,e),()=>z(m)),H(e,te),O()}var bte,xte,Ste,Cte;function jm(){return(jm=o((()=>{Y(),J(),Z(),tc(),bte=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`ariaLabel`,`children`,`onResizeStart`,`onResizeEnd`]),xte=B(`<div role="none" class="handle-bar svelte-6dq0qo"></div>`),Ste=B(`<div><!></div>`),Cte={hash:`svelte-6dq0qo`,code:`.resizable-handle.svelte-6dq0qo {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-6dq0qo:focus-visible, .resizable-handle.svelte-6dq0qo:hover, .resizable-handle.dragging.svelte-6dq0qo {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent-light);}.resizable-handle.svelte-6dq0qo:focus-visible .handle-bar:where(.svelte-6dq0qo), .resizable-handle.svelte-6dq0qo:hover .handle-bar:where(.svelte-6dq0qo), .resizable-handle.dragging.svelte-6dq0qo .handle-bar:where(.svelte-6dq0qo) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-6dq0qo {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-6dq0qo {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-6dq0qo .handle-bar:where(.svelte-6dq0qo) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-6dq0qo {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-6dq0qo .handle-bar:where(.svelte-6dq0qo) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-6dq0qo .handle-bar:where(.svelte-6dq0qo) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`}})))()}function wte(e,t){D(t,!0),G(e,Dte);let n=q(t,`direction`,3,`horizontal`),r=Hs(t,Tte),i=Dr([]),a=M(void 0),o=Dr([]),s=Dr([]),c=0,l=()=>z(a)?n()===`horizontal`?z(a).clientWidth:z(a).clientHeight:0,u=(e,t)=>{if(typeof e==`number`)return e;if(!e||typeof e!=`string`)return t;let n=e.trim(),r=n.match(/^(-?\d+(?:\.\d+)?)%$/);if(r)return Number(r[1]);let i=l();if(!i)return t;let a=n.match(/^(-?\d+(?:\.\d+)?)px$/i);if(a)return Number(a[1])/i*100;let o=n.match(/^(-?\d+(?:\.\d+)?)(dvw|vw|dvh|vh)$/i);if(o){let e=Number(o[1]),t=o[2].toLowerCase().endsWith(`w`)?window.innerWidth:window.innerHeight;return e/100*t/i*100}return t},d=e=>{let t=i[e];if(!t)return{minSize:0,maxSize:100};let n=Math.max(0,u(t.minSize,0)),r=Math.min(100,u(t.maxSize,100));return{minSize:n,maxSize:Math.max(n,r)}},f=()=>{if(!i.length)return;let e=i.map(e=>e.defaultSize===void 0?NaN:u(e.defaultSize,NaN)),t=e.filter(e=>!Number.isNaN(e)).reduce((e,t)=>e+t,0),n=e.filter(e=>Number.isNaN(e)).length,r=Math.max(0,100-t),a=n>0?r/n:0,s=e.map(e=>Number.isNaN(e)?a:e);o.splice(0,o.length,...s)},p=(e,n)=>{let r=e,i=e+1;if(r<0||i>=o.length)return;let{minSize:a,maxSize:s}=d(r),{minSize:c,maxSize:l}=d(i),u=o[r],f=o[i],p=Math.min(s-u,f-c),m=Math.min(u-a,l-f),h=n>0?Math.min(n,p):-Math.min(-n,m);o[r]=u+h,o[i]=f-h,t.onResize?.({sizes:o.map(e=>Number(e.toFixed(1)))})};Ft(`paneGroup`,{get direction(){return n()},sizes:o,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=c;return c+=1,e},resize:p,toggleCollapse:e=>{let{minSize:t}=d(e);if(s[e]!==void 0){let t=s[e]-o[e];s[e]=void 0,p(e,t)}else s[e]=o[e],p(e,-(o[e]-t))},getPaneConstraints:d,paneDefs:i}),L(()=>{i.length&&!o.length&&f()});var m=Ete();ds(m,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-1983l3u`),vo(P(m),()=>t.children??T),E(m),Fs(m,e=>N(a,e),()=>z(a)),H(e,m),O()}var Tte,Ete,Dte;function Mm(){return(Mm=o((()=>{Y(),J(),tc(),Tte=new Set([`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),Ete=B(`<div><!></div>`),Dte={hash:`svelte-1983l3u`,code:`.resizable-pane-group.svelte-1983l3u {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-1983l3u {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-1983l3u {flex-direction:column;width:100%;height:100%;}`}})))()}function Nm(e,t){let n=Oa();D(t,!0);let r=q(t,`defaultSize`,3,void 0),i=q(t,`minSize`,3,0),a=q(t,`maxSize`,3,100),o=Hs(t,Ote),s=Pt(`paneGroup`);if(!s)throw Error(`<ResizablePane> must be used inside a <ResizablePaneGroup>`);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=j(()=>s.direction),u=j(()=>s.sizes[c]),d=j(()=>z(u)===void 0?typeof r()==`number`?`${r()}%`:r()??`0%`:`${z(u)}%`);L(()=>{z(u)!==void 0&&Li(()=>t.onResize?.({size:Number(z(u).toFixed(1))}))});var f=kte();ds(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[hs]:{"flex-basis":z(d),"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":z(l)===`horizontal`?`auto`:void 0,"overflow-y":z(l)===`vertical`?`auto`:void 0}})),vo(P(f),()=>t.children??T),E(f),H(e,f),O()}var Ote,kte;function Pm(){return(Pm=o((()=>{Y(),J(),tc(),Ote=new Set([`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),kte=B(`<div><!></div>`)})))()}function Fm(e,t){D(t,!0),G(e,Mte);let n=q(t,`itemChunkSize`,3,25),r=M(Dr(n())),i=M(void 0),a=j(()=>t.items.length>z(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(z(a)?N(r,z(r)+n()):o.disconnect())});L(()=>{z(i)&&o.observe(z(i))});var s=jte(),c=F(s);ao(c,19,()=>t.items.slice(0,z(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=V();vo(F(i),()=>t.renderItem,()=>z(n),()=>z(r)),H(e,i)});var l=I(c,2),u=e=>{var t=Ate();Fs(t,e=>N(i,e),()=>z(i)),H(e,t)};W(l,e=>{z(a)&&e(u)}),H(e,s),O()}var Ate,jte,Mte;function Im(){return(Im=o((()=>{Y(),J(),Ate=B(`<div role="none" class="spinner svelte-1xf7t1p"></div>`),jte=B(`<!> <!>`,1),Mte={hash:`svelte-1xf7t1p`,code:`.spinner.svelte-1xf7t1p {height:1px;}`}})))()}function Lm(e,t){let n=Oa();D(t,!0),G(e,zm);let r=q(t,`value`,15),i=q(t,`flex`,3,!1),a=q(t,`hidden`,3,!1),o=q(t,`disabled`,3,!1),s=q(t,`readonly`,3,!1),c=q(t,`required`,3,!1),l=q(t,`invalid`,3,!1),u=Hs(t,Nte),d=M(void 0);var f={focus:()=>{z(d)?.focus()}},p=Rm();let m;var h=P(p),g=P(h),_=e=>{var n=V();vo(F(n),()=>t.searchIcon),H(e,n)},v=e=>{nc(e,{name:`search`})};W(g,e=>{t.searchIcon?e(_):e(v,-1)}),E(h);var y=I(h,2);Wp(y,Us({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return z(d)},set element(e){N(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=I(y,2),x=e=>{{let i=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.closeIcon),H(e,n)},a=e=>{nc(e,{name:`close`})};W(r,e=>{t.closeIcon?e(i):e(a,-1)}),H(e,n)},a=j(()=>X(`_sui.clear`));$d(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{r(``),z(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return W(b,e=>{r()&&e(x)}),E(p),R(()=>{K(p,`role`,a()?void 0:`none`),m=es(p,1,`sui search-bar ${t.class??``}`,`svelte-1o8qyi`,m,{flex:i(),disabled:o(),readonly:s()}),K(p,`hidden`,a()),K(p,`aria-hidden`,a())}),H(e,p),O(f)}var Nte,Rm,zm;function Bm(){return(Bm=o((()=>{Y(),J(),Z(),of(),oc(),Yp(),Nte=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),Rm=B(`<div><span role="none" class="svelte-1o8qyi"><!></span> <!> <!></div>`),zm={hash:`svelte-1o8qyi`,code:`.search-bar.svelte-1o8qyi {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.search-bar.flex.svelte-1o8qyi:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-1o8qyi > span:where(.svelte-1o8qyi) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-1o8qyi .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-1o8qyi > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-1o8qyi .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-1o8qyi .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-1o8qyi input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`}})))()}function Pte(e,t){let n=Oa();D(t,!0),G(e,Km);let r=q(t,`value`,15),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=q(t,`editable`,3,!0),u=q(t,`position`,3,`bottom-left`),d=q(t,`filterThreshold`,3,5),f=q(t,`ariaLabel`,3,void 0),p=Hs(t,Vm),m=M(!1),h=M(void 0),g=M(void 0),_=M(void 0),v=M(void 0),y=M(void 0),b=M(void 0),x=M(``),S=M(!1),C=M(``),w=M(0),ee=j(()=>!z(C)||z(w)>0),te=j(()=>z(h)??z(g)),ne=Df(),re=()=>{let e=ne.find(r());e&&(N(x,e.label,!0),ne.selectOnly(r()))},ie=e=>{let n=kf(e);r(n.value),re(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))},ae=()=>z(y)?.querySelector(`[role="listbox"]`),oe=()=>{let e=ae(),t=e?.querySelector(`[role="option"][aria-selected="true"]`);!e||!t||(t.classList.add(`focused`),e.setAttribute(`aria-activedescendant`,t.id),t.scrollIntoView(!0))};L(()=>{ne.expanded=z(m)}),L(()=>{if(!z(m))return;let e=globalThis.setTimeout(oe,150);return()=>{globalThis.clearTimeout(e),ae()?.removeAttribute(`aria-activedescendant`)}}),L(()=>{if(!z(y))return;let e=z(m)?z(b):z(v);e&&z(y).parentElement!==e&&e.append(z(y))}),Qs(()=>{let e=ne.selectedEntry;e&&(r(e.value),N(x,e.label,!0),t.onChange?.(new CustomEvent(`Change`,{detail:{target:void 0,type:e.type,name:e.name,label:e.label,value:e.value}})))}),L(()=>{r(),re()});var se=Gm(),ce=F(se);ds(ce,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:i(),[ms]:{editable:l()}}),void 0,void 0,void 0,`svelte-1khedw3`);var le=P(ce),ue=e=>{var t=Hm();ds(t,()=>({...p,role:`combobox`,id:n,tabindex:a()?-1:0,"aria-expanded":z(m),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-haspopup":`listbox`,"aria-label":f(),[ms]:{selected:r()!==void 0}}),void 0,void 0,void 0,`svelte-1khedw3`);var l=P(t);dd(P(l),{children:(e,t)=>{mt();var n=Da();R(e=>U(n,e),[()=>r()===void 0?X(`_sui.combobox.select_an_option`):z(x)]),H(e,n)},$$slots:{default:!0}}),E(l),E(t),Fs(t,e=>N(h,e),()=>z(h)),H(e,t)},de=e=>{{let t=j(()=>r()===void 0?``:String(r()));Wp(e,Us(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return z(t)},get hidden(){return i()},get disabled(){return a()},get readonly(){return o()},get required(){return s()},get invalid(){return c()},get"aria-expanded"(){return z(m)},"aria-haspopup":`listbox`,get"aria-label"(){return f()},get element(){return z(g)},set element(e){N(g,e,!0)}}))}};W(le,e=>{l()?e(de,-1):e(ue)});var fe=I(le,2);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.chevronIcon),H(e,n)},a=e=>{nc(e,{name:`expand_more`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},r=j(()=>!l()||o()||a()?-1:0),s=j(()=>z(m)?X(`_sui.collapse`):X(`_sui.expand`)),c=j(()=>z(m)?`${n}-popup`:void 0);$d(fe,{variant:`ghost`,iconic:!0,get hidden(){return i()},get disabled(){return a()},get tabindex(){return z(r)},get"aria-label"(){return z(s)},get"aria-controls"(){return z(c)},get"aria-expanded"(){return z(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!a()&&!o()&&N(m,!z(m))},startIcon:e,$$slots:{startIcon:!0}})}E(ce);var pe=I(ce,2),me=P(pe);mm(P(me),{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return z(C)},onclick:e=>{e.target.matches(`[role="option"]`)&&ie(e.target)},onFilter:e=>{N(w,e.detail.matched,!0)},children:(e,n)=>{var r=V();vo(F(r),()=>t.children??T),H(e,r)},$$slots:{default:!0}}),E(me),Fs(me,e=>N(y,e),()=>z(y)),E(pe),Fs(pe,e=>N(v,e),()=>z(v)),Jd(I(pe,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return z(te)},get position(){return u()},touchOptimized:!0,onOpen:()=>{N(S,d()!==-1&&ne.count>d(),!0),N(C,``)},get content(){return z(_)},set content(e){N(_,e,!0)},get open(){return z(m)},set open(e){N(m,e,!0)},children:(e,t)=>{var r=Wm(),i=P(r),a=e=>{{let t=j(()=>X(`_sui.combobox.filter_options`));Lm(e,{flex:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),z(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return z(C)},set value(e){N(C,e,!0)}})}};W(i,e=>{z(S)&&e(a)});var o=I(i,2);Fs(o,e=>N(b,e),()=>z(b));var s=I(o,2),c=e=>{var t=Um(),n=P(t,!0);E(t),R(e=>U(n,e),[()=>X(`_sui.combobox.no_matching_options`)]),H(e,t)};W(s,e=>{z(ee)||e(c)}),E(r),H(e,r)},$$slots:{default:!0}}),H(e,se),O()}var Vm,Hm,Um,Wm,Gm,Km;function qm(){return(qm=o((()=>{Y(),J(),Z(),tc(),Af(),of(),oc(),hm(),Bm(),Yp(),md(),Qd(),Vm=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`ariaLabel`,`children`,`chevronIcon`,`onChange`]),Hm=B(`<div><div role="none" class="label svelte-1khedw3"><!></div></div>`),Um=B(`<div role="alert" class="no-options svelte-1khedw3" aria-live="assertive"> </div>`),Wm=B(`<div role="none" class="combobox-inner svelte-1khedw3"><!> <div role="none" class="listbox-slot svelte-1khedw3"></div> <!></div>`),Gm=B(`<div><!> <!></div> <div role="none" class="idle-host" hidden=""><div role="none" class="option-host svelte-1khedw3"><!></div></div> <!>`,1),Km={hash:`svelte-1khedw3`,code:`:is(.option-host.svelte-1khedw3, .listbox-slot.svelte-1khedw3) {display:contents;}.combobox.svelte-1khedw3 {margin:var(--sui-focus-ring-width);display:flex;align-items:center;position:relative;min-width:var(--sui-combobox-min-width, calc(var(--sui-option-height) * 5));}.combobox.svelte-1khedw3 div[role=combobox]:where(.svelte-1khedw3) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-1khedw3 div[role=combobox]:where(.svelte-1khedw3):not(.selected) {font-style:italic;}.combobox.svelte-1khedw3 div[role=combobox]:where(.svelte-1khedw3):is(:where(.svelte-1khedw3):hover, :where(.svelte-1khedw3):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-1khedw3 div[role=combobox][aria-invalid=true]:where(.svelte-1khedw3) {border-color:var(--sui-error-border-color);}.combobox.svelte-1khedw3 div[role=combobox]:where(.svelte-1khedw3) .label:where(.svelte-1khedw3) {width:100%;}.combobox.svelte-1khedw3 .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-1khedw3 > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-1khedw3 > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-1khedw3 > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-1khedw3 :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-1khedw3 .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-1khedw3 input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-1khedw3 + [role=listbox] {position:fixed;z-index:100;border-radius:var(--sui-control-medium-border-radius);box-shadow:0 8px 16px var(--sui-popup-shadow-color);overflow:auto;background-color:var(--sui-secondary-background-color);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px);
|
|
1949
|
-
/* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-1khedw3 + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-1khedw3 {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-1khedw3 .sui.search-bar {flex:none;}.combobox-inner.svelte-1khedw3 .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-1khedw3 .no-options:where(.svelte-1khedw3) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}})))()}function Fte(e){let t=e-1;return t*t*t+1}function Ite(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=Fte}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=Lte(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function Lte(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}function Jm(){return(Jm=o((()=>{})))()}function Ym(e,t){D(t,!0);let n=q(t,`value`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`readonly`,3,!1),o=q(t,`required`,3,!1),s=q(t,`invalid`,3,!1),c=Hs(t,Xm);Pte(e,Us(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=V();vo(F(r),()=>t.children??T),H(e,r)},$$slots:{default:!0}})),O()}var Xm;function Zm(){return(Zm=o((()=>{Y(),J(),qm(),Xm=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`])})))()}function Rte(e,t){D(t,!0),G(e,th);let n=q(t,`values`,31,()=>Dr([])),r=q(t,`max`,3,void 0),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=Hs(t,Qm),u=j(()=>new Map(t.options.map(e=>[e.value,e]))),d=j(()=>new Set(n())),f=j(()=>Ru()?`ArrowRight`:`ArrowLeft`),p=j(()=>Ru()?`ArrowLeft`:`ArrowRight`),m=M(void 0),h=M(void 0),g=M(void 0),_=M(void 0),v=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},y=async(e,t)=>{v(e,t),await Pi(),(z(m)?.querySelectorAll(`.label[tabindex]`)?.[t])?.focus()};var b=eh();let x;var S=P(b);ao(S,30,n,e=>e,(e,r,i)=>{let s=j(()=>z(u).get(r)),c=j(()=>z(s)?.label||z(s)?.value||r);var l=$m();let d;var m=P(l),h=P(m,!0);E(m);var v=I(m,2),b=e=>{{let i=e=>{nc(e,{name:`close`})},s=j(()=>a()||o()),l=j(()=>X(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));$d(e,{iconic:!0,size:`small`,get disabled(){return z(s)},get"aria-label"(){return z(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};W(v,e=>{z(s)&&e(b)}),E(l),R(()=>{K(l,`draggable`,!a()&&!o()),d=es(l,1,`svelte-y6h2ge`,null,d,{"drag-source":z(g)===z(i),"drop-before":z(_)===z(i)&&z(g)!==z(i)&&z(g)!==z(i)-1,"drop-after":z(_)===n().length&&z(i)===n().length-1&&z(g)!==n().length-1}),K(m,`tabindex`,a()||o()?void 0:0),U(h,z(c))}),pa(`dragstart`,l,e=>{N(g,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),pa(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect(),n=e.clientX<t.left+t.width/2;N(_,n===Ru()?z(i)+1:z(i),!0)}),pa(`drop`,l,async e=>{e.preventDefault();let t=z(g),n=z(_);N(g,void 0),N(_,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await y(t,n>t?n-1:n)}),pa(`dragend`,l,()=>{N(g,void 0),N(_,void 0)}),ma(`keydown`,m,async e=>{let{key:t}=e,r=t===z(f)&&z(i)>0?z(i)-1:t===z(p)&&z(i)<n().length-1?z(i)+1:t===`Home`&&z(i)>0?0:t===`End`&&z(i)<n().length-1?n().length-1:-1;r!==-1&&(e.preventDefault(),await y(z(i),r))}),jo(l,()=>Ite,()=>({duration:200})),H(e,l)}),E(S);var C=I(S,2),w=e=>{{let r=j(()=>a()||o());Ym(e,Us(()=>l,{get disabled(){return z(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{z(h)&&(n([...n(),z(h)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:z(h)}})),N(h,void 0))},get value(){return z(h)},set value(e){N(h,e,!0)},children:(e,n)=>{var r=V();ao(F(r),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let n=()=>z(t).label,r=()=>z(t).value,i=()=>z(t).searchValue;var a=V(),o=F(a),s=e=>{vm(e,{get label(){return n()},get value(){return r()},get searchValue(){return i()}})},c=j(()=>!z(d).has(r()));W(o,e=>{z(c)&&e(s)}),H(e,a)}),H(e,r)},$$slots:{default:!0}}))}};W(C,e=>{(typeof r()!=`number`||n().length<r())&&n().length<t.options.length&&e(w)}),E(b),Fs(b,e=>N(m,e),()=>z(m)),R(e=>{x=es(b,1,`sui select-tags ${t.class??``}`,`svelte-y6h2ge`,x,{disabled:a()||o()}),K(b,`hidden`,i()),K(S,`aria-label`,e)},[()=>X(`_sui.select_tags.selected_options`)]),H(e,b),O()}var Qm,$m,eh,th;function nh(){return(nh=o((()=>{Y(),J(),Z(),tc(),Jm(),of(),oc(),ym(),Zm(),Qm=new Set([`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),$m=B(`<span role="none"><span class="label svelte-y6h2ge" role="option" aria-selected="true"> </span> <!></span>`),eh=B(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-y6h2ge"></span> <!></div>`),th={hash:`svelte-y6h2ge`,code:`.select-tags.svelte-y6h2ge {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-y6h2ge {pointer-events:none;}.select-tags.disabled.svelte-y6h2ge > :where(.svelte-y6h2ge) {opacity:0.5;}.select-tags.svelte-y6h2ge span[role=listbox]:where(.svelte-y6h2ge) {display:contents;}.select-tags.svelte-y6h2ge span[draggable]:where(.svelte-y6h2ge) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-y6h2ge span[draggable]:where(.svelte-y6h2ge):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.select-tags.svelte-y6h2ge span[draggable].drag-source:where(.svelte-y6h2ge) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-y6h2ge span[draggable].drop-before:where(.svelte-y6h2ge)::before, .select-tags.svelte-y6h2ge span[draggable].drop-after:where(.svelte-y6h2ge)::after {content:"";position:absolute;top:0;bottom:0;margin-left:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-y6h2ge span[draggable].drop-before:where(.svelte-y6h2ge)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-y6h2ge span[draggable].drop-after:where(.svelte-y6h2ge)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-y6h2ge span[draggable]:where(.svelte-y6h2ge) .label:where(.svelte-y6h2ge) {outline:none;}.select-tags.svelte-y6h2ge span[draggable]:where(.svelte-y6h2ge) button {outline-offset:-2px;}.select-tags.svelte-y6h2ge span[draggable]:where(.svelte-y6h2ge) .icon {font-size:var(--sui-font-size-large);}`},ha([`keydown`])})))()}function zte(e,t){D(t,!0),G(e,sh);let n=q(t,`value`,15,0),r=q(t,`min`,3,0),i=q(t,`max`,3,100),a=q(t,`sliderLabel`,3,``),o=q(t,`values`,15,void 0),s=q(t,`sliderLabels`,3,void 0),c=q(t,`step`,3,1),l=q(t,`optionLabels`,19,()=>[]),u=q(t,`hidden`,3,!1),d=q(t,`disabled`,3,!1),f=q(t,`readonly`,3,!1),p=q(t,`invalid`,3,!1),m=Hs(t,rh),h=j(()=>Array.isArray(o())),g=M(void 0),_=M(0),v=M(Dr([])),y=M(Dr([])),b=M(0),x=M(0),S=Dr([0,0]),C=M(!1),w=M(0),ee=M(0),te=e=>{let t=Math.min(z(_),Math.max(0,Ru()?z(_)-e:e)),r=z(v).findLastIndex(e=>e<=t),i=z(v).findIndex(e=>t<=e),a;a=r===-1?i:i===-1||Math.abs(z(v)[r]-t)<Math.abs(z(v)[i]-t)?r:i,!(S[z(ee)]===z(v)[a]||z(h)&&(z(ee)===0&&S[1]<=z(v)[a]||z(ee)===1&&S[0]>=z(v)[a]))&&(z(h)?(o(o()[z(ee)]=z(y)[a],!0),o([...o()])):n(z(y)[a]))},ne=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=z(h)?o()[t]:n(),g=-1,_=Ru(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=z(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=z(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(z(h)&&(t===0&&S[1]<=z(v)[g]||t===1&&S[0]>=z(v)[g]))return;z(h)?(o(o()[t]=z(y)[g],!0),o([...o()])):n(z(y)[g])}},re=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!z(C)||n!==z(w))return;e.preventDefault(),e.stopPropagation();let r=t-z(x),i=z(b)+r;te(i)},ie=e=>{let{pointerId:t,target:n}=e;if(d()||f()||!z(C)||t!==z(w))return;e.stopPropagation();let r=n;if(r.matches(`.base-bar, .slider-bar`)){let t=z(g).getBoundingClientRect(),n=e.clientX-t.left;te(n)}r.releasePointerCapture(t),N(C,!1),N(b,0),N(x,0),N(w,0),N(ee,0),document.removeEventListener(`pointermove`,re),document.removeEventListener(`pointerup`,ie),document.removeEventListener(`pointercancel`,ie)},ae=(e,t=0)=>{if(d()||f())return;e.preventDefault(),e.stopPropagation(),N(C,!0);let{clientX:n,screenX:r,pointerId:i,target:a}=e,o=a,s=z(g).getBoundingClientRect();N(b,n-s.left),N(x,r,!0),N(w,i,!0),N(ee,t,!0),o.setPointerCapture(i),document.addEventListener(`pointermove`,re),document.addEventListener(`pointerup`,ie),document.addEventListener(`pointercancel`,ie)},oe=()=>{if(z(h)){let[e,n]=o();S[0]=z(v)[z(y).indexOf(e)],S[1]=z(v)[z(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=z(v)[z(y).indexOf(n())],t.onChange?.({value:n()})},se=()=>{if(!z(g))return;N(_,z(g).clientWidth,!0);let e=(i()-r())/c()+1,t=z(_)/(e-1),n=Array.from({length:e});N(y,n.map((e,t)=>t*c()+r(),10),!0),N(v,n.map((e,n)=>n*t),!0),oe()};Qs(()=>{let e=new ResizeObserver(()=>se()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(z(g)),t.addEventListener(`change`,se),se(),()=>{e.disconnect(),t.removeEventListener(`change`,se)}}),L(()=>{n(),o(),oe()});var ce=oh();pa(`click`,Br.body,()=>{N(C,!1)}),ds(ce,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[ms]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-1lho6nm`);var le=P(ce),T=I(P(le),2);let ue;var de=I(T,2);let fe;var pe=I(de,2),me=e=>{var t=ih();let n;R(()=>{K(t,`tabindex`,d()?-1:0),K(t,`aria-label`,s()?.[1]),K(t,`aria-hidden`,u()),K(t,`aria-disabled`,d()),K(t,`aria-readonly`,f()),K(t,`aria-invalid`,p()),K(t,`aria-valuemin`,r()),K(t,`aria-valuemax`,i()),K(t,`aria-valuenow`,o()?.[1]),n=rs(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),ma(`pointerdown`,t,e=>ae(e,1)),ma(`keydown`,t,e=>ne(e,1)),H(e,t)};W(pe,e=>{z(h)&&e(me)});var he=I(pe,2),ge=e=>{var t=V();ao(F(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=ah();let i;var a=P(r,!0);E(r),R(()=>{i=rs(r,``,i,{"inset-inline-start":`${z(_)/(l().length-1)*z(n)}px`}),U(a,z(t))}),H(e,r)}),H(e,t)};W(he,e=>{l().length&&e(ge)}),E(le),Fs(le,e=>N(g,e),()=>z(g)),E(ce),R(()=>{ue=rs(T,``,ue,{"inset-inline-start":`${(z(h)?S[0]:0)??``}px`,width:`${(z(h)?S[1]-S[0]:S[0])??``}px`}),K(de,`tabindex`,d()?-1:0),K(de,`aria-label`,z(h)?s()?.[0]:a()),K(de,`aria-hidden`,u()),K(de,`aria-disabled`,d()),K(de,`aria-readonly`,f()),K(de,`aria-invalid`,p()),K(de,`aria-valuemin`,r()),K(de,`aria-valuemax`,i()),K(de,`aria-valuenow`,z(h)?o()?.[0]:n()),fe=rs(de,``,fe,{"inset-inline-start":`${S[0]??``}px`})}),ma(`pointerdown`,le,e=>ae(e)),ma(`pointerdown`,de,e=>ae(e,0)),ma(`keydown`,de,e=>ne(e,0)),H(e,ce),O()}var rh,ih,ah,oh,sh;function ch(){return(ch=o((()=>{Y(),J(),Z(),tc(),rh=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),ih=B(`<div role="slider" class="svelte-1lho6nm"></div>`),ah=B(`<span role="none" class="label svelte-1lho6nm"> </span>`),oh=B(`<div><div role="none" class="base svelte-1lho6nm"><div role="none" class="base-bar svelte-1lho6nm"></div> <div class="slider-bar svelte-1lho6nm"></div> <div role="slider" class="svelte-1lho6nm"></div> <!> <!></div></div>`),sh={hash:`svelte-1lho6nm`,code:`.slider.svelte-1lho6nm {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-1lho6nm:hover .base-bar:where(.svelte-1lho6nm) {background-color:var(--sui-hover-background-color);}.slider.svelte-1lho6nm:active .base-bar:where(.svelte-1lho6nm) {background-color:var(--sui-active-background-color);}.base.svelte-1lho6nm {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-1lho6nm {border-width:1px;border-style:solid;border-color:var(--sui-control-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-slider-background-color, var(--sui-secondary-background-color));transition:all 200ms;width:100%;height:100%;}.slider-bar.svelte-1lho6nm {position:absolute;top:0;height:calc(var(--sui-checkbox-height) / 2);border-radius:var(--sui-checkbox-height);background-color:var(--sui-primary-accent-color-light);}.invalid.svelte-1lho6nm .slider-bar:where(.svelte-1lho6nm) {background-color:var(--sui-error-border-color);}[role=slider].svelte-1lho6nm {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-1lho6nm:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-1lho6nm:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-1lho6nm [role=slider]:where(.svelte-1lho6nm) {border-color:var(--sui-error-border-color);}.label.svelte-1lho6nm {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-1lho6nm:dir(ltr) {transform:translateX(-50%);}.label.svelte-1lho6nm:dir(rtl) {transform:translateX(50%);}`},ha([`pointerdown`,`keydown`])})))()}function lh(e,t){D(t,!0),G(e,fh);let n=q(t,`checked`,15),r=q(t,`label`,3,void 0),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=q(t,`ariaLabel`,3,void 0),u=Hs(t,uh);var d=dh(),f=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};ds(d,()=>({...u,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-label":l(),onclick:f}),void 0,void 0,void 0,`svelte-115eacw`);var p=I(P(d),2),m=e=>{var t=Da();R(()=>U(t,r())),H(e,t)},h=e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)};W(p,e=>{r()?e(m):e(h,-1)}),E(d),H(e,d),O()}var uh,dh,fh;function ph(){return(ph=o((()=>{Y(),J(),uh=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`onChange`]),dh=B(`<button><span role="none" class="svelte-115eacw"></span> <!></button>`),fh={hash:`svelte-115eacw`,code:`button.svelte-115eacw {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-115eacw span:where(.svelte-115eacw) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-115eacw span:where(.svelte-115eacw) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-115eacw span:where(.svelte-115eacw) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-115eacw span:where(.svelte-115eacw) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-115eacw span:where(.svelte-115eacw) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-115eacw:focus-visible {outline:0;}button.svelte-115eacw:focus-visible span:where(.svelte-115eacw) {outline-color:var(--sui-focus-ring-color);}button[aria-checked=true].svelte-115eacw span:where(.svelte-115eacw) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-115eacw span:where(.svelte-115eacw)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-115eacw span:where(.svelte-115eacw):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-115eacw span:where(.svelte-115eacw):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-115eacw {position:relative;width:calc(var(--sui-checkbox-height) * 2);height:var(--sui-checkbox-height);padding:0 2px;display:inline-flex;align-items:center;border-width:1.5px;border-style:solid;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-control-background-color);transition:all 200ms;}span.svelte-115eacw::before {display:inline-block;width:calc(var(--sui-checkbox-height) - 6px);height:calc(var(--sui-checkbox-height) - 6px);border-radius:var(--sui-checkbox-height);background-color:var(--sui-checkbox-border-color);transition:all 200ms;content:"";}`}})))()}function mh(e,t){G(e,_h);let n=Hs(t,hh);var r=gh();ds(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-ufkluz`),vo(P(r),()=>t.children??T),E(r),H(e,r)}var hh,gh,_h;function vh(){return(vh=o((()=>{Y(),J(),hh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),gh=B(`<div><!></div>`),_h={hash:`svelte-ufkluz`,code:`.table-cell.svelte-ufkluz {display:table-cell;}`}})))()}function Bte(e,t){G(e,xh);let n=Hs(t,yh);var r=bh();ds(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-aivclf`),vo(P(r),()=>t.children??T),E(r),H(e,r)}var yh,bh,xh;function Sh(){return(Sh=o((()=>{Y(),J(),yh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),bh=B(`<div><!></div>`),xh={hash:`svelte-aivclf`,code:`.table-row.svelte-aivclf {display:table-row;height:var(--sui-primary-row-height);}`}})))()}function Vte(e,t){G(e,Th);let n=q(t,`ariaLabel`,3,void 0),r=Hs(t,Ch);var i=wh();ds(i,()=>({...r,role:`table`,class:`sui table ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-17o9ida`),vo(P(i),()=>t.children??T),E(i),H(e,i)}var Ch,wh,Th;function Eh(){return(Eh=o((()=>{Y(),J(),Ch=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),wh=B(`<div><!></div>`),Th={hash:`svelte-17o9ida`,code:`.table.svelte-17o9ida {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-17o9ida {border-collapse:collapse;}.table.data.svelte-17o9ida :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}})))()}function Hte(e,t){D(t,!0),G(e,kh);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`name`,3,void 0),o=q(t,`ariaLabel`,3,void 0),s=Hs(t,Dh),c=M(void 0),l=M(void 0),u=()=>{globalThis.requestAnimationFrame(()=>{let e=z(c)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;N(l,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else N(l,void 0)})};Qs(()=>{let e=new ResizeObserver(()=>{u()});return e.observe(z(c)),()=>{e.disconnect()}});var d=Oh(),f=()=>{u()},p=e=>{u(),t.onChange?.(e)};ds(d,()=>({...s,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o(),"data-name":a()||void 0,onInitialized:f,onChange:p}),void 0,void 0,void 0,`svelte-1oldty2`);var m=P(d);vo(P(m),()=>t.children??T),E(m);var h=I(m,2);E(d),Fs(d,e=>N(c,e),()=>z(c)),Ho(d,Rf),R(()=>{m.inert=r(),rs(h,z(l))}),H(e,d),O()}var Dh,Oh,kh;function Ah(){return(Ah=o((()=>{Y(),J(),tc(),zf(),Dh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`ariaLabel`,`children`,`onChange`]),Oh=B(`<div><div role="none" class="inner svelte-1oldty2"><!></div> <div role="none" class="indicator svelte-1oldty2"></div></div>`),kh={hash:`svelte-1oldty2`,code:`.tab-list.svelte-1oldty2 {flex:none;position:relative;display:flex;align-items:center;margin:var(--sui-tab-list-margin, var(--sui-focus-ring-width));border-color:var(--sui-tab-list-border-color, var(--sui-control-border-color));border-radius:var(--sui-tab-list-border-radius, 0);background-color:var(--sui-tab-list-background-color, transparent);}.tab-list[aria-orientation=horizontal].svelte-1oldty2 {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-1oldty2 button {width:var(--sui-horizontal-tab-width, var(--sui-tab-width, auto));height:var(--sui-horizontal-tab-height, var(--sui-tab-height, 100%));justify-content:var(--sui-horizontal-tab-justify-content, center);}.tab-list[aria-orientation=horizontal].svelte-1oldty2 .indicator:where(.svelte-1oldty2) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-1oldty2 {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-1oldty2 button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-1oldty2 .indicator:where(.svelte-1oldty2) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-1oldty2 button {position:relative;z-index:1;border-color:transparent;margin:0 !important;border-radius:var(--sui-tab-border-radius, 0);font-family:var(--sui-tab-font-family, var(--sui-control-font-family, inherit));font-size:var(--sui-tab-font-size, var(--sui-control-font-size, inherit));font-weight:var(--sui-tab-font-weight, var(--sui-control-font-weight, var(--sui-font-weight-normal, normal)));}.inner.svelte-1oldty2 {display:contents;}.indicator.svelte-1oldty2 {position:absolute;z-index:0;inset:auto;border-radius:var(--sui-tab-list-indicator-border-radius, 0);border-color:var(--sui-tab-list-indicator-border-color, var(--sui-primary-accent-color-light));background-color:var(--sui-tab-list-indicator-background-color, transparent);box-shadow:var(--sui-tab-list-indicator-box-shadow, none);pointer-events:none;transition:var(--sui-tab-list-indicator-transition, all 200ms);}`}})))()}function Ute(e,t){G(e,Nh);let n=Hs(t,jh);var r=Mh();ds(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-j0knsg`),vo(P(r),()=>t.children??T),E(r),H(e,r)}var jh,Mh,Nh;function Ph(){return(Ph=o((()=>{Y(),J(),jh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Mh=B(`<div><!></div>`),Nh={hash:`svelte-j0knsg`,code:`.tab-panel.svelte-j0knsg {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-j0knsg, .tab-panel.svelte-j0knsg:not([aria-hidden]) {display:none;}`}})))()}function Wte(e,t){let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`selected`,3,!1),a=Hs(t,Fh);$d(e,Us(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},startIcon:e=>{var n=V();vo(F(n),()=>t.startIcon??T),H(e,n)},children:e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)},endIcon:e=>{var n=V();vo(F(n),()=>t.endIcon??T),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var Fh;function Ih(){return(Ih=o((()=>{Y(),J(),of(),Fh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`])})))()}function Lh(e,t){D(t,!0),G(e,Bh);let n=q(t,`show`,15,!1),r=q(t,`id`,3,void 0),i=q(t,`duration`,3,5e3),a=q(t,`position`,7,`auto`),o=Hs(t,Rh),s=M(void 0),c=M(void 0),l=M(void 0),u=M(0);Qs(()=>(N(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),z(c)?z(s)?.remove():(N(c,z(s),!0),z(c)&&(z(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(z(c)),z(c).showPopover&&(z(c).popover=`manual`,z(c).showPopover()))),()=>{z(l)?.remove()})),Qs(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-right`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),L(()=>{z(c)&&z(l)&&z(c).appendChild(z(l))}),L(()=>{r(),n(),i(),Li(()=>{globalThis.clearTimeout(z(u))}),n()&&i()&&N(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=zh(),f=F(d);Fs(f,e=>N(s,e),()=>z(s));var p=I(f,2);ds(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-fgt7ka`),vo(P(p),()=>t.children??T),E(p),Fs(p,e=>N(l,e),()=>z(l)),H(e,d),O()}var Rh,zh,Bh;function Vh(){return(Vh=o((()=>{Y(),J(),tc(),Rh=new Set([`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),zh=B(`<div role="none" class="sui toast-base svelte-fgt7ka"></div> <div><!></div>`,1),Bh={hash:`svelte-fgt7ka`,code:`.toast-base.svelte-fgt7ka {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-fgt7ka {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-fgt7ka {display:block;opacity:0;}.toast.top-left.svelte-fgt7ka {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-fgt7ka {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-fgt7ka:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-fgt7ka:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-fgt7ka {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-fgt7ka {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-fgt7ka {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-fgt7ka:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-fgt7ka:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-fgt7ka {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`}})))()}function Hh(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Uh(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Wh(){return ny()._blockCursorElement}function Gte(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}function Gh(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}function Kh(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&Hh(225),n.reverse()}function qh(e,t=1e3){return e instanceof $b?e.clone():e.size<t?new Map(e):new $b().init(new Map(e),void 0,e.size)}function Jh(e,t,n,r,i,a){if($(e)){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&(($(o)||by(o)&&o.__slots!==null)&&Jh(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}for(let o of by(e)&&e.__slots!==null?e.__slots.values():[]){let e=r.get(o);e!==void 0&&xy(e)&&e.__slotHost===t&&(($(e)||by(e)&&e.__slots!==null)&&Jh(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o))}}function Kte(e){tx=e.timeStamp}function Yh(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&$_(e,n)!==void 0}function qte(e,t,n){let r=Rv(Ov(n)),i=r&&Gv(r,n._rootElement),a=null,o=null;i!==null&&i.anchorNode===e&&(a=i.anchorOffset,o=i.focusOffset);let s=e.nodeValue;s!==null&&dv(t,s,a,o,!1)}function Jte(e,t,n){if(Q(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return G_(t)&&n.isAttached()}function Yte(e,t,n){for(let r=e;r&&!fy(r);r=Sv(r)){let e=$_(r,t);if(e!==void 0){let t=Q_(e,n);if(t)return E_(t)||!Xv(r)?void 0:[r,t]}}}function Xh(e,t,n){ex=!0;let r=performance.now()-tx>100;try{T_(e,()=>{let i=o_()||function(e){return e.read(`latest`,()=>{let e=o_();return e===null?null:e.clone()})}(e),a=new Map,o=e._editorState,s=e._blockCursorElement,c=!1,l=``;for(let n=0;n<t.length;n++){let u=t[n],d=u.type,f=u.target,p=Yte(f,e,o);if(!p)continue;let[m,h]=p;if(d===`characterData`)r&&Kg(h)&&G_(f)&&Jte(i,f,h)&&qte(f,h,e);else if(d===`childList`){c=!0;let t=u.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=Wre(r),a=r.parentNode;if(!(a==null||r===s||i!==null||Yh(r,a,e)||e._slotsUsed&&Xv(r)&&r.hasAttribute(`data-lexical-slot`)||fy(r))){if(wb){let e=(Xv(r)?r.innerText:null)||r.nodeValue;e&&(l+=e)}a.removeChild(r)}}let n=u.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(Yh(r,f,e)||s===r)&&(f.appendChild(r),t++)}r!==t&&a.set(m,h)}}}if(a.size>0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let u=n.takeRecords();if(u.length>0){for(let t=0;t<u.length;t++){let n=u[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],a=n.parentNode;a==null||n.nodeName!==`BR`||Yh(n,i,e)||a.removeChild(n)}}n.takeRecords()}i!==null&&(c&&rv(i),wb&&yv(e)&&i.insertRawText(l))})}finally{ex=!1}}function Zh(e){let t=e._observer;t!==null&&Xh(e,t.takeRecords(),t)}function Qh(e){(function(e){tx===0&&Ov(e).addEventListener(`textInput`,Kte,!0)})(e),e._observer=new MutationObserver((t,n)=>{Xh(e,t,n)})}function $h(e,t){return new bie(e,t)}function eg(e,t,n=yie){let r=(n===`latest`?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function tg(e,t,n){let r;if(v_(),typeof n==`function`){let i=e.getLatest(),a=eg(i,t);if(r=n(a),t.isEqual(a,r))return i}else r=n;let i=e.getWritable();return ng(i).updateFromKnown(t,r),i}function Xte(e){let t=new Map,n=new Set;for(let{ownNodeConfig:r}of gy(typeof e==`function`?e:e.replace))if(r&&r.stateConfigs)for(let e of r.stateConfigs){let r;`stateConfig`in e?(r=e.stateConfig,e.flat&&n.add(r.key)):r=e,t.set(r.key,r)}return{flatKeys:n,sharedConfigMap:t}}function ng(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new xie(t,rg(t));return t.__state=n,n}function rg(e){return e.__state?e.__state.sharedNodeState:zre(ny(),e.getType()).sharedNodeState}function ig(e){if(e)for(let t in e)return e}function Zte(e){return e}function ag(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function og(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function sg(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function cg(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||function(e,t){if(e===t)return!0;let n=new Set;return!(e&&ag(n,e,t)||t&&ag(n,t,e)||e&&og(n,e,t)||t&&og(n,t,e))}(c,l))}function lg(e,t){let n=e.mergeWithSibling(t),r=b_()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function ug(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&Kg(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(cg(t,r)){r=lg(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&Kg(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(cg(r,n)){r=lg(r,n);break}break}n.remove()}}else r.remove()}function dg(e){return fg(e.anchor),fg(e.focus),e}function fg(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),Kg(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!$(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}function pg(e,t){return hx.read(()=>{let n=0,r=e;for(let e=0;e<t&&r!==null;e++){let i=mx.get(r);if(i===void 0&&Hh(345,r),$(i)){let a=gx.get(r);if(a!==void 0&&$(a)&&a.__parent!==i.__parent)n+=i.getTextContentSize();else{let e=_x.get(r),t=e&&e.__lexicalTextContent;typeof t!=`string`&&Hh(346,i.getType()),n+=t.length}e<t-1&&!i.isInline()&&(n+=2)}else{let e=i[rx];e===void 0&&Hh(347,i.getType(),r),n+=e}r=i.__next}return n},{editor:ax})}function mg(e){$(e)||e[rx]===void 0&&(e[rx]=Kg(e)?e.__text.length:e.getTextContentSize())}function hg(){return{firstTextKey:ux,format:cx,style:lx}}function gg(e){e.firstTextKey!==null&&(cx=e.format,lx=e.style,ux=e.firstTextKey)}function _g(e){if(ux!==null)return;let t=e.__lexicalFirstTextKey;if(t===void 0&&Hh(348),t===null)return;let n=gx.get(t);Kg(n)&&(cx=n.getFormat(),lx=n.getStyle(),ux=t)}function vg(e,t){let n=mx.get(e),r=gx.has(e);if(t!==null){let n=Ag(e);n.parentNode===t&&t.removeChild(n)}if(!r){if(ax._keyToDOMMap.delete(e),$(n)){let e=vy(n,mx);yg(e,0,e.length-1,null)}if(n!==void 0){for(let e of wg(n).values()){let t=Tg(e);vg(e,null),t!==null&&t.remove()}_v(yx,ox,dx,n,`destroyed`)}}}function yg(e,t,n,r){for(let i=t;i<=n;++i){let t=e[i];t!==void 0&&vg(t,r)}}function bg(e,t){e.setProperty(`text-align`,t)}function xg(e,t){let n=ix.theme.indent;if(typeof n==`string`){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * var(--lexical-indent-base-value, ${Cie}))`)}function Sg(e,t){let n=e.style;t===0?bg(n,``):t===1?bg(n,`left`):t===2?bg(n,`center`):t===3?bg(n,`right`):t===4?bg(n,`justify`):t===5?bg(n,`start`):t===6&&bg(n,`end`)}function Cg(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(D_(e))return null;let n=e.getParent();return n===null||Mv(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function Qte(e){let t=Uv().createElement(`div`);return t.setAttribute(`data-lexical-slot`,e),t.style.display=`none`,t}function $te(e,t,n){t||e.contentEditable===`false`?iie(n,ax):n.removeAttribute(`contenteditable`)}function ene(e,t,n){let r=sx,i=hg();sx=``;let a=``,o=E_(e);for(let[r,i]of n){let n=Qte(r);$te(t,o,n),t.appendChild(n),sx=``;let s=hg();Eg(i,iy(e,n,ax)),gg(s),tne(e,r,t,n),a+=sx}return gg(i),sx=r,a}function wg(e){return by(e)&&e.__slots!==null?e.__slots:XS}function tne(e,t,n,r){let i=bx.$getSlotTargetElement(e,t,n,ax);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display=``)}function Tg(e){let t=_x.get(e);return t===void 0?null:t.parentElement}function nne(e,t,n){let r=wg(e),i=wg(t);for(let[e,t]of r)if(!i.has(e)){let e=Tg(t);vg(t,null),e!==null&&e.remove()}let a=sx,o=hg(),s=``,c=null,l=E_(t);for(let[e,a]of i){let i=r.get(e),o=i===void 0?null:Tg(i);sx=``;let u=hg();if(o===null){o=Qte(e);let r=null;for(let e of n.children)if(!e.hasAttribute(`data-lexical-slot`)){r=e;break}n.insertBefore(o,r),Eg(a,iy(t,o,ax))}else i===a?Og(a,o):(i!==void 0&&vg(i,o),Eg(a,iy(t,o,ax)));if(gg(u),$te(n,l,o),tne(t,e,n,o),s+=sx,o.parentElement===n){let e=c===null?n.firstChild:c.nextSibling;e!==o&&n.insertBefore(o,e),c=o}}return gg(o),sx=a,s}function Eg(e,t){let n=gx.get(e);if(n===void 0&&Hh(60),t!==null){let r=mx.get(e);if(r!==void 0){let i=_x.get(e);if(i!==void 0){let a=xy(r)?r.__slotHost:null,o=xy(n)?n.__slotHost:null,s=r.__parent!==n.__parent||a!==o,c=o!==null&&i.parentElement!==t.element;if(s||c)return t.insertChild(i),Og(e,t.element)}}}let r=bx.$createDOM(n,ax);if(function(e,t,n){let r=n._keyToDOMMap;Gre(t,n,e),r.set(e,t)}(e,r,ax),Kg(n)?r.setAttribute(`data-lexical-text`,`true`):E_(n)&&(r.setAttribute(`data-lexical-decorator`,`true`),dy(r,{captureSelection:!0})),$(n)){let e=n.__indent,t=n.__size;Cg(r,n),e!==0&&xg(r,e);let i=wg(n),a=i.size>0?ene(n,r,i):``;if(t===0)r.__lexicalTextContent=a,r.__lexicalFirstTextKey=null,sx+=a,i.size>0&&(r.__lexicalSlotTextLength=a.length);else{let e=sx,o=t-1;if(Dg(vy(n,gx),n,0,o,iy(n,r,ax)),a!==``){let t=r.__lexicalTextContent||``;r.__lexicalTextContent=a+t,sx=e+a+t}i.size>0&&(r.__lexicalSlotTextLength=a.length)}let o=n.__format;o!==0&&Sg(r,o),n.isInline()||rne(null,n,r)}else{let t=n.getTextContent();if(E_(n)){let t=n.decorate(ax,ix);t!==null&&one(e,t),r.contentEditable=`false`;let i=wg(n);i.size>0&&ene(n,r,i)}sx+=t}return t!==null&&t.insertChild(r),bx.$decorateDOM(n,null,r,ax),mg(n),_v(yx,ox,dx,n,`created`),r}function Dg(e,t,n,r,i){let a=sx,o=hg();sx=``,cx=null,lx=null,ux=null;let s=n;for(;s<=r;++s){let t=hg();Eg(e[s],i);let n=gx.get(e[s]);n!==null&&Kg(n)?cx===null&&(cx=n.getFormat(),lx=n.getStyle(),ux=n.__key):$(n)&&s<r&&!n.isInline()&&(sx+=Hb),gg(t)}let c=ax._keyToDOMMap.get(t.__key);c===void 0&&Hh(349,t.__key),c.__lexicalTextContent=sx,c.__lexicalFirstTextKey=ux,sx=a+sx,gg(o)}function rne(e,t,n){let r=iy(t,n,ax),i=r.element.__lexicalLastChildKind??null,a=function(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return j_(e)?`line-break`:E_(e)&&e.isInline()?`decorator`:null}return wg(e).size>0?null:`empty`}return null}(t,gx);i!==a&&r.setManagedLineBreak(a)}function ine(e,t,n){var r;cx=null,lx=null,ux=null,function(e,t,n){let r=sx,i=e.__size,a=t.__size;sx=``;let o=n.element,s=ax._keyToDOMMap.get(t.__key);s===void 0&&Hh(351,t.__key);let c=a-i;if(!xx&&Math.abs(c)<=1&&i>=Sie&&e.__first===t.__first&&(c!==0||!ax._cloneNotNeeded.has(e.__key))){let i=s.__lexicalTextContent,l=vx.get(e.__key);if(!xx&&typeof i==`string`&&l!==void 0){let a=function(e,t){let n=t.size;if(n===0||n>=e.__size)return null;let r=e.__last,i=null,a=0;for(;r!==null&&a<n;){if(!t.has(r))return null;i=r;let e=gx.get(r);if(e===void 0)return null;r=e.__prev,a++}return a!==n||r!==null&&t.has(r)?null:i}(t,l);if(a!==null){let u=l.size;if(c===0){let e=pg(a,u),n=a,c=0;for(;n!==null&&c<u;){let e=gx.get(n);if(e===void 0)break;let t=hg();Og(n,o),Kg(e)&&cx===null&&(cx=e.getFormat(),lx=e.getStyle(),ux=e.__key),gg(t),n=e.__next,c++}let d=``;for(n=a,c=0;n!==null&&c<u;){let e=gx.get(n);if(e===void 0)break;let t;if($(e)){let r=ax._keyToDOMMap.get(n),i=r&&r.__lexicalTextContent;typeof i!=`string`&&Hh(352,e.getType()),t=i}else t=e.getTextContent();d+=t,c<u-1&&$(e)&&!e.isInline()&&(d+=Hb),n=e.__next,c++}let f=s.__lexicalSlotTextLength||0,p=f>0?i.slice(f):i,m=p.slice(0,p.length-e)+d;s.__lexicalTextContent=m,sx=r+m,ane(t,s,l);return}if(function(e,t,n,r,i,a,o,s){if(s!==1&&s!==-1||o!==(s===1?2:1))return!1;let c=o-s,l=e.__last;for(let e=0;e<c-1;e++){if(l===null)return!1;let e=mx.get(l);if(e===void 0)return!1;l=e.__prev}if(l===null)return!1;let u=gx.get(a),d=mx.get(l);if(u===void 0||d===void 0||u.__prev!==d.__prev)return!1;let f=[],p=a;for(let e=0;e<o;e++){if(p===null)return!1;f.push(p);let e=gx.get(p);p=e?e.__next:null}let m=[];p=l;for(let e=0;e<c;e++){if(p===null)return!1;m.push(p);let e=mx.get(p);p=e?e.__next:null}let h=new Set(m),g=new Set(f),_=[],v=0,y=0;for(;v<c&&y<o;)if(f[y]===m[v])_.push({key:f[y],kind:`reconcile`}),v++,y++;else if(g.has(m[v])){if(h.has(f[y]))return!1;_.push({key:f[y],kind:`create`,nextIndex:y}),y++}else _.push({key:m[v],kind:`destroy`}),v++;for(;v<c;)_.push({key:m[v++],kind:`destroy`});for(;y<o;)_.push({key:f[y],kind:`create`,nextIndex:y}),y++;let b=pg(l,c);for(let e of _){let t=hg();if(e.kind===`reconcile`)Og(e.key,n.element);else if(e.kind===`destroy`)vg(e.key,n.element);else{let t=null;for(let n=e.nextIndex+1;n<o;n++){let e=ax._keyToDOMMap.get(f[n]);if(e!==void 0){t=e;break}}Eg(e.key,n.withBefore(t??n.before))}if(e.kind!==`destroy`){let t=gx.get(e.key);t&&Kg(t)&&cx===null&&(cx=t.getFormat(),lx=t.getStyle(),ux=t.__key)}gg(t)}let x=``;for(let e=0;e<o;e++){let t=gx.get(f[e]);if(t===void 0)return!1;let n;if($(t)){let r=ax._keyToDOMMap.get(f[e]),i=r&&r.__lexicalTextContent;typeof i!=`string`&&Hh(350,t.getType()),n=i}else n=t.getTextContent();x+=n,e<o-1&&$(t)&&!t.isInline()&&(x+=Hb)}let S=r.__lexicalSlotTextLength||0,C=S>0?i.slice(S):i;return r.__lexicalTextContent=C.slice(0,C.length-b)+x,!0}(e,0,n,s,i,a,u,c)){let e=s.__lexicalTextContent;typeof e!=`string`&&Hh(353),sx=r+e,ane(t,s,l);return}}}if(c===0){let t=e.__first,n=0;for(;t!==null;){let e=gx.get(t);if(e===void 0)break;let r=xx||px.has(t)||fx.has(t),i=hg();if(r)Og(t,o);else{let n,r;if($(e)){r=_x.get(t);let i=r&&r.__lexicalTextContent;typeof i!=`string`&&Hh(354,e.getType()),n=i}else n=e.getTextContent();sx+=n,r!==void 0&&_g(r)}Kg(e)?cx===null&&(cx=e.getFormat(),lx=e.getStyle(),ux=e.__key):$(e)&&n<a-1&&!e.isInline()&&(sx+=Hb),gg(i),t=e.__next,n++}s.__lexicalTextContent=sx,s.__lexicalFirstTextKey=ux,sx=r+sx;return}}if(i===1&&a===1){let r=e.__first,i=t.__first;if(r===i)Og(r,o);else{let e=Ag(r),t=Eg(i,null);try{e.parentNode===o?o.replaceChild(t,e):n.insertChild(t)}catch(n){if(typeof n==`object`&&n){let a=`${n.toString()} Parent: ${o.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${r}}.`;throw Error(a)}throw n}vg(r,null)}let a=gx.get(i);Kg(a)&&cx===null&&(cx=a.getFormat(),lx=a.getStyle(),ux=a.__key)}else{let r=vy(e,mx),s=vy(t,gx);if(r.length!==i&&Hh(227),s.length!==a&&Hh(228),i===0)a!==0&&Dg(s,t,0,a-1,n);else if(a===0){if(i!==0){let e=n.after==null&&n.before==null&&wg(t).size===0&&n.element.__lexicalLineBreak==null;yg(r,0,i-1,e?null:o),e&&(o.textContent=``)}}else(function(e,t,n,r,i,a){let o=r-1,s=i-1,c,l,u=a.getFirstChild(),d=0,f=0;for(;d<=o&&f<=s;){let e=t[d],r=n[f],i=hg();if(e===r)u=kg(Og(r,a.element)),d++,f++;else{if(l===void 0&&(l=sne(n,f)),c===void 0)c=sne(t,d);else if(!c.has(e)){d++,gg(i);continue}if(!l.has(e)){u=kg(Ag(e)),vg(e,a.element),d++,c.delete(e),gg(i);continue}if(c.has(r)){let e=xv(ax,r);e!==u&&a.withBefore(u??a.before).insertChild(e),u=kg(Og(r,a.element)),d++,f++}else Eg(r,a.withBefore(u??a.before)),f++}let o=gx.get(r);o!==null&&Kg(o)?cx===null&&(cx=o.getFormat(),lx=o.getStyle(),ux=o.__key):$(o)&&f<=s&&!o.isInline()&&(sx+=Hb),gg(i)}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:ax.getElementByKey(t);Dg(n,e,f,s,a.withBefore(r??a.before))}else m&&!p&&yg(t,d,o,a.element)})(t,r,s,i,a,n)}s.__lexicalTextContent=sx,s.__lexicalFirstTextKey=ux,sx=r+sx}(e,t,iy(t,n,ax)),Mv(t)||(r=t,cx==null||cx===r.__textFormat||Sx||r.setTextFormat(cx),function(e){lx==null||lx===e.__textStyle||Sx||e.setTextStyle(lx)}(t))}function ane(e,t,n){let r=t.__lexicalFirstTextKey;if(r!=null){let t=e.__key,i=r;for(;i!==null;){let e=gx.get(i);if(e===void 0){i=null;break}if(e.__parent===t)break;i=e.__parent}if(i!==null&&!n.has(i)){let e=gx.get(r);if(Kg(e))return cx=e.getFormat(),void(lx=e.getStyle())}}t.__lexicalFirstTextKey=ux}function Og(e,t){let n=mx.get(e),r=gx.get(e);n!==void 0&&r!==void 0||Hh(61);let i=xx||px.has(e)||fx.has(e),a=xv(ax,e);if(n===r&&!i){let e;if($(n)){let t=a.__lexicalTextContent;typeof t!=`string`&&Hh(355,n.getType()),e=t,_g(a)}else e=n.getTextContent();return sx+=e,a}if(n!==r&&i&&_v(yx,ox,dx,r,`updated`),bx.$updateDOM(r,n,a,ax)){let n=Eg(e,null);return t===null&&Hh(62),t.replaceChild(n,a),vg(e,null),n}if($(n)){$(r)||Hh(334,e);let t=r.__indent;(xx||t!==n.__indent)&&xg(a,t);let o=r.__format;(xx||o!==n.__format)&&Sg(a,o);let s=i&&(wg(r).size>0||wg(n).size>0)?nne(n,r,a):``;if(i){let e=sx;if(ine(n,r,a),D_(r)||r.isInline()||rne(0,r,a),s!==``){let t=a.__lexicalTextContent||``;a.__lexicalTextContent=s+t,sx=e+s+t,a.__lexicalSlotTextLength=s.length}else(wg(r).size>0||wg(n).size>0)&&(a.__lexicalSlotTextLength=0)}else{let e=a.__lexicalTextContent;typeof e!=`string`&&Hh(356,n.getType()),sx+=e,_g(a)}if((xx||r.__dir!==n.__dir||r.__parent!==n.__parent)&&(Cg(a,r),D_(r)&&!xx))for(let e of r.getChildren())$(e)&&Cg(xv(ax,e.getKey()),e)}else{let t=r.getTextContent();if(E_(r)){let t=r.decorate(ax,ix);t!==null&&one(e,t),i&&(wg(r).size>0||wg(n).size>0)&&nne(n,r,a)}sx+=t}if(!Sx&&D_(r)){let e=r.getLatest();if(e.__cachedText!==sx){let t=e.getWritable();t.__cachedText=sx,r=t}}return bx.$decorateDOM(r,n,a,ax),mg(r),a}function one(e,t){let n=ax._pendingDecorators,r=ax._decorators;if(n===null){if(r[e]===t)return;n=Kre(ax)}n[e]=t}function kg(e){let t=e.nextSibling;return t!==null&&t===ax._blockCursorElement&&(t=t.nextSibling),t}function sne(e,t){let n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function cne(e,t,n,r,i,a){sx=``,cx=null,lx=null,ux=null,xx=r===2,ax=n,ix=n._config,bx=n._config.dom||BS,ox=n._nodes,dx=ax._listeners.mutation,fx=i,px=a,mx=e._nodeMap,hx=e,gx=t._nodeMap,Sx=t._readOnly,_x=qh(n._keyToDOMMap),vx=function(){let e=new Map,t=t=>{for(let n of t){let t=gx.get(n);if(t===void 0)continue;let r=t.__parent;if(r===null)continue;let i=e.get(r);i===void 0&&(i=new Set,e.set(r,i)),i.add(n)}};return t(fx.keys()),t(px),e}();let o=new Map;return yx=o,Og(`root`,null),ax=void 0,ox=void 0,fx=void 0,px=void 0,mx=void 0,hx=void 0,gx=void 0,ix=void 0,_x=void 0,vx=void 0,yx=void 0,bx=BS,o}function Ag(e){let t=_x.get(e);return t===void 0&&Hh(75,e),t}function jg(e){return{type:e}}function lne(e){let t=new Map;return{dispose(){for(let e of t.values())e.dispose();t.clear()},register(n,r){let i=t.get(n);i===void 0&&(i={dispose:e(n,r),holders:new Set},t.set(n,i));let a=()=>{let e=t.get(n);e&&e.holders.delete(a)&&e.holders.size===0&&(t.delete(n),e.dispose())};return i.holders.add(a),a}}}function une(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}function dne(e,t,n,r,i,a){let o=e.anchor,s=e.focus,c=o.getNode(),l=b_(),u;if(a!==void 0)u=a;else{let e=Rv(Ov(l));u=e===null?null:Gv(e,l._rootElement)}let d=u===null?null:u.anchorNode,f=o.key,p=l.getElementByKey(f),m=n.length;return f!==s.key||!Kg(c)||(!i&&(!Tb||l._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||c.isDirty()&&m<2||ov(n))&&o.offset!==s.offset&&!c.isComposing()||W_(c)||c.isDirty()&&m>1||(i||!Tb)&&p!==null&&!c.isComposing()&&d!==ay(c,p,l)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!c.isComposing()&&(c.getFormat()!==e.format||c.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=U_(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(Kg(t)||$(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,c)}function fne(e,t){return G_(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function pne(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=Gv(e,t._rootElement),s=t._inputState;s.isSelectionChangeFromDOMUpdate&&(s.isSelectionChangeFromDOMUpdate=!1,fne(r,i)&&fne(a,o)&&!s.postDeleteSelectionToRestore)||T_(t,()=>{if(!n)return void rv(null);if(!z_(t,r,a))return;let c=o_();if(s.postDeleteSelectionToRestore&&Q(c)&&c.isCollapsed()){let e=c.anchor,t=s.postDeleteSelectionToRestore.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(c=s.postDeleteSelectionToRestore.clone(),rv(c))}if(s.postDeleteSelectionToRestore=null,Q(c)){let n=c.anchor,l=n.getNode();if(c.isCollapsed()){e.type===`Range`&&r===a&&(c.dirty=!0);let i=Ov(t).event,o=i?i.timeStamp:performance.now(),{format:u,style:d,offset:f,key:p,timeStamp:m}=s.collapsedSelectionFormat,h=nv(),g=!1===t.isComposing()&&h.getTextContent()===``;if(o<m+200&&n.offset===f&&n.key===p)Mg(c,u,d);else if(n.type===`text`)Kg(l)||Hh(141),mne(c,l);else if(n.type===`element`&&!g){$(l)||Hh(259);let e=n.getNode();e.isEmpty()?function(e,t){Mg(e,t.getTextFormat(),t.getTextStyle())}(c,e):Mg(c,c.format,``)}}else{let e=n.key,t=c.focus.key,r=c.getNodes(),a=r.length,s=c.isBackward(),l=s?o:i,u=s?i:o,d=s?t:e,f=s?e:t,p=2047,m=!1;for(let e=0;e<a;e++){let t=r[e],n=t.getTextContentSize();if(Kg(t)&&n!==0&&!(e===0&&t.__key===d&&l===n||e===a-1&&t.__key===f&&u===0)&&(m=!0,p&=t.getFormat(),p===0))break}c.format=m?p:0}}bv(t,Cx)})}function Mg(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function mne(e,t){Mg(e,t.getFormat(),t.getStyle())}function hne(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function gne(e){let{lastKeyCode:t}=b_()._inputState;if(e==null||e.length<=1||t==null)return;let n=t.length===1?t:t===`Enter`?`
|
|
1941
|
+
`).map(e=>{let[t,n,r=``]=e.split(` `),[i,...a]=n.split(` `);return{emoji:t,name:i,aliases:[...a,...r?r.split(` `):[]]}}),Rp=(e,t)=>{let n=e.split(Lp);return e===t?0:e.startsWith(t)&&Lp.test(e.charAt(t.length))?1:n.includes(t)?2:e.startsWith(t)||n.some(e=>e.startsWith(t))?4:9},bee=(e,t)=>e.includes(t)?3:e.some(e=>e.startsWith(t))?5:9,xee=({name:e,aliases:t},n)=>{let r=Rp(e,n),i=bee(t,n);return{rank:Math.min(r,i),nameRank:r}},See=({name:e,aliases:t},n)=>{if(Rp(e,n)<9)return e.split(Lp).length;let r=t.findIndex(e=>e===n||e.startsWith(n));return(r>-1?r:t.length)*100+t.length},Cee=e=>{let t=e.toLowerCase();return t?(vee??=yee(hee),vee.map(e=>{let{rank:n,nameRank:r}=xee(e,t);return{entry:e,rank:n,nameRank:r,centrality:See(e,t)}}).filter(({rank:e})=>e<9).sort((e,t)=>e.rank-t.rank||e.nameRank-t.nameRank||e.centrality-t.centrality).slice(0,50).map(({entry:e})=>e)):[]},zp=(e,t)=>/^\s/.test(t)?e:`${e} `,Bp=e=>e.match(_ee)?.groups?.query})))()}function wee(e,t){let n=Oa();D(t,!0),G(e,Dee);let r=q(t,`ariaOwner`,3,void 0),i=M(void 0),a=M(Dr([])),o=M(0),s=M(void 0),c=M(void 0),l=M(void 0),u=j(()=>!!z(i)&&!!z(a).length),d=M(0),f=M(0),p=j(()=>z(d)?z(d)*5+z(f):180),m=j(()=>{if(!z(s))return;let{innerWidth:e,innerHeight:t}=window,n=t-z(s).bottom,r=z(s).top,i=n<z(p)+8&&r>n,a=document.dir===`rtl`?z(s).right-280:z(s).left;return{top:i?void 0:`${Math.round(z(s).bottom+4)}px`,bottom:i?`${Math.round(t-z(s).top+4)}px`:void 0,left:`${Math.round(Math.max(8,Math.min(a,e-280-8)))}px`,maxHeight:`${Math.round(Math.min(z(p),(i?r:n)-4-8))}px`}}),h=()=>z(u),g=(e=!1)=>{Li(()=>{N(l,e&&z(i)?z(i).id:void 0,!0),N(i,void 0),N(a,[],!0),N(o,0),N(s,void 0)})},_=e=>{if(!e){(z(i)||z(l))&&g();return}if(z(l)===e.id)return;let{id:n,query:r}=e;if(N(l,void 0),N(s,t.getAnchorRect(e),!0),z(i)?.id===n&&z(i).query===r){N(i,e,!0);return}N(i,e,!0),N(a,Cee(r),!0),N(o,0)},v=e=>{let{length:t}=z(a);t&&N(o,(z(o)+e+t)%t)},y=()=>{let e=z(a)[z(o)];e&&z(i)&&t.onSelect(e,z(i)),g()},b=e=>{let{key:t,altKey:n,ctrlKey:r,metaKey:i,shiftKey:a}=e;if(!z(u)||n||r||i)return!1;if(t===`ArrowDown`||t===`ArrowUp`)v(t===`ArrowDown`?1:-1);else if((t===`Enter`||t===`Tab`)&&!a)y();else if(t===`Escape`)g(!0);else return!1;return e.preventDefault(),!0};L(()=>{if(z(a),!z(c))return;z(c).matches(`:popover-open`)||z(c).showPopover?.();let e=z(c).querySelector(`.option`);if(e){let{paddingTop:t,paddingBottom:n,borderTopWidth:r,borderBottomWidth:i}=getComputedStyle(z(c));N(d,e.getBoundingClientRect().height,!0),N(f,Number.parseFloat(t)+Number.parseFloat(n)+Number.parseFloat(r)+Number.parseFloat(i))}}),L(()=>{if(!r())return;let e=r();return e.setAttribute(`aria-autocomplete`,`list`),e.setAttribute(`aria-haspopup`,`listbox`),()=>{e.removeAttribute(`aria-autocomplete`),e.removeAttribute(`aria-haspopup`)}}),L(()=>{if(!r())return;let e=r();return z(u)?(e.setAttribute(`aria-controls`,n),e.setAttribute(`aria-activedescendant`,`${n}-option-${z(o)}`)):(e.removeAttribute(`aria-controls`),e.removeAttribute(`aria-activedescendant`)),()=>{e.removeAttribute(`aria-controls`),e.removeAttribute(`aria-activedescendant`)}}),L(()=>{z(o),z(c)?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`,behavior:`instant`})}),Qs(()=>{let e=()=>{z(i)&&N(s,t.getAnchorRect(z(i)),!0)},n=({target:e})=>{let t=e;!z(u)||z(c)?.contains(t)||r()?.contains(t)||g()};return window.addEventListener(`scroll`,e,{capture:!0,passive:!0}),window.addEventListener(`resize`,e,{passive:!0}),document.addEventListener(`pointerdown`,n,{capture:!0}),()=>{window.removeEventListener(`scroll`,e,{capture:!0}),window.removeEventListener(`resize`,e),document.removeEventListener(`pointerdown`,n,{capture:!0})}});var x={isOpen:h,close:g,update:_,moveSelection:v,selectHighlighted:y,handleKeyDown:b},S=V(),C=F(S),w=e=>{var t=Eee();let r;ao(t,23,()=>z(a),e=>e.emoji,(e,t,r)=>{var i=Tee(),a=P(i),s=P(a,!0);E(a);var c=I(a,2),l=P(c);E(c),E(i),R(()=>{K(i,`id`,`${n}-option-${z(r)??``}`),K(i,`aria-selected`,z(r)===z(o)),U(s,z(t).emoji),U(l,`:${z(t).name??``}:`)}),pa(`mouseenter`,i,()=>{N(o,z(r),!0)}),ma(`mousedown`,i,e=>{e.preventDefault(),N(o,z(r),!0),y()}),H(e,i)}),E(t),Fs(t,e=>N(c,e),()=>z(c)),R(e=>{K(t,`id`,n),K(t,`aria-label`,e),r=rs(t,``,r,{top:z(m).top,bottom:z(m).bottom,left:z(m).left,"max-height":z(m).maxHeight})},[()=>X(`_sui.emoji_suggestions`)]),H(e,t)};return W(C,e=>{z(u)&&z(m)&&e(w)}),H(e,S),O(x)}var Tee,Eee,Dee;function Hp(){return(Hp=o((()=>{Y(),J(),Z(),tc(),Vp(),Tee=B(`<div role="option" class="option svelte-1izvzvf" tabindex="-1"><span role="none" class="emoji svelte-1izvzvf"> </span> <span role="none" class="name svelte-1izvzvf"> </span></div>`),Eee=B(`<div role="listbox" class="sui emoji-suggestions svelte-1izvzvf" popover="manual"></div>`),Dee={hash:`svelte-1izvzvf`,code:`.emoji-suggestions.svelte-1izvzvf {position:fixed;inset:auto;z-index:1000;display:flex;flex-direction:column;overflow-y:auto;margin:0;border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);width:280px;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;}.option.svelte-1izvzvf {flex:none;display:flex;align-items:center;gap:8px;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);min-height:var(--sui-option-height);cursor:default;}.option[aria-selected=true].svelte-1izvzvf {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-1izvzvf .emoji:where(.svelte-1izvzvf) {flex:none;width:1.5em;font-size:var(--sui-font-size-large);text-align:center;}.option.svelte-1izvzvf .name:where(.svelte-1izvzvf) {flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}`},ha([`mousedown`])})))()}function Oee(e,t){D(t,!0);let n=q(t,`element`,3,void 0),r=M(void 0),i=()=>{if(!n()||n().disabled||n().readOnly)return;let{value:e,selectionStart:t,selectionEnd:r}=n();if(t===null||t!==r)return;let i=Bp(e.slice(0,t));if(i===void 0)return;let a=t-i.length-1;return{id:String(a),query:i,start:a,end:t}};L(()=>{if(!n()||!z(r))return;let e=n(),t=()=>{z(r)?.update(i())},a=e=>{z(r)?.handleKeyDown(e)},o=()=>{z(r)?.close()};return e.addEventListener(`keydown`,a),e.addEventListener(`keyup`,t),e.addEventListener(`input`,t),e.addEventListener(`mouseup`,t),e.addEventListener(`blur`,o),()=>{e.removeEventListener(`keydown`,a),e.removeEventListener(`keyup`,t),e.removeEventListener(`input`,t),e.removeEventListener(`mouseup`,t),e.removeEventListener(`blur`,o),z(r)?.close()}}),Fs(wee(e,{getAnchorRect:e=>{let{start:t,end:r}=e;return n()?pee(n(),t,r):void 0},onSelect:(e,t)=>{let{query:r,start:i,end:a}=t;if(!n()||n().value.slice(i,a)!==`:${r}`)return;let o=zp(e.emoji,n().value.slice(a));n().focus(),n().setSelectionRange(i,a);let s=!1;try{s=document.execCommand(`insertText`,!1,o)}catch{s=!1}s||(n().setRangeText(o,i,a,`end`),n().dispatchEvent(new Event(`input`,{bubbles:!0})))},get ariaOwner(){return n()}}),e=>N(r,e,!0),()=>z(r)),O()}function Up(){return(Up=o((()=>{Y(),J(),mee(),Vp(),Hp()})))()}function Wp(e,t){let n=Oa();D(t,!0),G(e,Jp);let r=q(t,`value`,15),i=q(t,`element`,15),a=q(t,`role`,3,`textbox`),o=q(t,`keyShortcuts`,3,void 0),s=q(t,`dir`,3,void 0),c=q(t,`name`,3,void 0),l=q(t,`showInlineLabel`,3,!1),u=q(t,`inputmode`,3,`text`),d=q(t,`flex`,3,!1),f=q(t,`monospace`,3,!1),p=q(t,`debounce`,3,!1),m=q(t,`useEmojiAutocomplete`,3,!1),h=q(t,`hidden`,3,!1),g=q(t,`disabled`,3,!1),_=q(t,`readonly`,3,!1),v=q(t,`required`,3,!1),y=q(t,`invalid`,3,!1),b=q(t,`ariaLabel`,3,void 0),x=Hs(t,Gp),S=j(()=>typeof p()==`number`?p():300),C=0;L(()=>()=>{clearTimeout(C)});let w=e=>{r(i()?.value),t.oninput?.(e)},ee=e=>{let t=e;p()?(clearTimeout(C),C=setTimeout(()=>{w(t)},z(S))):w(t)};var te=qp();let ne;var re=P(te);ds(re,()=>({...x,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:g()?-1:0,disabled:g()||void 0,readonly:_()||void 0,inputmode:u(),"aria-label":b(),"aria-hidden":h(),"aria-disabled":g(),"aria-readonly":_(),"aria-required":v(),"aria-invalid":y(),oninputcapture:ee}),void 0,void 0,void 0,`svelte-1lwd8m5`,!0),Fs(re,e=>i(e),()=>i()),Ho(re,()=>ld(o()));var ie=I(re,2),ae=e=>{Oee(e,{get element(){return i()}})};W(ie,e=>{m()&&!g()&&!_()&&e(ae)});var oe=I(ie,2),se=e=>{var t=Kp();let i;dd(P(t),{children:(e,t)=>{mt();var n=Da();R(()=>U(n,b())),H(e,n)},$$slots:{default:!0}}),E(t),R(()=>{K(t,`id`,`${n}-label`),i=es(t,1,`label svelte-1lwd8m5`,null,i,{hidden:!!r()})}),H(e,t)};W(oe,e=>{b()&&l()&&e(se)}),E(te),R(()=>{ne=es(te,1,`sui text-input ${t.class??``}`,`svelte-1lwd8m5`,ne,{flex:d(),monospace:f(),disabled:g(),readonly:_()}),K(te,`hidden`,h()),re.dir=re.dir}),H(e,te),O()}var Gp,Kp,qp,Jp;function Yp(){return(Yp=o((()=>{Y(),J(),ud(),md(),Up(),Gp=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`useEmojiAutocomplete`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`oninput`]),Kp=B(`<span aria-hidden="true"><!></span>`),qp=B(`<div role="none"><input/> <!> <!></div>`),Jp={hash:`svelte-1lwd8m5`,code:`.text-input.svelte-1lwd8m5 {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.text-input.flex.svelte-1lwd8m5:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-1lwd8m5 {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-1lwd8m5:is(:where(.svelte-1lwd8m5):-webkit-autofill, :where(.svelte-1lwd8m5):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-1lwd8m5 {display:inline-block;flex:auto;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-singleline-padding);min-width:0;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-singleline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}input.svelte-1lwd8m5:focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}input.svelte-1lwd8m5:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-1lwd8m5:is(:where(.svelte-1lwd8m5):disabled, :where(.svelte-1lwd8m5):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-1lwd8m5 {border-color:var(--sui-error-border-color);}input.svelte-1lwd8m5 ~ button {flex:none;margin-inline-start:-1px;border-width:1px;border-color:var(--sui-textbox-border-color);height:var(--sui-textbox-height);aspect-ratio:1/1;}input.svelte-1lwd8m5 ~ button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}input.svelte-1lwd8m5 ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-1lwd8m5 {position:absolute;inset:var(--sui-textbox-singleline-padding);z-index:2;display:flex;align-items:center;justify-content:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));pointer-events:none;}.label.hidden.svelte-1lwd8m5 {opacity:0;}input.svelte-1lwd8m5:focus + .label:where(.svelte-1lwd8m5) {opacity:0;}input.svelte-1lwd8m5::placeholder,
|
|
1942
|
+
.label.svelte-1lwd8m5 {color:var(--sui-textbox-placeholder-foreground-color, var(--sui-textbox-foreground-color));opacity:var(--sui-textbox-placeholder-opacity, 0.5);font-family:var(--sui-textbox-placeholder-font-family, var(--sui-textbox-font-family));font-size:var(--sui-textbox-placeholder-font-size, var(--sui-textbox-font-size));line-height:var(--sui-textbox-placeholder-singleline-line-height, var(--sui-textbox-singleline-line-height));font-weight:var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal)));text-align:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));text-indent:var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));letter-spacing:var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));}`}})))()}function Xp(e,t){D(t,!0),G(e,$p);let n=q(t,`open`,15,!1),r=q(t,`value`,15,``),i=q(t,`textboxAttrs`,19,()=>({})),a=Hs(t,Zp);wp(e,Us(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=Qp(),o=F(a);vo(o,()=>t.children??T);var s=I(o,2),c=P(s),l=e=>{var n=V();vo(F(n),()=>t.input),H(e,n)},u=e=>{Wp(e,Us({dir:`auto`,flex:!0,autofocus:!0},i,{get onkeydown(){return t.onkeydown},get onkeyup(){return t.onkeyup},get onkeypress(){return t.onkeypress},get oninput(){return t.oninput},get value(){return r()},set value(e){r(e)}}))};W(c,e=>{t.input?e(l):e(u,-1)}),E(s),H(e,a)},$$slots:{default:!0}})),O()}var Zp,Qp,$p;function em(){return(em=o((()=>{Y(),J(),Yp(),Mp(),Zp=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]),Qp=B(`<!> <div class="input-outer svelte-14ul4g2"><!></div>`,1),$p={hash:`svelte-14ul4g2`,code:`.input-outer.svelte-14ul4g2 {margin:12px 0 0;}`}})))()}function tm(e,t){D(t,!0);let n=q(t,`accept`,3,void 0),r=q(t,`multiple`,3,!1),i=q(t,`onSelect`,3,void 0),a=q(t,`onCancel`,3,void 0),o=M(void 0);var s={open:()=>{z(o)?.click()}},c=nm();return Fs(c,e=>N(o,e),()=>z(o)),R(()=>{K(c,`accept`,n()),c.multiple=r()}),ma(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),pa(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),H(e,c),O(s)}var nm;function rm(){return(rm=o((()=>{Y(),J(),nm=B(`<input class="sui file-picker" type="file" hidden=""/>`),ha([`change`])})))()}function im(e,t){let n=Oa();G(e,cm);let r=q(t,`label`,3,``),i=Hs(t,am);var a=sm();ds(a,()=>({...i,role:`rowgroup`,class:`sui grid-body row-group ${t.class??``}`,"aria-labelledby":r()?`${n}-label`:void 0,"aria-roledescription":`grid body`}),void 0,void 0,void 0,`svelte-1dr4h8w`);var o=P(a),s=e=>{var t=om();Io(P(t),()=>`th`,!1,(e,t)=>{ds(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-1dr4h8w`);var i=Da();R(()=>U(i,r())),H(t,i)}),E(t),H(e,t)};W(o,e=>{r()&&e(s)}),vo(I(o,2),()=>t.children??T),E(a),H(e,a)}var am,om,sm,cm;function lm(){return(lm=o((()=>{Y(),J(),am=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]),om=B(`<div role="row" class="row-group-caption svelte-1dr4h8w"><!></div>`),sm=B(`<div><!> <!></div>`),cm={hash:`svelte-1dr4h8w`,code:`[role=rowgroup].svelte-1dr4h8w {display:table-row-group;}[role=row].svelte-1dr4h8w {display:table-row;}[role=columnheader].svelte-1dr4h8w {display:table-cell;padding:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);text-align:start;}`}})))()}function um(e,t){G(e,jee);let n=Hs(t,kee);var r=Aee();ds(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-1oofbic`),vo(P(r),()=>t.children??T),E(r),H(e,r)}var kee,Aee,jee;function dm(){return(dm=o((()=>{Y(),J(),kee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Aee=B(`<div><!></div>`),jee={hash:`svelte-1oofbic`,code:`.grid-cell.svelte-1oofbic {display:table-cell;}`}})))()}function fm(e,t){G(e,Pee);let n=q(t,`selected`,3,!1),r=Hs(t,Mee);var i=Nee();ds(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-pqebbw`),vo(P(i),()=>t.children??T),E(i),H(e,i)}var Mee,Nee,Pee;function pm(){return(pm=o((()=>{Y(),J(),Mee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`selected`,`children`]),Nee=B(`<div><!></div>`),Pee={hash:`svelte-pqebbw`,code:`.grid-row.svelte-pqebbw {display:table-row;height:var(--sui-primary-row-height);}`}})))()}function Fee(e,t){D(t,!0),G(e,Ree);let n=q(t,`element`,15),r=q(t,`multiple`,3,!1),i=q(t,`clickToSelect`,3,!0),a=q(t,`ariaLabel`,3,void 0),o=Hs(t,Iee);var s=Lee(),c=e=>{t.onChange?.(e)};ds(s,()=>({...o,role:`grid`,class:`sui grid ${t.class??``}`,"aria-multiselectable":r(),"aria-label":a(),onChange:c}),void 0,void 0,void 0,`svelte-iq8dex`),vo(P(s),()=>t.children??T),E(s),Fs(s,e=>n(e),()=>n()),Ho(s,()=>Rf({clickToSelect:i()})),H(e,s),O()}var Iee,Lee,Ree;function zee(){return(zee=o((()=>{Y(),J(),zf(),Iee=new Set([`$$slots`,`$$events`,`$$legacy`,`element`,`class`,`multiple`,`clickToSelect`,`ariaLabel`,`children`,`onChange`]),Lee=B(`<div><!></div>`),Ree={hash:`svelte-iq8dex`,code:`.grid.svelte-iq8dex {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.grid.data.svelte-iq8dex {border-collapse:collapse;}.grid.data.svelte-iq8dex :is(.grid-col-header, .grid-row-header, .grid-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}})))()}function mm(e,t){D(t,!0),G(e,Hee);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`multiple`,3,!1),c=q(t,`searchTerms`,3,``),l=q(t,`ariaLabel`,3,void 0),u=Hs(t,Bee),d=M(!1);var f=Vee(),p=e=>{let{detail:{matched:n,total:r}}=e;N(d,n!==r),t.onFilter?.(e)};ds(f,()=>({...u,role:`listbox`,class:`sui listbox ${t.class??``}`,tabindex:r()?-1:0,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-multiselectable":s(),"aria-label":l(),onFilter:p,[ms]:{filtered:z(d)}}),void 0,void 0,void 0,`svelte-zpa9qf`);var m=P(f);vo(P(m),()=>t.children??T),E(m),E(f),Ho(f,()=>Rf(()=>({searchTerms:c()}))),R(()=>m.inert=r()),H(e,f),O()}var Bee,Vee,Hee;function hm(){return(hm=o((()=>{Y(),J(),zf(),Bee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`multiple`,`searchTerms`,`ariaLabel`,`children`,`onFilter`]),Vee=B(`<div><div role="none" class="inner svelte-zpa9qf"><!></div></div>`),Hee={hash:`svelte-zpa9qf`,code:`[role=listbox].svelte-zpa9qf {display:flex;flex-direction:column;margin:var(--sui-focus-ring-width);border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);min-width:var(--sui-listbox-min-width, calc(var(--sui-option-height) * 5));color:var(--sui-listbox-foreground-color);background-color:var(--sui-listbox-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}
|
|
1943
|
+
@media (pointer: coarse) {[role=listbox].svelte-zpa9qf {gap:8px 0;}
|
|
1944
|
+
}[role=listbox].svelte-zpa9qf [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-zpa9qf {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-zpa9qf {padding:0;border-block-start-width:0;border-block-end-width:0;border-inline-end-width:1px;border-inline-start-width:0;border-color:var(--sui-control-border-color);}[role=listbox].tabs.svelte-zpa9qf .option button {justify-content:flex-start;border-width:0;border-inline-end-width:2px;border-color:transparent;padding:0 12px;border-start-end-radius:0;border-end-end-radius:0;height:var(--sui-tab-medium-height);}[role=listbox].tabs.svelte-zpa9qf .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-zpa9qf .option button .icon {display:none;}[role=listbox].in-combobox.svelte-zpa9qf:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-zpa9qf [role=separator] {display:none;}.inner.svelte-zpa9qf {display:contents;}`}})))()}function gm(e,t){let n=Oa();G(e,Gee);let r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=Hs(t,Uee);var s=Wee();ds(s,()=>({...o,role:`group`,id:n,class:`sui option-group ${t.class??``}`,hidden:r(),"aria-hidden":r(),"aria-disabled":i(),"aria-labelledby":`${n}-label`,"aria-roledescription":`option group`}),void 0,void 0,void 0,`svelte-2koj9b`);var c=P(s);dd(P(c),{children:(e,t)=>{mt();var n=Da();R(()=>U(n,a())),H(e,n)},$$slots:{default:!0}}),E(c);var l=I(c,2);vo(P(l),()=>t.children??T),E(l),E(s),R(()=>{K(c,`id`,`${n}-label`),l.inert=i()}),H(e,s)}var Uee,Wee,Gee;function _m(){return(_m=o((()=>{Y(),J(),md(),Uee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]),Wee=B(`<div><div role="none" class="label svelte-2koj9b"><!></div> <div role="none" class="inner svelte-2koj9b"><!></div></div>`),Gee={hash:`svelte-2koj9b`,code:`.option-group.svelte-2koj9b:not(:first-child) {margin:12px 0 0;}.label.svelte-2koj9b {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-2koj9b {display:contents;}`}})))()}function vm(e,t){let n=Oa();D(t,!0),G(e,Yee);let r=q(t,`selected`,15,!1),i=q(t,`hidden`,15,!1),a=q(t,`disabled`,3,!1),o=q(t,`value`,19,()=>t.label),s=q(t,`searchValue`,19,()=>t.label),c=q(t,`wrap`,3,!1),l=Hs(t,Kee),u=Of();u&&$s(u.register({get value(){return o()},get label(){return t.label},get name(){return t.name},get type(){return t.valueType??typeof o()},get selected(){return r()},set selected(e){r(e)},get disabled(){return a()}}));let d=j(()=>!u||u.expanded);var f=V(),p=F(f),m=e=>{var u=Jee();let d;var f=P(u);{let e=e=>{var n=V();vo(F(n),()=>t.startIcon??T),H(e,n)},c=j(()=>t.id??n);$d(f,Us(()=>l,{role:`option`,get id(){return z(c)},tabindex:`-1`,get"aria-selected"(){return r()},get label(){return t.label},get value(){return o()},get hidden(){return i()},get disabled(){return a()},get"data-search-value"(){return s()},onChange:e=>{r(e.detail.selected),t.onChange?.(e)},onToggle:e=>{i(e.detail.hidden),i()&&r(!1),t.onToggle?.(e)},startIcon:e,children:(e,n)=>{var i=qee(),a=F(i),o=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.checkIcon),H(e,n)},a=e=>{nc(e,{class:`check`,name:`check`})};W(r,e=>{t.checkIcon?e(i):e(a,-1)}),H(e,n)};W(a,e=>{r()&&e(o)}),vo(I(a,2),()=>t.children??T),H(e,i)},$$slots:{startIcon:!0,default:!0}}))}E(u),R(()=>{d=es(u,1,`sui option ${t.class??``}`,`svelte-fb663l`,d,{wrap:c()}),K(u,`hidden`,i())}),H(e,u)};W(p,e=>{z(d)&&e(m)}),H(e,f),O()}var Kee,qee,Jee,Yee;function ym(){return(ym=o((()=>{Y(),J(),tc(),Af(),of(),oc(),Kee=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]),qee=B(`<!> <!>`,1),Jee=B(`<div role="none"><!></div>`),Yee={hash:`svelte-fb663l`,code:`.option.svelte-fb663l {display:contents;}.option.svelte-fb663l:focus-visible {outline-width:0 !important;}.option.svelte-fb663l .wrap button {white-space:normal;}.option.svelte-fb663l button {flex:none;display:flex;gap:4px;margin:0 !important;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);width:100%;height:auto;min-height:var(--sui-option-height);}.option.svelte-fb663l button:active {background-color:var(--sui-active-background-color);}.option.svelte-fb663l button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-fb663l button * {flex:none;}.option.svelte-fb663l button .label {flex:auto;}.option.svelte-fb663l :is(.focused, button:hover) {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-fb663l .icon.check {margin:-2px;}`}})))()}function bm(e,t){D(t,!0),G(e,Qee);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=Hs(t,Xee);var o=Zee(),s=e=>{t.onChange?.(e)};ds(o,()=>({...a,role:`menu`,class:`sui menu ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-label":i(),onChange:s}),void 0,void 0,void 0,`svelte-165pa7v`),vo(P(o),()=>t.children??T),E(o),Ho(o,Rf),H(e,o),O()}var Xee,Zee,Qee;function xm(){return(xm=o((()=>{Y(),J(),zf(),Xee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`,`onChange`]),Zee=B(`<div><!></div>`),Qee={hash:`svelte-165pa7v`,code:`.menu.svelte-165pa7v {display:flex;flex-direction:column;margin:0;border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}
|
|
1945
|
+
@media (pointer: coarse) {.menu.svelte-165pa7v {gap:8px 0;}
|
|
1946
|
+
}.menu.svelte-165pa7v [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`}})))()}function Sm(e,t){D(t,!0),G(e,rte);let n=q(t,`role`,3,`menuitem`),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=q(t,`popupPosition`,3,`right-top`),s=Hs(t,$ee),c=M(!1),l=M(!1),u=M(void 0),d=M(void 0),f=j(()=>n()===`menuitem`&&!!t.items);Qs(()=>{N(d,z(u)?.closest(`dialog`)??void 0,!0)});var p=nte(),m=P(p);{let e=e=>{var n=V();vo(F(n),()=>t.startIcon??T),H(e,n)},o=e=>{var n=tte(),r=F(n);let i;var o=P(r),s=e=>{var t=Da();R(()=>U(t,a())),H(e,t)},c=e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)};W(o,e=>{a()?e(s):e(c,-1)}),E(r);var l=I(r,2),u=e=>{var n=ete(),r=P(n),i=e=>{var n=V();vo(F(n),()=>t.chevronIcon),H(e,n)},a=e=>{{let t=j(()=>Ru()?`chevron_left`:`chevron_right`);nc(e,{get name(){return z(t)}})}};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),E(n),H(e,n)};W(l,e=>{z(f)&&e(u)}),R(()=>i=es(r,1,`content svelte-179p9pv`,null,i,{label:!!a()})),H(e,n)},d=e=>{var n=V();vo(F(n),()=>t.endIcon??T),H(e,n)},p=j(()=>z(f)?`menu`:void 0),h=j(()=>z(f)?z(c):void 0);$d(m,Us(()=>s,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return z(p)},get"aria-expanded"(){return z(h)},onmouseenter:e=>{z(f)&&window.setTimeout(()=>{N(c,!0)},200),t.onmouseenter?.(e)},onmouseleave:e=>{z(f)&&window.setTimeout(()=>{z(l)||N(c,!1)},200),t.onmouseleave?.(e)},onclick:e=>{z(f)&&(e.preventDefault(),e.stopPropagation(),N(c,!z(c))),t.onclick?.(e)},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(u)},set element(e){N(u,e,!0)},startIcon:e,children:o,endIcon:d,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var h=I(m,2),g=e=>{Jd(e,{get anchor(){return z(u)},get parentDialogElement(){return z(d)},get position(){return o()},get open(){return z(c)},set open(e){N(c,e,!0)},get hovered(){return z(l)},set hovered(e){N(l,e,!0)},children:(e,n)=>{bm(e,{children:(e,n)=>{var r=V();vo(F(r),()=>t.items??T),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(h,e=>{z(f)&&z(u)&&z(d)&&e(g)}),E(p),R(()=>{es(p,1,`sui menuitem ${t.class??``}`,`svelte-179p9pv`),K(p,`hidden`,r())}),H(e,p),O()}var $ee,ete,tte,nte,rte;function Cm(){return(Cm=o((()=>{Y(),J(),Z(),tc(),of(),oc(),Qd(),xm(),$ee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),ete=B(`<span role="none" class="icon-outer svelte-179p9pv"><!></span>`),tte=B(`<div role="none"><!></div> <!>`,1),nte=B(`<div role="none"><!> <!></div>`),rte={hash:`svelte-179p9pv`,code:`.menuitem.svelte-179p9pv {position:relative;}.menuitem.svelte-179p9pv button {display:flex;gap:var(--sui-menuitem-gap, 4px);align-items:var(--sui-menuitem-align-items, center);border-radius:var(--sui-menuitem-border-radius, var(--sui-option-border-radius, 4px));margin:0 !important;padding:var(--sui-menuitem-padding, 0 16px);width:100%;min-width:var(--sui-menuitem-min-width, 160px);height:var(--sui-menuitem-height, var(--sui-option-height));color:var(--sui-menuitem-foreground-color, var(--sui-control-foreground-color, inherit));background-color:var(--sui-menuitem-background-color, transparent);font-size:var(--sui-menuitem-font-size, var(--sui-option-font-size));font-weight:var(--sui-menuitem-font-weight, var(--sui-option-font-weight, var(--sui-font-weight-normal, normal)));}.menuitem.svelte-179p9pv button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-179p9pv button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-179p9pv button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-179p9pv :hover > [role=menu] {opacity:1;}.menuitem.svelte-179p9pv > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-179p9pv > [role=menu]:hover {opacity:1;}.content.svelte-179p9pv {flex:auto;}.icon-outer.svelte-179p9pv {flex:none;width:24px;height:24px;}`}})))()}function wm(e,t){D(t,!0);let n=q(t,`checked`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=Hs(t,ite);Sm(e,Us(()=>o,{role:`menuitemcheckbox`,get class(){return`sui menu-item-checkbox ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=V();vo(F(n),()=>t.startIcon??T),H(e,n)},children:e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)},endIcon:e=>{var t=V(),r=F(t),i=e=>{nc(e,{name:`check`})};W(r,e=>{n()&&e(i)}),H(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),O()}var ite;function Tm(){return(Tm=o((()=>{Y(),J(),oc(),Cm(),ite=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`])})))()}function Em(e,t){D(t,!0);let n=q(t,`checked`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=Hs(t,ate);Sm(e,Us(()=>o,{role:`menuitemradio`,get class(){return`sui menu-item-radio ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=V();vo(F(n),()=>t.startIcon??T),H(e,n)},children:e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)},endIcon:e=>{var t=V(),r=F(t),i=e=>{nc(e,{name:`check`})};W(r,e=>{n()&&e(i)}),H(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),O()}var ate;function Dm(){return(Dm=o((()=>{Y(),J(),oc(),Cm(),ate=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`])})))()}function ote(e,t){G(e,lte);let n=q(t,`now`,3,0),r=q(t,`min`,3,0),i=q(t,`max`,3,100),a=q(t,`ariaLabel`,3,void 0),o=Hs(t,ste);var s=cte();ds(s,()=>({...o,role:`progressbar`,class:`sui progressbar ${t.class??``}`,"aria-valuenow":n(),"aria-valuemin":r(),"aria-valuemax":i(),"aria-valuetext":t.text,"aria-label":a()}),void 0,void 0,void 0,`svelte-1or5c07`);var c=P(s);let l;E(s),R(()=>l=rs(c,``,l,{width:`${n()??``}%`})),H(e,s)}var ste,cte,lte;function ute(){return(ute=o((()=>{Y(),J(),ste=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`now`,`min`,`max`,`text`,`ariaLabel`]),cte=B(`<div><div role="none" class="svelte-1or5c07"></div></div>`),lte={hash:`svelte-1or5c07`,code:`.progressbar.svelte-1or5c07 {overflow:hidden;border-width:var(--sui-progressbar-border-width, 1px);border-style:var(--sui-progressbar-border-style, solid);border-color:var(--sui-progressbar-border-color, var(--sui-control-border-color));border-radius:var(--sui-progressbar-border-radius, 16px);width:var(--sui-progressbar-width, 240px);height:var(--sui-progressbar-height, 10px);background-color:var(--sui-progressbar-background-color, var(--sui-secondary-background-color));}.progressbar.svelte-1or5c07 div:where(.svelte-1or5c07) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}`}})))()}function dte(e,t){D(t,!0),G(e,mte);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`orientation`,3,`horizontal`),c=q(t,`ariaLabel`,3,void 0),l=Hs(t,fte);var u=pte(),d=e=>{t.onChange?.(e)};ds(u,()=>({...l,role:`radiogroup`,class:`sui radio-group ${t.class??``} ${s()??``}`,tabindex:`-1`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-orientation":s(),"aria-label":c(),onChange:d}),void 0,void 0,void 0,`svelte-1oox2zx`);var f=P(u);vo(P(f),()=>t.children??T),E(f),E(u),Ho(u,Rf),R(()=>f.inert=r()),H(e,u),O()}var fte,pte,mte;function Om(){return(Om=o((()=>{Y(),J(),zf(),fte=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`orientation`,`ariaLabel`,`children`,`onChange`]),pte=B(`<div><div role="none" class="inner svelte-1oox2zx"><!></div></div>`),mte={hash:`svelte-1oox2zx`,code:`.radio-group.svelte-1oox2zx {display:inline-flex;}.radio-group.svelte-1oox2zx:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-1oox2zx {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-1oox2zx {gap:4px;flex-direction:column;}
|
|
1947
|
+
@media (pointer: coarse) {.radio-group.vertical.svelte-1oox2zx {gap:8px;}
|
|
1948
|
+
}.radio-group.svelte-1oox2zx [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-1oox2zx [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-1oox2zx [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-1oox2zx {display:contents;}`}})))()}function km(e,t){let n=Oa();D(t,!0),G(e,vte);let r=q(t,`checked`,7,!1),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,3,void 0),l=q(t,`label`,3,void 0),u=q(t,`group`,15),d=Hs(t,hte),f=M(void 0);L(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=_te(),m=e=>{e.target.matches(`button`)||z(f)?.click()};ds(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[ms]:{disabled:a()}}),void 0,void 0,void 0,`svelte-1h4yg0z`);var h=P(p);$d(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(f)},set element(e){N(f,e,!0)}});var g=I(h,2),_=e=>{var r=gte(),i=P(r),a=e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)},o=e=>{var t=Da();R(()=>U(t,l())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),E(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(g,e=>{(t.children||l())&&e(_)}),E(p),H(e,p),O()}var hte,gte,_te,vte;function Am(){return(Am=o((()=>{Y(),J(),of(),hte=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),gte=B(`<label class="svelte-1h4yg0z"><!></label>`),_te=B(`<span><!> <!></span>`),vte={hash:`svelte-1h4yg0z`,code:`.radio.svelte-1h4yg0z {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.radio.svelte-1h4yg0z :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-1h4yg0z :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-1h4yg0z :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-1h4yg0z :active button {background-color:var(--sui-active-background-color);}.radio.svelte-1h4yg0z :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-1h4yg0z button {flex:none;justify-content:center;overflow:hidden;margin:0 !important;border-width:1.5px;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.radio.svelte-1h4yg0z button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-1h4yg0z button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-1h4yg0z button[aria-checked=true]::before {opacity:1;}.radio.svelte-1h4yg0z label:where(.svelte-1h4yg0z) {cursor:inherit;}`}})))()}function yte(e,t){D(t,!0),G(e,Cte);let n=q(t,`disabled`,3,!1),r=q(t,`showHandleBar`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=Hs(t,bte),o=Pt(`paneGroup`);if(!o)throw Error(`<ResizableHandle> must be used inside a <ResizablePaneGroup>`);let s=o.registerHandle(),c=j(()=>o.direction===`horizontal`),l=j(()=>o.sizes),u=j(()=>z(l)[s]??0),d=j(()=>o.getPaneConstraints(s)),f=j(()=>Math.max(z(d).minSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).maxSize),0))),p=j(()=>Math.min(z(d).maxSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).minSize),0))),m=M(void 0),h=M(!1),g=M(0),_=M(0),v=M(!1),y=0,b=()=>{let e=z(m)?.closest(`.resizable-pane-group`);return e?z(c)?e.clientWidth:e.clientHeight:0},x=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!z(h)||i!==z(_))return;e.preventDefault(),e.stopPropagation();let a=z(c)?t:r,l=a-z(g);if(!y)return;let u=l/y*100;z(c)&&Ru()&&(u=-u),N(g,a,!0),o.resize(s,u)},S=e=>{let{pointerId:n}=e;!z(h)||n!==z(_)||(z(m)?.releasePointerCapture(n),N(h,!1),N(g,0),N(_,0),t.onResizeEnd?.(),document.removeEventListener(`pointermove`,x),document.removeEventListener(`pointerup`,S),document.removeEventListener(`pointercancel`,S))},C=e=>{if(n())return;e.preventDefault(),e.stopPropagation();let{screenX:r,screenY:i,pointerId:a}=e;N(h,!0),N(g,z(c)?r:i,!0),N(_,a,!0),y=b(),z(m)?.setPointerCapture(a),t.onResizeStart?.(),document.addEventListener(`pointermove`,x),document.addEventListener(`pointerup`,S),document.addEventListener(`pointercancel`,S)},w=e=>{if(n())return;let{key:r,shiftKey:i}=e,a=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),o.toggleCollapse(s);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),o.resize(s,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),o.resize(s,100);return}if(z(c)){let e=Ru();if(r===`ArrowLeft`)l=e?a:-a;else if(r===`ArrowRight`)l=e?-a:a;else return}else if(r===`ArrowUp`)l=-a;else if(r===`ArrowDown`)l=a;else return;e.preventDefault(),e.stopPropagation(),z(v)||(N(v,!0),t.onResizeStart?.()),o.resize(s,l)},ee=()=>{z(v)&&(N(v,!1),t.onResizeEnd?.())};var te=Ste();ds(te,e=>({...a,role:`separator`,tabindex:n()?-1:0,"aria-orientation":z(c)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":z(f),"aria-valuemax":z(p),"aria-controls":o.paneDefs[s]?.id,"aria-disabled":n()||void 0,"aria-label":i(),class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:C,onkeydown:w,onblur:ee,[ms]:{horizontal:z(c),vertical:!z(c),disabled:n(),dragging:z(h)}}),[()=>Math.round(z(u))],void 0,void 0,`svelte-1qps4f5`);var ne=P(te),re=e=>{var n=V();vo(F(n),()=>t.children),H(e,n)},ie=e=>{H(e,xte())};W(ne,e=>{t.children?e(re):r()&&e(ie,1)}),E(te),Fs(te,e=>N(m,e),()=>z(m)),H(e,te),O()}var bte,xte,Ste,Cte;function jm(){return(jm=o((()=>{Y(),J(),Z(),tc(),bte=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`ariaLabel`,`children`,`onResizeStart`,`onResizeEnd`]),xte=B(`<div role="none" class="handle-bar svelte-1qps4f5"></div>`),Ste=B(`<div><!></div>`),Cte={hash:`svelte-1qps4f5`,code:`.resizable-handle.svelte-1qps4f5 {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-1qps4f5:focus-visible, .resizable-handle.svelte-1qps4f5:hover, .resizable-handle.dragging.svelte-1qps4f5 {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent-light);}.resizable-handle.svelte-1qps4f5:focus-visible .handle-bar:where(.svelte-1qps4f5), .resizable-handle.svelte-1qps4f5:hover .handle-bar:where(.svelte-1qps4f5), .resizable-handle.dragging.svelte-1qps4f5 .handle-bar:where(.svelte-1qps4f5) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-1qps4f5 {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-1qps4f5 {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-1qps4f5 .handle-bar:where(.svelte-1qps4f5) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-1qps4f5 {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-1qps4f5 .handle-bar:where(.svelte-1qps4f5) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-1qps4f5 .handle-bar:where(.svelte-1qps4f5) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`}})))()}function wte(e,t){D(t,!0),G(e,Dte);let n=q(t,`direction`,3,`horizontal`),r=Hs(t,Tte),i=Dr([]),a=M(void 0),o=Dr([]),s=Dr([]),c=0,l=()=>z(a)?n()===`horizontal`?z(a).clientWidth:z(a).clientHeight:0,u=(e,t)=>{if(typeof e==`number`)return e;if(!e||typeof e!=`string`)return t;let n=e.trim(),r=n.match(/^(-?\d+(?:\.\d+)?)%$/);if(r)return Number(r[1]);let i=l();if(!i)return t;let a=n.match(/^(-?\d+(?:\.\d+)?)px$/i);if(a)return Number(a[1])/i*100;let o=n.match(/^(-?\d+(?:\.\d+)?)(dvw|vw|dvh|vh)$/i);if(o){let e=Number(o[1]),t=o[2].toLowerCase().endsWith(`w`)?window.innerWidth:window.innerHeight;return e/100*t/i*100}return t},d=e=>{let t=i[e];if(!t)return{minSize:0,maxSize:100};let n=Math.max(0,u(t.minSize,0)),r=Math.min(100,u(t.maxSize,100));return{minSize:n,maxSize:Math.max(n,r)}},f=()=>{if(!i.length)return;let e=i.map(e=>e.defaultSize===void 0?NaN:u(e.defaultSize,NaN)),t=e.filter(e=>!Number.isNaN(e)).reduce((e,t)=>e+t,0),n=e.filter(e=>Number.isNaN(e)).length,r=Math.max(0,100-t),a=n>0?r/n:0,s=e.map(e=>Number.isNaN(e)?a:e);o.splice(0,o.length,...s)},p=(e,n)=>{let r=e,i=e+1;if(r<0||i>=o.length)return;let{minSize:a,maxSize:s}=d(r),{minSize:c,maxSize:l}=d(i),u=o[r],f=o[i],p=Math.min(s-u,f-c),m=Math.min(u-a,l-f),h=n>0?Math.min(n,p):-Math.min(-n,m);o[r]=u+h,o[i]=f-h,t.onResize?.({sizes:o.map(e=>Number(e.toFixed(1)))})};Ft(`paneGroup`,{get direction(){return n()},sizes:o,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=c;return c+=1,e},resize:p,toggleCollapse:e=>{let{minSize:t}=d(e);if(s[e]!==void 0){let t=s[e]-o[e];s[e]=void 0,p(e,t)}else s[e]=o[e],p(e,-(o[e]-t))},getPaneConstraints:d,paneDefs:i}),L(()=>{i.length&&!o.length&&f()});var m=Ete();ds(m,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-1ufibuj`),vo(P(m),()=>t.children??T),E(m),Fs(m,e=>N(a,e),()=>z(a)),H(e,m),O()}var Tte,Ete,Dte;function Mm(){return(Mm=o((()=>{Y(),J(),tc(),Tte=new Set([`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),Ete=B(`<div><!></div>`),Dte={hash:`svelte-1ufibuj`,code:`.resizable-pane-group.svelte-1ufibuj {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-1ufibuj {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-1ufibuj {flex-direction:column;width:100%;height:100%;}`}})))()}function Nm(e,t){let n=Oa();D(t,!0);let r=q(t,`defaultSize`,3,void 0),i=q(t,`minSize`,3,0),a=q(t,`maxSize`,3,100),o=Hs(t,Ote),s=Pt(`paneGroup`);if(!s)throw Error(`<ResizablePane> must be used inside a <ResizablePaneGroup>`);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=j(()=>s.direction),u=j(()=>s.sizes[c]),d=j(()=>z(u)===void 0?typeof r()==`number`?`${r()}%`:r()??`0%`:`${z(u)}%`);L(()=>{z(u)!==void 0&&Li(()=>t.onResize?.({size:Number(z(u).toFixed(1))}))});var f=kte();ds(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[hs]:{"flex-basis":z(d),"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":z(l)===`horizontal`?`auto`:void 0,"overflow-y":z(l)===`vertical`?`auto`:void 0}})),vo(P(f),()=>t.children??T),E(f),H(e,f),O()}var Ote,kte;function Pm(){return(Pm=o((()=>{Y(),J(),tc(),Ote=new Set([`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),kte=B(`<div><!></div>`)})))()}function Fm(e,t){D(t,!0),G(e,Mte);let n=q(t,`itemChunkSize`,3,25),r=M(Dr(n())),i=M(void 0),a=j(()=>t.items.length>z(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(z(a)?N(r,z(r)+n()):o.disconnect())});L(()=>{z(i)&&o.observe(z(i))});var s=jte(),c=F(s);ao(c,19,()=>t.items.slice(0,z(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=V();vo(F(i),()=>t.renderItem,()=>z(n),()=>z(r)),H(e,i)});var l=I(c,2),u=e=>{var t=Ate();Fs(t,e=>N(i,e),()=>z(i)),H(e,t)};W(l,e=>{z(a)&&e(u)}),H(e,s),O()}var Ate,jte,Mte;function Im(){return(Im=o((()=>{Y(),J(),Ate=B(`<div role="none" class="spinner svelte-pviizw"></div>`),jte=B(`<!> <!>`,1),Mte={hash:`svelte-pviizw`,code:`.spinner.svelte-pviizw {height:1px;}`}})))()}function Lm(e,t){let n=Oa();D(t,!0),G(e,zm);let r=q(t,`value`,15),i=q(t,`flex`,3,!1),a=q(t,`hidden`,3,!1),o=q(t,`disabled`,3,!1),s=q(t,`readonly`,3,!1),c=q(t,`required`,3,!1),l=q(t,`invalid`,3,!1),u=Hs(t,Nte),d=M(void 0);var f={focus:()=>{z(d)?.focus()}},p=Rm();let m;var h=P(p),g=P(h),_=e=>{var n=V();vo(F(n),()=>t.searchIcon),H(e,n)},v=e=>{nc(e,{name:`search`})};W(g,e=>{t.searchIcon?e(_):e(v,-1)}),E(h);var y=I(h,2);Wp(y,Us({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return z(d)},set element(e){N(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=I(y,2),x=e=>{{let i=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.closeIcon),H(e,n)},a=e=>{nc(e,{name:`close`})};W(r,e=>{t.closeIcon?e(i):e(a,-1)}),H(e,n)},a=j(()=>X(`_sui.clear`));$d(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{r(``),z(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return W(b,e=>{r()&&e(x)}),E(p),R(()=>{K(p,`role`,a()?void 0:`none`),m=es(p,1,`sui search-bar ${t.class??``}`,`svelte-1igq1jv`,m,{flex:i(),disabled:o(),readonly:s()}),K(p,`hidden`,a()),K(p,`aria-hidden`,a())}),H(e,p),O(f)}var Nte,Rm,zm;function Bm(){return(Bm=o((()=>{Y(),J(),Z(),of(),oc(),Yp(),Nte=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),Rm=B(`<div><span role="none" class="svelte-1igq1jv"><!></span> <!> <!></div>`),zm={hash:`svelte-1igq1jv`,code:`.search-bar.svelte-1igq1jv {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.search-bar.flex.svelte-1igq1jv:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-1igq1jv > span:where(.svelte-1igq1jv) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-1igq1jv .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-1igq1jv > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-1igq1jv .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-1igq1jv .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-1igq1jv input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`}})))()}function Pte(e,t){let n=Oa();D(t,!0),G(e,Km);let r=q(t,`value`,15),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=q(t,`editable`,3,!0),u=q(t,`position`,3,`bottom-left`),d=q(t,`filterThreshold`,3,5),f=q(t,`ariaLabel`,3,void 0),p=Hs(t,Vm),m=M(!1),h=M(void 0),g=M(void 0),_=M(void 0),v=M(void 0),y=M(void 0),b=M(void 0),x=M(``),S=M(!1),C=M(``),w=M(0),ee=j(()=>!z(C)||z(w)>0),te=j(()=>z(h)??z(g)),ne=Df(),re=()=>{let e=ne.find(r());e&&(N(x,e.label,!0),ne.selectOnly(r()))},ie=e=>{let n=kf(e);r(n.value),re(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))},ae=()=>z(y)?.querySelector(`[role="listbox"]`),oe=()=>{let e=ae(),t=e?.querySelector(`[role="option"][aria-selected="true"]`);!e||!t||(t.classList.add(`focused`),e.setAttribute(`aria-activedescendant`,t.id),t.scrollIntoView(!0))};L(()=>{ne.expanded=z(m)}),L(()=>{if(!z(m))return;let e=globalThis.setTimeout(oe,150);return()=>{globalThis.clearTimeout(e),ae()?.removeAttribute(`aria-activedescendant`)}}),L(()=>{if(!z(y))return;let e=z(m)?z(b):z(v);e&&z(y).parentElement!==e&&e.append(z(y))}),Qs(()=>{let e=ne.selectedEntry;e&&(r(e.value),N(x,e.label,!0),t.onChange?.(new CustomEvent(`Change`,{detail:{target:void 0,type:e.type,name:e.name,label:e.label,value:e.value}})))}),L(()=>{r(),re()});var se=Gm(),ce=F(se);ds(ce,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:i(),[ms]:{editable:l()}}),void 0,void 0,void 0,`svelte-t39ir6`);var le=P(ce),ue=e=>{var t=Hm();ds(t,()=>({...p,role:`combobox`,id:n,tabindex:a()?-1:0,"aria-expanded":z(m),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-haspopup":`listbox`,"aria-label":f(),[ms]:{selected:r()!==void 0}}),void 0,void 0,void 0,`svelte-t39ir6`);var l=P(t);dd(P(l),{children:(e,t)=>{mt();var n=Da();R(e=>U(n,e),[()=>r()===void 0?X(`_sui.combobox.select_an_option`):z(x)]),H(e,n)},$$slots:{default:!0}}),E(l),E(t),Fs(t,e=>N(h,e),()=>z(h)),H(e,t)},de=e=>{{let t=j(()=>r()===void 0?``:String(r()));Wp(e,Us(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return z(t)},get hidden(){return i()},get disabled(){return a()},get readonly(){return o()},get required(){return s()},get invalid(){return c()},get"aria-expanded"(){return z(m)},"aria-haspopup":`listbox`,get"aria-label"(){return f()},get element(){return z(g)},set element(e){N(g,e,!0)}}))}};W(le,e=>{l()?e(de,-1):e(ue)});var fe=I(le,2);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.chevronIcon),H(e,n)},a=e=>{nc(e,{name:`expand_more`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},r=j(()=>!l()||o()||a()?-1:0),s=j(()=>z(m)?X(`_sui.collapse`):X(`_sui.expand`)),c=j(()=>z(m)?`${n}-popup`:void 0);$d(fe,{variant:`ghost`,iconic:!0,get hidden(){return i()},get disabled(){return a()},get tabindex(){return z(r)},get"aria-label"(){return z(s)},get"aria-controls"(){return z(c)},get"aria-expanded"(){return z(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!a()&&!o()&&N(m,!z(m))},startIcon:e,$$slots:{startIcon:!0}})}E(ce);var pe=I(ce,2),me=P(pe);mm(P(me),{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return z(C)},onclick:e=>{e.target.matches(`[role="option"]`)&&ie(e.target)},onFilter:e=>{N(w,e.detail.matched,!0)},children:(e,n)=>{var r=V();vo(F(r),()=>t.children??T),H(e,r)},$$slots:{default:!0}}),E(me),Fs(me,e=>N(y,e),()=>z(y)),E(pe),Fs(pe,e=>N(v,e),()=>z(v)),Jd(I(pe,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return z(te)},get position(){return u()},touchOptimized:!0,onOpen:()=>{N(S,d()!==-1&&ne.count>d(),!0),N(C,``)},get content(){return z(_)},set content(e){N(_,e,!0)},get open(){return z(m)},set open(e){N(m,e,!0)},children:(e,t)=>{var r=Wm(),i=P(r),a=e=>{{let t=j(()=>X(`_sui.combobox.filter_options`));Lm(e,{flex:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),z(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return z(C)},set value(e){N(C,e,!0)}})}};W(i,e=>{z(S)&&e(a)});var o=I(i,2);Fs(o,e=>N(b,e),()=>z(b));var s=I(o,2),c=e=>{var t=Um(),n=P(t,!0);E(t),R(e=>U(n,e),[()=>X(`_sui.combobox.no_matching_options`)]),H(e,t)};W(s,e=>{z(ee)||e(c)}),E(r),H(e,r)},$$slots:{default:!0}}),H(e,se),O()}var Vm,Hm,Um,Wm,Gm,Km;function qm(){return(qm=o((()=>{Y(),J(),Z(),tc(),Af(),of(),oc(),hm(),Bm(),Yp(),md(),Qd(),Vm=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`ariaLabel`,`children`,`chevronIcon`,`onChange`]),Hm=B(`<div><div role="none" class="label svelte-t39ir6"><!></div></div>`),Um=B(`<div role="alert" class="no-options svelte-t39ir6" aria-live="assertive"> </div>`),Wm=B(`<div role="none" class="combobox-inner svelte-t39ir6"><!> <div role="none" class="listbox-slot svelte-t39ir6"></div> <!></div>`),Gm=B(`<div><!> <!></div> <div role="none" class="idle-host" hidden=""><div role="none" class="option-host svelte-t39ir6"><!></div></div> <!>`,1),Km={hash:`svelte-t39ir6`,code:`:is(.option-host.svelte-t39ir6, .listbox-slot.svelte-t39ir6) {display:contents;}.combobox.svelte-t39ir6 {margin:var(--sui-focus-ring-width);display:flex;align-items:center;position:relative;min-width:var(--sui-combobox-min-width, calc(var(--sui-option-height) * 5));}.combobox.svelte-t39ir6 div[role=combobox]:where(.svelte-t39ir6) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-t39ir6 div[role=combobox]:where(.svelte-t39ir6):not(.selected) {font-style:italic;}.combobox.svelte-t39ir6 div[role=combobox]:where(.svelte-t39ir6):is(:where(.svelte-t39ir6):hover, :where(.svelte-t39ir6):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-t39ir6 div[role=combobox][aria-invalid=true]:where(.svelte-t39ir6) {border-color:var(--sui-error-border-color);}.combobox.svelte-t39ir6 div[role=combobox]:where(.svelte-t39ir6) .label:where(.svelte-t39ir6) {width:100%;}.combobox.svelte-t39ir6 .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-t39ir6 > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-t39ir6 > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-t39ir6 > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-t39ir6 :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-t39ir6 .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-t39ir6 input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-t39ir6 + [role=listbox] {position:fixed;z-index:100;border-radius:var(--sui-control-medium-border-radius);box-shadow:0 8px 16px var(--sui-popup-shadow-color);overflow:auto;background-color:var(--sui-secondary-background-color);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px);
|
|
1949
|
+
/* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-t39ir6 + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-t39ir6 {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-t39ir6 .sui.search-bar {flex:none;}.combobox-inner.svelte-t39ir6 .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-t39ir6 .no-options:where(.svelte-t39ir6) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}})))()}function Fte(e){let t=e-1;return t*t*t+1}function Ite(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=Fte}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=Lte(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function Lte(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}function Jm(){return(Jm=o((()=>{})))()}function Ym(e,t){D(t,!0);let n=q(t,`value`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`readonly`,3,!1),o=q(t,`required`,3,!1),s=q(t,`invalid`,3,!1),c=Hs(t,Xm);Pte(e,Us(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=V();vo(F(r),()=>t.children??T),H(e,r)},$$slots:{default:!0}})),O()}var Xm;function Zm(){return(Zm=o((()=>{Y(),J(),qm(),Xm=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`])})))()}function Rte(e,t){D(t,!0),G(e,th);let n=q(t,`values`,31,()=>Dr([])),r=q(t,`max`,3,void 0),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=Hs(t,Qm),u=j(()=>new Map(t.options.map(e=>[e.value,e]))),d=j(()=>new Set(n())),f=j(()=>Ru()?`ArrowRight`:`ArrowLeft`),p=j(()=>Ru()?`ArrowLeft`:`ArrowRight`),m=M(void 0),h=M(void 0),g=M(void 0),_=M(void 0),v=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},y=async(e,t)=>{v(e,t),await Pi(),(z(m)?.querySelectorAll(`.label[tabindex]`)?.[t])?.focus()};var b=eh();let x;var S=P(b);ao(S,30,n,e=>e,(e,r,i)=>{let s=j(()=>z(u).get(r)),c=j(()=>z(s)?.label||z(s)?.value||r);var l=$m();let d;var m=P(l),h=P(m,!0);E(m);var v=I(m,2),b=e=>{{let i=e=>{nc(e,{name:`close`})},s=j(()=>a()||o()),l=j(()=>X(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));$d(e,{iconic:!0,size:`small`,get disabled(){return z(s)},get"aria-label"(){return z(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};W(v,e=>{z(s)&&e(b)}),E(l),R(()=>{K(l,`draggable`,!a()&&!o()),d=es(l,1,`svelte-1i1i16n`,null,d,{"drag-source":z(g)===z(i),"drop-before":z(_)===z(i)&&z(g)!==z(i)&&z(g)!==z(i)-1,"drop-after":z(_)===n().length&&z(i)===n().length-1&&z(g)!==n().length-1}),K(m,`tabindex`,a()||o()?void 0:0),U(h,z(c))}),pa(`dragstart`,l,e=>{N(g,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),pa(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect(),n=e.clientX<t.left+t.width/2;N(_,n===Ru()?z(i)+1:z(i),!0)}),pa(`drop`,l,async e=>{e.preventDefault();let t=z(g),n=z(_);N(g,void 0),N(_,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await y(t,n>t?n-1:n)}),pa(`dragend`,l,()=>{N(g,void 0),N(_,void 0)}),ma(`keydown`,m,async e=>{let{key:t}=e,r=t===z(f)&&z(i)>0?z(i)-1:t===z(p)&&z(i)<n().length-1?z(i)+1:t===`Home`&&z(i)>0?0:t===`End`&&z(i)<n().length-1?n().length-1:-1;r!==-1&&(e.preventDefault(),await y(z(i),r))}),jo(l,()=>Ite,()=>({duration:200})),H(e,l)}),E(S);var C=I(S,2),w=e=>{{let r=j(()=>a()||o());Ym(e,Us(()=>l,{get disabled(){return z(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{z(h)&&(n([...n(),z(h)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:z(h)}})),N(h,void 0))},get value(){return z(h)},set value(e){N(h,e,!0)},children:(e,n)=>{var r=V();ao(F(r),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let n=()=>z(t).label,r=()=>z(t).value,i=()=>z(t).searchValue;var a=V(),o=F(a),s=e=>{vm(e,{get label(){return n()},get value(){return r()},get searchValue(){return i()}})},c=j(()=>!z(d).has(r()));W(o,e=>{z(c)&&e(s)}),H(e,a)}),H(e,r)},$$slots:{default:!0}}))}};W(C,e=>{(typeof r()!=`number`||n().length<r())&&n().length<t.options.length&&e(w)}),E(b),Fs(b,e=>N(m,e),()=>z(m)),R(e=>{x=es(b,1,`sui select-tags ${t.class??``}`,`svelte-1i1i16n`,x,{disabled:a()||o()}),K(b,`hidden`,i()),K(S,`aria-label`,e)},[()=>X(`_sui.select_tags.selected_options`)]),H(e,b),O()}var Qm,$m,eh,th;function nh(){return(nh=o((()=>{Y(),J(),Z(),tc(),Jm(),of(),oc(),ym(),Zm(),Qm=new Set([`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),$m=B(`<span role="none"><span class="label svelte-1i1i16n" role="option" aria-selected="true"> </span> <!></span>`),eh=B(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-1i1i16n"></span> <!></div>`),th={hash:`svelte-1i1i16n`,code:`.select-tags.svelte-1i1i16n {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-1i1i16n {pointer-events:none;}.select-tags.disabled.svelte-1i1i16n > :where(.svelte-1i1i16n) {opacity:0.5;}.select-tags.svelte-1i1i16n span[role=listbox]:where(.svelte-1i1i16n) {display:contents;}.select-tags.svelte-1i1i16n span[draggable]:where(.svelte-1i1i16n) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-1i1i16n span[draggable]:where(.svelte-1i1i16n):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.select-tags.svelte-1i1i16n span[draggable].drag-source:where(.svelte-1i1i16n) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-1i1i16n span[draggable].drop-before:where(.svelte-1i1i16n)::before, .select-tags.svelte-1i1i16n span[draggable].drop-after:where(.svelte-1i1i16n)::after {content:"";position:absolute;top:0;bottom:0;margin-left:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-1i1i16n span[draggable].drop-before:where(.svelte-1i1i16n)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1i1i16n span[draggable].drop-after:where(.svelte-1i1i16n)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1i1i16n span[draggable]:where(.svelte-1i1i16n) .label:where(.svelte-1i1i16n) {outline:none;}.select-tags.svelte-1i1i16n span[draggable]:where(.svelte-1i1i16n) button {outline-offset:-2px;}.select-tags.svelte-1i1i16n span[draggable]:where(.svelte-1i1i16n) .icon {font-size:var(--sui-font-size-large);}`},ha([`keydown`])})))()}function zte(e,t){D(t,!0),G(e,sh);let n=q(t,`value`,15,0),r=q(t,`min`,3,0),i=q(t,`max`,3,100),a=q(t,`sliderLabel`,3,``),o=q(t,`values`,15,void 0),s=q(t,`sliderLabels`,3,void 0),c=q(t,`step`,3,1),l=q(t,`optionLabels`,19,()=>[]),u=q(t,`hidden`,3,!1),d=q(t,`disabled`,3,!1),f=q(t,`readonly`,3,!1),p=q(t,`invalid`,3,!1),m=Hs(t,rh),h=j(()=>Array.isArray(o())),g=M(void 0),_=M(0),v=M(Dr([])),y=M(Dr([])),b=M(0),x=M(0),S=Dr([0,0]),C=M(!1),w=M(0),ee=M(0),te=e=>{let t=Math.min(z(_),Math.max(0,Ru()?z(_)-e:e)),r=z(v).findLastIndex(e=>e<=t),i=z(v).findIndex(e=>t<=e),a;a=r===-1?i:i===-1||Math.abs(z(v)[r]-t)<Math.abs(z(v)[i]-t)?r:i,!(S[z(ee)]===z(v)[a]||z(h)&&(z(ee)===0&&S[1]<=z(v)[a]||z(ee)===1&&S[0]>=z(v)[a]))&&(z(h)?(o(o()[z(ee)]=z(y)[a],!0),o([...o()])):n(z(y)[a]))},ne=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=z(h)?o()[t]:n(),g=-1,_=Ru(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=z(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=z(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(z(h)&&(t===0&&S[1]<=z(v)[g]||t===1&&S[0]>=z(v)[g]))return;z(h)?(o(o()[t]=z(y)[g],!0),o([...o()])):n(z(y)[g])}},re=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!z(C)||n!==z(w))return;e.preventDefault(),e.stopPropagation();let r=t-z(x),i=z(b)+r;te(i)},ie=e=>{let{pointerId:t,target:n}=e;if(d()||f()||!z(C)||t!==z(w))return;e.stopPropagation();let r=n;if(r.matches(`.base-bar, .slider-bar`)){let t=z(g).getBoundingClientRect(),n=e.clientX-t.left;te(n)}r.releasePointerCapture(t),N(C,!1),N(b,0),N(x,0),N(w,0),N(ee,0),document.removeEventListener(`pointermove`,re),document.removeEventListener(`pointerup`,ie),document.removeEventListener(`pointercancel`,ie)},ae=(e,t=0)=>{if(d()||f())return;e.preventDefault(),e.stopPropagation(),N(C,!0);let{clientX:n,screenX:r,pointerId:i,target:a}=e,o=a,s=z(g).getBoundingClientRect();N(b,n-s.left),N(x,r,!0),N(w,i,!0),N(ee,t,!0),o.setPointerCapture(i),document.addEventListener(`pointermove`,re),document.addEventListener(`pointerup`,ie),document.addEventListener(`pointercancel`,ie)},oe=()=>{if(z(h)){let[e,n]=o();S[0]=z(v)[z(y).indexOf(e)],S[1]=z(v)[z(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=z(v)[z(y).indexOf(n())],t.onChange?.({value:n()})},se=()=>{if(!z(g))return;N(_,z(g).clientWidth,!0);let e=(i()-r())/c()+1,t=z(_)/(e-1),n=Array.from({length:e});N(y,n.map((e,t)=>t*c()+r(),10),!0),N(v,n.map((e,n)=>n*t),!0),oe()};Qs(()=>{let e=new ResizeObserver(()=>se()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(z(g)),t.addEventListener(`change`,se),se(),()=>{e.disconnect(),t.removeEventListener(`change`,se)}}),L(()=>{n(),o(),oe()});var ce=oh();pa(`click`,Br.body,()=>{N(C,!1)}),ds(ce,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[ms]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-duoztf`);var le=P(ce),T=I(P(le),2);let ue;var de=I(T,2);let fe;var pe=I(de,2),me=e=>{var t=ih();let n;R(()=>{K(t,`tabindex`,d()?-1:0),K(t,`aria-label`,s()?.[1]),K(t,`aria-hidden`,u()),K(t,`aria-disabled`,d()),K(t,`aria-readonly`,f()),K(t,`aria-invalid`,p()),K(t,`aria-valuemin`,r()),K(t,`aria-valuemax`,i()),K(t,`aria-valuenow`,o()?.[1]),n=rs(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),ma(`pointerdown`,t,e=>ae(e,1)),ma(`keydown`,t,e=>ne(e,1)),H(e,t)};W(pe,e=>{z(h)&&e(me)});var he=I(pe,2),ge=e=>{var t=V();ao(F(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=ah();let i;var a=P(r,!0);E(r),R(()=>{i=rs(r,``,i,{"inset-inline-start":`${z(_)/(l().length-1)*z(n)}px`}),U(a,z(t))}),H(e,r)}),H(e,t)};W(he,e=>{l().length&&e(ge)}),E(le),Fs(le,e=>N(g,e),()=>z(g)),E(ce),R(()=>{ue=rs(T,``,ue,{"inset-inline-start":`${(z(h)?S[0]:0)??``}px`,width:`${(z(h)?S[1]-S[0]:S[0])??``}px`}),K(de,`tabindex`,d()?-1:0),K(de,`aria-label`,z(h)?s()?.[0]:a()),K(de,`aria-hidden`,u()),K(de,`aria-disabled`,d()),K(de,`aria-readonly`,f()),K(de,`aria-invalid`,p()),K(de,`aria-valuemin`,r()),K(de,`aria-valuemax`,i()),K(de,`aria-valuenow`,z(h)?o()?.[0]:n()),fe=rs(de,``,fe,{"inset-inline-start":`${S[0]??``}px`})}),ma(`pointerdown`,le,e=>ae(e)),ma(`pointerdown`,de,e=>ae(e,0)),ma(`keydown`,de,e=>ne(e,0)),H(e,ce),O()}var rh,ih,ah,oh,sh;function ch(){return(ch=o((()=>{Y(),J(),Z(),tc(),rh=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),ih=B(`<div role="slider" class="svelte-duoztf"></div>`),ah=B(`<span role="none" class="label svelte-duoztf"> </span>`),oh=B(`<div><div role="none" class="base svelte-duoztf"><div role="none" class="base-bar svelte-duoztf"></div> <div class="slider-bar svelte-duoztf"></div> <div role="slider" class="svelte-duoztf"></div> <!> <!></div></div>`),sh={hash:`svelte-duoztf`,code:`.slider.svelte-duoztf {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-duoztf:hover .base-bar:where(.svelte-duoztf) {background-color:var(--sui-hover-background-color);}.slider.svelte-duoztf:active .base-bar:where(.svelte-duoztf) {background-color:var(--sui-active-background-color);}.base.svelte-duoztf {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-duoztf {border-width:1px;border-style:solid;border-color:var(--sui-control-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-slider-background-color, var(--sui-secondary-background-color));transition:all 200ms;width:100%;height:100%;}.slider-bar.svelte-duoztf {position:absolute;top:0;height:calc(var(--sui-checkbox-height) / 2);border-radius:var(--sui-checkbox-height);background-color:var(--sui-primary-accent-color-light);}.invalid.svelte-duoztf .slider-bar:where(.svelte-duoztf) {background-color:var(--sui-error-border-color);}[role=slider].svelte-duoztf {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-duoztf:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-duoztf:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-duoztf [role=slider]:where(.svelte-duoztf) {border-color:var(--sui-error-border-color);}.label.svelte-duoztf {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-duoztf:dir(ltr) {transform:translateX(-50%);}.label.svelte-duoztf:dir(rtl) {transform:translateX(50%);}`},ha([`pointerdown`,`keydown`])})))()}function lh(e,t){D(t,!0),G(e,fh);let n=q(t,`checked`,15),r=q(t,`label`,3,void 0),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=q(t,`ariaLabel`,3,void 0),u=Hs(t,uh);var d=dh(),f=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};ds(d,()=>({...u,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-label":l(),onclick:f}),void 0,void 0,void 0,`svelte-4si5w1`);var p=I(P(d),2),m=e=>{var t=Da();R(()=>U(t,r())),H(e,t)},h=e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)};W(p,e=>{r()?e(m):e(h,-1)}),E(d),H(e,d),O()}var uh,dh,fh;function ph(){return(ph=o((()=>{Y(),J(),uh=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`onChange`]),dh=B(`<button><span role="none" class="svelte-4si5w1"></span> <!></button>`),fh={hash:`svelte-4si5w1`,code:`button.svelte-4si5w1 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-4si5w1 span:where(.svelte-4si5w1) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-4si5w1 span:where(.svelte-4si5w1) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-4si5w1 span:where(.svelte-4si5w1) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-4si5w1 span:where(.svelte-4si5w1) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-4si5w1 span:where(.svelte-4si5w1) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-4si5w1:focus-visible {outline:0;}button.svelte-4si5w1:focus-visible span:where(.svelte-4si5w1) {outline-color:var(--sui-focus-ring-color);}button[aria-checked=true].svelte-4si5w1 span:where(.svelte-4si5w1) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-4si5w1 span:where(.svelte-4si5w1)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-4si5w1 span:where(.svelte-4si5w1):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-4si5w1 span:where(.svelte-4si5w1):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-4si5w1 {position:relative;width:calc(var(--sui-checkbox-height) * 2);height:var(--sui-checkbox-height);padding:0 2px;display:inline-flex;align-items:center;border-width:1.5px;border-style:solid;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-control-background-color);transition:all 200ms;}span.svelte-4si5w1::before {display:inline-block;width:calc(var(--sui-checkbox-height) - 6px);height:calc(var(--sui-checkbox-height) - 6px);border-radius:var(--sui-checkbox-height);background-color:var(--sui-checkbox-border-color);transition:all 200ms;content:"";}`}})))()}function mh(e,t){G(e,_h);let n=Hs(t,hh);var r=gh();ds(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-yueiy`),vo(P(r),()=>t.children??T),E(r),H(e,r)}var hh,gh,_h;function vh(){return(vh=o((()=>{Y(),J(),hh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),gh=B(`<div><!></div>`),_h={hash:`svelte-yueiy`,code:`.table-cell.svelte-yueiy {display:table-cell;}`}})))()}function Bte(e,t){G(e,xh);let n=Hs(t,yh);var r=bh();ds(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-1n4ezz6`),vo(P(r),()=>t.children??T),E(r),H(e,r)}var yh,bh,xh;function Sh(){return(Sh=o((()=>{Y(),J(),yh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),bh=B(`<div><!></div>`),xh={hash:`svelte-1n4ezz6`,code:`.table-row.svelte-1n4ezz6 {display:table-row;height:var(--sui-primary-row-height);}`}})))()}function Vte(e,t){G(e,Th);let n=q(t,`ariaLabel`,3,void 0),r=Hs(t,Ch);var i=wh();ds(i,()=>({...r,role:`table`,class:`sui table ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-1edl49b`),vo(P(i),()=>t.children??T),E(i),H(e,i)}var Ch,wh,Th;function Eh(){return(Eh=o((()=>{Y(),J(),Ch=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),wh=B(`<div><!></div>`),Th={hash:`svelte-1edl49b`,code:`.table.svelte-1edl49b {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-1edl49b {border-collapse:collapse;}.table.data.svelte-1edl49b :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}})))()}function Hte(e,t){D(t,!0),G(e,kh);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`name`,3,void 0),o=q(t,`ariaLabel`,3,void 0),s=Hs(t,Dh),c=M(void 0),l=M(void 0),u=()=>{globalThis.requestAnimationFrame(()=>{let e=z(c)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;N(l,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else N(l,void 0)})};Qs(()=>{let e=new ResizeObserver(()=>{u()});return e.observe(z(c)),()=>{e.disconnect()}});var d=Oh(),f=()=>{u()},p=e=>{u(),t.onChange?.(e)};ds(d,()=>({...s,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o(),"data-name":a()||void 0,onInitialized:f,onChange:p}),void 0,void 0,void 0,`svelte-1ecfni3`);var m=P(d);vo(P(m),()=>t.children??T),E(m);var h=I(m,2);E(d),Fs(d,e=>N(c,e),()=>z(c)),Ho(d,Rf),R(()=>{m.inert=r(),rs(h,z(l))}),H(e,d),O()}var Dh,Oh,kh;function Ah(){return(Ah=o((()=>{Y(),J(),tc(),zf(),Dh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`ariaLabel`,`children`,`onChange`]),Oh=B(`<div><div role="none" class="inner svelte-1ecfni3"><!></div> <div role="none" class="indicator svelte-1ecfni3"></div></div>`),kh={hash:`svelte-1ecfni3`,code:`.tab-list.svelte-1ecfni3 {flex:none;position:relative;display:flex;align-items:center;margin:var(--sui-tab-list-margin, var(--sui-focus-ring-width));border-color:var(--sui-tab-list-border-color, var(--sui-control-border-color));border-radius:var(--sui-tab-list-border-radius, 0);background-color:var(--sui-tab-list-background-color, transparent);}.tab-list[aria-orientation=horizontal].svelte-1ecfni3 {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-1ecfni3 button {width:var(--sui-horizontal-tab-width, var(--sui-tab-width, auto));height:var(--sui-horizontal-tab-height, var(--sui-tab-height, 100%));justify-content:var(--sui-horizontal-tab-justify-content, center);}.tab-list[aria-orientation=horizontal].svelte-1ecfni3 .indicator:where(.svelte-1ecfni3) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-1ecfni3 {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-1ecfni3 button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-1ecfni3 .indicator:where(.svelte-1ecfni3) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-1ecfni3 button {position:relative;z-index:1;border-color:transparent;margin:0 !important;border-radius:var(--sui-tab-border-radius, 0);font-family:var(--sui-tab-font-family, var(--sui-control-font-family, inherit));font-size:var(--sui-tab-font-size, var(--sui-control-font-size, inherit));font-weight:var(--sui-tab-font-weight, var(--sui-control-font-weight, var(--sui-font-weight-normal, normal)));}.inner.svelte-1ecfni3 {display:contents;}.indicator.svelte-1ecfni3 {position:absolute;z-index:0;inset:auto;border-radius:var(--sui-tab-list-indicator-border-radius, 0);border-color:var(--sui-tab-list-indicator-border-color, var(--sui-primary-accent-color-light));background-color:var(--sui-tab-list-indicator-background-color, transparent);box-shadow:var(--sui-tab-list-indicator-box-shadow, none);pointer-events:none;transition:var(--sui-tab-list-indicator-transition, all 200ms);}`}})))()}function Ute(e,t){G(e,Nh);let n=Hs(t,jh);var r=Mh();ds(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-1loslap`),vo(P(r),()=>t.children??T),E(r),H(e,r)}var jh,Mh,Nh;function Ph(){return(Ph=o((()=>{Y(),J(),jh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Mh=B(`<div><!></div>`),Nh={hash:`svelte-1loslap`,code:`.tab-panel.svelte-1loslap {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-1loslap, .tab-panel.svelte-1loslap:not([aria-hidden]) {display:none;}`}})))()}function Wte(e,t){let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`selected`,3,!1),a=Hs(t,Fh);$d(e,Us(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},startIcon:e=>{var n=V();vo(F(n),()=>t.startIcon??T),H(e,n)},children:e=>{var n=V();vo(F(n),()=>t.children??T),H(e,n)},endIcon:e=>{var n=V();vo(F(n),()=>t.endIcon??T),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var Fh;function Ih(){return(Ih=o((()=>{Y(),J(),of(),Fh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`])})))()}function Lh(e,t){D(t,!0),G(e,Bh);let n=q(t,`show`,15,!1),r=q(t,`id`,3,void 0),i=q(t,`duration`,3,5e3),a=q(t,`position`,7,`auto`),o=Hs(t,Rh),s=M(void 0),c=M(void 0),l=M(void 0),u=M(0);Qs(()=>(N(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),z(c)?z(s)?.remove():(N(c,z(s),!0),z(c)&&(z(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(z(c)),z(c).showPopover&&(z(c).popover=`manual`,z(c).showPopover()))),()=>{z(l)?.remove()})),Qs(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-right`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),L(()=>{z(c)&&z(l)&&z(c).appendChild(z(l))}),L(()=>{r(),n(),i(),Li(()=>{globalThis.clearTimeout(z(u))}),n()&&i()&&N(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=zh(),f=F(d);Fs(f,e=>N(s,e),()=>z(s));var p=I(f,2);ds(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-18xjewb`),vo(P(p),()=>t.children??T),E(p),Fs(p,e=>N(l,e),()=>z(l)),H(e,d),O()}var Rh,zh,Bh;function Vh(){return(Vh=o((()=>{Y(),J(),tc(),Rh=new Set([`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),zh=B(`<div role="none" class="sui toast-base svelte-18xjewb"></div> <div><!></div>`,1),Bh={hash:`svelte-18xjewb`,code:`.toast-base.svelte-18xjewb {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-18xjewb {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-18xjewb {display:block;opacity:0;}.toast.top-left.svelte-18xjewb {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-18xjewb {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-18xjewb:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-18xjewb:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-18xjewb {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-18xjewb {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-18xjewb {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-18xjewb:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-18xjewb:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-18xjewb {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`}})))()}function Hh(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Uh(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Wh(){return ny()._blockCursorElement}function Gte(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}function Gh(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}function Kh(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&Hh(225),n.reverse()}function qh(e,t=1e3){return e instanceof $b?e.clone():e.size<t?new Map(e):new $b().init(new Map(e),void 0,e.size)}function Jh(e,t,n,r,i,a){if($(e)){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&(($(o)||by(o)&&o.__slots!==null)&&Jh(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}for(let o of by(e)&&e.__slots!==null?e.__slots.values():[]){let e=r.get(o);e!==void 0&&xy(e)&&e.__slotHost===t&&(($(e)||by(e)&&e.__slots!==null)&&Jh(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o))}}function Kte(e){tx=e.timeStamp}function Yh(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&$_(e,n)!==void 0}function qte(e,t,n){let r=Rv(Ov(n)),i=r&&Gv(r,n._rootElement),a=null,o=null;i!==null&&i.anchorNode===e&&(a=i.anchorOffset,o=i.focusOffset);let s=e.nodeValue;s!==null&&dv(t,s,a,o,!1)}function Jte(e,t,n){if(Q(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return G_(t)&&n.isAttached()}function Yte(e,t,n){for(let r=e;r&&!fy(r);r=Sv(r)){let e=$_(r,t);if(e!==void 0){let t=Q_(e,n);if(t)return E_(t)||!Xv(r)?void 0:[r,t]}}}function Xh(e,t,n){ex=!0;let r=performance.now()-tx>100;try{T_(e,()=>{let i=o_()||function(e){return e.read(`latest`,()=>{let e=o_();return e===null?null:e.clone()})}(e),a=new Map,o=e._editorState,s=e._blockCursorElement,c=!1,l=``;for(let n=0;n<t.length;n++){let u=t[n],d=u.type,f=u.target,p=Yte(f,e,o);if(!p)continue;let[m,h]=p;if(d===`characterData`)r&&Kg(h)&&G_(f)&&Jte(i,f,h)&&qte(f,h,e);else if(d===`childList`){c=!0;let t=u.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=Wre(r),a=r.parentNode;if(!(a==null||r===s||i!==null||Yh(r,a,e)||e._slotsUsed&&Xv(r)&&r.hasAttribute(`data-lexical-slot`)||fy(r))){if(wb){let e=(Xv(r)?r.innerText:null)||r.nodeValue;e&&(l+=e)}a.removeChild(r)}}let n=u.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(Yh(r,f,e)||s===r)&&(f.appendChild(r),t++)}r!==t&&a.set(m,h)}}}if(a.size>0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let u=n.takeRecords();if(u.length>0){for(let t=0;t<u.length;t++){let n=u[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],a=n.parentNode;a==null||n.nodeName!==`BR`||Yh(n,i,e)||a.removeChild(n)}}n.takeRecords()}i!==null&&(c&&rv(i),wb&&yv(e)&&i.insertRawText(l))})}finally{ex=!1}}function Zh(e){let t=e._observer;t!==null&&Xh(e,t.takeRecords(),t)}function Qh(e){(function(e){tx===0&&Ov(e).addEventListener(`textInput`,Kte,!0)})(e),e._observer=new MutationObserver((t,n)=>{Xh(e,t,n)})}function $h(e,t){return new bie(e,t)}function eg(e,t,n=yie){let r=(n===`latest`?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function tg(e,t,n){let r;if(v_(),typeof n==`function`){let i=e.getLatest(),a=eg(i,t);if(r=n(a),t.isEqual(a,r))return i}else r=n;let i=e.getWritable();return ng(i).updateFromKnown(t,r),i}function Xte(e){let t=new Map,n=new Set;for(let{ownNodeConfig:r}of gy(typeof e==`function`?e:e.replace))if(r&&r.stateConfigs)for(let e of r.stateConfigs){let r;`stateConfig`in e?(r=e.stateConfig,e.flat&&n.add(r.key)):r=e,t.set(r.key,r)}return{flatKeys:n,sharedConfigMap:t}}function ng(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new xie(t,rg(t));return t.__state=n,n}function rg(e){return e.__state?e.__state.sharedNodeState:zre(ny(),e.getType()).sharedNodeState}function ig(e){if(e)for(let t in e)return e}function Zte(e){return e}function ag(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function og(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function sg(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function cg(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||function(e,t){if(e===t)return!0;let n=new Set;return!(e&&ag(n,e,t)||t&&ag(n,t,e)||e&&og(n,e,t)||t&&og(n,t,e))}(c,l))}function lg(e,t){let n=e.mergeWithSibling(t),r=b_()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function ug(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&Kg(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(cg(t,r)){r=lg(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&Kg(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(cg(r,n)){r=lg(r,n);break}break}n.remove()}}else r.remove()}function dg(e){return fg(e.anchor),fg(e.focus),e}function fg(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),Kg(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!$(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}function pg(e,t){return hx.read(()=>{let n=0,r=e;for(let e=0;e<t&&r!==null;e++){let i=mx.get(r);if(i===void 0&&Hh(345,r),$(i)){let a=gx.get(r);if(a!==void 0&&$(a)&&a.__parent!==i.__parent)n+=i.getTextContentSize();else{let e=_x.get(r),t=e&&e.__lexicalTextContent;typeof t!=`string`&&Hh(346,i.getType()),n+=t.length}e<t-1&&!i.isInline()&&(n+=2)}else{let e=i[rx];e===void 0&&Hh(347,i.getType(),r),n+=e}r=i.__next}return n},{editor:ax})}function mg(e){$(e)||e[rx]===void 0&&(e[rx]=Kg(e)?e.__text.length:e.getTextContentSize())}function hg(){return{firstTextKey:ux,format:cx,style:lx}}function gg(e){e.firstTextKey!==null&&(cx=e.format,lx=e.style,ux=e.firstTextKey)}function _g(e){if(ux!==null)return;let t=e.__lexicalFirstTextKey;if(t===void 0&&Hh(348),t===null)return;let n=gx.get(t);Kg(n)&&(cx=n.getFormat(),lx=n.getStyle(),ux=t)}function vg(e,t){let n=mx.get(e),r=gx.has(e);if(t!==null){let n=Ag(e);n.parentNode===t&&t.removeChild(n)}if(!r){if(ax._keyToDOMMap.delete(e),$(n)){let e=vy(n,mx);yg(e,0,e.length-1,null)}if(n!==void 0){for(let e of wg(n).values()){let t=Tg(e);vg(e,null),t!==null&&t.remove()}_v(yx,ox,dx,n,`destroyed`)}}}function yg(e,t,n,r){for(let i=t;i<=n;++i){let t=e[i];t!==void 0&&vg(t,r)}}function bg(e,t){e.setProperty(`text-align`,t)}function xg(e,t){let n=ix.theme.indent;if(typeof n==`string`){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * var(--lexical-indent-base-value, ${Cie}))`)}function Sg(e,t){let n=e.style;t===0?bg(n,``):t===1?bg(n,`left`):t===2?bg(n,`center`):t===3?bg(n,`right`):t===4?bg(n,`justify`):t===5?bg(n,`start`):t===6&&bg(n,`end`)}function Cg(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(D_(e))return null;let n=e.getParent();return n===null||Mv(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function Qte(e){let t=Uv().createElement(`div`);return t.setAttribute(`data-lexical-slot`,e),t.style.display=`none`,t}function $te(e,t,n){t||e.contentEditable===`false`?iie(n,ax):n.removeAttribute(`contenteditable`)}function ene(e,t,n){let r=sx,i=hg();sx=``;let a=``,o=E_(e);for(let[r,i]of n){let n=Qte(r);$te(t,o,n),t.appendChild(n),sx=``;let s=hg();Eg(i,iy(e,n,ax)),gg(s),tne(e,r,t,n),a+=sx}return gg(i),sx=r,a}function wg(e){return by(e)&&e.__slots!==null?e.__slots:XS}function tne(e,t,n,r){let i=bx.$getSlotTargetElement(e,t,n,ax);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display=``)}function Tg(e){let t=_x.get(e);return t===void 0?null:t.parentElement}function nne(e,t,n){let r=wg(e),i=wg(t);for(let[e,t]of r)if(!i.has(e)){let e=Tg(t);vg(t,null),e!==null&&e.remove()}let a=sx,o=hg(),s=``,c=null,l=E_(t);for(let[e,a]of i){let i=r.get(e),o=i===void 0?null:Tg(i);sx=``;let u=hg();if(o===null){o=Qte(e);let r=null;for(let e of n.children)if(!e.hasAttribute(`data-lexical-slot`)){r=e;break}n.insertBefore(o,r),Eg(a,iy(t,o,ax))}else i===a?Og(a,o):(i!==void 0&&vg(i,o),Eg(a,iy(t,o,ax)));if(gg(u),$te(n,l,o),tne(t,e,n,o),s+=sx,o.parentElement===n){let e=c===null?n.firstChild:c.nextSibling;e!==o&&n.insertBefore(o,e),c=o}}return gg(o),sx=a,s}function Eg(e,t){let n=gx.get(e);if(n===void 0&&Hh(60),t!==null){let r=mx.get(e);if(r!==void 0){let i=_x.get(e);if(i!==void 0){let a=xy(r)?r.__slotHost:null,o=xy(n)?n.__slotHost:null,s=r.__parent!==n.__parent||a!==o,c=o!==null&&i.parentElement!==t.element;if(s||c)return t.insertChild(i),Og(e,t.element)}}}let r=bx.$createDOM(n,ax);if(function(e,t,n){let r=n._keyToDOMMap;Gre(t,n,e),r.set(e,t)}(e,r,ax),Kg(n)?r.setAttribute(`data-lexical-text`,`true`):E_(n)&&(r.setAttribute(`data-lexical-decorator`,`true`),dy(r,{captureSelection:!0})),$(n)){let e=n.__indent,t=n.__size;Cg(r,n),e!==0&&xg(r,e);let i=wg(n),a=i.size>0?ene(n,r,i):``;if(t===0)r.__lexicalTextContent=a,r.__lexicalFirstTextKey=null,sx+=a,i.size>0&&(r.__lexicalSlotTextLength=a.length);else{let e=sx,o=t-1;if(Dg(vy(n,gx),n,0,o,iy(n,r,ax)),a!==``){let t=r.__lexicalTextContent||``;r.__lexicalTextContent=a+t,sx=e+a+t}i.size>0&&(r.__lexicalSlotTextLength=a.length)}let o=n.__format;o!==0&&Sg(r,o),n.isInline()||rne(null,n,r)}else{let t=n.getTextContent();if(E_(n)){let t=n.decorate(ax,ix);t!==null&&one(e,t),r.contentEditable=`false`;let i=wg(n);i.size>0&&ene(n,r,i)}sx+=t}return t!==null&&t.insertChild(r),bx.$decorateDOM(n,null,r,ax),mg(n),_v(yx,ox,dx,n,`created`),r}function Dg(e,t,n,r,i){let a=sx,o=hg();sx=``,cx=null,lx=null,ux=null;let s=n;for(;s<=r;++s){let t=hg();Eg(e[s],i);let n=gx.get(e[s]);n!==null&&Kg(n)?cx===null&&(cx=n.getFormat(),lx=n.getStyle(),ux=n.__key):$(n)&&s<r&&!n.isInline()&&(sx+=Hb),gg(t)}let c=ax._keyToDOMMap.get(t.__key);c===void 0&&Hh(349,t.__key),c.__lexicalTextContent=sx,c.__lexicalFirstTextKey=ux,sx=a+sx,gg(o)}function rne(e,t,n){let r=iy(t,n,ax),i=r.element.__lexicalLastChildKind??null,a=function(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return j_(e)?`line-break`:E_(e)&&e.isInline()?`decorator`:null}return wg(e).size>0?null:`empty`}return null}(t,gx);i!==a&&r.setManagedLineBreak(a)}function ine(e,t,n){var r;cx=null,lx=null,ux=null,function(e,t,n){let r=sx,i=e.__size,a=t.__size;sx=``;let o=n.element,s=ax._keyToDOMMap.get(t.__key);s===void 0&&Hh(351,t.__key);let c=a-i;if(!xx&&Math.abs(c)<=1&&i>=Sie&&e.__first===t.__first&&(c!==0||!ax._cloneNotNeeded.has(e.__key))){let i=s.__lexicalTextContent,l=vx.get(e.__key);if(!xx&&typeof i==`string`&&l!==void 0){let a=function(e,t){let n=t.size;if(n===0||n>=e.__size)return null;let r=e.__last,i=null,a=0;for(;r!==null&&a<n;){if(!t.has(r))return null;i=r;let e=gx.get(r);if(e===void 0)return null;r=e.__prev,a++}return a!==n||r!==null&&t.has(r)?null:i}(t,l);if(a!==null){let u=l.size;if(c===0){let e=pg(a,u),n=a,c=0;for(;n!==null&&c<u;){let e=gx.get(n);if(e===void 0)break;let t=hg();Og(n,o),Kg(e)&&cx===null&&(cx=e.getFormat(),lx=e.getStyle(),ux=e.__key),gg(t),n=e.__next,c++}let d=``;for(n=a,c=0;n!==null&&c<u;){let e=gx.get(n);if(e===void 0)break;let t;if($(e)){let r=ax._keyToDOMMap.get(n),i=r&&r.__lexicalTextContent;typeof i!=`string`&&Hh(352,e.getType()),t=i}else t=e.getTextContent();d+=t,c<u-1&&$(e)&&!e.isInline()&&(d+=Hb),n=e.__next,c++}let f=s.__lexicalSlotTextLength||0,p=f>0?i.slice(f):i,m=p.slice(0,p.length-e)+d;s.__lexicalTextContent=m,sx=r+m,ane(t,s,l);return}if(function(e,t,n,r,i,a,o,s){if(s!==1&&s!==-1||o!==(s===1?2:1))return!1;let c=o-s,l=e.__last;for(let e=0;e<c-1;e++){if(l===null)return!1;let e=mx.get(l);if(e===void 0)return!1;l=e.__prev}if(l===null)return!1;let u=gx.get(a),d=mx.get(l);if(u===void 0||d===void 0||u.__prev!==d.__prev)return!1;let f=[],p=a;for(let e=0;e<o;e++){if(p===null)return!1;f.push(p);let e=gx.get(p);p=e?e.__next:null}let m=[];p=l;for(let e=0;e<c;e++){if(p===null)return!1;m.push(p);let e=mx.get(p);p=e?e.__next:null}let h=new Set(m),g=new Set(f),_=[],v=0,y=0;for(;v<c&&y<o;)if(f[y]===m[v])_.push({key:f[y],kind:`reconcile`}),v++,y++;else if(g.has(m[v])){if(h.has(f[y]))return!1;_.push({key:f[y],kind:`create`,nextIndex:y}),y++}else _.push({key:m[v],kind:`destroy`}),v++;for(;v<c;)_.push({key:m[v++],kind:`destroy`});for(;y<o;)_.push({key:f[y],kind:`create`,nextIndex:y}),y++;let b=pg(l,c);for(let e of _){let t=hg();if(e.kind===`reconcile`)Og(e.key,n.element);else if(e.kind===`destroy`)vg(e.key,n.element);else{let t=null;for(let n=e.nextIndex+1;n<o;n++){let e=ax._keyToDOMMap.get(f[n]);if(e!==void 0){t=e;break}}Eg(e.key,n.withBefore(t??n.before))}if(e.kind!==`destroy`){let t=gx.get(e.key);t&&Kg(t)&&cx===null&&(cx=t.getFormat(),lx=t.getStyle(),ux=t.__key)}gg(t)}let x=``;for(let e=0;e<o;e++){let t=gx.get(f[e]);if(t===void 0)return!1;let n;if($(t)){let r=ax._keyToDOMMap.get(f[e]),i=r&&r.__lexicalTextContent;typeof i!=`string`&&Hh(350,t.getType()),n=i}else n=t.getTextContent();x+=n,e<o-1&&$(t)&&!t.isInline()&&(x+=Hb)}let S=r.__lexicalSlotTextLength||0,C=S>0?i.slice(S):i;return r.__lexicalTextContent=C.slice(0,C.length-b)+x,!0}(e,0,n,s,i,a,u,c)){let e=s.__lexicalTextContent;typeof e!=`string`&&Hh(353),sx=r+e,ane(t,s,l);return}}}if(c===0){let t=e.__first,n=0;for(;t!==null;){let e=gx.get(t);if(e===void 0)break;let r=xx||px.has(t)||fx.has(t),i=hg();if(r)Og(t,o);else{let n,r;if($(e)){r=_x.get(t);let i=r&&r.__lexicalTextContent;typeof i!=`string`&&Hh(354,e.getType()),n=i}else n=e.getTextContent();sx+=n,r!==void 0&&_g(r)}Kg(e)?cx===null&&(cx=e.getFormat(),lx=e.getStyle(),ux=e.__key):$(e)&&n<a-1&&!e.isInline()&&(sx+=Hb),gg(i),t=e.__next,n++}s.__lexicalTextContent=sx,s.__lexicalFirstTextKey=ux,sx=r+sx;return}}if(i===1&&a===1){let r=e.__first,i=t.__first;if(r===i)Og(r,o);else{let e=Ag(r),t=Eg(i,null);try{e.parentNode===o?o.replaceChild(t,e):n.insertChild(t)}catch(n){if(typeof n==`object`&&n){let a=`${n.toString()} Parent: ${o.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${r}}.`;throw Error(a)}throw n}vg(r,null)}let a=gx.get(i);Kg(a)&&cx===null&&(cx=a.getFormat(),lx=a.getStyle(),ux=a.__key)}else{let r=vy(e,mx),s=vy(t,gx);if(r.length!==i&&Hh(227),s.length!==a&&Hh(228),i===0)a!==0&&Dg(s,t,0,a-1,n);else if(a===0){if(i!==0){let e=n.after==null&&n.before==null&&wg(t).size===0&&n.element.__lexicalLineBreak==null;yg(r,0,i-1,e?null:o),e&&(o.textContent=``)}}else(function(e,t,n,r,i,a){let o=r-1,s=i-1,c,l,u=a.getFirstChild(),d=0,f=0;for(;d<=o&&f<=s;){let e=t[d],r=n[f],i=hg();if(e===r)u=kg(Og(r,a.element)),d++,f++;else{if(l===void 0&&(l=sne(n,f)),c===void 0)c=sne(t,d);else if(!c.has(e)){d++,gg(i);continue}if(!l.has(e)){u=kg(Ag(e)),vg(e,a.element),d++,c.delete(e),gg(i);continue}if(c.has(r)){let e=xv(ax,r);e!==u&&a.withBefore(u??a.before).insertChild(e),u=kg(Og(r,a.element)),d++,f++}else Eg(r,a.withBefore(u??a.before)),f++}let o=gx.get(r);o!==null&&Kg(o)?cx===null&&(cx=o.getFormat(),lx=o.getStyle(),ux=o.__key):$(o)&&f<=s&&!o.isInline()&&(sx+=Hb),gg(i)}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:ax.getElementByKey(t);Dg(n,e,f,s,a.withBefore(r??a.before))}else m&&!p&&yg(t,d,o,a.element)})(t,r,s,i,a,n)}s.__lexicalTextContent=sx,s.__lexicalFirstTextKey=ux,sx=r+sx}(e,t,iy(t,n,ax)),Mv(t)||(r=t,cx==null||cx===r.__textFormat||Sx||r.setTextFormat(cx),function(e){lx==null||lx===e.__textStyle||Sx||e.setTextStyle(lx)}(t))}function ane(e,t,n){let r=t.__lexicalFirstTextKey;if(r!=null){let t=e.__key,i=r;for(;i!==null;){let e=gx.get(i);if(e===void 0){i=null;break}if(e.__parent===t)break;i=e.__parent}if(i!==null&&!n.has(i)){let e=gx.get(r);if(Kg(e))return cx=e.getFormat(),void(lx=e.getStyle())}}t.__lexicalFirstTextKey=ux}function Og(e,t){let n=mx.get(e),r=gx.get(e);n!==void 0&&r!==void 0||Hh(61);let i=xx||px.has(e)||fx.has(e),a=xv(ax,e);if(n===r&&!i){let e;if($(n)){let t=a.__lexicalTextContent;typeof t!=`string`&&Hh(355,n.getType()),e=t,_g(a)}else e=n.getTextContent();return sx+=e,a}if(n!==r&&i&&_v(yx,ox,dx,r,`updated`),bx.$updateDOM(r,n,a,ax)){let n=Eg(e,null);return t===null&&Hh(62),t.replaceChild(n,a),vg(e,null),n}if($(n)){$(r)||Hh(334,e);let t=r.__indent;(xx||t!==n.__indent)&&xg(a,t);let o=r.__format;(xx||o!==n.__format)&&Sg(a,o);let s=i&&(wg(r).size>0||wg(n).size>0)?nne(n,r,a):``;if(i){let e=sx;if(ine(n,r,a),D_(r)||r.isInline()||rne(0,r,a),s!==``){let t=a.__lexicalTextContent||``;a.__lexicalTextContent=s+t,sx=e+s+t,a.__lexicalSlotTextLength=s.length}else(wg(r).size>0||wg(n).size>0)&&(a.__lexicalSlotTextLength=0)}else{let e=a.__lexicalTextContent;typeof e!=`string`&&Hh(356,n.getType()),sx+=e,_g(a)}if((xx||r.__dir!==n.__dir||r.__parent!==n.__parent)&&(Cg(a,r),D_(r)&&!xx))for(let e of r.getChildren())$(e)&&Cg(xv(ax,e.getKey()),e)}else{let t=r.getTextContent();if(E_(r)){let t=r.decorate(ax,ix);t!==null&&one(e,t),i&&(wg(r).size>0||wg(n).size>0)&&nne(n,r,a)}sx+=t}if(!Sx&&D_(r)){let e=r.getLatest();if(e.__cachedText!==sx){let t=e.getWritable();t.__cachedText=sx,r=t}}return bx.$decorateDOM(r,n,a,ax),mg(r),a}function one(e,t){let n=ax._pendingDecorators,r=ax._decorators;if(n===null){if(r[e]===t)return;n=Kre(ax)}n[e]=t}function kg(e){let t=e.nextSibling;return t!==null&&t===ax._blockCursorElement&&(t=t.nextSibling),t}function sne(e,t){let n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function cne(e,t,n,r,i,a){sx=``,cx=null,lx=null,ux=null,xx=r===2,ax=n,ix=n._config,bx=n._config.dom||BS,ox=n._nodes,dx=ax._listeners.mutation,fx=i,px=a,mx=e._nodeMap,hx=e,gx=t._nodeMap,Sx=t._readOnly,_x=qh(n._keyToDOMMap),vx=function(){let e=new Map,t=t=>{for(let n of t){let t=gx.get(n);if(t===void 0)continue;let r=t.__parent;if(r===null)continue;let i=e.get(r);i===void 0&&(i=new Set,e.set(r,i)),i.add(n)}};return t(fx.keys()),t(px),e}();let o=new Map;return yx=o,Og(`root`,null),ax=void 0,ox=void 0,fx=void 0,px=void 0,mx=void 0,hx=void 0,gx=void 0,ix=void 0,_x=void 0,vx=void 0,yx=void 0,bx=BS,o}function Ag(e){let t=_x.get(e);return t===void 0&&Hh(75,e),t}function jg(e){return{type:e}}function lne(e){let t=new Map;return{dispose(){for(let e of t.values())e.dispose();t.clear()},register(n,r){let i=t.get(n);i===void 0&&(i={dispose:e(n,r),holders:new Set},t.set(n,i));let a=()=>{let e=t.get(n);e&&e.holders.delete(a)&&e.holders.size===0&&(t.delete(n),e.dispose())};return i.holders.add(a),a}}}function une(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}function dne(e,t,n,r,i,a){let o=e.anchor,s=e.focus,c=o.getNode(),l=b_(),u;if(a!==void 0)u=a;else{let e=Rv(Ov(l));u=e===null?null:Gv(e,l._rootElement)}let d=u===null?null:u.anchorNode,f=o.key,p=l.getElementByKey(f),m=n.length;return f!==s.key||!Kg(c)||(!i&&(!Tb||l._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||c.isDirty()&&m<2||ov(n))&&o.offset!==s.offset&&!c.isComposing()||W_(c)||c.isDirty()&&m>1||(i||!Tb)&&p!==null&&!c.isComposing()&&d!==ay(c,p,l)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!c.isComposing()&&(c.getFormat()!==e.format||c.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=U_(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(Kg(t)||$(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,c)}function fne(e,t){return G_(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function pne(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=Gv(e,t._rootElement),s=t._inputState;s.isSelectionChangeFromDOMUpdate&&(s.isSelectionChangeFromDOMUpdate=!1,fne(r,i)&&fne(a,o)&&!s.postDeleteSelectionToRestore)||T_(t,()=>{if(!n)return void rv(null);if(!z_(t,r,a))return;let c=o_();if(s.postDeleteSelectionToRestore&&Q(c)&&c.isCollapsed()){let e=c.anchor,t=s.postDeleteSelectionToRestore.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(c=s.postDeleteSelectionToRestore.clone(),rv(c))}if(s.postDeleteSelectionToRestore=null,Q(c)){let n=c.anchor,l=n.getNode();if(c.isCollapsed()){e.type===`Range`&&r===a&&(c.dirty=!0);let i=Ov(t).event,o=i?i.timeStamp:performance.now(),{format:u,style:d,offset:f,key:p,timeStamp:m}=s.collapsedSelectionFormat,h=nv(),g=!1===t.isComposing()&&h.getTextContent()===``;if(o<m+200&&n.offset===f&&n.key===p)Mg(c,u,d);else if(n.type===`text`)Kg(l)||Hh(141),mne(c,l);else if(n.type===`element`&&!g){$(l)||Hh(259);let e=n.getNode();e.isEmpty()?function(e,t){Mg(e,t.getTextFormat(),t.getTextStyle())}(c,e):Mg(c,c.format,``)}}else{let e=n.key,t=c.focus.key,r=c.getNodes(),a=r.length,s=c.isBackward(),l=s?o:i,u=s?i:o,d=s?t:e,f=s?e:t,p=2047,m=!1;for(let e=0;e<a;e++){let t=r[e],n=t.getTextContentSize();if(Kg(t)&&n!==0&&!(e===0&&t.__key===d&&l===n||e===a-1&&t.__key===f&&u===0)&&(m=!0,p&=t.getFormat(),p===0))break}c.format=m?p:0}}bv(t,Cx)})}function Mg(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function mne(e,t){Mg(e,t.getFormat(),t.getStyle())}function hne(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function gne(e){let{lastKeyCode:t}=b_()._inputState;if(e==null||e.length<=1||t==null)return;let n=t.length===1?t:t===`Enter`?`
|
|
1950
1950
|
`:t===`Tab`?` `:null;if(!n)return;let r=o_();if(!Q(r)||!r.isCollapsed())return;let i=r.anchor.getNode();if(!Kg(i))return;let{offset:a}=r.anchor;if(i.getTextContentSize()===a){let e=i.getNextSibling();if(n===`
|
|
1951
1951
|
`){if(j_(e))e.selectEnd();else if(!e){let e=YS(i,n_),t=e&&e.getNextSibling();$(t)&&t.selectStart()}}else n===` `?Yg(e)&&e.selectEnd():Kg(e)&&e.getTextContent()[0]===n&&e.select(1,1)}else i.getTextContent()[a]===n&&i.select(a+1,a+1)}function Ng(e){e.isInsertTextAfterHandledSelectionCommand=!1,e.handledSelectionCommandTimeoutId!==null&&(clearTimeout(e.handledSelectionCommandTimeoutId),e.handledSelectionCommandTimeoutId=null)}function _ne(e){Ng(e),e.isInsertTextAfterHandledSelectionCommand=!0,e.handledSelectionCommandTimeoutId=setTimeout(()=>Ng(e),0)}function vne(e,t){let n=Jv(e);if(Xv(n)&&py(n,t))return!0;let r=t.getRootElement();if(r===null)return!1;let i=qv(r.ownerDocument);return i!==null&&r.contains(i)&&py(i,t)}function yne(e){let t=e.inputType,n=hne(e),r=b_(),i=r._inputState,a=o_();if(t===`insertText`&&e.data&&i.isInsertTextAfterHandledSelectionCommand){if(Ng(i),e.preventDefault(),Q(a)&&!a.isCollapsed()){let e=a.isBackward()?a.anchor:a.focus;a.anchor.set(e.key,e.offset,e.type),a.focus.set(e.key,e.offset,e.type)}return!0}if(t===`deleteContentBackward`){if(a===null){let e=s_();if(!Q(e))return!0;rv(e.clone())}if(Q(a)){let t=a.anchor.key===a.focus.key;if(function(e,t){return e.lastKeyCode===`MediaLast`&&t<e.lastKeyDownTimeStamp+30}(i,e.timeStamp)&&r.isComposing()&&t){if(X_(null),i.lastKeyDownTimeStamp=0,setTimeout(()=>{T_(r,()=>{X_(null)})},30),Q(a)){let e=a.anchor.getNode();e.markDirty(),Kg(e)||Hh(142),mne(a,e)}}else{if(X_(null),Eb&&n!==null&&!n.collapsed&&(a.applyDOMRange(n),!a.isCollapsed()))return e.preventDefault(),a.removeText(),!0;e.preventDefault();let o=a.anchor.getNode(),s=o.getTextContent(),c=o.canInsertTextAfter(),l=a.anchor.offset===0&&a.focus.offset===s.length,u=Ab&&t&&!l&&c;if(u&&a.isCollapsed()&&(u=!E_(Yre(a.anchor,!0))),!u){bv(r,kx,!0);let e=o_();Ab&&Q(e)&&e.isCollapsed()&&(i.postDeleteSelectionToRestore=e,setTimeout(()=>i.postDeleteSelectionToRestore=null))}}return!0}}if(!Q(a))return!0;let o=e.data;i.unprocessedBeforeInputData!==null&&uv(!1,r,i.unprocessedBeforeInputData),a.dirty&&i.unprocessedBeforeInputData===null||!a.isCollapsed()||D_(a.anchor.getNode())||n===null||a.applyDOMRange(n),i.unprocessedBeforeInputData=null;let s=a.anchor,c=a.focus,l=s.getNode(),u=c.getNode();if(t===`insertText`||t===`insertTranspose`){if(o===`
|
|
1952
1952
|
`)e.preventDefault(),bv(r,Ax,!1);else if(o===Hb)e.preventDefault(),bv(r,jx);else if(o==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),a.insertRawText(t)}else o!=null&&dne(a,n,o,e.timeStamp,!0)?(e.preventDefault(),bv(r,Mx,o),gne(o)):i.unprocessedBeforeInputData=o;return i.lastBeforeInputInsertTextTimeStamp=e.timeStamp,!0}switch(e.preventDefault(),t){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:bv(r,Mx,e),gne((e.dataTransfer?e.dataTransfer.getData(`text/plain`):null)??e.data);break;case`insertFromComposition`:{let t=i.hadOrphanedCompositionEvents;i.hadOrphanedCompositionEvents=!1;let n=r._compositionKey;X_(null),t||bv(r,Mx,e),Pg(n);break}case`insertLineBreak`:X_(null),bv(r,Ax,!1);break;case`insertParagraph`:X_(null),i.isInsertLineBreak&&!Eb?(i.isInsertLineBreak=!1,bv(r,Ax,!1)):bv(r,jx);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:bv(r,Nx,e);break;case`deleteByComposition`:(function(e,t){return e!==t||$(e)||$(t)||!U_(e)||!U_(t)})(l,u)&&bv(r,Px,e);break;case`deleteByDrag`:wv(Fie),bv(r,Px,e);break;case`deleteByCut`:bv(r,Px,e);break;case`deleteContent`:bv(r,kx,!1);break;case`deleteWordBackward`:bv(r,Fx,!0);break;case`deleteWordForward`:bv(r,Fx,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:bv(r,Ix,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:bv(r,Ix,!1);break;case`formatStrikeThrough`:bv(r,Lx,`strikethrough`);break;case`formatBold`:bv(r,Lx,`bold`);break;case`formatItalic`:bv(r,Lx,`italic`);break;case`formatUnderline`:bv(r,Lx,`underline`);break;case`historyUndo`:bv(r,Rx);break;case`historyRedo`:bv(r,zx)}return!0}function bne(e){let t=b_(),n=t._inputState,r=o_(),i=e.data,a=hne(e),o=!1;if(i!=null&&Q(r)){let s=Rv(Ov(t)),c=s===null?null:Gv(s,t._rootElement),l=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&!t.isComposing();l&&(n.hadOrphanedCompositionEvents=!0);let u=r.anchor.getNode(),d=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&t.isComposing()&&Kg(u)&&W_(u);if(!l&&!d&&dne(r,a,i,e.timeStamp,!1,c)){if(o=!0,n.compositionPhase===`ending-firefox`){let e=Fg(t,i);if(n.compositionPhase=`idle`,e)return wv(yS),iv(),!0}let a=r.anchor.getNode();if(s===null||c===null)return!0;let l=r.isBackward(),u=l?r.anchor.offset:r.focus.offset,d=l?r.focus.offset:r.anchor.offset;Tb&&!r.isCollapsed()&&Kg(a)&&c.anchorNode!==null&&a.getTextContent().slice(0,u)+i+a.getTextContent().slice(u+d)===lv(c.anchorNode)||bv(t,Mx,i);let f=i.length;wb&&f>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(r.anchor.offset-=f,r._cachedNodes=null,r._cachedIsBackward=null),Ab&&t.isComposing()&&(n.lastKeyDownTimeStamp=0,X_(null))}}return o||(uv(!1,t,i===null?void 0:i),n.compositionPhase===`ending-firefox`&&(Fg(t,i||void 0),wv(`composition-end`),n.compositionPhase=`idle`)),iv(),!0}function xne(e){let t=b_(),n=t._inputState,r=o_();if(Q(r)&&!t.isComposing()){n.compositionPhase=`composing`,n.hadOrphanedCompositionEvents=!1;let i=r.anchor,a=r.anchor.getNode();if(X_(i.key),wv(`composition-start`),e.timeStamp<n.lastKeyDownTimeStamp+30||i.type===`element`||!r.isCollapsed()||!Ab&&(a.getFormat()!==r.format||Kg(a)&&a.getStyle()!==r.style)||Kg(a)&&(W_(a)||i.offset===0&&!a.canInsertTextBefore()||i.offset===a.getTextContentSize()&&!a.canInsertTextAfter())){bv(t,Mx,Ub);let e=o_();Q(e)&&X_(e.anchor.key)}}return!0}function Sne(e){let t=b_();return t._inputState.compositionPhase=`idle`,Fg(t,e.data),wv(yS),!0}function Pg(e){if(e===null)return;let t=Q_(e);if(!Kg(t)||t.getType()===`text`||W_(t)||!t.isAttached())return;let n=o_(),r=Q(n)&&n.anchor.key===e?n.anchor.offset:null,i=Gg(t.getTextContent());if(i.setFormat(t.getFormat()),i.setStyle(t.getStyle()),t.replace(i),r!==null){let e=Math.min(r,i.getTextContentSize());i.select(e,e)}}function Fg(e,t){let n=e._compositionKey;if(X_(null),n!==null&&t!=null){if(t===``){let t=Q_(n),r=e.getElementByKey(n),i=r!==null&&Kg(t)?ay(t,r,e):null;if(i!==null&&i.nodeValue!==null&&Kg(t)){let n=Rv(Ov(e)),r=n&&Gv(n,e._rootElement),a=null,o=null;r!==null&&r.anchorNode===i&&(a=r.anchorOffset,o=r.focusOffset),dv(t,i.nodeValue,a,o,!0)}return Pg(n),!1}if(t[t.length-1]===`
|
|
@@ -1975,14 +1975,14 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
1975
1975
|
**$3**$4`).replace(/(\s+)~~([^~\n]+?)\n([^~\n]+?)~~(\s+)/gm,`$1~~$2~~
|
|
1976
1976
|
~~$3~~$4`).replace(/(\s+)`([^`\n]+?)\n([^`\n]+?)`(\s+)/gm,"$1`$2`\n`$3`$4"),FD=e=>{if(!e.match(/^\s{2}(?:-|\+|\*|\d+\.)\s/m))return e;let t=!1;return e.split(`
|
|
1977
1977
|
`).map(e=>/^(`{3,}|~{3,})/.test(e)?(t=!t,e):t?e:e.replace(/^(\s+)(-|\+|\*|\d+\.)/,(e,t,n)=>`${` `.repeat(t.length*2)}${n}`)).join(`
|
|
1978
|
-
`)}})))()}var LD;function RD(){return(RD=o((()=>{LD=class{#e;#t;#n=``;#r=``;#i={};#a=[];constructor(e,t,{keyPath:n,autoIncrement:r,indexes:i=[]}={}){this.#e=void 0,this.#n=e,this.#r=t,this.#i={keyPath:n,autoIncrement:r},this.#a=i}async#o(e){return new Promise((t,n)=>{let r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{let e=r.result,t=this.#r,n=e.objectStoreNames.contains(t)?r.transaction.objectStore(t):e.createObjectStore(t,this.#i);this.#a.forEach(({name:e,keyPath:t,options:r})=>{n.indexNames.contains(e)||n.createIndex(e,t,r)})},r.onsuccess=()=>{t(r.result)},r.onerror=()=>{n(r.error)}})}async#s(){let e=!1,t=await this.#o(),{version:n,objectStoreNames:r}=t,i=this.#r;if(r.contains(i)){let n=t.transaction(i).objectStore(i);e=this.#a.some(({name:e})=>!n.indexNames.contains(e))}else e=!0;return e&&(t.close(),t=await this.#o(n+1)),t.onversionchange=()=>{t.close(),this.#e=void 0},t}async#c(e,{mode:t=`readonly`}={}){if(!this.#e){this.#t??=this.#s();try{this.#e=await this.#t}finally{this.#t=void 0}}let n=this.#e,r=this.#r,i=n.transaction(r,t),a=e(i.objectStore(r));return new Promise((e,n)=>{if(i.onerror=()=>{n(i.error)},i.onabort=()=>{n(i.error)},t===`readwrite`){let t;a&&(a.onsuccess=()=>{t=a.result}),i.oncomplete=()=>{e(t)}}else a?a.onsuccess=()=>{e(a.result)}:i.oncomplete=()=>{e(void 0)}})}async set(e,t){return this.#c(n=>n.put(t,e),{mode:`readwrite`})}async put(e){return this.#c(t=>t.put(e),{mode:`readwrite`})}async saveEntries(e){return this.#c(t=>{e.forEach(([e,n])=>{t.put(n,e)})},{mode:`readwrite`})}async get(e){return this.#c(t=>t.get(e))}async keys(){return this.#c(e=>e.getAllKeys())}async values(){return this.#c(e=>e.getAll())}async entries(){return new Promise((e,t)=>{this.#c(t=>{let n=t.openCursor(),r=[];n.onsuccess=()=>{let t=n.result;t?(r.push([t.key,t.value]),t.continue()):e(r)}}).catch(t)})}async#l({callback:e=void 0,index:t=void 0,query:n=void 0,direction:r=`next`,multiple:i=!1}){return new Promise((a,o)=>{this.#c(o=>{let s=(t?o.index(t):o).openCursor(n,r),c=[];s.onsuccess=()=>{let t=s.result;if(t){let{value:n}=t;typeof e!=`function`||e(n)?i?(c.push(n),t.continue()):a(n):t.continue()}else a(i?c:void 0)}}).catch(o)})}async find(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n})}async findLast(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,direction:`prev`})}async filter(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,multiple:!0})}async delete(e){await this.#c(t=>t.delete(e),{mode:`readwrite`})}async deleteEntries(e){await this.#c(t=>{e.forEach(e=>{t.delete(e)})},{mode:`readwrite`})}async clear(){await this.#c(e=>e.clear(),{mode:`readwrite`})}}})))()}var zD,BD;function VD(){return(VD=o((()=>{zD=e=>{try{return JSON.parse(e)}catch{return null}},BD=class{static async set(e,t){if(t===void 0){globalThis.localStorage.removeItem(e);return}globalThis.localStorage.setItem(e,JSON.stringify(t))}static async get(e){let t=globalThis.localStorage.getItem(e);return t?zD(t):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(zD)}static async entries(){return Object.entries(globalThis.localStorage).map(([e,t])=>[e,zD(t)])}}})))()}var HD,UD,WD,GD;function KD(){return(KD=o((()=>{HD=`4.4.3`,UD=`0.65.4`,WD=[{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`]},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`]},{id:`abap`,name:`ABAP`},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`]},{id:`ada`,name:`Ada`},{id:`angular-html`,name:`Angular HTML`},{id:`angular-ts`,name:`Angular TypeScript`},{id:`apache`,name:`Apache Conf`},{id:`apex`,name:`Apex`},{id:`apl`,name:`APL`},{id:`applescript`,name:`AppleScript`},{id:`ara`,name:`Ara`},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`]},{id:`razor`,name:`ASP.NET Razor`},{id:`asm`,name:`Assembly`},{id:`astro`,name:`Astro`},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`]},{id:`ahk2`,name:`AutoHotkey2`},{id:`awk`,name:`AWK`},{id:`ballerina`,name:`Ballerina`},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`]},{id:`beancount`,name:`Beancount`},{id:`berry`,name:`Berry`,aliases:[`be`]},{id:`bibtex`,name:`BibTeX`},{id:`bicep`,name:`Bicep`},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`]},{id:`blade`,name:`Blade`},{id:`c`,name:`C`},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`]},{id:`cpp`,name:`C++`,aliases:[`c++`]},{id:`c3`,name:`C3`},{id:`cadence`,name:`Cadence`,aliases:[`cdc`]},{id:`cairo`,name:`Cairo`},{id:`chapel`,name:`Chapel`,aliases:[`chpl`]},{id:`clarity`,name:`Clarity`},{id:`clojure`,name:`Clojure`,aliases:[`clj`]},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`]},{id:`cmake`,name:`CMake`},{id:`cobol`,name:`COBOL`},{id:`codeowners`,name:`CODEOWNERS`},{id:`codeql`,name:`CodeQL`,aliases:[`ql`]},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`]},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`]},{id:`crystal`,name:`Crystal`},{id:`css`,name:`CSS`},{id:`csv`,name:`CSV`},{id:`cue`,name:`CUE`},{id:`cypher`,name:`Cypher`,aliases:[`cql`]},{id:`d`,name:`D`},{id:`dart`,name:`Dart`},{id:`dax`,name:`DAX`},{id:`desktop`,name:`Desktop`},{id:`diff`,name:`Diff`},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`]},{id:`dotenv`,name:`dotEnv`},{id:`dream-maker`,name:`Dream Maker`},{id:`edge`,name:`Edge`},{id:`elixir`,name:`Elixir`},{id:`elm`,name:`Elm`},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`]},{id:`erb`,name:`ERB`},{id:`erlang`,name:`Erlang`,aliases:[`erl`]},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`]},{id:`fennel`,name:`Fennel`},{id:`fish`,name:`Fish`},{id:`fluent`,name:`Fluent`,aliases:[`ftl`]},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`]},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`]},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`]},{id:`gdscript`,name:`GDScript`,aliases:[`gd`]},{id:`gdshader`,name:`GDShader`},{id:`genie`,name:`Genie`},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`]},{id:`gherkin`,name:`Gherkin`},{id:`git-commit`,name:`Git Commit Message`},{id:`git-rebase`,name:`Git Rebase Message`},{id:`gleam`,name:`Gleam`},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`]},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`]},{id:`glsl`,name:`GLSL`},{id:`gn`,name:`GN`},{id:`smalltalk`,name:`GNU Smalltalk`},{id:`gnuplot`,name:`Gnuplot`},{id:`go`,name:`Go`},{id:`graphql`,name:`GraphQL`,aliases:[`gql`]},{id:`groovy`,name:`Groovy`},{id:`hack`,name:`Hack`},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`]},{id:`hcl`,name:`HashiCorp HCL`},{id:`haskell`,name:`Haskell`,aliases:[`hs`]},{id:`haxe`,name:`Haxe`},{id:`hjson`,name:`Hjson`},{id:`hlsl`,name:`HLSL`},{id:`html`,name:`HTML`},{id:`html-derivative`,name:`HTML (Derivative)`},{id:`http`,name:`HTTP`},{id:`hurl`,name:`Hurl`},{id:`hxml`,name:`HXML`},{id:`hy`,name:`Hy`},{id:`imba`,name:`Imba`},{id:`ini`,name:`INI`,aliases:[`properties`]},{id:`java`,name:`Java`},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`]},{id:`jinja`,name:`Jinja`},{id:`jison`,name:`Jison`},{id:`json`,name:`JSON`},{id:`jsonl`,name:`JSON Lines`},{id:`jsonc`,name:`JSON with Comments`},{id:`json5`,name:`JSON5`},{id:`jsonnet`,name:`Jsonnet`},{id:`jssm`,name:`JSSM`,aliases:[`fsl`]},{id:`jsx`,name:`JSX`},{id:`julia`,name:`Julia`,aliases:[`jl`]},{id:`just`,name:`Just`,aliases:[`justfile`]},{id:`kdl`,name:`KDL`},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`]},{id:`kusto`,name:`Kusto`,aliases:[`kql`]},{id:`latex`,name:`LaTeX`},{id:`lean`,name:`Lean 4`,aliases:[`lean4`]},{id:`less`,name:`Less`},{id:`liquid`,name:`Liquid`},{id:`llvm`,name:`LLVM IR`},{id:`log`,name:`Log file`},{id:`logo`,name:`Logo`},{id:`lua`,name:`Lua`},{id:`luau`,name:`Luau`},{id:`make`,name:`Makefile`,aliases:[`makefile`]},{id:`markdown`,name:`Markdown`,aliases:[`md`]},{id:`marko`,name:`Marko`},{id:`matlab`,name:`MATLAB`},{id:`mdc`,name:`MDC`},{id:`mdx`,name:`MDX`},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`]},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`]},{id:`mojo`,name:`Mojo`},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`]},{id:`move`,name:`Move`},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`]},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`]},{id:`nextflow-groovy`,name:`Nextflow Groovy`},{id:`nginx`,name:`Nginx`},{id:`nim`,name:`Nim`},{id:`nix`,name:`Nix`},{id:`nsis`,name:`NSIS`},{id:`nushell`,name:`nushell`,aliases:[`nu`]},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`]},{id:`objective-cpp`,name:`Objective-C++`},{id:`ocaml`,name:`OCaml`},{id:`odin`,name:`Odin`},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`]},{id:`org`,name:`Org Markup`},{id:`pascal`,name:`Pascal`},{id:`perl`,name:`Perl`},{id:`php`,name:`PHP`},{id:`pkl`,name:`Pkl`},{id:`plsql`,name:`PL/SQL`},{id:`polar`,name:`Polar`},{id:`postcss`,name:`PostCSS`},{id:`powerquery`,name:`PowerQuery`},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`]},{id:`prisma`,name:`Prisma`},{id:`prolog`,name:`Prolog`},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`]},{id:`pug`,name:`Pug`,aliases:[`jade`]},{id:`puppet`,name:`Puppet`},{id:`purescript`,name:`PureScript`},{id:`python`,name:`Python`,aliases:[`py`]},{id:`qml`,name:`QML`},{id:`qmldir`,name:`QML Directory`},{id:`qss`,name:`Qt Style Sheets`},{id:`r`,name:`R`},{id:`racket`,name:`Racket`},{id:`raku`,name:`Raku`,aliases:[`perl6`]},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`]},{id:`regexp`,name:`RegExp`,aliases:[`regex`]},{id:`rel`,name:`Rel`},{id:`rst`,name:`reStructuredText`},{id:`riscv`,name:`RISC-V`},{id:`coq`,name:`Rocq`},{id:`ron`,name:`RON`},{id:`rosmsg`,name:`ROS Interface`},{id:`ruby`,name:`Ruby`,aliases:[`rb`]},{id:`haml`,name:`Ruby Haml`},{id:`rust`,name:`Rust`,aliases:[`rs`]},{id:`sas`,name:`SAS`},{id:`sass`,name:`Sass`},{id:`scala`,name:`Scala`},{id:`scheme`,name:`Scheme`},{id:`scss`,name:`SCSS`},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`]},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`]},{id:`shellsession`,name:`Shell Session`,aliases:[`console`]},{id:`smithy`,name:`Smithy`},{id:`solidity`,name:`Solidity`},{id:`sparql`,name:`SPARQL`},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`]},{id:`sql`,name:`SQL`},{id:`ssh-config`,name:`SSH Config`},{id:`stata`,name:`Stata`},{id:`stylus`,name:`Stylus`,aliases:[`styl`]},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`]},{id:`svelte`,name:`Svelte`},{id:`swift`,name:`Swift`},{id:`systemd`,name:`Systemd Units`},{id:`system-verilog`,name:`SystemVerilog`},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`]},{id:`tasl`,name:`Tasl`},{id:`tcl`,name:`Tcl`},{id:`templ`,name:`Templ`},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`]},{id:`tex`,name:`TeX`},{id:`toml`,name:`TOML`},{id:`tsv`,name:`TSV`},{id:`tsx`,name:`TSX`},{id:`turtle`,name:`Turtle`},{id:`twig`,name:`Twig`},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`]},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`]},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`]},{id:`typst`,name:`Typst`,aliases:[`typ`]},{id:`v`,name:`V`},{id:`vala`,name:`Vala`},{id:`verilog`,name:`Verilog`},{id:`vhdl`,name:`VHDL`},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`]},{id:`vb`,name:`Visual Basic`},{id:`vue`,name:`Vue`},{id:`vue-html`,name:`Vue HTML`},{id:`vue-vine`,name:`Vue Vine`},{id:`vyper`,name:`Vyper`,aliases:[`vy`]},{id:`wasm`,name:`WebAssembly`},{id:`wit`,name:`WebAssembly Interface Types`},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`]},{id:`wgsl`,name:`WGSL`},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`]},{id:`reg`,name:`Windows Registry Script`},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`]},{id:`xml`,name:`XML`},{id:`xsl`,name:`XSL`},{id:`yaml`,name:`YAML`,aliases:[`yml`]},{id:`zenscript`,name:`ZenScript`},{id:`zig`,name:`Zig`}],GD=[{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`},{id:`github-light`,displayName:`GitHub Light`,type:`light`},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`},{id:`horizon`,displayName:`Horizon`,type:`dark`},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`},{id:`houston`,displayName:`Houston`,type:`dark`},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`},{id:`laserwave`,displayName:`LaserWave`,type:`dark`},{id:`light-plus`,displayName:`Light Plus`,type:`light`},{id:`material-theme`,displayName:`Material Theme`,type:`dark`},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`},{id:`min-dark`,displayName:`Min Dark`,type:`dark`},{id:`min-light`,displayName:`Min Light`,type:`light`},{id:`monokai`,displayName:`Monokai`,type:`dark`},{id:`night-owl`,displayName:`Night Owl`,type:`dark`},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`},{id:`nord`,displayName:`Nord`,type:`dark`},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`},{id:`one-light`,displayName:`One Light`,type:`light`},{id:`plastic`,displayName:`Plastic`,type:`dark`},{id:`poimandres`,displayName:`Poimandres`,type:`dark`},{id:`red`,displayName:`Red`,type:`dark`},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`},{id:`vesper`,displayName:`Vesper`,type:`dark`},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`}]})))()}var qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO;function rO(){return(rO=o((()=>{RD(),KD(),qD=`sveltia-ui`,JD=`shiki`,ZD=!0,QD=(e,t)=>`${HD}/${e}/${t}`,$D=()=>(YD===void 0&&(YD=typeof indexedDB>`u`?null:new LD(qD,JD)),YD),eO=async e=>(XD??=(async()=>{let t=(await e.keys()).filter(e=>typeof e==`string`&&!e.startsWith(`4.4.3/`));t.length&&await e.deleteEntries(t)})(),XD),tO=async(e,t)=>{let n=ZD?$D():null;if(n)try{return await eO(n),await n.get(QD(e,t))}catch{return}},nO=async(e,t,n)=>{let r=ZD?$D():null;if(r)try{await r.set(QD(e,t),n)}catch{}}})))()}var iO,aO,oO,sO;function cO(){return(cO=o((()=>{iO=`modulepreload`,aO=function(e){return`/`+e},oO={},sO=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=aO(t,n),t=s(t),t in oO)return;oO[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:iO,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})))()}var lO,uO,dO,fO,pO,mO,hO,gO,_O,vO;function yO(){return(yO=o((()=>{KD(),cO(),lO=`https://unpkg.com/@shikijs`,uO=`https://unpkg.com/@sveltia/ui`,dO=()=>`${uO}@${UD}/dist/shiki-engine.js`,fO=e=>`${lO}/langs@${HD}/dist/${e}.mjs`,pO=e=>`${lO}/themes@${HD}/dist/${e}.mjs`,mO=async()=>sO(()=>import(dO()),[]),hO=async e=>sO(()=>import(fO(e)),[]),gO=async e=>sO(()=>import(pO(e)),[]),_O={loadEngine:mO,loadLanguage:hO,loadTheme:gO},vO=()=>_O})))()}var bO,xO,SO,CO;function wO(){return(wO=o((()=>{hw(),rC(),bO=`github-light`,xO=`github-dark`,SO=()=>{if(typeof document>`u`)return bO;let{theme:e}=document.documentElement.dataset;return e?e===`dark`?xO:bO:window.matchMedia(`(prefers-color-scheme: dark)`).matches?xO:bO},CO=e=>{if(typeof document>`u`)return()=>void 0;let t=()=>{let t=SO();e.update(()=>{nv().getChildren().forEach(e=>{iw(e)&&e.getTheme()!==t&&(e.setTheme(t),e.markDirty())})},{tag:vS})},n=new MutationObserver(t);n.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]});let r=window.matchMedia(`(prefers-color-scheme: dark)`);return r.addEventListener(`change`,t),()=>{n.disconnect(),r.removeEventListener(`change`,t)}}})))()}var TO,EO,DO,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,GO,KO;function qO(){return(qO=o((()=>{hw(),rC(),rO(),KD(),yO(),wO(),TO=[``,`plain`,`plaintext`,`text`,`txt`],EO=/^diff-([\w-]+)/i,DO=null,OO=null,kO=!1,AO=e=>EO.exec(e)?.[1]??null,jO=e=>TO.includes(e??``),MO=()=>!!OO,NO=()=>kO,PO=e=>{if(!OO)return!1;let t=AO(e)??e;return DO.isSpecialLang(t)?!0:OO.getLoadedLanguages().includes(t)},FO=(e,t)=>{e.update(()=>{let e=Q_(t);if(!iw(e))return;let n=e.getLanguage();n&&PO(n)&&!e.getIsSyntaxHighlightSupported()&&e.setIsSyntaxHighlightSupported(!0),e.markDirty()},{tag:vS})},IO=new Map,LO=(e,t,n,r)=>{let i=IO.get(e);if(!i){let n=new Map;i={promise:(async()=>{try{await t()}catch{}IO.delete(e),n.forEach((e,t)=>FO(e,t))})(),targets:n},IO.set(e,i)}return n&&r&&i.targets.set(r,n),i.promise},RO=(e,t)=>{if(!(OO||kO))return LO(`engine`,async()=>{try{DO=await vO().loadEngine(),OO=DO.createHighlighterCoreSync({engine:DO.createJavaScriptRegexEngine(),langs:[],themes:[]})}catch{kO=!0}},e,t)},zO=async(e,t,n)=>{let r=await tO(e,t);if(r)return r;let i=await n();if(!i)return;let a=i.default??i;return await nO(e,t,a),a},BO=e=>WD.find(({id:t,aliases:n})=>t===e||n?.includes(e))?.id??e,VO=(e,t,n)=>{let r=AO(e)??e;if(!OO||PO(r))return;let i=WD.find(({id:e,aliases:t})=>e===r||t?.includes(r));if(i)return LO(`lang/${i.id}`,async()=>{let e=await zO(`lang`,i.id,()=>vO().loadLanguage(i.id));e&&await OO.loadLanguage(e)},t,n)},HO=e=>OO?DO.isSpecialTheme(e)||OO.getLoadedThemes().includes(e):!1,UO=(e,t,n)=>{if(!(!OO||HO(e))&&GD.some(({id:t})=>t===e))return LO(`theme/${e}`,async()=>{let t=await zO(`theme`,e,()=>vO().loadTheme(e));t&&await OO.loadTheme(t)},t,n)},WO=(e,t)=>{let n=[];return e.forEach((e,r)=>{r&&n.push(A_()),e.forEach((e,r)=>{let{content:i}=e;if(t&&r===0&&i.length>0){let e=[`+`,`-`,`>`,`<`,` `],t=[`inserted`,`deleted`,`inserted`,`deleted`,`unchanged`],r=e.indexOf(i[0]);r!==-1&&(n.push(sw(e[r],t[r])),i=i.slice(1))}let a=DO.stringifyTokenStyle(e.htmlStyle||DO.getTokenStyleObject(e));f_(i,{linebreak:()=>n.push(A_()),tab:()=>n.push(Jg()),text:e=>{let t=sw(e);t.setStyle(a),n.push(t)}})})}),n},GO=(e,t)=>{let n=AO(t),{tokens:r}=OO.codeToTokens(e.getTextContent(),{lang:n??t,theme:e.getTheme()});return WO(r,!!n)},KO=(e,t,{theme:n}={})=>{let r=BO(AO(t)??t);if(!OO||jO(r)||!PO(r))return;let i=n??SO();if(HO(i))return OO.codeToHtml(e,{lang:r,theme:i})}})))()}var JO,YO,XO,ZO,QO,$O,ek,tk,nk;function rk(){return(rk=o((()=>{hw(),dC(),rC(),qO(),JO=`github-light`,YO={defaultLanguage:Goe,defaultTheme:JO,tokenize(e,t){let n=t||this.defaultLanguage;return n===null||jO(n)||!MO()?joe(e.getTextContent()):GO(e,n)}},XO=(e,t)=>{let n=t.getElementByKey(e.getKey());if(n===null)return;let r=e.getChildren(),i=r.length;if(i===n.__cachedChildrenLength)return;n.__cachedChildrenLength=i;let a=`1`,o=1;for(let e=0;e<i;e+=1)j_(r[e])&&(o+=1,a+=`\n${o}`);n.setAttribute(`data-gutter`,a)},ZO=(e,t)=>cw(e)&&cw(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType&&e.__style===t.__style||Yg(e)&&Yg(t)||j_(e)&&j_(t),QO=(e,t)=>{let n=0;for(;n<e.length&&ZO(e[n],t[n]);)n+=1;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o+=1,!ZO(e[r-o],t[i-o])){--o;break}return{from:n,to:r-o,nodesForReplacement:t.slice(n,i-o)}},$O=(e,t)=>{let n=Q_(e);if(!iw(n)||!n.isAttached())return;let r=o_();if(!Q(r)){t();return}let{anchor:i}=r,a=i.offset,o=i.type===`element`&&j_(n.getChildAtIndex(i.offset-1)),s=0;if(o||(s=a+i.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(o){i.getNode().select(a,a);return}n.getChildren().some(e=>{let t=Kg(e);if(t||j_(e)){let n=e.getTextContentSize();if(t&&n>=s)return e.select(s,s),!0;s-=n}return!1})}},ek=(e,t,n,r)=>{let i=r.getKey(),{nodesCurrentlyHighlighting:a}=n,o=r.getLanguage();!o&&t.defaultLanguage!==null&&(o=t.defaultLanguage,r.setLanguage(o));let s=r.getTheme();s||(s=t.defaultTheme,r.setTheme(s));let c=!o||jO(o),l=!1;if(c||!o||NO()?r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1):MO()?(HO(s)||(UO(s,e,i),l=!0),PO(o)?r.getIsSyntaxHighlightSupported()||r.setIsSyntaxHighlightSupported(!0):(!VO(o,e,i)&&r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1),l=!0)):(RO(e,i),l=!0),!l){if(a.has(i)){n.pendingRefresh.has(i)||(n.pendingRefresh.add(i),Tv(()=>{n.pendingRefresh.delete(i),e.update(()=>{let e=Q_(i);iw(e)&&e.markDirty()},{tag:vS})}));return}a.add(i),n.didTransform||(n.didTransform=!0,Tv(()=>{n.didTransform=!1,a.clear()})),$O(i,()=>{let e=Q_(i);if(!iw(e)||!e.isAttached())return!1;let n=e.getLanguage()||t.defaultLanguage,a=t.tokenize(e,n??void 0),{from:o,to:s,nodesForReplacement:c}=QO(e.getChildren(),a);return o!==s||c.length?(r.splice(o,s-o,c),!0):!1})}},tk=(e,t,n,r)=>{let i=r.getParent();iw(i)?ek(e,t,n,i):cw(r)&&r.replace(Gg(r.__text))},nk=(e,t=YO)=>{if(!e.hasNodes([pw,mw]))throw Error(`CodeNode or CodeHighlightNode not registered on editor`);let n=[];e._headless!==!0&&n.push(e.registerMutationListener(pw,t=>{e.read(`latest`,()=>{t.forEach((t,n)=>{if(t!==`destroyed`){let t=Q_(n);t!==null&&XO(t,e)}})})},{skipInitialization:!1}));let r={didTransform:!1,nodesCurrentlyHighlighting:new Set,pendingRefresh:new Set};return n.push(e.registerNodeTransform(pw,ek.bind(null,e,t,r)),e.registerNodeTransform(bS,tk.bind(null,e,t,r)),e.registerNodeTransform(mw,tk.bind(null,e,t,r)),Woe(e)),bb(...n)}})))()}var ik;function ak(){return(ak=o((()=>{BC(),ik={dependencies:[zC],export:e=>Vae(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=Bae();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`}})))()}var ok,sk,ck,lk,uk,dk;function fk(){return(fk=o((()=>{qE(),gD(),rC(),ok=/^(?:\|)(.+)(?:\|)\s?$/,sk=/^(\| ?:?-*:? ?)+\|\s?$/,ck=e=>{let t=e.getFirstChild();return eD(t)?t.getChildrenSize():0},lk=e=>{e=e.replace(/\\n/g,`
|
|
1978
|
+
`)}})))()}var LD;function RD(){return(RD=o((()=>{LD=class{#e;#t;#n=``;#r=``;#i={};#a=[];constructor(e,t,{keyPath:n,autoIncrement:r,indexes:i=[]}={}){this.#e=void 0,this.#n=e,this.#r=t,this.#i={keyPath:n,autoIncrement:r},this.#a=i}async#o(e){return new Promise((t,n)=>{let r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{let e=r.result,t=this.#r,n=e.objectStoreNames.contains(t)?r.transaction.objectStore(t):e.createObjectStore(t,this.#i);this.#a.forEach(({name:e,keyPath:t,options:r})=>{n.indexNames.contains(e)||n.createIndex(e,t,r)})},r.onsuccess=()=>{t(r.result)},r.onerror=()=>{n(r.error)}})}async#s(){let e=!1,t=await this.#o(),{version:n,objectStoreNames:r}=t,i=this.#r;if(r.contains(i)){let n=t.transaction(i).objectStore(i);e=this.#a.some(({name:e})=>!n.indexNames.contains(e))}else e=!0;return e&&(t.close(),t=await this.#o(n+1)),t.onversionchange=()=>{t.close(),this.#e=void 0},t}async#c(e,{mode:t=`readonly`}={}){if(!this.#e){this.#t??=this.#s();try{this.#e=await this.#t}finally{this.#t=void 0}}let n=this.#e,r=this.#r,i=n.transaction(r,t),a=e(i.objectStore(r));return new Promise((e,n)=>{if(i.onerror=()=>{n(i.error)},i.onabort=()=>{n(i.error)},t===`readwrite`){let t;a&&(a.onsuccess=()=>{t=a.result}),i.oncomplete=()=>{e(t)}}else a?a.onsuccess=()=>{e(a.result)}:i.oncomplete=()=>{e(void 0)}})}async set(e,t){return this.#c(n=>n.put(t,e),{mode:`readwrite`})}async put(e){return this.#c(t=>t.put(e),{mode:`readwrite`})}async saveEntries(e){return this.#c(t=>{e.forEach(([e,n])=>{t.put(n,e)})},{mode:`readwrite`})}async get(e){return this.#c(t=>t.get(e))}async keys(){return this.#c(e=>e.getAllKeys())}async values(){return this.#c(e=>e.getAll())}async entries(){return new Promise((e,t)=>{this.#c(t=>{let n=t.openCursor(),r=[];n.onsuccess=()=>{let t=n.result;t?(r.push([t.key,t.value]),t.continue()):e(r)}}).catch(t)})}async#l({callback:e=void 0,index:t=void 0,query:n=void 0,direction:r=`next`,multiple:i=!1}){return new Promise((a,o)=>{this.#c(o=>{let s=(t?o.index(t):o).openCursor(n,r),c=[];s.onsuccess=()=>{let t=s.result;if(t){let{value:n}=t;typeof e!=`function`||e(n)?i?(c.push(n),t.continue()):a(n):t.continue()}else a(i?c:void 0)}}).catch(o)})}async find(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n})}async findLast(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,direction:`prev`})}async filter(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,multiple:!0})}async delete(e){await this.#c(t=>t.delete(e),{mode:`readwrite`})}async deleteEntries(e){await this.#c(t=>{e.forEach(e=>{t.delete(e)})},{mode:`readwrite`})}async clear(){await this.#c(e=>e.clear(),{mode:`readwrite`})}}})))()}var zD,BD;function VD(){return(VD=o((()=>{zD=e=>{try{return JSON.parse(e)}catch{return null}},BD=class{static async set(e,t){if(t===void 0){globalThis.localStorage.removeItem(e);return}globalThis.localStorage.setItem(e,JSON.stringify(t))}static async get(e){let t=globalThis.localStorage.getItem(e);return t?zD(t):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(zD)}static async entries(){return Object.entries(globalThis.localStorage).map(([e,t])=>[e,zD(t)])}}})))()}var HD,UD,WD,GD;function KD(){return(KD=o((()=>{HD=`4.4.3`,UD=`0.65.5`,WD=[{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`]},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`]},{id:`abap`,name:`ABAP`},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`]},{id:`ada`,name:`Ada`},{id:`angular-html`,name:`Angular HTML`},{id:`angular-ts`,name:`Angular TypeScript`},{id:`apache`,name:`Apache Conf`},{id:`apex`,name:`Apex`},{id:`apl`,name:`APL`},{id:`applescript`,name:`AppleScript`},{id:`ara`,name:`Ara`},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`]},{id:`razor`,name:`ASP.NET Razor`},{id:`asm`,name:`Assembly`},{id:`astro`,name:`Astro`},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`]},{id:`ahk2`,name:`AutoHotkey2`},{id:`awk`,name:`AWK`},{id:`ballerina`,name:`Ballerina`},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`]},{id:`beancount`,name:`Beancount`},{id:`berry`,name:`Berry`,aliases:[`be`]},{id:`bibtex`,name:`BibTeX`},{id:`bicep`,name:`Bicep`},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`]},{id:`blade`,name:`Blade`},{id:`c`,name:`C`},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`]},{id:`cpp`,name:`C++`,aliases:[`c++`]},{id:`c3`,name:`C3`},{id:`cadence`,name:`Cadence`,aliases:[`cdc`]},{id:`cairo`,name:`Cairo`},{id:`chapel`,name:`Chapel`,aliases:[`chpl`]},{id:`clarity`,name:`Clarity`},{id:`clojure`,name:`Clojure`,aliases:[`clj`]},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`]},{id:`cmake`,name:`CMake`},{id:`cobol`,name:`COBOL`},{id:`codeowners`,name:`CODEOWNERS`},{id:`codeql`,name:`CodeQL`,aliases:[`ql`]},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`]},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`]},{id:`crystal`,name:`Crystal`},{id:`css`,name:`CSS`},{id:`csv`,name:`CSV`},{id:`cue`,name:`CUE`},{id:`cypher`,name:`Cypher`,aliases:[`cql`]},{id:`d`,name:`D`},{id:`dart`,name:`Dart`},{id:`dax`,name:`DAX`},{id:`desktop`,name:`Desktop`},{id:`diff`,name:`Diff`},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`]},{id:`dotenv`,name:`dotEnv`},{id:`dream-maker`,name:`Dream Maker`},{id:`edge`,name:`Edge`},{id:`elixir`,name:`Elixir`},{id:`elm`,name:`Elm`},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`]},{id:`erb`,name:`ERB`},{id:`erlang`,name:`Erlang`,aliases:[`erl`]},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`]},{id:`fennel`,name:`Fennel`},{id:`fish`,name:`Fish`},{id:`fluent`,name:`Fluent`,aliases:[`ftl`]},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`]},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`]},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`]},{id:`gdscript`,name:`GDScript`,aliases:[`gd`]},{id:`gdshader`,name:`GDShader`},{id:`genie`,name:`Genie`},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`]},{id:`gherkin`,name:`Gherkin`},{id:`git-commit`,name:`Git Commit Message`},{id:`git-rebase`,name:`Git Rebase Message`},{id:`gleam`,name:`Gleam`},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`]},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`]},{id:`glsl`,name:`GLSL`},{id:`gn`,name:`GN`},{id:`smalltalk`,name:`GNU Smalltalk`},{id:`gnuplot`,name:`Gnuplot`},{id:`go`,name:`Go`},{id:`graphql`,name:`GraphQL`,aliases:[`gql`]},{id:`groovy`,name:`Groovy`},{id:`hack`,name:`Hack`},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`]},{id:`hcl`,name:`HashiCorp HCL`},{id:`haskell`,name:`Haskell`,aliases:[`hs`]},{id:`haxe`,name:`Haxe`},{id:`hjson`,name:`Hjson`},{id:`hlsl`,name:`HLSL`},{id:`html`,name:`HTML`},{id:`html-derivative`,name:`HTML (Derivative)`},{id:`http`,name:`HTTP`},{id:`hurl`,name:`Hurl`},{id:`hxml`,name:`HXML`},{id:`hy`,name:`Hy`},{id:`imba`,name:`Imba`},{id:`ini`,name:`INI`,aliases:[`properties`]},{id:`java`,name:`Java`},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`]},{id:`jinja`,name:`Jinja`},{id:`jison`,name:`Jison`},{id:`json`,name:`JSON`},{id:`jsonl`,name:`JSON Lines`},{id:`jsonc`,name:`JSON with Comments`},{id:`json5`,name:`JSON5`},{id:`jsonnet`,name:`Jsonnet`},{id:`jssm`,name:`JSSM`,aliases:[`fsl`]},{id:`jsx`,name:`JSX`},{id:`julia`,name:`Julia`,aliases:[`jl`]},{id:`just`,name:`Just`,aliases:[`justfile`]},{id:`kdl`,name:`KDL`},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`]},{id:`kusto`,name:`Kusto`,aliases:[`kql`]},{id:`latex`,name:`LaTeX`},{id:`lean`,name:`Lean 4`,aliases:[`lean4`]},{id:`less`,name:`Less`},{id:`liquid`,name:`Liquid`},{id:`llvm`,name:`LLVM IR`},{id:`log`,name:`Log file`},{id:`logo`,name:`Logo`},{id:`lua`,name:`Lua`},{id:`luau`,name:`Luau`},{id:`make`,name:`Makefile`,aliases:[`makefile`]},{id:`markdown`,name:`Markdown`,aliases:[`md`]},{id:`marko`,name:`Marko`},{id:`matlab`,name:`MATLAB`},{id:`mdc`,name:`MDC`},{id:`mdx`,name:`MDX`},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`]},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`]},{id:`mojo`,name:`Mojo`},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`]},{id:`move`,name:`Move`},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`]},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`]},{id:`nextflow-groovy`,name:`Nextflow Groovy`},{id:`nginx`,name:`Nginx`},{id:`nim`,name:`Nim`},{id:`nix`,name:`Nix`},{id:`nsis`,name:`NSIS`},{id:`nushell`,name:`nushell`,aliases:[`nu`]},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`]},{id:`objective-cpp`,name:`Objective-C++`},{id:`ocaml`,name:`OCaml`},{id:`odin`,name:`Odin`},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`]},{id:`org`,name:`Org Markup`},{id:`pascal`,name:`Pascal`},{id:`perl`,name:`Perl`},{id:`php`,name:`PHP`},{id:`pkl`,name:`Pkl`},{id:`plsql`,name:`PL/SQL`},{id:`polar`,name:`Polar`},{id:`postcss`,name:`PostCSS`},{id:`powerquery`,name:`PowerQuery`},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`]},{id:`prisma`,name:`Prisma`},{id:`prolog`,name:`Prolog`},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`]},{id:`pug`,name:`Pug`,aliases:[`jade`]},{id:`puppet`,name:`Puppet`},{id:`purescript`,name:`PureScript`},{id:`python`,name:`Python`,aliases:[`py`]},{id:`qml`,name:`QML`},{id:`qmldir`,name:`QML Directory`},{id:`qss`,name:`Qt Style Sheets`},{id:`r`,name:`R`},{id:`racket`,name:`Racket`},{id:`raku`,name:`Raku`,aliases:[`perl6`]},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`]},{id:`regexp`,name:`RegExp`,aliases:[`regex`]},{id:`rel`,name:`Rel`},{id:`rst`,name:`reStructuredText`},{id:`riscv`,name:`RISC-V`},{id:`coq`,name:`Rocq`},{id:`ron`,name:`RON`},{id:`rosmsg`,name:`ROS Interface`},{id:`ruby`,name:`Ruby`,aliases:[`rb`]},{id:`haml`,name:`Ruby Haml`},{id:`rust`,name:`Rust`,aliases:[`rs`]},{id:`sas`,name:`SAS`},{id:`sass`,name:`Sass`},{id:`scala`,name:`Scala`},{id:`scheme`,name:`Scheme`},{id:`scss`,name:`SCSS`},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`]},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`]},{id:`shellsession`,name:`Shell Session`,aliases:[`console`]},{id:`smithy`,name:`Smithy`},{id:`solidity`,name:`Solidity`},{id:`sparql`,name:`SPARQL`},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`]},{id:`sql`,name:`SQL`},{id:`ssh-config`,name:`SSH Config`},{id:`stata`,name:`Stata`},{id:`stylus`,name:`Stylus`,aliases:[`styl`]},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`]},{id:`svelte`,name:`Svelte`},{id:`swift`,name:`Swift`},{id:`systemd`,name:`Systemd Units`},{id:`system-verilog`,name:`SystemVerilog`},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`]},{id:`tasl`,name:`Tasl`},{id:`tcl`,name:`Tcl`},{id:`templ`,name:`Templ`},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`]},{id:`tex`,name:`TeX`},{id:`toml`,name:`TOML`},{id:`tsv`,name:`TSV`},{id:`tsx`,name:`TSX`},{id:`turtle`,name:`Turtle`},{id:`twig`,name:`Twig`},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`]},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`]},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`]},{id:`typst`,name:`Typst`,aliases:[`typ`]},{id:`v`,name:`V`},{id:`vala`,name:`Vala`},{id:`verilog`,name:`Verilog`},{id:`vhdl`,name:`VHDL`},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`]},{id:`vb`,name:`Visual Basic`},{id:`vue`,name:`Vue`},{id:`vue-html`,name:`Vue HTML`},{id:`vue-vine`,name:`Vue Vine`},{id:`vyper`,name:`Vyper`,aliases:[`vy`]},{id:`wasm`,name:`WebAssembly`},{id:`wit`,name:`WebAssembly Interface Types`},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`]},{id:`wgsl`,name:`WGSL`},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`]},{id:`reg`,name:`Windows Registry Script`},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`]},{id:`xml`,name:`XML`},{id:`xsl`,name:`XSL`},{id:`yaml`,name:`YAML`,aliases:[`yml`]},{id:`zenscript`,name:`ZenScript`},{id:`zig`,name:`Zig`}],GD=[{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`},{id:`github-light`,displayName:`GitHub Light`,type:`light`},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`},{id:`horizon`,displayName:`Horizon`,type:`dark`},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`},{id:`houston`,displayName:`Houston`,type:`dark`},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`},{id:`laserwave`,displayName:`LaserWave`,type:`dark`},{id:`light-plus`,displayName:`Light Plus`,type:`light`},{id:`material-theme`,displayName:`Material Theme`,type:`dark`},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`},{id:`min-dark`,displayName:`Min Dark`,type:`dark`},{id:`min-light`,displayName:`Min Light`,type:`light`},{id:`monokai`,displayName:`Monokai`,type:`dark`},{id:`night-owl`,displayName:`Night Owl`,type:`dark`},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`},{id:`nord`,displayName:`Nord`,type:`dark`},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`},{id:`one-light`,displayName:`One Light`,type:`light`},{id:`plastic`,displayName:`Plastic`,type:`dark`},{id:`poimandres`,displayName:`Poimandres`,type:`dark`},{id:`red`,displayName:`Red`,type:`dark`},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`},{id:`vesper`,displayName:`Vesper`,type:`dark`},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`}]})))()}var qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO;function rO(){return(rO=o((()=>{RD(),KD(),qD=`sveltia-ui`,JD=`shiki`,ZD=!0,QD=(e,t)=>`${HD}/${e}/${t}`,$D=()=>(YD===void 0&&(YD=typeof indexedDB>`u`?null:new LD(qD,JD)),YD),eO=async e=>(XD??=(async()=>{let t=(await e.keys()).filter(e=>typeof e==`string`&&!e.startsWith(`4.4.3/`));t.length&&await e.deleteEntries(t)})(),XD),tO=async(e,t)=>{let n=ZD?$D():null;if(n)try{return await eO(n),await n.get(QD(e,t))}catch{return}},nO=async(e,t,n)=>{let r=ZD?$D():null;if(r)try{await r.set(QD(e,t),n)}catch{}}})))()}var iO,aO,oO,sO;function cO(){return(cO=o((()=>{iO=`modulepreload`,aO=function(e){return`/`+e},oO={},sO=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=aO(t,n),t=s(t),t in oO)return;oO[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:iO,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})))()}var lO,uO,dO,fO,pO,mO,hO,gO,_O,vO;function yO(){return(yO=o((()=>{KD(),cO(),lO=`https://unpkg.com/@shikijs`,uO=`https://unpkg.com/@sveltia/ui`,dO=()=>`${uO}@${UD}/dist/shiki-engine.js`,fO=e=>`${lO}/langs@${HD}/dist/${e}.mjs`,pO=e=>`${lO}/themes@${HD}/dist/${e}.mjs`,mO=async()=>sO(()=>import(dO()),[]),hO=async e=>sO(()=>import(fO(e)),[]),gO=async e=>sO(()=>import(pO(e)),[]),_O={loadEngine:mO,loadLanguage:hO,loadTheme:gO},vO=()=>_O})))()}var bO,xO,SO,CO;function wO(){return(wO=o((()=>{hw(),rC(),bO=`github-light`,xO=`github-dark`,SO=()=>{if(typeof document>`u`)return bO;let{theme:e}=document.documentElement.dataset;return e?e===`dark`?xO:bO:window.matchMedia(`(prefers-color-scheme: dark)`).matches?xO:bO},CO=e=>{if(typeof document>`u`)return()=>void 0;let t=()=>{let t=SO();e.update(()=>{nv().getChildren().forEach(e=>{iw(e)&&e.getTheme()!==t&&(e.setTheme(t),e.markDirty())})},{tag:vS})},n=new MutationObserver(t);n.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]});let r=window.matchMedia(`(prefers-color-scheme: dark)`);return r.addEventListener(`change`,t),()=>{n.disconnect(),r.removeEventListener(`change`,t)}}})))()}var TO,EO,DO,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,GO,KO;function qO(){return(qO=o((()=>{hw(),rC(),rO(),KD(),yO(),wO(),TO=[``,`plain`,`plaintext`,`text`,`txt`],EO=/^diff-([\w-]+)/i,DO=null,OO=null,kO=!1,AO=e=>EO.exec(e)?.[1]??null,jO=e=>TO.includes(e??``),MO=()=>!!OO,NO=()=>kO,PO=e=>{if(!OO)return!1;let t=AO(e)??e;return DO.isSpecialLang(t)?!0:OO.getLoadedLanguages().includes(t)},FO=(e,t)=>{e.update(()=>{let e=Q_(t);if(!iw(e))return;let n=e.getLanguage();n&&PO(n)&&!e.getIsSyntaxHighlightSupported()&&e.setIsSyntaxHighlightSupported(!0),e.markDirty()},{tag:vS})},IO=new Map,LO=(e,t,n,r)=>{let i=IO.get(e);if(!i){let n=new Map;i={promise:(async()=>{try{await t()}catch{}IO.delete(e),n.forEach((e,t)=>FO(e,t))})(),targets:n},IO.set(e,i)}return n&&r&&i.targets.set(r,n),i.promise},RO=(e,t)=>{if(!(OO||kO))return LO(`engine`,async()=>{try{DO=await vO().loadEngine(),OO=DO.createHighlighterCoreSync({engine:DO.createJavaScriptRegexEngine(),langs:[],themes:[]})}catch{kO=!0}},e,t)},zO=async(e,t,n)=>{let r=await tO(e,t);if(r)return r;let i=await n();if(!i)return;let a=i.default??i;return await nO(e,t,a),a},BO=e=>WD.find(({id:t,aliases:n})=>t===e||n?.includes(e))?.id??e,VO=(e,t,n)=>{let r=AO(e)??e;if(!OO||PO(r))return;let i=WD.find(({id:e,aliases:t})=>e===r||t?.includes(r));if(i)return LO(`lang/${i.id}`,async()=>{let e=await zO(`lang`,i.id,()=>vO().loadLanguage(i.id));e&&await OO.loadLanguage(e)},t,n)},HO=e=>OO?DO.isSpecialTheme(e)||OO.getLoadedThemes().includes(e):!1,UO=(e,t,n)=>{if(!(!OO||HO(e))&&GD.some(({id:t})=>t===e))return LO(`theme/${e}`,async()=>{let t=await zO(`theme`,e,()=>vO().loadTheme(e));t&&await OO.loadTheme(t)},t,n)},WO=(e,t)=>{let n=[];return e.forEach((e,r)=>{r&&n.push(A_()),e.forEach((e,r)=>{let{content:i}=e;if(t&&r===0&&i.length>0){let e=[`+`,`-`,`>`,`<`,` `],t=[`inserted`,`deleted`,`inserted`,`deleted`,`unchanged`],r=e.indexOf(i[0]);r!==-1&&(n.push(sw(e[r],t[r])),i=i.slice(1))}let a=DO.stringifyTokenStyle(e.htmlStyle||DO.getTokenStyleObject(e));f_(i,{linebreak:()=>n.push(A_()),tab:()=>n.push(Jg()),text:e=>{let t=sw(e);t.setStyle(a),n.push(t)}})})}),n},GO=(e,t)=>{let n=AO(t),{tokens:r}=OO.codeToTokens(e.getTextContent(),{lang:n??t,theme:e.getTheme()});return WO(r,!!n)},KO=(e,t,{theme:n}={})=>{let r=BO(AO(t)??t);if(!OO||jO(r)||!PO(r))return;let i=n??SO();if(HO(i))return OO.codeToHtml(e,{lang:r,theme:i})}})))()}var JO,YO,XO,ZO,QO,$O,ek,tk,nk;function rk(){return(rk=o((()=>{hw(),dC(),rC(),qO(),JO=`github-light`,YO={defaultLanguage:Goe,defaultTheme:JO,tokenize(e,t){let n=t||this.defaultLanguage;return n===null||jO(n)||!MO()?joe(e.getTextContent()):GO(e,n)}},XO=(e,t)=>{let n=t.getElementByKey(e.getKey());if(n===null)return;let r=e.getChildren(),i=r.length;if(i===n.__cachedChildrenLength)return;n.__cachedChildrenLength=i;let a=`1`,o=1;for(let e=0;e<i;e+=1)j_(r[e])&&(o+=1,a+=`\n${o}`);n.setAttribute(`data-gutter`,a)},ZO=(e,t)=>cw(e)&&cw(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType&&e.__style===t.__style||Yg(e)&&Yg(t)||j_(e)&&j_(t),QO=(e,t)=>{let n=0;for(;n<e.length&&ZO(e[n],t[n]);)n+=1;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o+=1,!ZO(e[r-o],t[i-o])){--o;break}return{from:n,to:r-o,nodesForReplacement:t.slice(n,i-o)}},$O=(e,t)=>{let n=Q_(e);if(!iw(n)||!n.isAttached())return;let r=o_();if(!Q(r)){t();return}let{anchor:i}=r,a=i.offset,o=i.type===`element`&&j_(n.getChildAtIndex(i.offset-1)),s=0;if(o||(s=a+i.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(o){i.getNode().select(a,a);return}n.getChildren().some(e=>{let t=Kg(e);if(t||j_(e)){let n=e.getTextContentSize();if(t&&n>=s)return e.select(s,s),!0;s-=n}return!1})}},ek=(e,t,n,r)=>{let i=r.getKey(),{nodesCurrentlyHighlighting:a}=n,o=r.getLanguage();!o&&t.defaultLanguage!==null&&(o=t.defaultLanguage,r.setLanguage(o));let s=r.getTheme();s||(s=t.defaultTheme,r.setTheme(s));let c=!o||jO(o),l=!1;if(c||!o||NO()?r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1):MO()?(HO(s)||(UO(s,e,i),l=!0),PO(o)?r.getIsSyntaxHighlightSupported()||r.setIsSyntaxHighlightSupported(!0):(!VO(o,e,i)&&r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1),l=!0)):(RO(e,i),l=!0),!l){if(a.has(i)){n.pendingRefresh.has(i)||(n.pendingRefresh.add(i),Tv(()=>{n.pendingRefresh.delete(i),e.update(()=>{let e=Q_(i);iw(e)&&e.markDirty()},{tag:vS})}));return}a.add(i),n.didTransform||(n.didTransform=!0,Tv(()=>{n.didTransform=!1,a.clear()})),$O(i,()=>{let e=Q_(i);if(!iw(e)||!e.isAttached())return!1;let n=e.getLanguage()||t.defaultLanguage,a=t.tokenize(e,n??void 0),{from:o,to:s,nodesForReplacement:c}=QO(e.getChildren(),a);return o!==s||c.length?(r.splice(o,s-o,c),!0):!1})}},tk=(e,t,n,r)=>{let i=r.getParent();iw(i)?ek(e,t,n,i):cw(r)&&r.replace(Gg(r.__text))},nk=(e,t=YO)=>{if(!e.hasNodes([pw,mw]))throw Error(`CodeNode or CodeHighlightNode not registered on editor`);let n=[];e._headless!==!0&&n.push(e.registerMutationListener(pw,t=>{e.read(`latest`,()=>{t.forEach((t,n)=>{if(t!==`destroyed`){let t=Q_(n);t!==null&&XO(t,e)}})})},{skipInitialization:!1}));let r={didTransform:!1,nodesCurrentlyHighlighting:new Set,pendingRefresh:new Set};return n.push(e.registerNodeTransform(pw,ek.bind(null,e,t,r)),e.registerNodeTransform(bS,tk.bind(null,e,t,r)),e.registerNodeTransform(mw,tk.bind(null,e,t,r)),Woe(e)),bb(...n)}})))()}var ik;function ak(){return(ak=o((()=>{BC(),ik={dependencies:[zC],export:e=>Vae(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=Bae();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`}})))()}var ok,sk,ck,lk,uk,dk;function fk(){return(fk=o((()=>{qE(),gD(),rC(),ok=/^(?:\|)(.+)(?:\|)\s?$/,sk=/^(\| ?:?-*:? ?)+\|\s?$/,ck=e=>{let t=e.getFirstChild();return eD(t)?t.getChildrenSize():0},lk=e=>{e=e.replace(/\\n/g,`
|
|
1979
1979
|
`);let t=XE(dD.NO_STATUS);return rE(e,KE,t),t},uk=e=>{let[,t]=e.match(ok)??[];return t?t.split(`|`).map(e=>lk(e)):null},dk={dependencies:[hD,pD,fD],export:e=>{if(!lD(e))return null;let t=[];return e.getChildren().forEach(e=>{let n=[];if(!eD(e))return;let r=!1;e.getChildren().forEach(e=>{ZE(e)&&(n.push(iE(KE,e).replace(/\n/g,`\\n`).trim()),e.__headerState===dD.ROW&&(r=!0))}),t.push(`| ${n.join(` | `)} |`),r&&t.push(`| ${n.map(()=>`---`).join(` | `)} |`)}),t.join(`
|
|
1980
|
-
`)},regExp:ok,replace:(e,t,[n])=>{if(sk.test(n)){let t=e.getPreviousSibling();if(!t||!lD(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!eD(r))return;r.getChildren().forEach(e=>{ZE(e)&&e.setHeaderStyles(dD.ROW,dD.ROW)}),e.remove();return}let r=uk(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!P_(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!Kg(e))break;let t=uk(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=cD();i.forEach(e=>{let t=$E();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:lk(``))});let c=e.getPreviousSibling();lD(c)&&ck(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`}})))()}var pk,mk,hk,gk,_k,vk;function yk(){return(yk=o((()=>{hw(),Qoe(),BC(),ise(),Tw(),Kw(),qE(),LT(),gD(),dC(),gd(),wD(),rC(),ND(),ID(),qO(),rk(),wO(),ak(),fk(),pk=()=>{let e=o_();if(!Q(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=DD.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof NS?t:cC(t,NS),vw(n)&&(r.push(`link`),n=cC(n,NS)),Iw(n)&&(n=cC(n,Hw)));let i=(()=>{if(!n)return`paragraph`;if(xT(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(Bw(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(_T(n))return`blockquote`;if(iw(n)||cw(n))return`code-block`;let e=n.getType();return kD.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},mk=(e,t)=>{let n=t.filter(({tag:e})=>!MD.includes(e));e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:iE(n).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:pk()}}))},hk=({enabledButtons:e=[],components:t=[],useMarkdownShortcuts:n,isCodeEditor:r=!1,defaultLanguage:i=`plain`})=>{let a={namespace:`editor`,nodes:[...t.map(({node:e})=>e),...new Set(Object.entries(AD).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[pw,mw]:[zC,hD,fD,pD]],theme:TD},o=[...t.map(({transformer:e})=>e),...new Set(Object.entries(jD).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[kE]:[ik,dk]],s=Lre(a),c=[],l=e=>{typeof e==`function`&&c.push(e)};return l(Dse(s)),l(Yoe(s)),l(nse(s,rse(),1e3)),n&&l(Bse(s,o)),(e.includes(`code-block`)||r)&&(l(nk(s,{...YO,defaultLanguage:i,defaultTheme:SO()})),l(CO(s))),e.includes(`link`)&&(l(s.registerCommand(Cw,e=>(cse(typeof e==`string`?e:null),!0),2)),l(s.registerCommand(Nx,e=>{let t=o_();if(!Q(t)||!lC(e,ClipboardEvent)||!e.clipboardData||e.target.matches(`input, textarea`))return!1;let n=e.clipboardData.getData(`text`).trim();return SD(n)?(t.isCollapsed()&&d_([Gg(n)]),!t.getNodes().some(e=>$(e)||Kg(e)&&!e.isSimpleText())&&(s.dispatchCommand(Cw,n),e.preventDefault(),!0)):!1},1))),e.includes(`bulleted-list`)&&l(s.registerCommand(Ww,()=>(Ow(`bullet`),!0),2)),e.includes(`numbered-list`)&&l(s.registerCommand(Gw,()=>(Ow(`number`),!0),2)),(e.includes(`bulleted-list`)||e.includes(`numbered-list`))&&l(s.registerCommand(jx,()=>hse(),2)),l(s.registerUpdateListener(()=>{s?.isComposing()||(async()=>{await hd(100),s.update(()=>{if(r){let e=nv(),t=e.getChildren();if(t.length===1&&!iw(t[0])&&t[0].remove(),t.length===0){let t=rw();t.setLanguage(i),e.append(t)}}mk(s,o)})})()})),l(s.registerRootListener(e=>{if(!e)return;let t=e=>{s.update(()=>{if(e.key===`Tab`){let t=o_();if(!Q(t))return;let n=t.anchor.getNode(),r=n instanceof NS?n:cC(n,NS);Iw(r)&&r.canIndent()&&(e.shiftKey?r.getIndent()>0&&(e.preventDefault(),s.dispatchCommand(tS,void 0)):(e.preventDefault(),s.dispatchCommand(eS,void 0)))}})};return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}})),{editor:s,enabledTransformers:o,dispose:()=>{c.forEach(e=>e())}}},gk=async e=>{jO(e)||(await RO(),await Promise.all([VO(BO(e)),UO(SO())]))},_k=async(e,t,n)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>gk(e))),t=PD(t),t=FD(t),new Promise((r,i)=>{e.update(()=>{try{rE(t,n),r(void 0)}catch(e){i(Error(`Failed to convert Markdown`,{cause:e}))}})})),vk=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})})))()}function bk(e,t){D(t,!0),G(e,Ck);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=Hs(t,xk),c=Pt(`editorStore`),l=M(void 0),u=j(()=>!(r()||i()));L(()=>{c.editor?.setEditable(z(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};Qs(()=>{let{editor:e,enabledTransformers:t,dispose:n}=hk(c.config);return c.editor=e,c.enabledTransformers=t,z(l)?.addEventListener(`Update`,d),z(l)?.addEventListener(`click`,f),()=>{z(l)?.removeEventListener(`Update`,d),z(l)?.removeEventListener(`click`,f),n(),e.setRootElement(null),c.initialized=!1,c.editor=void 0}}),L(()=>{c.editor&&z(l)&&(c.editor.setRootElement(z(l)),c.initialized=!0)});var p=Sk();ds(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:z(u),hidden:n(),[ms]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-1x91oe8`),Fs(p,e=>N(l,e),()=>z(l)),H(e,p),O()}var xk,Sk,Ck;function wk(){return(wk=o((()=>{Y(),J(),tc(),yk(),xk=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),Sk=B(`<div></div>`),Ck={hash:`svelte-1x91oe8`,code:`.lexical-root.svelte-1x91oe8 {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:120px;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-1x91oe8:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-1x91oe8 {padding:0;}.lexical-root.code.svelte-1x91oe8 .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-1x91oe8:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-1x91oe8 {border-color:var(--sui-error-border-color);}.lexical-root.svelte-1x91oe8 [dir]:first-child {margin-top:0;}.lexical-root.svelte-1x91oe8 [dir]:last-child {margin-bottom:0;}.lexical-root.svelte-1x91oe8 strong.italic {font-style:italic;}.lexical-root.svelte-1x91oe8 .strikethrough {text-decoration:line-through;}.lexical-root.svelte-1x91oe8 li.nested {list-style-type:none;}.lexical-root.svelte-1x91oe8 .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-1x91oe8 .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-1x91oe8 .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-1x91oe8 .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-1x91oe8 [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-1x91oe8 :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-1x91oe8 hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-1x91oe8 hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}`}})))()}var Tk;function Ek(){return(Ek=o((()=>{J(),Id(),yk(),Tk=()=>{let e=Ad(`editor`),t=M(!1),n=M(void 0),r=M(Dr([])),i=M(Dr({modes:[],enabledButtons:[],components:[],useMarkdownShortcuts:!0,isCodeEditor:!1,useEmojiAutocomplete:!1})),a=M(``),o=M(Dr({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),s=M(!0),c=M(!1),l=M(!1),u=async()=>{if(!z(n)||!z(t))return;let e=z(a);try{await _k(z(n),z(a)||``,z(r))}catch(t){N(c,!0),N(a,e,!0),console.error(t)}};return{get editor(){return z(n)},set editor(e){N(n,e,!0)},set enabledTransformers(e){N(r,e,!0)},get enabledTransformers(){return z(r)},get initialized(){return z(t)},set initialized(e){N(t,e,!0)},get config(){return z(i)},set config(e){N(i,e,!0),N(s,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return z(a)},set inputValue(e){let t=z(a)!==e;t&&N(a,e,!0),z(s)&&(t||z(n)?.getEditorState().isEmpty())&&u()},get selection(){return z(o)},set selection(e){N(o,e,!0)},get useRichText(){return z(s)},set useRichText(e){N(s,e,!0)},get hasConverterError(){return z(c)},set hasConverterError(e){N(c,e,!0),z(c)&&(N(s,!1),N(l,!0))},get showConverterError(){return z(l)},set showConverterError(e){N(l,e,!0)},editorId:e,convertMarkdown:u}}})))()}function Dk(e,t){D(t,!0);let n=q(t,`disabled`,3,!1),r=WD.map(({id:e,name:t,aliases:n=[]})=>({key:e,label:t,aliases:n})),i=Pt(`editorStore`),a=M(`plain`);L(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?nv().getChildren()[0]:Q_(i.selection.blockNodeKey);iw(e)&&N(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=j(()=>X(`_sui.text_editor.language`));Ym(e,{get disabled(){return n()},get"aria-label"(){return z(t)},get value(){return z(a)},onChange:async({detail:{value:e}})=>{!i.editor||z(a)===e||(await vk(i.editor),await gk(e),i.editor.update(()=>{let{blockNodeKey:t}=i.selection,n=i.config.isCodeEditor?nv().getChildren()[0]:t?Q_(t):null;iw(n)&&(n.setLanguage(e),N(a,e,!0))}))},children:(e,t)=>{var n=Ok(),i=F(n);{let e=j(()=>X(`_sui.text_editor.plain_text`));vm(i,{get label(){return z(e)},value:`plain`,dir:`ltr`})}ao(I(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).aliases;{let t=j(()=>n()===z(a)||i().includes(z(a)));vm(e,{get label(){return r()},get value(){return n()},get selected(){return z(t)},dir:`ltr`})}}),H(e,n)},$$slots:{default:!0}})}O()}var Ok;function kk(){return(kk=o((()=>{Y(),J(),hw(),Z(),rC(),tc(),ym(),Zm(),yk(),KD(),Ok=B(`<!> <!>`,1)})))()}function Ak(e,t){G(e,Nk);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`variant`,3,void 0),o=q(t,`ariaLabel`,3,void 0),s=Hs(t,jk);var c=Mk();ds(c,()=>({...s,role:`toolbar`,class:`sui toolbar ${i()??``} ${a()??``} ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o()}),void 0,void 0,void 0,`svelte-1ejzqiq`);var l=P(c);vo(P(l),()=>t.children??T),E(l),E(c),R(()=>l.inert=r()),H(e,c)}var jk,Mk,Nk;function Pk(){return(Pk=o((()=>{Y(),J(),jk=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`ariaLabel`,`children`]),Mk=B(`<div><div role="none" class="inner svelte-1ejzqiq"><!></div></div>`),Nk={hash:`svelte-1ejzqiq`,code:`[role=toolbar].svelte-1ejzqiq {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-1ejzqiq {--toolbar-size: var(--sui-primary-toolbar-size);}
|
|
1981
|
-
@media (width < 768px) {[role=toolbar].secondary.svelte-
|
|
1982
|
-
}[role=toolbar][aria-orientation=horizontal].svelte-
|
|
1983
|
-
@media (width < 768px) {.wrapper.svelte-
|
|
1984
|
-
}.wrapper.svelte-
|
|
1985
|
-
.clone.svelte-1rtdmxv {white-space:pre-wrap;word-break:break-all;}`}})))()}function Jse(e,t){D(t,!0);let n=Pt(`editorStore`),r=M(void 0),i=()=>{let e=o_();if(!Q(e)||!e.isCollapsed()||e.hasFormat(`code`))return;let t=e.anchor.getNode();if(!Kg(t)||!t.isSimpleText()||iw(t.getParent()))return;let{offset:n}=e.anchor,r=Bp(t.getTextContent().slice(0,n));if(r===void 0)return;let i=t.getKey();return{id:`${i}:${n-r.length-1}`,query:r,nodeKey:i,offset:n}},a=({query:e})=>{let t=window.getSelection();if(!t?.rangeCount)return;let n=t.getRangeAt(0).cloneRange();try{n.setStart(n.startContainer,Math.max(0,n.startOffset-e.length-1))}catch{}let{top:r,bottom:i,left:a,right:o,width:s,height:c}=n.getBoundingClientRect();return r||i||a||s||c?{top:r,bottom:i,left:a,right:o}:void 0},o=(e,t)=>{let{editor:r}=n,{query:i,nodeKey:a,offset:o}=t,s=o-i.length-1;r?.update(()=>{let t=Q_(a);if(!Kg(t)||t.getTextContent().slice(s,o)!==`:${i}`)return;let n=zp(e.emoji,t.getTextContent().slice(o));t.spliceText(s,i.length+1,n,!0)})},s=()=>{let{editor:e}=n;if(!e)return[];let t=e=>t=>z(r)?.isOpen()?(t?.preventDefault(),e(),!0):!1;return[e.registerCommand(Kx,t(()=>z(r)?.moveSelection(1)),4),e.registerCommand(Gx,t(()=>z(r)?.moveSelection(-1)),4),e.registerCommand(qx,t(()=>z(r)?.selectHighlighted()),4),e.registerCommand(Qx,t(()=>z(r)?.selectHighlighted()),4),e.registerCommand(Xx,t(()=>z(r)?.close(!0)),4),e.registerUpdateListener(({editorState:e})=>{let t;e.read(()=>{t=i()}),z(r)?.update(t)})]};L(()=>{if(!n.editor||!z(r))return;let e=s();return()=>{e.forEach(e=>e()),z(r)?.close()}}),L(()=>{n.useRichText||z(r)?.close()});{let t=j(()=>n.editor?.getRootElement()??void 0);Fs(wee(e,{getAnchorRect:a,onSelect:o,get ariaOwner(){return z(t)}}),e=>N(r,e,!0),()=>z(r))}O()}function Zk(){return(Zk=o((()=>{Y(),J(),hw(),rC(),tc(),Vp(),Hp()})))()}var Qk,$k;function eA(){return(eA=o((()=>{_(),Qk=e=>Array.isArray(e)&&e.every(e=>h(e)),$k=e=>[...new Set(e)]})))()}function Yse(e,t){D(t,!0);let n=Pt(`editorStore`),r=j(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{nc(e,{get name(){return ED[t.type].icon}})},a=j(()=>X(`_sui.text_editor.${ED[t.type].labelKey}`)),o=j(()=>!n.useRichText);$d(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(o)},get pressed(){return z(r)},onclick:async()=>{n.editor&&(await vk(n.editor),n.editor.dispatchCommand(Lx,t.type))},startIcon:i,$$slots:{startIcon:!0}})}O()}function tA(){return(tA=o((()=>{Y(),J(),Z(),rC(),tc(),of(),oc(),ND(),yk()})))()}function Xse(e,t){D(t,!0);let n=Pt(`editorStore`),r=j(()=>t.component.label),i=j(()=>t.component.icon),a=j(()=>t.component.createNode);{let t=e=>{var t=V(),n=F(t),r=e=>{nc(e,{get name(){return z(i)}})};W(n,e=>{z(i)&&e(r)}),H(e,t)},o=j(()=>!!z(i)),s=j(()=>z(i)?void 0:z(r)),c=j(()=>!n.useRichText);$d(e,{get iconic(){return z(o)},get label(){return z(s)},get title(){return z(r)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(c)},onclick:()=>{n.editor?.update(()=>{d_([z(a)(),N_()])})},startIcon:t,$$slots:{startIcon:!0}})}O()}function nA(){return(nA=o((()=>{Y(),J(),rC(),tc(),of(),oc()})))()}function Zse(e,t){let n=Oa();D(t,!0);let r=`link`,i=Pt(`editorStore`),a=j(()=>i.selection.inlineTypes.includes(r)),o=M(!1),s=M(`create`),c=M(!1),l=M(``),u=M(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=ure().trim();N(l,e,!0),N(c,!!e),N(s,`create`),N(o,!0)})},f=()=>{i.editor?.dispatchCommand(Cw,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=o_();if(Q(e)){let t=e.anchor.getNode(),n=(t instanceof xw?t:cC(t,xw))?.getURL();if(n){N(c,!0),N(l,n,!0),N(s,`update`),N(o,!0);return}}f()})},m=()=>{z(a)?p():d()},h=e=>{ad(e,`Enter`)&&z(l)&&N(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&z(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=o_()??s_()?.clone();Q(t)||(t=r_()),z(c)||(N(u,z(u).trim(),!0),N(u,z(u)||z(l),!0),d_([Gg(z(u))])),rv(t),e(void 0)})}),await vk(i.editor),i.editor.dispatchCommand(Cw,z(l))}N(l,``),N(u,``)},_=()=>{i.editor?.registerCommand(Bx,e=>(ad(e,Zu()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};L(()=>{i.editor&&_()});var v=aA(),y=F(v);{let e=e=>{nc(e,{get name(){return ED[r].icon}})},t=j(()=>X(`_sui.text_editor.${ED[r].labelKey}`)),n=j(()=>!i.useRichText);$d(y,{iconic:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return z(n)},get pressed(){return z(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=I(y,2);{let e=e=>{var t=V(),n=F(t),r=e=>{{let t=j(()=>X(`_sui.remove`));$d(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{f(),N(s,`remove`),N(o,!1)}})}};W(n,e=>{z(s)!==`create`&&e(r)}),H(e,t)},t=j(()=>z(s)===`create`?X(`_sui.text_editor.insert_link`):X(`_sui.text_editor.update_link`)),r=j(()=>!z(l)),i=j(()=>z(s)===`create`?X(`_sui.insert`):X(`_sui.update`));wp(b,{get title(){return z(t)},get okDisabled(){return z(r)},get okLabel(){return z(i)},onClose:e=>{g(e)},get open(){return z(o)},set open(e){N(o,e,!0)},get value(){return z(l)},set value(e){N(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=iA(),i=F(r),a=P(i),o=P(a,!0);E(a);var s=I(a,2);{let e=j(()=>X(`_sui.text_editor.url`));Wp(s,{dir:`ltr`,get id(){return`${n}-url`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(l)},set value(e){N(l,e,!0)}})}E(i);var d=I(i,2),f=e=>{var t=rA(),r=P(t),i=P(r,!0);E(r);var a=I(r,2);{let e=j(()=>X(`_sui.text_editor.text`));Wp(a,{dir:`auto`,get id(){return`${n}-text`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(u)},set value(e){N(u,e,!0)}})}E(t),R(e=>{K(r,`for`,`${n}-text`),U(i,e)},[()=>X(`_sui.text_editor.text`)]),H(e,t)};W(d,e=>{z(c)||e(f)}),R(e=>{K(a,`for`,`${n}-url`),U(o,e)},[()=>X(`_sui.text_editor.url`)]),H(e,r)},$$slots:{footerExtra:!0,default:!0}})}H(e,v),O()}var rA,iA,aA;function oA(){return(oA=o((()=>{Y(),J(),Tw(),dC(),Z(),ud(),rC(),tc(),of(),Mp(),oc(),Yp(),ND(),yk(),rA=B(`<div role="none"><label> </label> <!></div>`),iA=B(`<div role="none"><label> </label> <!></div> <!>`,1),aA=B(`<!> <!>`,1)})))()}function Qse(e,t){D(t,!0);let n=Pt(`editorStore`);{let r=e=>{nc(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{bm(e,{children:(e,r)=>{var i=V();ao(F(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).createNode;Sm(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{d_([a()(),N_()])})},startIcon:e=>{var t=V(),n=F(t),r=e=>{nc(e,{get name(){return i()}})};W(n,e=>{i()&&e(r)}),H(e,t)},$$slots:{startIcon:!0}})}),H(e,i)},$$slots:{default:!0}})},a=j(()=>!n.useRichText),o=j(()=>X(`_sui.insert`));Jf(e,{get disabled(){return z(a)},get label(){return z(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}O()}function sA(){return(sA=o((()=>{Y(),J(),Z(),rC(),tc(),oc(),Zf(),Cm(),xm()})))()}function $se(e,t){D(t,!0);let n=Pt(`editorStore`),r=j(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await vk(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{oC(o_(),()=>bT(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{oC(o_(),()=>N_())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(Ww,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(Gw,void 0),t.type===`blockquote`&&n.editor.update(()=>{oC(o_(),()=>gT())}),t.type===`code-block`&&n.editor.update(()=>{oC(o_(),()=>rw())})};var a=V();Za(F(a),()=>z(r),e=>{{let n=e=>{nc(e,{get name(){return ED[t.type].icon}})},a=j(()=>X(`_sui.text_editor.${ED[t.type].labelKey}`));wm(e,{get label(){return z(a)},get checked(){return z(r)},onclick:()=>{z(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),H(e,a),O()}function cA(){return(cA=o((()=>{Y(),J(),hw(),Kw(),LT(),sC(),Z(),rC(),tc(),oc(),Tm(),ND(),yk()})))()}function ece(e,t){D(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1),i=Pt(`editorStore`),a=j(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`button`)),o=j(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`menuitem`)),s=j(()=>$k([`paragraph`,...i.config.enabledButtons.filter(e=>kD.includes(e))])),c=j(()=>$k(i.config.enabledButtons.filter(e=>OD.includes(e))));{let t=j(()=>n()||r()),l=j(()=>X(`_sui.text_editor.text_editor`));Fk(e,{get disabled(){return z(t)},get"aria-label"(){return z(l)},children:(e,t)=>{var n=dA(),r=F(n),l=e=>{{let t=e=>{{let t=j(()=>ED[i.selection.blockType??``]?.icon??`format_paragraph`);nc(e,{get name(){return z(t)}})}},n=e=>{{let t=j(()=>X(`_sui.text_editor.text_style_options`));bm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();ao(F(n),16,()=>z(s),e=>e,(e,t)=>{$se(e,{get type(){return t}})}),H(e,n)},$$slots:{default:!0}})}},r=j(()=>!i.useRichText),a=j(()=>X(`_sui.text_editor.show_text_style_options`));Jf(e,{get disabled(){return z(r)},get"aria-label"(){return z(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:t,popup:n,$$slots:{startIcon:!0,popup:!0}})}};W(r,e=>{z(s).length>1&&e(l)});var u=I(r,2),d=e=>{var t=lA(),n=F(t);rp(n,{orientation:`vertical`});var r=I(n,2);{let e=j(()=>!i.useRichText);Dk(r,{get disabled(){return z(e)}})}H(e,t)},f=e=>{var t=lA(),n=F(t),r=e=>{var t=lA(),n=F(t);rp(n,{orientation:`vertical`}),lee(I(n,2),{children:(e,t)=>{var n=V();ao(F(n),16,()=>z(c),e=>e,(e,t)=>{var n=V(),r=F(n),i=e=>{Zse(e,{})},a=e=>{Yse(e,{get type(){return t}})};W(r,e=>{t===`link`?e(i):e(a,-1)}),H(e,n)}),H(e,n)},$$slots:{default:!0}}),H(e,t)};W(n,e=>{z(c).length&&e(r)});var s=I(n,2),l=e=>{var t=uA(),n=F(t);rp(n,{orientation:`vertical`});var r=I(n,2);ao(r,17,()=>z(a),e=>e.id,(e,t)=>{Xse(e,{get component(){return z(t)}})});var i=I(r,2),s=e=>{Qse(e,{get components(){return z(o)}})};W(i,e=>{z(o).length&&e(s)}),H(e,t)};W(s,e=>{i.config.components.length&&e(l)}),H(e,t)};W(u,e=>{i.selection.blockType===`code-block`?e(d):e(f,-1)});var p=I(u,2);cp(p,{flex:!0});var m=I(p,2),h=e=>{{let t=e=>{nc(e,{name:`markdown`})},n=j(()=>!i.useRichText),r=j(()=>X(`_sui.text_editor.edit_in_markdown`));$d(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};W(m,e=>{i.config.modes.length>1&&e(h)}),H(e,n)},$$slots:{default:!0}})}O()}var lA,uA,dA;function fA(){return(fA=o((()=>{Y(),J(),Z(),eA(),tc(),bf(),of(),sp(),fp(),oc(),Zf(),xm(),ND(),kk(),tA(),nA(),oA(),sA(),cA(),zk(),lA=B(`<!> <!>`,1),uA=B(`<!> <!> <!>`,1),dA=B(`<!> <!> <!> <!>`,1)})))()}function tce(e,t){D(t,!0),G(e,hA);let n=q(t,`value`,15,``),r=q(t,`flex`,3,!1),i=q(t,`dir`,3,void 0),a=q(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=q(t,`buttons`,19,()=>[...OD,...kD]),s=q(t,`components`,19,()=>[]),c=q(t,`useMarkdownShortcuts`,3,!0),l=q(t,`useEmojiAutocomplete`,3,!0),u=q(t,`hidden`,3,!1),d=q(t,`disabled`,3,!1),f=q(t,`readonly`,3,!1),p=q(t,`required`,3,!1),m=q(t,`invalid`,3,!1),h=Hs(t,pA),g=Tk();g.config={...g.config,modes:a(),enabledButtons:o(),components:s(),useMarkdownShortcuts:c(),useEmojiAutocomplete:l()},Ft(`editorStore`,g),L(()=>{if(!g.initialized)return;let e=n();Li(()=>{g.inputValue=e})}),L(()=>{if(!g.initialized)return;let e=g.inputValue;Li(()=>{n()!==e&&n(e)})});var _=mA(),v=F(_);ds(v,()=>({...h,role:`none`,class:`sui text-editor`,hidden:u(),[ms]:{flex:r()}}),void 0,void 0,void 0,`svelte-1fllky`);var y=P(v);ece(y,{get disabled(){return d()},get readonly(){return f()}});var b=I(y,2);{let e=j(()=>!g.useRichText||u());bk(b,{get hidden(){return z(e)},get disabled(){return d()},get readonly(){return f()},get required(){return p()},get invalid(){return m()}})}var x=I(b,2);{let e=j(()=>g.useRichText||u());Gk(x,{autoResize:!0,get useEmojiAutocomplete(){return l()},get flex(){return r()},get dir(){return i()},get hidden(){return z(e)},get disabled(){return d()},get readonly(){return f()},get required(){return p()},get invalid(){return m()},get value(){return g.inputValue},set value(e){g.inputValue=e}})}var S=I(x,2),C=e=>{Jse(e,{})};W(S,e=>{g.config.useEmojiAutocomplete&&!d()&&!f()&&e(C)}),E(v);var w=I(v,2),ee=e=>{Lh(e,{get show(){return g.showConverterError},set show(e){g.showConverterError=e},children:(e,t)=>{sc(e,{status:`error`,children:(e,t)=>{mt();var n=Da();R(e=>U(n,e),[()=>X(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(w,e=>{g.showConverterError&&e(ee)}),H(e,_),O()}var pA,mA,hA;function gA(){return(gA=o((()=>{Y(),J(),Z(),tc(),dc(),Xk(),Vh(),ND(),Zk(),wk(),Ek(),fA(),pA=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`useMarkdownShortcuts`,`useEmojiAutocomplete`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),mA=B(`<div><!> <!> <!> <!></div> <!>`,1),hA={hash:`svelte-1fllky`,code:`.text-editor.svelte-1fllky {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.text-editor.svelte-1fllky:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.text-editor.flex.svelte-1fllky:not([hidden]) {display:block;}.text-editor.svelte-1fllky .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-1fllky .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`}})))()}function nce(e,t){let n=Oa();D(t,!0),G(e,yA);let r=q(t,`value`,15),i=q(t,`invalid`,15,!1),a=q(t,`flex`,3,!1),o=q(t,`min`,3,void 0),s=q(t,`max`,3,void 0),c=q(t,`step`,3,1),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`required`,3,!1),p=Hs(t,_A),m=M(!1),h=M(``),g=j(()=>String(c()).split(`.`)[1]?.length||0),_=j(()=>typeof o()==`number`&&Number(z(h)||0)<=o()),v=j(()=>typeof s()==`number`&&Number(z(h)||0)>=s());L(()=>{let e=String(r()??``);Li(()=>{z(h)!==e&&N(h,e,!0)})}),L(()=>{let e=z(h).trim()?Number(z(h)):NaN;r(Number.isNaN(e)?void 0:e)}),L(()=>{z(m)&&i(f()&&(r()===void 0||z(h)===``)||z(h)!==void 0&&z(h)!==``&&(Number.isNaN(Number(z(h)))||typeof o()==`number`&&Number(z(h)||0)<o()||typeof s()==`number`&&Number(z(h)||0)>s()))});let y=()=>{z(_)||Number.isNaN(Number(z(h)))||N(h,Number(Number(z(h)||0)-c()).toFixed(z(g)),!0)},b=()=>{z(v)||Number.isNaN(Number(z(h)))||N(h,Number(Number(z(h)||0)+c()).toFixed(z(g)),!0)};var x=vA();let S;var C=P(x),w=P(C);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.increaseIcon),H(e,n)},a=e=>{nc(e,{name:`expand_less`})};W(r,e=>{t.increaseIcon?e(i):e(a,-1)}),H(e,n)},i=j(()=>u()||d()||Number.isNaN(Number(r()))||z(v)),a=j(()=>X(`_sui.number_input.increase`));$d(w,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var ee=I(w,2);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.decreaseIcon),H(e,n)},a=e=>{nc(e,{name:`expand_more`})};W(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),H(e,n)},i=j(()=>u()||d()||Number.isNaN(Number(r()))||z(_)),a=j(()=>X(`_sui.number_input.decrease`));$d(ee,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}E(C);var te=I(C,2);{let e=j(()=>Number(r()||0)),c=j(()=>z(g)>0?`decimal`:`numeric`);Wp(te,Us({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return z(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return z(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),z(m)||N(m,!0)},oninput:()=>{z(m)||N(m,!0)},get onChange(){return t.onChange},get value(){return z(h)},set value(e){N(h,e,!0)}}))}E(x),R(()=>{S=es(x,1,`sui number-input ${t.class??``}`,`svelte-te5r0y`,S,{flex:a(),disabled:u(),readonly:d()}),K(x,`hidden`,l())}),H(e,x),O()}var _A,vA,yA;function bA(){return(bA=o((()=>{Y(),J(),Z(),tc(),of(),oc(),Yp(),_A=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),vA=B(`<div role="none"><div role="none" class="buttons svelte-te5r0y"><!> <!></div> <!></div>`),yA={hash:`svelte-te5r0y`,code:`.number-input.svelte-te5r0y {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-te5r0y:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-te5r0y :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-te5r0y :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-te5r0y :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-te5r0y :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-te5r0y .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-te5r0y {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-te5r0y button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-te5r0y button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-te5r0y button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-te5r0y button .icon {font-size:20px;}`}})))()}function xA(e,t){let n=Oa();D(t,!0),G(e,wA);let r=q(t,`value`,15),i=q(t,`flex`,3,!1),a=q(t,`monospace`,3,!0),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=Hs(t,SA),f=M(void 0),p=M(!1);var m=CA();let h;var g=P(m);Wp(g,Us({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return z(f)},set element(e){N(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=I(g,2);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.visibilityIcon),H(e,n)},a=e=>{{let t=j(()=>z(p)?`visibility_off`:`visibility`);nc(e,{get name(){return z(t)}})}};W(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),H(e,n)},r=j(()=>s()||c()),i=j(()=>X(z(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));$d(_,{iconic:!0,get disabled(){return z(r)},get pressed(){return z(p)},get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{N(p,!z(p))},startIcon:e,$$slots:{startIcon:!0}})}E(m),R(()=>{h=es(m,1,`sui secret-input ${t.class??``}`,`svelte-1l49q7z`,h,{flex:i(),disabled:s(),readonly:c(),show:z(p)}),K(m,`hidden`,o())}),H(e,m),O()}var SA,CA,wA;function TA(){return(TA=o((()=>{Y(),J(),Z(),of(),oc(),Yp(),SA=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),CA=B(`<div role="none"><!> <!></div>`),wA={hash:`svelte-1l49q7z`,code:`.secret-input.svelte-1l49q7z {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-1l49q7z:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-1l49q7z input {-webkit-text-security:none;}.secret-input.svelte-1l49q7z .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-1l49q7z input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-1l49q7z button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-1l49q7z button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-1l49q7z button .icon {font-size:var(--sui-font-size-xx-large);}`}})))()}function rce(e){G(e,DA),H(e,EA())}var EA,DA;function OA(){return(OA=o((()=>{Y(),J(),EA=B(`<link rel="preconnect" href="https://cdn.jsdelivr.net/"/>`),DA={hash:`svelte-1on2l7h`,code:`
|
|
1980
|
+
`)},regExp:ok,replace:(e,t,[n])=>{if(sk.test(n)){let t=e.getPreviousSibling();if(!t||!lD(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!eD(r))return;r.getChildren().forEach(e=>{ZE(e)&&e.setHeaderStyles(dD.ROW,dD.ROW)}),e.remove();return}let r=uk(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!P_(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!Kg(e))break;let t=uk(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=cD();i.forEach(e=>{let t=$E();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:lk(``))});let c=e.getPreviousSibling();lD(c)&&ck(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`}})))()}var pk,mk,hk,gk,_k,vk;function yk(){return(yk=o((()=>{hw(),Qoe(),BC(),ise(),Tw(),Kw(),qE(),LT(),gD(),dC(),gd(),wD(),rC(),ND(),ID(),qO(),rk(),wO(),ak(),fk(),pk=()=>{let e=o_();if(!Q(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=DD.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof NS?t:cC(t,NS),vw(n)&&(r.push(`link`),n=cC(n,NS)),Iw(n)&&(n=cC(n,Hw)));let i=(()=>{if(!n)return`paragraph`;if(xT(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(Bw(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(_T(n))return`blockquote`;if(iw(n)||cw(n))return`code-block`;let e=n.getType();return kD.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},mk=(e,t)=>{let n=t.filter(({tag:e})=>!MD.includes(e));e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:iE(n).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:pk()}}))},hk=({enabledButtons:e=[],components:t=[],useMarkdownShortcuts:n,isCodeEditor:r=!1,defaultLanguage:i=`plain`})=>{let a={namespace:`editor`,nodes:[...t.map(({node:e})=>e),...new Set(Object.entries(AD).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[pw,mw]:[zC,hD,fD,pD]],theme:TD},o=[...t.map(({transformer:e})=>e),...new Set(Object.entries(jD).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[kE]:[ik,dk]],s=Lre(a),c=[],l=e=>{typeof e==`function`&&c.push(e)};return l(Dse(s)),l(Yoe(s)),l(nse(s,rse(),1e3)),n&&l(Bse(s,o)),(e.includes(`code-block`)||r)&&(l(nk(s,{...YO,defaultLanguage:i,defaultTheme:SO()})),l(CO(s))),e.includes(`link`)&&(l(s.registerCommand(Cw,e=>(cse(typeof e==`string`?e:null),!0),2)),l(s.registerCommand(Nx,e=>{let t=o_();if(!Q(t)||!lC(e,ClipboardEvent)||!e.clipboardData||e.target.matches(`input, textarea`))return!1;let n=e.clipboardData.getData(`text`).trim();return SD(n)?(t.isCollapsed()&&d_([Gg(n)]),!t.getNodes().some(e=>$(e)||Kg(e)&&!e.isSimpleText())&&(s.dispatchCommand(Cw,n),e.preventDefault(),!0)):!1},1))),e.includes(`bulleted-list`)&&l(s.registerCommand(Ww,()=>(Ow(`bullet`),!0),2)),e.includes(`numbered-list`)&&l(s.registerCommand(Gw,()=>(Ow(`number`),!0),2)),(e.includes(`bulleted-list`)||e.includes(`numbered-list`))&&l(s.registerCommand(jx,()=>hse(),2)),l(s.registerUpdateListener(()=>{s?.isComposing()||(async()=>{await hd(100),s.update(()=>{if(r){let e=nv(),t=e.getChildren();if(t.length===1&&!iw(t[0])&&t[0].remove(),t.length===0){let t=rw();t.setLanguage(i),e.append(t)}}mk(s,o)})})()})),l(s.registerRootListener(e=>{if(!e)return;let t=e=>{s.update(()=>{if(e.key===`Tab`){let t=o_();if(!Q(t))return;let n=t.anchor.getNode(),r=n instanceof NS?n:cC(n,NS);Iw(r)&&r.canIndent()&&(e.shiftKey?r.getIndent()>0&&(e.preventDefault(),s.dispatchCommand(tS,void 0)):(e.preventDefault(),s.dispatchCommand(eS,void 0)))}})};return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}})),{editor:s,enabledTransformers:o,dispose:()=>{c.forEach(e=>e())}}},gk=async e=>{jO(e)||(await RO(),await Promise.all([VO(BO(e)),UO(SO())]))},_k=async(e,t,n)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>gk(e))),t=PD(t),t=FD(t),new Promise((r,i)=>{e.update(()=>{try{rE(t,n),r(void 0)}catch(e){i(Error(`Failed to convert Markdown`,{cause:e}))}})})),vk=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})})))()}function bk(e,t){D(t,!0),G(e,Ck);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=Hs(t,xk),c=Pt(`editorStore`),l=M(void 0),u=j(()=>!(r()||i()));L(()=>{c.editor?.setEditable(z(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};Qs(()=>{let{editor:e,enabledTransformers:t,dispose:n}=hk(c.config);return c.editor=e,c.enabledTransformers=t,z(l)?.addEventListener(`Update`,d),z(l)?.addEventListener(`click`,f),()=>{z(l)?.removeEventListener(`Update`,d),z(l)?.removeEventListener(`click`,f),n(),e.setRootElement(null),c.initialized=!1,c.editor=void 0}}),L(()=>{c.editor&&z(l)&&(c.editor.setRootElement(z(l)),c.initialized=!0)});var p=Sk();ds(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:z(u),hidden:n(),[ms]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-1ijzq3l`),Fs(p,e=>N(l,e),()=>z(l)),H(e,p),O()}var xk,Sk,Ck;function wk(){return(wk=o((()=>{Y(),J(),tc(),yk(),xk=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),Sk=B(`<div></div>`),Ck={hash:`svelte-1ijzq3l`,code:`.lexical-root.svelte-1ijzq3l {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:120px;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-1ijzq3l:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-1ijzq3l {padding:0;}.lexical-root.code.svelte-1ijzq3l .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-1ijzq3l:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-1ijzq3l {border-color:var(--sui-error-border-color);}.lexical-root.svelte-1ijzq3l [dir]:first-child {margin-top:0;}.lexical-root.svelte-1ijzq3l [dir]:last-child {margin-bottom:0;}.lexical-root.svelte-1ijzq3l strong.italic {font-style:italic;}.lexical-root.svelte-1ijzq3l .strikethrough {text-decoration:line-through;}.lexical-root.svelte-1ijzq3l li.nested {list-style-type:none;}.lexical-root.svelte-1ijzq3l .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-1ijzq3l .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-1ijzq3l .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-1ijzq3l .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-1ijzq3l [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-1ijzq3l :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-1ijzq3l hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-1ijzq3l hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}`}})))()}var Tk;function Ek(){return(Ek=o((()=>{J(),Id(),yk(),Tk=()=>{let e=Ad(`editor`),t=M(!1),n=M(void 0),r=M(Dr([])),i=M(Dr({modes:[],enabledButtons:[],components:[],useMarkdownShortcuts:!0,isCodeEditor:!1,useEmojiAutocomplete:!1})),a=M(``),o=M(Dr({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),s=M(!0),c=M(!1),l=M(!1),u=async()=>{if(!z(n)||!z(t))return;let e=z(a);try{await _k(z(n),z(a)||``,z(r))}catch(t){N(c,!0),N(a,e,!0),console.error(t)}};return{get editor(){return z(n)},set editor(e){N(n,e,!0)},set enabledTransformers(e){N(r,e,!0)},get enabledTransformers(){return z(r)},get initialized(){return z(t)},set initialized(e){N(t,e,!0)},get config(){return z(i)},set config(e){N(i,e,!0),N(s,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return z(a)},set inputValue(e){let t=z(a)!==e;t&&N(a,e,!0),z(s)&&(t||z(n)?.getEditorState().isEmpty())&&u()},get selection(){return z(o)},set selection(e){N(o,e,!0)},get useRichText(){return z(s)},set useRichText(e){N(s,e,!0)},get hasConverterError(){return z(c)},set hasConverterError(e){N(c,e,!0),z(c)&&(N(s,!1),N(l,!0))},get showConverterError(){return z(l)},set showConverterError(e){N(l,e,!0)},editorId:e,convertMarkdown:u}}})))()}function Dk(e,t){D(t,!0);let n=q(t,`disabled`,3,!1),r=WD.map(({id:e,name:t,aliases:n=[]})=>({key:e,label:t,aliases:n})),i=Pt(`editorStore`),a=M(`plain`);L(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?nv().getChildren()[0]:Q_(i.selection.blockNodeKey);iw(e)&&N(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=j(()=>X(`_sui.text_editor.language`));Ym(e,{get disabled(){return n()},get"aria-label"(){return z(t)},get value(){return z(a)},onChange:async({detail:{value:e}})=>{!i.editor||z(a)===e||(await vk(i.editor),await gk(e),i.editor.update(()=>{let{blockNodeKey:t}=i.selection,n=i.config.isCodeEditor?nv().getChildren()[0]:t?Q_(t):null;iw(n)&&(n.setLanguage(e),N(a,e,!0))}))},children:(e,t)=>{var n=Ok(),i=F(n);{let e=j(()=>X(`_sui.text_editor.plain_text`));vm(i,{get label(){return z(e)},value:`plain`,dir:`ltr`})}ao(I(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).aliases;{let t=j(()=>n()===z(a)||i().includes(z(a)));vm(e,{get label(){return r()},get value(){return n()},get selected(){return z(t)},dir:`ltr`})}}),H(e,n)},$$slots:{default:!0}})}O()}var Ok;function kk(){return(kk=o((()=>{Y(),J(),hw(),Z(),rC(),tc(),ym(),Zm(),yk(),KD(),Ok=B(`<!> <!>`,1)})))()}function Ak(e,t){G(e,Nk);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`variant`,3,void 0),o=q(t,`ariaLabel`,3,void 0),s=Hs(t,jk);var c=Mk();ds(c,()=>({...s,role:`toolbar`,class:`sui toolbar ${i()??``} ${a()??``} ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o()}),void 0,void 0,void 0,`svelte-1nvxzoj`);var l=P(c);vo(P(l),()=>t.children??T),E(l),E(c),R(()=>l.inert=r()),H(e,c)}var jk,Mk,Nk;function Pk(){return(Pk=o((()=>{Y(),J(),jk=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`ariaLabel`,`children`]),Mk=B(`<div><div role="none" class="inner svelte-1nvxzoj"><!></div></div>`),Nk={hash:`svelte-1nvxzoj`,code:`[role=toolbar].svelte-1nvxzoj {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-1nvxzoj {--toolbar-size: var(--sui-primary-toolbar-size);}
|
|
1981
|
+
@media (width < 768px) {[role=toolbar].secondary.svelte-1nvxzoj {padding-inline:0;}
|
|
1982
|
+
}[role=toolbar][aria-orientation=horizontal].svelte-1nvxzoj {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-1nvxzoj {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-1nvxzoj button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-1nvxzoj h2 {flex:auto;display:flex;align-items:center;gap:8px;margin:0;padding-inline-end:12px;min-width:0;font-size:var(--sui-font-size-x-large);}[role=toolbar].svelte-1nvxzoj h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-1nvxzoj h2 span:not(.sui.truncated-text) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal, normal);opacity:0.8;}[role=toolbar].svelte-1nvxzoj .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-1nvxzoj .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-1nvxzoj {display:contents;}`}})))()}function Fk(e,t){D(t,!0),G(e,Rk),q(t,`code`,11,``),q(t,`lang`,11,`plain`);let n=q(t,`disabled`,3,!1),r=Hs(t,Ik);var i=Lk();Ak(P(i),Us(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=V();vo(F(r),()=>t.children??T),H(e,r)},$$slots:{default:!0}})),E(i),H(e,i),O()}var Ik,Lk,Rk;function zk(){return(zk=o((()=>{Y(),J(),Pk(),Ik=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]),Lk=B(`<div role="none" class="wrapper svelte-swvaoh"><!></div>`),Rk={hash:`svelte-swvaoh`,code:`.wrapper.svelte-swvaoh {display:contents;}.wrapper.svelte-swvaoh [role=toolbar] {position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;gap:4px;border-width:1px 1px 0;border-style:solid;border-color:var(--sui-textbox-border-color);border-start-start-radius:var(--sui-textbox-border-radius);border-start-end-radius:var(--sui-textbox-border-radius);border-end-start-radius:0;border-end-end-radius:0;padding:0 4px;height:auto;min-height:40px;background-color:var(--sui-tertiary-background-color);}
|
|
1983
|
+
@media (width < 768px) {.wrapper.svelte-swvaoh [role=toolbar] {flex-wrap:wrap;height:auto;}
|
|
1984
|
+
}.wrapper.svelte-swvaoh .sui.menu-button {padding:0 4px;}.wrapper.svelte-swvaoh .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-swvaoh .sui.button-group {gap:4px;}`}})))()}function Kse(e,t){D(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1);{let t=j(()=>n()||r()),i=j(()=>X(`_sui.text_editor.code_editor`));Fk(e,{get disabled(){return z(t)},get"aria-label"(){return z(i)},children:(e,t)=>{{let t=j(()=>n()||r());Dk(e,{get disabled(){return z(t)}})}},$$slots:{default:!0}})}O()}function Bk(){return(Bk=o((()=>{Y(),J(),Z(),kk(),zk()})))()}function qse(e,t){D(t,!0),G(e,Uk);let n=q(t,`code`,15,``),r=q(t,`lang`,15,`plain`),i=q(t,`showLanguageSwitcher`,3,!1),a=q(t,`flex`,3,!1),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=Hs(t,Vk),f=Tk();f.config={...f.config,useMarkdownShortcuts:!1,isCodeEditor:!0,defaultLanguage:r()},Ft(`editorStore`,f),L(()=>{f.initialized&&(n(),r(),Li(()=>{let e=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``;f.inputValue=e}))}),L(()=>{f.initialized&&(f.inputValue,Li(()=>{let{lang:e=`plain`,code:t=``}=f.inputValue.match(/^```(?<lang>\w+?)?\n(?:(?<code>.*)\n)?```/s)?.groups??{};r()!==e&&r(e),n()!==t&&n(t)}))});var p=Hk(),m=F(p);ds(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[ms]:{flex:a()}}),void 0,void 0,void 0,`svelte-m37frt`);var h=P(m),g=e=>{Kse(e,{get disabled(){return s()},get readonly(){return c()}})};W(h,e=>{i()&&e(g)}),bk(I(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),E(m);var _=I(m,2),v=e=>{Lh(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{sc(e,{status:`error`,children:(e,t)=>{mt();var n=Da();R(e=>U(n,e),[()=>X(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(_,e=>{f.showConverterError&&e(v)}),H(e,p),O()}var Vk,Hk,Uk;function Wk(){return(Wk=o((()=>{Y(),J(),Z(),tc(),dc(),Vh(),wk(),Ek(),Bk(),Vk=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),Hk=B(`<div><!> <!></div> <!>`,1),Uk={hash:`svelte-m37frt`,code:`.code-editor.svelte-m37frt {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.code-editor.svelte-m37frt:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.code-editor.flex.svelte-m37frt:not([hidden]) {display:block;}`}})))()}function Gk(e,t){D(t,!0),G(e,Yk);let n=q(t,`value`,15,``),r=q(t,`element`,15),i=q(t,`flex`,3,!1),a=q(t,`dir`,3,void 0),o=q(t,`name`,3,void 0),s=q(t,`autoResize`,3,!1),c=q(t,`useEmojiAutocomplete`,3,!1),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`required`,3,!1),p=q(t,`invalid`,3,!1),m=Hs(t,Kk);var h=Jk();let g;var _=P(h);Cn(_),ds(_,()=>({...m,dir:a(),name:o(),disabled:u()||void 0,readonly:d()||void 0,"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-required":f(),"aria-invalid":p(),[ms]:{"auto-resize":s()}}),void 0,void 0,void 0,`svelte-1ihfds2`),Fs(_,e=>r(e),()=>r());var v=I(_,2),y=e=>{var t=qk(),r=P(t,!0);E(t),R(()=>{K(t,`dir`,a()),U(r,n()),t.dir=t.dir}),H(e,t)};W(v,e=>{s()&&e(y)});var b=I(v,2),x=e=>{Oee(e,{get element(){return r()}})};W(b,e=>{c()&&!u()&&!d()&&e(x)}),E(h),R(()=>{g=es(h,1,`sui text-area ${t.class??``}`,`svelte-1ihfds2`,g,{flex:i(),disabled:u(),readonly:d()}),K(h,`hidden`,l()),_.dir=_.dir}),Es(_,n),H(e,h),O()}var Kk,qk,Jk,Yk;function Xk(){return(Xk=o((()=>{Y(),J(),Up(),Kk=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`flex`,`dir`,`name`,`autoResize`,`useEmojiAutocomplete`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),qk=B(`<div class="clone svelte-1ihfds2" aria-hidden="true"> </div>`),Jk=B(`<div role="none"><textarea></textarea> <!> <!></div>`),Yk={hash:`svelte-1ihfds2`,code:`.text-area.svelte-1ihfds2 {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-1ihfds2 {display:none;}.text-area.flex.svelte-1ihfds2:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-1ihfds2, .clone.svelte-1ihfds2) {grid-area:1/1/2/2;display:block;margin:0;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-multiline-padding);width:100%;min-height:8em;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}:is(textarea:where(.svelte-1ihfds2), .clone:where(.svelte-1ihfds2)).resizing.svelte-1ihfds2 {transition-duration:0ms;}.svelte-1ihfds2:is(textarea:where(.svelte-1ihfds2), .clone:where(.svelte-1ihfds2)):focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}.svelte-1ihfds2:is(textarea:where(.svelte-1ihfds2), .clone:where(.svelte-1ihfds2)):is(:where(.svelte-1ihfds2):disabled, :where(.svelte-1ihfds2):read-only) {background-color:var(--sui-disabled-background-color);}textarea.svelte-1ihfds2 {resize:vertical;}textarea.auto-resize.svelte-1ihfds2 {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-1ihfds2 {border-color:var(--sui-error-border-color);}.clone.svelte-1ihfds2 {overflow:hidden;visibility:hidden;}textarea.svelte-1ihfds2,
|
|
1985
|
+
.clone.svelte-1ihfds2 {white-space:pre-wrap;word-break:break-all;}`}})))()}function Jse(e,t){D(t,!0);let n=Pt(`editorStore`),r=M(void 0),i=()=>{let e=o_();if(!Q(e)||!e.isCollapsed()||e.hasFormat(`code`))return;let t=e.anchor.getNode();if(!Kg(t)||!t.isSimpleText()||iw(t.getParent()))return;let{offset:n}=e.anchor,r=Bp(t.getTextContent().slice(0,n));if(r===void 0)return;let i=t.getKey();return{id:`${i}:${n-r.length-1}`,query:r,nodeKey:i,offset:n}},a=({query:e})=>{let t=window.getSelection();if(!t?.rangeCount)return;let n=t.getRangeAt(0).cloneRange();try{n.setStart(n.startContainer,Math.max(0,n.startOffset-e.length-1))}catch{}let{top:r,bottom:i,left:a,right:o,width:s,height:c}=n.getBoundingClientRect();return r||i||a||s||c?{top:r,bottom:i,left:a,right:o}:void 0},o=(e,t)=>{let{editor:r}=n,{query:i,nodeKey:a,offset:o}=t,s=o-i.length-1;r?.update(()=>{let t=Q_(a);if(!Kg(t)||t.getTextContent().slice(s,o)!==`:${i}`)return;let n=zp(e.emoji,t.getTextContent().slice(o));t.spliceText(s,i.length+1,n,!0)})},s=()=>{let{editor:e}=n;if(!e)return[];let t=e=>t=>z(r)?.isOpen()?(t?.preventDefault(),e(),!0):!1;return[e.registerCommand(Kx,t(()=>z(r)?.moveSelection(1)),4),e.registerCommand(Gx,t(()=>z(r)?.moveSelection(-1)),4),e.registerCommand(qx,t(()=>z(r)?.selectHighlighted()),4),e.registerCommand(Qx,t(()=>z(r)?.selectHighlighted()),4),e.registerCommand(Xx,t(()=>z(r)?.close(!0)),4),e.registerUpdateListener(({editorState:e})=>{let t;e.read(()=>{t=i()}),z(r)?.update(t)})]};L(()=>{if(!n.editor||!z(r))return;let e=s();return()=>{e.forEach(e=>e()),z(r)?.close()}}),L(()=>{n.useRichText||z(r)?.close()});{let t=j(()=>n.editor?.getRootElement()??void 0);Fs(wee(e,{getAnchorRect:a,onSelect:o,get ariaOwner(){return z(t)}}),e=>N(r,e,!0),()=>z(r))}O()}function Zk(){return(Zk=o((()=>{Y(),J(),hw(),rC(),tc(),Vp(),Hp()})))()}var Qk,$k;function eA(){return(eA=o((()=>{_(),Qk=e=>Array.isArray(e)&&e.every(e=>h(e)),$k=e=>[...new Set(e)]})))()}function Yse(e,t){D(t,!0);let n=Pt(`editorStore`),r=j(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{nc(e,{get name(){return ED[t.type].icon}})},a=j(()=>X(`_sui.text_editor.${ED[t.type].labelKey}`)),o=j(()=>!n.useRichText);$d(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(o)},get pressed(){return z(r)},onclick:async()=>{n.editor&&(await vk(n.editor),n.editor.dispatchCommand(Lx,t.type))},startIcon:i,$$slots:{startIcon:!0}})}O()}function tA(){return(tA=o((()=>{Y(),J(),Z(),rC(),tc(),of(),oc(),ND(),yk()})))()}function Xse(e,t){D(t,!0);let n=Pt(`editorStore`),r=j(()=>t.component.label),i=j(()=>t.component.icon),a=j(()=>t.component.createNode);{let t=e=>{var t=V(),n=F(t),r=e=>{nc(e,{get name(){return z(i)}})};W(n,e=>{z(i)&&e(r)}),H(e,t)},o=j(()=>!!z(i)),s=j(()=>z(i)?void 0:z(r)),c=j(()=>!n.useRichText);$d(e,{get iconic(){return z(o)},get label(){return z(s)},get title(){return z(r)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(c)},onclick:()=>{n.editor?.update(()=>{d_([z(a)(),N_()])})},startIcon:t,$$slots:{startIcon:!0}})}O()}function nA(){return(nA=o((()=>{Y(),J(),rC(),tc(),of(),oc()})))()}function Zse(e,t){let n=Oa();D(t,!0);let r=`link`,i=Pt(`editorStore`),a=j(()=>i.selection.inlineTypes.includes(r)),o=M(!1),s=M(`create`),c=M(!1),l=M(``),u=M(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=ure().trim();N(l,e,!0),N(c,!!e),N(s,`create`),N(o,!0)})},f=()=>{i.editor?.dispatchCommand(Cw,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=o_();if(Q(e)){let t=e.anchor.getNode(),n=(t instanceof xw?t:cC(t,xw))?.getURL();if(n){N(c,!0),N(l,n,!0),N(s,`update`),N(o,!0);return}}f()})},m=()=>{z(a)?p():d()},h=e=>{ad(e,`Enter`)&&z(l)&&N(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&z(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=o_()??s_()?.clone();Q(t)||(t=r_()),z(c)||(N(u,z(u).trim(),!0),N(u,z(u)||z(l),!0),d_([Gg(z(u))])),rv(t),e(void 0)})}),await vk(i.editor),i.editor.dispatchCommand(Cw,z(l))}N(l,``),N(u,``)},_=()=>{i.editor?.registerCommand(Bx,e=>(ad(e,Zu()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};L(()=>{i.editor&&_()});var v=aA(),y=F(v);{let e=e=>{nc(e,{get name(){return ED[r].icon}})},t=j(()=>X(`_sui.text_editor.${ED[r].labelKey}`)),n=j(()=>!i.useRichText);$d(y,{iconic:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return z(n)},get pressed(){return z(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=I(y,2);{let e=e=>{var t=V(),n=F(t),r=e=>{{let t=j(()=>X(`_sui.remove`));$d(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{f(),N(s,`remove`),N(o,!1)}})}};W(n,e=>{z(s)!==`create`&&e(r)}),H(e,t)},t=j(()=>z(s)===`create`?X(`_sui.text_editor.insert_link`):X(`_sui.text_editor.update_link`)),r=j(()=>!z(l)),i=j(()=>z(s)===`create`?X(`_sui.insert`):X(`_sui.update`));wp(b,{get title(){return z(t)},get okDisabled(){return z(r)},get okLabel(){return z(i)},onClose:e=>{g(e)},get open(){return z(o)},set open(e){N(o,e,!0)},get value(){return z(l)},set value(e){N(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=iA(),i=F(r),a=P(i),o=P(a,!0);E(a);var s=I(a,2);{let e=j(()=>X(`_sui.text_editor.url`));Wp(s,{dir:`ltr`,get id(){return`${n}-url`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(l)},set value(e){N(l,e,!0)}})}E(i);var d=I(i,2),f=e=>{var t=rA(),r=P(t),i=P(r,!0);E(r);var a=I(r,2);{let e=j(()=>X(`_sui.text_editor.text`));Wp(a,{dir:`auto`,get id(){return`${n}-text`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(u)},set value(e){N(u,e,!0)}})}E(t),R(e=>{K(r,`for`,`${n}-text`),U(i,e)},[()=>X(`_sui.text_editor.text`)]),H(e,t)};W(d,e=>{z(c)||e(f)}),R(e=>{K(a,`for`,`${n}-url`),U(o,e)},[()=>X(`_sui.text_editor.url`)]),H(e,r)},$$slots:{footerExtra:!0,default:!0}})}H(e,v),O()}var rA,iA,aA;function oA(){return(oA=o((()=>{Y(),J(),Tw(),dC(),Z(),ud(),rC(),tc(),of(),Mp(),oc(),Yp(),ND(),yk(),rA=B(`<div role="none"><label> </label> <!></div>`),iA=B(`<div role="none"><label> </label> <!></div> <!>`,1),aA=B(`<!> <!>`,1)})))()}function Qse(e,t){D(t,!0);let n=Pt(`editorStore`);{let r=e=>{nc(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{bm(e,{children:(e,r)=>{var i=V();ao(F(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).createNode;Sm(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{d_([a()(),N_()])})},startIcon:e=>{var t=V(),n=F(t),r=e=>{nc(e,{get name(){return i()}})};W(n,e=>{i()&&e(r)}),H(e,t)},$$slots:{startIcon:!0}})}),H(e,i)},$$slots:{default:!0}})},a=j(()=>!n.useRichText),o=j(()=>X(`_sui.insert`));Jf(e,{get disabled(){return z(a)},get label(){return z(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}O()}function sA(){return(sA=o((()=>{Y(),J(),Z(),rC(),tc(),oc(),Zf(),Cm(),xm()})))()}function $se(e,t){D(t,!0);let n=Pt(`editorStore`),r=j(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await vk(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{oC(o_(),()=>bT(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{oC(o_(),()=>N_())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(Ww,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(Gw,void 0),t.type===`blockquote`&&n.editor.update(()=>{oC(o_(),()=>gT())}),t.type===`code-block`&&n.editor.update(()=>{oC(o_(),()=>rw())})};var a=V();Za(F(a),()=>z(r),e=>{{let n=e=>{nc(e,{get name(){return ED[t.type].icon}})},a=j(()=>X(`_sui.text_editor.${ED[t.type].labelKey}`));wm(e,{get label(){return z(a)},get checked(){return z(r)},onclick:()=>{z(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),H(e,a),O()}function cA(){return(cA=o((()=>{Y(),J(),hw(),Kw(),LT(),sC(),Z(),rC(),tc(),oc(),Tm(),ND(),yk()})))()}function ece(e,t){D(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1),i=Pt(`editorStore`),a=j(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`button`)),o=j(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`menuitem`)),s=j(()=>$k([`paragraph`,...i.config.enabledButtons.filter(e=>kD.includes(e))])),c=j(()=>$k(i.config.enabledButtons.filter(e=>OD.includes(e))));{let t=j(()=>n()||r()),l=j(()=>X(`_sui.text_editor.text_editor`));Fk(e,{get disabled(){return z(t)},get"aria-label"(){return z(l)},children:(e,t)=>{var n=dA(),r=F(n),l=e=>{{let t=e=>{{let t=j(()=>ED[i.selection.blockType??``]?.icon??`format_paragraph`);nc(e,{get name(){return z(t)}})}},n=e=>{{let t=j(()=>X(`_sui.text_editor.text_style_options`));bm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();ao(F(n),16,()=>z(s),e=>e,(e,t)=>{$se(e,{get type(){return t}})}),H(e,n)},$$slots:{default:!0}})}},r=j(()=>!i.useRichText),a=j(()=>X(`_sui.text_editor.show_text_style_options`));Jf(e,{get disabled(){return z(r)},get"aria-label"(){return z(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:t,popup:n,$$slots:{startIcon:!0,popup:!0}})}};W(r,e=>{z(s).length>1&&e(l)});var u=I(r,2),d=e=>{var t=lA(),n=F(t);rp(n,{orientation:`vertical`});var r=I(n,2);{let e=j(()=>!i.useRichText);Dk(r,{get disabled(){return z(e)}})}H(e,t)},f=e=>{var t=lA(),n=F(t),r=e=>{var t=lA(),n=F(t);rp(n,{orientation:`vertical`}),lee(I(n,2),{children:(e,t)=>{var n=V();ao(F(n),16,()=>z(c),e=>e,(e,t)=>{var n=V(),r=F(n),i=e=>{Zse(e,{})},a=e=>{Yse(e,{get type(){return t}})};W(r,e=>{t===`link`?e(i):e(a,-1)}),H(e,n)}),H(e,n)},$$slots:{default:!0}}),H(e,t)};W(n,e=>{z(c).length&&e(r)});var s=I(n,2),l=e=>{var t=uA(),n=F(t);rp(n,{orientation:`vertical`});var r=I(n,2);ao(r,17,()=>z(a),e=>e.id,(e,t)=>{Xse(e,{get component(){return z(t)}})});var i=I(r,2),s=e=>{Qse(e,{get components(){return z(o)}})};W(i,e=>{z(o).length&&e(s)}),H(e,t)};W(s,e=>{i.config.components.length&&e(l)}),H(e,t)};W(u,e=>{i.selection.blockType===`code-block`?e(d):e(f,-1)});var p=I(u,2);cp(p,{flex:!0});var m=I(p,2),h=e=>{{let t=e=>{nc(e,{name:`markdown`})},n=j(()=>!i.useRichText),r=j(()=>X(`_sui.text_editor.edit_in_markdown`));$d(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};W(m,e=>{i.config.modes.length>1&&e(h)}),H(e,n)},$$slots:{default:!0}})}O()}var lA,uA,dA;function fA(){return(fA=o((()=>{Y(),J(),Z(),eA(),tc(),bf(),of(),sp(),fp(),oc(),Zf(),xm(),ND(),kk(),tA(),nA(),oA(),sA(),cA(),zk(),lA=B(`<!> <!>`,1),uA=B(`<!> <!> <!>`,1),dA=B(`<!> <!> <!> <!>`,1)})))()}function tce(e,t){D(t,!0),G(e,hA);let n=q(t,`value`,15,``),r=q(t,`flex`,3,!1),i=q(t,`dir`,3,void 0),a=q(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=q(t,`buttons`,19,()=>[...OD,...kD]),s=q(t,`components`,19,()=>[]),c=q(t,`useMarkdownShortcuts`,3,!0),l=q(t,`useEmojiAutocomplete`,3,!0),u=q(t,`hidden`,3,!1),d=q(t,`disabled`,3,!1),f=q(t,`readonly`,3,!1),p=q(t,`required`,3,!1),m=q(t,`invalid`,3,!1),h=Hs(t,pA),g=Tk();g.config={...g.config,modes:a(),enabledButtons:o(),components:s(),useMarkdownShortcuts:c(),useEmojiAutocomplete:l()},Ft(`editorStore`,g),L(()=>{if(!g.initialized)return;let e=n();Li(()=>{g.inputValue=e})}),L(()=>{if(!g.initialized)return;let e=g.inputValue;Li(()=>{n()!==e&&n(e)})});var _=mA(),v=F(_);ds(v,()=>({...h,role:`none`,class:`sui text-editor`,hidden:u(),[ms]:{flex:r()}}),void 0,void 0,void 0,`svelte-arjuqr`);var y=P(v);ece(y,{get disabled(){return d()},get readonly(){return f()}});var b=I(y,2);{let e=j(()=>!g.useRichText||u());bk(b,{get hidden(){return z(e)},get disabled(){return d()},get readonly(){return f()},get required(){return p()},get invalid(){return m()}})}var x=I(b,2);{let e=j(()=>g.useRichText||u());Gk(x,{autoResize:!0,get useEmojiAutocomplete(){return l()},get flex(){return r()},get dir(){return i()},get hidden(){return z(e)},get disabled(){return d()},get readonly(){return f()},get required(){return p()},get invalid(){return m()},get value(){return g.inputValue},set value(e){g.inputValue=e}})}var S=I(x,2),C=e=>{Jse(e,{})};W(S,e=>{g.config.useEmojiAutocomplete&&!d()&&!f()&&e(C)}),E(v);var w=I(v,2),ee=e=>{Lh(e,{get show(){return g.showConverterError},set show(e){g.showConverterError=e},children:(e,t)=>{sc(e,{status:`error`,children:(e,t)=>{mt();var n=Da();R(e=>U(n,e),[()=>X(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(w,e=>{g.showConverterError&&e(ee)}),H(e,_),O()}var pA,mA,hA;function gA(){return(gA=o((()=>{Y(),J(),Z(),tc(),dc(),Xk(),Vh(),ND(),Zk(),wk(),Ek(),fA(),pA=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`useMarkdownShortcuts`,`useEmojiAutocomplete`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),mA=B(`<div><!> <!> <!> <!></div> <!>`,1),hA={hash:`svelte-arjuqr`,code:`.text-editor.svelte-arjuqr {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.text-editor.svelte-arjuqr:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.text-editor.flex.svelte-arjuqr:not([hidden]) {display:block;}.text-editor.svelte-arjuqr .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-arjuqr .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`}})))()}function nce(e,t){let n=Oa();D(t,!0),G(e,yA);let r=q(t,`value`,15),i=q(t,`invalid`,15,!1),a=q(t,`flex`,3,!1),o=q(t,`min`,3,void 0),s=q(t,`max`,3,void 0),c=q(t,`step`,3,1),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`required`,3,!1),p=Hs(t,_A),m=M(!1),h=M(``),g=j(()=>String(c()).split(`.`)[1]?.length||0),_=j(()=>typeof o()==`number`&&Number(z(h)||0)<=o()),v=j(()=>typeof s()==`number`&&Number(z(h)||0)>=s());L(()=>{let e=String(r()??``);Li(()=>{z(h)!==e&&N(h,e,!0)})}),L(()=>{let e=z(h).trim()?Number(z(h)):NaN;r(Number.isNaN(e)?void 0:e)}),L(()=>{z(m)&&i(f()&&(r()===void 0||z(h)===``)||z(h)!==void 0&&z(h)!==``&&(Number.isNaN(Number(z(h)))||typeof o()==`number`&&Number(z(h)||0)<o()||typeof s()==`number`&&Number(z(h)||0)>s()))});let y=()=>{z(_)||Number.isNaN(Number(z(h)))||N(h,Number(Number(z(h)||0)-c()).toFixed(z(g)),!0)},b=()=>{z(v)||Number.isNaN(Number(z(h)))||N(h,Number(Number(z(h)||0)+c()).toFixed(z(g)),!0)};var x=vA();let S;var C=P(x),w=P(C);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.increaseIcon),H(e,n)},a=e=>{nc(e,{name:`expand_less`})};W(r,e=>{t.increaseIcon?e(i):e(a,-1)}),H(e,n)},i=j(()=>u()||d()||Number.isNaN(Number(r()))||z(v)),a=j(()=>X(`_sui.number_input.increase`));$d(w,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var ee=I(w,2);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.decreaseIcon),H(e,n)},a=e=>{nc(e,{name:`expand_more`})};W(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),H(e,n)},i=j(()=>u()||d()||Number.isNaN(Number(r()))||z(_)),a=j(()=>X(`_sui.number_input.decrease`));$d(ee,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}E(C);var te=I(C,2);{let e=j(()=>Number(r()||0)),c=j(()=>z(g)>0?`decimal`:`numeric`);Wp(te,Us({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return z(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return z(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),z(m)||N(m,!0)},oninput:()=>{z(m)||N(m,!0)},get onChange(){return t.onChange},get value(){return z(h)},set value(e){N(h,e,!0)}}))}E(x),R(()=>{S=es(x,1,`sui number-input ${t.class??``}`,`svelte-1fqvmpf`,S,{flex:a(),disabled:u(),readonly:d()}),K(x,`hidden`,l())}),H(e,x),O()}var _A,vA,yA;function bA(){return(bA=o((()=>{Y(),J(),Z(),tc(),of(),oc(),Yp(),_A=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),vA=B(`<div role="none"><div role="none" class="buttons svelte-1fqvmpf"><!> <!></div> <!></div>`),yA={hash:`svelte-1fqvmpf`,code:`.number-input.svelte-1fqvmpf {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-1fqvmpf:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-1fqvmpf :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-1fqvmpf :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-1fqvmpf :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-1fqvmpf :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-1fqvmpf .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-1fqvmpf {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-1fqvmpf button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-1fqvmpf button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-1fqvmpf button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-1fqvmpf button .icon {font-size:20px;}`}})))()}function xA(e,t){let n=Oa();D(t,!0),G(e,wA);let r=q(t,`value`,15),i=q(t,`flex`,3,!1),a=q(t,`monospace`,3,!0),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=Hs(t,SA),f=M(void 0),p=M(!1);var m=CA();let h;var g=P(m);Wp(g,Us({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return z(f)},set element(e){N(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=I(g,2);{let e=e=>{var n=V(),r=F(n),i=e=>{var n=V();vo(F(n),()=>t.visibilityIcon),H(e,n)},a=e=>{{let t=j(()=>z(p)?`visibility_off`:`visibility`);nc(e,{get name(){return z(t)}})}};W(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),H(e,n)},r=j(()=>s()||c()),i=j(()=>X(z(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));$d(_,{iconic:!0,get disabled(){return z(r)},get pressed(){return z(p)},get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{N(p,!z(p))},startIcon:e,$$slots:{startIcon:!0}})}E(m),R(()=>{h=es(m,1,`sui secret-input ${t.class??``}`,`svelte-1198rhq`,h,{flex:i(),disabled:s(),readonly:c(),show:z(p)}),K(m,`hidden`,o())}),H(e,m),O()}var SA,CA,wA;function TA(){return(TA=o((()=>{Y(),J(),Z(),of(),oc(),Yp(),SA=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),CA=B(`<div role="none"><!> <!></div>`),wA={hash:`svelte-1198rhq`,code:`.secret-input.svelte-1198rhq {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-1198rhq:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-1198rhq input {-webkit-text-security:none;}.secret-input.svelte-1198rhq .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-1198rhq input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-1198rhq button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-1198rhq button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-1198rhq button .icon {font-size:var(--sui-font-size-xx-large);}`}})))()}function rce(e){G(e,DA),H(e,EA())}var EA,DA;function OA(){return(OA=o((()=>{Y(),J(),EA=B(`<link rel="preconnect" href="https://cdn.jsdelivr.net/"/>`),DA={hash:`svelte-1r03lbw`,code:`
|
|
1986
1986
|
/* https://fontsource.org/fonts/source-sans-3/cdn */
|
|
1987
1987
|
@font-face {font-family:'Source Sans 3';font-style:normal;font-display:swap;font-weight:200 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3:vf@5.3.0/latin-wght-normal.woff2)
|
|
1988
1988
|
format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
@@ -1999,7 +1999,7 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
1999
1999
|
format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
2000
2000
|
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
2001
2001
|
}.material-symbols-outlined {
|
|
2002
|
-
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;-moz-font-feature-settings:'liga';font-feature-settings:'liga';}`}})))()}function ice(e,t){D(t,!0),G(e,NA);let n=q(t,`orientation`,3,`horizontal`),r=Hs(t,kA),i=M(!1);Qs(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{N(i,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var a=MA();Ro(`
|
|
2002
|
+
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;-moz-font-feature-settings:'liga';font-feature-settings:'liga';}`}})))()}function ice(e,t){D(t,!0),G(e,NA);let n=q(t,`orientation`,3,`horizontal`),r=Hs(t,kA),i=M(!1);Qs(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{N(i,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var a=MA();Ro(`53yiqx`,e=>{var t=AA(),n=F(t);rce(I(n,4),{}),R(e=>K(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),H(e,t)});var o=F(a),s=e=>{var t=jA();rs(t,``,{},{opacity:`0`}),H(e,t)};W(o,e=>{z(i)||e(s)});var c=I(o,2),l=e=>e.preventDefault(),u=e=>e.preventDefault(),d=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};ds(c,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:l,ondrop:u,oncontextmenu:d}),void 0,void 0,void 0,`svelte-53yiqx`),vo(P(c),()=>t.children??T),E(c),H(e,a),O()}var kA,AA,jA,MA,NA;function PA(){return(PA=o((()=>{Y(),J(),tc(),OA(),kA=new Set([`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),AA=B(`<meta name="viewport"/> <meta name="google" content="notranslate"/> <!>`,1),jA=B(`<div class="font-loader svelte-53yiqx" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div>`),MA=B(`<!> <div><!></div>`,1),NA={hash:`svelte-53yiqx`,code:`:root,
|
|
2003
2003
|
:host {--sui-base-hue: 210;--sui-highlight-foreground-color: hsl(var(--sui-foreground-color-1-hsl));--sui-primary-foreground-color: hsl(var(--sui-foreground-color-2-hsl));--sui-secondary-foreground-color: hsl(var(--sui-foreground-color-3-hsl));--sui-tertiary-foreground-color: hsl(var(--sui-foreground-color-4-hsl));--sui-disabled-foreground-color: hsl(var(--sui-foreground-color-5-hsl));--sui-error-foreground-color: hsl(
|
|
2004
2004
|
var(--sui-error-color-hue) var(--sui-alert-foreground-color-saturation)
|
|
2005
2005
|
var(--sui-alert-foreground-color-lightness)
|
|
@@ -2057,7 +2057,7 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
2057
2057
|
@media (prefers-reduced-motion) {*,
|
|
2058
2058
|
::before,
|
|
2059
2059
|
::after {scroll-behavior:auto;transition-duration:1ms !important;}
|
|
2060
|
-
}::selection {background-color:var(--sui-primary-accent-color-translucent-light);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-focus-ring-color);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 34px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 30px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 26px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 22px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 18px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 14px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-
|
|
2060
|
+
}::selection {background-color:var(--sui-primary-accent-color-translucent-light);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-focus-ring-color);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 34px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 30px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 26px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 22px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 18px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 14px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-53yiqx a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-53yiqx {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-53yiqx {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-53yiqx {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-53yiqx {display:flex;flex-direction:column;overflow:hidden;}`}})))()}function FA(e,t){G(e,LA);let n=q(t,`children`,3,void 0);var r=IA();vo(P(r),()=>n()??T),E(r),H(e,r)}var IA,LA;function RA(){return(RA=o((()=>{Y(),J(),IA=B(`<div role="none" class="sui empty-state svelte-s6zbn2"><!></div>`),LA={hash:`svelte-s6zbn2`,code:`.empty-state.svelte-s6zbn2 {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}})))()}function zA(e,t){G(e,ace);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=Hs(t,BA);var o=VA();ds(o,()=>({...a,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-lfoxqs`);var s=P(o);vo(P(s),()=>t.children??T),E(s),E(o),R(()=>s.inert=r()),H(e,o)}var BA,VA,ace;function HA(){return(HA=o((()=>{Y(),J(),BA=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`]),VA=B(`<div><div role="none" class="inner svelte-lfoxqs"><!></div></div>`),ace={hash:`svelte-lfoxqs`,code:`.inner.svelte-lfoxqs {display:contents;}`}})))()}function UA(e,t){D(t,!0),G(e,sce);let n=M(null),r=M(!1);L(()=>(z(n)&&(async()=>{await Fd(z(n)),N(r,!0)})(),()=>{z(n)&&jd(z(n))}));var i=V(),a=F(i),o=e=>{var n=V();vo(F(n),()=>t.children),H(e,n)},s=e=>{var t=oce();Fs(t,e=>N(n,e),()=>z(n)),H(e,t)};W(a,e=>{z(r)?e(o):e(s,-1)}),H(e,i),O()}var oce,sce;function WA(){return(WA=o((()=>{Y(),J(),Id(),oce=B(`<div class="placeholder svelte-6admhi"></div>`),sce={hash:`svelte-6admhi`,code:`.placeholder.svelte-6admhi {height:64px;}`}})))()}var cce;function lce(){return(lce=o((()=>{cce={ok:`OK`,cancel:`Cancel`,close:`Close`,clear:`Clear`,insert:`Insert`,update:`Update`,remove:`Remove`,collapse:`Collapse`,expand:`Expand`,dismiss:`Dismiss`,emoji_suggestions:`Emoji Suggestions`,calendar:{year:`Year`,previous_decade:`Previous Decade`,next_decade:`Next Decade`,month:`Month`,previous_month:`Previous Month`,next_month:`Next Month`,today:`Today`},split_button:{x_options:`{$name} Options`,more_options:`More Options`},combobox:{select_an_option:`Select an option…`,filter_options:`Filter Options`,no_matching_options:`No matching options found`},number_input:{increase:`Increase`,decrease:`Decrease`},password_input:{show_password:`Show Password`,hide_password:`Hide Password`},secret_input:{show_secret:`Show Secret`,hide_secret:`Hide Secret`},select_tags:{selected_options:`Selected Options`,remove_x:`Remove {$name}`},text_editor:{text_editor:`Text Editor`,code_editor:`Code Editor`,text_style_options:`Text Style Options`,show_text_style_options:`Show Text Style Options`,paragraph:`Paragraph`,heading_1:`Heading 1`,heading_2:`Heading 2`,heading_3:`Heading 3`,heading_4:`Heading 4`,heading_5:`Heading 5`,heading_6:`Heading 6`,bulleted_list:`Bulleted List`,numbered_list:`Numbered List`,blockquote:`Block Quote`,code_block:`Code Block`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,link:`Link`,insert_link:`Insert Link`,update_link:`Update Link`,text:`Text`,url:`URL`,edit_in_markdown:`Edit in Markdown`,converter_error:`Unable to enable rich text mode. Please use the plain text editor instead.`,language:`Language`,plain_text:`Plain Text`}}})))()}
|
|
2061
2061
|
/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */
|
|
2062
2062
|
function uce(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dce(e){if(Array.isArray(e))return e}function fce(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function pce(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2063
2063
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mce(e,t){return dce(e)||fce(e,t)||hce(e,t)||pce()}function hce(e,t){if(e){if(typeof e==`string`)return uce(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uce(e,t):void 0}}function GA(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return tj(e,t,n)}}function gce(e){return function(){return nj(e,[...arguments])}}function KA(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sj;if(XA&&XA(e,null),!oj(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(xce(t)||(t[r]=e),i=e)}e[i]=!0}return e}function _ce(e){for(let t=0;t<e.length;t++)mj(e,t)||(e[t]=null);return e}function qA(e){let t=$A(null);for(let r of YA(e)){var n=mce(r,2);let i=n[0],a=n[1];mj(e,i)&&(t[i]=oj(a)?_ce(a):a&&typeof a==`object`&&a.constructor===Object?qA(a):a)}return t}function vce(e){switch(typeof e){case`string`:return e;case`number`:return Dce(e);case`boolean`:return Oce(e);case`bigint`:return fj?fj(e):`0`;case`symbol`:return pj?pj(e):`Symbol()`;case`undefined`:return hj(e);case`function`:case`object`:{if(e===null)return hj(e);let t=e,n=JA(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:hj(e)}return hj(e)}default:return hj(e)}}function JA(e,t){for(;e!==null;){let n=Cce(e,t);if(n){if(n.get)return GA(n.get);if(typeof n.value==`function`)return GA(n.value)}e=Sce(e)}function n(){return null}return n}function yce(e){try{return gj(e,``),!0}catch{return!1}}function bce(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hce(),t=e=>bce(e);if(t.version=`3.4.13`,t.removed=[],!e||!e.document||e.document.nodeType!==Aj.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=JA(d,`cloneNode`),p=JA(d,`remove`),m=JA(d,`nextSibling`),h=JA(d,`childNodes`),g=JA(d,`parentNode`),_=JA(d,`shadowRoot`),v=JA(d,`attributes`),y=o&&o.prototype?JA(o.prototype,`nodeType`):null,b=o&&o.prototype?JA(o.prototype,`nodeName`):null,x=o&&o.prototype?JA(o.prototype,`ownerDocument`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w,ee=!1,te=0,ne=function(){if(te>0)throw _j(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},re=function(e){ne(),te++;try{return S.createHTML(e)}finally{te--}},ie=function(e){ne(),te++;try{return S.createScriptURL(e)}finally{te--}},ae=function(){return ee||=(w=Uce(u,i),!0),w},oe=n,se=oe.implementation,ce=oe.createNodeIterator,le=oe.createDocumentFragment,T=oe.getElementsByTagName,ue=r.importNode,de=jj();t.isSupported=typeof YA==`function`&&typeof g==`function`&&se&&se.createHTMLDocument!==void 0;let fe=jce,pe=Mce,me=Nce,he=Pce,ge=Fce,_e=Ice,ve=Lce,ye=zce,be=Dj,xe=null,Se=KA({},[...vj,...yj,...bj,...xj,...Sj]),Ce=null,we=KA({},[...Cj,...wj,...Tj,...Ej]),Te=Object.seal($A(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,De=null,Oe=Object.seal($A(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ke=!0,Ae=!0,je=!1,Me=!0,Ne=!1,Pe=!0,Fe=!1,Ie=!1,Le=null,Re=null,ze=!1,Be=!1,Ve=!1,He=!1,Ue=!0,We=!1,Ge=`user-content-`,Ke=!0,qe=!1,Je={},Ye=null,Xe=KA({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ze=null,Qe=KA({},[`audio`,`video`,`img`,`source`,`image`,`track`]),$e=null,et=KA({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),tt=`http://www.w3.org/1998/Math/MathML`,nt=`http://www.w3.org/2000/svg`,rt=`http://www.w3.org/1999/xhtml`,it=rt,at=!1,ot=null,st=KA({},[tt,nt,rt],cj),ct=ZA([`mi`,`mo`,`mn`,`ms`,`mtext`]),lt=KA({},ct),ut=ZA([`annotation-xml`]),dt=KA({},ut),ft=KA({},[`title`,`style`,`font`,`a`,`script`]),pt=null,E=[`application/xhtml+xml`,`text/html`],mt=null,ht=null,gt=n.createElement(`form`),_t=function(e){return e instanceof RegExp||e instanceof Function},vt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ht&&ht===e)return;(!e||typeof e!=`object`)&&(e={}),e=qA(e),pt=E.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,mt=pt===`application/xhtml+xml`?cj:sj,xe=Mj(e,`ALLOWED_TAGS`,Se,{transform:mt}),Ce=Mj(e,`ALLOWED_ATTR`,we,{transform:mt}),ot=Mj(e,`ALLOWED_NAMESPACES`,st,{transform:cj}),$e=Mj(e,`ADD_URI_SAFE_ATTR`,et,{transform:mt,base:et}),Ze=Mj(e,`ADD_DATA_URI_TAGS`,Qe,{transform:mt,base:Qe}),Ye=Mj(e,`FORBID_CONTENTS`,Xe,{transform:mt}),Ee=Mj(e,`FORBID_TAGS`,qA({}),{transform:mt}),De=Mj(e,`FORBID_ATTR`,qA({}),{transform:mt}),Je=mj(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?qA(e.USE_PROFILES):e.USE_PROFILES:!1,ke=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ne=e.SAFE_FOR_TEMPLATES||!1,Pe=e.SAFE_FOR_XML!==!1,Fe=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Ve=e.RETURN_DOM_FRAGMENT||!1,He=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,Ue=e.SANITIZE_DOM!==!1,We=e.SANITIZE_NAMED_PROPS||!1,Ke=e.KEEP_CONTENT!==!1,qe=e.IN_PLACE||!1,be=yce(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Dj,it=typeof e.NAMESPACE==`string`?e.NAMESPACE:rt,lt=mj(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?qA(e.MATHML_TEXT_INTEGRATION_POINTS):KA({},ct),dt=mj(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?qA(e.HTML_INTEGRATION_POINTS):KA({},ut);let t=mj(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?qA(e.CUSTOM_ELEMENT_HANDLING):$A(null);if(Te=$A(null),mj(t,`tagNameCheck`)&&_t(t.tagNameCheck)&&(Te.tagNameCheck=t.tagNameCheck),mj(t,`attributeNameCheck`)&&_t(t.attributeNameCheck)&&(Te.attributeNameCheck=t.attributeNameCheck),mj(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Te.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),QA(Te),Ne&&(Ae=!1),Ve&&(Be=!0),Je&&(xe=KA({},Sj),Ce=$A(null),Je.html===!0&&(KA(xe,vj),KA(Ce,Cj)),Je.svg===!0&&(KA(xe,yj),KA(Ce,wj),KA(Ce,Ej)),Je.svgFilters===!0&&(KA(xe,bj),KA(Ce,wj),KA(Ce,Ej)),Je.mathMl===!0&&(KA(xe,xj),KA(Ce,Tj),KA(Ce,Ej))),Oe.tagCheck=null,Oe.attributeCheck=null,mj(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Oe.tagCheck=e.ADD_TAGS:oj(e.ADD_TAGS)&&(xe===Se&&(xe=qA(xe)),KA(xe,e.ADD_TAGS,mt))),mj(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Oe.attributeCheck=e.ADD_ATTR:oj(e.ADD_ATTR)&&(Ce===we&&(Ce=qA(Ce)),KA(Ce,e.ADD_ATTR,mt))),mj(e,`ADD_URI_SAFE_ATTR`)&&oj(e.ADD_URI_SAFE_ATTR)&&KA($e,e.ADD_URI_SAFE_ATTR,mt),mj(e,`FORBID_CONTENTS`)&&oj(e.FORBID_CONTENTS)&&(Ye===Xe&&(Ye=qA(Ye)),KA(Ye,e.FORBID_CONTENTS,mt)),mj(e,`ADD_FORBID_CONTENTS`)&&oj(e.ADD_FORBID_CONTENTS)&&(Ye===Xe&&(Ye=qA(Ye)),KA(Ye,e.ADD_FORBID_CONTENTS,mt)),Ke&&(xe[`#text`]=!0),Fe&&KA(xe,[`html`,`head`,`body`]),xe.table&&(KA(xe,[`tbody`]),delete Ee.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw _j(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw _j(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=re(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=ae()),S&&typeof C==`string`&&(C=re(``)));ZA&&ZA(e),ht=e},yt=KA({},[...yj,...bj,...kce]),bt=KA({},[...xj,...Ace]),xt=function(e,t,n){return t.namespaceURI===rt?e===`svg`:t.namespaceURI===tt?e===`svg`&&(n===`annotation-xml`||lt[n]):!!yt[e]},St=function(e,t,n){return t.namespaceURI===rt?e===`math`:t.namespaceURI===nt?e===`math`&&dt[n]:!!bt[e]},Ct=function(e,t,n){return t.namespaceURI===nt&&!dt[n]||t.namespaceURI===tt&&!lt[n]?!1:!bt[e]&&(ft[e]||!yt[e])},wt=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:it,tagName:`template`});let n=sj(e.tagName),r=sj(t.tagName);return ot[e.namespaceURI]?e.namespaceURI===nt?xt(n,t,r):e.namespaceURI===tt?St(n,t,r):e.namespaceURI===rt?Ct(n,t,r):!!(pt===`application/xhtml+xml`&&ot[e.namespaceURI]):!1},Tt=function(e){aj(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw _j(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Et=function(e){kt(e);let t=h(e);if(t){let e=[];rj(t,t=>{aj(e,t)}),rj(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},Dt=function(e,n){try{aj(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{aj(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`){if(Be||Ve)try{Tt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Ot=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||Ce[mt(i)]))try{e.removeAttribute(i)}catch{}}},kt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===Aj.element&&Ot(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},At=function(e){if(!Pe)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=y?y(e):e.nodeType;if(n===Aj.processingInstruction||n===Aj.comment&&gj(kj,e.data)){try{p(e)}catch{}continue}if(n===Aj.element){let t=e,n=mt(b?b(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=h(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},jt=function(e){let t=null,r=null;if(ze)e=`<remove></remove>`+e;else{let t=lj(e,/^[\r\n\t ]+/);r=t&&t[0]}pt===`application/xhtml+xml`&&it===rt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?re(e):e;if(it===rt)try{t=new l().parseFromString(i,pt)}catch{}if(!t||!t.documentElement){t=se.createDocument(it,`template`,null);try{t.documentElement.innerHTML=at?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),it===rt?T.call(t,Fe?`html`:`body`)[0]:Fe?t.documentElement:a},Mt=function(e){let t=x?x(e):e.ownerDocument;return ce.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Nt=function(e){return e=uj(e,fe,` `),e=uj(e,pe,` `),e=uj(e,me,` `),e},Pt=function(e){e.normalize();let t=x?x(e):e.ownerDocument,n=ce.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Nt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&rj(i,e=>{It(e.content)&&Pt(e.content)})},Ft=function(e){let t=b?b(e):null;return typeof t!=`string`||mt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},It=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===Aj.documentFragment}catch{return!1}},D=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function O(e,n,r){e.length!==0&&rj(e,e=>{e.call(t,n,r,ht)})}let Lt=function(e,t){return!!(Pe&&e.hasChildNodes()&&!D(e.firstElementChild)&&gj(Oj,e.textContent)&&gj(Oj,e.innerHTML)||Pe&&e.namespaceURI===rt&&t===`style`&&D(e.firstElementChild)||e.nodeType===Aj.processingInstruction||Pe&&e.nodeType===Aj.comment&&gj(kj,e.data))},Rt=function(e,t,n){if(!Ee[t]&&Ut(t)&&(Te.tagNameCheck instanceof RegExp&&gj(Te.tagNameCheck,t)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(t)))return!1;if(Ke&&!Ye[t]){let t=g(e),r=h(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,m(e))}}}return Tt(e),!0},zt=function(e,t,n,r){return e.length===0?t:t===n||t===r?qA(t):t},Bt=function(e,n){if(O(de.beforeSanitizeElements,e,null),e!==n&&g(e)===null)return qe&&kt(e),!0;if(Ft(e))return Tt(e),!0;let r=mt(b?b(e):e.nodeName);if(xe=zt(de.uponSanitizeElement,xe,Se,Le),O(de.uponSanitizeElement,e,{tagName:r,allowedTags:xe}),e!==n&&g(e)===null)return qe&&kt(e),!0;if(Lt(e,r))return Tt(e),!0;if(Ee[r]||!(Oe.tagCheck instanceof Function&&Oe.tagCheck(r))&&!xe[r]){let t=Rt(e,r,n);return t===!1&&O(de.afterSanitizeElements,e,null),t}if((y?y(e):e.nodeType)===Aj.element&&!wt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&gj(Bce,e.innerHTML))return Tt(e),!0;if(Ne&&e.nodeType===Aj.text){let n=Nt(e.textContent);e.textContent!==n&&(aj(t.removed,{element:e.cloneNode()}),e.textContent=n)}return O(de.afterSanitizeElements,e,null),!1},Vt=function(e,t,r){if(De[t]||Pe&&t===`patchsrc`||Pe&&t===`for`&&e!==`label`&&e!==`output`||Ue&&(t===`id`||t===`name`)&&(r in n||r in gt))return!1;let i=Ce[t]||Oe.attributeCheck instanceof Function&&Oe.attributeCheck(t,e);if(!(Ae&&gj(he,t))&&!(ke&&gj(ge,t))){if(!i){if(!(Ut(e)&&(Te.tagNameCheck instanceof RegExp&&gj(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&gj(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t,e))||t===`is`&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&gj(Te.tagNameCheck,r)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(r))))return!1}else if(!$e[t]&&!gj(be,uj(r,ve,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&dj(r,`data:`)===0&&Ze[e])&&!(je&&!gj(_e,uj(r,ve,``)))&&r)return!1}return!0},Ht=KA({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Ut=function(e){return!Ht[sj(e)]&&gj(ye,e)},Wt=function(e,t,n,r){if(S&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return re(r);case`TrustedScriptURL`:return ie(r)}return r},Gt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),Ft(e)?Tt(e):ij(t.removed)}catch{Dt(n,e)}},Kt=function(e){O(de.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Ft(e))return;Ce=zt(de.uponSanitizeAttribute,Ce,we,Re);let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0},r=t.length,i=mt(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=mt(o),u=c,d=o===`value`?u:Ece(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,O(de.uponSanitizeAttribute,e,n),d=n.attrValue,We&&(l===`id`||l===`name`)&&dj(d,Ge)!==0&&(Dt(o,e),d=Ge+d),Pe&&gj(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Dt(o,e);continue}if(l===`attributename`&&lj(d,`href`)){Dt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){Dt(o,e);continue}if(!Me&&gj(Vce,d)){Dt(o,e);continue}if(Ne&&(d=Nt(d)),!Vt(i,l,d)){Dt(o,e);continue}d=Wt(i,l,s,d),d!==u&&Gt(e,o,s,d)}}O(de.afterSanitizeAttributes,e,null)},qt=function(e){let t=null,n=Mt(e);for(O(de.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(O(de.uponSanitizeShadowNode,t,null),Bt(t,e),Kt(t),It(t.content)&&qt(t.content),(y?y(t):t.nodeType)===Aj.element){let e=_(t);It(e)&&(Jt(e),qt(e))}O(de.afterSanitizeShadowDOM,e,null)},Jt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){qt(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===Aj.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&mt(e)===`template`){let e=n.content;It(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);It(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(at=!e,at&&(e=`<!-->`),typeof e!=`string`&&!D(e)&&(e=vce(e),typeof e!=`string`))throw _j(`dirty is not a string, aborting`);if(!t.isSupported)return e;Ie?(xe=Le,Ce=Re):vt(n),(de.uponSanitizeElement.length>0||de.uponSanitizeAttribute.length>0)&&(xe=qA(xe)),de.uponSanitizeAttribute.length>0&&(Ce=qA(Ce)),t.removed=[];let c=qe&&typeof e!=`string`&&D(e);if(c){At(e);let t=b?b(e):e.nodeName;if(typeof t==`string`){let n=mt(t);if(!xe[n]||Ee[n])throw Et(e),_j(`root node is forbidden and cannot be sanitized in-place`)}if(Ft(e))throw Et(e),_j(`root node is clobbered and cannot be sanitized in-place`);try{Jt(e)}catch(t){throw Et(e),t}}else if(D(e))i=jt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Aj.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Jt(a);else{if(!Be&&!Ne&&!Fe&&e.indexOf(`<`)===-1)return S&&He?re(e):e;if(i=jt(e),!i)return Be?null:He?C:``}i&&ze&&Tt(i.firstChild);let l=c?e:i;try{let e=Mt(l);for(;o=e.nextNode();)Bt(o,l),Kt(o),It(o.content)&&qt(o.content)}catch(n){throw c&&(Et(e),rj(t.removed,e=>{e.element&&kt(e.element)})),n}if(c)return rj(t.removed,e=>{e.element&&kt(e.element)}),Ne&&Pt(e),e;if(Be){if(Ne&&Pt(i),Ve)for(s=le.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(Ce.shadowroot||Ce.shadowrootmode)&&(s=ue.call(r,s,!0)),s}let u=Fe?i.outerHTML:i.innerHTML;return Fe&&xe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&gj(Rce,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
@@ -2235,7 +2235,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
2235
2235
|
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=UF(HF(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=UF(HF(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})))()}function tfe(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Yde||null,prettyErrors:t}}function nfe(e,t={}){let{lineCounter:n,prettyErrors:r}=tfe(t),i=new efe(n?.addNewLine),a=new Bde(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new mF(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(hF(e,n)),o.warnings.forEach(hF(e,n))),o}function rfe(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=nfe(e,n);if(!i)return null;if(i.warnings.forEach(e=>wue(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function KF(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return sN(e)&&!r?e.toString(n):new dF(e,r,n).toString(n)}function ife(){return(ife=o((()=>{jF(),fF(),gF(),pN(),Xde(),GF()})))()}function afe(){return(afe=o((()=>{jF(),fF(),lF(),kN(),cP(),MN(),pP(),vP(),FF(),BF(),GF(),ife(),vN()})))()}function qF(){return(qF=o((()=>{afe()})))()}var JF,YF,ofe,XF;function ZF(){return(ZF=o((()=>{JF={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`},YF=new Map,ofe=e=>{let t=e??``,n=YF.get(t);return n||(n=new Intl.DateTimeFormat(`en-US`,{...JF,hour12:!1,timeZone:e}),YF.set(t,n)),n},XF=({date:e=new Date,timeZone:t=void 0}={})=>Object.fromEntries(ofe(t).formatToParts(e).filter(({type:e})=>e in JF).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t]))})))()}var QF;function sfe(){return(sfe=o((()=>{QF=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ə`,`A`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ō`,`O`],[`Ő`,`O`],[`Ø`,`O`],[`Œ`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ə`,`a`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ō`,`o`],[`ő`,`o`],[`ø`,`o`],[`œ`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ`,`a`],[`ُ`,`u`],[`ِ`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`k`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`O`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(c)`],[`ⓓ`,`(d)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`],[`−`,`-`],[`⁓`,`-`]])})))()}var $F,eI;function cfe(){return(cfe=o((()=>{$F=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],eI={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:$F,nb:$F,de:[[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`ß`,`ss`],[`ẞ`,`Ss`]],tr:[[`â`,`a`],[`Â`,`A`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`]],hu:[[`ű`,`u`],[`Ű`,`U`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`],[`á`,`a`],[`Á`,`A`],[`é`,`e`],[`É`,`E`],[`í`,`i`],[`Í`,`I`],[`ó`,`o`],[`Ó`,`O`],[`ú`,`u`],[`Ú`,`U`]],sr:[[`ђ`,`dj`],[`Ђ`,`Dj`],[`џ`,`dz`],[`Џ`,`Dz`],[`љ`,`lj`],[`Љ`,`Lj`],[`њ`,`nj`],[`Њ`,`Nj`],[`ћ`,`c`],[`Ћ`,`C`],[`ч`,`ch`],[`Ч`,`Ch`],[`ш`,`sh`],[`Ш`,`Sh`],[`ж`,`zh`],[`Ж`,`Zh`]]};for(let e of Object.keys(eI))eI[e]=new Map(eI[e])})))()}function lfe(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=ffe(t.locale),r=[...t.customReplacements],i=QF,a=dfe;if(n&&({replacements:i,pattern:a}=nI.get(n)),e=e.normalize(),r.length>0){r.sort((e,t)=>t[0].length-e[0].length);for(let[t,n]of r)e=e.replaceAll(t,n)}return e=e.replace(a,e=>i.get(e)??e),e=e.normalize(`NFD`).replaceAll(/\p{Diacritic}/gu,``).normalize(),e=e.replaceAll(/\p{Dash_Punctuation}/gu,`-`),e}var ufe,tI,dfe,nI,ffe;function pfe(){return(pfe=o((()=>{sfe(),cfe(),ufe=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),tI=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>ufe(e)).join(`|`),`gu`)},dfe=tI(QF),nI=new Map;for(let[e,t]of Object.entries(eI)){let n=new Map(QF);for(let[e,r]of t)n.set(e,r);nI.set(e,{replacements:n,pattern:tI(n)})}ffe=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(eI,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(eI,n))return n}})))()}var rI,iI;function aI(){return(aI=o((()=>{rI=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t)),iI=(e,t,n,r)=>{if(e.has(t)){let n=e.get(t);return e.delete(t),e.set(t,n),n}let i=n();return e.set(t,i),e.size>r&&e.delete(e.keys().next().value),i}})))()}var mfe,hfe,oI;function sI(){return(sI=o((()=>{pfe(),Dd(),wD(),AM(),zq(),aI(),mfe=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],hfe=new Map,oI=(e,{fallback:t=!0,locale:n=void 0,maxLength:r=void 0}={})=>{let{slug:{encoding:i=`unicode`,clean_accents:a=!1,sanitize_replacement:o=`-`,maxlength:s=void 0,trim:c=!0,lowercase:l=!0}={}}=k(Nq)??{},u=r??s,d=e;if(a&&(d=lfe(d.normalize(`NFD`),{locale:n&&mfe.includes(n)?n:void 0})),d=i===`ascii`?d.replaceAll(/[^\w-~]/g,` `):d.replaceAll(/[\p{Z}\p{C}!"#$%&'()*+,/:;<=>?@[\\\]^`{|}]/gu,` `),d=d.trim().replaceAll(/\s+/g,o),o){let e=o.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=rI(hfe,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));d=d.replace(t.consecutivePattern,o),c&&(d=d.replace(t.trimPattern,``))}return!d&&t&&(d=wd(`short`)),typeof u==`number`&&d.length>u&&(d=vD(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d}})))()}var gfe;function _fe(){return(_fe=o((()=>{gfe=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`)})))()}var cI;function vfe(){return(vfe=o((()=>{cI={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`}})))()}function yfe(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function bfe(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function xfe(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Sfe(e){return xfe(e)||yfe(e)}function Cfe(){return(Cfe=o((()=>{})))()}function wfe(e){let t=`&`+e+`;`;lI.innerHTML=t;let n=lI.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var lI;function Tfe(){return(Tfe=o((()=>{lI=document.createElement(`i`)})))()}function Efe(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?Sfe:u===`decimal`?yfe:bfe;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&gfe.includes(y)&&(_=y,v=wfe(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&wfe(y);e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1)){if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):Sfe(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(Dfe(e))h(7,S),C=`�`;else if(e in cI)h(6,S),C=cI[e];else{let t=``;Ofe(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,kfe[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function Dfe(e){return e>=55296&&e<=57343||e>1114111}function Ofe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var kfe;function Afe(){return(Afe=o((()=>{_fe(),vfe(),Cfe(),Tfe(),kfe=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`]})))()}var uI,dI;function fI(){return(fI=o((()=>{VM(),uI=(e,t)=>{if(!e.includes(`{{`))return e;let{innerTag:n}=e.match(Zle)?.groups??{};return n===void 0?e:String(t(n)??``)},dI=(e,t)=>e.map(e=>{let{defaultValue:n,truthyValue:r,falsyValue:i}=e.args,a={...e.args},o=!1;if(n!==void 0){let e=uI(n,t);e!==n&&(a.defaultValue=e,o=!0)}if(r!==void 0){let e=uI(r,t);e!==r&&(a.truthyValue=e,o=!0)}if(i!==void 0){let e=uI(i,t);e!==i&&(a.falsyValue=e,o=!0)}return o?{...e,args:a}:e})})))()}var pI=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof te||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new te(n)},ee=v;ee.l=C,ee.i=S,ee.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var te=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(ee.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return ee},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return ee.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!ee.u(t)||t,u=ee.p(e),p=function(e,t){var i=ee.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return ee.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=ee.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[ee.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=ee.p(u),h=function(e){var t=w(p);return ee.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return ee.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=ee.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return ee.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return ee.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return ee.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return ee.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return ee.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return ee.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return ee.s(t.$s,2,`0`);case`SSS`:return ee.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=ee.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return ee.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:ee.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return ee.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ne=te.prototype;return w.prototype=ne,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ne[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,te,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),mI=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),hI=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),gI=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r;if(o===0)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c,s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),jfe,_I,vI,yI;function bI(){return(bI=o((()=>{jfe=new Set([`local`,`utc`]),_I=new WeakMap,vI=e=>typeof e==`string`&&!jfe.has(e),yI=e=>{let t=_I.get(e);if(t)return t;let{type:n=`datetime-local`,min:r=void 0,max:i=void 0,step:a=void 0,format:o,date_format:s=void 0,time_format:c=void 0,picker_utc:l=!1,input_timezone:u=`local`,output_utc:d=!1}=e,f=typeof u==`string`&&u!==`any`?u:`local`,p=typeof s==`string`?s:``,m=typeof c==`string`?c:``,h=n===`date`||c===!1,g=n===`time`||s===!1,_=h?`9999-12-31`:g?void 0:`9999-12-31T23:59`,v=e.input_timezone===void 0?l?`utc`:`local`:f,y={type:h?`date`:g?`time`:`datetime-local`,min:typeof r==`string`&&r?r:void 0,max:typeof i==`string`&&i?i:_,step:typeof a==`number`&&Number.isInteger(a)&&a>0||a===`any`?a:void 0,format:o||[p,m].join(` `).trim()||void 0,dateOnly:h,timeOnly:g,inputTimeZone:v,outputUTC:e.output_utc===void 0?l:d,utc:v===`utc`,singleCustomTimeZone:vI(v)?v:void 0};return _I.set(e,y),y}})))()}var xI,Mfe,Nfe,Pfe,Ffe,Ife,Lfe,Rfe,zfe,SI,Bfe,Vfe,Hfe,Ufe,Wfe,Gfe,Kfe,CI;function wI(){return(wI=o((()=>{wD(),xI=l(pI(),1),Mfe=l(mI(),1),Nfe=l(hI(),1),Pfe=l(gI(),1),sI(),bI(),xI.default.extend(Mfe.default),xI.default.extend(Nfe.default),xI.default.extend(Pfe.default),Ffe=/\s*\|\s*/,Ife=/^\d{4}-[01]\d-[0-3]\d$/,Lfe=/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/,Rfe=Object.entries({date:/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,default:/^default\('(?<defaultValue>.+?)'\)$/,ternary:/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,truncate:/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/}),zfe=e=>{for(let[t,n]of Rfe){let r=Object.entries(e.match(n)?.groups??{});if(r.length)return{method:t,args:Object.fromEntries(r.filter(([,e])=>e!==void 0))}}return{method:e,args:{}}},SI=e=>{let[t,...n]=e.trim().split(Ffe);return{value:t,transformations:n.map(e=>zfe(e))}},Bfe=e=>String(e).toUpperCase(),Vfe=e=>String(e).toLowerCase(),Hfe=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=yI(r),s=(n===`utc`||o||a&&i.match(Ife)||a&&i.match(Lfe)?xI.default.utc:xI.default)(i);return s.isValid()?s.format(t):``},Ufe=(e,{defaultValue:t})=>e?String(e):t,Wfe=(e,{truthyValue:t,falsyValue:n})=>e?t:n,Gfe=(e,{max:t,ellipsis:n=`…`})=>vD(String(e),Number(t),{ellipsis:n}),Kfe=({fieldConfig:e,value:t,transformation:n,locale:r})=>{let{method:i,args:a}=n;switch(i){case`upper`:return Bfe(t);case`lower`:return Vfe(t);case`slugify`:return oI(String(t),{locale:r});case`date`:return Hfe(t,a,e??{});case`default`:return Ufe(t,a);case`ternary`:return Wfe(t,a);case`truncate`:return Gfe(t,a);default:return String(t)}},CI=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=Kfe({fieldConfig:e,value:t,transformation:n,locale:r})}),t)})))()}var TI,EI,DI,OI,kI,AI,jI;function MI(){return(MI=o((()=>{AM(),zq(),XL(),VL(),TI=e=>!(`divider`in e)&&typeof e.file==`string`&&Array.isArray(e.fields),EI=e=>e.filter(e=>TI(e)),DI=(e,t)=>{let n=typeof e==`string`?RL(e):e;if(!(!n||!(`_fileMap`in n)))return n._fileMap[t]},OI=e=>e.label||e.name,kI=(e,t)=>`_fileMap`in e?Object.values(e._fileMap).filter(({_file:e,_i18n:n})=>e.fullPath===t.locales[n.defaultLocale]?.path):[],AI=(e,t)=>{let n=k(WL).find(({collectionName:n,fileName:r})=>n===e&&r===t);if(!n?.filePathMap)return;let r=new Set(Object.values(n.filePathMap));return k(GL).find(e=>Object.values(e.locales).some(({path:e})=>r.has(e)))},jI=(e,t)=>{if(e&&t){let{collections:n,singletons:r}=k(Nq);if(e===`_singletons`)return Array.isArray(r)?EI(r).findIndex(e=>e.name===t):-1;let i=ML({collections:n}).find(({name:t})=>t===e);if(i&&`files`in i)return i.files.findIndex(({name:e})=>e===t)}return-1}})))()}var NI,qfe,Jfe,PI,FI,Yfe;function II(){return(II=o((()=>{NI=[`boolean`,`code`,`color`,`compute`,`datetime`,`file`,`hidden`,`image`,`keyvalue`,`list`,`map`,`markdown`,`number`,`object`,`relation`,`richtext`,`select`,`string`,`text`,`uuid`],qfe=[`boolean`,`color`,`compute`,`datetime`,`map`,`markdown`,`number`,`richtext`,`string`,`text`,`uuid`],Jfe=qfe.filter(e=>![`boolean`,`number`].includes(e)),PI=[`file`,`image`],FI=[...PI,`relation`,`select`],Yfe=[...FI,`datetime`,`keyvalue`,`list`,`number`]})))()}var LI,RI,zI,BI,VI,HI;function UI(){return(UI=o((()=>{LI=new Map,RI=new Map,zI=new Map,BI=new Set,VI=new Map,HI=new Set})))()}var WI,Xfe,GI;function KI(){return(KI=o((()=>{WI={slug_length:!1,yaml_quote:!1,uuid_read_only:!1,save_all_locales:!1,automatic_deployments:!1,multiple_folders_i18n_root:!1,omit_default_locale_from_filename:!1},Xfe={slug_length:"The `slug_length` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `slug.maxlength` option instead. ",yaml_quote:"The `yaml_quote` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `output.yaml.quote` option instead. `yaml_quote: true` is equivalent to `quote: double`. https://sveltiacms.app/en/docs/data-output#controlling-data-output",uuid_read_only:"The `read_only` option for the UUID field type is deprecated and will be removed in Sveltia CMS 1.0. Use the `readonly` option instead.",save_all_locales:"The `save_all_locales` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `initial_locales` option instead. `save_all_locales: false` is equivalent to `initial_locales: all`. https://sveltiacms.app/en/docs/i18n#disabling-non-default-locale-content",automatic_deployments:"The `automatic_deployments` backend option is deprecated and will be removed in Sveltia CMS 1.0. Use the `skip_ci` option instead. `automatic_deployments: false` is equivalent to `skip_ci: true`, and `automatic_deployments: true` is equivalent to `skip_ci: false`. https://sveltiacms.app/en/docs/deployments#disabling-automatic-deployments",multiple_folders_i18n_root:"The `multiple_folders_i18n_root` i18n structure is deprecated and will be removed in Sveltia CMS 1.0. Use the `multiple_root_folders` structure instead. https://sveltiacms.app/en/docs/i18n#multiple-root-folders",omit_default_locale_from_filename:"The `omit_default_locale_from_filename` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `omit_default_locale_from_file_path` option instead. https://sveltiacms.app/en/docs/i18n#managing-content-structure"},GI=(e,t)=>{WI[e]||(console.warn(t??Xfe[e]),WI[e]=!0)}})))()}var Zfe,qI,JI,YI,XI;function ZI(){return(ZI=o((()=>{Z(),VL(),Zfe=`_index`,qI=new WeakMap,JI=e=>{if(!OL(e))return;let{index_file:t}=e;if(t)return(t===!0?void 0:t.name)??Zfe},YI=e=>{let t=qI.get(e);if(t&&t.locale===zu.current)return t.indexFile;let n=JI(e),r;if(n!==void 0){let{index_file:t}=e,i=t===!0?{}:t;r={name:n,label:i.label??X(`index_file`),icon:i.icon??`home`,fields:i.fields,editor:i.editor}}return qI.set(e,{locale:zu.current,indexFile:r}),r},XI=(e,t)=>{let n=JI(e);return n!==void 0&&t.slug===n}})))()}var QI,$I,Qfe,$fe,epe,tpe,eL,npe;function tL(){return(tL=o((()=>{QI=[`markdown`,`md`,`mdown`,`mdwn`,`mdx`,`mkd`,`mkdn`,`html.md`],$I=[`njk`],Qfe=[...QI,...$I],$fe={raw:`txt`,yaml:`yml`,yml:`yml`,toml:`toml`,json:`json`},epe={yaml:`yaml`,yml:`yaml`,toml:`toml`,json:`json`,astro:`raw`},tpe={"json-frontmatter":[`{`,`}`],"toml-frontmatter":[`+++`,`+++`],"yaml-frontmatter":[`---`,`---`]},eL=[`yaml-frontmatter`,`toml-frontmatter`,`json-frontmatter`],npe=[`toml`,`toml-frontmatter`]})))()}var rpe,nL,rL,iL,aL,oL,sL,cL;function lL(){return(lL=o((()=>{Z(),rpe={type:`language`,languageDisplay:`standard`,style:`short`,fallback:`none`},nL=e=>{let t;if(e!==`_default`)try{[t]=Intl.getCanonicalLocales(e)}catch{}return t},rL=e=>e===`_default`?`auto`:Ru(e)?`rtl`:`ltr`,iL=new Map,aL=(e,{displayLocale:t=nL(zu.current??`en`),formatterOptions:n=rpe}={})=>{let r=nL(e);if(!r)return;let i;t?(i=iL.get(t),i||(i=new Intl.DisplayNames(t,n),iL.set(t,i))):i=new Intl.DisplayNames(void 0,n);try{let e=i.of(r);if(!e)return;let[n,...a]=e;return[n.toLocaleUpperCase(t),...a].join(``)}catch(e){console.error(e);return}},oL=new Map,sL=(e,t={})=>{let n={style:`narrow`,type:`conjunction`,...t},r=`${e}|${n.style}|${n.type}`,i=oL.get(r);return i||(i=new Intl.ListFormat(nL(e),n),oL.set(r,i)),i},cL=({_i18n:e,locale:t,path:n})=>{let{defaultLocale:r,omitDefaultLocaleFromFilePath:i}=e;return i&&t===r&&(n=n.replace(/{{locale}}[./]/,``)),n.replaceAll(`{{locale}}`,t)}})))()}var uL,ipe,ape,ope,dL,fL;function pL(){return(pL=o((()=>{FM(),wD(),UI(),VM(),KI(),VL(),ZI(),tL(),lL(),uL=({extension:e,format:t})=>(t?zI.get(t)?.extension:void 0)||e||(t?$fe[t]??`md`:`md`),ipe=({extension:e,format:t})=>t||(QI.includes(e)?`frontmatter`:epe[e]??`yaml-frontmatter`),ape=(e,t)=>e?`(?<subPath>${_D(e).replace(BM,`[^/]+?`)}${t?`|${t}`:``})`:`(?<subPath>[^/]+?)`,ope=({extension:e,format:t,basePath:n,subPath:r,indexFileName:i,_i18n:a})=>{let{allLocales:o,defaultLocale:s,omitDefaultLocaleFromFilePath:c,structureMap:{i18nMultiFile:l,i18nMultiFolder:u,i18nMultiRootFolder:d}}=a,f=`(?<locale>${o.join(`|`)})`,p=o.filter(e=>e!==s).join(`|`),m=c?`(?:(?<locale>${p})\\/)?`:`${f}\\/`,h=c?`(?:\\.(?<locale>${p}))?`:`\\.${f}`,g=[`^`,d?m:``,n?`${_D(n)}\\/`:``,u?m:``,ape(r,i),l?h:``,`\\.`,_D(uL({format:t,extension:e})),`$`].join(``);return new RegExp(g)},dL=({format:e,delimiter:t})=>typeof t==`string`&&t.trim()?[t,t]:Array.isArray(t)&&t.length===2?t:tpe[e]??void 0,fL=({rawCollection:e,file:t,_i18n:n})=>{let{folder:r,path:i,extension:a,format:o,frontmatter_delimiter:s,body_field:c,yaml_quote:l}=e,u=OL(e),d=t?.file?yD(t.file):void 0,f=d?NM(d).extension:a,p=t?.format??o,m=uL({format:p,extension:f}),h=ipe({format:p,extension:m}),g=t?.frontmatter_delimiter??s,_=u?yD(r):void 0,v=u?YI(e)?.name:void 0;return l!==void 0&&GI(`yaml_quote`),{extension:m,format:h,basePath:_,subPath:u?i:void 0,fullPathRegEx:_===void 0?void 0:ope({extension:m,format:h,basePath:_,subPath:i,indexFileName:v,_i18n:n}),fullPath:d?cL({_i18n:n,locale:n.defaultLocale,path:d}):void 0,fmDelimiters:dL({format:h,delimiter:g}),bodyField:t?.body_field??c,yamlQuote:!!l}}})))()}var mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL;function TL(){return(TL=o((()=>{_(),AM(),zq(),KI(),VL(),mL={SINGLE_FILE:`single_file`,SINGLE_FILE_DEFAULT_ROOT:`single_file_default_root`,MULTIPLE_FILES:`multiple_files`,MULTIPLE_FOLDERS:`multiple_folders`,MULTIPLE_FOLDERS_I18N_ROOT:`multiple_folders_i18n_root`,MULTIPLE_ROOT_FOLDERS:`multiple_root_folders`},hL=`_default`,gL={key:`translationKey`,value:`{{slug}}`},_L={i18nEnabled:!1,saveAllLocales:!0,allLocales:[hL],initialLocales:[hL],defaultLocale:hL,structure:mL.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nSingleFileDefaultRoot:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nMultiRootFolder:!1},canonicalSlug:{...gL},omitDefaultLocaleFromFilePath:!1,omitDefaultLocaleFromPreviewPath:!1},vL=(e,t)=>{let n=k(Nq);if(!h(n.i18n))return;let r=structuredClone(n.i18n);if(e.i18n||AL(e)){if(h(e.i18n)&&Object.assign(r,e.i18n),t){if(t.i18n)h(t.i18n)&&Object.assign(r,t.i18n);else return}}else return;return r},yL=(e,t)=>t?t.file.includes(`{{locale}}`)?mL.MULTIPLE_FILES:e===mL.SINGLE_FILE_DEFAULT_ROOT?mL.SINGLE_FILE_DEFAULT_ROOT:mL.SINGLE_FILE:e,bL=(e,t)=>({i18nSingleFile:e&&t===mL.SINGLE_FILE,i18nSingleFileDefaultRoot:e&&t===mL.SINGLE_FILE_DEFAULT_ROOT,i18nMultiFile:e&&t===mL.MULTIPLE_FILES,i18nMultiFolder:e&&t===mL.MULTIPLE_FOLDERS,i18nMultiRootFolder:e&&(t===mL.MULTIPLE_FOLDERS_I18N_ROOT||t===mL.MULTIPLE_ROOT_FOLDERS)}),xL=(e,t,n)=>e?n&&t.includes(n)?n:t[0]:hL,SL=(e,t,n)=>e===`all`?t:e==="default"?[n]:t.filter(t=>t===n||!Array.isArray(e)||e.includes(t)),CL=(e,t,n)=>e?n?/{{locale}}[./]/.test(n.file):t.i18nMultiFile||t.i18nMultiFolder||t.i18nMultiRootFolder:!1,wL=(e,t)=>{let n=vL(e,t),{structure:r=mL.SINGLE_FILE,locales:i=[],default_locale:a,initial_locales:o,save_all_locales:s=!0,canonical_slug:c={key:void 0,value:void 0},omit_default_locale_from_filename:l,omit_default_locale_from_file_path:u=l??!1,omit_default_locale_from_preview_path:d=!1}=n??{};n?.save_all_locales!==void 0&&GI(`save_all_locales`),l!==void 0&&GI(`omit_default_locale_from_filename`);let{key:f=gL.key,value:p=gL.value}=c,m=i.length>0,h=m?i:[hL],g=xL(m,h,a),_=yL(r,t),v=bL(m,_),y=!m||s===!0&&o===void 0,b=SL(o,h,g),x=CL(u,v,t);return _===`multiple_folders_i18n_root`&&GI(`multiple_folders_i18n_root`),{i18nEnabled:m,saveAllLocales:y,allLocales:h,defaultLocale:g,initialLocales:b,structure:_,structureMap:v,canonicalSlug:{key:f,value:p},omitDefaultLocaleFromFilePath:x,omitDefaultLocaleFromPreviewPath:d}}})))()}var EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL;function VL(){return(VL=o((()=>{Z(),wD(),AM(),zq(),MI(),II(),pL(),TL(),EL=sn(),DL=new Map,OL=e=>typeof e.folder==`string`&&!Array.isArray(e.files),kL=e=>e.folder===void 0&&Array.isArray(e.files),AL=e=>kL(e)&&e.name===`_singletons`,jL=(e,{visible:t=void 0,type:n=void 0}={})=>`divider`in e||t&&e.hide?!1:n===`entry`?OL(e):n===`file`?kL(e):n===`singleton`?AL(e):OL(e)||kL(e),ML=({collections:e=k(Nq)?.collections??[],visible:t,type:n}={})=>e.filter(e=>jL(e,{visible:t,type:n})),NL=()=>ML({visible:!0})[0],PL=e=>{if(!(`folder`in e))return[];let{fields:t,thumbnail:n=!0}=e;return n===!1?[]:typeof n==`string`?[n]:Array.isArray(n)?n:t?.length?t.filter(({widget:e=`string`})=>PI.includes(e)).map(({multiple:e,name:t})=>e?`${t}.*`:t):[]},FL=(e,t)=>({...e,_i18n:t,_type:`entry`,_file:fL({rawCollection:e,_i18n:t}),_thumbnailFieldNames:PL(e)}),IL=(e,t,n)=>({...e,_i18n:t,_type:AL(e)?`singleton`:`file`,_fileMap:Object.fromEntries(n.filter(TI).map(t=>{let n=wL(e,t),r=fL({rawCollection:e,file:t,_i18n:n});return[t.name,{...t,_file:r,_i18n:n}]}))}),LL=()=>{let e=k(Nq)?.singletons;if(!Array.isArray(e))return;let t=EI(e).map(e=>({...e,file:yD(e.file)}));if(!t.length)return;let n={name:`_singletons`,files:t},r=wL(n);return IL(n,r,t)},RL=e=>{let t=DL.get(e);if(t)return t;if(e===`_singletons`){let t=LL();return DL.set(e,t),t}let n=ML().find(t=>t.name===e);if(!n){DL.set(e,void 0);return}let r=OL(n)?n:void 0,i=kL(n)?n:void 0;if(!r&&!i){DL.set(e,void 0);return}r?r.folder=yD(r.folder):i?.files.forEach(e=>{e.file&&=yD(e.file)});let a=wL(n),o=r?FL(r,a):IL(i,a,i.files);return DL.set(e,o),o},zL=(e,{useSingular:t=!1}={})=>{let{_type:n,name:r,label:i,label_singular:a}=e;return n===`singleton`?X(`files`):t&&a?a:i||r},BL=e=>e?e===`_singletons`?9999999:k(Nq)?.collections?.findIndex(({name:t})=>t===e)??-1:-1})))()}var HL,UL,WL,GL,KL,qL,JL,YL;function XL(){return(XL=o((()=>{AM(),VL(),HL=sn(!1),UL=sn(),WL=sn([]),GL=sn([]),KL=sn([]),qL={source:void 0,fileMap:new Map,regexFolders:[]},JL=()=>{let e=k(WL);if(e===qL.source)return qL;let t=new Map,n=[];return e.forEach(e=>{e.filePathMap?[...new Set(Object.values(e.filePathMap))].forEach(n=>{let r=t.get(n);r?r.push(e):t.set(n,[e])}):n.push([e,RL(e.collectionName)?._file?.fullPathRegEx])}),qL.source=e,qL.fileMap=t,qL.regexFolders=n,qL},YL=e=>{let{fileMap:t,regexFolders:n}=JL();return[...t.get(e)??[],...n.filter(([,t])=>t?.test(e)).map(([e])=>e)].sort((e,t)=>(t.folderPath??``).localeCompare(e.folderPath??``))}})))()}var ZL,QL,$L,eR,tR,nR;function rR(){return(rR=o((()=>{ZL=new WeakMap,QL=e=>{let t=ZL.get(e);return t||(t=Object.keys(e).map((e,t)=>[e,t]).sort(([e],[t])=>e<t?-1:1),ZL.set(e,t)),t},$L=(e,t)=>{let n=QL(e),r=0,i=n.length;for(;r<i;){let e=Math.floor((r+i)/2);n[e][0]<t?r=e+1:i=e}let a=[];for(let e=r;e<n.length&&n[e][0].startsWith(t);e+=1)a.push(n[e]);return a.sort(([,e],[,t])=>e-t).map(([e])=>e)},eR=/^(?<parent>.+)\.\d+$/,tR=new WeakMap,nR=(e,t)=>{let n=tR.get(e);return n||(n=new Map,Object.keys(e).forEach(e=>{let{parent:t}=e.match(eR)?.groups??{};if(t===void 0)return;let r=n.get(t);r?r.push(e):n.set(t,[e])}),tR.set(e,n)),n.get(t)??[]}})))()}var spe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var a,o=function(e,n,r){r===void 0&&(r={});var i=new Date(e);return function(e,n){n===void 0&&(n={});var r=n.timeZoneName||`short`,i=e+`|`+r,a=t[i];return a||(a=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:r}),t[i]=a),a}(n,r).formatToParts(i)},s=function(t,n){for(var r=o(t,n),a=[],s=0;s<r.length;s+=1){var c=r[s],l=c.type,u=c.value,d=e[l];d>=0&&(a[d]=parseInt(u,10))}var f=a[3],p=f===24?0:f,m=a[0]+`-`+a[1]+`-`+a[2]+` `+p+`:`+a[4]+`:`+a[5]+`:000`,h=+t;return(i.utc(m).valueOf()-(h-=h%1e3))/6e4},c=r.prototype;c.tz=function(e,t){e===void 0&&(e=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString(`en-US`,{timeZone:e}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(!Number(l))n=this.utcOffset(0,t);else if(n=i(s,{locale:this.$L}).$set(`millisecond`,this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,`minute`)}return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return e.type.toLowerCase()===`timezonename`}));return n&&n.value};var l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=i(this.format(`YYYY-MM-DD HH:mm:ss:SSS`),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,o=n||t||a,c=s(+i(),o);if(typeof e!=`string`)return i(e).tz(o);var l=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var a=s(r-=60*(i-t)*1e3,n);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,r).valueOf(),c,o),u=l[0],d=l[1],f=i(u).utcOffset(d);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}))})),iR,aR,oR,sR,cR,lR;function uR(){return(uR=o((()=>{iR=/^\d{4}-[01]\d-[0-3]\d$/,aR=/T00:00(?::00)?(?:\.000)?Z$/,oR={year:`numeric`,month:`short`,day:`numeric`},sR={hour:`numeric`,minute:`numeric`,hour12:!0},cR={...oR,...sR},lR=(e,t)=>e.toLocaleString(t??void 0,cR)})))()}var dR,fR,pR,mR,hR;function gR(){return(gR=o((()=>{bI(),dR=/(?<hours>[+-]\d{2})(?::?(?<minutes>\d{2}))?(?::?(?<seconds>\d{2}))?(?:\.\d+)?$|Z$/,fR=e=>String(Math.abs(Number(e))).padStart(2,`0`),pR=(e,t)=>{if(typeof e!=`string`||!e.trim())return;let{inputTimeZone:n}=yI(t);if(n===`local`||n===`utc`)return;let r=new Date(e);if(Number.isNaN(r.getTime()))return;let i=e.match(dR);if(!i?.groups)return;let{hours:a,minutes:o=`0`}=i.groups,s=i[0]===`Z`?`+00:00`:`${a.startsWith(`-`)?`-`:`+`}${fR(a)}:${fR(o)}`;return(new Intl.DateTimeFormat(`en-US`,{timeZone:n,timeZoneName:`longOffset`}).formatToParts(r).find(e=>e.type===`timeZoneName`)?.value??``).replace(`GMT`,``)===s?n:void 0},mR=(e,t)=>{let n=pR(e,t);if(n)return n;let{inputTimeZone:r,singleCustomTimeZone:i}=yI(t);if(i)return i;try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(r===`local`)return e}catch{return r===`local`?``:void 0}},hR=(e,t=new Date)=>{try{let n=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).formatToParts(t).find(e=>e.type===`timeZoneName`)?.value??``,r=e.split(`/`).pop()?.replaceAll(`_`,` `)??e;return`(${n.replace(`GMT`,``)}) ${r}`}catch{return e}}})))()}var _R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR;function NR(){return(NR=o((()=>{ZF(),_R=l(pI(),1),vR=l(mI(),1),yR=l(hI(),1),bR=l(spe(),1),xR=l(gI(),1),lL(),uR(),bI(),gR(),_R.default.extend(vR.default),_R.default.extend(yR.default),_R.default.extend(xR.default),_R.default.extend(bR.default),SR=/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/,CR=/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/,wR=e=>e instanceof Date&&!Number.isNaN(e.getTime()),TR=e=>e?_R.default.utc:_R.default,ER=({value:e,format:t,parseAsUTC:n})=>{let r=TR(n),i=r(e,t);return i.isValid()?i:r(e)},DR=({date:e,timeZone:t,inputTimeZone:n,dateOnly:r,timeOnly:i,includeUTCSeconds:a=!1})=>{let o=t||(n===`utc`?`UTC`:void 0),{year:s,month:c,day:l,hour:u,minute:d}=XF({date:e,timeZone:o}),f=`${s}-${c}-${l}`,p=`${u}:${d}`;return r?f:i?p:a&&o===`UTC`?`${f}T${p}:00.000Z`:`${f}T${p}`},OR=(e,t)=>{let{format:n,timeOnly:r,utc:i,outputUTC:a}=yI(t),o=i||a;if(!e)return;let s;if(n){let t=ER({value:e,format:n,parseAsUTC:o});if(t.isValid())return t.toDate();console.error(`Invalid Date`,e);return}if(s=r?new Date(`${new Date().toJSON().split(`T`)[0]}T${e}`):new Date(e),wR(s))return s;console.error(`Invalid Date`,e)},kR=(e,t)=>{let{dateOnly:n,timeOnly:r,inputTimeZone:i}=yI(e);return DR({timeZone:t,inputTimeZone:i,dateOnly:n,timeOnly:r,includeUTCSeconds:!0})},AR=({inputValue:e,currentValue:t,fieldConfig:n,timeZone:r,outputUTC:i})=>{let{format:a,dateOnly:o,timeOnly:s,inputTimeZone:c,outputUTC:l}=yI(n),u=i??l,d=o?`YYYY-MM-DD`:s?`HH:mm`:`YYYY-MM-DDTHH:mm`,f=c===`utc`?`UTC`:c===`local`?u?r:void 0:r||c;if(e===``)return``;if(!e)return;if(a){let t=TR(c===`utc`),n=t(e,d);return n.isValid()||(n=t(e)),n.isValid()?(f&&(n=n.tz(f,!0)),u&&c!==`utc`&&(n=n.utc()),n.format(a)):``}if(o)return e;let p=/:\d{2}$/.test(e),m=t?`:00${t.endsWith(`.000`)?`.000`:``}`:`:00`;return s?p?e:`${e}${m}`:c===`utc`?_R.default.utc(e).format():u?(r?_R.default.tz(e,r):(0,_R.default)(e)).utc().format():r&&c!==`local`?_R.default.tz(e,r).format(`YYYY-MM-DDTHH:mm:ssZ`):p?e:`${e}${m}`},jR=({currentValue:e,fieldConfig:t,timeZone:n})=>{let{dateOnly:r,timeOnly:i,inputTimeZone:a,format:o,outputUTC:s}=yI(t),c=pR(e,t)??n;if(!e)return``;let l=r?e.match(SR)?.groups?.date:i?e.match(CR)?.groups?.time:void 0;if(l)return l;let u;if(c&&o&&!s){try{let t=(0,_R.default)(e,o).tz(c,!0);u=t.isValid()?t.toDate():void 0}catch{}u??=OR(e,t)}else u=OR(e,t);return u?DR({date:u,timeZone:c,inputTimeZone:a,dateOnly:r,timeOnly:i}):``},MR=({locale:e,fieldConfig:t,currentValue:n})=>{let{format:r,dateOnly:i,timeOnly:a,utc:o,singleCustomTimeZone:s}=yI(t),c=o?`UTC`:s;if(typeof n!=`string`||!n.trim())return``;if(r){let e=ER({value:n,format:r,parseAsUTC:o});return e.isValid()?e.format(r):(console.error(`Invalid Date`,n),``)}let l=OR(n,t),u=nL(e);return wR(l)?a?l.toLocaleTimeString(u,{...sR,timeZone:c}):i?l.toLocaleDateString(u,{...oR,timeZone:c||(o||iR.test(n)||aR.test(n)?`UTC`:void 0)}):l.toLocaleString(u,{...oR,...sR,timeZone:c,timeZoneName:void 0}):``}})))()}var PR;function FR(){return(FR=o((()=>{PR={"application/prs.cww":[`cww`],"application/prs.xsf+xml":[`xsf`],"application/vnd.1000minds.decision-model+xml":[`1km`],"application/vnd.3gpp.pic-bw-large":[`plb`],"application/vnd.3gpp.pic-bw-small":[`psb`],"application/vnd.3gpp.pic-bw-var":[`pvb`],"application/vnd.3gpp2.tcap":[`tcap`],"application/vnd.3m.post-it-notes":[`pwn`],"application/vnd.accpac.simply.aso":[`aso`],"application/vnd.accpac.simply.imp":[`imp`],"application/vnd.acucobol":[`acu`],"application/vnd.acucorp":[`atc`,`acutc`],"application/vnd.adobe.air-application-installer-package+zip":[`air`],"application/vnd.adobe.formscentral.fcdt":[`fcdt`],"application/vnd.adobe.fxp":[`fxp`,`fxpl`],"application/vnd.adobe.xdp+xml":[`xdp`],"application/vnd.adobe.xfdf":[`*xfdf`],"application/vnd.age":[`age`],"application/vnd.ahead.space":[`ahead`],"application/vnd.airzip.filesecure.azf":[`azf`],"application/vnd.airzip.filesecure.azs":[`azs`],"application/vnd.amazon.ebook":[`azw`],"application/vnd.americandynamics.acc":[`acc`],"application/vnd.amiga.ami":[`ami`],"application/vnd.android.package-archive":[`apk`],"application/vnd.anser-web-certificate-issue-initiation":[`cii`],"application/vnd.anser-web-funds-transfer-initiation":[`fti`],"application/vnd.antix.game-component":[`atx`],"application/vnd.apple.installer+xml":[`mpkg`],"application/vnd.apple.keynote":[`key`],"application/vnd.apple.mpegurl":[`m3u8`],"application/vnd.apple.numbers":[`numbers`],"application/vnd.apple.pages":[`pages`],"application/vnd.apple.pkpass":[`pkpass`],"application/vnd.aristanetworks.swi":[`swi`],"application/vnd.astraea-software.iota":[`iota`],"application/vnd.audiograph":[`aep`],"application/vnd.autodesk.fbx":[`fbx`],"application/vnd.balsamiq.bmml+xml":[`bmml`],"application/vnd.blueice.multipass":[`mpm`],"application/vnd.bmi":[`bmi`],"application/vnd.businessobjects":[`rep`],"application/vnd.chemdraw+xml":[`cdxml`],"application/vnd.chipnuts.karaoke-mmd":[`mmd`],"application/vnd.cinderella":[`cdy`],"application/vnd.citationstyles.style+xml":[`csl`],"application/vnd.claymore":[`cla`],"application/vnd.cloanto.rp9":[`rp9`],"application/vnd.clonk.c4group":[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`],"application/vnd.cluetrust.cartomobile-config":[`c11amc`],"application/vnd.cluetrust.cartomobile-config-pkg":[`c11amz`],"application/vnd.commonspace":[`csp`],"application/vnd.contact.cmsg":[`cdbcmsg`],"application/vnd.cosmocaller":[`cmc`],"application/vnd.crick.clicker":[`clkx`],"application/vnd.crick.clicker.keyboard":[`clkk`],"application/vnd.crick.clicker.palette":[`clkp`],"application/vnd.crick.clicker.template":[`clkt`],"application/vnd.crick.clicker.wordbank":[`clkw`],"application/vnd.criticaltools.wbs+xml":[`wbs`],"application/vnd.ctc-posml":[`pml`],"application/vnd.cups-ppd":[`ppd`],"application/vnd.curl.car":[`car`],"application/vnd.curl.pcurl":[`pcurl`],"application/vnd.dart":[`dart`],"application/vnd.data-vision.rdz":[`rdz`],"application/vnd.dbf":[`dbf`],"application/vnd.dcmp+xml":[`dcmp`],"application/vnd.dece.data":[`uvf`,`uvvf`,`uvd`,`uvvd`],"application/vnd.dece.ttml+xml":[`uvt`,`uvvt`],"application/vnd.dece.unspecified":[`uvx`,`uvvx`],"application/vnd.dece.zip":[`uvz`,`uvvz`],"application/vnd.denovo.fcselayout-link":[`fe_launch`],"application/vnd.dna":[`dna`],"application/vnd.dolby.mlp":[`mlp`],"application/vnd.dpgraph":[`dpg`],"application/vnd.dreamfactory":[`dfac`],"application/vnd.ds-keypoint":[`kpxx`],"application/vnd.dvb.ait":[`ait`],"application/vnd.dvb.service":[`svc`],"application/vnd.dynageo":[`geo`],"application/vnd.ecowin.chart":[`mag`],"application/vnd.enliven":[`nml`],"application/vnd.epson.esf":[`esf`],"application/vnd.epson.msf":[`msf`],"application/vnd.epson.quickanime":[`qam`],"application/vnd.epson.salt":[`slt`],"application/vnd.epson.ssf":[`ssf`],"application/vnd.eszigno3+xml":[`es3`,`et3`],"application/vnd.ezpix-album":[`ez2`],"application/vnd.ezpix-package":[`ez3`],"application/vnd.fdf":[`*fdf`],"application/vnd.fdsn.mseed":[`mseed`],"application/vnd.fdsn.seed":[`seed`,`dataless`],"application/vnd.flographit":[`gph`],"application/vnd.fluxtime.clip":[`ftc`],"application/vnd.framemaker":[`fm`,`frame`,`maker`,`book`],"application/vnd.frogans.fnc":[`fnc`],"application/vnd.frogans.ltf":[`ltf`],"application/vnd.fsc.weblaunch":[`fsc`],"application/vnd.fujitsu.oasys":[`oas`],"application/vnd.fujitsu.oasys2":[`oa2`],"application/vnd.fujitsu.oasys3":[`oa3`],"application/vnd.fujitsu.oasysgp":[`fg5`],"application/vnd.fujitsu.oasysprs":[`bh2`],"application/vnd.fujixerox.ddd":[`ddd`],"application/vnd.fujixerox.docuworks":[`xdw`],"application/vnd.fujixerox.docuworks.binder":[`xbd`],"application/vnd.fuzzysheet":[`fzs`],"application/vnd.genomatix.tuxedo":[`txd`],"application/vnd.geogebra.file":[`ggb`],"application/vnd.geogebra.slides":[`ggs`],"application/vnd.geogebra.tool":[`ggt`],"application/vnd.geometry-explorer":[`gex`,`gre`],"application/vnd.geonext":[`gxt`],"application/vnd.geoplan":[`g2w`],"application/vnd.geospace":[`g3w`],"application/vnd.gmx":[`gmx`],"application/vnd.google-apps.document":[`gdoc`],"application/vnd.google-apps.drawing":[`gdraw`],"application/vnd.google-apps.form":[`gform`],"application/vnd.google-apps.jam":[`gjam`],"application/vnd.google-apps.map":[`gmap`],"application/vnd.google-apps.presentation":[`gslides`],"application/vnd.google-apps.script":[`gscript`],"application/vnd.google-apps.site":[`gsite`],"application/vnd.google-apps.spreadsheet":[`gsheet`],"application/vnd.google-earth.kml+xml":[`kml`],"application/vnd.google-earth.kmz":[`kmz`],"application/vnd.gov.sk.xmldatacontainer+xml":[`xdcf`],"application/vnd.grafeq":[`gqf`,`gqs`],"application/vnd.groove-account":[`gac`],"application/vnd.groove-help":[`ghf`],"application/vnd.groove-identity-message":[`gim`],"application/vnd.groove-injector":[`grv`],"application/vnd.groove-tool-message":[`gtm`],"application/vnd.groove-tool-template":[`tpl`],"application/vnd.groove-vcard":[`vcg`],"application/vnd.hal+xml":[`hal`],"application/vnd.handheld-entertainment+xml":[`zmm`],"application/vnd.hbci":[`hbci`],"application/vnd.hhe.lesson-player":[`les`],"application/vnd.hp-hpgl":[`hpgl`],"application/vnd.hp-hpid":[`hpid`],"application/vnd.hp-hps":[`hps`],"application/vnd.hp-jlyt":[`jlt`],"application/vnd.hp-pcl":[`pcl`],"application/vnd.hp-pclxl":[`pclxl`],"application/vnd.hydrostatix.sof-data":[`sfd-hdstx`],"application/vnd.ibm.minipay":[`mpy`],"application/vnd.ibm.modcap":[`afp`,`listafp`,`list3820`],"application/vnd.ibm.rights-management":[`irm`],"application/vnd.ibm.secure-container":[`sc`],"application/vnd.iccprofile":[`icc`,`icm`],"application/vnd.igloader":[`igl`],"application/vnd.immervision-ivp":[`ivp`],"application/vnd.immervision-ivu":[`ivu`],"application/vnd.insors.igm":[`igm`],"application/vnd.intercon.formnet":[`xpw`,`xpx`],"application/vnd.intergeo":[`i2g`],"application/vnd.intu.qbo":[`qbo`],"application/vnd.intu.qfx":[`qfx`],"application/vnd.ipunplugged.rcprofile":[`rcprofile`],"application/vnd.irepository.package+xml":[`irp`],"application/vnd.is-xpr":[`xpr`],"application/vnd.isac.fcs":[`fcs`],"application/vnd.jam":[`jam`],"application/vnd.jcp.javame.midlet-rms":[`rms`],"application/vnd.jisp":[`jisp`],"application/vnd.joost.joda-archive":[`joda`],"application/vnd.kahootz":[`ktz`,`ktr`],"application/vnd.kde.karbon":[`karbon`],"application/vnd.kde.kchart":[`chrt`],"application/vnd.kde.kformula":[`kfo`],"application/vnd.kde.kivio":[`flw`],"application/vnd.kde.kontour":[`kon`],"application/vnd.kde.kpresenter":[`kpr`,`kpt`],"application/vnd.kde.kspread":[`ksp`],"application/vnd.kde.kword":[`kwd`,`kwt`],"application/vnd.kenameaapp":[`htke`],"application/vnd.kidspiration":[`kia`],"application/vnd.kinar":[`kne`,`knp`],"application/vnd.koan":[`skp`,`skd`,`skt`,`skm`],"application/vnd.kodak-descriptor":[`sse`],"application/vnd.las.las+xml":[`lasxml`],"application/vnd.llamagraphics.life-balance.desktop":[`lbd`],"application/vnd.llamagraphics.life-balance.exchange+xml":[`lbe`],"application/vnd.lotus-1-2-3":[`123`],"application/vnd.lotus-approach":[`apr`],"application/vnd.lotus-freelance":[`pre`],"application/vnd.lotus-notes":[`nsf`],"application/vnd.lotus-organizer":[`org`],"application/vnd.lotus-screencam":[`scm`],"application/vnd.lotus-wordpro":[`lwp`],"application/vnd.macports.portpkg":[`portpkg`],"application/vnd.mapbox-vector-tile":[`mvt`],"application/vnd.mcd":[`mcd`],"application/vnd.medcalcdata":[`mc1`],"application/vnd.mediastation.cdkey":[`cdkey`],"application/vnd.mfer":[`mwf`],"application/vnd.mfmp":[`mfm`],"application/vnd.micrografx.flo":[`flo`],"application/vnd.micrografx.igx":[`igx`],"application/vnd.mif":[`mif`],"application/vnd.mobius.daf":[`daf`],"application/vnd.mobius.dis":[`dis`],"application/vnd.mobius.mbk":[`mbk`],"application/vnd.mobius.mqy":[`mqy`],"application/vnd.mobius.msl":[`msl`],"application/vnd.mobius.plc":[`plc`],"application/vnd.mobius.txf":[`txf`],"application/vnd.mophun.application":[`mpn`],"application/vnd.mophun.certificate":[`mpc`],"application/vnd.mozilla.xul+xml":[`xul`],"application/vnd.ms-artgalry":[`cil`],"application/vnd.ms-cab-compressed":[`cab`],"application/vnd.ms-excel":[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`],"application/vnd.ms-excel.addin.macroenabled.12":[`xlam`],"application/vnd.ms-excel.sheet.binary.macroenabled.12":[`xlsb`],"application/vnd.ms-excel.sheet.macroenabled.12":[`xlsm`],"application/vnd.ms-excel.template.macroenabled.12":[`xltm`],"application/vnd.ms-fontobject":[`eot`],"application/vnd.ms-htmlhelp":[`chm`],"application/vnd.ms-ims":[`ims`],"application/vnd.ms-lrm":[`lrm`],"application/vnd.ms-officetheme":[`thmx`],"application/vnd.ms-outlook":[`msg`],"application/vnd.ms-pki.seccat":[`cat`],"application/vnd.ms-pki.stl":[`*stl`],"application/vnd.ms-powerpoint":[`ppt`,`pps`,`pot`],"application/vnd.ms-powerpoint.addin.macroenabled.12":[`ppam`],"application/vnd.ms-powerpoint.presentation.macroenabled.12":[`pptm`],"application/vnd.ms-powerpoint.slide.macroenabled.12":[`sldm`],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":[`ppsm`],"application/vnd.ms-powerpoint.template.macroenabled.12":[`potm`],"application/vnd.ms-project":[`*mpp`,`mpt`],"application/vnd.ms-visio.viewer":[`vdx`],"application/vnd.ms-word.document.macroenabled.12":[`docm`],"application/vnd.ms-word.template.macroenabled.12":[`dotm`],"application/vnd.ms-works":[`wps`,`wks`,`wcm`,`wdb`],"application/vnd.ms-wpl":[`wpl`],"application/vnd.ms-xpsdocument":[`xps`],"application/vnd.mseq":[`mseq`],"application/vnd.musician":[`mus`],"application/vnd.muvee.style":[`msty`],"application/vnd.mynfc":[`taglet`],"application/vnd.nato.bindingdataobject+xml":[`bdo`],"application/vnd.neurolanguage.nlu":[`nlu`],"application/vnd.nitf":[`ntf`,`nitf`],"application/vnd.noblenet-directory":[`nnd`],"application/vnd.noblenet-sealer":[`nns`],"application/vnd.noblenet-web":[`nnw`],"application/vnd.nokia.n-gage.ac+xml":[`*ac`],"application/vnd.nokia.n-gage.data":[`ngdat`],"application/vnd.nokia.n-gage.symbian.install":[`n-gage`],"application/vnd.nokia.radio-preset":[`rpst`],"application/vnd.nokia.radio-presets":[`rpss`],"application/vnd.novadigm.edm":[`edm`],"application/vnd.novadigm.edx":[`edx`],"application/vnd.novadigm.ext":[`ext`],"application/vnd.oasis.opendocument.chart":[`odc`],"application/vnd.oasis.opendocument.chart-template":[`otc`],"application/vnd.oasis.opendocument.database":[`odb`],"application/vnd.oasis.opendocument.formula":[`odf`],"application/vnd.oasis.opendocument.formula-template":[`odft`],"application/vnd.oasis.opendocument.graphics":[`odg`],"application/vnd.oasis.opendocument.graphics-template":[`otg`],"application/vnd.oasis.opendocument.image":[`odi`],"application/vnd.oasis.opendocument.image-template":[`oti`],"application/vnd.oasis.opendocument.presentation":[`odp`],"application/vnd.oasis.opendocument.presentation-template":[`otp`],"application/vnd.oasis.opendocument.spreadsheet":[`ods`],"application/vnd.oasis.opendocument.spreadsheet-template":[`ots`],"application/vnd.oasis.opendocument.text":[`odt`],"application/vnd.oasis.opendocument.text-master":[`odm`],"application/vnd.oasis.opendocument.text-template":[`ott`],"application/vnd.oasis.opendocument.text-web":[`oth`],"application/vnd.olpc-sugar":[`xo`],"application/vnd.oma.dd2+xml":[`dd2`],"application/vnd.openblox.game+xml":[`obgx`],"application/vnd.openofficeorg.extension":[`oxt`],"application/vnd.openstreetmap.data+xml":[`osm`],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[`pptx`],"application/vnd.openxmlformats-officedocument.presentationml.slide":[`sldx`],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":[`ppsx`],"application/vnd.openxmlformats-officedocument.presentationml.template":[`potx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[`xlsx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":[`xltx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[`docx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":[`dotx`],"application/vnd.osgeo.mapguide.package":[`mgp`],"application/vnd.osgi.dp":[`dp`],"application/vnd.osgi.subsystem":[`esa`],"application/vnd.palm":[`pdb`,`pqa`,`oprc`],"application/vnd.pawaafile":[`paw`],"application/vnd.pg.format":[`str`],"application/vnd.pg.osasli":[`ei6`],"application/vnd.picsel":[`efif`],"application/vnd.pmi.widget":[`wg`],"application/vnd.pocketlearn":[`plf`],"application/vnd.powerbuilder6":[`pbd`],"application/vnd.previewsystems.box":[`box`],"application/vnd.procrate.brushset":[`brushset`],"application/vnd.procreate.brush":[`brush`],"application/vnd.procreate.dream":[`drm`],"application/vnd.proteus.magazine":[`mgz`],"application/vnd.publishare-delta-tree":[`qps`],"application/vnd.pvi.ptid1":[`ptid`],"application/vnd.pwg-xhtml-print+xml":[`xhtm`],"application/vnd.quark.quarkxpress":[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`],"application/vnd.rar":[`rar`],"application/vnd.realvnc.bed":[`bed`],"application/vnd.recordare.musicxml":[`mxl`],"application/vnd.recordare.musicxml+xml":[`musicxml`],"application/vnd.rig.cryptonote":[`cryptonote`],"application/vnd.rim.cod":[`cod`],"application/vnd.rn-realmedia":[`rm`],"application/vnd.rn-realmedia-vbr":[`rmvb`],"application/vnd.route66.link66+xml":[`link66`],"application/vnd.sailingtracker.track":[`st`],"application/vnd.seemail":[`see`],"application/vnd.sema":[`sema`],"application/vnd.semd":[`semd`],"application/vnd.semf":[`semf`],"application/vnd.shana.informed.formdata":[`ifm`],"application/vnd.shana.informed.formtemplate":[`itp`],"application/vnd.shana.informed.interchange":[`iif`],"application/vnd.shana.informed.package":[`ipk`],"application/vnd.simtech-mindmapper":[`twd`,`twds`],"application/vnd.smaf":[`mmf`],"application/vnd.smart.teacher":[`teacher`],"application/vnd.software602.filler.form+xml":[`fo`],"application/vnd.solent.sdkm+xml":[`sdkm`,`sdkd`],"application/vnd.spotfire.dxp":[`dxp`],"application/vnd.spotfire.sfs":[`sfs`],"application/vnd.stardivision.calc":[`sdc`],"application/vnd.stardivision.draw":[`sda`],"application/vnd.stardivision.impress":[`sdd`],"application/vnd.stardivision.math":[`smf`],"application/vnd.stardivision.writer":[`sdw`,`vor`],"application/vnd.stardivision.writer-global":[`sgl`],"application/vnd.stepmania.package":[`smzip`],"application/vnd.stepmania.stepchart":[`sm`],"application/vnd.sun.wadl+xml":[`wadl`],"application/vnd.sun.xml.calc":[`sxc`],"application/vnd.sun.xml.calc.template":[`stc`],"application/vnd.sun.xml.draw":[`sxd`],"application/vnd.sun.xml.draw.template":[`std`],"application/vnd.sun.xml.impress":[`sxi`],"application/vnd.sun.xml.impress.template":[`sti`],"application/vnd.sun.xml.math":[`sxm`],"application/vnd.sun.xml.writer":[`sxw`],"application/vnd.sun.xml.writer.global":[`sxg`],"application/vnd.sun.xml.writer.template":[`stw`],"application/vnd.sus-calendar":[`sus`,`susp`],"application/vnd.svd":[`svd`],"application/vnd.symbian.install":[`sis`,`sisx`],"application/vnd.syncml+xml":[`xsm`],"application/vnd.syncml.dm+wbxml":[`bdm`],"application/vnd.syncml.dm+xml":[`xdm`],"application/vnd.syncml.dmddf+xml":[`ddf`],"application/vnd.tao.intent-module-archive":[`tao`],"application/vnd.tcpdump.pcap":[`pcap`,`cap`,`dmp`],"application/vnd.tmobile-livetv":[`tmo`],"application/vnd.trid.tpt":[`tpt`],"application/vnd.triscape.mxs":[`mxs`],"application/vnd.trueapp":[`tra`],"application/vnd.ufdl":[`ufd`,`ufdl`],"application/vnd.uiq.theme":[`utz`],"application/vnd.umajin":[`umj`],"application/vnd.unity":[`unityweb`],"application/vnd.uoml+xml":[`uoml`,`uo`],"application/vnd.vcx":[`vcx`],"application/vnd.visio":[`vsd`,`vst`,`vss`,`vsw`,`vsdx`,`vtx`],"application/vnd.visionary":[`vis`],"application/vnd.vsf":[`vsf`],"application/vnd.wap.wbxml":[`wbxml`],"application/vnd.wap.wmlc":[`wmlc`],"application/vnd.wap.wmlscriptc":[`wmlsc`],"application/vnd.webturbo":[`wtb`],"application/vnd.wolfram.player":[`nbp`],"application/vnd.wordperfect":[`wpd`],"application/vnd.wqd":[`wqd`],"application/vnd.wt.stf":[`stf`],"application/vnd.xara":[`xar`],"application/vnd.xfdl":[`xfdl`],"application/vnd.yamaha.hv-dic":[`hvd`],"application/vnd.yamaha.hv-script":[`hvs`],"application/vnd.yamaha.hv-voice":[`hvp`],"application/vnd.yamaha.openscoreformat":[`osf`],"application/vnd.yamaha.openscoreformat.osfpvg+xml":[`osfpvg`],"application/vnd.yamaha.smaf-audio":[`saf`],"application/vnd.yamaha.smaf-phrase":[`spf`],"application/vnd.yellowriver-custom-menu":[`cmp`],"application/vnd.zul":[`zir`,`zirz`],"application/vnd.zzazz.deck+xml":[`zaz`],"application/x-7z-compressed":[`7z`],"application/x-abiword":[`abw`],"application/x-ace-compressed":[`ace`],"application/x-apple-diskimage":[`*dmg`],"application/x-arj":[`arj`],"application/x-authorware-bin":[`aab`,`x32`,`u32`,`vox`],"application/x-authorware-map":[`aam`],"application/x-authorware-seg":[`aas`],"application/x-bcpio":[`bcpio`],"application/x-bdoc":[`*bdoc`],"application/x-bittorrent":[`torrent`],"application/x-blender":[`blend`],"application/x-blorb":[`blb`,`blorb`],"application/x-bzip":[`bz`],"application/x-bzip2":[`bz2`,`boz`],"application/x-cbr":[`cbr`,`cba`,`cbt`,`cbz`,`cb7`],"application/x-cdlink":[`vcd`],"application/x-cfs-compressed":[`cfs`],"application/x-chat":[`chat`],"application/x-chess-pgn":[`pgn`],"application/x-chrome-extension":[`crx`],"application/x-cocoa":[`cco`],"application/x-compressed":[`*rar`],"application/x-conference":[`nsc`],"application/x-cpio":[`cpio`],"application/x-csh":[`csh`],"application/x-debian-package":[`*deb`,`udeb`],"application/x-dgc-compressed":[`dgc`],"application/x-director":[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`],"application/x-doom":[`wad`],"application/x-dtbncx+xml":[`ncx`],"application/x-dtbook+xml":[`dtb`],"application/x-dtbresource+xml":[`res`],"application/x-dvi":[`dvi`],"application/x-envoy":[`evy`],"application/x-eva":[`eva`],"application/x-font-bdf":[`bdf`],"application/x-font-ghostscript":[`gsf`],"application/x-font-linux-psf":[`psf`],"application/x-font-pcf":[`pcf`],"application/x-font-snf":[`snf`],"application/x-font-type1":[`pfa`,`pfb`,`pfm`,`afm`],"application/x-freearc":[`arc`],"application/x-futuresplash":[`spl`],"application/x-gca-compressed":[`gca`],"application/x-glulx":[`ulx`],"application/x-gnumeric":[`gnumeric`],"application/x-gramps-xml":[`gramps`],"application/x-gtar":[`gtar`],"application/x-hdf":[`hdf`],"application/x-httpd-php":[`php`],"application/x-install-instructions":[`install`],"application/x-ipynb+json":[`ipynb`],"application/x-iso9660-image":[`*iso`],"application/x-iwork-keynote-sffkey":[`*key`],"application/x-iwork-numbers-sffnumbers":[`*numbers`],"application/x-iwork-pages-sffpages":[`*pages`],"application/x-java-archive-diff":[`jardiff`],"application/x-java-jnlp-file":[`jnlp`],"application/x-keepass2":[`kdbx`],"application/x-latex":[`latex`],"application/x-lua-bytecode":[`luac`],"application/x-lzh-compressed":[`lzh`,`lha`],"application/x-makeself":[`run`],"application/x-mie":[`mie`],"application/x-mobipocket-ebook":[`*prc`,`mobi`],"application/x-ms-application":[`application`],"application/x-ms-shortcut":[`lnk`],"application/x-ms-wmd":[`wmd`],"application/x-ms-wmz":[`wmz`],"application/x-ms-xbap":[`xbap`],"application/x-msaccess":[`mdb`],"application/x-msbinder":[`obd`],"application/x-mscardfile":[`crd`],"application/x-msclip":[`clp`],"application/x-msdos-program":[`*exe`],"application/x-msdownload":[`*exe`,`*dll`,`com`,`bat`,`*msi`],"application/x-msmediaview":[`mvb`,`m13`,`m14`],"application/x-msmetafile":[`*wmf`,`*wmz`,`*emf`,`emz`],"application/x-msmoney":[`mny`],"application/x-mspublisher":[`pub`],"application/x-msschedule":[`scd`],"application/x-msterminal":[`trm`],"application/x-mswrite":[`wri`],"application/x-netcdf":[`nc`,`cdf`],"application/x-ns-proxy-autoconfig":[`pac`],"application/x-nzb":[`nzb`],"application/x-perl":[`pl`,`pm`],"application/x-pilot":[`*prc`,`*pdb`],"application/x-pkcs12":[`p12`,`pfx`],"application/x-pkcs7-certificates":[`p7b`,`spc`],"application/x-pkcs7-certreqresp":[`p7r`],"application/x-rar-compressed":[`*rar`],"application/x-redhat-package-manager":[`rpm`],"application/x-research-info-systems":[`ris`],"application/x-sea":[`sea`],"application/x-sh":[`sh`],"application/x-shar":[`shar`],"application/x-shockwave-flash":[`swf`],"application/x-silverlight-app":[`xap`],"application/x-sql":[`*sql`],"application/x-stuffit":[`sit`],"application/x-stuffitx":[`sitx`],"application/x-subrip":[`srt`],"application/x-sv4cpio":[`sv4cpio`],"application/x-sv4crc":[`sv4crc`],"application/x-t3vm-image":[`t3`],"application/x-tads":[`gam`],"application/x-tar":[`tar`],"application/x-tcl":[`tcl`,`tk`],"application/x-tex":[`tex`],"application/x-tex-tfm":[`tfm`],"application/x-texinfo":[`texinfo`,`texi`],"application/x-tgif":[`*obj`],"application/x-ustar":[`ustar`],"application/x-virtualbox-hdd":[`hdd`],"application/x-virtualbox-ova":[`ova`],"application/x-virtualbox-ovf":[`ovf`],"application/x-virtualbox-vbox":[`vbox`],"application/x-virtualbox-vbox-extpack":[`vbox-extpack`],"application/x-virtualbox-vdi":[`vdi`],"application/x-virtualbox-vhd":[`vhd`],"application/x-virtualbox-vmdk":[`vmdk`],"application/x-wais-source":[`src`],"application/x-web-app-manifest+json":[`webapp`],"application/x-x509-ca-cert":[`der`,`crt`,`pem`],"application/x-xfig":[`fig`],"application/x-xliff+xml":[`*xlf`],"application/x-xpinstall":[`xpi`],"application/x-xz":[`xz`],"application/x-zip-compressed":[`*zip`],"application/x-zmachine":[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`],"audio/vnd.dece.audio":[`uva`,`uvva`],"audio/vnd.digital-winds":[`eol`],"audio/vnd.dra":[`dra`],"audio/vnd.dts":[`dts`],"audio/vnd.dts.hd":[`dtshd`],"audio/vnd.lucent.voice":[`lvp`],"audio/vnd.ms-playready.media.pya":[`pya`],"audio/vnd.nuera.ecelp4800":[`ecelp4800`],"audio/vnd.nuera.ecelp7470":[`ecelp7470`],"audio/vnd.nuera.ecelp9600":[`ecelp9600`],"audio/vnd.rip":[`rip`],"audio/x-aac":[`*aac`],"audio/x-aiff":[`aif`,`aiff`,`aifc`],"audio/x-caf":[`caf`],"audio/x-flac":[`flac`],"audio/x-m4a":[`*m4a`],"audio/x-matroska":[`mka`],"audio/x-mpegurl":[`m3u`],"audio/x-ms-wax":[`wax`],"audio/x-ms-wma":[`wma`],"audio/x-pn-realaudio":[`ram`,`ra`],"audio/x-pn-realaudio-plugin":[`rmp`],"audio/x-realaudio":[`*ra`],"audio/x-wav":[`*wav`],"chemical/x-cdx":[`cdx`],"chemical/x-cif":[`cif`],"chemical/x-cmdf":[`cmdf`],"chemical/x-cml":[`cml`],"chemical/x-csml":[`csml`],"chemical/x-xyz":[`xyz`],"image/prs.btif":[`btif`,`btf`],"image/prs.pti":[`pti`],"image/vnd.adobe.photoshop":[`psd`],"image/vnd.airzip.accelerator.azv":[`azv`],"image/vnd.blockfact.facti":[`facti`],"image/vnd.dece.graphic":[`uvi`,`uvvi`,`uvg`,`uvvg`],"image/vnd.djvu":[`djvu`,`djv`],"image/vnd.dvb.subtitle":[`*sub`],"image/vnd.dwg":[`dwg`],"image/vnd.dxf":[`dxf`],"image/vnd.fastbidsheet":[`fbs`],"image/vnd.fpx":[`fpx`],"image/vnd.fst":[`fst`],"image/vnd.fujixerox.edmics-mmr":[`mmr`],"image/vnd.fujixerox.edmics-rlc":[`rlc`],"image/vnd.microsoft.icon":[`ico`],"image/vnd.ms-dds":[`dds`],"image/vnd.ms-modi":[`mdi`],"image/vnd.ms-photo":[`wdp`],"image/vnd.net-fpx":[`npx`],"image/vnd.pco.b16":[`b16`],"image/vnd.tencent.tap":[`tap`],"image/vnd.valve.source.texture":[`vtf`],"image/vnd.wap.wbmp":[`wbmp`],"image/vnd.xiff":[`xif`],"image/vnd.zbrush.pcx":[`pcx`],"image/x-3ds":[`3ds`],"image/x-adobe-dng":[`dng`],"image/x-cmu-raster":[`ras`],"image/x-cmx":[`cmx`],"image/x-freehand":[`fh`,`fhc`,`fh4`,`fh5`,`fh7`],"image/x-icon":[`*ico`],"image/x-jng":[`jng`],"image/x-mrsid-image":[`sid`],"image/x-ms-bmp":[`*bmp`],"image/x-pcx":[`*pcx`],"image/x-pict":[`pic`,`pct`],"image/x-portable-anymap":[`pnm`],"image/x-portable-bitmap":[`pbm`],"image/x-portable-graymap":[`pgm`],"image/x-portable-pixmap":[`ppm`],"image/x-rgb":[`rgb`],"image/x-tga":[`tga`],"image/x-xbitmap":[`xbm`],"image/x-xpixmap":[`xpm`],"image/x-xwindowdump":[`xwd`],"message/vnd.wfa.wsc":[`wsc`],"model/vnd.bary":[`bary`],"model/vnd.cld":[`cld`],"model/vnd.collada+xml":[`dae`],"model/vnd.dwf":[`dwf`],"model/vnd.gdl":[`gdl`],"model/vnd.gtw":[`gtw`],"model/vnd.mts":[`*mts`],"model/vnd.opengex":[`ogex`],"model/vnd.parasolid.transmit.binary":[`x_b`],"model/vnd.parasolid.transmit.text":[`x_t`],"model/vnd.pytha.pyox":[`pyo`,`pyox`],"model/vnd.sap.vds":[`vds`],"model/vnd.usda":[`usda`],"model/vnd.usdz+zip":[`usdz`],"model/vnd.valve.source.compiled-map":[`bsp`],"model/vnd.vtu":[`vtu`],"text/prs.lines.tag":[`dsc`],"text/vnd.curl":[`curl`],"text/vnd.curl.dcurl":[`dcurl`],"text/vnd.curl.mcurl":[`mcurl`],"text/vnd.curl.scurl":[`scurl`],"text/vnd.dvb.subtitle":[`sub`],"text/vnd.familysearch.gedcom":[`ged`],"text/vnd.fly":[`fly`],"text/vnd.fmi.flexstor":[`flx`],"text/vnd.graphviz":[`gv`],"text/vnd.in3d.3dml":[`3dml`],"text/vnd.in3d.spot":[`spot`],"text/vnd.sun.j2me.app-descriptor":[`jad`],"text/vnd.wap.wml":[`wml`],"text/vnd.wap.wmlscript":[`wmls`],"text/x-asm":[`s`,`asm`],"text/x-c":[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`],"text/x-component":[`htc`],"text/x-fortran":[`f`,`for`,`f77`,`f90`],"text/x-handlebars-template":[`hbs`],"text/x-java-source":[`java`],"text/x-lua":[`lua`],"text/x-markdown":[`mkd`],"text/x-nfo":[`nfo`],"text/x-opml":[`opml`],"text/x-org":[`*org`],"text/x-pascal":[`p`,`pas`],"text/x-processing":[`pde`],"text/x-sass":[`sass`],"text/x-scss":[`scss`],"text/x-setext":[`etx`],"text/x-sfv":[`sfv`],"text/x-suse-ymp":[`ymp`],"text/x-uuencode":[`uu`],"text/x-vcalendar":[`vcs`],"text/x-vcard":[`vcf`],"video/vnd.dece.hd":[`uvh`,`uvvh`],"video/vnd.dece.mobile":[`uvm`,`uvvm`],"video/vnd.dece.pd":[`uvp`,`uvvp`],"video/vnd.dece.sd":[`uvs`,`uvvs`],"video/vnd.dece.video":[`uvv`,`uvvv`],"video/vnd.dvb.file":[`dvb`],"video/vnd.fvt":[`fvt`],"video/vnd.mpegurl":[`mxu`,`m4u`],"video/vnd.ms-playready.media.pyv":[`pyv`],"video/vnd.uvvu.mp4":[`uvu`,`uvvu`],"video/vnd.vivo":[`viv`],"video/x-f4v":[`f4v`],"video/x-fli":[`fli`],"video/x-flv":[`flv`],"video/x-m4v":[`m4v`],"video/x-matroska":[`mkv`,`mk3d`,`mks`],"video/x-mng":[`mng`],"video/x-ms-asf":[`asf`,`asx`],"video/x-ms-vob":[`vob`],"video/x-ms-wm":[`wm`],"video/x-ms-wmv":[`wmv`],"video/x-ms-wmx":[`wmx`],"video/x-ms-wvx":[`wvx`],"video/x-msvideo":[`avi`],"video/x-sgi-movie":[`movie`],"video/x-smv":[`smv`],"x-conference/x-cooltalk":[`ice`]},Object.freeze(PR)})))()}var IR;function LR(){return(LR=o((()=>{IR={"application/andrew-inset":[`ez`],"application/appinstaller":[`appinstaller`],"application/applixware":[`aw`],"application/appx":[`appx`],"application/appxbundle":[`appxbundle`],"application/atom+xml":[`atom`],"application/atomcat+xml":[`atomcat`],"application/atomdeleted+xml":[`atomdeleted`],"application/atomsvc+xml":[`atomsvc`],"application/atsc-dwd+xml":[`dwd`],"application/atsc-held+xml":[`held`],"application/atsc-rsat+xml":[`rsat`],"application/automationml-aml+xml":[`aml`],"application/automationml-amlx+zip":[`amlx`],"application/bdoc":[`bdoc`],"application/calendar+xml":[`xcs`],"application/ccxml+xml":[`ccxml`],"application/cdfx+xml":[`cdfx`],"application/cdmi-capability":[`cdmia`],"application/cdmi-container":[`cdmic`],"application/cdmi-domain":[`cdmid`],"application/cdmi-object":[`cdmio`],"application/cdmi-queue":[`cdmiq`],"application/cpl+xml":[`cpl`],"application/cu-seeme":[`cu`],"application/cwl":[`cwl`],"application/dash+xml":[`mpd`],"application/dash-patch+xml":[`mpp`],"application/davmount+xml":[`davmount`],"application/dicom":[`dcm`],"application/docbook+xml":[`dbk`],"application/dssc+der":[`dssc`],"application/dssc+xml":[`xdssc`],"application/ecmascript":[`ecma`],"application/emma+xml":[`emma`],"application/emotionml+xml":[`emotionml`],"application/epub+zip":[`epub`],"application/exi":[`exi`],"application/express":[`exp`],"application/fdf":[`fdf`],"application/fdt+xml":[`fdt`],"application/font-tdpfr":[`pfr`],"application/geo+json":[`geojson`],"application/gml+xml":[`gml`],"application/gpx+xml":[`gpx`],"application/gxf":[`gxf`],"application/gzip":[`gz`],"application/hjson":[`hjson`],"application/hyperstudio":[`stk`],"application/inkml+xml":[`ink`,`inkml`],"application/ipfix":[`ipfix`],"application/its+xml":[`its`],"application/java-archive":[`jar`,`war`,`ear`],"application/java-serialized-object":[`ser`],"application/java-vm":[`class`],"application/javascript":[`*js`],"application/json":[`json`,`map`],"application/json5":[`json5`],"application/jsonml+json":[`jsonml`],"application/ld+json":[`jsonld`],"application/lgr+xml":[`lgr`],"application/lost+xml":[`lostxml`],"application/mac-binhex40":[`hqx`],"application/mac-compactpro":[`cpt`],"application/mads+xml":[`mads`],"application/manifest+json":[`webmanifest`],"application/marc":[`mrc`],"application/marcxml+xml":[`mrcx`],"application/mathematica":[`ma`,`nb`,`mb`],"application/mathml+xml":[`mathml`],"application/mbox":[`mbox`],"application/media-policy-dataset+xml":[`mpf`],"application/mediaservercontrol+xml":[`mscml`],"application/metalink+xml":[`metalink`],"application/metalink4+xml":[`meta4`],"application/mets+xml":[`mets`],"application/mmt-aei+xml":[`maei`],"application/mmt-usd+xml":[`musd`],"application/mods+xml":[`mods`],"application/mp21":[`m21`,`mp21`],"application/mp4":[`*mp4`,`*mpg4`,`mp4s`,`m4p`],"application/msix":[`msix`],"application/msixbundle":[`msixbundle`],"application/msword":[`doc`,`dot`],"application/mxf":[`mxf`],"application/n-quads":[`nq`],"application/n-triples":[`nt`],"application/node":[`cjs`],"application/octet-stream":[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`],"application/oda":[`oda`],"application/oebps-package+xml":[`opf`],"application/ogg":[`ogx`],"application/omdoc+xml":[`omdoc`],"application/onenote":[`onetoc`,`onetoc2`,`onetmp`,`onepkg`,`one`,`onea`],"application/oxps":[`oxps`],"application/p2p-overlay+xml":[`relo`],"application/patch-ops-error+xml":[`xer`],"application/pdf":[`pdf`],"application/pgp-encrypted":[`pgp`],"application/pgp-keys":[`asc`],"application/pgp-signature":[`sig`,`*asc`],"application/pics-rules":[`prf`],"application/pkcs10":[`p10`],"application/pkcs7-mime":[`p7m`,`p7c`],"application/pkcs7-signature":[`p7s`],"application/pkcs8":[`p8`],"application/pkix-attr-cert":[`ac`],"application/pkix-cert":[`cer`],"application/pkix-crl":[`crl`],"application/pkix-pkipath":[`pkipath`],"application/pkixcmp":[`pki`],"application/pls+xml":[`pls`],"application/postscript":[`ai`,`eps`,`ps`],"application/provenance+xml":[`provx`],"application/pskc+xml":[`pskcxml`],"application/raml+yaml":[`raml`],"application/rdf+xml":[`rdf`,`owl`],"application/reginfo+xml":[`rif`],"application/relax-ng-compact-syntax":[`rnc`],"application/resource-lists+xml":[`rl`],"application/resource-lists-diff+xml":[`rld`],"application/rls-services+xml":[`rs`],"application/route-apd+xml":[`rapd`],"application/route-s-tsid+xml":[`sls`],"application/route-usd+xml":[`rusd`],"application/rpki-ghostbusters":[`gbr`],"application/rpki-manifest":[`mft`],"application/rpki-roa":[`roa`],"application/rsd+xml":[`rsd`],"application/rss+xml":[`rss`],"application/rtf":[`rtf`],"application/sbml+xml":[`sbml`],"application/scvp-cv-request":[`scq`],"application/scvp-cv-response":[`scs`],"application/scvp-vp-request":[`spq`],"application/scvp-vp-response":[`spp`],"application/sdp":[`sdp`],"application/senml+xml":[`senmlx`],"application/sensml+xml":[`sensmlx`],"application/set-payment-initiation":[`setpay`],"application/set-registration-initiation":[`setreg`],"application/shf+xml":[`shf`],"application/sieve":[`siv`,`sieve`],"application/smil+xml":[`smi`,`smil`],"application/sparql-query":[`rq`],"application/sparql-results+xml":[`srx`],"application/sql":[`sql`],"application/srgs":[`gram`],"application/srgs+xml":[`grxml`],"application/sru+xml":[`sru`],"application/ssdl+xml":[`ssdl`],"application/ssml+xml":[`ssml`],"application/swid+xml":[`swidtag`],"application/tei+xml":[`tei`,`teicorpus`],"application/thraud+xml":[`tfi`],"application/timestamped-data":[`tsd`],"application/toml":[`toml`],"application/trig":[`trig`],"application/ttml+xml":[`ttml`],"application/ubjson":[`ubj`],"application/urc-ressheet+xml":[`rsheet`],"application/urc-targetdesc+xml":[`td`],"application/voicexml+xml":[`vxml`],"application/wasm":[`wasm`],"application/watcherinfo+xml":[`wif`],"application/widget":[`wgt`],"application/winhlp":[`hlp`],"application/wsdl+xml":[`wsdl`],"application/wspolicy+xml":[`wspolicy`],"application/xaml+xml":[`xaml`],"application/xcap-att+xml":[`xav`],"application/xcap-caps+xml":[`xca`],"application/xcap-diff+xml":[`xdf`],"application/xcap-el+xml":[`xel`],"application/xcap-ns+xml":[`xns`],"application/xenc+xml":[`xenc`],"application/xfdf":[`xfdf`],"application/xhtml+xml":[`xhtml`,`xht`],"application/xliff+xml":[`xlf`],"application/xml":[`xml`,`xsl`,`xsd`,`rng`],"application/xml-dtd":[`dtd`],"application/xop+xml":[`xop`],"application/xproc+xml":[`xpl`],"application/xslt+xml":[`*xsl`,`xslt`],"application/xspf+xml":[`xspf`],"application/xv+xml":[`mxml`,`xhvml`,`xvml`,`xvm`],"application/yang":[`yang`],"application/yin+xml":[`yin`],"application/zip":[`zip`],"application/zip+dotlottie":[`lottie`],"audio/3gpp":[`*3gpp`],"audio/aac":[`adts`,`aac`],"audio/adpcm":[`adp`],"audio/amr":[`amr`],"audio/basic":[`au`,`snd`],"audio/midi":[`mid`,`midi`,`kar`,`rmi`],"audio/mobile-xmf":[`mxmf`],"audio/mp3":[`*mp3`],"audio/mp4":[`m4a`,`mp4a`,`m4b`],"audio/mpeg":[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`],"audio/ogg":[`oga`,`ogg`,`spx`,`opus`],"audio/s3m":[`s3m`],"audio/silk":[`sil`],"audio/wav":[`wav`],"audio/wave":[`*wav`],"audio/webm":[`weba`],"audio/xm":[`xm`],"font/collection":[`ttc`],"font/otf":[`otf`],"font/ttf":[`ttf`],"font/woff":[`woff`],"font/woff2":[`woff2`],"image/aces":[`exr`],"image/apng":[`apng`],"image/avci":[`avci`],"image/avcs":[`avcs`],"image/avif":[`avif`],"image/bmp":[`bmp`,`dib`],"image/cgm":[`cgm`],"image/dicom-rle":[`drle`],"image/dpx":[`dpx`],"image/emf":[`emf`],"image/fits":[`fits`],"image/g3fax":[`g3`],"image/gif":[`gif`],"image/heic":[`heic`],"image/heic-sequence":[`heics`],"image/heif":[`heif`],"image/heif-sequence":[`heifs`],"image/hej2k":[`hej2`],"image/ief":[`ief`],"image/jaii":[`jaii`],"image/jais":[`jais`],"image/jls":[`jls`],"image/jp2":[`jp2`,`jpg2`],"image/jpeg":[`jpg`,`jpeg`,`jpe`],"image/jph":[`jph`],"image/jphc":[`jhc`],"image/jpm":[`jpm`,`jpgm`],"image/jpx":[`jpx`,`jpf`],"image/jxl":[`jxl`],"image/jxr":[`jxr`],"image/jxra":[`jxra`],"image/jxrs":[`jxrs`],"image/jxs":[`jxs`],"image/jxsc":[`jxsc`],"image/jxsi":[`jxsi`],"image/jxss":[`jxss`],"image/ktx":[`ktx`],"image/ktx2":[`ktx2`],"image/pjpeg":[`jfif`],"image/png":[`png`],"image/sgi":[`sgi`],"image/svg+xml":[`svg`,`svgz`],"image/t38":[`t38`],"image/tiff":[`tif`,`tiff`],"image/tiff-fx":[`tfx`],"image/webp":[`webp`],"image/wmf":[`wmf`],"message/disposition-notification":[`disposition-notification`],"message/global":[`u8msg`],"message/global-delivery-status":[`u8dsn`],"message/global-disposition-notification":[`u8mdn`],"message/global-headers":[`u8hdr`],"message/rfc822":[`eml`,`mime`,`mht`,`mhtml`],"model/3mf":[`3mf`],"model/gltf+json":[`gltf`],"model/gltf-binary":[`glb`],"model/iges":[`igs`,`iges`],"model/jt":[`jt`],"model/mesh":[`msh`,`mesh`,`silo`],"model/mtl":[`mtl`],"model/obj":[`obj`],"model/prc":[`prc`],"model/step":[`step`,`stp`,`stpnc`,`p21`,`210`],"model/step+xml":[`stpx`],"model/step+zip":[`stpz`],"model/step-xml+zip":[`stpxz`],"model/stl":[`stl`],"model/u3d":[`u3d`],"model/vrml":[`wrl`,`vrml`],"model/x3d+binary":[`*x3db`,`x3dbz`],"model/x3d+fastinfoset":[`x3db`],"model/x3d+vrml":[`*x3dv`,`x3dvz`],"model/x3d+xml":[`x3d`,`x3dz`],"model/x3d-vrml":[`x3dv`],"text/cache-manifest":[`appcache`,`manifest`],"text/calendar":[`ics`,`ifb`],"text/coffeescript":[`coffee`,`litcoffee`],"text/css":[`css`],"text/csv":[`csv`],"text/html":[`html`,`htm`,`shtml`],"text/jade":[`jade`],"text/javascript":[`js`,`mjs`],"text/jsx":[`jsx`],"text/less":[`less`],"text/markdown":[`md`,`markdown`],"text/mathml":[`mml`],"text/mdx":[`mdx`],"text/n3":[`n3`],"text/plain":[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`],"text/richtext":[`rtx`],"text/rtf":[`*rtf`],"text/sgml":[`sgml`,`sgm`],"text/shex":[`shex`],"text/slim":[`slim`,`slm`],"text/spdx":[`spdx`],"text/stylus":[`stylus`,`styl`],"text/tab-separated-values":[`tsv`],"text/troff":[`t`,`tr`,`roff`,`man`,`me`,`ms`],"text/turtle":[`ttl`],"text/uri-list":[`uri`,`uris`,`urls`],"text/vcard":[`vcard`],"text/vtt":[`vtt`],"text/wgsl":[`wgsl`],"text/xml":[`*xml`],"text/yaml":[`yaml`,`yml`],"video/3gpp":[`3gp`,`3gpp`],"video/3gpp2":[`3g2`],"video/h261":[`h261`],"video/h263":[`h263`],"video/h264":[`h264`],"video/iso.segment":[`m4s`],"video/jpeg":[`jpgv`],"video/jpm":[`*jpm`,`*jpgm`],"video/mj2":[`mj2`,`mjp2`],"video/mp2t":[`ts`,`m2t`,`m2ts`,`mts`],"video/mp4":[`mp4`,`mp4v`,`mpg4`],"video/mpeg":[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`],"video/ogg":[`ogv`],"video/quicktime":[`qt`,`mov`],"video/webm":[`webm`]},Object.freeze(IR)})))()}var RR,zR,BR,VR,HR;function UR(){return(UR=o((()=>{RR=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},HR=class{constructor(...e){zR.set(this,new Map),BR.set(this,new Map),VR.set(this,new Map);for(let t of e)this.define(t)}define(e,t=!1){for(let[n,r]of Object.entries(e)){n=n.toLowerCase(),r=r.map(e=>e.toLowerCase()),RR(this,VR,`f`).has(n)||RR(this,VR,`f`).set(n,new Set);let e=RR(this,VR,`f`).get(n),i=!0;for(let a of r){let r=a.startsWith(`*`);if(a=r?a.slice(1):a,e?.add(a),i&&RR(this,BR,`f`).set(n,a),i=!1,r)continue;let o=RR(this,zR,`f`).get(a);if(o&&o!=n&&!t)throw Error(`"${n} -> ${a}" conflicts with "${o} -> ${a}". Pass \`force=true\` to override this definition.`);RR(this,zR,`f`).set(a,n)}}return this}getType(e){if(typeof e!=`string`)return null;let t=e.replace(/^.*[/\\]/s,``).toLowerCase(),n=t.replace(/^.*\./s,``).toLowerCase(),r=t.length<e.length;return!(n.length<t.length-1)&&r?null:RR(this,zR,`f`).get(n)??null}getExtension(e){return typeof e==`string`?(e=e?.split?.(`;`)[0],(e&&RR(this,BR,`f`).get(e.trim().toLowerCase()))??null):null}getAllExtensions(e){return typeof e==`string`?RR(this,VR,`f`).get(e.toLowerCase())??null:null}_freeze(){this.define=()=>{throw Error(`define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances`)},Object.freeze(this);for(let e of RR(this,VR,`f`).values())Object.freeze(e);return this}_getTestState(){return{types:RR(this,zR,`f`),extensions:RR(this,BR,`f`)}}},zR=new WeakMap,BR=new WeakMap,VR=new WeakMap})))()}var WR;function GR(){return(GR=o((()=>{FR(),LR(),UR(),WR=new HR(IR,PR)._freeze()})))()}var KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,rz;function iz(){return(iz=o((()=>{AM(),zq(),KR=sn(!1),qR=sn(!1),JR=sn(!1),YR=`https://console.cloudinary.com/console/media_library`,XR=new URL(YR).origin,ZR=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],QR=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],$R=e=>{let t=k(Nq);if(e??=t,e?.media_libraries&&`cloudinary`in e.media_libraries)return e.media_libraries.cloudinary;if(!e?.media_library)return;let n=e.media_library.name===`cloudinary`,r=!e.media_library.name&&t?.media_library?.name===`cloudinary`;if(n||r)return e.media_library},ez=new Map,tz=e=>{let t=e?JSON.stringify(e):`global`,n=ez.get(t);if(n)return n;let r=$R()||{config:{}},i=$R(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return ez.set(t,a),a},nz=e=>{let t=$R(e)??$R(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)},rz={serviceType:`cloud_storage`,serviceId:`cloudinary`,serviceLabel:`Cloudinary`,serviceURL:`https://cloudinary.com/`,showServiceLink:!0,hotlinking:!0,authType:`widget`,developerURL:`https://cloudinary.com/documentation/`,apiKeyURL:`https://console.cloudinary.com/settings/api-keys`,apiKeyPattern:/^[A-Za-z0-9_-]{15,}$/,isEnabled:nz}})))()}var az,oz,sz,cz,lz,uz,dz,fz,pz,mz;function hz(){return(hz=o((()=>{FM(),wD(),GR(),az=[`image`,`video`,`audio`],oz=[`image`,`video`],sz=[...az,`document`,`other`],cz=/\.(?:csv|docx?|odp|ods|odt|pdf|pptx?|rtf|xlsx?)$/i,lz=/^(?<type>image|video|audio)\//,uz=e=>az.includes(e),dz=e=>{let t=WR.getType(e.path);return uz(e.kind)||t===`application/pdf`||!!t&&MM(t)},fz=async e=>{let t=``;if(typeof e==`string`){if(e.startsWith(`blob:`))try{t=(await(await fetch(e)).blob()).type}catch{}else{if(SD(e)){let{hostname:t,pathname:n}=new URL(e);if(t.startsWith(`images.`))return`image`;e=n}t=WR.getType(e)??``}}else e instanceof Blob&&(t=e.type);if(!t)return;let[n,r]=t.split(`/`);if(uz(n)&&!r.startsWith(`x-`))return n},pz=e=>{let t=WR.getType(e.path);return!!t&&MM(t)},mz=e=>WR.getType(e)?.match(lz)?.groups?.type??(cz.test(e)?`document`:`other`)})))()}var gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez;function Dz(){return(Dz=o((()=>{gd(),AM(),hz(),zq(),gz=(e,t=k(Nq))=>t?.media_libraries?.[e]??(t?.media_library?.name===e?t?.media_library:void 0),_z=async(e,t)=>{let n=new TextEncoder,r=await crypto.subtle.importKey(`raw`,typeof e==`string`?n.encode(e):e,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n.encode(t));return new Uint8Array(i)},vz=async e=>{let t=typeof e==`string`?new TextEncoder().encode(e):e,n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},yz=async({method:e,url:t,headers:n,payloadHash:r,accessKeyId:i,secretAccessKey:a,region:o,service:s,date:c})=>{let l=new URL(t),u=c.toISOString().replace(/[:-]|\.\d{3}/g,``),d=u.slice(0,8),f=l.pathname,p=[...l.searchParams.entries()].sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`),m=Object.entries(n).map(([e,t])=>`${e.toLowerCase()}:${t.trim()}`).sort().join(`
|
|
2236
2236
|
`),h=Object.keys(n).map(e=>e.toLowerCase()).sort().join(`;`),g=[e,f,p,`${m}\n`,h,r].join(`
|
|
2237
2237
|
`),_=`AWS4-HMAC-SHA256`,v=`${d}/${o}/${s}/aws4_request`,y=[_,u,v,await vz(g)].join(`
|
|
2238
|
-
`),b=await _z(`AWS4${a}`,d),x=await _z(b,o),S=await _z(x,s),C=await _z(S,`aws4_request`),w=await _z(C,y),ee=Array.from(w).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${ee}`].join(` `)},bz=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await vz(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await yz({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},xz=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},Sz=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,Cz=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=Sz({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:mz(t)}})},wz=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,c=await bz({method:`GET`,url:n,config:e,secretAccessKey:l});if(!c.ok){let e=await c.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let f=await c.text(),p=xz(f),m=(p.Contents?Array.isArray(p.Contents)?p.Contents:[p.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...m),d=p.NextContinuationToken,p.IsTruncated!==`true`||!d)break;await hd(50)}let f=c?u.filter(e=>mz(e.Key)===c):u;return Cz(f,e)},Tz=async(e,t,n)=>{let r=await wz(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},Ez=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,p=await n.arrayBuffer(),m=await bz({method:`PUT`,url:f,config:t,secretAccessKey:c,body:p,extraHeaders:{"Content-Type":n.type||`application/octet-stream`,...t.acl!==!1&&{"x-amz-acl":t.acl??`public-read`}}});if(!m.ok){let e=await m.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await hd(50)}return Cz(l,t)}})))()}var Oz,kz,Az,jz,Mz,Nz,Pz;function Fz(){return(Fz=o((()=>{Dz(),Oz=e=>gz(`aws_s3`,e),kz=e=>{let t=Oz(e)??Oz();return!!(t&&t.access_key_id&&t.bucket&&t.region)},Az=({fieldConfig:e})=>{let t=Oz(e)??Oz();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},jz=async e=>wz(Az(e),e),Mz=async(e,t)=>Tz(e,Az(t),t),Nz=async(e,t)=>Ez(e,Az(t),t),Pz={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:kz,list:jz,search:Mz,upload:Nz}})))()}var Iz,Lz,Rz,zz,Bz,Vz,Hz;function Uz(){return(Uz=o((()=>{Dz(),Iz=e=>gz(`backblaze_b2`,e),Lz=e=>{let t=Iz(e)??Iz();return!!(t&&t.access_key_id&&t.bucket&&t.region)},Rz=({fieldConfig:e})=>{let t=Iz(e)??Iz();if(!t)throw Error(`Backblaze B2 configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.backblazeb2.com`,acl:!1,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.backblazeb2.com`}},zz=async e=>wz(Rz(e),e),Bz=async(e,t)=>Tz(e,Rz(t),t),Vz=async(e,t)=>Ez(e,Rz(t),t),Hz={serviceType:`cloud_storage`,serviceId:`backblaze_b2`,serviceLabel:`Backblaze B2`,serviceURL:`https://www.backblaze.com/cloud-storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.backblaze.com/docs/cloud-storage-s3-compatible-api`,apiKeyURL:`https://secure.backblaze.com/app_keys.htm`,apiKeyPattern:/^[A-Za-z0-9/+=]{30,}$/,isEnabled:Lz,list:zz,search:Bz,upload:Vz}})))()}var Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz;function $z(){return($z=o((()=>{Dz(),Wz={default:``,eu:`eu.`,fedramp:`fedramp.`},Gz=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${Wz[t]??``}r2.cloudflarestorage.com`,Kz=e=>gz(`cloudflare_r2`,e),qz=e=>{let t=Kz(e)??Kz();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},Jz=({fieldConfig:e})=>{let t=Kz(e)??Kz();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:Gz(t)}},Yz=async e=>wz(Jz(e),e),Xz=async(e,t)=>Tz(e,Jz(t),t),Zz=async(e,t)=>Ez(e,Jz(t),t),Qz={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:qz,list:Yz,search:Xz,upload:Zz}})))()}var eB,tB,nB,rB,iB,aB,oB;function sB(){return(sB=o((()=>{Dz(),eB=e=>gz(`digitalocean_spaces`,e),tB=e=>{let t=eB(e)??eB();return!!(t&&t.access_key_id&&t.bucket&&t.region)},nB=({fieldConfig:e})=>{let t=eB(e)??eB();if(!t)throw Error(`DigitalOcean Spaces configuration is not available`);return{...t,endpoint:`https://${t.region}.digitaloceanspaces.com`,public_url:t.public_url??`https://${t.bucket}.${t.region}.digitaloceanspaces.com`}},rB=async e=>wz(nB(e),e),iB=async(e,t)=>Tz(e,nB(t),t),aB=async(e,t)=>Ez(e,nB(t),t),oB={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:tB,list:rB,search:iB,upload:aB}})))()}var cB,lB,uB,dB,fB,pB,mB;function hB(){return(hB=o((()=>{Dz(),cB=e=>gz(`scaleway_object_storage`,e),lB=e=>{let t=cB(e)??cB();return!!(t&&t.access_key_id&&t.bucket&&t.region)},uB=({fieldConfig:e})=>{let t=cB(e)??cB();if(!t)throw Error(`Scaleway Object Storage configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.scw.cloud`,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.scw.cloud`}},dB=async e=>wz(uB(e),e),fB=async(e,t)=>Tz(e,uB(t),t),pB=async(e,t)=>Ez(e,uB(t),t),mB={serviceType:`cloud_storage`,serviceId:`scaleway_object_storage`,serviceLabel:`Scaleway Object Storage`,serviceURL:`https://www.scaleway.com/en/object-storage/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.scaleway.com/en/docs/object-storage/`,apiKeyURL:`https://console.scaleway.com/iam/api-keys`,apiKeyPattern:/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,isEnabled:lB,list:dB,search:fB,upload:pB}})))()}var gB,_B,vB,yB,bB,xB,SB,CB,wB;function TB(){return(TB=o((()=>{Dz(),gB=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,_B=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,vB=e=>gz(`supabase_storage`,e),yB=e=>{let t=vB(e)??vB();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},bB=({fieldConfig:e})=>{let t=vB(e)??vB();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:gB(t),public_url:t.public_url??_B(t)}},xB=async e=>wz(bB(e),e),SB=async(e,t)=>Tz(e,bB(t),t),CB=async(e,t)=>Ez(e,bB(t),t),wB={serviceType:`cloud_storage`,serviceId:`supabase_storage`,serviceLabel:`Supabase Storage`,serviceURL:`https://supabase.com/storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://supabase.com/docs/guides/storage`,apiKeyURL:`https://supabase.com/dashboard/project/_/storage/settings`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:yB,list:xB,search:SB,upload:CB}})))()}var cpe=s(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e,t,i){if(typeof t!=`string`)throw Error(`Input must be string`);for(var a=t.length,o=0,s,c,l=0;l<a;l+=1){if(s=t.charCodeAt(l),c=t[l],n(s)&&r(t.charCodeAt(l+1))&&(l+=1,c+=t[l]),o+=e(c),o===i)return t.slice(0,l+1);if(o>i)return t.slice(0,l-c.length+1)}return t}})),lpe=s(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e){if(typeof e!=`string`)throw Error(`Input must be string`);for(var t=e.length,i=0,a=null,o=null,s=0;s<t;s++)a=e.charCodeAt(s),r(a)?o!=null&&n(o)?i+=1:i+=3:a<=127?i+=1:a>=128&&a<=2047?i+=2:a>=2048&&a<=65535&&(i+=3),o=a;return i}})),upe=s(((e,t)=>{var n=cpe(),r=lpe();t.exports=n.bind(null,r)})),dpe=s(((e,t)=>{var n=upe(),r=/[\/\?<>\\:\*\|"]/g,i=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,o=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;function s(e,t){for(var n=e.length;n>0&&(e[n-1]===`.`||e[n-1]===` `);)n--;return n<e.length?e.slice(0,n)+t:e}function c(e,t){if(typeof e!=`string`)throw Error(`Input must be string`);var c=e.replace(r,t).replace(i,t).replace(a,t).replace(o,t);return c=s(c,t),n(c,255)}t.exports=function(e,t){var n=t&&t.replacement||``,r=c(e,n);return n===``?r:c(r,``)}})),EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB;function VB(){return(VB=o((()=>{Z(),Dd(),FM(),wD(),EB=l(dpe(),1),sI(),DB=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),OB=e=>{let t=e.startsWith(`@`);return t&&(e=e.slice(1)),e=e.split(`/`).map(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)).join(`/`),t?`@${e}`:e},kB=e=>decodeURIComponent(e),AB=new Map,jB=e=>{let t=zu.current,n=AB.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),AB.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?X(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?X(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?X(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?X(`file_size_units.gb`,{values:{size:n.format(e/a)}}):X(`file_size_units.tb`,{values:{size:n.format(e/o)}})},MB=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=NM(e),i=RegExp(`^${_D(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>CD(e.split(`.`)[0],t.split(`.`)[0])).findLast(e=>i.test(e));return a?`${n}-${Number(a.match(i)?.groups?.num??0)+1}${r?`.${r}`:``}`:e},NB=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,EB.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=NM(r);r=`${oI(e)}${t?`.${t.toLowerCase()}`:``}`}return MB(r,n)},PB=[[`jpg`,`jpeg`,`jpe`,`jfif`],[`tif`,`tiff`],[`htm`,`html`],[`yml`,`yaml`],[`md`,`markdown`],[`mpg`,`mpeg`],[`mid`,`midi`],[`aif`,`aiff`]],FB=(e,t)=>{let n=e?.toLowerCase()??``,r=t?.toLowerCase()??``;return n===r||PB.some(e=>e.includes(n)&&e.includes(r))},IB=e=>e.filter(Boolean).join(`/`),LB=e=>e.split(`/`).filter(e=>e!==`.`&&e!==`..`).join(`/`),RB=e=>{let t=e.split(`/`),n=!1;return t.forEach((e,r)=>{if(e===`.`||e===`..`){if(n&&(t[r]=null,e===`..`)){let e=t.findLastIndex((e,t)=>!!e&&t<r);e>-1&&(t[e]=null)}}else n=!0}),IB(t)},zB=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,BB=async e=>{let t=await zB(e).arrayBuffer();return Ed(new Blob([`blob ${t.byteLength}\0`,t]))}})))()}var HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB;function QB(){return(QB=o((()=>{gd(),AM(),zq(),VB(),HB=(e=k(Nq))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),UB=e=>{let t=HB(e)??HB();return t?t.config?.publicKey:void 0},WB=e=>!!UB(e),GB=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(HB(t)??HB())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},KB=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=UB(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await hd(50)}return GB(l,{fieldConfig:i})},qB=async e=>KB(e),JB=async(e,t)=>{let n=e.toLowerCase();return KB(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},YB=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},XB=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=UB(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await YB(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(NB(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json(),u=Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}});return GB(u,{fieldConfig:n})},ZB={serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:WB,list:qB,search:JB,upload:XB}})))()}var $B,eV;function tV(){return(tV=o((()=>{iz(),Fz(),Uz(),$z(),sB(),hB(),TB(),QB(),$B={aws_s3:Pz,backblaze_b2:Hz,cloudflare_r2:Qz,cloudinary:rz,digitalocean_spaces:oB,scaleway_object_storage:mB,supabase_storage:wB,uploadcare:ZB},eV=Object.keys($B)})))()}var nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV;function gV(){return(gV=o((()=>{nV=`@sveltia/cms`,rV=`0.191.1`,iV=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,aV=[`svelte`,`cms`,`content-management-system`],oV=`https://sveltiacms.app/en/`,sV={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},cV={type:`github`,url:`https://github.com/sponsors/kyoshino`},lV={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},uV=`module`,dV={build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},fV={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.49.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.2.3`,"@sveltia/ui":`^0.65.4`,"@sveltia/utils":`^0.12.1`,"create-react-class":`^15.7.0`,dayjs:`^1.11.21`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.9`,"isomorphic-dompurify":`^3.22.0`,leaflet:`^1.9.4`,lexical:`^0.49.0`,marked:`^18.0.9`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^6.2.108`,qrcode:`^1.5.4`,react:`^19.2.8`,"react-dom":`^19.2.8`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.8.0`,svgo:`^4.0.2`,"terra-draw":`^1.32.3`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},pV={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.3.0`,"@types/leaflet":`^1.9.22`,"@types/node":`^26.2.0`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.18`,"@types/react-dom":`^19.2.4`,"@vitest/coverage-v8":`^4.1.10`,cspell:`^10.0.1`,eslint:`^9.39.5`,"eslint-config-airbnb-extended":`^3.2.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^64.1.0`,"eslint-plugin-package-json":`^1.7.1`,"eslint-plugin-svelte":`^3.23.0`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.11.0`,oxlint:`^1.78.0`,"postcss-html":`^2.0.0`,prettier:`^3.9.6`,"prettier-plugin-svelte":`^4.1.1`,sonda:`^0.14.0`,stylelint:`^17.14.1`,"stylelint-config-recommended":`^18.0.0`,svelte:`^5.56.9`,"svelte-check":`^4.7.6`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.2.1`,vitest:`^4.1.10`},mV={directory:`package`,access:`public`,provenance:!0},hV={name:nV,version:rV,description:iV,keywords:aV,homepage:oV,repository:sV,funding:cV,license:`MIT`,author:lV,type:uV,scripts:dV,dependencies:fV,devDependencies:pV,publishConfig:mV}})))()}var _V,vV,yV;function bV(){return(bV=o((()=>{gV(),{dependencies:_V,version:vV}=hV,yV=`https://unpkg.com/@sveltia/cms`})))()}var xV,SV;function CV(){return(CV=o((()=>{bV(),cO(),xV=e=>{let t=`https://unpkg.com/${e}`,n=_V[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},SV=async(e,t)=>sO(()=>import(`${xV(e)}/${t}`),[])})))()}var wV,TV,EV,DV,OV,kV,AV,jV;function MV(){return(MV=o((()=>{wV=[`avif`,`gif`,`jpeg`,`png`,`webp`],TV=wV.map(e=>`image/${e}`),EV=/\b(?:avif|gif|jpe?g|png|webp)$/i,DV=[`svg`],OV=[`image/svg+xml`],kV=/\b(?:svg)$/i,[...wV,...DV],AV=[...TV,...OV],jV=[`webp`]})))()}var NV,PV,FV;function IV(){return(IV=o((()=>{CV(),MV(),NV={},PV=async e=>{if(e in NV)return NV[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return NV[e]=r,r},FV=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await PV(t)&&jV.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await SV(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})}})))()}var LV,RV;function zV(){return(zV=o((()=>{LV=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},RV=(e,t,n)=>{let{scale:r,width:i,height:a}=LV(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})))()}var BV,VV,HV,UV,WV,GV;function KV(){return(KV=o((()=>{CV(),IV(),zV(),BV={format:`webp`,quality:85,width:512,height:512,fit:`contain`},VV=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise((e,r)=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{URL.revokeObjectURL(t),r(Error(`Failed to decode image`))},{once:!0}),n.src=t})},HV=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise((e,r)=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{document.body.removeChild(n),URL.revokeObjectURL(t),r(Error(`Failed to decode video`))},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n),n.src=t})},UV=async e=>e.type.startsWith(`video/`)?HV({blob:e}):VV({blob:e}),WV=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await UV(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return RV(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),FV(l,{format:t,quality:n})},GV=async e=>{let t=await e.text();try{let{optimize:n}=await SV(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})))()}var qV,JV,YV,XV,ZV,QV;function $V(){return($V=o((()=>{CV(),IV(),zV(),cO(),qV=xV(`pdfjs-dist`),JV=`${qV}/build/pdf.min.mjs`,YV=`${qV}/build/pdf.worker.min.mjs`,XV={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${qV}/cmaps/`,iccUrl:`${qV}/iccs/`,standardFontDataUrl:`${qV}/standard_fonts/`,wasmUrl:`${qV}/wasm/`},QV=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!ZV)try{ZV=await sO(()=>import(JV),[]),ZV.GlobalWorkerOptions.workerSrc=YV}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await ZV.getDocument({...XV,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=RV(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return FV(s,{format:t,quality:n})}})))()}var eH,tH,nH,rH,iH,aH,oH,sH,cH,lH,uH,dH,fH,pH,mH;function hH(){return(hH=o((()=>{FM(),gd(),RD(),wD(),GR(),AM(),_J(),XM(),jQ(),VM(),zq(),tV(),iz(),VB(),KV(),$V(),eH=/^(?:https?|data|blob):/,tH=new Set,nH=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(tH.has(o)&&t<=25)return await hd(200),nH(e,t+1);tH.add(o);let n=await k(kQ)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:WR.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),tH.delete(o),s},rH=async e=>(e.blobURL||await nH(e),e.blobURL),iH=void 0,aH=new Map,oH=()=>{if(iH===void 0){let{databaseName:e}=k(kQ)?.repository??{};iH=e?new LD(e,`asset-thumbnails`):null}},sH=async(e,t)=>{let n=await iH?.get(e.sha);if(!n){let r=await nH(e);n=await(t?QV:WV)(r,BV),await iH?.set(e.sha,n)}return n},cH=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;oH();let{sha:r}=e,i=aH.get(r);if(!i){if(t){let e=await iH?.get(r);return e?URL.createObjectURL(e):void 0}i=sH(e,n).finally(()=>{aH.delete(r)}),aH.set(r,i)}let a=await i;return a?URL.createObjectURL(a):void 0},lH=new Set,uH=()=>{let e=new Set(lH);lH.clear(),document.querySelectorAll(`[src^="blob:"]`).forEach(t=>{e.delete(t.getAttribute(`src`))}),e.size&&(e.forEach(e=>URL.revokeObjectURL(e)),k(Xq).forEach(t=>{t.blobURL!==void 0&&e.has(t.blobURL)&&delete t.blobURL}))},dH=({blobURL:e})=>{if(!e)return;let t=!lH.size;lH.add(e),t&&window.requestAnimationFrame(uH)},fH=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:JM(e.path).find(({collectionName:e})=>e!==void 0)??k(UM);if(a){if(t){let t=NM(e.path).dirname,n=r?NM(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===IB([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=k(Nq),l=o?e.path.replace(DB(e.folder.internalPath??``,e=>{let t=e.match(RM)?.[1];return t?`(?<${t}>[^/]+)`:_D(e)}),i?.replaceAll(zM,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=OB(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},pH=e=>{if($B.cloudinary?.isEnabled?.()){let t=tz(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},mH=async({value:e,entry:t,collectionName:n,fileName:r,componentName:i,fieldConfig:a,typedKeyPath:o,thumbnail:s=!1})=>{if(!e)return;if(eH.test(e))return e;if(dJ(e)){let t=pH(a);if(t)return`${t}/${e}`}let c=fJ({value:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:o});if(c)return(s?await cH(c):await rH(c))??fH(c)}})))()}var gH,_H,vH,yH,bH,xH,SH,CH,wH;function TH(){return(TH=o((()=>{ZF(),gH=l(pI(),1),_H=l(mI(),1),vH=l(hI(),1),yH=l(gI(),1),AM(),jQ(),BW(),zq(),XL(),VL(),ZI(),bI(),NR(),gH.default.extend(_H.default),gH.default.extend(vH.default),gH.default.extend(yH.default),bH=/{{(?:year|month|day|hour|minute|second)}}/,xH=e=>YL(Object.values(e.locales)[0].path).map(({collectionName:e})=>RL(e)).filter(e=>!!e),SH=({dateFieldName:e,fields:t,content:n})=>{let r=e?t.find(({widget:t,name:n})=>t===`datetime`&&n===e):t.find(({widget:e})=>e===`datetime`),i=r?n[r.name]:void 0;if(!r||!i)return;let a=r,o=OR(i,a);if(!wR(o))return;let{utc:s,outputUTC:c}=yI(a);return XF({date:o,timeZone:s||c?`UTC`:void 0})},CH=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=k(Nq)??{},{slug:o,path:s,content:c}=e.locales[t]??{},{preview_path:l,preview_path_date_field:u,fields:d=[],_i18n:{defaultLocale:f,omitDefaultLocaleFromPreviewPath:p}}=r??n;if(!i||!a||!s||!c||!l)return;let m=XI(n,e),h=(m?YI(n):void 0)?.fields??d,g;if(bH.test(l)&&(g=SH({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=zW(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},wH=(e,t)=>`${k(kQ)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`})))()}var EH,DH;function OH(){return(OH=o((()=>{EH=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,DH=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(EH)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}}})))()}var kH,AH,jH,MH,NH,PH,FH,IH,LH;function RH(){return(RH=o((()=>{AM(),hH(),zq(),XL(),VL(),ZI(),MI(),TH(),hW(),II(),OH(),kH=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,AH=sn([]),jH=cn(AH,e=>new Set(e.map(e=>e.id))),MH=e=>{let t=RL(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=DH(i?.pattern),s=i?.value===void 0?[]:Array.isArray(i.value)?i.value:[i.value],c;if(n===`entry`){let n=t._file?.fullPathRegEx;c=n?e=>n.test(Object.values(e.locales)[0]?.path??``):t=>xH(t).some(({name:t})=>t===e)}else{let t=new Set(k(WL).filter(({collectionName:t})=>t===e).flatMap(({filePathMap:e})=>e?Object.values(e):[]));c=e=>{let n=Object.values(e.locales)[0]?.path;return!!n&&t.has(n)}}return k(GL).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=pW({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},NH={entrySource:void 0,folderSource:void 0,map:new Map},PH=e=>{let t=k(GL),n=k(WL);(t!==NH.entrySource||n!==NH.folderSource)&&(NH.entrySource=t,NH.folderSource=n,NH.map=new Map);let r=NH.map.get(e);if(r)return r;let i=MH(e);return NH.map.set(e,i),i},FH=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=sW({collectionName:n,fileName:l,valueMap:i,keyPath:a,isIndexFile:s});if(!u)return!1;let d=e.startsWith(`blob:`),f={entry:r,collectionName:n,fileName:l},{widget:p=`string`}=u;if(PI.includes(p)){let n=d?await mH({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(kH)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await mH({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},IH=async(e,{entries:t=k(GL),newURL:n=``}={})=>{let r=k(Nq)?._baseURL,i=r&&!e.startsWith(`blob:`)?e.replace(r,``):e,a=i.startsWith(`blob:`),o=!!n,s=await Promise.all(t.map(async e=>{let{locales:t}=e,r=xH(e),s=!1;for(let{content:c}of Object.values(t)){for(let[t,l]of Object.entries(c))if(!(typeof l!=`string`||!l)&&!(!a&&!l.includes(i))){for(let a of r){let r={assetURL:i,newURL:n,collectionName:a.name,entry:e,content:c,keyPath:t,value:l,isIndexFile:XI(a,e)},u=kI(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>FH({...r,collectionFile:e})))).includes(!0):await FH({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},LH=e=>{let t=YI(e);return t?!PH(e.name).some(({slug:e})=>e===t.name):!1}})))()}var zH,BH,VH,HH,UH;function WH(){return(WH=o((()=>{zH=new WeakMap,BH=e=>{let t=zH.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),zH.set(e,n),n},VH=new WeakMap,HH=0,UH=e=>(VH.has(e)||(VH.set(e,HH),HH+=1),VH.get(e))})))()}var GH,KH;function qH(){return(qH=o((()=>{BW(),GH=e=>LW(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,KH=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n}})))()}var JH,YH,XH,ZH;function QH(){return(QH=o((()=>{eA(),BW(),DW(),qH(),JH=(e,t,n)=>{let{slug:r,locale:i,getDisplayValue:a}=t,{content:o,locales:s,defaultLocale:c,identifierField:l}=n;if(e===`slug`)return r;if(e===`locale`)return i;let u=e.replace(/^fields\./,``);return a(u)||a(u,c)||vW(o,{identifierField:l})||vW(s[c]?.content||{},{identifierField:l})||r},YH=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=JH(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},XH=e=>{let t=[];return IW(e,(e,n)=>(t.push(n),``)),t},ZH=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=GH(n??`{{slug}}`),o=r.map(GH).join(` `),s=i.map(GH).join(` `),c=$k([...XH(o),...XH(a),...XH(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}}})))()}var $H,eU,tU,nU,rU,iU,aU,oU,sU;function cU(){return(cU=o((()=>{wD(),hW(),qH(),QH(),aI(),$H=/\.(\d+)$/,eU=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=sW({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:KH(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},tU=new Map,nU=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=rI(tU,e,()=>RegExp(`^${_D(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match($H);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index).map(({value:e})=>{let n={label:s,value:c,searchValue:l};t.forEach(([t])=>{n.label=n.label.replaceAll(`{{${t}}}`,e),n.value=n.value.replaceAll(`{{${t}}}`,e),n.searchValue=n.searchValue.replaceAll(`{{${t}}}`,e)});let{label:r,value:u,searchValue:d}=YH(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},rU=/^(.+)\.\*\.(.+)$/,iU=new Map,aU=e=>{let t=null;return e.some(([e])=>(t=e.match(rU),!!t)),t},oU=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=aU(e)??[];if(!o)return[];let c=`${o}:${s}`,l=rI(iU,c,()=>{let e=_D(o),t=_D(s);return RegExp(`^${e}.([0-9]+).${t}$`)}),u=Object.entries(t).filter(([e])=>l.test(e)).map(([e,t])=>{let n=e.match(l);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index),{_displayField:d,_valueField:f,_searchField:p}=n;return u.map(({index:n})=>{let o={label:d,value:f,searchValue:p};e.forEach(([e])=>{let r=e.match(rU);if(r){let[,i,a]=r,s=t[`${i}.${n}.${a}`]||``;o.label=o.label.replaceAll(`{{${e}}}`,s),o.value=o.value.replaceAll(`{{${e}}}`,s),o.searchValue=o.searchValue.replaceAll(`{{${e}}}`,s)}});let{label:s,value:c,searchValue:l}=YH(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},sU=({baseFieldGroups:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let o=[],s=!1;return e.forEach((e,c)=>{if(e.length===0)return;let[,l]=e[0],u={groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a},d=l.isComplexListField?oU({...u}):nU({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}}})))()}var lU;function uU(){return(uU=o((()=>{DW(),QH(),lU=({templates:e,allFieldNames:t,context:n,fallbackContext:r})=>{let{slug:i}=n,{_displayField:a,_valueField:o,_searchField:s}=e,{content:c,locales:l,defaultLocale:u,identifierField:d}=r,f=Object.fromEntries(t.map(e=>[e,JH(e,n,r)])),p=a,m=o,h=s;return Object.entries(f).forEach(([e,t])=>{p=p.replaceAll(`{{${e}}}`,t),m=m.replaceAll(`{{${e}}}`,t),h=h.replaceAll(`{{${e}}}`,t)}),(!p||p.trim()===``)&&(p=vW(c,{identifierField:d})||vW(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}}})))()}var dU;function fU(){return(fU=o((()=>{ZI(),hW(),cU(),uU(),QH(),dU=({refEntry:e,content:t,collection:n,templates:r,allFieldNames:i,hasListFields:a,collectionName:o,fileName:s,locale:c,identifierField:l,defaultLocale:u})=>{let{slug:d,locales:f}=e,p={collectionName:o,fileName:s,isIndexFile:XI(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>dW({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[lU({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let g=eU(i,p),{results:_,hasProcessedListFields:v}=sU({baseFieldGroups:g,content:t,templates:r,allFieldNames:i,context:m,fallbackContext:h});if(v)return _;let{_displayField:y,_valueField:b,_searchField:x}=r,{label:S,value:C,searchValue:w}=YH({label:y,value:b,searchValue:x},i.filter(e=>!e.includes(`*`)),m,h);return[{label:S||``,value:C||d,searchValue:w||S||``}]}})))()}var pU,mU,hU;function gU(){return(gU=o((()=>{pU=/^{{fields\.(.+?)}}$/,mU=(e,t,n=void 0)=>e.map(({field:e,values:r,exclude:i})=>({field:e,exclude:i,values:r.flatMap(e=>{if(typeof e!=`string`)return[e];if(e===`{{slug}}`)return n?[n]:[];let r=e.match(pU);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),hU=({refEntries:e,locale:t,fileName:n=void 0,entryFilters:r=[],defaultLocale:i=void 0})=>e.filter(e=>!n||n===e.slug).map(e=>{let{content:n}=e.locales[t]??(i?e.locales[i]:void 0)??e.locales._default??{};return{refEntry:e,hasContent:!!n&&Object.keys(n).length>0,content:n??{}}}).filter(({hasContent:e,content:t,refEntry:n})=>e&&r.every(({field:e,values:r,exclude:i=!1})=>{if(r.length===0)return!0;let a=e===`slug`,o=e.replace(/^fields\./,``),s=a?n.slug:t[o];return i?!r.includes(s):r.includes(s)}))})))()}var _U,vU,yU,bU;function xU(){return(xU=o((()=>{wD(),VL(),RH(),rR(),WH(),fU(),gU(),QH(),aI(),_U=new Map,vU=100,yU=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=mU(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`),u=`${e}|${`${UH(t)}|${UH(n)}`}|${l}`;return iI(_U,u,()=>{let r=RL(a);if(!r)return[];let{_type:i,_i18n:{defaultLocale:s}}=r,{identifier_field:l=`title`}=i===`entry`?r:{},u=ZH(t,l),{allFieldNames:d,hasListFields:f}=u;return hU({refEntries:n,locale:e,fileName:o,entryFilters:c,defaultLocale:s}).flatMap(({refEntry:t,content:n})=>dU({refEntry:t,content:n,collection:r,templates:u,allFieldNames:d,hasListFields:f,collectionName:a,fileName:o,locale:e,identifierField:l,defaultLocale:s})).sort((e,t)=>CD(e.label,t.label))},vU)},bU=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=PH(a),s=yU({locale:r,fieldConfig:e,refEntries:o}),c=BH(s),l=e=>c.get(e)||e;return i?nR(t,n).map(e=>l(t[e])):l(t[n])}})))()}var SU,CU,wU;function TU(){return(TU=o((()=>{SU=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),CU=e=>LM(Object.fromEntries(Object.entries(IM(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),wU=e=>e.replace(/"/g,`'`)})))()}var EU,DU,OU,kU;function AU(){return(AU=o((()=>{EU=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,DU=new RegExp(EU,`g`),OU=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,kU=RegExp(`${EU.source}|${OU.source}`)})))()}var jU,MU,NU,PU;function FU(){return(FU=o((()=>{Fj(),jU=e=>typeof e==`string`&&!!e.trim(),MU=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&`).replaceAll(`"`,`"`),NU={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},PU=(e,t)=>Pj(e.replace(`<a>`,`<a href="${MU(t)}" target="_blank" rel="noopener noreferrer">`),NU)})))()}var IU,LU,RU;function zU(){return(zU=o((()=>{Z(),UI(),TU(),AU(),FU(),IU={id:`image`,label:`Image`,fields:[{name:`src`,label:`Source`,widget:`image`},{name:`alt`,label:`Alt Text`,required:!1},{name:`title`,label:`Title`,required:!1}],pattern:EU,toBlock:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return t?`}"`:``})`:``},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return`<img src="${MU(t)}" alt="${MU(n)}" title="${MU(r)}">`}},LU={id:`linked-image`,label:`Image`,fields:[...IU.fields,{name:`link`,label:`Link`,required:!1}],pattern:kU,fromBlock:e=>{let{src:t,alt:n,title:r,src2:i,alt2:a,title2:o,link:s}=e.groups??{};return{src:(t||i||``).trim(),alt:(n||a||``).trim(),title:(r||o||``).trim(),link:(s||``).trim()}},toBlock:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=t?`}"`:``})`:``;return a&&i?`[${a}](${i})`:a},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=`<img src="${MU(t)}" alt="${MU(n)}" title="${MU(r)}">`;return i?`<a href="${MU(i)}">${a}</a>`:a}},RU=e=>{let t=LI.get(e);if(t)return{...t,id:`x-${e}`};let n={icon:`image`,label:X(`editor_components.image`),fields:[{name:`src`,label:X(`editor_components.src`),widget:`image`},{name:`alt`,label:X(`editor_components.alt`),required:!1},{name:`title`,label:X(`editor_components.title`),required:!1}],trigger:`button`};return{image:{...IU,...n},"linked-image":{...LU,...n,fields:[...n.fields,{name:`link`,label:X(`editor_components.link`),required:!1}]}}[e]}})))()}var BU,VU,HU,UU,WU;function GU(){return(GU=o((()=>{eA(),rR(),aI(),BU=new Map,VU=1e3,HU=new WeakMap,UU=e=>{let t=HU.get(e);return t===void 0&&(t=JSON.stringify(e),HU.set(e,t)),t},WU=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=Qk(i),o;r&&(o=nR(t,n).map(e=>t[e]));let s=UU(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=e=>i.find(t=>t.value===e)?.label||e;return iI(BU,c,()=>{if(r)return a?o.map(l):o;let e=t[n];return a?l(e):e},VU)}})))()}var KU,qU,JU;function YU(){return(YU=o((()=>{AM(),zq(),KU=e=>{if(!e)return;let t=Object.values(e);if(t.some(e=>e.config?.multiple===!0))return!0;if(t.some(e=>e.config?.multiple===!1))return!1},qU=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},JU=e=>{let t=k(Nq);return e.multiple??KU(e.media_libraries)??qU(e.media_library)??KU(t?.media_libraries)??qU(t?.media_library)??!1}})))()}var XU,ZU,QU;function $U(){return($U=o((()=>{XU=/^\d+$/,ZU=e=>XU.test(e),QU=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})))()}var eW,tW,nW,rW,iW,aW,oW,sW,cW,lW,uW,dW,fW,pW,mW;function hW(){return(hW=o((()=>{UI(),wI(),VL(),ZI(),MI(),rR(),II(),NR(),xU(),zU(),GU(),lL(),YU(),$U(),eW=/^(.*?)<([^>]+)>(.*)$/,tW=/\.\d+$/,nW=new Map,rW=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},iW=e=>{let t=e.widget??`string`;return PI.includes(t)?JU(e):FI.includes(t)?!!e.multiple:!1},aW=e=>{let t=e.match(eW);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},oW=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=aW(t),{widget:c=`text`}=e,l=s??i,u=ZU(o),d=o===`*`;if((u||d)&&FI.includes(c))return{field:iW(e)?e:void 0,explicitType:l};let{field:f}=e,{fields:p}=e,{types:m,typeKey:h=`type`}=e;if(f){let e=u||d?n[r+1]:void 0;return{field:!e||f.name===e||f.widget===`object`&&`fields`in f&&f.fields?.some(t=>t.name===e)?f:void 0,explicitType:l}}if(p&&(u||d))return{field:e,explicitType:l};if(p&&!u&&o!==``)return{field:p.find(({name:e})=>e===o),explicitType:l};if(m&&(u||d)){let e=l??a[[n.slice(0,r).join(`.`),o,h].join(`.`)];return{field:m.find(({name:t})=>t===e),explicitType:d?void 0:l}}if(m&&t!==h&&o!==h&&o!==``){let e=l??a[[n.slice(0,r).join(`.`),h].join(`.`)];return{field:m.find(({name:t})=>t===e)?.fields?.find(({name:e})=>e===o),explicitType:void 0}}return{field:void 0,explicitType:l}},sW=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=[t,n??``,r??``,a,o?`1`:`0`].join(`|`);if(nW.has(s))return nW.get(s);let c=RL(t),l=c&&n?DI(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){nW.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?YI(c):void 0,f=r?RU(r)?.fields??[]:d?.fields??u,p=a.split(`.`),m,h,g=!1;if(p.forEach((e,t)=>{if(t===0){let{cleanKey:t,typeName:n}=aW(e);m=f.find(({name:e})=>e===t),!m&&d?.fields&&(m=u.find(({name:e})=>e===t)),n&&(h=n)}else if(m){let n=oW({field:m,key:e,keyPathArray:p,segmentIndex:t,pendingExplicitType:h,valueMap:i});m=n.field,h=n.explicitType}m&&`types`in m&&(g=!0)}),h&&m&&`types`in m){let{types:e}=m;m=e.find(({name:e})=>e===h)}return g||nW.set(s,m),m},cW=e=>{let t=e.widget??`string`;return NI.includes(t)?`builtin`:RI.has(t)?`custom`:`unknown`},lW=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,uW=new Map,dW=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=sW({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:o}),c=n[r];if(c===void 0&&a?.length)return``;if(s?.widget===`datetime`&&(a?.some(({method:e})=>e===`date`)||(c=MR({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=bU({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=WU({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;e||t||(c=sL(i).format(nR(n,r).map(e=>n[e]).filter(e=>typeof e==`string`&&!!e)))}if(s?.widget===`number`){let{value_type:e=`int`}=s;if(e===`int`||e===`float`){let e=nL(i),t=uW.get(e);t||(t=Intl.NumberFormat(e),uW.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=sL(i).format(c)),a?.length&&(c=CI({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},fW=({valueMap:e,locale:t,keyPath:n,keyPathPrefix:r,getFieldArgs:i})=>{let a=[`${n}.title`,`${n}.name`,...$L(e,r)].find(t=>{let n=e[t];if(!t.startsWith(r)||!(typeof n==`string`&&n.trim()||typeof n==`number`&&!Number.isNaN(n)))return!1;let a=sW({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?dW({...i,keyPath:a,locale:t}):``},pW=({entry:e,locale:t,collectionName:n,key:r,resolveRef:i=!0})=>{let{slug:a,locales:o,commitAuthor:{name:s,login:c,email:l}={},commitDate:u}=e;if(r===`slug`)return a;if(r===`commit_author`)return s||c||l;if(r===`commit_date`)return u;let{content:d}=o[t]??{};if(d===void 0)return;let f=RL(n);if(f){if(i){let i=XI(f,e),a=sW({collectionName:n,keyPath:r,isIndexFile:i});if(a?.widget===`relation`)return bU({fieldConfig:a,valueMap:d,keyPath:r,locale:t})}return d[r]}},mW=({valueMap:e,keyPath:t,isList:n,isCustomFieldType:r=!1})=>{let i=e[t];if(!n&&!r)return i;let a=nR(e,t);return a.length?a.map(t=>e[t]).filter(e=>e!==void 0):r?i:[]}})))()}var gW,_W,vW,yW,bW,xW,SW,CW,wW,TW,EW;function DW(){return(DW=o((()=>{Z(),ZF(),wD(),Fj(),OM(),Afe(),AM(),BW(),fI(),wI(),XL(),ZI(),hW(),gW=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,_W=(e,{allowMarkdown:t=!1}={})=>(e=EM(e),t&&(e=Efe(e)),e=Pj(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=Efe(e)),e.trim()),vW=(e,{identifierField:t=`title`,useBody:n=!0}={})=>{let r=[t,`title`,`name`,`label`].find(t=>typeof e[t]==`string`&&!!e[t].trim());return r?e[r].trim():n&&typeof e.body==`string`?e.body.match(gW)?.groups?.header??``:``},yW=(e,t)=>{let{slug:n,entryPath:r,basePath:i,locales:a,commitDate:o,commitAuthor:s}=t;if(e===`slug`)return n;if(e===`locales`)return a.sort((e,t)=>e.localeCompare(t)).join(`, `);if(e===`dirname`){let e=r.replace(/[^/]+$/,``);if(i){let t=i.endsWith(`/`)?i:`${i}/`;e.startsWith(t)?e=e.slice(t.length):e.startsWith(i)&&(e=e.slice(i.length))}return yD(e)}if(e===`filename`)return r.split(`/`).pop().split(`.`).shift();if(e===`extension`)return r.split(`/`).pop().split(`.`).pop();if(e===`commit_date`)return o??``;if(e===`commit_author`)return s?.name||s?.login||s?.email},bW=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a,fallbackSummary:o}=t,{value:s,transformations:c}=SI(e),l=s.replace(/^fields\./,``),u={collectionName:r,valueMap:n,keyPath:l},d=yW(s,i),f=dI(c,e=>bW(e,t));if(d===void 0&&(d=f.some(({method:e})=>e===`date`||e===`ternary`)?n[l]:dW({...u,locale:a}),l===`title`&&!d&&(d=o)),d===void 0)return``;if(d instanceof Date&&!f.length){let{year:e,month:t,day:n}=XF({date:d});return`${e}-${t}-${n}`}return f.length&&(d=CI({fieldConfig:sW({...u}),value:d,transformations:f,locale:a})),String(d)},xW=new WeakMap,CW=0,wW=()=>{let e=k(GL);return e!==SW&&(SW=e,CW+=1),CW},TW=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(XI(e,t))return YI(e)?.label;let{_type:a,name:o,_i18n:{defaultLocale:s}}=e,{_file:{basePath:c}={},identifier_field:l=`title`,summary:u}=a===`entry`?e:{},{locales:d,slug:f,commitDate:p,commitAuthor:m}=t,{content:h={},path:g=``}=d[n??s]??Object.values(d)[0]??{},_=vW(h,{identifierField:l})||f.replaceAll(`-`,` `);if(!r||!u)return _W(_,{allowMarkdown:i});let v={content:h,collectionName:o,replaceSubContext:{slug:f,entryPath:g,basePath:c,locales:Object.keys(d),commitDate:p,commitAuthor:m},defaultLocale:s,fallbackSummary:_};return _W(IW(u,(e,t)=>bW(t,v)),{allowMarkdown:i})},EW=(e,t,n={})=>{let{locale:r,useTemplate:i=!1,allowMarkdown:a=!1}=n,o=xW.get(t);o||(o=new WeakMap,xW.set(t,o));let s=o.get(e);s||(s=new Map,o.set(e,s));let c=[r??``,i?`1`:`0`,a?`1`:`0`,zu.current,wW()].join(`
|
|
2238
|
+
`),b=await _z(`AWS4${a}`,d),x=await _z(b,o),S=await _z(x,s),C=await _z(S,`aws4_request`),w=await _z(C,y),ee=Array.from(w).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${ee}`].join(` `)},bz=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await vz(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await yz({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},xz=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},Sz=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,Cz=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=Sz({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:mz(t)}})},wz=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,c=await bz({method:`GET`,url:n,config:e,secretAccessKey:l});if(!c.ok){let e=await c.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let f=await c.text(),p=xz(f),m=(p.Contents?Array.isArray(p.Contents)?p.Contents:[p.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...m),d=p.NextContinuationToken,p.IsTruncated!==`true`||!d)break;await hd(50)}let f=c?u.filter(e=>mz(e.Key)===c):u;return Cz(f,e)},Tz=async(e,t,n)=>{let r=await wz(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},Ez=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,p=await n.arrayBuffer(),m=await bz({method:`PUT`,url:f,config:t,secretAccessKey:c,body:p,extraHeaders:{"Content-Type":n.type||`application/octet-stream`,...t.acl!==!1&&{"x-amz-acl":t.acl??`public-read`}}});if(!m.ok){let e=await m.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await hd(50)}return Cz(l,t)}})))()}var Oz,kz,Az,jz,Mz,Nz,Pz;function Fz(){return(Fz=o((()=>{Dz(),Oz=e=>gz(`aws_s3`,e),kz=e=>{let t=Oz(e)??Oz();return!!(t&&t.access_key_id&&t.bucket&&t.region)},Az=({fieldConfig:e})=>{let t=Oz(e)??Oz();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},jz=async e=>wz(Az(e),e),Mz=async(e,t)=>Tz(e,Az(t),t),Nz=async(e,t)=>Ez(e,Az(t),t),Pz={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:kz,list:jz,search:Mz,upload:Nz}})))()}var Iz,Lz,Rz,zz,Bz,Vz,Hz;function Uz(){return(Uz=o((()=>{Dz(),Iz=e=>gz(`backblaze_b2`,e),Lz=e=>{let t=Iz(e)??Iz();return!!(t&&t.access_key_id&&t.bucket&&t.region)},Rz=({fieldConfig:e})=>{let t=Iz(e)??Iz();if(!t)throw Error(`Backblaze B2 configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.backblazeb2.com`,acl:!1,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.backblazeb2.com`}},zz=async e=>wz(Rz(e),e),Bz=async(e,t)=>Tz(e,Rz(t),t),Vz=async(e,t)=>Ez(e,Rz(t),t),Hz={serviceType:`cloud_storage`,serviceId:`backblaze_b2`,serviceLabel:`Backblaze B2`,serviceURL:`https://www.backblaze.com/cloud-storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.backblaze.com/docs/cloud-storage-s3-compatible-api`,apiKeyURL:`https://secure.backblaze.com/app_keys.htm`,apiKeyPattern:/^[A-Za-z0-9/+=]{30,}$/,isEnabled:Lz,list:zz,search:Bz,upload:Vz}})))()}var Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz;function $z(){return($z=o((()=>{Dz(),Wz={default:``,eu:`eu.`,fedramp:`fedramp.`},Gz=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${Wz[t]??``}r2.cloudflarestorage.com`,Kz=e=>gz(`cloudflare_r2`,e),qz=e=>{let t=Kz(e)??Kz();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},Jz=({fieldConfig:e})=>{let t=Kz(e)??Kz();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:Gz(t)}},Yz=async e=>wz(Jz(e),e),Xz=async(e,t)=>Tz(e,Jz(t),t),Zz=async(e,t)=>Ez(e,Jz(t),t),Qz={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:qz,list:Yz,search:Xz,upload:Zz}})))()}var eB,tB,nB,rB,iB,aB,oB;function sB(){return(sB=o((()=>{Dz(),eB=e=>gz(`digitalocean_spaces`,e),tB=e=>{let t=eB(e)??eB();return!!(t&&t.access_key_id&&t.bucket&&t.region)},nB=({fieldConfig:e})=>{let t=eB(e)??eB();if(!t)throw Error(`DigitalOcean Spaces configuration is not available`);return{...t,endpoint:`https://${t.region}.digitaloceanspaces.com`,public_url:t.public_url??`https://${t.bucket}.${t.region}.digitaloceanspaces.com`}},rB=async e=>wz(nB(e),e),iB=async(e,t)=>Tz(e,nB(t),t),aB=async(e,t)=>Ez(e,nB(t),t),oB={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:tB,list:rB,search:iB,upload:aB}})))()}var cB,lB,uB,dB,fB,pB,mB;function hB(){return(hB=o((()=>{Dz(),cB=e=>gz(`scaleway_object_storage`,e),lB=e=>{let t=cB(e)??cB();return!!(t&&t.access_key_id&&t.bucket&&t.region)},uB=({fieldConfig:e})=>{let t=cB(e)??cB();if(!t)throw Error(`Scaleway Object Storage configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.scw.cloud`,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.scw.cloud`}},dB=async e=>wz(uB(e),e),fB=async(e,t)=>Tz(e,uB(t),t),pB=async(e,t)=>Ez(e,uB(t),t),mB={serviceType:`cloud_storage`,serviceId:`scaleway_object_storage`,serviceLabel:`Scaleway Object Storage`,serviceURL:`https://www.scaleway.com/en/object-storage/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.scaleway.com/en/docs/object-storage/`,apiKeyURL:`https://console.scaleway.com/iam/api-keys`,apiKeyPattern:/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,isEnabled:lB,list:dB,search:fB,upload:pB}})))()}var gB,_B,vB,yB,bB,xB,SB,CB,wB;function TB(){return(TB=o((()=>{Dz(),gB=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,_B=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,vB=e=>gz(`supabase_storage`,e),yB=e=>{let t=vB(e)??vB();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},bB=({fieldConfig:e})=>{let t=vB(e)??vB();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:gB(t),public_url:t.public_url??_B(t)}},xB=async e=>wz(bB(e),e),SB=async(e,t)=>Tz(e,bB(t),t),CB=async(e,t)=>Ez(e,bB(t),t),wB={serviceType:`cloud_storage`,serviceId:`supabase_storage`,serviceLabel:`Supabase Storage`,serviceURL:`https://supabase.com/storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://supabase.com/docs/guides/storage`,apiKeyURL:`https://supabase.com/dashboard/project/_/storage/settings`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:yB,list:xB,search:SB,upload:CB}})))()}var cpe=s(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e,t,i){if(typeof t!=`string`)throw Error(`Input must be string`);for(var a=t.length,o=0,s,c,l=0;l<a;l+=1){if(s=t.charCodeAt(l),c=t[l],n(s)&&r(t.charCodeAt(l+1))&&(l+=1,c+=t[l]),o+=e(c),o===i)return t.slice(0,l+1);if(o>i)return t.slice(0,l-c.length+1)}return t}})),lpe=s(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e){if(typeof e!=`string`)throw Error(`Input must be string`);for(var t=e.length,i=0,a=null,o=null,s=0;s<t;s++)a=e.charCodeAt(s),r(a)?o!=null&&n(o)?i+=1:i+=3:a<=127?i+=1:a>=128&&a<=2047?i+=2:a>=2048&&a<=65535&&(i+=3),o=a;return i}})),upe=s(((e,t)=>{var n=cpe(),r=lpe();t.exports=n.bind(null,r)})),dpe=s(((e,t)=>{var n=upe(),r=/[\/\?<>\\:\*\|"]/g,i=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,o=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;function s(e,t){for(var n=e.length;n>0&&(e[n-1]===`.`||e[n-1]===` `);)n--;return n<e.length?e.slice(0,n)+t:e}function c(e,t){if(typeof e!=`string`)throw Error(`Input must be string`);var c=e.replace(r,t).replace(i,t).replace(a,t).replace(o,t);return c=s(c,t),n(c,255)}t.exports=function(e,t){var n=t&&t.replacement||``,r=c(e,n);return n===``?r:c(r,``)}})),EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB;function VB(){return(VB=o((()=>{Z(),Dd(),FM(),wD(),EB=l(dpe(),1),sI(),DB=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),OB=e=>{let t=e.startsWith(`@`);return t&&(e=e.slice(1)),e=e.split(`/`).map(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)).join(`/`),t?`@${e}`:e},kB=e=>decodeURIComponent(e),AB=new Map,jB=e=>{let t=zu.current,n=AB.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),AB.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?X(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?X(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?X(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?X(`file_size_units.gb`,{values:{size:n.format(e/a)}}):X(`file_size_units.tb`,{values:{size:n.format(e/o)}})},MB=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=NM(e),i=RegExp(`^${_D(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>CD(e.split(`.`)[0],t.split(`.`)[0])).findLast(e=>i.test(e));return a?`${n}-${Number(a.match(i)?.groups?.num??0)+1}${r?`.${r}`:``}`:e},NB=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,EB.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=NM(r);r=`${oI(e)}${t?`.${t.toLowerCase()}`:``}`}return MB(r,n)},PB=[[`jpg`,`jpeg`,`jpe`,`jfif`],[`tif`,`tiff`],[`htm`,`html`],[`yml`,`yaml`],[`md`,`markdown`],[`mpg`,`mpeg`],[`mid`,`midi`],[`aif`,`aiff`]],FB=(e,t)=>{let n=e?.toLowerCase()??``,r=t?.toLowerCase()??``;return n===r||PB.some(e=>e.includes(n)&&e.includes(r))},IB=e=>e.filter(Boolean).join(`/`),LB=e=>e.split(`/`).filter(e=>e!==`.`&&e!==`..`).join(`/`),RB=e=>{let t=e.split(`/`),n=!1;return t.forEach((e,r)=>{if(e===`.`||e===`..`){if(n&&(t[r]=null,e===`..`)){let e=t.findLastIndex((e,t)=>!!e&&t<r);e>-1&&(t[e]=null)}}else n=!0}),IB(t)},zB=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,BB=async e=>{let t=await zB(e).arrayBuffer();return Ed(new Blob([`blob ${t.byteLength}\0`,t]))}})))()}var HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB;function QB(){return(QB=o((()=>{gd(),AM(),zq(),VB(),HB=(e=k(Nq))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),UB=e=>{let t=HB(e)??HB();return t?t.config?.publicKey:void 0},WB=e=>!!UB(e),GB=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(HB(t)??HB())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},KB=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=UB(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await hd(50)}return GB(l,{fieldConfig:i})},qB=async e=>KB(e),JB=async(e,t)=>{let n=e.toLowerCase();return KB(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},YB=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},XB=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=UB(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await YB(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(NB(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json(),u=Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}});return GB(u,{fieldConfig:n})},ZB={serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:WB,list:qB,search:JB,upload:XB}})))()}var $B,eV;function tV(){return(tV=o((()=>{iz(),Fz(),Uz(),$z(),sB(),hB(),TB(),QB(),$B={aws_s3:Pz,backblaze_b2:Hz,cloudflare_r2:Qz,cloudinary:rz,digitalocean_spaces:oB,scaleway_object_storage:mB,supabase_storage:wB,uploadcare:ZB},eV=Object.keys($B)})))()}var nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV;function gV(){return(gV=o((()=>{nV=`@sveltia/cms`,rV=`0.191.2`,iV=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,aV=[`svelte`,`cms`,`content-management-system`],oV=`https://sveltiacms.app/en/`,sV={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},cV={type:`github`,url:`https://github.com/sponsors/kyoshino`},lV={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},uV=`module`,dV={build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},fV={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.49.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.2.3`,"@sveltia/ui":`^0.65.5`,"@sveltia/utils":`^0.12.1`,"create-react-class":`^15.7.0`,dayjs:`^1.11.21`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.9`,"isomorphic-dompurify":`^3.22.0`,leaflet:`^1.9.4`,lexical:`^0.49.0`,marked:`^18.0.9`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^6.2.108`,qrcode:`^1.5.4`,react:`^19.2.8`,"react-dom":`^19.2.8`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.8.0`,svgo:`^4.0.2`,"terra-draw":`^1.32.3`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},pV={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.3.0`,"@types/leaflet":`^1.9.22`,"@types/node":`^26.2.0`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.18`,"@types/react-dom":`^19.2.4`,"@vitest/coverage-v8":`^4.1.10`,cspell:`^10.0.1`,eslint:`^9.39.5`,"eslint-config-airbnb-extended":`^3.2.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^64.2.0`,"eslint-plugin-package-json":`^1.7.1`,"eslint-plugin-svelte":`^3.23.0`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.11.0`,oxlint:`^1.78.0`,"postcss-html":`^2.0.0`,prettier:`^3.9.6`,"prettier-plugin-svelte":`^4.1.1`,sonda:`^0.14.0`,stylelint:`^17.14.1`,"stylelint-config-recommended":`^18.0.0`,svelte:`^5.56.9`,"svelte-check":`^4.7.6`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.2.1`,vitest:`^4.1.10`},mV={directory:`package`,access:`public`,provenance:!0},hV={name:nV,version:rV,description:iV,keywords:aV,homepage:oV,repository:sV,funding:cV,license:`MIT`,author:lV,type:uV,scripts:dV,dependencies:fV,devDependencies:pV,publishConfig:mV}})))()}var _V,vV,yV;function bV(){return(bV=o((()=>{gV(),{dependencies:_V,version:vV}=hV,yV=`https://unpkg.com/@sveltia/cms`})))()}var xV,SV;function CV(){return(CV=o((()=>{bV(),cO(),xV=e=>{let t=`https://unpkg.com/${e}`,n=_V[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},SV=async(e,t)=>sO(()=>import(`${xV(e)}/${t}`),[])})))()}var wV,TV,EV,DV,OV,kV,AV,jV;function MV(){return(MV=o((()=>{wV=[`avif`,`gif`,`jpeg`,`png`,`webp`],TV=wV.map(e=>`image/${e}`),EV=/\b(?:avif|gif|jpe?g|png|webp)$/i,DV=[`svg`],OV=[`image/svg+xml`],kV=/\b(?:svg)$/i,[...wV,...DV],AV=[...TV,...OV],jV=[`webp`]})))()}var NV,PV,FV;function IV(){return(IV=o((()=>{CV(),MV(),NV={},PV=async e=>{if(e in NV)return NV[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return NV[e]=r,r},FV=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await PV(t)&&jV.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await SV(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})}})))()}var LV,RV;function zV(){return(zV=o((()=>{LV=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},RV=(e,t,n)=>{let{scale:r,width:i,height:a}=LV(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})))()}var BV,VV,HV,UV,WV,GV;function KV(){return(KV=o((()=>{CV(),IV(),zV(),BV={format:`webp`,quality:85,width:512,height:512,fit:`contain`},VV=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise((e,r)=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{URL.revokeObjectURL(t),r(Error(`Failed to decode image`))},{once:!0}),n.src=t})},HV=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise((e,r)=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.addEventListener(`error`,()=>{document.body.removeChild(n),URL.revokeObjectURL(t),r(Error(`Failed to decode video`))},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n),n.src=t})},UV=async e=>e.type.startsWith(`video/`)?HV({blob:e}):VV({blob:e}),WV=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await UV(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return RV(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),FV(l,{format:t,quality:n})},GV=async e=>{let t=await e.text();try{let{optimize:n}=await SV(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})))()}var qV,JV,YV,XV,ZV,QV;function $V(){return($V=o((()=>{CV(),IV(),zV(),cO(),qV=xV(`pdfjs-dist`),JV=`${qV}/build/pdf.min.mjs`,YV=`${qV}/build/pdf.worker.min.mjs`,XV={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${qV}/cmaps/`,iccUrl:`${qV}/iccs/`,standardFontDataUrl:`${qV}/standard_fonts/`,wasmUrl:`${qV}/wasm/`},QV=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!ZV)try{ZV=await sO(()=>import(JV),[]),ZV.GlobalWorkerOptions.workerSrc=YV}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await ZV.getDocument({...XV,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=RV(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return FV(s,{format:t,quality:n})}})))()}var eH,tH,nH,rH,iH,aH,oH,sH,cH,lH,uH,dH,fH,pH,mH;function hH(){return(hH=o((()=>{FM(),gd(),RD(),wD(),GR(),AM(),_J(),XM(),jQ(),VM(),zq(),tV(),iz(),VB(),KV(),$V(),eH=/^(?:https?|data|blob):/,tH=new Set,nH=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(tH.has(o)&&t<=25)return await hd(200),nH(e,t+1);tH.add(o);let n=await k(kQ)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:WR.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),tH.delete(o),s},rH=async e=>(e.blobURL||await nH(e),e.blobURL),iH=void 0,aH=new Map,oH=()=>{if(iH===void 0){let{databaseName:e}=k(kQ)?.repository??{};iH=e?new LD(e,`asset-thumbnails`):null}},sH=async(e,t)=>{let n=await iH?.get(e.sha);if(!n){let r=await nH(e);n=await(t?QV:WV)(r,BV),await iH?.set(e.sha,n)}return n},cH=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;oH();let{sha:r}=e,i=aH.get(r);if(!i){if(t){let e=await iH?.get(r);return e?URL.createObjectURL(e):void 0}i=sH(e,n).finally(()=>{aH.delete(r)}),aH.set(r,i)}let a=await i;return a?URL.createObjectURL(a):void 0},lH=new Set,uH=()=>{let e=new Set(lH);lH.clear(),document.querySelectorAll(`[src^="blob:"]`).forEach(t=>{e.delete(t.getAttribute(`src`))}),e.size&&(e.forEach(e=>URL.revokeObjectURL(e)),k(Xq).forEach(t=>{t.blobURL!==void 0&&e.has(t.blobURL)&&delete t.blobURL}))},dH=({blobURL:e})=>{if(!e)return;let t=!lH.size;lH.add(e),t&&window.requestAnimationFrame(uH)},fH=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:JM(e.path).find(({collectionName:e})=>e!==void 0)??k(UM);if(a){if(t){let t=NM(e.path).dirname,n=r?NM(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===IB([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=k(Nq),l=o?e.path.replace(DB(e.folder.internalPath??``,e=>{let t=e.match(RM)?.[1];return t?`(?<${t}>[^/]+)`:_D(e)}),i?.replaceAll(zM,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=OB(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},pH=e=>{if($B.cloudinary?.isEnabled?.()){let t=tz(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},mH=async({value:e,entry:t,collectionName:n,fileName:r,componentName:i,fieldConfig:a,typedKeyPath:o,thumbnail:s=!1})=>{if(!e)return;if(eH.test(e))return e;if(dJ(e)){let t=pH(a);if(t)return`${t}/${e}`}let c=fJ({value:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:o});if(c)return(s?await cH(c):await rH(c))??fH(c)}})))()}var gH,_H,vH,yH,bH,xH,SH,CH,wH;function TH(){return(TH=o((()=>{ZF(),gH=l(pI(),1),_H=l(mI(),1),vH=l(hI(),1),yH=l(gI(),1),AM(),jQ(),BW(),zq(),XL(),VL(),ZI(),bI(),NR(),gH.default.extend(_H.default),gH.default.extend(vH.default),gH.default.extend(yH.default),bH=/{{(?:year|month|day|hour|minute|second)}}/,xH=e=>YL(Object.values(e.locales)[0].path).map(({collectionName:e})=>RL(e)).filter(e=>!!e),SH=({dateFieldName:e,fields:t,content:n})=>{let r=e?t.find(({widget:t,name:n})=>t===`datetime`&&n===e):t.find(({widget:e})=>e===`datetime`),i=r?n[r.name]:void 0;if(!r||!i)return;let a=r,o=OR(i,a);if(!wR(o))return;let{utc:s,outputUTC:c}=yI(a);return XF({date:o,timeZone:s||c?`UTC`:void 0})},CH=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=k(Nq)??{},{slug:o,path:s,content:c}=e.locales[t]??{},{preview_path:l,preview_path_date_field:u,fields:d=[],_i18n:{defaultLocale:f,omitDefaultLocaleFromPreviewPath:p}}=r??n;if(!i||!a||!s||!c||!l)return;let m=XI(n,e),h=(m?YI(n):void 0)?.fields??d,g;if(bH.test(l)&&(g=SH({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=zW(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},wH=(e,t)=>`${k(kQ)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`})))()}var EH,DH;function OH(){return(OH=o((()=>{EH=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,DH=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(EH)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}}})))()}var kH,AH,jH,MH,NH,PH,FH,IH,LH;function RH(){return(RH=o((()=>{AM(),hH(),zq(),XL(),VL(),ZI(),MI(),TH(),hW(),II(),OH(),kH=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,AH=sn([]),jH=cn(AH,e=>new Set(e.map(e=>e.id))),MH=e=>{let t=RL(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=DH(i?.pattern),s=i?.value===void 0?[]:Array.isArray(i.value)?i.value:[i.value],c;if(n===`entry`){let n=t._file?.fullPathRegEx;c=n?e=>n.test(Object.values(e.locales)[0]?.path??``):t=>xH(t).some(({name:t})=>t===e)}else{let t=new Set(k(WL).filter(({collectionName:t})=>t===e).flatMap(({filePathMap:e})=>e?Object.values(e):[]));c=e=>{let n=Object.values(e.locales)[0]?.path;return!!n&&t.has(n)}}return k(GL).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=pW({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},NH={entrySource:void 0,folderSource:void 0,map:new Map},PH=e=>{let t=k(GL),n=k(WL);(t!==NH.entrySource||n!==NH.folderSource)&&(NH.entrySource=t,NH.folderSource=n,NH.map=new Map);let r=NH.map.get(e);if(r)return r;let i=MH(e);return NH.map.set(e,i),i},FH=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=sW({collectionName:n,fileName:l,valueMap:i,keyPath:a,isIndexFile:s});if(!u)return!1;let d=e.startsWith(`blob:`),f={entry:r,collectionName:n,fileName:l},{widget:p=`string`}=u;if(PI.includes(p)){let n=d?await mH({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(kH)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await mH({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},IH=async(e,{entries:t=k(GL),newURL:n=``}={})=>{let r=k(Nq)?._baseURL,i=r&&!e.startsWith(`blob:`)?e.replace(r,``):e,a=i.startsWith(`blob:`),o=!!n,s=await Promise.all(t.map(async e=>{let{locales:t}=e,r=xH(e),s=!1;for(let{content:c}of Object.values(t)){for(let[t,l]of Object.entries(c))if(!(typeof l!=`string`||!l)&&!(!a&&!l.includes(i))){for(let a of r){let r={assetURL:i,newURL:n,collectionName:a.name,entry:e,content:c,keyPath:t,value:l,isIndexFile:XI(a,e)},u=kI(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>FH({...r,collectionFile:e})))).includes(!0):await FH({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},LH=e=>{let t=YI(e);return t?!PH(e.name).some(({slug:e})=>e===t.name):!1}})))()}var zH,BH,VH,HH,UH;function WH(){return(WH=o((()=>{zH=new WeakMap,BH=e=>{let t=zH.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),zH.set(e,n),n},VH=new WeakMap,HH=0,UH=e=>(VH.has(e)||(VH.set(e,HH),HH+=1),VH.get(e))})))()}var GH,KH;function qH(){return(qH=o((()=>{BW(),GH=e=>LW(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,KH=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n}})))()}var JH,YH,XH,ZH;function QH(){return(QH=o((()=>{eA(),BW(),DW(),qH(),JH=(e,t,n)=>{let{slug:r,locale:i,getDisplayValue:a}=t,{content:o,locales:s,defaultLocale:c,identifierField:l}=n;if(e===`slug`)return r;if(e===`locale`)return i;let u=e.replace(/^fields\./,``);return a(u)||a(u,c)||vW(o,{identifierField:l})||vW(s[c]?.content||{},{identifierField:l})||r},YH=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=JH(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},XH=e=>{let t=[];return IW(e,(e,n)=>(t.push(n),``)),t},ZH=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=GH(n??`{{slug}}`),o=r.map(GH).join(` `),s=i.map(GH).join(` `),c=$k([...XH(o),...XH(a),...XH(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}}})))()}var $H,eU,tU,nU,rU,iU,aU,oU,sU;function cU(){return(cU=o((()=>{wD(),hW(),qH(),QH(),aI(),$H=/\.(\d+)$/,eU=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=sW({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:KH(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},tU=new Map,nU=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=rI(tU,e,()=>RegExp(`^${_D(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match($H);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index).map(({value:e})=>{let n={label:s,value:c,searchValue:l};t.forEach(([t])=>{n.label=n.label.replaceAll(`{{${t}}}`,e),n.value=n.value.replaceAll(`{{${t}}}`,e),n.searchValue=n.searchValue.replaceAll(`{{${t}}}`,e)});let{label:r,value:u,searchValue:d}=YH(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},rU=/^(.+)\.\*\.(.+)$/,iU=new Map,aU=e=>{let t=null;return e.some(([e])=>(t=e.match(rU),!!t)),t},oU=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=aU(e)??[];if(!o)return[];let c=`${o}:${s}`,l=rI(iU,c,()=>{let e=_D(o),t=_D(s);return RegExp(`^${e}.([0-9]+).${t}$`)}),u=Object.entries(t).filter(([e])=>l.test(e)).map(([e,t])=>{let n=e.match(l);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index),{_displayField:d,_valueField:f,_searchField:p}=n;return u.map(({index:n})=>{let o={label:d,value:f,searchValue:p};e.forEach(([e])=>{let r=e.match(rU);if(r){let[,i,a]=r,s=t[`${i}.${n}.${a}`]||``;o.label=o.label.replaceAll(`{{${e}}}`,s),o.value=o.value.replaceAll(`{{${e}}}`,s),o.searchValue=o.searchValue.replaceAll(`{{${e}}}`,s)}});let{label:s,value:c,searchValue:l}=YH(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},sU=({baseFieldGroups:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let o=[],s=!1;return e.forEach((e,c)=>{if(e.length===0)return;let[,l]=e[0],u={groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a},d=l.isComplexListField?oU({...u}):nU({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}}})))()}var lU;function uU(){return(uU=o((()=>{DW(),QH(),lU=({templates:e,allFieldNames:t,context:n,fallbackContext:r})=>{let{slug:i}=n,{_displayField:a,_valueField:o,_searchField:s}=e,{content:c,locales:l,defaultLocale:u,identifierField:d}=r,f=Object.fromEntries(t.map(e=>[e,JH(e,n,r)])),p=a,m=o,h=s;return Object.entries(f).forEach(([e,t])=>{p=p.replaceAll(`{{${e}}}`,t),m=m.replaceAll(`{{${e}}}`,t),h=h.replaceAll(`{{${e}}}`,t)}),(!p||p.trim()===``)&&(p=vW(c,{identifierField:d})||vW(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}}})))()}var dU;function fU(){return(fU=o((()=>{ZI(),hW(),cU(),uU(),QH(),dU=({refEntry:e,content:t,collection:n,templates:r,allFieldNames:i,hasListFields:a,collectionName:o,fileName:s,locale:c,identifierField:l,defaultLocale:u})=>{let{slug:d,locales:f}=e,p={collectionName:o,fileName:s,isIndexFile:XI(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>dW({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[lU({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let g=eU(i,p),{results:_,hasProcessedListFields:v}=sU({baseFieldGroups:g,content:t,templates:r,allFieldNames:i,context:m,fallbackContext:h});if(v)return _;let{_displayField:y,_valueField:b,_searchField:x}=r,{label:S,value:C,searchValue:w}=YH({label:y,value:b,searchValue:x},i.filter(e=>!e.includes(`*`)),m,h);return[{label:S||``,value:C||d,searchValue:w||S||``}]}})))()}var pU,mU,hU;function gU(){return(gU=o((()=>{pU=/^{{fields\.(.+?)}}$/,mU=(e,t,n=void 0)=>e.map(({field:e,values:r,exclude:i})=>({field:e,exclude:i,values:r.flatMap(e=>{if(typeof e!=`string`)return[e];if(e===`{{slug}}`)return n?[n]:[];let r=e.match(pU);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),hU=({refEntries:e,locale:t,fileName:n=void 0,entryFilters:r=[],defaultLocale:i=void 0})=>e.filter(e=>!n||n===e.slug).map(e=>{let{content:n}=e.locales[t]??(i?e.locales[i]:void 0)??e.locales._default??{};return{refEntry:e,hasContent:!!n&&Object.keys(n).length>0,content:n??{}}}).filter(({hasContent:e,content:t,refEntry:n})=>e&&r.every(({field:e,values:r,exclude:i=!1})=>{if(r.length===0)return!0;let a=e===`slug`,o=e.replace(/^fields\./,``),s=a?n.slug:t[o];return i?!r.includes(s):r.includes(s)}))})))()}var _U,vU,yU,bU;function xU(){return(xU=o((()=>{wD(),VL(),RH(),rR(),WH(),fU(),gU(),QH(),aI(),_U=new Map,vU=100,yU=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=mU(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`),u=`${e}|${`${UH(t)}|${UH(n)}`}|${l}`;return iI(_U,u,()=>{let r=RL(a);if(!r)return[];let{_type:i,_i18n:{defaultLocale:s}}=r,{identifier_field:l=`title`}=i===`entry`?r:{},u=ZH(t,l),{allFieldNames:d,hasListFields:f}=u;return hU({refEntries:n,locale:e,fileName:o,entryFilters:c,defaultLocale:s}).flatMap(({refEntry:t,content:n})=>dU({refEntry:t,content:n,collection:r,templates:u,allFieldNames:d,hasListFields:f,collectionName:a,fileName:o,locale:e,identifierField:l,defaultLocale:s})).sort((e,t)=>CD(e.label,t.label))},vU)},bU=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=PH(a),s=yU({locale:r,fieldConfig:e,refEntries:o}),c=BH(s),l=e=>c.get(e)||e;return i?nR(t,n).map(e=>l(t[e])):l(t[n])}})))()}var SU,CU,wU;function TU(){return(TU=o((()=>{SU=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),CU=e=>LM(Object.fromEntries(Object.entries(IM(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),wU=e=>e.replace(/"/g,`'`)})))()}var EU,DU,OU,kU;function AU(){return(AU=o((()=>{EU=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,DU=new RegExp(EU,`g`),OU=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,kU=RegExp(`${EU.source}|${OU.source}`)})))()}var jU,MU,NU,PU;function FU(){return(FU=o((()=>{Fj(),jU=e=>typeof e==`string`&&!!e.trim(),MU=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&`).replaceAll(`"`,`"`),NU={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},PU=(e,t)=>Pj(e.replace(`<a>`,`<a href="${MU(t)}" target="_blank" rel="noopener noreferrer">`),NU)})))()}var IU,LU,RU;function zU(){return(zU=o((()=>{Z(),UI(),TU(),AU(),FU(),IU={id:`image`,label:`Image`,fields:[{name:`src`,label:`Source`,widget:`image`},{name:`alt`,label:`Alt Text`,required:!1},{name:`title`,label:`Title`,required:!1}],pattern:EU,toBlock:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return t?`}"`:``})`:``},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return`<img src="${MU(t)}" alt="${MU(n)}" title="${MU(r)}">`}},LU={id:`linked-image`,label:`Image`,fields:[...IU.fields,{name:`link`,label:`Link`,required:!1}],pattern:kU,fromBlock:e=>{let{src:t,alt:n,title:r,src2:i,alt2:a,title2:o,link:s}=e.groups??{};return{src:(t||i||``).trim(),alt:(n||a||``).trim(),title:(r||o||``).trim(),link:(s||``).trim()}},toBlock:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=t?`}"`:``})`:``;return a&&i?`[${a}](${i})`:a},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=`<img src="${MU(t)}" alt="${MU(n)}" title="${MU(r)}">`;return i?`<a href="${MU(i)}">${a}</a>`:a}},RU=e=>{let t=LI.get(e);if(t)return{...t,id:`x-${e}`};let n={icon:`image`,label:X(`editor_components.image`),fields:[{name:`src`,label:X(`editor_components.src`),widget:`image`},{name:`alt`,label:X(`editor_components.alt`),required:!1},{name:`title`,label:X(`editor_components.title`),required:!1}],trigger:`button`};return{image:{...IU,...n},"linked-image":{...LU,...n,fields:[...n.fields,{name:`link`,label:X(`editor_components.link`),required:!1}]}}[e]}})))()}var BU,VU,HU,UU,WU;function GU(){return(GU=o((()=>{eA(),rR(),aI(),BU=new Map,VU=1e3,HU=new WeakMap,UU=e=>{let t=HU.get(e);return t===void 0&&(t=JSON.stringify(e),HU.set(e,t)),t},WU=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=Qk(i),o;r&&(o=nR(t,n).map(e=>t[e]));let s=UU(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=e=>i.find(t=>t.value===e)?.label||e;return iI(BU,c,()=>{if(r)return a?o.map(l):o;let e=t[n];return a?l(e):e},VU)}})))()}var KU,qU,JU;function YU(){return(YU=o((()=>{AM(),zq(),KU=e=>{if(!e)return;let t=Object.values(e);if(t.some(e=>e.config?.multiple===!0))return!0;if(t.some(e=>e.config?.multiple===!1))return!1},qU=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},JU=e=>{let t=k(Nq);return e.multiple??KU(e.media_libraries)??qU(e.media_library)??KU(t?.media_libraries)??qU(t?.media_library)??!1}})))()}var XU,ZU,QU;function $U(){return($U=o((()=>{XU=/^\d+$/,ZU=e=>XU.test(e),QU=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})))()}var eW,tW,nW,rW,iW,aW,oW,sW,cW,lW,uW,dW,fW,pW,mW;function hW(){return(hW=o((()=>{UI(),wI(),VL(),ZI(),MI(),rR(),II(),NR(),xU(),zU(),GU(),lL(),YU(),$U(),eW=/^(.*?)<([^>]+)>(.*)$/,tW=/\.\d+$/,nW=new Map,rW=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},iW=e=>{let t=e.widget??`string`;return PI.includes(t)?JU(e):FI.includes(t)?!!e.multiple:!1},aW=e=>{let t=e.match(eW);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},oW=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=aW(t),{widget:c=`text`}=e,l=s??i,u=ZU(o),d=o===`*`;if((u||d)&&FI.includes(c))return{field:iW(e)?e:void 0,explicitType:l};let{field:f}=e,{fields:p}=e,{types:m,typeKey:h=`type`}=e;if(f){let e=u||d?n[r+1]:void 0;return{field:!e||f.name===e||f.widget===`object`&&`fields`in f&&f.fields?.some(t=>t.name===e)?f:void 0,explicitType:l}}if(p&&(u||d))return{field:e,explicitType:l};if(p&&!u&&o!==``)return{field:p.find(({name:e})=>e===o),explicitType:l};if(m&&(u||d)){let e=l??a[[n.slice(0,r).join(`.`),o,h].join(`.`)];return{field:m.find(({name:t})=>t===e),explicitType:d?void 0:l}}if(m&&t!==h&&o!==h&&o!==``){let e=l??a[[n.slice(0,r).join(`.`),h].join(`.`)];return{field:m.find(({name:t})=>t===e)?.fields?.find(({name:e})=>e===o),explicitType:void 0}}return{field:void 0,explicitType:l}},sW=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=[t,n??``,r??``,a,o?`1`:`0`].join(`|`);if(nW.has(s))return nW.get(s);let c=RL(t),l=c&&n?DI(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){nW.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?YI(c):void 0,f=r?RU(r)?.fields??[]:d?.fields??u,p=a.split(`.`),m,h,g=!1;if(p.forEach((e,t)=>{if(t===0){let{cleanKey:t,typeName:n}=aW(e);m=f.find(({name:e})=>e===t),!m&&d?.fields&&(m=u.find(({name:e})=>e===t)),n&&(h=n)}else if(m){let n=oW({field:m,key:e,keyPathArray:p,segmentIndex:t,pendingExplicitType:h,valueMap:i});m=n.field,h=n.explicitType}m&&`types`in m&&(g=!0)}),h&&m&&`types`in m){let{types:e}=m;m=e.find(({name:e})=>e===h)}return g||nW.set(s,m),m},cW=e=>{let t=e.widget??`string`;return NI.includes(t)?`builtin`:RI.has(t)?`custom`:`unknown`},lW=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,uW=new Map,dW=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=sW({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:o}),c=n[r];if(c===void 0&&a?.length)return``;if(s?.widget===`datetime`&&(a?.some(({method:e})=>e===`date`)||(c=MR({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=bU({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=WU({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;e||t||(c=sL(i).format(nR(n,r).map(e=>n[e]).filter(e=>typeof e==`string`&&!!e)))}if(s?.widget===`number`){let{value_type:e=`int`}=s;if(e===`int`||e===`float`){let e=nL(i),t=uW.get(e);t||(t=Intl.NumberFormat(e),uW.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=sL(i).format(c)),a?.length&&(c=CI({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},fW=({valueMap:e,locale:t,keyPath:n,keyPathPrefix:r,getFieldArgs:i})=>{let a=[`${n}.title`,`${n}.name`,...$L(e,r)].find(t=>{let n=e[t];if(!t.startsWith(r)||!(typeof n==`string`&&n.trim()||typeof n==`number`&&!Number.isNaN(n)))return!1;let a=sW({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?dW({...i,keyPath:a,locale:t}):``},pW=({entry:e,locale:t,collectionName:n,key:r,resolveRef:i=!0})=>{let{slug:a,locales:o,commitAuthor:{name:s,login:c,email:l}={},commitDate:u}=e;if(r===`slug`)return a;if(r===`commit_author`)return s||c||l;if(r===`commit_date`)return u;let{content:d}=o[t]??{};if(d===void 0)return;let f=RL(n);if(f){if(i){let i=XI(f,e),a=sW({collectionName:n,keyPath:r,isIndexFile:i});if(a?.widget===`relation`)return bU({fieldConfig:a,valueMap:d,keyPath:r,locale:t})}return d[r]}},mW=({valueMap:e,keyPath:t,isList:n,isCustomFieldType:r=!1})=>{let i=e[t];if(!n&&!r)return i;let a=nR(e,t);return a.length?a.map(t=>e[t]).filter(e=>e!==void 0):r?i:[]}})))()}var gW,_W,vW,yW,bW,xW,SW,CW,wW,TW,EW;function DW(){return(DW=o((()=>{Z(),ZF(),wD(),Fj(),OM(),Afe(),AM(),BW(),fI(),wI(),XL(),ZI(),hW(),gW=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,_W=(e,{allowMarkdown:t=!1}={})=>(e=EM(e),t&&(e=Efe(e)),e=Pj(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=Efe(e)),e.trim()),vW=(e,{identifierField:t=`title`,useBody:n=!0}={})=>{let r=[t,`title`,`name`,`label`].find(t=>typeof e[t]==`string`&&!!e[t].trim());return r?e[r].trim():n&&typeof e.body==`string`?e.body.match(gW)?.groups?.header??``:``},yW=(e,t)=>{let{slug:n,entryPath:r,basePath:i,locales:a,commitDate:o,commitAuthor:s}=t;if(e===`slug`)return n;if(e===`locales`)return a.sort((e,t)=>e.localeCompare(t)).join(`, `);if(e===`dirname`){let e=r.replace(/[^/]+$/,``);if(i){let t=i.endsWith(`/`)?i:`${i}/`;e.startsWith(t)?e=e.slice(t.length):e.startsWith(i)&&(e=e.slice(i.length))}return yD(e)}if(e===`filename`)return r.split(`/`).pop().split(`.`).shift();if(e===`extension`)return r.split(`/`).pop().split(`.`).pop();if(e===`commit_date`)return o??``;if(e===`commit_author`)return s?.name||s?.login||s?.email},bW=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a,fallbackSummary:o}=t,{value:s,transformations:c}=SI(e),l=s.replace(/^fields\./,``),u={collectionName:r,valueMap:n,keyPath:l},d=yW(s,i),f=dI(c,e=>bW(e,t));if(d===void 0&&(d=f.some(({method:e})=>e===`date`||e===`ternary`)?n[l]:dW({...u,locale:a}),l===`title`&&!d&&(d=o)),d===void 0)return``;if(d instanceof Date&&!f.length){let{year:e,month:t,day:n}=XF({date:d});return`${e}-${t}-${n}`}return f.length&&(d=CI({fieldConfig:sW({...u}),value:d,transformations:f,locale:a})),String(d)},xW=new WeakMap,CW=0,wW=()=>{let e=k(GL);return e!==SW&&(SW=e,CW+=1),CW},TW=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(XI(e,t))return YI(e)?.label;let{_type:a,name:o,_i18n:{defaultLocale:s}}=e,{_file:{basePath:c}={},identifier_field:l=`title`,summary:u}=a===`entry`?e:{},{locales:d,slug:f,commitDate:p,commitAuthor:m}=t,{content:h={},path:g=``}=d[n??s]??Object.values(d)[0]??{},_=vW(h,{identifierField:l})||f.replaceAll(`-`,` `);if(!r||!u)return _W(_,{allowMarkdown:i});let v={content:h,collectionName:o,replaceSubContext:{slug:f,entryPath:g,basePath:c,locales:Object.keys(d),commitDate:p,commitAuthor:m},defaultLocale:s,fallbackSummary:_};return _W(IW(u,(e,t)=>bW(t,v)),{allowMarkdown:i})},EW=(e,t,n={})=>{let{locale:r,useTemplate:i=!1,allowMarkdown:a=!1}=n,o=xW.get(t);o||(o=new WeakMap,xW.set(t,o));let s=o.get(e);s||(s=new Map,o.set(e,s));let c=[r??``,i?`1`:`0`,a?`1`:`0`,zu.current,wW()].join(`
|
|
2239
2239
|
`),l=s.get(c);if(l!==void 0)return l;let u=TW(e,t,n);return s.set(c,u),u}})))()}var OW,kW,AW,jW;function MW(){return(MW=o((()=>{Dd(),VM(),DW(),OW=(e,t)=>Xle.includes(e)?t[e]:void 0,kW=e=>{switch(e){case`uuid`:return wd();case`uuid_short`:return wd(`short`);case`uuid_shorter`:return wd(`shorter`);default:return}},AW=(e,t)=>{if(e!==`slug`)return;let{type:n,isIndexFile:r,currentSlug:i,content:a,identifierField:o}=t;return n===`preview_path`&&r?``:i??vW(a,{identifierField:o})},jW=(e,t,n)=>{if(!t)return``;switch(e){case`dirname`:{let e=t.replace(n??``,``),r=e.lastIndexOf(`/`);return r>0?e.substring(0,r):``}case`filename`:return t.split(`/`).pop().split(`.`).shift();case`extension`:return t.split(`/`).pop().split(`.`).pop();default:return}}})))()}var NW,PW;function FW(){return(FW=o((()=>{Dd(),sI(),MW(),fI(),wI(),hW(),VB(),NW=(e,t)=>{let{type:n,content:r,entryFilePath:i,locale:a,dateTimeParts:o,basePath:s}=t,c=OW(e,o);if(c!==void 0)return c;let l=AW(e,t);if(l!==void 0)return l;let u=kW(e);if(u!==void 0)return u;if(n===`preview_path`&&e===`locale`)return a;if(n===`preview_path`||n===`media_folder`){let t=jW(e,i,s);return t===void 0?void 0:t}return r[e.replace(/^fields\./,``)]},PW=(e,t)=>{let{replaceSubContext:n,getFieldArgs:r}=t,{value:i,transformations:a}=SI(e),o=NW(i,n),s=dI(a,e=>String(NW(e,n)??``)),c=a.some(e=>e.args.defaultValue!==void 0),l=a.some(e=>[e.args.defaultValue,e.args.truthyValue,e.args.falsyValue].some(e=>typeof e==`string`&&e.includes(`{{`)&&!/^{{[^{}]+}}$/.test(e)));if(o===void 0&&!c)return wd(`short`);if((o===void 0||o===``)&&c&&l)return`${wd(`short`)}-${wd(`short`)}`;let{type:u,locale:d}=n;return s.length&&(o=CI({fieldConfig:sW({...r,keyPath:i}),value:o,transformations:s,locale:d})),o=LB(String(o)),u?o:oI(o,{locale:d,maxLength:1/0})}})))()}var IW,LW,RW,zW;function BW(){return(BW=o((()=>{ZF(),wD(),AM(),VM(),FW(),zq(),RH(),VB(),IW=(e,t)=>{let n=``,r=0;for(;r<e.length;){let i=e.indexOf(`{{`,r);if(i===-1){n+=e.slice(r);break}n+=e.slice(r,i);let a=i+2,o=!1;for(;a<e.length;){let s=e[a],c=e[a+1];if(s===`'`&&!o?o=!0:s===`'`&&o&&(o=!1),!o&&s===`}`&&c===`}`){let o=a,s=e[i-1]===`'`,c=e[o+2]===`'`,l=e[i-2],u=e[o+3],d=e.slice(i+2,o),f=s&&c&&[`(`,`,`,`[`,`|`].includes(l??``)&&[`)`,`,`,`]`].includes(u??``);n+=d?f?e.slice(i,o+2):t(e.slice(i,o+2),d):e.slice(i,o+2),r=o+2;break}a+=1}if(a>=e.length){n+=e.slice(i);break}}return n},LW=e=>RM.test(e),RW=(e,t)=>PH(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),zW=(e,t)=>{let{collection:n,content:r,currentSlug:i,locale:a,dateTimeParts:o,isIndexFile:s=!1}=t,{_type:c,name:l}=n,{identifier_field:u=`title`,slug_length:d=void 0,_file:{basePath:f}={}}=c===`entry`?n:{},p=k(Nq)?.slug,m=d??p?.maxlength,h=p?.timezone===`local`?void 0:`UTC`,g={replaceSubContext:{...t,dateTimeParts:o??XF({timeZone:h}),identifierField:u,basePath:f},getFieldArgs:{collectionName:l,keyPath:``,valueMap:r,isIndexFile:s}},_=IW(e,(e,t)=>PW(t,g)).trim();return i?_:(typeof m==`number`&&(_=vD(_,m,{ellipsis:``}).replace(/-$/,``)),MB(_,RW(l,a)))}})))()}var VW,HW,UW,WW,GW,KW,qW,JW,YW;function XW(){return(XW=o((()=>{FM(),wD(),BW(),VL(),MI(),VW=[],HW=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),UW=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),WW=({collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i=!1,mediaFolder:a,publicFolder:o,baseFolder:s,globalFolders:c,label:l,icon:u,isAssetCollection:d=!1})=>{if(HW(a)){if(!c)return;a=UW(a,c)}if(o===void 0)o=a;else if(HW(o)){if(!c)return;o=UW(o,c)}a=a.replace(/^\.(?:\/|$)/,``);let f=!a.startsWith(`/`);return{collectionName:e,fileName:t,componentName:n,typedKeyPath:r,isIndexFile:i,internalPath:yD(f?s??``:a),internalSubPath:f?yD(a):void 0,publicPath:/^($|[.@])/.test(o)?o:`/${yD(o)}`,entryRelative:f,hasTemplateTags:LW(a),label:l,icon:u,isAssetCollection:d}},GW=e=>{if(e.mediaFolder===void 0)return;let t=WW(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||VW.push(t)},KW=({collectionName:e,files:t,globalFolders:n})=>{EI(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;GW({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:NM(i).dirname,globalFolders:n})})},qW=({fieldMediaFolders:e,validCollections:t,globalFolders:n})=>{e.forEach(({fieldConfig:e,context:r})=>{let{collection:i,collectionFile:a,componentName:o,typedKeyPath:s,isIndexFile:c}=r;!(i&&(i.name===`_singletons`||t.some(e=>e.name===i.name)))&&!o||GW({collectionName:i?.name,fileName:a?.name,componentName:o,typedKeyPath:s,isIndexFile:c,mediaFolder:e.media_folder,publicFolder:e.public_folder,baseFolder:i&&`folder`in i?i.folder:void 0,globalFolders:n})})},JW=({assetCollections:e,globalFolders:t})=>{e.forEach(e=>{let{name:n,label:r=n,icon:i,media_folder:a,public_folder:o}=e;a!==void 0&&GW({collectionName:`assets:${n}`,mediaFolder:`/${yD(a)}`,publicFolder:o,globalFolders:t,label:r,icon:i,isAssetCollection:!0})})},YW=(e,t=[])=>{VW.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a,asset_collections:o}=e,s=n!==void 0,c=s?yD(n).replace(/^\.$/,``):``,l=s?r?`/${yD(r)}`.replace(/^\/@/,`@`):`/${c}`:``,u={collectionName:void 0,internalPath:void 0,internalSubPath:void 0,publicPath:void 0,entryRelative:!1,hasTemplateTags:!1,label:void 0,icon:void 0,isAssetCollection:!1},d=s?{...u,internalPath:c,publicPath:l}:void 0,f=s?{globalMediaFolder:c,globalPublicFolder:l}:void 0,p=ML({collections:i});p.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:o}=e;GW({collectionName:t,mediaFolder:s&&a===void 0&&i!==void 0?``:a,publicFolder:o,baseFolder:r,entryPath:i,globalFolders:f}),n?.length&&KW({collectionName:t,files:n,globalFolders:f})}),a?.length&&KW({collectionName:`_singletons`,files:a,globalFolders:f}),qW({fieldMediaFolders:t,validCollections:p,globalFolders:f}),VW.sort((e,t)=>CD(e.internalPath,t.internalPath));let m=[];return d&&m.push(d),o?.length&&JW({assetCollections:o,globalFolders:f}),m.push(...VW),m.length&&m.unshift(u),m}})))()}var ZW,QW,$W,eG,tG,nG,rG;function iG(){return(iG=o((()=>{wD(),VL(),MI(),lL(),TL(),ZW=({collection:e,file:t})=>{let n=yD(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=wL(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,cL({_i18n:r,locale:e,path:n})]))},QW=(e,t)=>{if(TI(t))return{collectionName:e.name,fileName:t.name,filePathMap:ZW({collection:e,file:t})}},$W=(e,t)=>CD(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),eG=({collections:e})=>ML({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=yD(n),{allLocales:i,defaultLocale:a,omitDefaultLocaleFromFilePath:o,structureMap:{i18nMultiRootFolder:s}}=wL(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,s?o&&e===a?r:`${e}/${r}`:r]))}}).sort((e,t)=>CD(e.folderPath,t.folderPath)),tG=({collections:e})=>ML({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>QW(e,t))).filter(e=>!!e).sort($W),nG=({singletons:e})=>{let t=Array.isArray(e)?EI(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>QW(n,e)).filter(e=>!!e).sort($W)},rG=e=>[...eG(e),...tG(e),...nG(e)]})))()}var aG,oG;function sG(){return(sG=o((()=>{bV(),aG=`${yV}/schema/sveltia-cms.json`,oG=[`text/yaml`,`application/yaml`,`application/toml`,`application/json`]})))()}var cG,lG;function uG(){return(uG=o((()=>{cG=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,lG=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){
|
|
2240
2240
|
/*!
|
|
2241
2241
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
@@ -2471,7 +2471,7 @@ function kG(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`
|
|
|
2471
2471
|
`}}return e&&(a||!o)&&(a=a?`[${e}]\n${a}`:`[${e}]`),a&&o?`${a}\n${o}`:a||o}function Tpe(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(kG(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=MG(0,e,``,t,n);return r[r.length-1]===`
|
|
2472
2472
|
`?r:r+`
|
|
2473
2473
|
`}var NG;function PG(){return(PG=o((()=>{NG=/^[a-z0-9-_]+$/i})))()}var FG,IG,LG,RG,zG,BG,VG;function HG(){return(HG=o((()=>{_(),wD(),OG(),qF(),UI(),VL(),MI(),tL(),pL(),aI(),FG=e=>JSON.parse(e),IG=e=>g(ype(e)),LG=(e,t)=>rfe(e,t),RG=e=>e.startsWith(`+++`)?`toml-frontmatter`:e.startsWith(`{`)?`json-frontmatter`:`yaml-frontmatter`,zG=new Map,BG=({collection:e,collectionFile:t,format:n,text:r})=>{let{format:i,fmDelimiters:a,bodyField:{key:o=`body`,inline:s=!1}={}}=(t??e)._file,[c,l]=(i===`frontmatter`?dL({format:n,delimiter:a}):a)??[`---`,`---`],u=_D(c),d=_D(l),f=`${u}|${d}`,p=rI(zG,f,()=>RegExp(`^${u}\n(?:(?<head>[\\s\\S]*?))\n${d}(?:\n(?<body>[\\s\\S]*))?$`,`s`)),{head:m,body:h}=r.match(p)?.groups??{};if(!m&&!h)return{[o]:r};let g={};return n===`yaml-frontmatter`&&(g=LG(m)),n===`toml-frontmatter`&&(g=IG(m)),n===`json-frontmatter`&&(g=FG(`{${m}}`)),(!g||typeof g!=`object`||Array.isArray(g))&&(g={}),{...g,...!s&&!(o in g)?{[o]:h}:{}}},VG=async({text:e=``,path:t,folder:{collectionName:n,fileName:r}})=>{let i=RL(n),a=i&&r?DI(i,r):void 0;if(!i)throw Error(`Collection not found`);if(r&&!a)throw Error(`Collection file not found`);e=e.trim().replace(/\r\n?/g,`
|
|
2474
|
-
`);let{_file:{format:o}}=a??i,s=zI.get(o)?.parser;if(s)return s(e);if(o===`raw`)return{body:e};try{if(o===`yaml`||o===`yml`)return LG(e);if(o===`toml`)return IG(e);if(o===`json`)return FG(e);if(o===`frontmatter`&&(o=RG(e)),eL.includes(o))return BG({collection:i,collectionFile:a,format:o,text:e})}catch(e){throw Error(`${t} could not be parsed due to ${e.name}: ${e.message}`)}throw Error(`${t} could not be parsed due to an unknown format: ${o}`)}})))()}var UG,WG;function GG(){return(GG=o((()=>{J(),UG=Dr({isLocalHost:!1,isLocalBackendSupported:!1,isBrave:!1,isMacOS:!1,isSmallScreen:!1,isMediumScreen:!1,isLargeScreen:!1,hasMouse:!0}),WG=()=>{let{location:{hostname:e},navigator:{userAgentData:t,platform:n},matchMedia:r}=globalThis;UG.isLocalHost=e===`127.0.0.1`||/^(.+\.)?localhost$/.test(e),UG.isLocalBackendSupported=`showDirectoryPicker`in globalThis,UG.isBrave=t?.brands.some(({brand:e})=>e===`Brave`)??!1,UG.isMacOS=t?.platform===`macOS`||n.startsWith(`Mac`);let i=r(`(width < 768px)`),a=r(`(768px <= width < 1024px)`),o=r(`(1024px <= width)`),s=r(`(pointer: fine)`),c=()=>{UG.isSmallScreen=i.matches},l=()=>{UG.isMediumScreen=a.matches},u=()=>{UG.isLargeScreen=o.matches},d=()=>{UG.hasMouse=s.matches};c(),l(),u(),d(),i.addEventListener(`change`,c),a.addEventListener(`change`,l),o.addEventListener(`change`,u),s.addEventListener(`change`,d)}})))()}var KG,qG;function JG(){return(JG=o((()=>{gd(),_(),KG=(e,t=globalThis.window?.location?.origin??globalThis.location?.origin??`https://localhost`)=>{try{let{hostname:n,protocol:r}=new URL(e,t);return r===`https:`||[`localhost`,`127.0.0.1`,`[::1]`].includes(n)}catch{return!1}},qG=async(e,t={},{responseType:n=`json`,refreshAccessToken:r=void 0,retries:i=1}={})=>{let a;if(t.cache=`no-cache`,t.headers=new Headers(t.headers),t.headers.has(`Authorization`)&&!KG(e))throw Error(`Refusing to send credentials over an insecure connection`);n===`json`&&t.headers.set(`Accept`,`application/json`),t.method===`POST`&&h(t.body)&&(t.headers.set(`Content-Type`,`application/json`),t.body=JSON.stringify(t.body));try{a=await fetch(e,t)}catch(e){throw Error(`Failed to send the request`,{cause:e})}if(n===`raw`)return a;let{ok:o,status:s}=a,c;try{if(o&&n===`blob`)return a.blob();if(o&&n===`text`)return a.text();c=await a.json()}catch(e){throw Error(`Failed to parse the response`,{cause:e})}if(o&&!(e.endsWith(`/graphql`)&&h(c)&&c.errors))return c;if(s===502&&i>0)return await hd(1e3),qG(e,t,{responseType:n,refreshAccessToken:r,retries:i-1});if(s===401&&r){let[i]=t.headers.get(`Authorization`)?.split(` `)??[`token`],{token:a}=await r();return t.headers.set(`Authorization`,`${i} ${a}`),qG(e,t,{responseType:n})}if(!h(c))throw Error(`Server responded with an error`,{cause:{status:s}});let l=``;throw typeof c.error==`string`&&(l=c.error),typeof c.message==`string`&&(l=c.message),Array.isArray(c.errors)&&(typeof c.errors[0]==`string`&&(l=c.errors.join(`, `)),h(c.errors[0])&&typeof c.errors[0].message==`string`&&(l=c.errors.map(e=>e.message).join(`, `))),Error(`Server responded with an error`,{cause:{status:s,message:l}})}})))()}var YG,XG,ZG,QG,$G,eK,tK;function nK(){return(nK=o((()=>{Z(),_(),YG=l($le(),1),sG(),HG(),GG(),JG(),FU(),XG=`https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration`,ZG=`https://sveltiacms.app/en/docs/config-basics#validation-and-autocomplete`,QG=async({href:e,type:t=`application/yaml`},{manualInit:n=!1,showSchemaTip:r}={})=>{let i;if(!oG.includes(t))throw Error(X(`config.error.parse_failed`),{cause:Error(X(`config.error.parse_failed_unsupported_type`))});let a=PU(X(n?`config.error.fetch_failed_with_manual_init`:`config.error.fetch_failed`),XG);try{let t=new URL(e,window.location.href);t.searchParams.set(`_`,Date.now().toString()),i=await fetch(t)}catch(e){throw Error(a,{cause:e})}let{ok:o,status:s}=i;if(!o)throw Error(a,{cause:Error(X(`config.error.fetch_failed_not_ok`,{values:{status:s}}))});let c=!1,l;try{if(t===`application/json`)l=await i.json(),h(l)&&l.$schema!==aG&&(c=!0);else{let e=await i.text();t===`application/toml`?(l=IG(e),e.includes(`#:schema ${aG}`)||(c=!0)):(l=LG(e,{merge:!0,maxAliasCount:-1}),e.includes(`# yaml-language-server: $schema=${aG}`)||(c=!0))}}catch(e){throw Error(X(`config.error.parse_failed`),{cause:e})}if(!h(l))throw Error(X(`config.error.parse_failed`),{cause:Error(X(`config.error.parse_failed_invalid_object`))});return r&&c&&console.info(X(`config.schema_tip`,{values:{link:ZG}})),l},$G=e=>{if(e.endsWith(`/`))return`${e}config.yml`;let t=e.split(`/`);return t.pop()?.includes(`.`)?`${t.join(`/`)}/config.yml`:`${e}/config.yml`},eK=e=>{let{origin:t}=window.location;return e.every(({href:e})=>KG(e,t))},tK=async({manualInit:e=!1}={})=>{let t=[...document.querySelectorAll(`link[rel="cms-config-url"]`)].map(({href:e,type:t})=>({href:e,type:t}));if(t.length||t.push({href:$G(window.location.pathname)}),!eK(t))throw Error(X(`config.error.insecure_urls`,{values:{count:t.length}}));let n=UG.isLocalHost&&!e&&t.length===1,r=await Promise.all(t.map(t=>QG(t,{manualInit:e,showSchemaTip:n})));return r.length===1?r[0]:YG.default.all(r)}})))()}var rK,iK,aK,oK,sK,cK,lK;function uK(){return(uK=o((()=>{Z(),lL(),FU(),rK=`https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions`,iK=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,aK=({type:e=`error`,strKey:t,values:n={},extraStrKey:r,context:i={},collectors:a})=>{let{collection:o,collectionFile:s,componentName:c,typedKeyPath:l}=i,{errors:u,warnings:d}=a,f=[];o&&f.push(X(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&f.push(X(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&f.push(X(`config.error_locator.component`,{values:{component:c}})),l&&f.push(X(`config.error_locator.field`,{values:{field:l}}));let p=e===`error`?u:d,m=zu.current,h=f.length?`${sL(m).format(f)}: `:``,g=X(`config.${e}.${t}`,{values:n});t===`invalid_field_name`&&(g=PU(g,rK));let _=r?X(`config.${r}`,{values:{link:r===`compatibility_link`?iK:void 0}}):``;p.add(`${h}${g}${_?` ${_}`:``}`)},oK=({UNSUPPORTED_OPTIONS:e,config:t,context:n,collectors:r})=>{e.forEach(({type:e=`error`,prop:i,newProp:a,value:o,strKey:s=`unsupported_deprecated_option`})=>{i in t&&(o===void 0||t[i]===o)&&aK({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},sK=/^[^\s.*:<>]+$/,cK=e=>sK.test(e),lK=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return aK({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return cK(e)?n[e]===1?(aK({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(aK({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})))()}var dK,fK,pK,mK,hK;function gK(){return(gK=o((()=>{Z(),_(),jQ(),KI(),uK(),FU(),dK=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],fK=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,pK=`https://sveltiacms.app/en/docs/backends#supported-backends`,mK=`https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication`,hK=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!h(n)){r.add(X(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(X(`config.error.missing_backend_name`));return}if(!kpe.includes(a)){let e=Ope[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=PU(X(`config.error.unsupported_${t}_backend`,{values:{name:n}}),fK),o=PU(X(`config.error.unsupported_backend_suggestion`),pK);r.add(`${i} ${o}`);return}if(a in Ape){let{repo:o,automatic_deployments:s,auth_methods:c,auth_type:l,app_id:u}=n;Array.isArray(c)&&!c.length&&r.add(X(`config.error.no_auth_methods`));let d=!c||c.includes(`token`),f=mK.replace(`BACKEND_NAME`,a);o===void 0&&r.add(X(`config.error.missing_repository`)),(typeof o!=`string`||!/^[^/:]+(?:\/[^/:]+)+$/.test(o))&&r.add(X(`config.error.invalid_repository`)),l===`implicit`&&r.add(PU(X(`config.error.oauth_implicit_flow`),f)),a===`github`&&l===`pkce`&&r.add(PU(X(`config.error.github_pkce_unsupported`),f)),a===`gitlab`&&l===`pkce`&&!u&&r.add(X(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(d?i.add(X(`config.warning.oauth_no_app_id`)):r.add(X(`config.error.oauth_no_app_id`))),s!==void 0&&GI(`automatic_deployments`),oK({UNSUPPORTED_OPTIONS:dK,config:n,context:{cmsConfig:e},collectors:t})}}})))()}var _K,vK,yK;function bK(){return(bK=o((()=>{tL(),_K=[`code`,`markdown`,`richtext`,`text`],vK=[`yaml`,`toml`,`json`],yK=(e,t,n=[])=>{if(!e||!t||t===`raw`)return!1;let r=t.endsWith(`-frontmatter`)||t===`frontmatter`;if(r&&n.length===1){let[{name:e,widget:t=`string`}]=n;if(e===`body`&&_K.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(QI.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return!$I.includes(i)&&i!==e}return a===`frontmatter`?!Qfe.includes(i):vK.includes(a)?vK.includes(i)&&i!==a:!1}})))()}var xK,SK,CK,wK;function TK(){return(TK=o((()=>{uK(),bI(),xK=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],SK=e=>{try{return Intl.DateTimeFormat(`en-US`,{timeZone:e}),!0}catch{return!1}},CK=e=>{let{config:t,context:n,collectors:r}=e,{picker_utc:i,input_timezone:a,output_utc:o}=t;i!==void 0&&(a!==void 0||o!==void 0)&&aK({type:`warning`,strKey:`conflicting_timezone_options`,context:n,collectors:r}),vI(a)&&!SK(a)&&aK({strKey:`invalid_timezone`,values:{timeZone:a},context:n,collectors:r})},wK=e=>{oK({...e,UNSUPPORTED_OPTIONS:xK}),CK(e)}})))()}var EK,DK;function OK(){return(OK=o((()=>{uK(),EK=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],DK=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),oK({...e,UNSUPPORTED_OPTIONS:EK})}})))()}var kK,AK;function jK(){return(jK=o((()=>{QK(),uK(),kK=(e,t,n)=>e===`object`||(aK({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),AK=e=>{let{config:t,context:n,collectors:r}=e,{field:i}=t,{fields:a}=t,{types:o}=t,{typedKeyPath:s}=n,c={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a||i&&o||a&&o){aK({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&XK({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&ZK(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};lK({...c,name:e,index:a,context:o})&&kK(t,o,r)&&i&&ZK(i,o,r)})}})))()}var MK,NK;function PK(){return(PK=o((()=>{uK(),MK=[{prop:`valueType`,newProp:`value_type`}],NK=e=>{oK({...e,UNSUPPORTED_OPTIONS:MK})}})))()}var FK;function IK(){return(IK=o((()=>{QK(),uK(),FK=e=>{let{config:t,context:n,collectors:r}=e,{fields:i}=t,{types:a}=t,{typedKeyPath:o}=n,s={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a){aK({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){aK({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&ZK(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};lK({...s,name:e,index:i,context:a})&&t&&ZK(t,a,r)})}})))()}var LK,RK,zK;function BK(){return(BK=o((()=>{$U(),LK=/<[^>]+>$/,RK=e=>{let{field:t}=e,{fields:n}=e,{types:r,typeKey:i=`type`}=e;return t?[t]:n||(r?[...r.flatMap(({fields:e=[]})=>e),{name:i}]:[])},zK=(e,t)=>{let n=e,r;return t.split(`.`).every(e=>{let t=e.replace(LK,``);return!t||t===`*`||ZU(t)?!0:(r&&(n=RK(r)),r=n.find(({name:e})=>e===t),!!r)})&&!!r}})))()}var VK,HK,UK,WK;function GK(){return(GK=o((()=>{VM(),BK(),uK(),VK=[`slug`,`locale`],HK=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],UK=({valueField:e,fields:t,context:n,collectors:r})=>{let i=[...e.matchAll(zM)].map(([,e])=>e);(i.length?i.filter(e=>!VK.includes(e)):[e]).forEach(e=>{zK(t,e.replace(/^fields\./,``))||aK({strKey:`relation_field_invalid_value_field`,context:n,collectors:r,values:{field:e}})})},WK=e=>{let{config:t,context:n,collectors:r}=e,i=t,{collection:a,file:o,value_field:s}=i,{cmsConfig:c}=n,l=a===`_singletons`?{files:c?.singletons}:c?.collections?.find(e=>e.name===a),u;if(l){let e=`files`in l&&Array.isArray(l.files);o?(e&&(u=l.files.find(e=>`file`in e&&e.name===o)),u||aK({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&aK({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else aK({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});let d=o?u?.fields:l?.fields;typeof s==`string`&&s&&d?.length&&UK({valueField:s,fields:d,context:n,collectors:r}),oK({...e,UNSUPPORTED_OPTIONS:HK}),r.relationFields.add({fieldConfig:i,context:n})}})))()}var KK,qK;function JK(){return(JK=o((()=>{uK(),KK=[{prop:`editorComponents`,newProp:`editor_components`}],qK=e=>{oK({...e,UNSUPPORTED_OPTIONS:KK})}})))()}var YK,XK,ZK;function QK(){return(QK=o((()=>{TK(),OK(),jK(),PK(),IK(),GK(),JK(),uK(),YK={datetime:wK,file:DK,image:DK,list:AK,markdown:qK,number:NK,object:FK,relation:WK,richtext:qK},XK=e=>{let{config:t,context:n}=e,{name:r,widget:i=`string`}=t,{typedKeyPath:a}=n,o={...e,context:{...n,typedKeyPath:a?`${a}.${r}`:r}};YK[i]?.(o),i===`date`&&aK({...o,strKey:`date_field_type`})},ZK=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;lK({...r,name:a,index:i})&&XK({config:e,context:t,collectors:n})})}})))()}var $K,eq;function tq(){return(tq=o((()=>{FM(),bK(),QK(),uK(),$K=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o,i18n:s}=r,{extension:c}=NM(i);yK(c,a,o)&&aK({strKey:`file_format_mismatch`,context:e,values:{extension:c,format:a},collectors:t}),o?.length||aK({strKey:`collection_file_no_fields`,context:e,collectors:t}),i.includes(`{{locale}}`)&&!s&&aK({strKey:`collection_file_i18n_required`,context:e,collectors:t}),ZK(o,e,t)},eq=(e,t)=>{let{cmsConfig:n,collection:r}=e,{files:i}=r,a={nameCounts:{},strKeyBase:`collection_file_name`,collectors:t};i.forEach((e,i)=>{if(`divider`in e)return;let{name:o}=e,s={cmsConfig:n,collection:r,collectionFile:e};lK({...a,name:o,index:i,context:s})&&$K(s,t)})}})))()}var nq,rq,iq;function aq(){return(aq=o((()=>{_(),nq=(e,t)=>{if(Array.isArray(e))return{options:e};if(h(e)){let n=e[t],r=e.default;if(Array.isArray(n)){let e=r?n.find(({name:e})=>e===r):void 0;return{options:n,default:e?{field:e.field,pattern:e.pattern}:void 0}}}return{options:[]}},rq=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),iq=e=>{if(rq(e))return{keys:e};if(h(e)){let{fields:t,default:n}=e;return rq(t)?h(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}}})))()}var oq,sq,cq,lq;function uq(){return(uq=o((()=>{_(),BK(),uK(),aq(),oq=[`slug`,`commit_author`,`commit_date`],sq=[`_summary`,`_manual`],cq=({config:e,options:t,fields:n,optionType:r,context:i,collectors:a})=>{let o=h(e),s={};t.forEach((e,t)=>{let{name:c,field:l}=h(e)?e:{};(o||c!==void 0)&&lK({name:c,index:t,nameCounts:s,strKeyBase:`${r}_name`,context:i,collectors:a}),!(typeof l!=`string`||!l||oq.includes(l))&&(zK(n,l)||aK({strKey:`invalid_${r}_field`,values:{name:l},context:i,collectors:a}))})},lq=(e,t)=>{let{fields:n,sortable_fields:r,view_groups:i,view_filters:a}=e.collection;if(n?.length){if(r){let{keys:i,defaultKey:a}=iq(r),o=[...oq,...sq];[...i,a].forEach(r=>{r&&!o.includes(r)&&!zK(n,r)&&aK({strKey:`invalid_sortable_field`,values:{name:r},context:e,collectors:t})})}cq({config:i,options:nq(i,`groups`).options,fields:n,optionType:`view_group`,context:e,collectors:t}),cq({config:a,options:nq(a,`filters`).options,fields:n,optionType:`view_filter`,context:e,collectors:t})}}})))()}var dq,fq,pq,mq;function hq(){return(hq=o((()=>{Z(),_(),KI(),tq(),bK(),uq(),QK(),uK(),aq(),dq=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],fq=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,reorder:c,slug:l,slug_length:u,view_groups:d}=r;yK(i,a)&&aK({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),u!==void 0&&GI(`slug_length`),oK({UNSUPPORTED_OPTIONS:dq,config:r,context:e,collectors:t}),o?.length||aK({strKey:`collection_no_fields`,context:e,collectors:t}),ZK(o,e,t),s&&ZK(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t);let f=h(c)?c.group:void 0;if(typeof f==`string`&&f){let{options:n}=nq(d,`groups`);n.some(({name:e})=>e===f)||aK({strKey:`invalid_reorder_group`,values:{name:f},context:e,collectors:t})}lq(e,t),l?.includes(`/`)&&aK({strKey:`invalid_slug_slash`,values:{slug:l},context:e,collectors:t})},pq=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){aK({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){aK({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?eq({cmsConfig:e,collection:t},n):a&&fq({cmsConfig:e,collection:t},n)},mq=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(X(`config.error.no_collection`));return}let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};if(n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};lK({...a,name:i,index:r,context:o})&&pq(o,t)}),Array.isArray(r)){let n={name:`_singletons`,label:X(`singletons`),label_singular:X(`singleton`),files:r};eq({cmsConfig:e,collection:n},t)}}})))()}var gq;function _q(){return(_q=o((()=>{Z(),uK(),tV(),gq=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a,asset_collections:o}=e,{errors:s}=t;if(n===void 0?!eV.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>eV.includes(e))&&s.add(X(`config.error.missing_media_folder`)):typeof n!=`string`&&s.add(X(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&s.add(X(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&s.add(X(`config.error.public_folder_absolute_url`))):s.add(X(`config.error.invalid_public_folder`))),o!==void 0){if(!Array.isArray(o))s.add(X(`config.error.invalid_asset_collections`));else{let n={nameCounts:{},strKeyBase:`asset_collection_name`,collectors:t};o.forEach((t,r)=>{let{name:i,media_folder:a}=t,o={cmsConfig:e};lK({...n,name:i,index:r,context:o})&&typeof a!=`string`&&s.add(X(`config.error.asset_collection_invalid_media_folder`,{values:{name:i}}))})}}}})))()}var vq,yq;function bq(){return(bq=o((()=>{UI(),gK(),hq(),QK(),_q(),uK(),vq=[{type:`warning`,prop:`publish_mode`,value:`editorial_workflow`,strKey:`editorial_workflow_unsupported`},{type:`warning`,prop:`local_backend`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`locale`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`search`,strKey:`unsupported_ignored_option`}],yq=(e,t)=>{hK(e,t),gq(e,t),mq(e,t),oK({UNSUPPORTED_OPTIONS:vq,config:e,context:{cmsConfig:e},collectors:t}),LI.forEach(({fields:n},r)=>{ZK(n,{cmsConfig:e,componentName:r},t)})}})))()}var xq=s(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),Sq,Cq,wq,Tq,Eq;function Dq(){return(Dq=o((()=>{J(),Z(),VD(),Sq=l(xq(),1),tc(),Cq=`sveltia-cms.prefs`,wq=Dr({current:void 0}),Tq=Dr({}),Eq=!1,Qr(()=>{(async()=>{wq.current=void 0;try{let e=await BD.get(Cq)??{};e.apiKeys??={},e.useDraftBackup??=!0,e.closeOnSave??=!0,e.closeWithEscape??=!0,e.underlineLinks??=!0,e.beta??=!1,e.devModeEnabled??=!1,e.defaultTranslationService??=`google`,e.locale===`en`&&(e.locale=navigator.languages.find(e=>yu.includes(e))??`en-US`),Object.assign(Tq,e)}catch{wq.current={type:`permission_denied`}}})(),L(()=>{if(!Object.keys(Tq).length)return;let e=Dt(Tq);(async()=>{try{(0,Sq.default)(e,await BD.get(Cq))||await BD.set(Cq,e)}catch{}})();let{theme:t,underlineLinks:n=!0,beta:r=!1,devModeEnabled:i=!1}=Tq,a=!t||t===`auto`,o=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;Object.assign(document.documentElement.dataset,{theme:a?o:t,autoTheming:a,underlineLinks:n,beta:r,devMode:i})}),L(()=>{let{locale:e}=Tq;if(!e||!yu.includes(e))return;let t=Li(()=>zu.current),n=Eq;Eq=!0,Lu(e).then(()=>{e in bu?zu.set(e):n&&t&&(Tq.locale=t)})})})})))()}var Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq;function zq(){return(zq=o((()=>{Z(),Dd(),_(),wD(),Oq=l($le(),1),AM(),qF(),XM(),XW(),iG(),nK(),bq(),XL(),Dq(),{DEV:kq,VITE_SITE_URL:Aq}={DEV:!1},jq=kq?Aq||`http://localhost:5174`:void 0,Mq={},Nq=sn(),Pq=sn(),Fq=sn([]),Iq=cn([Nq,Fq],([e,t])=>!!e||!!t.length),Lq={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},Rq=async e=>{Nq.set(void 0),Fq.set([]),Object.assign(Lq,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(X(`config.error.no_secure_context`));let t;if(e){if(!h(e))throw Error(X(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,Oq.default)(await tK({manualInit:!0}),t))}else t=await tK();if(Object.assign(Mq,t),yq(t,Lq),Lq.errors.size)throw Lq.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);Lq.warnings.size&&Lq.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(kq?jq:window.location.origin),n._baseURL=SD(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),Nq.set(n),Pq.set(await Ed(KF(n)))}catch(e){Fq.set(Lq.errors.size?[...Lq.errors]:[e.name===`Error`?e.message:X(`config.error.unexpected`)]),console.error(e,e.cause)}},Nq.subscribe(e=>{if(Tq.devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,Lq)),!e)return;let t=rG(e),n=YW(e,[...Lq.mediaFields]);WL.set(t),HM.set(n),Tq.devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})))()}var Bq;function Vq(){return(Vq=o((()=>{AM(),zq(),Bq=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=k(Nq),r=e==="default"?{...n?.media_libraries?.all,...t?.media_libraries?.all}:void 0,i=e=>({...e,...r&&Object.keys(r).length>0&&{config:{...r,...e?.config}}});if(t?.media_libraries&&e in t.media_libraries){let n=t.media_libraries[e];return n!==!1&&i(n)}if(t?.media_library){let r=n?.media_library?.name??`default`,a=t.media_library,o=a.name;if(r===e&&(o===e||o===void 0))return i(a)}if(n?.media_libraries&&e in n.media_libraries){let t=n.media_libraries[e];return t!==!1&&i(t)}return n?.media_library?.name===e?i(n.media_library):i(null)}})))()}var Hq,Uq;function Wq(){return(Wq=o((()=>{_(),Vq(),MV(),KV(),Hq=({fieldConfig:e}={})=>{let t=Bq({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`&&r,slugify_filename:typeof i==`boolean`&&i,transformations:h(a)?a:void 0}}},Uq=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(wV.includes(r)&&(r in t?n=t[r]:`raster_image`in t&&(n=t.raster_image)),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&jV.includes(t)?t:`webp`,s;try{s=await WV(e,{format:o,quality:r&&Number.isSafeInteger(r)?r:85,width:i&&Number.isSafeInteger(i)?i:void 0,height:a&&Number.isSafeInteger(a)?a:void 0})}catch{return e}let c=s.type===`image/${o}`?EV.test(e.name)?e.name.replace(EV,o):e.name.concat(o):e.name;return new File([s],c,{type:s.type})}}return n===`image`&&r===`svg+xml`&&t.svg?.optimize?new File([await GV(e)],e.name,{type:e.type}):e}})))()}var Gq;function Kq(){return(Kq=o((()=>{MV(),Gq=async e=>{if(!TV.includes(e.type))return!0;try{return(await createImageBitmap(e)).close(),!0}catch{return!1}}})))()}var qq;function Jq(){return(Jq=o((()=>{Wq(),VB(),Kq(),qq=async(e,{slugify_filename:t=!1,transformations:n,max_file_size:r=1/0}={})=>{if(t){let{name:t,type:n,lastModified:r}=e,i=NB(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}if(!await Gq(e))return{file:e,originalFile:void 0,oversized:!1,invalid:!0};let i=e;return n&&(e=await Uq(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r,invalid:!1}}})))()}var Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ;function _J(){return(_J=o((()=>{FM(),wD(),AM(),XM(),Jq(),BW(),VM(),VL(),ZI(),MI(),TH(),Wq(),VB(),Yq=/^(?<entryFolder>.+?)(?:\/[^/]+)?$/,Xq=sn([]),Zq={source:void 0,map:new Map},Qq=()=>{let e=k(Xq);return e!==Zq.source&&(Zq.source=e,Zq.map=new Map(e.map(e=>[e.path,e]))),Zq.map},$q=e=>Qq().get(e),eJ=sn([]),tJ=cn(eJ,e=>new Set(e.map(e=>e.path))),nJ=sn(),rJ=sn(),iJ=sn({folder:void 0,files:[]}),aJ=sn(),oJ=sn(),sJ=cn([iJ],([e],t,n)=>{t({processing:!1,validFiles:[],oversizedFiles:[],invalidFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=Hq();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>qq(e,i)));n(()=>({processing:!1,validFiles:e.filter(({oversized:e,invalid:t})=>!e&&!t).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e,invalid:t})=>e&&!t).map(({file:e})=>e),invalidFiles:e.filter(({invalid:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),cJ=({path:e,entry:t,collection:n,file:r,componentName:i,typedKeyPath:a})=>{let{locales:o}=t,{_i18n:{defaultLocale:s}}=r??n,c=a?KM({collectionName:n.name,fileName:r?.name,componentName:i,typedKeyPath:a}):void 0,l=c?.entryRelative?c.internalSubPath??``:(r??n).media_folder,u=c?.publicPath?c.publicPath:(r??n).public_folder,{path:d,content:f}=o[s in o?s:Object.keys(o)[0]];if(!d||!f)return;l&&LW(l)&&(l=zW(l,{type:`media_folder`,collection:n,content:f,currentSlug:t.slug,entryFilePath:d,isIndexFile:XI(n,t)}));let{entryFolder:p}=d.match(Yq).groups,m=e.replace(/^\.\//,``),h=l&&m.startsWith(`${l}/`)?m.slice(l.length+1):m,g;if(l?.startsWith(`/`)&&u){let e=u.replace(/^\.\//,``);m.startsWith(`${e}/`)&&(h=m.slice(e.length+1)),g=RB(IB([l.slice(1),h]))}else g=RB(IB([p,l,h]));return Qq().get(g)},lJ=({path:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:a})=>{if(!t){let t=[i?KM({componentName:i,typedKeyPath:a}):void 0,n&&a?KM({collectionName:n,fileName:r,typedKeyPath:a}):void 0,n?KM({collectionName:n,fileName:r}):void 0,n?KM({collectionName:n}):void 0,k(UM)].filter(e=>!!e&&!e.hasTemplateTags),o;return t.find(t=>{let n=t.publicPath?.replace(/^\//,``)??``,r=n&&e.startsWith(`${n}/`)?e.slice(n.length+1):e,i=Qq().get(IB([t.internalPath,t.internalSubPath??``,r]));return i&&(o=i),!!i}),o??Qq().get(e)}return xH(t).flatMap(n=>{let r=kI(n,t),o={path:e,entry:t,collection:n,componentName:i,typedKeyPath:a};return r.length?r.map(e=>cJ({...o,file:e})):cJ({...o})}).filter(Boolean)[0]??Qq().get(e)},uJ=({path:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:a})=>{let o=Qq().get(yD(e));if(o)return o;let{dirname:s=``,basename:c}=NM(e),l;return[i?KM({componentName:i,typedKeyPath:a}):void 0,a?KM({collectionName:n,fileName:r,typedKeyPath:a}):void 0,KM({collectionName:n,fileName:r}),KM({collectionName:n}),k(UM),k(HM).findLast(e=>{let t=e.publicPath??``,n=_D(t).replace(BM,`.+?`);return s.match(`^${n}${t?`(?=\\/|$)`:`$`}`)})].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&RM.test(i)){let e=r?RL(r):t?xH(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=zW(i,{type:`media_folder`,collection:e,content:IM(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:XI(e,t)})}n&&i&&s&&(n===`/`?i=`${i}${s}`:s.startsWith(`${n}/`)&&(i=s.replace(n,i)));let a=IB([i,c]),o=Qq().get(a);return o&&(l=o),!!o}),l},dJ=e=>!/^[/@]/.test(e),fJ=({value:e,...t})=>{let n=kB(e.split(`#`)[0]);return dJ(n)?lJ({path:n,...t}):uJ({path:n,...t})},pJ=({folder:e},t)=>e===t||e.collectionName===t.collectionName&&e.fileName===t.fileName&&e.typedKeyPath===t.typedKeyPath&&e.isIndexFile===t.isIndexFile&&e.internalPath===t.internalPath&&e.internalSubPath===t.internalSubPath&&e.publicPath===t.publicPath&&e.entryRelative===t.entryRelative&&e.hasTemplateTags===t.hasTemplateTags,mJ=e=>k(Xq).filter(t=>pJ(t,e)),hJ=e=>k(Xq).filter(t=>NM(t.path).dirname===e),WM.subscribe(()=>{nJ.set(void 0)}),gJ=(e,t)=>{if(!t.length||!e.length)return[];let n=new Set(t.map(({name:e})=>e.normalize().toLowerCase()));return e.filter(e=>n.has(e.name.normalize().toLowerCase()))}})))()}var vJ,yJ;function bJ(){return(bJ=o((()=>{AM(),vJ=/^(?:.+\/)?(\.git(?:attributes|ignore|keep))$/,yJ=sn([]),cn(yJ,e=>e.find(({path:e})=>e===`.gitattributes`)?.text?.replace(/\r\n?/g,`
|
|
2474
|
+
`);let{_file:{format:o}}=a??i,s=zI.get(o)?.parser;if(s)return s(e);if(o===`raw`)return{body:e};try{if(o===`yaml`||o===`yml`)return LG(e);if(o===`toml`)return IG(e);if(o===`json`)return FG(e);if(o===`frontmatter`&&(o=RG(e)),eL.includes(o))return BG({collection:i,collectionFile:a,format:o,text:e})}catch(e){throw Error(`${t} could not be parsed due to ${e.name}: ${e.message}`)}throw Error(`${t} could not be parsed due to an unknown format: ${o}`)}})))()}var UG,WG;function GG(){return(GG=o((()=>{J(),UG=Dr({isLocalHost:!1,isLocalBackendSupported:!1,isBrave:!1,isMacOS:!1,isSmallScreen:!1,isMediumScreen:!1,isLargeScreen:!1,hasMouse:!0}),WG=()=>{let{location:{hostname:e},navigator:{userAgentData:t,platform:n},matchMedia:r}=globalThis;UG.isLocalHost=e===`127.0.0.1`||/^(.+\.)?localhost$/.test(e),UG.isLocalBackendSupported=`showDirectoryPicker`in globalThis,UG.isBrave=t?.brands.some(({brand:e})=>e===`Brave`)??!1,UG.isMacOS=t?.platform===`macOS`||n.startsWith(`Mac`);let i=r(`(width < 768px)`),a=r(`(768px <= width < 1024px)`),o=r(`(1024px <= width)`),s=r(`(pointer: fine)`),c=()=>{UG.isSmallScreen=i.matches},l=()=>{UG.isMediumScreen=a.matches},u=()=>{UG.isLargeScreen=o.matches},d=()=>{UG.hasMouse=s.matches};c(),l(),u(),d(),i.addEventListener(`change`,c),a.addEventListener(`change`,l),o.addEventListener(`change`,u),s.addEventListener(`change`,d)}})))()}var KG,qG;function JG(){return(JG=o((()=>{gd(),_(),KG=(e,t=globalThis.window?.location?.origin??globalThis.location?.origin??`https://localhost`)=>{try{let{hostname:n,protocol:r}=new URL(e,t);return r===`https:`||[`localhost`,`127.0.0.1`,`[::1]`].includes(n)}catch{return!1}},qG=async(e,t={},{responseType:n=`json`,refreshAccessToken:r=void 0,retries:i=1}={})=>{let a;if(t.cache=`no-cache`,t.headers=new Headers(t.headers),t.headers.has(`Authorization`)&&!KG(e))throw Error(`Refusing to send credentials over an insecure connection`);n===`json`&&t.headers.set(`Accept`,`application/json`),t.method===`POST`&&h(t.body)&&(t.headers.set(`Content-Type`,`application/json`),t.body=JSON.stringify(t.body));try{a=await fetch(e,t)}catch(e){throw Error(`Failed to send the request`,{cause:e})}if(n===`raw`)return a;let{ok:o,status:s}=a,c;try{if(o&&n===`blob`)return a.blob();if(o&&n===`text`)return a.text();c=await a.json()}catch(e){throw Error(`Failed to parse the response`,{cause:e})}if(o&&!(e.endsWith(`/graphql`)&&h(c)&&c.errors))return c;if(s===502&&i>0)return await hd(1e3),qG(e,t,{responseType:n,refreshAccessToken:r,retries:i-1});if(s===401&&r){let[i]=t.headers.get(`Authorization`)?.split(` `)??[`token`],{token:a}=await r();return t.headers.set(`Authorization`,`${i} ${a}`),qG(e,t,{responseType:n})}if(!h(c))throw Error(`Server responded with an error`,{cause:{status:s}});let l=``;throw typeof c.error==`string`&&(l=c.error),typeof c.message==`string`&&(l=c.message),Array.isArray(c.errors)&&(typeof c.errors[0]==`string`&&(l=c.errors.join(`, `)),h(c.errors[0])&&typeof c.errors[0].message==`string`&&(l=c.errors.map(e=>e.message).join(`, `))),Error(`Server responded with an error`,{cause:{status:s,message:l}})}})))()}var YG,XG,ZG,QG,$G,eK,tK;function nK(){return(nK=o((()=>{Z(),_(),YG=l($le(),1),sG(),HG(),GG(),JG(),FU(),XG=`https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration`,ZG=`https://sveltiacms.app/en/docs/config-basics#validation-and-autocomplete`,QG=async({href:e,type:t=`application/yaml`},{manualInit:n=!1,showSchemaTip:r}={})=>{let i;if(!oG.includes(t))throw Error(X(`config.error.parse_failed`),{cause:Error(X(`config.error.parse_failed_unsupported_type`))});let a=PU(X(n?`config.error.fetch_failed_with_manual_init`:`config.error.fetch_failed`),XG);try{let t=new URL(e,window.location.href);t.searchParams.set(`_`,Date.now().toString()),i=await fetch(t)}catch(e){throw Error(a,{cause:e})}let{ok:o,status:s}=i;if(!o)throw Error(a,{cause:Error(X(`config.error.fetch_failed_not_ok`,{values:{status:s}}))});let c=!1,l;try{if(t===`application/json`)l=await i.json(),h(l)&&l.$schema!==aG&&(c=!0);else{let e=await i.text();t===`application/toml`?(l=IG(e),e.includes(`#:schema ${aG}`)||(c=!0)):(l=LG(e,{merge:!0,maxAliasCount:-1}),e.includes(`# yaml-language-server: $schema=${aG}`)||(c=!0))}}catch(e){throw Error(X(`config.error.parse_failed`),{cause:e})}if(!h(l))throw Error(X(`config.error.parse_failed`),{cause:Error(X(`config.error.parse_failed_invalid_object`))});return r&&c&&console.info(X(`config.schema_tip`,{values:{link:ZG}})),l},$G=e=>{if(e.endsWith(`/`))return`${e}config.yml`;let t=e.split(`/`);return t.pop()?.includes(`.`)?`${t.join(`/`)}/config.yml`:`${e}/config.yml`},eK=e=>{let{origin:t}=window.location;return e.every(({href:e})=>KG(e,t))},tK=async({manualInit:e=!1}={})=>{let t=[...document.querySelectorAll(`link[rel="cms-config-url"]`)].map(({href:e,type:t})=>({href:e,type:t}));if(t.length||t.push({href:$G(window.location.pathname)}),!eK(t))throw Error(X(`config.error.insecure_urls`,{values:{count:t.length}}));let n=UG.isLocalHost&&!e&&t.length===1,r=await Promise.all(t.map(t=>QG(t,{manualInit:e,showSchemaTip:n})));return r.length===1?r[0]:YG.default.all(r)}})))()}var rK,iK,aK,oK,sK,cK,lK;function uK(){return(uK=o((()=>{Z(),lL(),FU(),rK=`https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions`,iK=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,aK=({type:e=`error`,strKey:t,values:n={},extraStrKey:r,context:i={},collectors:a})=>{let{collection:o,collectionFile:s,componentName:c,typedKeyPath:l}=i,{errors:u,warnings:d}=a,f=[];o&&f.push(X(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&f.push(X(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&f.push(X(`config.error_locator.component`,{values:{component:c}})),l&&f.push(X(`config.error_locator.field`,{values:{field:l}}));let p=e===`error`?u:d,m=zu.current,h=f.length?`${sL(m).format(f)}: `:``,g=X(`config.${e}.${t}`,{values:n});t===`invalid_field_name`&&(g=PU(g,rK));let _=r?X(`config.${r}`,{values:{link:r===`compatibility_link`?iK:void 0}}):``;p.add(`${h}${g}${_?` ${_}`:``}`)},oK=({UNSUPPORTED_OPTIONS:e,config:t,context:n,collectors:r})=>{e.forEach(({type:e=`error`,prop:i,newProp:a,value:o,strKey:s=`unsupported_deprecated_option`})=>{i in t&&(o===void 0||t[i]===o)&&aK({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},sK=/^[^\s.*:<>]+$/,cK=e=>sK.test(e),lK=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return aK({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return cK(e)?n[e]===1?(aK({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(aK({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})))()}var dK,fK,pK,mK,hK;function gK(){return(gK=o((()=>{Z(),_(),jQ(),KI(),uK(),FU(),dK=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],fK=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,pK=`https://sveltiacms.app/en/docs/backends#supported-backends`,mK=`https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication`,hK=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!h(n)){r.add(X(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(X(`config.error.missing_backend_name`));return}if(!kpe.includes(a)){let e=Ope[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=PU(X(`config.error.unsupported_${t}_backend`,{values:{name:n}}),fK),o=PU(X(`config.error.unsupported_backend_suggestion`),pK);r.add(`${i} ${o}`);return}if(a in Ape){let{repo:o,automatic_deployments:s,auth_methods:c,auth_type:l,app_id:u}=n;Array.isArray(c)&&!c.length&&r.add(X(`config.error.no_auth_methods`));let d=!c||c.includes(`token`),f=mK.replace(`BACKEND_NAME`,a);o===void 0&&r.add(X(`config.error.missing_repository`)),(typeof o!=`string`||!/^[^/:]+(?:\/[^/:]+)+$/.test(o))&&r.add(X(`config.error.invalid_repository`)),l===`implicit`&&r.add(PU(X(`config.error.oauth_implicit_flow`),f)),a===`github`&&l===`pkce`&&r.add(PU(X(`config.error.github_pkce_unsupported`),f)),a===`gitlab`&&l===`pkce`&&!u&&r.add(X(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(d?i.add(X(`config.warning.oauth_no_app_id`)):r.add(X(`config.error.oauth_no_app_id`))),s!==void 0&&GI(`automatic_deployments`),oK({UNSUPPORTED_OPTIONS:dK,config:n,context:{cmsConfig:e},collectors:t})}}})))()}var _K,vK,yK;function bK(){return(bK=o((()=>{tL(),_K=[`code`,`markdown`,`richtext`,`text`],vK=[`yaml`,`toml`,`json`],yK=(e,t,n=[])=>{if(!e||!t||t===`raw`)return!1;let r=t.endsWith(`-frontmatter`)||t===`frontmatter`;if(r&&n.length===1){let[{name:e,widget:t=`string`}]=n;if(e===`body`&&_K.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(QI.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return!$I.includes(i)&&i!==e}return a===`frontmatter`?!Qfe.includes(i):vK.includes(a)?vK.includes(i)&&i!==a:!1}})))()}var xK,SK,CK,wK;function TK(){return(TK=o((()=>{uK(),bI(),xK=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],SK=e=>{try{return Intl.DateTimeFormat(`en-US`,{timeZone:e}),!0}catch{return!1}},CK=e=>{let{config:t,context:n,collectors:r}=e,{picker_utc:i,input_timezone:a,output_utc:o}=t;i!==void 0&&(a!==void 0||o!==void 0)&&aK({type:`warning`,strKey:`conflicting_timezone_options`,context:n,collectors:r}),vI(a)&&!SK(a)&&aK({strKey:`invalid_timezone`,values:{timeZone:a},context:n,collectors:r})},wK=e=>{oK({...e,UNSUPPORTED_OPTIONS:xK}),CK(e)}})))()}var EK,DK;function OK(){return(OK=o((()=>{uK(),EK=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],DK=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),oK({...e,UNSUPPORTED_OPTIONS:EK})}})))()}var kK,AK;function jK(){return(jK=o((()=>{QK(),uK(),kK=(e,t,n)=>e===`object`||(aK({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),AK=e=>{let{config:t,context:n,collectors:r}=e,{field:i}=t,{fields:a}=t,{types:o}=t,{typedKeyPath:s}=n,c={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a||i&&o||a&&o){aK({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&XK({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&ZK(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};lK({...c,name:e,index:a,context:o})&&kK(t,o,r)&&i&&ZK(i,o,r)})}})))()}var MK,NK;function PK(){return(PK=o((()=>{uK(),MK=[{prop:`valueType`,newProp:`value_type`}],NK=e=>{oK({...e,UNSUPPORTED_OPTIONS:MK})}})))()}var FK;function IK(){return(IK=o((()=>{QK(),uK(),FK=e=>{let{config:t,context:n,collectors:r}=e,{fields:i}=t,{types:a}=t,{typedKeyPath:o}=n,s={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a){aK({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){aK({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&ZK(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};lK({...s,name:e,index:i,context:a})&&t&&ZK(t,a,r)})}})))()}var LK,RK,zK;function BK(){return(BK=o((()=>{$U(),LK=/<[^>]+>$/,RK=e=>{let{field:t}=e,{fields:n}=e,{types:r,typeKey:i=`type`}=e;return t?[t]:n||(r?[...r.flatMap(({fields:e=[]})=>e),{name:i}]:[])},zK=(e,t)=>{let n=e,r;return t.split(`.`).every(e=>{let t=e.replace(LK,``);return!t||t===`*`||ZU(t)?!0:(r&&(n=RK(r)),r=n.find(({name:e})=>e===t),!!r)})&&!!r}})))()}var VK,HK,UK,WK;function GK(){return(GK=o((()=>{VM(),BK(),uK(),VK=[`slug`,`locale`],HK=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],UK=({valueField:e,fields:t,context:n,collectors:r})=>{let i=[...e.matchAll(zM)].map(([,e])=>e);(i.length?i.filter(e=>!VK.includes(e)):[e]).forEach(e=>{zK(t,e.replace(/^fields\./,``))||aK({strKey:`relation_field_invalid_value_field`,context:n,collectors:r,values:{field:e}})})},WK=e=>{let{config:t,context:n,collectors:r}=e,i=t,{collection:a,file:o,value_field:s}=i,{cmsConfig:c}=n,l=a===`_singletons`?{files:c?.singletons}:c?.collections?.find(e=>e.name===a),u;if(l){let e=`files`in l&&Array.isArray(l.files);o?(e&&(u=l.files.find(e=>`file`in e&&e.name===o)),u||aK({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&aK({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else aK({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});let d=o?u?.fields:l?.fields;typeof s==`string`&&s&&d?.length&&UK({valueField:s,fields:d,context:n,collectors:r}),oK({...e,UNSUPPORTED_OPTIONS:HK}),r.relationFields.add({fieldConfig:i,context:n})}})))()}var KK,qK;function JK(){return(JK=o((()=>{uK(),KK=[{prop:`editorComponents`,newProp:`editor_components`}],qK=e=>{oK({...e,UNSUPPORTED_OPTIONS:KK})}})))()}var YK,XK,ZK;function QK(){return(QK=o((()=>{TK(),OK(),jK(),PK(),IK(),GK(),JK(),uK(),YK={datetime:wK,file:DK,image:DK,list:AK,markdown:qK,number:NK,object:FK,relation:WK,richtext:qK},XK=e=>{let{config:t,context:n}=e,{name:r,widget:i=`string`}=t,{typedKeyPath:a}=n,o={...e,context:{...n,typedKeyPath:a?`${a}.${r}`:r}};YK[i]?.(o),i===`date`&&aK({...o,strKey:`date_field_type`})},ZK=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;lK({...r,name:a,index:i})&&XK({config:e,context:t,collectors:n})})}})))()}var $K,eq;function tq(){return(tq=o((()=>{FM(),bK(),QK(),uK(),$K=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o,i18n:s}=r,{extension:c}=NM(i);yK(c,a,o)&&aK({strKey:`file_format_mismatch`,context:e,values:{extension:c,format:a},collectors:t}),o?.length||aK({strKey:`collection_file_no_fields`,context:e,collectors:t}),i.includes(`{{locale}}`)&&!s&&aK({strKey:`collection_file_i18n_required`,context:e,collectors:t}),ZK(o,e,t)},eq=(e,t)=>{let{cmsConfig:n,collection:r}=e,{files:i}=r,a={nameCounts:{},strKeyBase:`collection_file_name`,collectors:t};i.forEach((e,i)=>{if(`divider`in e)return;let{name:o}=e,s={cmsConfig:n,collection:r,collectionFile:e};lK({...a,name:o,index:i,context:s})&&$K(s,t)})}})))()}var nq,rq,iq;function aq(){return(aq=o((()=>{_(),nq=(e,t)=>{if(Array.isArray(e))return{options:e};if(h(e)){let n=e[t],r=e.default;if(Array.isArray(n)){let e=r?n.find(({name:e})=>e===r):void 0;return{options:n,default:e?{field:e.field,pattern:e.pattern}:void 0}}}return{options:[]}},rq=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),iq=e=>{if(rq(e))return{keys:e};if(h(e)){let{fields:t,default:n}=e;return rq(t)?h(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}}})))()}var oq,sq,cq,lq;function uq(){return(uq=o((()=>{_(),BK(),uK(),aq(),oq=[`slug`,`commit_author`,`commit_date`],sq=[`_summary`,`_manual`],cq=({config:e,options:t,fields:n,optionType:r,context:i,collectors:a})=>{let o=h(e),s={};t.forEach((e,t)=>{let{name:c,field:l}=h(e)?e:{};(o||c!==void 0)&&lK({name:c,index:t,nameCounts:s,strKeyBase:`${r}_name`,context:i,collectors:a}),!(typeof l!=`string`||!l||oq.includes(l))&&(zK(n,l)||aK({strKey:`invalid_${r}_field`,values:{name:l},context:i,collectors:a}))})},lq=(e,t)=>{let{fields:n,sortable_fields:r,view_groups:i,view_filters:a}=e.collection;if(n?.length){if(r){let{keys:i,defaultKey:a}=iq(r),o=[...oq,...sq];[...i,a].forEach(r=>{r&&!o.includes(r)&&!zK(n,r)&&aK({strKey:`invalid_sortable_field`,values:{name:r},context:e,collectors:t})})}cq({config:i,options:nq(i,`groups`).options,fields:n,optionType:`view_group`,context:e,collectors:t}),cq({config:a,options:nq(a,`filters`).options,fields:n,optionType:`view_filter`,context:e,collectors:t})}}})))()}var dq,fq,pq,mq;function hq(){return(hq=o((()=>{Z(),_(),KI(),tq(),bK(),uq(),QK(),uK(),aq(),dq=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],fq=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,reorder:c,slug:l,slug_length:u,view_groups:d}=r;yK(i,a)&&aK({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),u!==void 0&&GI(`slug_length`),oK({UNSUPPORTED_OPTIONS:dq,config:r,context:e,collectors:t}),o?.length||aK({strKey:`collection_no_fields`,context:e,collectors:t}),ZK(o,e,t),s&&ZK(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t);let f=h(c)?c.group:void 0;if(typeof f==`string`&&f){let{options:n}=nq(d,`groups`);n.some(({name:e})=>e===f)||aK({strKey:`invalid_reorder_group`,values:{name:f},context:e,collectors:t})}lq(e,t),l?.includes(`/`)&&aK({strKey:`invalid_slug_slash`,values:{slug:l},context:e,collectors:t})},pq=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){aK({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){aK({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?eq({cmsConfig:e,collection:t},n):a&&fq({cmsConfig:e,collection:t},n)},mq=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(X(`config.error.no_collection`));return}n?.some(e=>!(`divider`in e)&&!e.hide)||r?.length||i.add(X(`config.error.no_visible_collection`));let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};if(n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};lK({...a,name:i,index:r,context:o})&&pq(o,t)}),Array.isArray(r)){let n={name:`_singletons`,label:X(`singletons`),label_singular:X(`singleton`),files:r};eq({cmsConfig:e,collection:n},t)}}})))()}var gq;function _q(){return(_q=o((()=>{Z(),uK(),tV(),gq=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a,asset_collections:o}=e,{errors:s}=t;if(n===void 0?!eV.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>eV.includes(e))&&s.add(X(`config.error.missing_media_folder`)):typeof n!=`string`&&s.add(X(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&s.add(X(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&s.add(X(`config.error.public_folder_absolute_url`))):s.add(X(`config.error.invalid_public_folder`))),o!==void 0){if(!Array.isArray(o))s.add(X(`config.error.invalid_asset_collections`));else{let n={nameCounts:{},strKeyBase:`asset_collection_name`,collectors:t};o.forEach((t,r)=>{let{name:i,media_folder:a}=t,o={cmsConfig:e};lK({...n,name:i,index:r,context:o})&&typeof a!=`string`&&s.add(X(`config.error.asset_collection_invalid_media_folder`,{values:{name:i}}))})}}}})))()}var vq,yq;function bq(){return(bq=o((()=>{UI(),gK(),hq(),QK(),_q(),uK(),vq=[{type:`warning`,prop:`publish_mode`,value:`editorial_workflow`,strKey:`editorial_workflow_unsupported`},{type:`warning`,prop:`local_backend`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`locale`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`search`,strKey:`unsupported_ignored_option`}],yq=(e,t)=>{hK(e,t),gq(e,t),mq(e,t),oK({UNSUPPORTED_OPTIONS:vq,config:e,context:{cmsConfig:e},collectors:t}),LI.forEach(({fields:n},r)=>{ZK(n,{cmsConfig:e,componentName:r},t)})}})))()}var xq=s(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),Sq,Cq,wq,Tq,Eq;function Dq(){return(Dq=o((()=>{J(),Z(),VD(),Sq=l(xq(),1),tc(),Cq=`sveltia-cms.prefs`,wq=Dr({current:void 0}),Tq=Dr({}),Eq=!1,Qr(()=>{(async()=>{wq.current=void 0;try{let e=await BD.get(Cq)??{};e.apiKeys??={},e.useDraftBackup??=!0,e.closeOnSave??=!0,e.closeWithEscape??=!0,e.underlineLinks??=!0,e.beta??=!1,e.devModeEnabled??=!1,e.defaultTranslationService??=`google`,e.locale===`en`&&(e.locale=navigator.languages.find(e=>yu.includes(e))??`en-US`),Object.assign(Tq,e)}catch{wq.current={type:`permission_denied`}}})(),L(()=>{if(!Object.keys(Tq).length)return;let e=Dt(Tq);(async()=>{try{(0,Sq.default)(e,await BD.get(Cq))||await BD.set(Cq,e)}catch{}})();let{theme:t,underlineLinks:n=!0,beta:r=!1,devModeEnabled:i=!1}=Tq,a=!t||t===`auto`,o=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;Object.assign(document.documentElement.dataset,{theme:a?o:t,autoTheming:a,underlineLinks:n,beta:r,devMode:i})}),L(()=>{let{locale:e}=Tq;if(!e||!yu.includes(e))return;let t=Li(()=>zu.current),n=Eq;Eq=!0,Lu(e).then(()=>{e in bu?zu.set(e):n&&t&&(Tq.locale=t)})})})})))()}var Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq;function zq(){return(zq=o((()=>{Z(),Dd(),_(),wD(),Oq=l($le(),1),AM(),qF(),XM(),XW(),iG(),nK(),bq(),XL(),Dq(),{DEV:kq,VITE_SITE_URL:Aq}={DEV:!1},jq=kq?Aq||`http://localhost:5174`:void 0,Mq={},Nq=sn(),Pq=sn(),Fq=sn([]),Iq=cn([Nq,Fq],([e,t])=>!!e||!!t.length),Lq={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},Rq=async e=>{Nq.set(void 0),Fq.set([]),Object.assign(Lq,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(X(`config.error.no_secure_context`));let t;if(e){if(!h(e))throw Error(X(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,Oq.default)(await tK({manualInit:!0}),t))}else t=await tK();if(Object.assign(Mq,t),yq(t,Lq),Lq.errors.size)throw Lq.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);Lq.warnings.size&&Lq.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(kq?jq:window.location.origin),n._baseURL=SD(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),Nq.set(n),Pq.set(await Ed(KF(n)))}catch(e){Fq.set(Lq.errors.size?[...Lq.errors]:[e.name===`Error`?e.message:X(`config.error.unexpected`)]),console.error(e,e.cause)}},Nq.subscribe(e=>{if(Tq.devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,Lq)),!e)return;let t=rG(e),n=YW(e,[...Lq.mediaFields]);WL.set(t),HM.set(n),Tq.devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})))()}var Bq;function Vq(){return(Vq=o((()=>{AM(),zq(),Bq=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=k(Nq),r=e==="default"?{...n?.media_libraries?.all,...t?.media_libraries?.all}:void 0,i=e=>({...e,...r&&Object.keys(r).length>0&&{config:{...r,...e?.config}}});if(t?.media_libraries&&e in t.media_libraries){let n=t.media_libraries[e];return n!==!1&&i(n)}if(t?.media_library){let r=n?.media_library?.name??`default`,a=t.media_library,o=a.name;if(r===e&&(o===e||o===void 0))return i(a)}if(n?.media_libraries&&e in n.media_libraries){let t=n.media_libraries[e];return t!==!1&&i(t)}return n?.media_library?.name===e?i(n.media_library):i(null)}})))()}var Hq,Uq;function Wq(){return(Wq=o((()=>{_(),Vq(),MV(),KV(),Hq=({fieldConfig:e}={})=>{let t=Bq({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`&&r,slugify_filename:typeof i==`boolean`&&i,transformations:h(a)?a:void 0}}},Uq=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(wV.includes(r)&&(r in t?n=t[r]:`raster_image`in t&&(n=t.raster_image)),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&jV.includes(t)?t:`webp`,s;try{s=await WV(e,{format:o,quality:r&&Number.isSafeInteger(r)?r:85,width:i&&Number.isSafeInteger(i)?i:void 0,height:a&&Number.isSafeInteger(a)?a:void 0})}catch{return e}let c=s.type===`image/${o}`?EV.test(e.name)?e.name.replace(EV,o):e.name.concat(o):e.name;return new File([s],c,{type:s.type})}}return n===`image`&&r===`svg+xml`&&t.svg?.optimize?new File([await GV(e)],e.name,{type:e.type}):e}})))()}var Gq;function Kq(){return(Kq=o((()=>{MV(),Gq=async e=>{if(!TV.includes(e.type))return!0;try{return(await createImageBitmap(e)).close(),!0}catch{return!1}}})))()}var qq;function Jq(){return(Jq=o((()=>{Wq(),VB(),Kq(),qq=async(e,{slugify_filename:t=!1,transformations:n,max_file_size:r=1/0}={})=>{if(t){let{name:t,type:n,lastModified:r}=e,i=NB(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}if(!await Gq(e))return{file:e,originalFile:void 0,oversized:!1,invalid:!0};let i=e;return n&&(e=await Uq(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r,invalid:!1}}})))()}var Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ;function _J(){return(_J=o((()=>{FM(),wD(),AM(),XM(),Jq(),BW(),VM(),VL(),ZI(),MI(),TH(),Wq(),VB(),Yq=/^(?<entryFolder>.+?)(?:\/[^/]+)?$/,Xq=sn([]),Zq={source:void 0,map:new Map},Qq=()=>{let e=k(Xq);return e!==Zq.source&&(Zq.source=e,Zq.map=new Map(e.map(e=>[e.path,e]))),Zq.map},$q=e=>Qq().get(e),eJ=sn([]),tJ=cn(eJ,e=>new Set(e.map(e=>e.path))),nJ=sn(),rJ=sn(),iJ=sn({folder:void 0,files:[]}),aJ=sn(),oJ=sn(),sJ=cn([iJ],([e],t,n)=>{t({processing:!1,validFiles:[],oversizedFiles:[],invalidFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=Hq();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>qq(e,i)));n(()=>({processing:!1,validFiles:e.filter(({oversized:e,invalid:t})=>!e&&!t).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e,invalid:t})=>e&&!t).map(({file:e})=>e),invalidFiles:e.filter(({invalid:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),cJ=({path:e,entry:t,collection:n,file:r,componentName:i,typedKeyPath:a})=>{let{locales:o}=t,{_i18n:{defaultLocale:s}}=r??n,c=a?KM({collectionName:n.name,fileName:r?.name,componentName:i,typedKeyPath:a}):void 0,l=c?.entryRelative?c.internalSubPath??``:(r??n).media_folder,u=c?.publicPath?c.publicPath:(r??n).public_folder,{path:d,content:f}=o[s in o?s:Object.keys(o)[0]];if(!d||!f)return;l&&LW(l)&&(l=zW(l,{type:`media_folder`,collection:n,content:f,currentSlug:t.slug,entryFilePath:d,isIndexFile:XI(n,t)}));let{entryFolder:p}=d.match(Yq).groups,m=e.replace(/^\.\//,``),h=l&&m.startsWith(`${l}/`)?m.slice(l.length+1):m,g;if(l?.startsWith(`/`)&&u){let e=u.replace(/^\.\//,``);m.startsWith(`${e}/`)&&(h=m.slice(e.length+1)),g=RB(IB([l.slice(1),h]))}else g=RB(IB([p,l,h]));return Qq().get(g)},lJ=({path:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:a})=>{if(!t){let t=[i?KM({componentName:i,typedKeyPath:a}):void 0,n&&a?KM({collectionName:n,fileName:r,typedKeyPath:a}):void 0,n?KM({collectionName:n,fileName:r}):void 0,n?KM({collectionName:n}):void 0,k(UM)].filter(e=>!!e&&!e.hasTemplateTags),o;return t.find(t=>{let n=t.publicPath?.replace(/^\//,``)??``,r=n&&e.startsWith(`${n}/`)?e.slice(n.length+1):e,i=Qq().get(IB([t.internalPath,t.internalSubPath??``,r]));return i&&(o=i),!!i}),o??Qq().get(e)}return xH(t).flatMap(n=>{let r=kI(n,t),o={path:e,entry:t,collection:n,componentName:i,typedKeyPath:a};return r.length?r.map(e=>cJ({...o,file:e})):cJ({...o})}).filter(Boolean)[0]??Qq().get(e)},uJ=({path:e,entry:t,collectionName:n,fileName:r,componentName:i,typedKeyPath:a})=>{let o=Qq().get(yD(e));if(o)return o;let{dirname:s=``,basename:c}=NM(e),l;return[i?KM({componentName:i,typedKeyPath:a}):void 0,a?KM({collectionName:n,fileName:r,typedKeyPath:a}):void 0,KM({collectionName:n,fileName:r}),KM({collectionName:n}),k(UM),k(HM).findLast(e=>{let t=e.publicPath??``,n=_D(t).replace(BM,`.+?`);return s.match(`^${n}${t?`(?=\\/|$)`:`$`}`)})].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&RM.test(i)){let e=r?RL(r):t?xH(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=zW(i,{type:`media_folder`,collection:e,content:IM(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:XI(e,t)})}n&&i&&s&&(n===`/`?i=`${i}${s}`:s.startsWith(`${n}/`)&&(i=s.replace(n,i)));let a=IB([i,c]),o=Qq().get(a);return o&&(l=o),!!o}),l},dJ=e=>!/^[/@]/.test(e),fJ=({value:e,...t})=>{let n=kB(e.split(`#`)[0]);return dJ(n)?lJ({path:n,...t}):uJ({path:n,...t})},pJ=({folder:e},t)=>e===t||e.collectionName===t.collectionName&&e.fileName===t.fileName&&e.typedKeyPath===t.typedKeyPath&&e.isIndexFile===t.isIndexFile&&e.internalPath===t.internalPath&&e.internalSubPath===t.internalSubPath&&e.publicPath===t.publicPath&&e.entryRelative===t.entryRelative&&e.hasTemplateTags===t.hasTemplateTags,mJ=e=>k(Xq).filter(t=>pJ(t,e)),hJ=e=>k(Xq).filter(t=>NM(t.path).dirname===e),WM.subscribe(()=>{nJ.set(void 0)}),gJ=(e,t)=>{if(!t.length||!e.length)return[];let n=new Set(t.map(({name:e})=>e.normalize().toLowerCase()));return e.filter(e=>n.has(e.name.normalize().toLowerCase()))}})))()}var vJ,yJ;function bJ(){return(bJ=o((()=>{AM(),vJ=/^(?:.+\/)?(\.git(?:attributes|ignore|keep))$/,yJ=sn([]),cn(yJ,e=>e.find(({path:e})=>e===`.gitattributes`)?.text?.replace(/\r\n?/g,`
|
|
2475
2475
|
`).split(`
|
|
2476
2476
|
`).map(e=>e.startsWith(`*.`)&&e.includes(`filter=lfs`)?e.split(` `)[0].slice(2).toLowerCase():``).filter(Boolean)??[])})))()}var xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ;function FJ(){return(FJ=o((()=>{Dd(),_(),wD(),VL(),ZI(),MI(),hW(),HG(),aI(),xJ=e=>/\/_index(?:\.[\w-]+)?\.md$/.test(e),SJ=new Map,CJ=({subPath:e,subPathTemplate:t})=>{if(t?.includes(`{{slug}}`)){let n=rI(SJ,t,()=>{let e=``,n=t;for(;n.length>0;){let t=n.indexOf(`{{`);if(t===-1){e+=_D(n);break}t>0&&(e+=_D(n.substring(0,t)));let r=n.indexOf(`}}`,t);if(r===-1){e+=_D(n);break}let i=n.substring(t,r+2);e+=i===`{{slug}}`?`([^/]+)`:`[^/]+?`,n=n.substring(r+2)}return RegExp(`^${e}$`)}),[,r]=e.match(n)??[];if(r)return r}return e},wJ=async(e,t)=>{try{return await VG(e)}catch(e){console.error(e),t.push(e);return}},TJ=({rawContent:e,fields:t,i18nSingleFile:n,validate:r})=>{let i=t[0].name;if(n)return!h(e)||!Object.values(e).every(r)?void 0:Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{[i]:t}]));if(r(e))return{[i]:e}},EJ=(e,t,n)=>{if(!h(e))return;let r=t.filter(e=>e!==n),i=Object.fromEntries(Object.entries(e).filter(([e])=>!r.includes(e))),a={[n]:i};return r.forEach(t=>{h(e[t])&&(a[t]=e[t])}),a},DJ=(e,t,n)=>{let r={rawContent:e,fields:t,i18nSingleFile:n};return rW(t,`list`)?TJ({...r,validate:Array.isArray}):rW(t,`keyvalue`)?TJ({...r,validate:e=>h(e)&&Object.values(e).every(e=>typeof e==`string`)}):h(e)?e:void 0},OJ=(e,t,n,r,i)=>r?.split(`/`).pop()===`_index`&&/\/_index(?:\.[\w-]+)?\.[\w]+$/.test(e)&&i!==`md`?!0:xJ(e)?!(t||YI(n)?.name===`_index`||r?.split(`/`).pop()===`_index`&&i===`md`):!1,kJ=(e,t,n,r,i)=>{let{path:a,folder:{filePathMap:o}}=e;if(t){if(i){let[e,t]=Object.entries(o??{}).find(([,e])=>e===a)??[];return{subPath:t,locale:e}}return{subPath:a,locale:void 0}}if(!n)return{subPath:void 0,locale:void 0};let s=a.match(n);if(!s?.groups)return{subPath:void 0,locale:void 0};let{subPath:c,locale:l=r}=s.groups;return{subPath:c,locale:l}},AJ=(e,t,n,r,i,a)=>{let o=r||CJ({subPath:i,subPathTemplate:a});e.slug=o,e.locales._default={slug:o,path:n,content:IM(t)}},jJ=(e,t,n,r,i,a,o)=>{let s=r||CJ({subPath:i,subPathTemplate:a});e.slug=s,e.locales=Object.fromEntries(o.filter(e=>e in t).map(e=>[e,{slug:s,path:n,content:IM(t[e])}]))},MJ=(e,t,n,r,i,a,o,s,c,l,u)=>{let d=l&&typeof t[l]==`string`?t[l]:void 0,f=r||CJ({subPath:i,subPathTemplate:a}),p={slug:f,path:n,content:IM(t)},m=`${c}/${d??f}`,h=u.find(e=>e.id===m);return h?(h.locales[o]=p,o===s&&(h.slug=f,h.subPath=i),!0):(e.id=m,e.locales[o]=p,o===s&&(e.slug=f),!1)},NJ=async({file:e,entries:t,errors:n})=>{let r=await wJ(e,n);if(!r)return;let{path:i,meta:a={},folder:{collectionName:o,fileName:s}}=e,c=RL(o),l=c&&s?DI(c,s):void 0;if(!c||s&&!l)return;let{fields:u=[],_file:{fullPathRegEx:d,subPath:f,extension:p},_i18n:{i18nEnabled:m,allLocales:h,defaultLocale:g,structureMap:{i18nSingleFile:_,i18nSingleFileDefaultRoot:v,i18nMultiFile:y,i18nMultiFolder:b,i18nMultiRootFolder:x},canonicalSlug:{key:S}}}=l??c,C=v?EJ(r,h,g):r;if(!C)return;let w=DJ(C,u,_||v);if(!w||OJ(i,s,c,f,p))return;let ee=y||b||x,{subPath:te,locale:ne}=kJ(e,s,d,g,ee);if(!te||ee&&!ne)return;let re={id:``,slug:``,subPath:te,locales:{},...a};if(!m)AJ(re,w,i,s,te,f);else if(_||v)jJ(re,w,i,s,te,f,h);else if(MJ(re,w,i,s,te,f,ne,g,o,S,t))return;t.push(re)},PJ=async e=>{let t=[],n=[];return await Promise.all(e.map(e=>NJ({file:e,entries:t,errors:n}))),{entries:t.filter(e=>(e.id=wd(),!!e.slug&&!!Object.keys(e.locales).length)),errors:n}}})))()}var IJ;function LJ(){return(LJ=o((()=>{XM(),bJ(),XL(),FJ(),IJ=e=>{let t=[],n=[],r=[],i=new Set;e.forEach(e=>{let{path:a,name:o}=e;if(o.startsWith(`.`))vJ.test(o)&&r.push({...e,type:`config`});else{let[r]=YL(a),[o]=JM(a);r&&(t.push({...e,type:`entry`,folder:r}),i.add(a)),o&&!i.has(a)&&!xJ(a)&&n.push({...e,type:`asset`,folder:o})}});let a=[...t,...n,...r];return{entryFiles:t,assetFiles:n,configFiles:r,allFiles:a,count:a.length}}})))()}var RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY;function iY(){return(iY=o((()=>{eA(),FM(),wD(),AM(),_J(),XM(),hz(),bJ(),LJ(),VM(),XL(),FJ(),GG(),VB(),RJ=10485760,zJ=10,BJ=async(e,t,n=`file`)=>{let r=yD(t??``),i=e;if(!r){if(n===`directory`)return i;throw Error(`Path is required for file handle retrieval`)}let a=r.split(`/`),o=a.length-1;for await(let[e,t]of a.entries())i=await(e===o&&n===`file`?i.getFileHandle(t,{create:!0}):i.getDirectoryHandle(t,{create:!0}));return i},VJ=(e,t)=>BJ(e,t,`file`),HJ=(e,t)=>BJ(e,t,`directory`),UJ=e=>e?DB(e,e=>_D(e).replace(BM,`.+?`)):/^.+$/,WJ=async(e,t,n=``)=>{let{scanningPaths:r,scanningPathsRegEx:i,fileHandles:a,pathRegexCache:o}=t;for await(let[s,c]of e.entries()){if(s.startsWith(`.`)&&!vJ.test(s))continue;let e=n?`${n}/${s}`:s,l=i.some(t=>t.test(e));if(c.kind===`file`&&l&&a.push({handle:c,path:e}),c.kind===`directory`){let n=o.get(e);n||(n=UJ(e),o.set(e,n)),(l||r.some(e=>n.test(e)))&&await WJ(c,t,e)}}},GJ=()=>{let e=k(WL).flatMap(({filePathMap:e,folderPathMap:t})=>Object.values(e||(t??{}))),t=k(HM).filter(({internalPath:e})=>e!==void 0).map(({internalPath:e})=>e);return $k([...e,...t].map(e=>yD(e??``)))},KJ=async e=>{let t=[],n=GJ();return await WJ(e,{rootDirHandle:e,scanningPaths:n,scanningPathsRegEx:n.map(UJ),fileHandles:t,pathRegexCache:new Map}),t.map(({handle:e,path:t})=>({handle:e,path:t.normalize(),name:e.name.normalize(),size:0,sha:``}))},qJ=async e=>{let{name:t,handle:n}=e;if(t===`.gitkeep`)return e;try{let r=await n.getFile();if(r.size>RJ)return console.warn(`File ${t} is too large (${r.size} bytes), skipping content read`),{...e,text:``};let i=await Gle(r);return{...e,text:i}}catch(t){return console.error(t),{...e,text:``}}},JJ=async e=>{let{name:t,handle:n}=e,r=mz(t);try{let t=await n.getFile(),{size:i}=t,a=await BB(t);return{...e,kind:r,size:i,sha:a}}catch(t){return console.error(t),{...e,kind:r}}},YJ=async e=>{let{entryFiles:t,assetFiles:n,configFiles:r}=IJ(await KJ(e)),i=[],a=[];for(let e=0;e<t.length;e+=zJ){let n=t.slice(e,e+zJ),r=await Promise.all(n.map(e=>qJ(e)));i.push(...r)}for(let e=0;e<r.length;e+=zJ){let t=r.slice(e,e+zJ),n=await Promise.all(t.map(e=>qJ(e)));a.push(...n)}let{entries:o,errors:s}=await PJ(i),c=[];for(let e=0;e<n.length;e+=zJ){let t=n.slice(e,e+zJ),r=await Promise.all(t.map(e=>JJ(e)));c.push(...r)}GL.set(o),Xq.set(c),yJ.set(a),KL.set(s),HL.set(!0)},XJ=()=>`move`in FileSystemFileHandle.prototype&&!UG.isBrave,ZJ=async(e,t)=>{let n=await e.createWritable?.();try{await n?.write(t)}finally{try{await n?.close()}catch{}}},QJ=async({rootDirHandle:e,previousPath:t,path:n})=>{let{dirname:r,basename:i}=NM(n),{dirname:a,basename:o}=NM(t),s=await VJ(e,t);if(XJ())return await s.move(await HJ(e,r),i),s;let c=await VJ(e,n),l=await HJ(e,a);return await ZJ(c,await s.getFile()),await l.removeEntry(o),c},$J=async({rootDirHandle:e,fileHandle:t,path:n,data:r})=>{let i;if(!t){if(XJ()){let{dirname:r,basename:a}=NM(yD(n)),o=`${r?`${r}/`:``}.sveltia-tmp-${crypto.randomUUID()}`;t=await VJ(e,o),i={dirname:r,basename:a}}else t=await VJ(e,n)}if(await ZJ(t,r),i){let{dirname:n,basename:r}=i;await t.move(await HJ(e,n),r)}return t.getFile()},eY=async(e,t)=>{for(let n=t.length;n>0;--n){let r=t[n-1],i=t.slice(0,n-1).join(`/`),a=await HJ(e,i),o=await a.getDirectoryHandle(r);for await(let e of o.entries())return;await a.removeEntry(r)}},tY=async({rootDirHandle:e,path:t})=>{let{dirname:n=``,basename:r}=NM(yD(t));await(await HJ(e,n)).removeEntry(r),n&&await eY(e,n.split(`/`))},nY=async(e,{action:t,path:n,previousPath:r,data:i})=>{let a;return t===`move`&&r&&(a=await QJ({rootDirHandle:e,previousPath:r,path:n})),[`create`,`update`,`move`].includes(t)&&i?$J({rootDirHandle:e,fileHandle:a,path:n,data:i}):(t===`delete`&&await tY({rootDirHandle:e,path:n}),null)},rY=async(e,t)=>{let n=await Promise.all(t.map(async t=>{let{path:n,data:r}=t,i=null;if(e)try{i=await nY(e,t)}catch(e){console.error(e)}if(!i){if(r===void 0)return null;i=zB(r)}return[n,{file:i,sha:await BB(i)}]}));return{sha:await BB(new Date().toJSON()),files:Object.fromEntries(n.filter(e=>!!e))}}})))()}var aY,oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY;function bY(){return(bY=o((()=>{RD(),AM(),jQ(),iY(),zq(),aY=`local`,oY=`Local Repository`,sY=void 0,cY={service:``,label:``,owner:``,repo:``,branch:``},lY=new Proxy({},{get:(e,t)=>(sY??cY)[t]}),uY=`root_dir_handle`,dY=void 0,fY=void 0,pY=async({forceReload:e=!1,showPicker:t=!0}={})=>{if(!(`showDirectoryPicker`in window))throw Error(`unsupported`);let n=e?null:await dY?.get(uY)??null;if(n){if(await n.requestPermission({mode:`readwrite`})!==`granted`)n=null;else try{await n.entries().next()}catch(e){n=null,console.error(e)}}if(!n&&t&&(n=await window.showDirectoryPicker(),n)){try{await n.getDirectoryHandle(`.git`)}catch(e){if(e.name===`TypeMismatchError`)await n.getFileHandle(`.git`);else throw e}await dY?.set(uY,n)}return n},mY=()=>{let{name:e}=k(Nq).backend;sY=DQ[e]?.init?.();let{databaseName:t}=sY??{};return dY=t?new LD(t,`file-system-handles`):null,lY},hY=async({auto:e=!1})=>{let t=await pY({showPicker:!e});if(t)fY=t;else throw Error(`Directory handle could not be acquired`);return{backendName:aY}},gY=async()=>{await dY?.delete(uY)},_Y=async()=>{await YJ(fY)},vY=async e=>rY(fY,e),yY={isGit:!1,name:aY,label:oY,repository:lY,init:mY,signIn:hY,signOut:gY,fetchFiles:_Y,commitChanges:vY}})))()}var xY,SY,CY,wY,TY,EY,DY,OY,kY,AY;function jY(){return(jY=o((()=>{iY(),XL(),xY=`sveltia-cms-test`,SY=`test-repo`,CY=`Test`,wY=void 0,TY=()=>void 0,EY=async()=>{try{wY=await HJ(await navigator.storage.getDirectory(),xY)}catch{}return{backendName:SY}},DY=async()=>{},OY=async()=>{wY?await YJ(wY):HL.set(!0)},kY=async e=>rY(wY,e),AY={isGit:!1,name:SY,label:CY,init:TY,signIn:EY,signOut:DY,fetchFiles:OY,commitChanges:kY}})))()}var MY,NY,PY,FY,IY,LY;function RY(){return(RY=o((()=>{MY=`gitea`,NY=`Gitea / Forgejo`,PY=`https://gitea.com/api/v1`,FY=`https://gitea.com`,IY=`login/oauth/authorize`,LY=1.24})))()}var zY;function BY(){return(BY=o((()=>{J(),VD(),zY=Dr({account:void 0}),Qr(()=>{L(()=>{let e=zY.account;(async()=>{try{e?await BD.set(`sveltia-cms.user`,e):e===null&&await BD.delete(`sveltia-cms.user`)}catch{}})()})})})))()}var VY,HY,UY,WY,GY,KY;function qY(){return(qY=o((()=>{Z(),BY(),JG(),VY={clientId:``,authScope:``,authURL:``,tokenURL:``,authScheme:`token`,restBaseURL:``,graphqlBaseURL:``,includeCredentials:!1},HY={...VY},UY={},WY=async({clientId:e,tokenURL:t,refreshToken:n})=>{let r,i=``;if(!KG(t))throw Error(X(`sign_in_error.TOKEN_REFRESH_FAILED`));try{r=await fetch(t,{method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({grant_type:`refresh_token`,client_id:e,refresh_token:n}),...HY.includeCredentials&&{credentials:`include`}})}catch{}if(!r?.ok)throw Error(X(`sign_in_error.TOKEN_REFRESH_FAILED`));return{access_token:i,refresh_token:n}=await r.json(),zY.account=zY.account?{...zY.account,token:i,refreshToken:n}:zY.account,{token:i,refreshToken:n}},GY=async(e,{method:t=`GET`,headers:n={},body:r=null,isGraphQL:i=!1,responseType:a=`json`,token:o=void 0,refreshToken:s=void 0}={})=>{let{clientId:c,tokenURL:l,restBaseURL:u,graphqlBaseURL:d,authScheme:f=`token`,includeCredentials:p}=HY,m=zY.account,h=i?d:u;return o??=m?.token,s??=m?.refreshToken,n.Authorization=`${f} ${o}`,qG(`${h}${e}`,{method:t,headers:n,body:r,...p&&{credentials:`include`}},{responseType:a,refreshAccessToken:s?()=>WY({clientId:c,tokenURL:l,refreshToken:s}):void 0})},KY=async(e,t={})=>{e=e.replace(/\n\s*/g,` `),Object.entries(UY).forEach(([n,r])=>{e.includes(`$${n}`)&&(t[n]??=r)});let{data:n}=await GY(``,{method:`POST`,body:{query:e,variables:t},isGraphQL:!0});return n}})))()}var JY;function YY(){return(YY=o((()=>{qY(),BY(),JY=async({token:e,refreshToken:t},n,r)=>{let i=await GY(`/user`,{token:e,refreshToken:t}),a=zY.account;return a?.token&&a.token!==e&&(e=a.token,t=a.refreshToken),{backendName:n,id:i.id,name:i[r.name],login:i[r.login],email:i.email,avatarURL:i.avatar_url,profileURL:i[r.profileURL],bot:i.bot??!1,token:e,refreshToken:t}}})))()}var XY;function ZY(){return(ZY=o((()=>{RY(),YY(),XY=e=>JY(e,MY,{name:`full_name`,login:`login`,profileURL:`html_url`})})))()}var QY,$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX;function lX(){return(lX=o((()=>{Z(),Dd(),_(),VD(),AM(),zq(),JG(),QY=sn(!1),$Y=({authURL:e})=>{let{availHeight:t,availWidth:n}=window.screen,r=t/2-400,i=n/2-300;return window.open(e,`auth`,`width=600,height=800,top=${r},left=${i}`)},eX=async({backendName:e,authURL:t,popup:n})=>(n??=$Y({authURL:t}),new Promise((r,i)=>{let a=new AbortController,o=e===`github`?setInterval(()=>{n?.closed&&(a.abort(),clearInterval(o),i(Object.assign(Error(`Authentication aborted`),{name:`AbortError`})))},1e3):0;window.addEventListener(`message`,({origin:s,data:c})=>{if(s!==new URL(t).origin||typeof c!=`string`)return;let l=e;if(c===`authorizing:${l}`){n?.postMessage(c,s);return}let{result:u}=c.match(`^authorization:${l}:(success|error):(?<result>.+)`)?.groups??{},d;try{d=u?JSON.parse(u):{error:`No data`},h(d)||(d={error:`Malformed data`})}catch{d={error:`Malformed data`}}`token`in d?r(d):i(Error(`Authentication failed`,{cause:Error(d.errorCode?X(`sign_in_error.${d.errorCode}`,{default:d.error}):d.error)})),a.abort(),clearInterval(o),n?.close()},{signal:a.signal})})),tX=async({backendName:e,siteDomain:t,authURL:n,scope:r})=>{let{hostname:i}=window.location;t??=i===`localhost`?`cms.netlify.com`:i;try{new URL(n).origin===`https://api.netlify.com`&&(t=new URL(`https://${t}`).hostname)}catch{}let a=new URLSearchParams({provider:e,site_id:t,scope:r});return eX({backendName:e,authURL:`${n}?${a}`})},nX=async()=>{let e=`${Td()}${Td()}`,t=btoa(await Ed(e,{algorithm:`SHA-256`,format:`binary`})).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``);return{csrfToken:wd().replaceAll(`-`,``),codeVerifier:e,codeChallenge:t}},rX=async({backendName:e,clientId:t,authURL:n,scope:r})=>{let{origin:i,pathname:a}=window.location,o=`${i}${a}`,s=$Y({authURL:o});if(!s)throw Object.assign(Error(`Authentication aborted`),{name:`AbortError`});let{csrfToken:c,codeVerifier:l,codeChallenge:u}=await nX(),d=new URLSearchParams({client_id:t,redirect_uri:o,response_type:`code`,state:c,scope:r,code_challenge:u,code_challenge_method:`S256`});if(await BD.set(`sveltia-cms.auth`,{csrfToken:c,codeVerifier:l,realAuthURL:`${n}?${d}`}),await BD.set(`sveltia-cms.user`,{backendName:e}),s.closed)throw Object.assign(Error(`Authentication aborted`),{name:`AbortError`});return eX({backendName:e,authURL:o,popup:s})},iX=({provider:e=`unknown`,token:t,refreshToken:n,error:r,errorCode:i})=>{let a=r?`error`:`success`,o=r?{provider:e,error:r,errorCode:i}:{provider:e,token:t,refreshToken:n},s=({data:t,origin:n})=>{t===`authorizing:${e}`&&(window.opener?.postMessage(`authorization:${e}:${a}:${JSON.stringify(o)}`,n),window.removeEventListener(`message`,s))};window.addEventListener(`message`,s),window.opener?.postMessage(`authorizing:${e}`,window.location.origin)},aX=async({backendName:e,apiConfig:t,code:n,state:r})=>{let{clientId:i,tokenURL:a,includeCredentials:o=!1}=t,{origin:s,pathname:c}=new URL(window.location.href),{csrfToken:l,codeVerifier:u}=await BD.get(`sveltia-cms.auth`)??{},d=e,f=`${s}${c}`;if(await BD.delete(`sveltia-cms.auth`),!l||!u||r!==l)return iX({provider:d,error:X(`sign_in_error.CSRF_DETECTED`),errorCode:`CSRF_DETECTED`});let p,m=``,h=``,g=``;if(!KG(a))return iX({provider:d,error:X(`sign_in_error.TOKEN_REQUEST_FAILED`),errorCode:`TOKEN_REQUEST_FAILED`});try{p=await fetch(a,{method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({grant_type:`authorization_code`,client_id:i,code:n,redirect_uri:f,code_verifier:u}),...o&&{credentials:`include`}})}catch{}if(!p)return iX({provider:d,error:X(`sign_in_error.TOKEN_REQUEST_FAILED`),errorCode:`TOKEN_REQUEST_FAILED`});try{({access_token:m,refresh_token:h,error:g}=await p.json())}catch{return iX({provider:d,error:X(`sign_in_error.MALFORMED_RESPONSE`),errorCode:`MALFORMED_RESPONSE`})}return iX({provider:d,token:m,refreshToken:h,error:g})},oX=async({backendName:e,apiConfig:t})=>{QY.set(!0);let{search:n}=window.location,{code:r,state:i}=Object.fromEntries(new URLSearchParams(n));if(r&&i)await aX({backendName:e,apiConfig:t,code:r,state:i});else{let{realAuthURL:e}=await BD.get(`sveltia-cms.auth`)??{};e&&(window.location.href=e)}},sX=async({auto:e,apiConfig:t})=>{let{backend:n}=k(Nq),{name:r,site_domain:i,auth_type:a}=n,{clientId:o,authScope:s,authURL:c}=t,l={backendName:r,authURL:c,scope:s};if(r===`gitea`||a===`pkce`){let n=window.opener?.origin===window.location.origin&&window.name===`auth`;return n&&await oX({backendName:r,apiConfig:t}),n||e?void 0:rX({...l,clientId:o})}if(!e)return tX({...l,siteDomain:i})},cX=async({options:{token:e,refreshToken:t,auto:n=!1},apiConfig:r})=>{if(!e){let i=await sX({auto:n,apiConfig:r});if(!i)return;({token:e,refreshToken:t}=i)}return{token:e,refreshToken:t}}})))()}var uX,dX,fX;function pX(){return(pX=o((()=>{ZY(),qY(),lX(),uX=e=>{let{origin:t}=new URL(e);return`${t}/user/settings/applications`},dX=async e=>{let{token:t,refreshToken:n}=await cX({options:e,apiConfig:HY})??{};if(t)return XY({token:t,refreshToken:n})},fX=async()=>void 0})))()}var mX,hX;function gX(){return(gX=o((()=>{mX={service:``,label:``,owner:``,repo:``,branch:``,repoURL:``,treeBaseURL:``,blobBaseURL:``,isSelfHosted:!1,databaseName:``},hX=(e,t)=>`${e===`https://api.github.com`?`https://github.com`:e.replace(/\/api(?:\/v\d+)?(?:\/.*)?/,``)}/${t}`})))()}var _X,vX,yX,bX,xX,SX;function CX(){return(CX=o((()=>{Z(),qY(),gX(),_X={...mX},vX=null,yX=(e,t)=>({treeBaseURL:t?`${e}/src/branch/${t}`:e,blobBaseURL:t?`${e}/src/branch/${t}`:``,commitBaseURL:`${e}/commit`}),bX=async()=>{let{owner:e,repo:t}=_X;return vX??=await GY(`/repos/${e}/${t}`),vX},xX=async()=>{let{repo:e}=_X;try{let{permissions:t}=await bX();if(!t?.pull)throw Error(`Not a collaborator of the repository`,{cause:Error(X(`repository_no_access`,{values:{repo:e}}))})}catch(t){throw t instanceof Error&&t.message.includes(`Not a collaborator`)?t:Error(`Failed to check repository access`,{cause:Error(X(`repository_not_found`,{values:{repo:e}}))})}},SX=async()=>{let{repo:e,repoURL:t=``}=_X;try{let{default_branch:n}=await bX();if(!n)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(X(`repository_empty`,{values:{repo:e}}))});return Object.assign(_X,{branch:n},yX(t,n)),n}catch{throw Error(`Failed to retrieve the default branch name.`,{cause:Error(X(`repository_not_found`,{values:{repo:e}}))})}}})))()}var wX,TX;function EX(){return(EX=o((()=>{AM(),zq(),VL(),BY(),wX={create:`Create {{collection}} “{{slug}}”`,update:`Update {{collection}} “{{slug}}”`,delete:`Delete {{collection}} “{{slug}}”`,uploadMedia:`Upload “{{path}}”`,deleteMedia:`Delete “{{path}}”`,openAuthoring:`{{message}}`},TX=(e,{commitType:t=`update`,collection:n,skipCI:r=void 0})=>{let{commit_messages:i={},skip_ci:a,automatic_deployments:o}=k(Nq)?.backend??{},{email:s=``,login:c=``,name:l=``}=zY.account,[u=``]=e.map(e=>e.slug).filter(Boolean),[d,...f]=e.map(({path:e})=>e),p=n?zL(n,{useSingular:!0}):``,m=i[t]||wX[t]||``;return[`create`,`update`,`delete`].includes(t)&&(m=m.replaceAll(`{{slug}}`,u).replaceAll(`{{collection}}`,p).replaceAll(`{{path}}`,d).replaceAll(`{{author-email}}`,s).replaceAll(`{{author-login}}`,c).replaceAll(`{{author-name}}`,l)),[`uploadMedia`,`deleteMedia`].includes(t)&&(m=m.replaceAll(`{{path}}`,d).replaceAll(`{{author-email}}`,s).replaceAll(`{{author-login}}`,c).replaceAll(`{{author-name}}`,l)),[`openAuthoring`].includes(t)&&(m=m.replaceAll(`{{message}}`,t).replaceAll(`{{author-email}}`,s).replaceAll(`{{author-login}}`,c).replaceAll(`{{author-name}}`,l)),f.length&&(m+=` +${f.length}`),![`delete`,`deleteMedia`].includes(t)&&(r??(a===!0||o===!1))&&(m=`[skip ci] ${m}`),m}})))()}var DX,OX,kX;function AX(){return(AX=o((()=>{Z(),FM(),CX(),qY(),EX(),BY(),DX=async()=>{let{owner:e,repo:t,branch:n}=_X;try{let{commit:{id:r,message:i}}=await GY(`/repos/${e}/${t}/branches/${n}`);return{hash:r,message:i}}catch{throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(X(`branch_not_found`,{values:{repo:t,branch:n}}))})}},OX=async(e,t)=>{let{owner:n,repo:r,branch:i}=_X,a=TX(e,t),{name:o,email:s}=zY.account,c=new Date().toJSON(),l=await Promise.all(e.map(async({action:e,path:t,previousPath:n,previousSha:r,data:i=``})=>({operation:e===`move`?`update`:e,path:t,content:await PM(i),from_path:n,sha:r}))),{commit:u,files:d}=await GY(`/repos/${n}/${r}/contents`,{method:`POST`,body:{branch:i,author:{name:o,email:s},committer:{name:o,email:s},dates:{author:c,committer:c},message:a,files:l}});return{sha:u.sha,date:new Date(u.created),files:Object.fromEntries(d.map((t,n)=>[t?.path??e[n].path,{sha:t?.sha??``}]))}},kX=async e=>{let{owner:t,repo:n,branch:r}=_X,i=await Promise.all(e.map(e=>GY(`/repos/${t}/${n}/commits?sha=${encodeURIComponent(r??``)}&path=${encodeURIComponent(e)}&limit=100`))),a=new Map;return i.flat().forEach(e=>{a.has(e.sha)||a.set(e.sha,{sha:e.sha,authorName:e.commit?.author?.name??``,authorEmail:e.commit?.author?.email,authorAvatarURL:e.author?.avatar_url,authorLogin:e.author?.login,date:new Date(e.commit?.author?.date??e.created)})}),[...a.values()].sort((e,t)=>t.date.getTime()-e.date.getTime())}})))()}var jX,MX;function NX(){return(NX=o((()=>{Z(),RY(),CX(),qY(),jX={isForgejo:!1},MX=async()=>{let{version:e}=await GY(`/version`),t=Number.parseFloat(e),n=t>10,r=n?`Forgejo`:`Gitea`,i=n?12:LY;if(Object.assign(jX,{isForgejo:n}),Object.assign(_X,{label:r}),t<i)throw Error(`Unsupported ${r} version`,{cause:Error(X(`backend_unsupported_version`,{values:{name:r,version:i}}))})}})))()}var PX,FX,IX,LX,RX,zX,BX;function VX(){return(VX=o((()=>{FM(),RD(),AM(),_J(),hz(),jQ(),bJ(),LJ(),zq(),XL(),FJ(),PX=async({metaDB:e,lastCommitHash:t,cachedFileEntries:n,fetchFileList:r})=>{let i=k(Pq),{last_config_hash:a,last_commit_hash:o,git_config_fetched:s}=Object.fromEntries(await e.entries());if(a&&a===i&&o&&o===t&&s&&n.length)return IJ(n.map(([e,t])=>({path:e,name:NM(e).basename,...t})));let c=IJ(await r(t));return e.saveEntries(Object.entries({last_config_hash:i,last_commit_hash:t,git_config_fetched:!0})),c},FX=({allFiles:e,cachedFiles:t})=>{e.forEach(({sha:n,path:r},i)=>{t[r]?.sha===n&&Object.assign(e[i],t[r])})},IX=({fileInfo:e,fetchedFileMap:t})=>{let{meta:n,size:r,text:i}=t[e.path]??{};return{...e,size:e.size??r,text:e.text??i,meta:e.meta??n}},LX=e=>{let{name:t,meta:n={},...r}=e,i=mz(t);return{...r,...n,name:t,kind:i}},RX=({entries:e,assets:t,configFiles:n,errors:r=[]})=>{GL.set(e),Xq.set(t),yJ.set(n),KL.set(r),HL.set(!0)},zX=async({cacheDB:e,allFiles:t,cachedFiles:n,fetchingFiles:r,fetchedFileMap:i})=>{let a=new Set(t.map(({path:e})=>e)),o=Object.keys(n).filter(e=>!a.has(e));r.length&&await e.saveEntries(Object.entries(i)),o.length&&e.deleteEntries(o)},BX=async({repository:e,fetchDefaultBranchName:t,fetchLastCommit:n,fetchFileList:r,fetchFileContents:i})=>{let{databaseName:a,branch:o}=e,s=new LD(a,`meta`),c=new LD(a,`file-cache`),l=await c.entries(),u=o;u||(u=await t(),e.branch=u);let{hash:d,message:f}=await n(),p=await PX({metaDB:s,lastCommitHash:d,cachedFileEntries:l,fetchFileList:r});if(AQ.set(!f.startsWith(`[skip ci]`)),!p.count){RX({entries:[],assets:[],configFiles:[]});return}let{entryFiles:m,assetFiles:h,configFiles:g,allFiles:_}=p,v=Object.fromEntries(l);FX({allFiles:_,cachedFiles:v});let y=_.filter(({meta:e})=>!e),b=y.length?await i(y):{},{entries:x,errors:S}=await PJ(m.map(e=>IX({fileInfo:e,fetchedFileMap:b}))),C=h.map(e=>LX(IX({fileInfo:e,fetchedFileMap:b}))),w=g.map(e=>IX({fileInfo:e,fetchedFileMap:b}));RX({entries:x,assets:C,configFiles:w,errors:S}),await zX({cacheDB:c,allFiles:_,cachedFiles:v,fetchingFiles:y,fetchedFileMap:b})}})))()}var HX,UX,WX,GX,KX;function qX(){return(qX=o((()=>{FM(),AX(),NX(),CX(),qY(),VX(),XL(),HX=async e=>{let{owner:t,repo:n,branch:r}=_X,i=`/repos/${t}/${n}/git/trees/${e??r}?recursive=1`,a=[],o=1;for(;;){let{tree:e,truncated:t}=await GY(`${i}&page=${o}`);if(e&&a.push(...e),e&&t)o+=1;else break}return a.filter(({type:e})=>e===`blob`).map(({path:e,sha:t,size:n})=>({path:e,sha:t,size:n,name:NM(e).basename}))},UX=async(e,t)=>{let n=await Promise.all(e.map(async({path:e,sha:n,size:r},i)=>{let a=t[i];return[e,{sha:n,size:r??0,text:a?.content&&a.encoding===`base64`?await Kle(a.content):``,meta:{}}]}).filter(e=>!!e));return Object.fromEntries(n)},WX=async e=>{let{owner:t,repo:n,branch:r}=_X,{isForgejo:i}=jX,a=i?`/repos/${t}/${n}/git/blobs`:`/repos/${t}/${n}/file-contents?ref=${r}`,o=i?`sha`:`path`,s=e.filter(({type:e})=>e!==`asset`).map(({[o]:e})=>e);if(!s.length)return{};let c=[],l=[...s];UL.set(0);let{default_paging_num:u=30}=await GY(`/settings/api`);for(;;){let e=l.splice(0,u),t=await(i?GY(`${a}?shas=${e.join(`,`)}`):GY(a,{method:`POST`,body:{files:e}}));if(c.push(...t),UL.set(Math.ceil((s.length-l.length)/s.length*100)),!l.length)break}return UL.set(void 0),UX(e,c)},GX=async()=>{await MX(),await xX(),await BX({repository:_X,fetchDefaultBranchName:SX,fetchLastCommit:DX,fetchFileList:HX,fetchFileContents:WX})},KX=async e=>{let{owner:t,repo:n,branch:r}=_X,{path:i}=e;return GY(`/repos/${t}/${n}/media/${r}/${encodeURI(i)}`,{responseType:`blob`})}})))()}var JX,YX;function XX(){return(XX=o((()=>{wD(),AM(),pX(),AX(),RY(),qX(),CX(),qY(),gX(),zq(),Dq(),JX=()=>{let{backend:e}=k(Nq)??{};if(e?.name!==`gitea`)return;let{repo:t,branch:n,base_url:r=FY,auth_endpoint:i=IY,app_id:a=``,api_root:o=PY,include_credentials:s=!1}=e,[c,l]=t.split(`/`),u=`${c}/${l}`,d=`${yD(r)}/${yD(i)}`,f=hX(o,u);return Object.assign(_X,{service:MY,label:NY,owner:c,repo:l,branch:n,repoURL:f,tokenPageURL:uX(f),databaseName:`${MY}:${u}`,isSelfHosted:o!==PY},yX(f,n)),Object.assign(HY,{clientId:a,authScope:`read:repository,write:repository,read:user`,authURL:d,tokenURL:d.replace(`/authorize`,`/access_token`),restBaseURL:yD(o),includeCredentials:s}),Tq.devModeEnabled&&console.info(`repositoryInfo`,_X),_X},YX={isGit:!0,name:MY,label:NY,repository:_X,init:JX,signIn:dX,signOut:fX,fetchFiles:GX,fetchBlob:KX,commitChanges:OX,fetchFileCommits:kX}})))()}var ZX,QX,$X,eZ,tZ,nZ,rZ;function iZ(){return(iZ=o((()=>{ZX=`github`,QX=`GitHub`,$X=`https://api.github.com`,eZ=`https://api.netlify.com`,tZ=`auth`,nZ=`https://github.com`,rZ=`login/oauth/authorize`})))()}var aZ,oZ;function sZ(){return(sZ=o((()=>{wD(),iZ(),aZ=e=>(e=yD(e),e===`https://api.github.com`||e.endsWith(`/api/v3`)?e:e.endsWith(`/api`)?`${e}/v3`:`${e}/api/v3`),oZ=e=>(e=yD(e),e===`https://api.github.com`?`${e}/graphql`:e.endsWith(`/graphql`)?e:e.endsWith(`/api/v3`)?e.replace(`/api/v3`,`/graphql`):e.endsWith(`/api`)?`${e}/graphql`:`${e}/api/graphql`)})))()}var cZ;function lZ(){return(lZ=o((()=>{iZ(),YY(),cZ=e=>JY(e,ZX,{name:`name`,login:`login`,profileURL:`html_url`})})))()}var uZ,dZ,fZ;function pZ(){return(pZ=o((()=>{lZ(),qY(),lX(),uZ=e=>{let{origin:t}=new URL(e);return`${t}/settings/personal-access-tokens/new?${new URLSearchParams({name:`Sveltia CMS`,contents:`write`})}`},dZ=async e=>{let{token:t,refreshToken:n}=await cX({options:e,apiConfig:HY})??{};if(t)return cZ({token:t,refreshToken:n})},fZ=async()=>void 0})))()}var mZ,hZ,gZ,_Z,vZ;function yZ(){return(yZ=o((()=>{Z(),qY(),gX(),BY(),mZ={...mX},hZ=(e,t)=>({treeBaseURL:t?`${e}/tree/${t}`:e,blobBaseURL:t?`${e}/blob/${t}`:``,commitBaseURL:`${e}/commit`}),gZ=async()=>{let{owner:e,repo:t}=mZ,n=zY.account?.login,{ok:r}=await GY(`/repos/${e}/${t}/collaborators/${encodeURIComponent(n)}`,{headers:{Accept:`application/json`},responseType:`raw`});if(!r)throw Error(`Not a collaborator of the repository`,{cause:Error(X(`repository_no_access`,{values:{repo:t}}))})},_Z=`
|
|
2477
2477
|
query($owner: String!, $repo: String!) {
|
|
@@ -2620,7 +2620,7 @@ function kG(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`
|
|
|
2620
2620
|
|
|
2621
2621
|
@media (width < 768px) {height:120px;
|
|
2622
2622
|
}}h1:where(.svelte-7ua6x9) {font-size:48px;}.logo:where(.svelte-7ua6x9) ~ h1:where(.svelte-7ua6x9) {font-size:var(--sui-font-size-xxx-large);}.error:where(.svelte-7ua6x9) {border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-default);text-align:center;-webkit-user-select:text;user-select:text;cursor:text;}
|
|
2623
|
-
/* \`<SignIn>\` also has \`.message\` */.message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;ul {margin:12px 0 0;padding:0;max-height:160px;overflow-y:auto;list-style:none;}li {margin:12px;padding:0;}}}.powered-by.svelte-7ua6x9 {position:absolute;inset:auto 24px 24px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);text-align:center;}`}})))()}function xme(e,t){D(t,!0);let n=()=>A(kQ,`$backend`,i),r=()=>A(Nq,`$cmsConfig`,i),[i,a]=fn(),o=0,s=M(!1),c=M(`none`),l=async()=>{n()?.checkStatus&&N(c,await n().checkStatus(),!0)},u=()=>{l(),o=window.setInterval(()=>{l()},3e5)},d=()=>{window.clearInterval(o),N(c,`none`)},f=()=>{z(s)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?u():d())};Qs(()=>(N(s,!0),()=>{d()})),L(()=>{z(s),n(),r(),f()});var p=V(),m=F(p),h=e=>{var t=Cme(),r=F(t);{let e=j(()=>z(c)===`major`?`error`:`warning`);eo(r,()=>({"--sui-infobar-message-justify-content":`center`})),sf(r.lastChild,{get status(){return z(e)},children:(e,t)=>{mt();var r=Sme(),i=F(r),a=I(i);{let e=j(()=>X(`details`));$d(a,{variant:`link`,get label(){return z(e)},onclick:()=>{n$(n()?.statusDashboardURL)}})}R(e=>U(i,`${e??``} `),[()=>X(`backend_status.${z(c)}_incident`,{values:{service:n()?.label}})]),H(e,r)},$$slots:{default:!0}}),E(r)}H(e,t)},g=j(()=>[`minor`,`major`].includes(z(c)));W(m,e=>{z(g)&&e(h)}),H(e,p),O(),a()}var Sme,Cme;function wme(){return(wme=o((()=>{Y(),J(),Z(),of(),df(),tc(),jQ(),zq(),r$(),Sme=B(` <!>`,1),Cme=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})))()}function Tme(e,t){D(t,!0);let n=`${yV}/package.json`,r=`${yV}/dist/sveltia-cms.js`,i=0,a=0,o=M(!1),s=async()=>{try{let e=await fetch(n);if(!e.ok)return;let{version:t}=await e.json();if(!t||t===vV)return;document.querySelector(`script[src="${r}"]`)?a=window.setTimeout(()=>{N(o,!0)},6e5):console.warn(`[Sveltia CMS] A new version (${t}) is available. Update the pinned version in your script tag or package.json to upgrade.`)}catch{}};Qs(()=>(s(),i=window.setInterval(()=>{s()},36e5),()=>{window.clearInterval(i),window.clearTimeout(a)}));var c=V(),l=F(c),u=e=>{var t=Dme(),n=F(t);eo(n,()=>({"--sui-infobar-message-justify-content":`center`})),sf(n.lastChild,{children:(e,t)=>{mt();var n=Eme(),r=F(n),i=I(r);{let e=j(()=>X(`update_now`));$d(i,{variant:`link`,get label(){return z(e)},onclick:()=>{window.location.reload()}})}R(e=>U(r,`${e??``} `),[()=>X(`update_available`)]),H(e,n)},$$slots:{default:!0}}),E(n),H(e,t)};W(l,e=>{z(o)&&e(u)}),H(e,c),O()}var Eme,Dme;function Ome(){return(Ome=o((()=>{Y(),J(),Z(),of(),df(),tc(),bV(),Eme=B(` <!>`,1),Dme=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})))()}var kme;function Ame(){return(Ame=o((()=>{kme={create:`New`,select:`Select`,select_all:`Select All`,upload:`Upload`,copy:`Copy`,download:`Download`,duplicate:`Duplicate`,delete:`Delete`,reorder:`Reorder`,cancel:`Cancel`,done:`Done`,save:`Save`,saving:`Saving…`,publish:`Publish`,publishing:`Publishing…`,rename:`Rename`,update:`Update`,replace:`Replace`,add:`Add`,remove:`Remove`,clear:`Clear`,expand:`Expand`,expand_all:`Expand All`,collapse:`Collapse`,collapse_all:`Collapse All`,insert:`Insert`,restore:`Restore`,discard:`Discard`,searching:`Searching…`,no_results:`No results found.`,global:`Global`,primary:`Primary`,secondary:`Secondary`,collection:`Collection`,folder:`Folder`,api_key:`API Key`,details:`Details`,back:`Back`,loading:`Loading…`,later:`Later`,slug:`Slug`,singleton:`Singleton`,singletons:`Singletons`,clipboard_error:`Couldn’t copy to clipboard.`,welcome_message:`Welcome to {$name}`,powered_by:`Powered by {$name}`,loading_cms_config:`Loading CMS Configuration…`,loading_site_data:`Loading Site Data…`,loading_site_data_error:`There was an error while loading site data.`,sign_in_with_x:`Sign In with {$service}`,sign_in_using_access_token:`Sign In Using Access Token`,sign_in_using_access_token_description:`Enter your token below. It must have read/write access to the repository content.`,sign_in_using_access_token_link:`You can generate a token on the <a>{$service} user settings page</a>.`,personal_access_token:`Personal Access Token`,authorizing:`Authorizing…`,signing_in:`Signing in…`,work_with_local_repo:`Work with Local Repository`,work_with_local_repo_description:`Once prompted, select the root directory of the “{$repo}” repository.`,work_with_local_repo_description_no_repo:`Once prompted, select the root directory of your Git repository.`,work_with_test_repo:`Work with Test Repository`,sign_in_error:{not_project_root:`The selected folder is not a repository root directory. Please try again.`,picker_dismissed:`A repository root directory could not be selected. Please try again.`,authentication_aborted:`Authentication aborted. Please try again.`,invalid_token:`The provided token is invalid. Please check and try again.`,UNSUPPORTED_BACKEND:`Your Git backend is not supported by the authenticator.`,UNSUPPORTED_DOMAIN:`Your domain is not allowed to use the authenticator.`,MISCONFIGURED_CLIENT:`OAuth app client ID or secret is not configured.`,AUTH_CODE_REQUEST_FAILED:`Failed to receive an authorization code. Please try again later.`,CSRF_DETECTED:`Potential CSRF attack detected. Authentication flow aborted.`,TOKEN_REQUEST_FAILED:`Failed to request an access token. Please try again later.`,TOKEN_REFRESH_FAILED:`Failed to refresh the access token. Please try again later.`,MALFORMED_RESPONSE:`Server responded with malformed data. Please try again later.`},backend_unsupported_version:`The {$name} backend requires {$name} {$version} or later.`,repository_no_access:`You don’t have access to the “{$repo}” repository.`,repository_not_found:`The “{$repo}” repository doesn’t exist.`,repository_empty:`The “{$repo}” repository has no branches.`,branch_not_found:`The “{$repo}” repository doesn’t have the “{$branch}” branch.`,unexpected_error:`Unexpected Error`,entry_parse_errors:`.input {$count :integer} .match $count one {{There was an error while parsing an entry file. Check the browser console for details.}} * {{There were errors while parsing entry files. Check the browser console for details.}}`,username:`Username`,password:`Password`,sign_in:`Sign In`,sign_in_with_mobile:`Sign In with Mobile`,sign_in_with_mobile_instruction:`Scan the QR code below with your phone or tablet for passwordless sign-in. Your settings will be automatically copied.`,signed_in_as_x:`Signed In as {$name}`,working_with_local_repo:`Working with Local Repository`,working_with_test_repo:`Working with Test Repository`,sign_out:`Sign Out`,install_as_app:`Install as App`,contents:`Contents`,assets:`Assets`,editorial_workflow:`Editorial Workflow`,cms_config:`CMS Configuration`,menu:`Menu`,mobile_promo_title:`Sveltia CMS is now available on mobile!`,mobile_promo_button:`Give it a try`,new_language_available:`Sveltia CMS is now available in {$locale}!`,change_language:`Change Language`,switching_language:`Switching to {$locale}…`,locale_load_failed:`Couldn’t load the {$locale} translation. Please try again later.`,visit_live_site:`Visit Live Site`,switch_page:`Switch Page`,search_placeholder_contents:`Search for contents…`,search_placeholder_assets:`Search for assets…`,search_placeholder_all:`Search for contents and assets…`,create_entry_or_assets:`Create Entry or Assets`,publish_changes:`Publish Changes`,publishing_changes:`Publishing Changes…`,publishing_changes_failed:`Couldn’t publish changes. Please try again.`,show_notifications:`Show Notifications`,notifications:`Notifications`,show_account_menu:`Show Account Menu`,account:`Account`,live_site:`Live Site`,git_repository:`Git Repository`,settings:`Settings`,show_help_menu:`Show Help Menu`,help:`Help`,keyboard_shortcuts:`Keyboard Shortcuts`,documentation:`Documentation`,release_notes:`Release Notes`,announcements:`Announcements`,version_x:`Version {$version}`,report_issue:`Report Issue`,share_feedback:`Share Feedback`,get_help:`Get Help`,donate:`Donate`,join_discord:`Join Us on Discord`,bluesky:`Follow Us on Bluesky`,update_available:`The latest version of Sveltia CMS is available.`,update_now:`Update Now`,backend_status:{minor_incident:`{$service} is experiencing a minor incident. Your workflow may be affected.`,major_incident:`{$service} is experiencing a major incident. You may want to wait until the situation has improved.`},content_library:`Content Library`,asset_library:`Asset Library`,collections:`Collections`,entries:`Entries`,files:`Files`,asset_location:{repository:`Your Site`,external:`External Locations`,stock_photos:`Stock Photos`},collection_assets:`Collection Assets`,entry_list:`Entry List`,file_list:`File List`,asset_list:`Asset List`,x_collection:`“{$collection}” Collection`,x_asset_folder:`“{$folder}” Asset Folder`,viewing_collection_list:`You’re now viewing the collection list.`,viewing_asset_folder_list:`You’re now viewing the asset folder list.`,viewing_x_collection:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$collection}” collection, which has no entries yet.}} one {{You’re now viewing the “{$collection}” collection, which has one entry.}} * {{You’re now viewing the “{$collection}” collection, which has {$count} entries.}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$folder}” asset folder, which has no assets yet.}} one {{You’re now viewing the “{$folder}” asset folder, which has one asset.}} * {{You’re now viewing the “{$folder}” asset folder, which has {$count} assets.}}`,singleton_selected_announcement:`Press Enter to edit the “{$file}” file.`,collection_not_found:`Collection not found.`,file_not_found:`File not found.`,x_of_x_selected:`{$selected} of {$total} selected`,switch_view:`Switch View`,list_view:`List View`,grid_view:`Grid View`,switch_to_list_view:`Switch to List View`,switch_to_grid_view:`Switch to Grid View`,sort:`Sort`,sorting_options:`Sorting Options`,sort_keys:{none:`None`,name:`Name`,slug:`Slug`,commit_author:`Updated by`,commit_date:`Updated on`,_summary:`Summary`,_manual:`Manual`},ascending:`{$label}, A to Z`,ascending_date:`{$label}, old to new`,descending:`{$label}, Z to A`,descending_date:`{$label}, new to old`,filter:`Filter`,filtering_options:`Filtering Options`,group:`Group`,grouping_options:`Grouping Options`,type:`Type`,all:`All`,image:`Image`,video:`Video`,audio:`Audio`,document:`Document`,other:`Other`,show_assets:`Show Assets`,hide_assets:`Hide Assets`,show_info:`Show Info`,hide_info:`Hide Info`,all_assets:`All Assets`,global_assets:`Global Assets`,entry_not_found:`Entry not found.`,creating_entries_disabled_by_admin:`Creating new entries in this collection is disabled by the administrator.`,creating_entries_disabled_by_quota:`You cannot add new entries to this collection because it has reached its limit of {$quota} entries.`,creating_entries_nearing_quota:`.input {$remaining :integer} .match $remaining one {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entry.}} * {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entries.}}`,back_to_collection:`Back to Collection`,collection_list:`Collection List`,back_to_collection_list:`Back to Collection List`,asset_folder_list:`Asset Folder List`,back_to_asset_folder_list:`Back to Asset Folder List`,search_results:`Search Results`,search_results_for_x:`Search Results for “{$terms}”`,viewing_entry_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any entries.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one entry.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} entries.}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any assets.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one asset.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} assets.}}`,x_entries:`.input {$count :integer} .match $count 0 {{No entries}} one {{{$count} entry}} * {{{$count} entries}}`,x_assets:`.input {$count :integer} .match $count 0 {{No assets}} one {{{$count} asset}} * {{{$count} assets}}`,no_files_found:`No files found.`,no_entries_found:`No entries found.`,upload_assets:`Upload New Assets`,edit_options:`Edit Options`,show_edit_options:`Show Edit Options`,edit_asset:`Edit Asset`,edit_x:`Edit {$name}`,wrap_long_lines:`Wrap Long Lines`,rename_asset:`Rename Asset`,rename_x:`Rename {$name}`,enter_new_name_for_asset:`.input {$count :integer} .match $count 0 {{Enter a new name below.}} one {{Enter a new name below. An entry using the asset will also be updated.}} * {{Enter a new name below. {$count} entries using the asset will also be updated.}}`,enter_new_name_for_asset_error:{empty:`File name cannot be empty.`,character:`File name cannot contain special characters.`,duplicate:`This file name is used for another asset.`},change_file_extension:`Change File Extension`,confirm_file_extension_change:{change:`Are you sure you want to change the extension from “.{$oldExtension}” to “.{$newExtension}”?`,add:`Are you sure you want to add the extension “.{$newExtension}”?`,remove:`Are you sure you want to remove the extension “.{$oldExtension}”?`},file_extension_change_warning:`The file may not be displayed or handled correctly if the extension doesn’t match the actual file format.`,replace_asset:`Replace Asset`,replace_x:`Replace {$name}`,click_to_browse:`Click to browse…`,tap_to_browse:`Tap to browse…`,drop_files_or_click_to_browse:`.input {$count :integer} .match $count one {{Drop a file here or click to browse…}} * {{Drop files here or click to browse…}}`,drop_files_or:`.input {$count :integer} .match $count one {{Drop a file here or}} * {{Drop files here or}}`,drop_image_files_or:`.input {$count :integer} .match $count one {{Drop an image file here or}} * {{Drop image files here or}}`,browse:`Browse`,paste:`Paste`,paste_image:`Paste Image`,no_image_in_clipboard:`No image found in clipboard.`,clipboard_access_denied:`Clipboard access denied.`,drop_files_here:`.input {$count :integer} .match $count one {{Drop a file here}} * {{Drop files here}}`,unsupported_file_type:`Unsupported File Type`,dropped_file_type_mismatch:`The dropped file is not one of the following types: {$types}. Please try again.`,dropped_image_type_mismatch:`The dropped file is not supported. Only an image of the following types is accepted: {$types}. Please try again.`,choose_files:`.input {$count :integer} .match $count one {{Choose File}} * {{Choose Files}}`,delete_assets:`.input {$count :integer} .match $count one {{Delete Asset}} * {{Delete Assets}}`,delete_selected_assets:`.input {$count :integer} .match $count one {{Delete Selected Asset}} * {{Delete Selected Assets}}`,confirm_deleting_this_asset:`Are you sure you want to delete this asset?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected asset?}} * {{Are you sure you want to delete the selected {$count} assets?}}`,confirm_deleting_all_assets:`Are you sure you want to delete all the assets?`,delete_entries:`.input {$count :integer} .match $count one {{Delete Entry}} * {{Delete Entries}}`,delete_selected_entries:`.input {$count :integer} .match $count one {{Delete Selected Entry}} * {{Delete Selected Entries}}`,confirm_deleting_this_entry:`Are you sure you want to delete this entry?`,confirm_deleting_this_entry_with_assets:`Are you sure you want to delete this entry and associated assets?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry?}} * {{Are you sure you want to delete the selected {$count} entries?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry and associated assets?}} * {{Are you sure you want to delete the selected {$count} entries and associated assets?}}`,confirm_deleting_all_entries:`Are you sure you want to delete all the entries?`,confirm_deleting_all_entries_with_assets:`Are you sure you want to delete all the entries and associated assets?`,reorder_entries:`Reorder Entries`,done_reordering_entries:`Done Reordering Entries`,cancel_reordering_entries:`Cancel Reordering Entries`,saving_reorder_failed:`Failed to save new entry order. Please try again.`,processing_files:`.input {$count :integer} .match $count one {{Processing a file. This may take a while.}} * {{Processing files. This may take a while.}}`,uploading_files:`Uploading Files`,confirm_replacing_file:`“{$name}” will be replaced with this file:`,confirm_uploading_files:`.input {$count :integer} .match $count one {{This file will be saved to the “{$folder}” folder:}} * {{These {$count} files will be saved to the “{$folder}” folder:}}`,oversized_files:`Oversized Files`,warning_oversized_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it exceeds the maximum size of {$size}. Please reduce the size or select a different file.}} * {{These files cannot be uploaded because they exceed the maximum size of {$size}. Please reduce the sizes or select different files.}}`,invalid_files:`Invalid Files`,warning_invalid_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it’s damaged, or its content doesn’t match its file extension. This often happens when a photo is renamed rather than converted, such as a HEIC image saved as a JPEG file. Please convert the file and try again.}} * {{These files cannot be uploaded because they’re damaged, or their content doesn’t match their file extensions. This often happens when photos are renamed rather than converted, such as HEIC images saved as JPEG files. Please convert the files and try again.}}`,file_name_conflict_confirmation:`.input {$count :integer} .match $count one {{A file with the same name already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_confirmation_with_name:`.input {$count :integer} .input {$name :string} .match $count one {{A file named “{$name}” already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_resolution:`File Name Conflict Resolution`,keep_both:`Keep Both`,uploading_files_progress:`Uploading…`,uploading_files_failed:`Upload failed.`,file_meta:`{$type} · {$size}`,file_meta_converted_from_x:`(converted from {$type})`,no_entries_created:`This collection has no entries yet.`,create_new_entry:`Create New Entry`,entry:`Entry`,index_file:`Index File`,no_files_in_collection:`No files available in this collection.`,duplicate_entry:`Duplicate Entry`,entry_duplicated:`Entry duplicated as a new draft.`,entry_validation_errors:`.input {$count :integer} .match $count one {{One field has an error. Please correct it to save the entry.}} * {{{$count} fields have errors. Please correct them to save the entry.}}`,entry_saved:`.input {$count :integer} .match $count one {{Entry saved.}} * {{{$count} entries saved.}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{Entry saved and published.}} * {{{$count} entries saved and published.}}`,entries_deleted:`.input {$count :integer} .match $count one {{Entry deleted.}} * {{{$count} entries deleted.}}`,assets_saved:`.input {$count :integer} .match $count one {{Asset saved.}} * {{{$count} assets saved.}}`,assets_saved_and_published:`.input {$count :integer} .match $count one {{Asset saved and published.}} * {{{$count} assets saved and published.}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{URL copied to clipboard.}} * {{{$count} URLs copied to clipboard.}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{File path copied to clipboard.}} * {{{$count} file paths copied to clipboard.}}`,asset_data_copied:`.input {$count :integer} .match $count one {{File data copied to clipboard.}} * {{{$count} files’ data copied to clipboard.}}`,assets_downloaded:`.input {$count :integer} .match $count one {{Asset downloaded.}} * {{{$count} assets downloaded.}}`,assets_moved:`.input {$count :integer} .match $count one {{Asset moved.}} * {{{$count} assets moved.}}`,assets_renamed:`.input {$count :integer} .match $count one {{Asset renamed.}} * {{{$count} assets renamed.}}`,assets_deleted:`.input {$count :integer} .match $count one {{Asset deleted.}} * {{{$count} assets deleted.}}`,content_editor:`Content Editor`,restore_backup_title:`Restore Draft`,restore_backup_description:`This entry has a backup from {$datetime}. Do you want to restore the edited draft?`,draft_backup_saved:`Draft backup saved.`,draft_backup_restored:`Draft backup restored.`,draft_backup_deleted:`Draft backup deleted.`,cancel_editing:`Cancel Editing`,create_entry_title:`Creating {$name}`,create_entry_announcement:`You’re now creating a new entry in the “{$collection}” collection.`,edit_entry_title:`{$collection} › {$entry}`,edit_entry_announcement:`You’re now editing the “{$entry}” entry in the “{$collection}” collection.`,edit_file_announcement:`You’re now editing the “{$file}” file in the “{$collection}” collection.`,edit_singleton_announcement:`You’re now editing the “{$file}” file.`,save_and_publish:`Save and Publish`,save_without_publishing:`Save without Publishing`,show_editor_options:`Show Editor Options`,editor_options:`Editor Options`,show_preview:`Show Preview`,sync_scrolling:`Sync Scrolling`,switch_locale:`Switch Locale`,locale_content_disabled_short:`(disabled)`,locale_content_error_short:`(error)`,edit:`Edit`,preview:`Preview`,swap_panes:`Swap Panes`,edit_x_locale:`Edit {$locale} Content`,preview_x_locale:`Preview {$locale} Content`,content_preview:`Content Preview`,show_content_options_x_locale:`Show {$locale} Content Options`,content_options_x_locale:`{$locale} Content Options`,x_field:`“{$field}” Field`,show_field_options:`Show Field Options`,field_options:`Field Options`,unsupported_field_type_x:`Unsupported field type: {$name}`,enable_x_locale:`Enable {$locale}`,reenable_x_locale:`Reenable {$locale}`,disable_x_locale:`Disable {$locale}`,locale_x_has_been_disabled:`The {$locale} content has been disabled.`,locale_x_now_disabled:`The {$locale} content is now disabled. It will be deleted when you save the entry.`,view_in_repository:`View in Repository`,view_on_x:`View on {$service}`,view_on_live_site:`View on Live Site`,copy_from:`Copy from…`,copy_from_x:`Copy from {$locale}`,translation_options:`Translation Options`,translate:`Translate`,translate_fields:`.input {$count :integer} .match $count one {{Translate Field}} * {{Translate Fields}}`,translate_from:`Translate from…`,translate_from_x:`Translate from {$locale}`,revert_changes:`Revert Changes`,revert_all_changes:`Revert All Changes`,edit_slug:`Edit Slug`,edit_slug_warning:`Changing the slug may break internal and external links to the entry. Currently, Sveltia CMS does not update references created with Relation fields, so you’ll need to manually update such references along with other links.`,edit_slug_error:{empty:`The slug cannot be empty.`,invalid:`The slug cannot contain special characters, including slashes and spaces.`,duplicate:`This slug is used for another entry.`},required:`Required`,editor:{translation:{none:`Nothing to translate.`,started:`Translating…`,error:`Translation failed.`,complete:`.input {$count :integer} .match $count 0 {{No fields translated from {$source}.}} one {{Field translated from {$source}.}} * {{{$count} fields translated from {$source}.}}`},copy:{none:`Nothing to copy.`,complete:`.input {$count :integer} .match $count 0 {{No fields copied from {$source}.}} one {{Field copied from {$source}.}} * {{{$count} fields copied from {$source}.}}`}},validation:{value_missing:`This field is required.`,range_underflow:{"datetime-local":`The date/time must be at or after {$min}.`,date:`The date must be on or after {$min}.`,time:`The time must be at or after {$min}.`,number:`The value must be greater than or equal to {$min}.`,select:`.input {$min :integer} .match $min one {{You must select at least {$min} option.}} * {{You must select at least {$min} options.}}`,add:`.input {$min :integer} .match $min one {{You must add at least {$min} item.}} * {{You must add at least {$min} items.}}`},range_overflow:{"datetime-local":`The date/time must be at or before {$max}.`,date:`The date must be on or before {$max}.`,time:`The time must be at or before {$max}.`,number:`The value must be less than or equal to {$max}.`,select:`.input {$max :integer} .match $max one {{You cannot select more than {$max} option.}} * {{You cannot select more than {$max} options.}}`,add:`.input {$max :integer} .match $max one {{You cannot add more than {$max} item.}} * {{You cannot add more than {$max} items.}}`},too_short:`.input {$min :integer} .match $min one {{You must enter at least {$min} character.}} * {{You must enter at least {$min} characters.}}`,too_long:`.input {$max :integer} .match $max one {{You cannot enter more than {$max} character.}} * {{You cannot enter more than {$max} characters.}}`,type_mismatch:{number:`Please enter a number.`,email:`Please enter a valid email.`,url:`Please enter a valid URL.`},invalid_value:`Invalid value.`,unexpected_error:`Unexpected error occurred.`},entry_sidebar:{sidebar_panels:`Sidebar Panels`,validation:{title:`Validation`,placeholder:`Validation results will be shown here.`,no_errors_found:`No errors found.`},history:{title:`History`,fetch_failed:`Failed to load history.`,no_history:`No history found.`},backlinks:{title:`Backlinks`,no_entries:`No entries are referencing this entry.`}},saving_entry:{error:{title:`Error`,description:`There was an error while saving the entry. Please try again later.`}},viewing_x_asset_details:`You’re viewing the details of the “{$name}” asset.`,asset_editor:`Asset Editor`,preview_unavailable:`Preview Unavailable.`,public_urls:`.input {$count :integer} .match $count one {{Public URL}} * {{Public URLs}}`,file_paths:`.input {$count :integer} .match $count one {{File Path}} * {{File Paths}}`,file_data:`File Data`,asset_info:`Asset Info`,select_asset_show_info:`Select an asset to show its info.`,kind:`Kind`,size:`Size`,dimensions:`Dimensions`,duration:`Duration`,used_in:`Used in`,created_date:`Created Date`,location:`Location`,map_lat_lng:`Map showing latitude {$latitude}, longitude {$longitude}`,remove_this_item:`Remove This Item`,move_up:`Move Up`,move_down:`Move Down`,add_x:`Add {$name}`,add_item_above:`Add Item Above`,add_item_below:`Add Item Below`,select_list_type:`Select List Type`,unknown_variable_type:`This item can’t be displayed due to an unknown type. Check the browser console for details.`,opacity:`Opacity`,unselected_option:`(None)`,assets_dialog:{title:{file:`Select File`,image:`Select Image`},search_for_file:`Search for Files`,search_for_image:`Search for Images`,locations:`Locations`,folder:{field:`Field Assets`,entry:`Entry Assets`,file:`File Assets`,collection:`Collection Assets`,global:`Global Assets`},error:{invalid_key:`Your API key is invalid or expired. Please double-check and try again.`,search_fetch_failed:`There was an error while searching assets. Please try again later.`,image_fetch_failed:`There was an error while downloading the selected asset. Please try again later.`},available_images:`Available Images`,enter_url:`Enter URL`,enter_file_url:`Enter URL of the file:`,enter_image_url:`Enter URL of the image:`,large_file:{title:`Large File`},invalid_file:{title:`Invalid File`},rejected_files:{title:`Files Cannot Be Uploaded`},photo_credit:{title:`Photo Credit`,description:`Use the following credit if possible:`},unsaved:`Unsaved`},character_counter:{min_max:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}. Maximum: {$max}.}} one {{{$count} character entered. Minimum: {$min}. Maximum: {$max}.}} * {{{$count} characters entered. Minimum: {$min}. Maximum: {$max}.}}`,min:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}.}} one {{{$count} character entered. Minimum: {$min}.}} * {{{$count} characters entered. Minimum: {$min}.}}`,max:`.input {$count :integer} .match $count 0 {{No character entered. Maximum: {$max}.}} one {{{$count} character entered. Maximum: {$max}.}} * {{{$count} characters entered. Maximum: {$max}.}}`},youtube_video_player:`YouTube video player`,today:`Today`,now:`Now`,editor_components:{image:`Image`,src:`Source`,alt:`Alt Text`,title:`Title`,link:`Link`},key_value:{key:`Key`,value:`Value`,action:`Action`,empty_key:`Key is required.`,duplicate_key:`Key must be unique.`},find_place:`Find a Place`,use_your_location:`Use Your Location`,geolocation_error_title:`Geolocation Error`,geolocation_error_body:`There was an error while retrieving your location.`,geolocation_unsupported:`Geolocation API is not supported by this browser.`,boolean:{true:`Yes`,false:`No`},cloud_storage:{invalid:`The service is not configured properly.`,auth:{api_key:{key_label:`API Key`,initial:`Enter your {$key} for {$service}.`,requested:`Validating…`,error:`The provided {$key} is invalid. Please double-check and try again.`},password:{initial:`Enter your password for {$service}.`,requested:`Signing in…`,error:`Username or password is incorrect. Please double-check and try again.`}},cloudinary:{iframe_title:`Cloudinary media library`,activate:{button_label:`Activate Cloudinary`,description:`After signing in, click the Sign In button again to continue.`},auth_key_label:`API Secret`,open_library:`Open Cloudinary`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`Secret Access Key`},cloudflare_r2:{auth_key_label:`Secret Access Key`},digitalocean_spaces:{auth_key_label:`Secret Access Key`}},config:{errors:`.input {$count :integer} .match $count one {{There is an error in the CMS configuration. Please solve the issue and try again.}} * {{There are errors in the CMS configuration. Please solve the issues and try again.}}`,error_locator:{collection:`{$collection} collection`,file:`{$file} file`,component:`{$component} component`,field:"`{$field}` field"},error:{no_secure_context:`Sveltia CMS only works with HTTPS or localhost URLs.`,insecure_urls:`.input {$count :integer} .match $count one {{The configuration file URL must use HTTPS protocol or a localhost address.}} * {{The configuration file URLs must use HTTPS protocol or localhost addresses.}}`,fetch_failed:`The configuration file could not be retrieved.`,fetch_failed_not_ok:`HTTP response returned with status {$status}.`,fetch_failed_with_manual_init:"The configuration file could not be retrieved. To prevent the `config.yml` file from loading, add <a>`load_config_file: false`</a> to the configuration object passed to `CMS.init()`.",parse_failed:`The configuration file could not be parsed.`,parse_failed_invalid_object:`The configuration file is not a valid JavaScript object.`,parse_failed_unsupported_type:`The configuration file is not a valid file type. Only YAML, TOML and JSON are supported.`,no_collection:`Collections are not defined.`,missing_backend:`The backend is not defined.`,missing_backend_name:`The backend name is not defined.`,unsupported_known_backend:`The {$name} backend is <a>not supported</a> in Sveltia CMS.`,unsupported_deprecated_backend:`The deprecated {$name} backend is <a>not supported</a> in Sveltia CMS.`,unsupported_custom_backend:`Custom backends are <a>not supported</a> in Sveltia CMS.`,unsupported_backend_suggestion:`Use one of the <a>supported backends</a> instead.`,missing_repository:`The repository is not defined.`,invalid_repository:`The configured repository is invalid. It must be in “owner/repo” format.`,oauth_implicit_flow:`The configured authentication method (implicit flow) is not supported in Sveltia CMS. Use a different <a>authentication method</a> instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHub’s limitations. Use a different <a>authentication method</a> instead.`,oauth_no_app_id:`OAuth application ID is not defined.`,no_auth_methods:"The `auth_methods` option must contain at least one method.",missing_media_folder:`The media folder is not defined.`,invalid_media_folder:`The configured media folder is invalid. It must be a string.`,invalid_public_folder:`The configured public folder is invalid. It must be a string.`,public_folder_relative_path:`The configured public folder is invalid. It must be an absolute path starting with “/”.`,public_folder_absolute_url:`An absolute URL for the public folder option is not supported in Sveltia CMS.`,invalid_asset_collections:"The `asset_collections` option is invalid. It must be an array.",missing_asset_collection_name:"The asset collection {$count} must have the `name` option defined as a non-empty string.",invalid_asset_collection_name:"The asset collection name `{$name}` is invalid. It must not contain special characters.",duplicate_asset_collection_name:"Asset collection names must be unique, but `{$name}` is used more than once.",asset_collection_invalid_media_folder:"The `{$name}` asset collection must have the `media_folder` option defined as a string.",invalid_collection_no_options:"The collection must have either the `folder`, `files` or `divider` option defined.",invalid_collection_multiple_options:"The collection cannot have the `folder`, `files` and `divider` options together.",file_format_mismatch:"The `{$extension}` extension doesn’t match the `{$format}` format.",invalid_slug_slash:"The slug template `{$slug}` is invalid as it cannot contain slashes. To organize entries in subfolders, use the `path` option instead of `slug`.",invalid_reorder_group:"The `reorder` option refers to a view group named `{$name}`, but no such group is defined in the `view_groups` option.",invalid_sortable_field:"The `sortable_fields` option refers to a field named `{$name}`, but no such field is defined in the collection.",invalid_view_group_field:"The `view_groups` option refers to a field named `{$name}`, but no such field is defined in the collection.",invalid_view_filter_field:"The `view_filters` option refers to a field named `{$name}`, but no such field is defined in the collection.",missing_view_group_name:"The view group {$count} must have the `name` option defined as a non-empty string.",invalid_view_group_name:"The view group name `{$name}` is invalid. It must not contain special characters.",duplicate_view_group_name:"View group names must be unique, but `{$name}` is used more than once.",missing_view_filter_name:"The view filter {$count} must have the `name` option defined as a non-empty string.",invalid_view_filter_name:"The view filter name `{$name}` is invalid. It must not contain special characters.",duplicate_view_filter_name:"View filter names must be unique, but `{$name}` is used more than once.",missing_collection_name:"The collection {$count} must have the `name` option defined as a non-empty string.",invalid_collection_name:"The collection name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_name:"Collection names must be unique, but `{$name}` is used more than once.",missing_collection_file_name:"The collection file {$count} must have the `name` option defined as a non-empty string.",invalid_collection_file_name:"The collection file name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_file_name:"Collection file names must be unique, but `{$name}` is used more than once.",collection_no_fields:"The collection must have the `fields` option defined with at least one field.",collection_file_no_fields:"The collection file must have the `fields` option defined with at least one field.",collection_file_i18n_required:"The collection file must have the `i18n` option defined if the `locale` placeholder is used in the `file` path.",missing_field_name:"The field {$count} must have the `name` option defined as a non-empty string.",invalid_field_name:"The field name `{$name}` is invalid. It must not contain special characters. If you want to nest fields, <a>use Object fields instead of dot notation</a>.",duplicate_field_name:"Field names must be unique, but `{$name}` is used more than once.",missing_variable_type:"The variable type {$count} must have the `name` option defined as a non-empty string.",invalid_variable_type:"The variable type name `{$name}` is invalid. It must not contain special characters.",duplicate_variable_type:"Variable type names must be unique, but `{$name}` is used more than once.",date_field_type:"The deprecated Date field type is not supported in Sveltia CMS. Use the DateTime field type with the `type: date` option instead.",invalid_timezone:"Invalid timezone: {$timeZone}. Must be a valid IANA timezone identifier like `America/New_York` or `Asia/Tokyo`.",unsupported_deprecated_option:"The deprecated `{$prop}` option is not supported in Sveltia CMS. Use the `{$newProp}` option instead.",allow_multiple:"The `allow_multiple` option is not supported in Sveltia CMS. Use the `multiple` option instead, which defaults to `false`.",invalid_list_field:"The List field cannot have the `field`, `fields` and `types` options together.",invalid_list_variable_type:"The List field’s variable type is invalid. The `widget` option is set to `{$widget}` but it must be `object`.",invalid_object_field:"The Object field cannot have the `fields` and `types` options together.",object_field_missing_fields:"The Object field must have either the `fields` or `types` option defined.",relation_field_invalid_collection:"The referenced `{$collection}` collection is invalid or not defined.",relation_field_invalid_collection_file:"The referenced `{$file}` file is invalid or not defined.",relation_field_missing_file_name:"The `file` option must be defined for a relation to a file collection.",relation_field_invalid_value_field:"The referenced value field `{$field}` is invalid or not defined.",unexpected:`Unexpected error`},warning:{oauth_no_app_id:`OAuth application ID is not defined. Users are required to provide an access token to sign in.`,editorial_workflow_unsupported:`Editorial workflow is not yet supported in Sveltia CMS.`,open_authoring_unsupported:`Open authoring is not yet supported in Sveltia CMS.`,nested_collections_unsupported:`Nested collections are not yet supported in Sveltia CMS.`,unsupported_ignored_option:"The `{$prop}` option is not supported in Sveltia CMS. It will be ignored.",conflicting_timezone_options:"Both `picker_utc` and newer timezone options (`input_timezone` or `output_utc`) are set. The new options take precedence. Consider removing `picker_utc` from your configuration."},compatibility_link:`See the compatibility notes for details: {$link}`,schema_tip:`For a better developer experience, you can validate your configuration file against the JSON schema of Sveltia CMS. See {$link} for details.`},local_workflow:{indicator:`Local`,unsupported_browser:`Local Workflow is not supported in your browser. Please use Chrome or Edge instead.`,disabled:`Local Workflow is disabled in your browser. <a>Here’s how to enable it</a>.`},status:{drafts:`Drafts`,in_review:`In Review`,ready:`Ready`},categories:`Categories`,site_configuration_editor:`Site Configuration Editor`,prefs:{changes:{api_key_saved:`API key saved.`,api_key_removed:`API key removed.`,api_key_invalid:`The provided API key is invalid. Please double-check and try again.`},error:{permission_denied:`Cookie storage access has been denied. Please check your browser permissions and try again.`},appearance:{title:`Appearance`,theme:`Theme`,select_theme:`Select Theme`},theme:{auto:`Auto`,dark:`Dark`,light:`Light`},language:{title:`Language`,ui_language:{title:`User Interface Language`,select_language:`Select Language`}},contents:{title:`Contents`,editor:{title:`Editor`,use_draft_backup:{switch_label:`Automatically back up entry drafts`},close_on_save:{switch_label:`Close the editor after saving a draft`},close_with_escape:{switch_label:`Close the editor with the Escape key`}}},i18n:{title:`Internationalization`,translators:{default:{title:`Default Translation Service`,select_service:`Select Service`},api_keys:{title:`Translation Service API Keys`,description:`Manage API keys for <a>translation services</a>.`},field_label:`{$service} Key`,description:`Sign up for <a {$homeHref}>{$service}</a> and enter <a {$apiKeyHref}>your API Key</a> here to enable quick translation of text entry fields.`}},media:{title:`Media`,stock_photos:{api_keys:{title:`Stock Photo Service API Keys`,description:`Manage API keys for <a>stock photo services</a>.`},field_label:`{$service} API Key`,description:`Sign up for <a {$homeHref}>{$service} API</a> and enter <a {$apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.`,credit:`Photos provided by {$service}`,no_services:`No <a>stock photo services</a> are configured.`},cloud_storage:{api_keys:{title:`Cloud Storage Service API Keys`,description:`Manage API keys for <a>cloud storage services</a>.`},field_label:`{$service} API Key`,no_services:`No <a>cloud storage services</a> are configured.`}},accessibility:{title:`Accessibility`,underline_links:{title:`Underline Links`,description:`Show underline for links in the entry preview and user interface labels.`,switch_label:`Always Underline Links`}},advanced:{title:`Advanced`,beta:{title:`Beta Features`,description:`Enable some beta features that may be unstable or unlocalized.`,switch_label:`Join Beta Program`},developer_mode:{title:`Developer Mode`,description:`Enable some developer-oriented features, including detailed console logs and native context menus.`,switch_label:`Enable Developer Mode`},deploy_hook:{title:`Deploy Hook`,description:`Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.`,url:{field_label:`Hook URL`,saved:`Hook URL saved.`,removed:`Hook URL removed.`},auth:{field_label:`Authorization header (e.g., Bearer <token>) (optional)`,saved:`Authorization header saved.`,removed:`Authorization header removed.`}}}},keyboard_shortcuts_:{view_content_library:`View Content Library`,view_asset_library:`View Asset Library`,search:`Search for entries and assets`,create_entry:`Create a new entry`,save_entry:`Save an entry`,cancel_editing:`Cancel entry editing`},file_type_labels:{avif:`AVIF image`,bmp:`Bitmap image`,gif:`GIF image`,ico:`Icon`,jpeg:`JPEG image`,jpg:`JPEG image`,png:`PNG image`,svg:`SVG image`,tif:`TIFF image`,tiff:`TIFF image`,webp:`WebP image`,avi:`AVI video`,m4v:`MP4 video`,mov:`QuickTime video`,mp4:`MP4 video`,mpeg:`MPEG video`,mpg:`MPEG video`,ogg:`Ogg video`,ogv:`Ogg video`,ts:`MPEG video`,webm:`WebM video`,"3gp":`3GPP video`,"3g2":`3GPP2 video`,aac:`AAC audio`,mid:`MIDI`,midi:`MIDI`,m4a:`MP4 audio`,mp3:`MP3 audio`,oga:`Ogg audio`,opus:`OPUS audio`,wav:`WAV audio`,weba:`WebM audio`,csv:`CSV spreadsheet`,doc:`Word document`,docx:`Word document`,odp:`OpenDocument presentation`,ods:`OpenDocument spreadsheet`,odt:`OpenDocument text`,pdf:`PDF document`,ppt:`PowerPoint presentation`,pptx:`PowerPoint presentation`,rtf:`Rich text document`,xls:`Excel spreadsheet`,xlsx:`Excel spreadsheet`,html:`HTML text`,js:`JavaScript`,json:`JSON text`,md:`Markdown text`,toml:`TOML text`,yaml:`YAML text`,yml:`YAML text`},file_size_units:{b:`{$size} bytes`,kb:`{$size} KB`,mb:`{$size} MB`,gb:`{$size} GB`,tb:`{$size} TB`}}})))()}var A$,jme,Mme,Nme,j$,M$,N$,P$,F$,I$,L$,Pme,Fme,Ime,Lme,Rme;function R$(){return(R$=o((()=>{Ame(),Z(),lce(),FM(),VD(),AM(),bV(),Dq(),A$=`en-US`,jme=`ar,bg,ca,cs,el,en-CA,en-GB,en-US,es-CO,fi,fr,hr,ja,ko,nl,pl,pt-BR,pt-PT,ru,tr,uk,zh-CN`.split(`,`),Mme=`${yV}@${vV}/locales`,Nme=5e3,j$=`sveltia-cms.locale`,M$=new Map,N$=kM(()=>zu.current),P$=sn(),F$=sn(),I$=async e=>{try{let{_locale:t,_version:n,...r}=await BD.get(j$)??{};if(t===e&&n===vV&&Object.keys(r).length)return r}catch{}},L$=async(e,t)=>{try{await BD.set(j$,{_locale:e,_version:vV,...t})}catch{}},Pme=async()=>{try{await BD.delete(j$)}catch{}},Fme=async e=>{let t=await fetch(`${Mme}/${e}.json`,{signal:AbortSignal.timeout(Nme)});if(!t.ok)throw Error(`Failed to load the ${e} locale strings`,{cause:t});return t.json()},Ime=async e=>{let t=await I$(e);if(t)return M$.set(e,t),t;P$.set(e);try{let t=await Fme(e);return M$.set(e,t),await L$(e,t),t}catch(t){throw F$.set({locale:e}),t}finally{P$.set(void 0)}},Lme=async e=>{let t=M$.get(e);if(!t){e===`en-US`&&M$.size&&await Pme();return}await I$(e)||await L$(e,t)},Rme=()=>{Pu(A$,{...kme,_sui:cce}),jme.filter(e=>e!==A$).forEach(e=>{Bu(e,()=>Ime(e))}),Hu({fallbackLocale:A$,initialLocale:Tq.locale||Vu()||`en-US`}),N$.subscribe(e=>{Lme(e)})}})))()}function zme(e,t){D(t,!0);let n=()=>A(F$,`$appLocaleLoadError`,r),[r,i]=fn(),a=M(!1);L(()=>{n()&&N(a,!0)});var o=V(),s=F(o),c=e=>{let t=j(()=>{let{locale:e}=n();return{locale:e}});Lh(e,{get show(){return z(a)},set show(e){N(a,e,!0)},children:(e,n)=>{sc(e,{status:`error`,children:(e,n)=>{mt();var r=Da();R(e=>U(r,e),[()=>X(`locale_load_failed`,{values:{locale:aL(z(t).locale)??z(t).locale}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(s,e=>{n()&&e(c)}),H(e,o),O(),i()}function Bme(){return(Bme=o((()=>{Y(),J(),Z(),dc(),Vh(),R$(),lL()})))()}var Vme;function Hme(){return(Hme=o((()=>{CV(),hH(),$U(),Vme=async(e,t)=>{let n=t===`image`?await nH(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let r={};try{let{parse:e}=await SV(`exifr`,`dist/lite.esm.mjs`);r=await e(n)??{}}catch{}let{latitude:i,longitude:a,DateTimeOriginal:o,CreateDate:s=o}=r;return{createdDate:s instanceof Date?s:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(a)?{latitude:QU(i,7),longitude:QU(a,7)}:void 0}}})))()}var z$,Ume,Wme,Gme,Kme;function qme(){return(qme=o((()=>{Hme(),z$=({element:e,eventType:t,src:n,getInfo:r})=>new Promise(i=>{e.addEventListener(t,()=>i(r()),{once:!0}),e.addEventListener(`error`,()=>i({}),{once:!0}),e.src=n}),Ume=e=>{let t=new Image;return z$({element:t,eventType:`load`,src:e,getInfo:()=>({dimensions:{width:t.naturalWidth,height:t.naturalHeight}})})},Wme=async(e,t)=>{let n=document.createElement(t);return z$({element:n,eventType:`loadedmetadata`,src:e,getInfo:()=>{let{duration:e}=n;if(t===`audio`)return{duration:e};let{videoWidth:r,videoHeight:i}=n;return{dimensions:{width:r,height:i},duration:e}}})},Gme=async(e,t)=>t===`image`?Ume(e):Wme(e,t),Kme=async(e,t,n)=>{let{dimensions:r,duration:i}=await Gme(t,n),{createdDate:a,coordinates:o}=await Vme(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})))()}var B$,V$,H$;function U$(){return(U$=o((()=>{AM(),hH(),jQ(),RH(),qme(),B$={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},V$=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=k(kQ)?.repository??{},i=await rH(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await Kme(e,i,t)),{...a,publicURL:fH(e),repoBlobURL:r?`${r}/${n}`:void 0}},H$=async e=>{let t=fH(e,{allowSpecial:!0,pathOnly:!0})??await rH(e);return t?IH(t):[]}})))()}function Jme(e,t){D(t,!0);let n=e=>{var t=Yme(),n=F(t);{let e=j(()=>X(`public_urls`,{values:{count:r().length}})),t=j(()=>!z(c).length);Sm(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(d,`asset_urls_copied`)}})}var i=I(n,2);{let e=j(()=>X(`file_paths`,{values:{count:r().length}}));Sm(i,{get label(){return z(e)},onclick:()=>{m(f,`asset_paths_copied`)}})}var a=I(i,2);{let e=j(()=>X(`file_data`)),t=j(()=>!z(o));Sm(a,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(p,`asset_data_copied`)}})}H(e,t)},r=q(t,`assets`,19,()=>[]),i=q(t,`useButton`,3,!0),a=M(Dr([])),o=M(!1),s=Dr({show:!1,text:``,status:`success`}),c=j(()=>z(a).filter(({publicURL:e})=>!!e).map(({publicURL:e})=>e)),l,u=async()=>{if(l=void 0,r().length!==1)return!1;let e=await nH(r()[0]),{type:t}=e;return l=e,MM(t)?!0:AV.includes(t)?typeof navigator.clipboard.write==`function`:!1},d=async()=>{await navigator.clipboard.writeText(z(c).join(`
|
|
2623
|
+
/* \`<SignIn>\` also has \`.message\` */.message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;ul {margin:12px 0 0;padding:0;max-height:160px;overflow-y:auto;list-style:none;}li {margin:12px;padding:0;}}}.powered-by.svelte-7ua6x9 {position:absolute;inset:auto 24px 24px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);text-align:center;}`}})))()}function xme(e,t){D(t,!0);let n=()=>A(kQ,`$backend`,i),r=()=>A(Nq,`$cmsConfig`,i),[i,a]=fn(),o=0,s=M(!1),c=M(`none`),l=async()=>{n()?.checkStatus&&N(c,await n().checkStatus(),!0)},u=()=>{l(),o=window.setInterval(()=>{l()},3e5)},d=()=>{window.clearInterval(o),N(c,`none`)},f=()=>{z(s)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?u():d())};Qs(()=>(N(s,!0),()=>{d()})),L(()=>{z(s),n(),r(),f()});var p=V(),m=F(p),h=e=>{var t=Cme(),r=F(t);{let e=j(()=>z(c)===`major`?`error`:`warning`);eo(r,()=>({"--sui-infobar-message-justify-content":`center`})),sf(r.lastChild,{get status(){return z(e)},children:(e,t)=>{mt();var r=Sme(),i=F(r),a=I(i);{let e=j(()=>X(`details`));$d(a,{variant:`link`,get label(){return z(e)},onclick:()=>{n$(n()?.statusDashboardURL)}})}R(e=>U(i,`${e??``} `),[()=>X(`backend_status.${z(c)}_incident`,{values:{service:n()?.label}})]),H(e,r)},$$slots:{default:!0}}),E(r)}H(e,t)},g=j(()=>[`minor`,`major`].includes(z(c)));W(m,e=>{z(g)&&e(h)}),H(e,p),O(),a()}var Sme,Cme;function wme(){return(wme=o((()=>{Y(),J(),Z(),of(),df(),tc(),jQ(),zq(),r$(),Sme=B(` <!>`,1),Cme=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})))()}function Tme(e,t){D(t,!0);let n=`${yV}/package.json`,r=`${yV}/dist/sveltia-cms.js`,i=0,a=0,o=M(!1),s=async()=>{try{let e=await fetch(n);if(!e.ok)return;let{version:t}=await e.json();if(!t||t===vV)return;document.querySelector(`script[src="${r}"]`)?a=window.setTimeout(()=>{N(o,!0)},6e5):console.warn(`[Sveltia CMS] A new version (${t}) is available. Update the pinned version in your script tag or package.json to upgrade.`)}catch{}};Qs(()=>(s(),i=window.setInterval(()=>{s()},36e5),()=>{window.clearInterval(i),window.clearTimeout(a)}));var c=V(),l=F(c),u=e=>{var t=Dme(),n=F(t);eo(n,()=>({"--sui-infobar-message-justify-content":`center`})),sf(n.lastChild,{children:(e,t)=>{mt();var n=Eme(),r=F(n),i=I(r);{let e=j(()=>X(`update_now`));$d(i,{variant:`link`,get label(){return z(e)},onclick:()=>{window.location.reload()}})}R(e=>U(r,`${e??``} `),[()=>X(`update_available`)]),H(e,n)},$$slots:{default:!0}}),E(n),H(e,t)};W(l,e=>{z(o)&&e(u)}),H(e,c),O()}var Eme,Dme;function Ome(){return(Ome=o((()=>{Y(),J(),Z(),of(),df(),tc(),bV(),Eme=B(` <!>`,1),Dme=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})))()}var kme;function Ame(){return(Ame=o((()=>{kme={create:`New`,select:`Select`,select_all:`Select All`,upload:`Upload`,copy:`Copy`,download:`Download`,duplicate:`Duplicate`,delete:`Delete`,reorder:`Reorder`,cancel:`Cancel`,done:`Done`,save:`Save`,saving:`Saving…`,publish:`Publish`,publishing:`Publishing…`,rename:`Rename`,update:`Update`,replace:`Replace`,add:`Add`,remove:`Remove`,clear:`Clear`,expand:`Expand`,expand_all:`Expand All`,collapse:`Collapse`,collapse_all:`Collapse All`,insert:`Insert`,restore:`Restore`,discard:`Discard`,searching:`Searching…`,no_results:`No results found.`,global:`Global`,primary:`Primary`,secondary:`Secondary`,collection:`Collection`,folder:`Folder`,api_key:`API Key`,details:`Details`,back:`Back`,loading:`Loading…`,later:`Later`,slug:`Slug`,singleton:`Singleton`,singletons:`Singletons`,clipboard_error:`Couldn’t copy to clipboard.`,welcome_message:`Welcome to {$name}`,powered_by:`Powered by {$name}`,loading_cms_config:`Loading CMS Configuration…`,loading_site_data:`Loading Site Data…`,loading_site_data_error:`There was an error while loading site data.`,sign_in_with_x:`Sign In with {$service}`,sign_in_using_access_token:`Sign In Using Access Token`,sign_in_using_access_token_description:`Enter your token below. It must have read/write access to the repository content.`,sign_in_using_access_token_link:`You can generate a token on the <a>{$service} user settings page</a>.`,personal_access_token:`Personal Access Token`,authorizing:`Authorizing…`,signing_in:`Signing in…`,work_with_local_repo:`Work with Local Repository`,work_with_local_repo_description:`Once prompted, select the root directory of the “{$repo}” repository.`,work_with_local_repo_description_no_repo:`Once prompted, select the root directory of your Git repository.`,work_with_test_repo:`Work with Test Repository`,sign_in_error:{not_project_root:`The selected folder is not a repository root directory. Please try again.`,picker_dismissed:`A repository root directory could not be selected. Please try again.`,authentication_aborted:`Authentication aborted. Please try again.`,invalid_token:`The provided token is invalid. Please check and try again.`,UNSUPPORTED_BACKEND:`Your Git backend is not supported by the authenticator.`,UNSUPPORTED_DOMAIN:`Your domain is not allowed to use the authenticator.`,MISCONFIGURED_CLIENT:`OAuth app client ID or secret is not configured.`,AUTH_CODE_REQUEST_FAILED:`Failed to receive an authorization code. Please try again later.`,CSRF_DETECTED:`Potential CSRF attack detected. Authentication flow aborted.`,TOKEN_REQUEST_FAILED:`Failed to request an access token. Please try again later.`,TOKEN_REFRESH_FAILED:`Failed to refresh the access token. Please try again later.`,MALFORMED_RESPONSE:`Server responded with malformed data. Please try again later.`},backend_unsupported_version:`The {$name} backend requires {$name} {$version} or later.`,repository_no_access:`You don’t have access to the “{$repo}” repository.`,repository_not_found:`The “{$repo}” repository doesn’t exist.`,repository_empty:`The “{$repo}” repository has no branches.`,branch_not_found:`The “{$repo}” repository doesn’t have the “{$branch}” branch.`,unexpected_error:`Unexpected Error`,entry_parse_errors:`.input {$count :integer} .match $count one {{There was an error while parsing an entry file. Check the browser console for details.}} * {{There were errors while parsing entry files. Check the browser console for details.}}`,username:`Username`,password:`Password`,sign_in:`Sign In`,sign_in_with_mobile:`Sign In with Mobile`,sign_in_with_mobile_instruction:`Scan the QR code below with your phone or tablet for passwordless sign-in. Your settings will be automatically copied.`,signed_in_as_x:`Signed In as {$name}`,working_with_local_repo:`Working with Local Repository`,working_with_test_repo:`Working with Test Repository`,sign_out:`Sign Out`,install_as_app:`Install as App`,contents:`Contents`,assets:`Assets`,editorial_workflow:`Editorial Workflow`,cms_config:`CMS Configuration`,menu:`Menu`,mobile_promo_title:`Sveltia CMS is now available on mobile!`,mobile_promo_button:`Give it a try`,new_language_available:`Sveltia CMS is now available in {$locale}!`,change_language:`Change Language`,switching_language:`Switching to {$locale}…`,locale_load_failed:`Couldn’t load the {$locale} translation. Please try again later.`,visit_live_site:`Visit Live Site`,switch_page:`Switch Page`,search_placeholder_contents:`Search for contents…`,search_placeholder_assets:`Search for assets…`,search_placeholder_all:`Search for contents and assets…`,create_entry_or_assets:`Create Entry or Assets`,publish_changes:`Publish Changes`,publishing_changes:`Publishing Changes…`,publishing_changes_failed:`Couldn’t publish changes. Please try again.`,show_notifications:`Show Notifications`,notifications:`Notifications`,show_account_menu:`Show Account Menu`,account:`Account`,live_site:`Live Site`,git_repository:`Git Repository`,settings:`Settings`,show_help_menu:`Show Help Menu`,help:`Help`,keyboard_shortcuts:`Keyboard Shortcuts`,documentation:`Documentation`,release_notes:`Release Notes`,announcements:`Announcements`,version_x:`Version {$version}`,report_issue:`Report Issue`,share_feedback:`Share Feedback`,get_help:`Get Help`,donate:`Donate`,join_discord:`Join Us on Discord`,bluesky:`Follow Us on Bluesky`,update_available:`The latest version of Sveltia CMS is available.`,update_now:`Update Now`,backend_status:{minor_incident:`{$service} is experiencing a minor incident. Your workflow may be affected.`,major_incident:`{$service} is experiencing a major incident. You may want to wait until the situation has improved.`},content_library:`Content Library`,asset_library:`Asset Library`,collections:`Collections`,entries:`Entries`,files:`Files`,asset_location:{repository:`Your Site`,external:`External Locations`,stock_photos:`Stock Photos`},collection_assets:`Collection Assets`,entry_list:`Entry List`,file_list:`File List`,asset_list:`Asset List`,x_collection:`“{$collection}” Collection`,x_asset_folder:`“{$folder}” Asset Folder`,viewing_collection_list:`You’re now viewing the collection list.`,viewing_asset_folder_list:`You’re now viewing the asset folder list.`,viewing_x_collection:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$collection}” collection, which has no entries yet.}} one {{You’re now viewing the “{$collection}” collection, which has one entry.}} * {{You’re now viewing the “{$collection}” collection, which has {$count} entries.}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$folder}” asset folder, which has no assets yet.}} one {{You’re now viewing the “{$folder}” asset folder, which has one asset.}} * {{You’re now viewing the “{$folder}” asset folder, which has {$count} assets.}}`,singleton_selected_announcement:`Press Enter to edit the “{$file}” file.`,collection_not_found:`Collection not found.`,file_not_found:`File not found.`,x_of_x_selected:`{$selected} of {$total} selected`,switch_view:`Switch View`,list_view:`List View`,grid_view:`Grid View`,switch_to_list_view:`Switch to List View`,switch_to_grid_view:`Switch to Grid View`,sort:`Sort`,sorting_options:`Sorting Options`,sort_keys:{none:`None`,name:`Name`,slug:`Slug`,commit_author:`Updated by`,commit_date:`Updated on`,_summary:`Summary`,_manual:`Manual`},ascending:`{$label}, A to Z`,ascending_date:`{$label}, old to new`,descending:`{$label}, Z to A`,descending_date:`{$label}, new to old`,filter:`Filter`,filtering_options:`Filtering Options`,group:`Group`,grouping_options:`Grouping Options`,type:`Type`,all:`All`,image:`Image`,video:`Video`,audio:`Audio`,document:`Document`,other:`Other`,show_assets:`Show Assets`,hide_assets:`Hide Assets`,show_info:`Show Info`,hide_info:`Hide Info`,all_assets:`All Assets`,global_assets:`Global Assets`,entry_not_found:`Entry not found.`,creating_entries_disabled_by_admin:`Creating new entries in this collection is disabled by the administrator.`,creating_entries_disabled_by_quota:`You cannot add new entries to this collection because it has reached its limit of {$quota} entries.`,creating_entries_nearing_quota:`.input {$remaining :integer} .match $remaining one {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entry.}} * {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entries.}}`,back_to_collection:`Back to Collection`,collection_list:`Collection List`,back_to_collection_list:`Back to Collection List`,asset_folder_list:`Asset Folder List`,back_to_asset_folder_list:`Back to Asset Folder List`,search_results:`Search Results`,search_results_for_x:`Search Results for “{$terms}”`,viewing_entry_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any entries.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one entry.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} entries.}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any assets.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one asset.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} assets.}}`,x_entries:`.input {$count :integer} .match $count 0 {{No entries}} one {{{$count} entry}} * {{{$count} entries}}`,x_assets:`.input {$count :integer} .match $count 0 {{No assets}} one {{{$count} asset}} * {{{$count} assets}}`,no_files_found:`No files found.`,no_entries_found:`No entries found.`,upload_assets:`Upload New Assets`,edit_options:`Edit Options`,show_edit_options:`Show Edit Options`,edit_asset:`Edit Asset`,edit_x:`Edit {$name}`,wrap_long_lines:`Wrap Long Lines`,rename_asset:`Rename Asset`,rename_x:`Rename {$name}`,enter_new_name_for_asset:`.input {$count :integer} .match $count 0 {{Enter a new name below.}} one {{Enter a new name below. An entry using the asset will also be updated.}} * {{Enter a new name below. {$count} entries using the asset will also be updated.}}`,enter_new_name_for_asset_error:{empty:`File name cannot be empty.`,character:`File name cannot contain special characters.`,duplicate:`This file name is used for another asset.`},change_file_extension:`Change File Extension`,confirm_file_extension_change:{change:`Are you sure you want to change the extension from “.{$oldExtension}” to “.{$newExtension}”?`,add:`Are you sure you want to add the extension “.{$newExtension}”?`,remove:`Are you sure you want to remove the extension “.{$oldExtension}”?`},file_extension_change_warning:`The file may not be displayed or handled correctly if the extension doesn’t match the actual file format.`,replace_asset:`Replace Asset`,replace_x:`Replace {$name}`,click_to_browse:`Click to browse…`,tap_to_browse:`Tap to browse…`,drop_files_or_click_to_browse:`.input {$count :integer} .match $count one {{Drop a file here or click to browse…}} * {{Drop files here or click to browse…}}`,drop_files_or:`.input {$count :integer} .match $count one {{Drop a file here or}} * {{Drop files here or}}`,drop_image_files_or:`.input {$count :integer} .match $count one {{Drop an image file here or}} * {{Drop image files here or}}`,browse:`Browse`,paste:`Paste`,paste_image:`Paste Image`,no_image_in_clipboard:`No image found in clipboard.`,clipboard_access_denied:`Clipboard access denied.`,drop_files_here:`.input {$count :integer} .match $count one {{Drop a file here}} * {{Drop files here}}`,unsupported_file_type:`Unsupported File Type`,dropped_file_type_mismatch:`The dropped file is not one of the following types: {$types}. Please try again.`,dropped_image_type_mismatch:`The dropped file is not supported. Only an image of the following types is accepted: {$types}. Please try again.`,choose_files:`.input {$count :integer} .match $count one {{Choose File}} * {{Choose Files}}`,delete_assets:`.input {$count :integer} .match $count one {{Delete Asset}} * {{Delete Assets}}`,delete_selected_assets:`.input {$count :integer} .match $count one {{Delete Selected Asset}} * {{Delete Selected Assets}}`,confirm_deleting_this_asset:`Are you sure you want to delete this asset?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected asset?}} * {{Are you sure you want to delete the selected {$count} assets?}}`,confirm_deleting_all_assets:`Are you sure you want to delete all the assets?`,delete_entries:`.input {$count :integer} .match $count one {{Delete Entry}} * {{Delete Entries}}`,delete_selected_entries:`.input {$count :integer} .match $count one {{Delete Selected Entry}} * {{Delete Selected Entries}}`,confirm_deleting_this_entry:`Are you sure you want to delete this entry?`,confirm_deleting_this_entry_with_assets:`Are you sure you want to delete this entry and associated assets?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry?}} * {{Are you sure you want to delete the selected {$count} entries?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry and associated assets?}} * {{Are you sure you want to delete the selected {$count} entries and associated assets?}}`,confirm_deleting_all_entries:`Are you sure you want to delete all the entries?`,confirm_deleting_all_entries_with_assets:`Are you sure you want to delete all the entries and associated assets?`,reorder_entries:`Reorder Entries`,done_reordering_entries:`Done Reordering Entries`,cancel_reordering_entries:`Cancel Reordering Entries`,saving_reorder_failed:`Failed to save new entry order. Please try again.`,processing_files:`.input {$count :integer} .match $count one {{Processing a file. This may take a while.}} * {{Processing files. This may take a while.}}`,uploading_files:`Uploading Files`,confirm_replacing_file:`“{$name}” will be replaced with this file:`,confirm_uploading_files:`.input {$count :integer} .match $count one {{This file will be saved to the “{$folder}” folder:}} * {{These {$count} files will be saved to the “{$folder}” folder:}}`,oversized_files:`Oversized Files`,warning_oversized_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it exceeds the maximum size of {$size}. Please reduce the size or select a different file.}} * {{These files cannot be uploaded because they exceed the maximum size of {$size}. Please reduce the sizes or select different files.}}`,invalid_files:`Invalid Files`,warning_invalid_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it’s damaged, or its content doesn’t match its file extension. This often happens when a photo is renamed rather than converted, such as a HEIC image saved as a JPEG file. Please convert the file and try again.}} * {{These files cannot be uploaded because they’re damaged, or their content doesn’t match their file extensions. This often happens when photos are renamed rather than converted, such as HEIC images saved as JPEG files. Please convert the files and try again.}}`,file_name_conflict_confirmation:`.input {$count :integer} .match $count one {{A file with the same name already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_confirmation_with_name:`.input {$count :integer} .input {$name :string} .match $count one {{A file named “{$name}” already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_resolution:`File Name Conflict Resolution`,keep_both:`Keep Both`,uploading_files_progress:`Uploading…`,uploading_files_failed:`Upload failed.`,file_meta:`{$type} · {$size}`,file_meta_converted_from_x:`(converted from {$type})`,no_entries_created:`This collection has no entries yet.`,create_new_entry:`Create New Entry`,entry:`Entry`,index_file:`Index File`,no_files_in_collection:`No files available in this collection.`,duplicate_entry:`Duplicate Entry`,entry_duplicated:`Entry duplicated as a new draft.`,entry_validation_errors:`.input {$count :integer} .match $count one {{One field has an error. Please correct it to save the entry.}} * {{{$count} fields have errors. Please correct them to save the entry.}}`,entry_saved:`.input {$count :integer} .match $count one {{Entry saved.}} * {{{$count} entries saved.}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{Entry saved and published.}} * {{{$count} entries saved and published.}}`,entries_deleted:`.input {$count :integer} .match $count one {{Entry deleted.}} * {{{$count} entries deleted.}}`,assets_saved:`.input {$count :integer} .match $count one {{Asset saved.}} * {{{$count} assets saved.}}`,assets_saved_and_published:`.input {$count :integer} .match $count one {{Asset saved and published.}} * {{{$count} assets saved and published.}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{URL copied to clipboard.}} * {{{$count} URLs copied to clipboard.}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{File path copied to clipboard.}} * {{{$count} file paths copied to clipboard.}}`,asset_data_copied:`.input {$count :integer} .match $count one {{File data copied to clipboard.}} * {{{$count} files’ data copied to clipboard.}}`,assets_downloaded:`.input {$count :integer} .match $count one {{Asset downloaded.}} * {{{$count} assets downloaded.}}`,assets_moved:`.input {$count :integer} .match $count one {{Asset moved.}} * {{{$count} assets moved.}}`,assets_renamed:`.input {$count :integer} .match $count one {{Asset renamed.}} * {{{$count} assets renamed.}}`,assets_deleted:`.input {$count :integer} .match $count one {{Asset deleted.}} * {{{$count} assets deleted.}}`,content_editor:`Content Editor`,restore_backup_title:`Restore Draft`,restore_backup_description:`This entry has a backup from {$datetime}. Do you want to restore the edited draft?`,draft_backup_saved:`Draft backup saved.`,draft_backup_restored:`Draft backup restored.`,draft_backup_deleted:`Draft backup deleted.`,cancel_editing:`Cancel Editing`,create_entry_title:`Creating {$name}`,create_entry_announcement:`You’re now creating a new entry in the “{$collection}” collection.`,edit_entry_title:`{$collection} › {$entry}`,edit_entry_announcement:`You’re now editing the “{$entry}” entry in the “{$collection}” collection.`,edit_file_announcement:`You’re now editing the “{$file}” file in the “{$collection}” collection.`,edit_singleton_announcement:`You’re now editing the “{$file}” file.`,save_and_publish:`Save and Publish`,save_without_publishing:`Save without Publishing`,show_editor_options:`Show Editor Options`,editor_options:`Editor Options`,show_preview:`Show Preview`,sync_scrolling:`Sync Scrolling`,switch_locale:`Switch Locale`,locale_content_disabled_short:`(disabled)`,locale_content_error_short:`(error)`,edit:`Edit`,preview:`Preview`,swap_panes:`Swap Panes`,edit_x_locale:`Edit {$locale} Content`,preview_x_locale:`Preview {$locale} Content`,content_preview:`Content Preview`,show_content_options_x_locale:`Show {$locale} Content Options`,content_options_x_locale:`{$locale} Content Options`,x_field:`“{$field}” Field`,show_field_options:`Show Field Options`,field_options:`Field Options`,unsupported_field_type_x:`Unsupported field type: {$name}`,enable_x_locale:`Enable {$locale}`,reenable_x_locale:`Reenable {$locale}`,disable_x_locale:`Disable {$locale}`,locale_x_has_been_disabled:`The {$locale} content has been disabled.`,locale_x_now_disabled:`The {$locale} content is now disabled. It will be deleted when you save the entry.`,view_in_repository:`View in Repository`,view_on_x:`View on {$service}`,view_on_live_site:`View on Live Site`,copy_from:`Copy from…`,copy_from_x:`Copy from {$locale}`,translation_options:`Translation Options`,translate:`Translate`,translate_fields:`.input {$count :integer} .match $count one {{Translate Field}} * {{Translate Fields}}`,translate_from:`Translate from…`,translate_from_x:`Translate from {$locale}`,revert_changes:`Revert Changes`,revert_all_changes:`Revert All Changes`,edit_slug:`Edit Slug`,edit_slug_warning:`Changing the slug may break internal and external links to the entry. Currently, Sveltia CMS does not update references created with Relation fields, so you’ll need to manually update such references along with other links.`,edit_slug_error:{empty:`The slug cannot be empty.`,invalid:`The slug cannot contain special characters, including slashes and spaces.`,duplicate:`This slug is used for another entry.`},required:`Required`,editor:{translation:{none:`Nothing to translate.`,started:`Translating…`,error:`Translation failed.`,complete:`.input {$count :integer} .match $count 0 {{No fields translated from {$source}.}} one {{Field translated from {$source}.}} * {{{$count} fields translated from {$source}.}}`},copy:{none:`Nothing to copy.`,complete:`.input {$count :integer} .match $count 0 {{No fields copied from {$source}.}} one {{Field copied from {$source}.}} * {{{$count} fields copied from {$source}.}}`}},validation:{value_missing:`This field is required.`,range_underflow:{"datetime-local":`The date/time must be at or after {$min}.`,date:`The date must be on or after {$min}.`,time:`The time must be at or after {$min}.`,number:`The value must be greater than or equal to {$min}.`,select:`.input {$min :integer} .match $min one {{You must select at least {$min} option.}} * {{You must select at least {$min} options.}}`,add:`.input {$min :integer} .match $min one {{You must add at least {$min} item.}} * {{You must add at least {$min} items.}}`},range_overflow:{"datetime-local":`The date/time must be at or before {$max}.`,date:`The date must be on or before {$max}.`,time:`The time must be at or before {$max}.`,number:`The value must be less than or equal to {$max}.`,select:`.input {$max :integer} .match $max one {{You cannot select more than {$max} option.}} * {{You cannot select more than {$max} options.}}`,add:`.input {$max :integer} .match $max one {{You cannot add more than {$max} item.}} * {{You cannot add more than {$max} items.}}`},too_short:`.input {$min :integer} .match $min one {{You must enter at least {$min} character.}} * {{You must enter at least {$min} characters.}}`,too_long:`.input {$max :integer} .match $max one {{You cannot enter more than {$max} character.}} * {{You cannot enter more than {$max} characters.}}`,type_mismatch:{number:`Please enter a number.`,email:`Please enter a valid email.`,url:`Please enter a valid URL.`},invalid_value:`Invalid value.`,unexpected_error:`Unexpected error occurred.`},entry_sidebar:{sidebar_panels:`Sidebar Panels`,validation:{title:`Validation`,placeholder:`Validation results will be shown here.`,no_errors_found:`No errors found.`},history:{title:`History`,fetch_failed:`Failed to load history.`,no_history:`No history found.`},backlinks:{title:`Backlinks`,no_entries:`No entries are referencing this entry.`}},saving_entry:{error:{title:`Error`,description:`There was an error while saving the entry. Please try again later.`}},viewing_x_asset_details:`You’re viewing the details of the “{$name}” asset.`,asset_editor:`Asset Editor`,preview_unavailable:`Preview Unavailable.`,public_urls:`.input {$count :integer} .match $count one {{Public URL}} * {{Public URLs}}`,file_paths:`.input {$count :integer} .match $count one {{File Path}} * {{File Paths}}`,file_data:`File Data`,asset_info:`Asset Info`,select_asset_show_info:`Select an asset to show its info.`,kind:`Kind`,size:`Size`,dimensions:`Dimensions`,duration:`Duration`,used_in:`Used in`,created_date:`Created Date`,location:`Location`,map_lat_lng:`Map showing latitude {$latitude}, longitude {$longitude}`,remove_this_item:`Remove This Item`,move_up:`Move Up`,move_down:`Move Down`,add_x:`Add {$name}`,add_item_above:`Add Item Above`,add_item_below:`Add Item Below`,select_list_type:`Select List Type`,unknown_variable_type:`This item can’t be displayed due to an unknown type. Check the browser console for details.`,opacity:`Opacity`,unselected_option:`(None)`,assets_dialog:{title:{file:`Select File`,image:`Select Image`},search_for_file:`Search for Files`,search_for_image:`Search for Images`,locations:`Locations`,folder:{field:`Field Assets`,entry:`Entry Assets`,file:`File Assets`,collection:`Collection Assets`,global:`Global Assets`},error:{invalid_key:`Your API key is invalid or expired. Please double-check and try again.`,search_fetch_failed:`There was an error while searching assets. Please try again later.`,image_fetch_failed:`There was an error while downloading the selected asset. Please try again later.`},available_images:`Available Images`,enter_url:`Enter URL`,enter_file_url:`Enter URL of the file:`,enter_image_url:`Enter URL of the image:`,large_file:{title:`Large File`},invalid_file:{title:`Invalid File`},rejected_files:{title:`Files Cannot Be Uploaded`},photo_credit:{title:`Photo Credit`,description:`Use the following credit if possible:`},unsaved:`Unsaved`},character_counter:{min_max:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}. Maximum: {$max}.}} one {{{$count} character entered. Minimum: {$min}. Maximum: {$max}.}} * {{{$count} characters entered. Minimum: {$min}. Maximum: {$max}.}}`,min:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}.}} one {{{$count} character entered. Minimum: {$min}.}} * {{{$count} characters entered. Minimum: {$min}.}}`,max:`.input {$count :integer} .match $count 0 {{No character entered. Maximum: {$max}.}} one {{{$count} character entered. Maximum: {$max}.}} * {{{$count} characters entered. Maximum: {$max}.}}`},youtube_video_player:`YouTube video player`,today:`Today`,now:`Now`,editor_components:{image:`Image`,src:`Source`,alt:`Alt Text`,title:`Title`,link:`Link`},key_value:{key:`Key`,value:`Value`,action:`Action`,empty_key:`Key is required.`,duplicate_key:`Key must be unique.`},find_place:`Find a Place`,use_your_location:`Use Your Location`,geolocation_error_title:`Geolocation Error`,geolocation_error_body:`There was an error while retrieving your location.`,geolocation_unsupported:`Geolocation API is not supported by this browser.`,boolean:{true:`Yes`,false:`No`},cloud_storage:{invalid:`The service is not configured properly.`,auth:{api_key:{key_label:`API Key`,initial:`Enter your {$key} for {$service}.`,requested:`Validating…`,error:`The provided {$key} is invalid. Please double-check and try again.`},password:{initial:`Enter your password for {$service}.`,requested:`Signing in…`,error:`Username or password is incorrect. Please double-check and try again.`}},cloudinary:{iframe_title:`Cloudinary media library`,activate:{button_label:`Activate Cloudinary`,description:`After signing in, click the Sign In button again to continue.`},auth_key_label:`API Secret`,open_library:`Open Cloudinary`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`Secret Access Key`},cloudflare_r2:{auth_key_label:`Secret Access Key`},digitalocean_spaces:{auth_key_label:`Secret Access Key`}},config:{errors:`.input {$count :integer} .match $count one {{There is an error in the CMS configuration. Please solve the issue and try again.}} * {{There are errors in the CMS configuration. Please solve the issues and try again.}}`,error_locator:{collection:`{$collection} collection`,file:`{$file} file`,component:`{$component} component`,field:"`{$field}` field"},error:{no_secure_context:`Sveltia CMS only works with HTTPS or localhost URLs.`,insecure_urls:`.input {$count :integer} .match $count one {{The configuration file URL must use HTTPS protocol or a localhost address.}} * {{The configuration file URLs must use HTTPS protocol or localhost addresses.}}`,fetch_failed:`The configuration file could not be retrieved.`,fetch_failed_not_ok:`HTTP response returned with status {$status}.`,fetch_failed_with_manual_init:"The configuration file could not be retrieved. To prevent the `config.yml` file from loading, add <a>`load_config_file: false`</a> to the configuration object passed to `CMS.init()`.",parse_failed:`The configuration file could not be parsed.`,parse_failed_invalid_object:`The configuration file is not a valid JavaScript object.`,parse_failed_unsupported_type:`The configuration file is not a valid file type. Only YAML, TOML and JSON are supported.`,no_collection:`Collections are not defined.`,no_visible_collection:"At least one collection must be visible. Check the `hide` option.",missing_backend:`The backend is not defined.`,missing_backend_name:`The backend name is not defined.`,unsupported_known_backend:`The {$name} backend is <a>not supported</a> in Sveltia CMS.`,unsupported_deprecated_backend:`The deprecated {$name} backend is <a>not supported</a> in Sveltia CMS.`,unsupported_custom_backend:`Custom backends are <a>not supported</a> in Sveltia CMS.`,unsupported_backend_suggestion:`Use one of the <a>supported backends</a> instead.`,missing_repository:`The repository is not defined.`,invalid_repository:`The configured repository is invalid. It must be in “owner/repo” format.`,oauth_implicit_flow:`The configured authentication method (implicit flow) is not supported in Sveltia CMS. Use a different <a>authentication method</a> instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHub’s limitations. Use a different <a>authentication method</a> instead.`,oauth_no_app_id:`OAuth application ID is not defined.`,no_auth_methods:"The `auth_methods` option must contain at least one method.",missing_media_folder:`The media folder is not defined.`,invalid_media_folder:`The configured media folder is invalid. It must be a string.`,invalid_public_folder:`The configured public folder is invalid. It must be a string.`,public_folder_relative_path:`The configured public folder is invalid. It must be an absolute path starting with “/”.`,public_folder_absolute_url:`An absolute URL for the public folder option is not supported in Sveltia CMS.`,invalid_asset_collections:"The `asset_collections` option is invalid. It must be an array.",missing_asset_collection_name:"The asset collection {$count} must have the `name` option defined as a non-empty string.",invalid_asset_collection_name:"The asset collection name `{$name}` is invalid. It must not contain special characters.",duplicate_asset_collection_name:"Asset collection names must be unique, but `{$name}` is used more than once.",asset_collection_invalid_media_folder:"The `{$name}` asset collection must have the `media_folder` option defined as a string.",invalid_collection_no_options:"The collection must have either the `folder`, `files` or `divider` option defined.",invalid_collection_multiple_options:"The collection cannot have the `folder`, `files` and `divider` options together.",file_format_mismatch:"The `{$extension}` extension doesn’t match the `{$format}` format.",invalid_slug_slash:"The slug template `{$slug}` is invalid as it cannot contain slashes. To organize entries in subfolders, use the `path` option instead of `slug`.",invalid_reorder_group:"The `reorder` option refers to a view group named `{$name}`, but no such group is defined in the `view_groups` option.",invalid_sortable_field:"The `sortable_fields` option refers to a field named `{$name}`, but no such field is defined in the collection.",invalid_view_group_field:"The `view_groups` option refers to a field named `{$name}`, but no such field is defined in the collection.",invalid_view_filter_field:"The `view_filters` option refers to a field named `{$name}`, but no such field is defined in the collection.",missing_view_group_name:"The view group {$count} must have the `name` option defined as a non-empty string.",invalid_view_group_name:"The view group name `{$name}` is invalid. It must not contain special characters.",duplicate_view_group_name:"View group names must be unique, but `{$name}` is used more than once.",missing_view_filter_name:"The view filter {$count} must have the `name` option defined as a non-empty string.",invalid_view_filter_name:"The view filter name `{$name}` is invalid. It must not contain special characters.",duplicate_view_filter_name:"View filter names must be unique, but `{$name}` is used more than once.",missing_collection_name:"The collection {$count} must have the `name` option defined as a non-empty string.",invalid_collection_name:"The collection name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_name:"Collection names must be unique, but `{$name}` is used more than once.",missing_collection_file_name:"The collection file {$count} must have the `name` option defined as a non-empty string.",invalid_collection_file_name:"The collection file name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_file_name:"Collection file names must be unique, but `{$name}` is used more than once.",collection_no_fields:"The collection must have the `fields` option defined with at least one field.",collection_file_no_fields:"The collection file must have the `fields` option defined with at least one field.",collection_file_i18n_required:"The collection file must have the `i18n` option defined if the `locale` placeholder is used in the `file` path.",missing_field_name:"The field {$count} must have the `name` option defined as a non-empty string.",invalid_field_name:"The field name `{$name}` is invalid. It must not contain special characters. If you want to nest fields, <a>use Object fields instead of dot notation</a>.",duplicate_field_name:"Field names must be unique, but `{$name}` is used more than once.",missing_variable_type:"The variable type {$count} must have the `name` option defined as a non-empty string.",invalid_variable_type:"The variable type name `{$name}` is invalid. It must not contain special characters.",duplicate_variable_type:"Variable type names must be unique, but `{$name}` is used more than once.",date_field_type:"The deprecated Date field type is not supported in Sveltia CMS. Use the DateTime field type with the `type: date` option instead.",invalid_timezone:"Invalid timezone: {$timeZone}. Must be a valid IANA timezone identifier like `America/New_York` or `Asia/Tokyo`.",unsupported_deprecated_option:"The deprecated `{$prop}` option is not supported in Sveltia CMS. Use the `{$newProp}` option instead.",allow_multiple:"The `allow_multiple` option is not supported in Sveltia CMS. Use the `multiple` option instead, which defaults to `false`.",invalid_list_field:"The List field cannot have the `field`, `fields` and `types` options together.",invalid_list_variable_type:"The List field’s variable type is invalid. The `widget` option is set to `{$widget}` but it must be `object`.",invalid_object_field:"The Object field cannot have the `fields` and `types` options together.",object_field_missing_fields:"The Object field must have either the `fields` or `types` option defined.",relation_field_invalid_collection:"The referenced `{$collection}` collection is invalid or not defined.",relation_field_invalid_collection_file:"The referenced `{$file}` file is invalid or not defined.",relation_field_missing_file_name:"The `file` option must be defined for a relation to a file collection.",relation_field_invalid_value_field:"The referenced value field `{$field}` is invalid or not defined.",unexpected:`Unexpected error`},warning:{oauth_no_app_id:`OAuth application ID is not defined. Users are required to provide an access token to sign in.`,editorial_workflow_unsupported:`Editorial workflow is not yet supported in Sveltia CMS.`,open_authoring_unsupported:`Open authoring is not yet supported in Sveltia CMS.`,nested_collections_unsupported:`Nested collections are not yet supported in Sveltia CMS.`,unsupported_ignored_option:"The `{$prop}` option is not supported in Sveltia CMS. It will be ignored.",conflicting_timezone_options:"Both `picker_utc` and newer timezone options (`input_timezone` or `output_utc`) are set. The new options take precedence. Consider removing `picker_utc` from your configuration."},compatibility_link:`See the compatibility notes for details: {$link}`,schema_tip:`For a better developer experience, you can validate your configuration file against the JSON schema of Sveltia CMS. See {$link} for details.`},local_workflow:{indicator:`Local`,unsupported_browser:`Local Workflow is not supported in your browser. Please use Chrome or Edge instead.`,disabled:`Local Workflow is disabled in your browser. <a>Here’s how to enable it</a>.`},status:{drafts:`Drafts`,in_review:`In Review`,ready:`Ready`},categories:`Categories`,site_configuration_editor:`Site Configuration Editor`,prefs:{changes:{api_key_saved:`API key saved.`,api_key_removed:`API key removed.`,api_key_invalid:`The provided API key is invalid. Please double-check and try again.`},error:{permission_denied:`Cookie storage access has been denied. Please check your browser permissions and try again.`},appearance:{title:`Appearance`,theme:`Theme`,select_theme:`Select Theme`},theme:{auto:`Auto`,dark:`Dark`,light:`Light`},language:{title:`Language`,ui_language:{title:`User Interface Language`,select_language:`Select Language`}},contents:{title:`Contents`,editor:{title:`Editor`,use_draft_backup:{switch_label:`Automatically back up entry drafts`},close_on_save:{switch_label:`Close the editor after saving a draft`},close_with_escape:{switch_label:`Close the editor with the Escape key`}}},i18n:{title:`Internationalization`,translators:{default:{title:`Default Translation Service`,select_service:`Select Service`},api_keys:{title:`Translation Service API Keys`,description:`Manage API keys for <a>translation services</a>.`},field_label:`{$service} Key`,description:`Sign up for <a {$homeHref}>{$service}</a> and enter <a {$apiKeyHref}>your API Key</a> here to enable quick translation of text entry fields.`}},media:{title:`Media`,stock_photos:{api_keys:{title:`Stock Photo Service API Keys`,description:`Manage API keys for <a>stock photo services</a>.`},field_label:`{$service} API Key`,description:`Sign up for <a {$homeHref}>{$service} API</a> and enter <a {$apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.`,credit:`Photos provided by {$service}`,no_services:`No <a>stock photo services</a> are configured.`},cloud_storage:{api_keys:{title:`Cloud Storage Service API Keys`,description:`Manage API keys for <a>cloud storage services</a>.`},field_label:`{$service} API Key`,no_services:`No <a>cloud storage services</a> are configured.`}},accessibility:{title:`Accessibility`,underline_links:{title:`Underline Links`,description:`Show underline for links in the entry preview and user interface labels.`,switch_label:`Always Underline Links`}},advanced:{title:`Advanced`,beta:{title:`Beta Features`,description:`Enable some beta features that may be unstable or unlocalized.`,switch_label:`Join Beta Program`},developer_mode:{title:`Developer Mode`,description:`Enable some developer-oriented features, including detailed console logs and native context menus.`,switch_label:`Enable Developer Mode`},deploy_hook:{title:`Deploy Hook`,description:`Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.`,url:{field_label:`Hook URL`,saved:`Hook URL saved.`,removed:`Hook URL removed.`},auth:{field_label:`Authorization header (e.g., Bearer <token>) (optional)`,saved:`Authorization header saved.`,removed:`Authorization header removed.`}}}},keyboard_shortcuts_:{view_content_library:`View Content Library`,view_asset_library:`View Asset Library`,search:`Search for entries and assets`,create_entry:`Create a new entry`,save_entry:`Save an entry`,cancel_editing:`Cancel entry editing`},file_type_labels:{avif:`AVIF image`,bmp:`Bitmap image`,gif:`GIF image`,ico:`Icon`,jpeg:`JPEG image`,jpg:`JPEG image`,png:`PNG image`,svg:`SVG image`,tif:`TIFF image`,tiff:`TIFF image`,webp:`WebP image`,avi:`AVI video`,m4v:`MP4 video`,mov:`QuickTime video`,mp4:`MP4 video`,mpeg:`MPEG video`,mpg:`MPEG video`,ogg:`Ogg video`,ogv:`Ogg video`,ts:`MPEG video`,webm:`WebM video`,"3gp":`3GPP video`,"3g2":`3GPP2 video`,aac:`AAC audio`,mid:`MIDI`,midi:`MIDI`,m4a:`MP4 audio`,mp3:`MP3 audio`,oga:`Ogg audio`,opus:`OPUS audio`,wav:`WAV audio`,weba:`WebM audio`,csv:`CSV spreadsheet`,doc:`Word document`,docx:`Word document`,odp:`OpenDocument presentation`,ods:`OpenDocument spreadsheet`,odt:`OpenDocument text`,pdf:`PDF document`,ppt:`PowerPoint presentation`,pptx:`PowerPoint presentation`,rtf:`Rich text document`,xls:`Excel spreadsheet`,xlsx:`Excel spreadsheet`,html:`HTML text`,js:`JavaScript`,json:`JSON text`,md:`Markdown text`,toml:`TOML text`,yaml:`YAML text`,yml:`YAML text`},file_size_units:{b:`{$size} bytes`,kb:`{$size} KB`,mb:`{$size} MB`,gb:`{$size} GB`,tb:`{$size} TB`}}})))()}var A$,jme,Mme,Nme,j$,M$,N$,P$,F$,I$,L$,Pme,Fme,Ime,Lme,Rme;function R$(){return(R$=o((()=>{Ame(),Z(),lce(),FM(),VD(),AM(),bV(),Dq(),A$=`en-US`,jme=`ar,bg,ca,cs,el,en-CA,en-GB,en-US,es-CO,fi,fr,hr,ja,ko,nl,pl,pt-BR,pt-PT,ru,tr,uk,zh-CN`.split(`,`),Mme=`${yV}@${vV}/locales`,Nme=5e3,j$=`sveltia-cms.locale`,M$=new Map,N$=kM(()=>zu.current),P$=sn(),F$=sn(),I$=async e=>{try{let{_locale:t,_version:n,...r}=await BD.get(j$)??{};if(t===e&&n===vV&&Object.keys(r).length)return r}catch{}},L$=async(e,t)=>{try{await BD.set(j$,{_locale:e,_version:vV,...t})}catch{}},Pme=async()=>{try{await BD.delete(j$)}catch{}},Fme=async e=>{let t=await fetch(`${Mme}/${e}.json`,{signal:AbortSignal.timeout(Nme)});if(!t.ok)throw Error(`Failed to load the ${e} locale strings`,{cause:t});return t.json()},Ime=async e=>{let t=await I$(e);if(t)return M$.set(e,t),t;P$.set(e);try{let t=await Fme(e);return M$.set(e,t),await L$(e,t),t}catch(t){throw F$.set({locale:e}),t}finally{P$.set(void 0)}},Lme=async e=>{let t=M$.get(e);if(!t){e===`en-US`&&M$.size&&await Pme();return}await I$(e)||await L$(e,t)},Rme=()=>{Pu(A$,{...kme,_sui:cce}),jme.filter(e=>e!==A$).forEach(e=>{Bu(e,()=>Ime(e))}),Hu({fallbackLocale:A$,initialLocale:Tq.locale||Vu()||`en-US`}),N$.subscribe(e=>{Lme(e)})}})))()}function zme(e,t){D(t,!0);let n=()=>A(F$,`$appLocaleLoadError`,r),[r,i]=fn(),a=M(!1);L(()=>{n()&&N(a,!0)});var o=V(),s=F(o),c=e=>{let t=j(()=>{let{locale:e}=n();return{locale:e}});Lh(e,{get show(){return z(a)},set show(e){N(a,e,!0)},children:(e,n)=>{sc(e,{status:`error`,children:(e,n)=>{mt();var r=Da();R(e=>U(r,e),[()=>X(`locale_load_failed`,{values:{locale:aL(z(t).locale)??z(t).locale}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(s,e=>{n()&&e(c)}),H(e,o),O(),i()}function Bme(){return(Bme=o((()=>{Y(),J(),Z(),dc(),Vh(),R$(),lL()})))()}var Vme;function Hme(){return(Hme=o((()=>{CV(),hH(),$U(),Vme=async(e,t)=>{let n=t===`image`?await nH(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let r={};try{let{parse:e}=await SV(`exifr`,`dist/lite.esm.mjs`);r=await e(n)??{}}catch{}let{latitude:i,longitude:a,DateTimeOriginal:o,CreateDate:s=o}=r;return{createdDate:s instanceof Date?s:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(a)?{latitude:QU(i,7),longitude:QU(a,7)}:void 0}}})))()}var z$,Ume,Wme,Gme,Kme;function qme(){return(qme=o((()=>{Hme(),z$=({element:e,eventType:t,src:n,getInfo:r})=>new Promise(i=>{e.addEventListener(t,()=>i(r()),{once:!0}),e.addEventListener(`error`,()=>i({}),{once:!0}),e.src=n}),Ume=e=>{let t=new Image;return z$({element:t,eventType:`load`,src:e,getInfo:()=>({dimensions:{width:t.naturalWidth,height:t.naturalHeight}})})},Wme=async(e,t)=>{let n=document.createElement(t);return z$({element:n,eventType:`loadedmetadata`,src:e,getInfo:()=>{let{duration:e}=n;if(t===`audio`)return{duration:e};let{videoWidth:r,videoHeight:i}=n;return{dimensions:{width:r,height:i},duration:e}}})},Gme=async(e,t)=>t===`image`?Ume(e):Wme(e,t),Kme=async(e,t,n)=>{let{dimensions:r,duration:i}=await Gme(t,n),{createdDate:a,coordinates:o}=await Vme(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})))()}var B$,V$,H$;function U$(){return(U$=o((()=>{AM(),hH(),jQ(),RH(),qme(),B$={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},V$=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=k(kQ)?.repository??{},i=await rH(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await Kme(e,i,t)),{...a,publicURL:fH(e),repoBlobURL:r?`${r}/${n}`:void 0}},H$=async e=>{let t=fH(e,{allowSpecial:!0,pathOnly:!0})??await rH(e);return t?IH(t):[]}})))()}function Jme(e,t){D(t,!0);let n=e=>{var t=Yme(),n=F(t);{let e=j(()=>X(`public_urls`,{values:{count:r().length}})),t=j(()=>!z(c).length);Sm(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(d,`asset_urls_copied`)}})}var i=I(n,2);{let e=j(()=>X(`file_paths`,{values:{count:r().length}}));Sm(i,{get label(){return z(e)},onclick:()=>{m(f,`asset_paths_copied`)}})}var a=I(i,2);{let e=j(()=>X(`file_data`)),t=j(()=>!z(o));Sm(a,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(p,`asset_data_copied`)}})}H(e,t)},r=q(t,`assets`,19,()=>[]),i=q(t,`useButton`,3,!0),a=M(Dr([])),o=M(!1),s=Dr({show:!1,text:``,status:`success`}),c=j(()=>z(a).filter(({publicURL:e})=>!!e).map(({publicURL:e})=>e)),l,u=async()=>{if(l=void 0,r().length!==1)return!1;let e=await nH(r()[0]),{type:t}=e;return l=e,MM(t)?!0:AV.includes(t)?typeof navigator.clipboard.write==`function`:!1},d=async()=>{await navigator.clipboard.writeText(z(c).join(`
|
|
2624
2624
|
`))},f=async()=>{await navigator.clipboard.writeText(r().map(({path:e})=>`/${e}`).join(`
|
|
2625
2625
|
`))},p=async()=>{let e=l,{type:t}=e;if(MM(t)){await navigator.clipboard.writeText(await e.text());return}if(!AV.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await WV(e)),await navigator.clipboard.write([new ClipboardItem({"image/png":e})])},m=async(e,t)=>{try{await e(),s.status=`success`,s.text=X(t,{values:{count:r().length}})}catch{s.status=`error`,s.text=X(`clipboard_error`)}finally{s.show=!0}};L(()=>{(async()=>{N(a,await Promise.all(r().map(V$)),!0),N(o,await u(),!0)})()});var h=Xme(),g=F(h),_=e=>{{let t=e=>{{let t=j(()=>X(`copy_options`));bm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=j(()=>!r().length),a=j(()=>X(`copy`));Jf(e,{variant:`ghost`,get disabled(){return z(i)},get label(){return z(a)},popupPosition:`bottom-right`,popup:t,$$slots:{popup:!0}})}},v=e=>{{let t=e=>{n(e)},i=j(()=>!r().length),a=j(()=>X(`copy`));Sm(e,{get disabled(){return z(i)},get label(){return z(a)},popupPosition:`left-top`,items:t,$$slots:{items:!0}})}};W(g,e=>{i()?e(_):e(v,-1)}),Lh(I(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{sc(e,{get status(){return s.status},children:(e,t)=>{mt();var n=Da();R(()=>U(n,s.text)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,h),O()}var Yme,Xme;function W$(){return(W$=o((()=>{Y(),J(),Z(),dc(),xm(),Zf(),Cm(),Vh(),FM(),U$(),hH(),MV(),KV(),Yme=B(`<!> <!> <!>`,1),Xme=B(`<!> <!>`,1)})))()}var G$,K$;function q$(){return(q$=o((()=>{AM(),G$={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},K$=sn({...G$})})))()}var J$;function Y$(){return(Y$=o((()=>{AM(),q$(),J$=sn({...G$})})))()}var Zme,Qme,$me,X$;function Z$(){return(Z$=o((()=>{RD(),AM(),_J(),jQ(),XL(),BY(),Dq(),VB(),Zme=()=>{let e=zY.account;if(!e)return;let{name:t,email:n,id:r,login:i}=e;if(!(!t||!n))return{name:t,email:n,id:r,login:i}},Qme=async({changes:e,commit:t})=>{let{databaseName:n}=k(kQ)?.repository??{};if(!n)return;let r=new LD(n,`file-cache`),{files:i,author:a,date:o}=t,s={commitAuthor:a,commitDate:o};await Promise.all(e.map(async e=>{let{action:t,slug:n,path:a,previousPath:o,data:c}=e;if(typeof c!=`string`||!n)return;if(t===`delete`){await r.delete(a);return}t===`move`&&await r.delete(o);let l={sha:i[a]?.sha,size:zB(c).size,text:c,meta:s};await r.set(a,l)}))},$me=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));GL.update(e=>[...e.filter(e=>!r.has(e.id)),...t]);let i=new Set(n.map(e=>e.path));e.forEach(e=>{e.action===`move`&&e.previousPath?i.add(e.previousPath):e.action===`delete`&&i.add(e.path)}),Xq.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},X$=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=k(kQ),a={...await i(e,r),author:Zme()};Tq.devModeEnabled&&(console.debug(`Commit changes:`,e),console.debug(`Commit results:`,a));let{files:o,author:s,date:c}=a,l=t.map(e=>({...e,commitAuthor:s,commitDate:c})),u=n.map(e=>{let{sha:t,file:n}=o[e.path]??{},r=n?URL.createObjectURL(n):void 0;return{...e,sha:t,blobURL:r,commitAuthor:s,commitDate:c}});return await Qme({changes:e,commit:a}),$me({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})))()}var ehe,the;function nhe(){return(nhe=o((()=>{_J(),Y$(),Z$(),q$(),ehe=({assets:e})=>{nJ.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),J$.set({...G$,deleted:!0,count:e.length})},the=async e=>{await X$({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),ehe({assets:e})}})))()}function rhe(e,t){D(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`buttonDescription`,3,``),i=q(t,`dialogDescription`,3,``),a=q(t,`onDelete`,3,void 0),o=q(t,`useButton`,3,!0),s=M(!1),c=j(()=>o()?$d:Sm);var l=ihe(),u=F(l);{let e=j(()=>!n().length),t=j(()=>X(`delete`));bo(u,()=>z(c),(n,i)=>{i(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},get"aria-label"(){return r()},onclick:()=>{N(s,!0)}})})}var d=I(u,2);{let e=j(()=>X(`delete_assets`,{values:{count:n().length}})),t=j(()=>X(`delete`));Fp(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{the(n()),a()?.()},get open(){return z(s)},set open(e){N(s,e,!0)},children:(e,t)=>{mt();var n=Da();R(()=>U(n,i())),H(e,n)},$$slots:{default:!0}})}H(e,l),O()}var ihe;function Q$(){return(Q$=o((()=>{Y(),J(),Z(),of(),Ip(),Cm(),nhe(),ihe=B(`<!> <!>`,1)})))()}function ahe(e,t){D(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`useButton`,3,!0),i=M(!1),a=j(()=>r()?$d:Sm),o=async()=>{for(let e of n())qle(await nH(e),e.name),await hd(300);N(i,!0)};var s=ohe(),c=F(s);{let e=j(()=>!n().length),t=j(()=>X(`download`));bo(c,()=>z(a),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},onclick:()=>{o()}})})}Lh(I(c,2),{get show(){return z(i)},set show(e){N(i,e,!0)},children:(e,t)=>{sc(e,{status:`success`,children:(e,t)=>{mt();var r=Da();R(e=>U(r,e),[()=>X(`assets_downloaded`,{values:{count:n().length}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,s),O()}var ohe;function $$(){return($$=o((()=>{Y(),J(),Z(),dc(),of(),Cm(),Vh(),FM(),gd(),hH(),ohe=B(`<!> <!>`,1)})))()}function she(e,t){D(t,!0);let n=()=>A(kQ,`$backend`,r),[r,i]=fn(),a=q(t,`extraItems`,3,void 0),o=M(Dr({...B$})),s=j(()=>z(o).publicURL),c=j(()=>z(o).repoBlobURL),l=async()=>{N(o,t.asset?await V$(t.asset):{...B$},!0)};L(()=>{t.asset,l()});{let r=e=>{{let r=j(()=>X(`edit_options`));bm(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=che(),o=F(i);vo(o,()=>a()??T);var l=I(o,2);{let e=j(()=>X(`edit`)),n=j(()=>X(`edit_asset`)),r=j(()=>!t.asset||!pz(t.asset));Sm(l,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{dn(aJ,t.asset)}})}var u=I(l,2);{let e=j(()=>X(`rename`)),n=j(()=>X(`rename_asset`)),r=j(()=>!t.asset);Sm(u,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{dn(oJ,t.asset)}})}var d=I(u,2);{let e=j(()=>X(`replace`)),n=j(()=>X(`replace_asset`)),r=j(()=>!t.asset);Sm(d,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{dn(iJ,{folder:void 0,files:[],originalAssets:t.asset?[t.asset]:[]}),dn(VQ,!0)}})}var f=I(d,2);rp(f,{});var p=I(f,2);{let e=j(()=>X(`view_on_live_site`)),t=j(()=>!z(s));Sm(p,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{n$(z(s))}})}var m=I(p,2),h=e=>{{let t=j(()=>!n()?.repository||!z(c)),r=j(()=>X(`view_on_x`,{values:{service:n()?.repository?.label},default:X(`view_in_repository`)}));Sm(e,{get disabled(){return z(t)},get label(){return z(r)},onclick:()=>{n$(`${z(c)}?plain=1`)}})}};W(m,e=>{Tq.devModeEnabled&&e(h)}),H(e,i)},$$slots:{default:!0}})}},i=j(()=>X(`show_edit_options`));Jf(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:r,$$slots:{popup:!0}})}O(),i()}var che;function e1(){return(e1=o((()=>{Y(),J(),Z(),sp(),xm(),Zf(),Cm(),_J(),U$(),hz(),KQ(),jQ(),Dq(),r$(),che=B(`<!> <!> <!> <!> <!> <!> <!>`,1)})))()}function t1(e,t){D(t,!0);let n=q(t,`useShortcut`,3,!1),r=q(t,`onclick`,3,void 0);{let i=e=>{{let t=j(()=>Ru()?`arrow_forward`:`arrow_back`);nc(e,{get name(){return z(t)}})}},a=j(()=>t[`aria-label`]??X(`back`)),o=j(()=>n()?`Escape`:void 0);$d(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(a)},get keyShortcuts(){return z(o)},class:`back`,get onclick(){return r()},startIcon:i,$$slots:{startIcon:!0}})}O()}function n1(){return(n1=o((()=>{Y(),J(),Z(),of(),oc()})))()}function lhe(e,t){D(t,!0);let n=()=>A(rJ,`$overlaidAsset`,i),r=()=>A(WM,`$selectedAssetFolder`,i),[i,a]=fn(),o=e=>{var t=uhe(),n=F(t);Jme(n,{get assets(){return z(s)},get useButton(){return z(c)}});var i=I(n,2);ahe(i,{get assets(){return z(s)},get useButton(){return z(c)}});var a=I(i,2);{let e=j(()=>X(`delete_assets`,{values:{count:1}})),t=j(()=>X(`confirm_deleting_this_asset`));rhe(a,{get assets(){return z(s)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)},onDelete:()=>{f$(`/assets/${r()?.internalPath??`-/all`}`)},get useButton(){return z(c)}})}H(e,t)},s=j(()=>n()?[n()]:[]),c=j(()=>!UG.isSmallScreen);{let t=j(()=>X(`primary`));Ak(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var i=dhe(),a=F(i);{let e=j(()=>X(`cancel_editing`));t1(a,{get"aria-label"(){return z(e)},useShortcut:!0,onclick:()=>{f$(`/assets/${r()?.internalPath??`-/all`}`)}})}var s=I(a,2);dd(P(s),{children:(e,t)=>{mt();var r=Da();R(()=>U(r,n()?.name)),H(e,r)},$$slots:{default:!0}}),E(s);var c=I(s,2),l=e=>{o(e)};W(c,e=>{UG.isSmallScreen||e(l)}),she(I(c,2),{get asset(){return n()},extraItems:e=>{var t=V(),n=F(t),r=e=>{o(e)};W(n,e=>{UG.isSmallScreen&&e(r)}),H(e,t)},$$slots:{extraItems:!0}}),H(e,i)},$$slots:{default:!0}})}O(),a()}var uhe,dhe;function fhe(){return(fhe=o((()=>{Y(),J(),Z(),Pk(),md(),W$(),Q$(),$$(),e1(),n1(),m$(),_J(),XM(),GG(),uhe=B(`<!> <!> <!>`,1),dhe=B(`<!> <h2 role="none"><!></h2> <!> <!>`,1)})))()}var r1,phe,mhe;function hhe(){return(hhe=o((()=>{tc(),r1=!1,phe=()=>{r1=!1,Yn()},mhe=()=>{r1||(r1=!0,queueMicrotask(phe))}})))()}function i1(e,t){D(t,!0),G(e,She);let n=q(t,`loading`,3,`lazy`),r=q(t,`asset`,3,void 0),i=q(t,`src`,15,void 0),a=q(t,`variant`,3,void 0),o=q(t,`blurBackground`,3,!1),s=q(t,`cover`,3,!1),c=q(t,`checkerboard`,3,!1),l=q(t,`dissolve`,3,!0),u=q(t,`alt`,3,``),d=q(t,`controls`,3,!1),f=Hs(t,ghe),p=M(void 0),m=M(!1),h=M(!1),g=M(void 0),_=M(void 0),v=j(()=>!!r()&&!!a()&&!d()),y=j(()=>t.kind===`image`||r()?.name.endsWith(`.pdf`)||z(v)&&oz.includes(t.kind)),b=!1,x=async()=>{if(!(!r()||!z(p)||b)){b=!0,N(m,!1),n()===`lazy`&&await Fd(z(p));try{i(z(v)?await cH(r()):await rH(r()))}catch{N(m,!0)}o()&&!z(g)&&i()&&N(g,i(),!0),b=!1,mhe()}},S=async()=>{!z(p)||!z(_)||((z(y)?!z(p).complete:!z(p).readyState)&&await new Promise(e=>{z(p)?.addEventListener(z(y)?`load`:`loadedmetadata`,()=>{e(void 0)},{once:!0})}),l()&&await Fd(z(p)),N(h,!0),r()&&z(v)&&i()?.startsWith(`blob:`)&&(await hd(500),URL.revokeObjectURL(i())))};L(()=>{o()&&r()&&!z(g)&&(async()=>{N(g,await cH(r(),{cacheOnly:!0}),!0)})()}),L(()=>{z(p)&&r()&&x()}),L(()=>{if(r())N(_,i(),!0);else if(i()&&z(p)&&n()===`lazy`){N(_,void 0);let e=i();(async()=>{await Fd(z(p)),N(_,e,!0)})()}else N(_,i(),!0)}),L(()=>{z(p)&&z(_)&&S()}),Qs(()=>()=>{r()&&dH(r()),z(p)&&jd(z(p))});var C=xhe();let w;var ee=P(C),te=e=>{nc(e,{name:`draft`})},ne=e=>{var t=_he();ds(t,()=>({loading:n(),src:z(_),alt:u(),...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Fs(t,e=>N(p,e),()=>z(p)),ua(t),H(e,t)},re=e=>{var t=vhe();ds(t,()=>({src:z(_),controls:d()||void 0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Fs(t,e=>N(p,e),()=>z(p)),H(e,t)},ie=e=>{var t=V(),n=F(t),r=e=>{var t=yhe();ds(t,()=>({src:z(_),controls:!0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Fs(t,e=>N(p,e),()=>z(p)),H(e,t)},i=e=>{nc(e,{name:`audio_file`})};W(n,e=>{d()?e(r):e(i,-1)}),H(e,t)},ae=e=>{nc(e,{name:`draft`})};W(ee,e=>{z(m)?e(te):z(y)?e(ne,1):t.kind===`video`?e(re,2):t.kind===`audio`?e(ie,3):e(ae,-1)});var oe=I(ee,2),se=e=>{var t=bhe(),n=P(t),r=P(n),i=e=>{var t=Da();R(e=>U(t,e),[()=>X(`loading`)]),H(e,t)};W(r,e=>{!z(v)&&!z(h)&&e(i)}),E(n);var a=I(n,2);let o;E(t),R(()=>{K(a,`src`,z(g)),o=es(a,1,`svelte-1yaifwd`,null,o,{loaded:!!z(g)})}),H(e,t)};W(oe,e=>{o()&&e(se)}),E(C),R(()=>w=es(C,1,`preview ${a()??``}`,`svelte-1yaifwd`,w,{cover:s(),checkerboard:c(),dissolve:l(),loaded:z(h)})),H(e,C),O()}var ghe,_he,vhe,yhe,bhe,xhe,She;function a1(){return(a1=o((()=>{Y(),J(),Z(),oc(),Id(),gd(),tc(),hH(),hz(),hhe(),ghe=new Set([`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),_he=B(`<img/>`),vhe=B(`<video></video>`,2),yhe=B(`<audio></audio>`),bhe=B(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),xhe=B(`<div role="none"><!> <!></div>`),She={hash:`svelte-1yaifwd`,code:`.preview.svelte-1yaifwd {display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;&.tile {border-width:1px;border-style:solid;border-color:transparent;padding:var(--tile-padding, 12px);.sui.icon {font-size:48px;}}&.icon {border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size, 32px);height:var(--icon-size, 32px);}&:is(.tile:where(.svelte-1yaifwd), .icon:where(.svelte-1yaifwd)) {overflow:hidden;aspect-ratio:1 / 1;img:where(.svelte-1yaifwd) {
|
|
2626
2626
|
/* Prevent the image from being dragged */pointer-events:none;}}.blur:where(.svelte-1yaifwd) {display:contents;& > :where(.svelte-1yaifwd) {position:absolute;inset:0;pointer-events:none;}.overlay:where(.svelte-1yaifwd) {display:flex;justify-content:center;align-items:center;z-index:-1;backdrop-filter:blur(32px) brightness(0.8);}img:where(.svelte-1yaifwd) {width:100%;height:100%;z-index:-2;object-fit:cover;transform:scale(1.2);&.loaded {opacity:1;}}}&.cover {padding:0;& > :is(img, video) {flex:auto;}}& > :is(img, video) {flex:0;max-width:100%;max-height:100%;}&.dissolve {:is(img, video) {opacity:0;transition:opacity 250ms;}&.loaded {:is(img, video) {opacity:1;}}}}
|
|
@@ -2721,7 +2721,7 @@ function kG(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`
|
|
|
2721
2721
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2722
2722
|
* SOFTWARE.
|
|
2723
2723
|
*/
|
|
2724
|
-
function v1(e){return!!(e&&e[Z0])}function y1(e){return!!(e&&e[Q0])}function b1(e){return y1(e)||v1(e)}function x1(e){return!!(e&&e[$0])}function S1(e,t,n,r){var i=e===i2?t:e===a2?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function C1(){return{value:void 0,done:!0}}function w1(e){return Array.isArray(e)?!0:!!E1(e)}function rge(e){return!!(e&&typeof e.next==`function`)}function T1(e){var t=E1(e);return t&&t.call(e)}function E1(e){var t=e&&(s2&&e[s2]||e[c2]);if(typeof t==`function`)return t}function ige(e){var t=E1(e);return t&&t===e.entries}function age(e){var t=E1(e);return t&&t===e.keys}function D1(){return{value:!1}}function O1(e){e&&(e.value=!0)}function k1(){}function A1(e){return e.size===void 0&&(e.size=e.__iterate(oge)),e.size}function j1(e,t){if(typeof t!=`number`){var n=t>>>0;if(``+n!==t||n===4294967295)return NaN;t=n}return t<0?A1(e)+t:t}function oge(){return!0}function M1(e,t,n){return(e===0&&!cge(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function N1(e,t){return sge(e,t,0)}function P1(e,t){return sge(e,t,t)}function sge(e,t,n){return e===void 0?n:cge(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function cge(e){return e<0||e===0&&1/e==-1/0}function F1(e){return!!(e&&e[g2])}function I1(e){return x1(e)||F1(e)}function L1(e){return!!(e&&e[_2])}function R1(e){return!!(e&&e[v2])}function z1(e){return Array.isArray(e)||typeof e==`string`?!0:e&&typeof e==`object`&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}function B1(){return z_e||=new w2([])}function V1(e){var t=H1(e);if(t)return t.fromEntrySeq();if(typeof e==`object`)return new T2(e);throw TypeError(`Expected Array or collection object of [k, v] entries, or keyed object: `+e)}function lge(e){var t=H1(e);if(t)return t;throw TypeError(`Expected Array or collection object of values: `+e)}function uge(e){var t=H1(e);if(t)return ige(e)?t.fromEntrySeq():age(e)?t.toSetSeq():t;if(typeof e==`object`)return new T2(e);throw TypeError(`Expected Array or collection object of values, or keyed object: `+e)}function H1(e){return z1(e)?new w2(e):w1(e)?new R_e(e):void 0}function U1(){return this.__ensureOwner()}function W1(){return this.__ownerID?this:this.__ensureOwner(new k1)}function G1(e){return e>>>1&1073741824|e&3221225471}function K1(e){if(e==null)return dge(e);if(typeof e.hashCode==`function`)return G1(e.hashCode(e));var t=_ge(e);if(t==null)return dge(t);switch(typeof t){case`boolean`:return t?1108378657:1108378656;case`number`:return fge(t);case`string`:return t.length>H_e?pge(t):q1(t);case`object`:case`function`:return hge(t);case`symbol`:return mge(t);default:if(typeof t.toString==`function`)return q1(t.toString());throw Error(`Value type `+typeof t+` cannot be hashed.`)}}function dge(e){return e===null?1108378658:1108378659}function fge(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return G1(t)}function pge(e){var t=F2[e];return t===void 0&&(t=q1(e),P2===U_e&&(P2=0,F2={}),P2++,F2[e]=t),t}function q1(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return G1(t)}function J1(e){if(typeof e!=`string`)return K1(e);for(var t=0,n=0;n<e.length;n++)t=V_e*t+e.charCodeAt(n)|0;return t}function mge(e){var t=j2[e];return t===void 0?(t=vge(),j2[e]=t,t):t}function hge(e){var t;if(k2&&(t=A2.get(e),t!==void 0)||(t=e[N2],t!==void 0)||!O2&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[N2],t!==void 0||(t=gge(e),t!==void 0)))return t;if(t=vge(),k2)A2.set(e,t);else if(D2!==void 0&&D2(e)===!1)throw Error(`Non-extensible objects are not allowed as keys.`);else if(O2)Object.defineProperty(e,N2,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[N2]=t;else if(e.nodeType!==void 0)e[N2]=t;else throw Error(`Unable to set a non-enumerable property on object.`);return t}function gge(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function _ge(e){return e.valueOf!==B_e&&typeof e.valueOf==`function`?e.valueOf(e):e}function vge(){var e=++M2;return M2&1073741824&&(M2=0),e}function yge(e){var t=n0(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=r0,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===o2){var r=e.__iterator(t,n);return new u2(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===a2?i2:a2,n)},t}function bge(e,t,n){var r=n0(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,h2);return a===h2?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return r(t.call(n,e,i,o),i,a)!==!1},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(o2,i);return new u2(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return S1(r,s,t.call(n,o[1],s,e),i)})},r}function Y1(e,t){var n=n0(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=yge(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=r0,n.__iterate=function(n,r){var i=this,a=0;return r&&A1(e),e.__iterate(function(e,o){return n(e,t?o:r?i.size-++a:a++,i)},!r)},n.__iterator=function(r,i){var a=0;i&&A1(e);var o=e.__iterator(o2,!i);return new u2(function(){var e=o.next();if(e.done)return e;var s=e.value;return S1(r,t?s[0]:i?n.size-++a:a++,s[1],e)})},n}function xge(e,t,n,r){var i=n0(e);return r&&(i.has=function(r){var i=e.get(r,h2);return i!==h2&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,h2);return a!==h2&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,s=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return s++,i(e,r?a:s-1,o)},a),s},i.__iteratorUncached=function(i,a){var o=e.__iterator(o2,a),s=0;return new u2(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return S1(i,r?l:s++,u,a)}})},i}function Sge(e,t,n){var r=V2().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function Cge(e,t,n){var r=y1(e),i=(L1(e)?e4():V2()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return e||=[],e.push(r?[o,a]:a),e})});var a=t0(e);return i.map(function(t){return e0(e,a(t))}).asImmutable()}function wge(e,t,n){var r=y1(e),i=[[],[]];e.__iterate(function(a,o){i[+!!t.call(n,a,o,e)].push(r?[o,a]:a)});var a=t0(e);return i.map(function(t){return e0(e,a(t))})}function X1(e,t,n,r){var i=e.size;if(M1(t,n,i))return e;if(i===void 0&&(t<0||n<0))return X1(e.toSeq().cacheResult(),t,n,r);var a=N1(t,i),o=P1(n,i)-a,s;o===o&&(s=o<0?0:o);var c=n0(e);return c.size=s===0?s:e.size&&s||void 0,!r&&R1(e)&&s>=0&&(c.get=function(t,n){return t=j1(this,t),t>=0&&t<s?e.get(t+a,n):n}),c.__iterateUncached=function(t,n){var i=this;if(s===0)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,c=!0,l=0;return e.__iterate(function(e,n){if(!(c&&=o++<a))return l++,t(e,r?n:l-1,i)!==!1&&l!==s}),l},c.__iteratorUncached=function(t,n){if(s!==0&&n)return this.cacheResult().__iterator(t,n);if(s===0)return new u2(C1);var i=e.__iterator(t,n),o=0,c=0;return new u2(function(){for(;o++<a;)i.next();if(++c>s)return C1();var e=i.next();return r||t===a2||e.done?e:t===i2?S1(t,c-1,void 0,e):S1(t,c-1,e.value[1],e)})},c}function Tge(e,t,n){var r=n0(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(o2,i),s=!0;return new u2(function(){if(!s)return C1();var e=o.next();if(e.done)return e;var i=e.value,c=i[0],l=i[1];return t.call(n,l,c,a)?r===o2?e:S1(r,c,l,e):(s=!1,C1())})},r}function Ege(e,t,n,r){var i=n0(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var s=!0,c=0;return e.__iterate(function(e,a,l){if(!(s&&=t.call(n,e,a,l)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var s=e.__iterator(o2,a),c=!0,l=0;return new u2(function(){var e,a,u;do{if(e=s.next(),e.done)return r||i===a2?e:i===i2?S1(i,l++,void 0,e):S1(i,l++,e.value[1],e);var d=e.value;a=d[0],u=d[1],c&&=t.call(n,u,a,o)}while(c);return i===o2?e:S1(i,a,u,e)})},i}function Dge(e,t){var n=y1(e),r=[e].concat(t).map(function(e){return x1(e)?n&&(e=t2(e)):e=n?V1(e):lge(Array.isArray(e)?e:[e]),e}).filter(function(e){return e.size!==0});if(r.length===0)return e;if(r.length===1){var i=r[0];if(i===e||n&&y1(i)||v1(e)&&v1(i))return i}return new W_e(r)}function Oge(e,t,n){var r=n0(e);return r.__iterateUncached=function(i,a){if(a)return this.cacheResult().__iterate(i,a);var o=0,s=!1;function c(e,l){e.__iterate(function(e,a){return(!t||l<t)&&x1(e)?c(e,l+1):(o++,i(e,n?a:o-1,r)===!1&&(s=!0)),!s},a)}return c(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(r,i),o=[],s=0;return new u2(function(){for(;a;){var e=a.next();if(e.done!==!1){a=o.pop();continue}var c=e.value;if(r===o2&&(c=c[1]),(!t||o.length<t)&&x1(c))o.push(a),a=c.__iterator(r,i);else return n?e:S1(r,s++,c,e)}return C1()})},r}function kge(e,t,n){var r=t0(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function Age(e,t){var n=n0(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e){return(!a||n(t,a++,i)!==!1)&&n(e,a++,i)!==!1},r),a},n.__iteratorUncached=function(n,r){var i=e.__iterator(a2,r),a=0,o;return new u2(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?S1(n,a++,t):S1(n,a++,o.value,o)})},n}function Z1(e,t,n){t||=Nge;var r=y1(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?x2(a):v1(e)?S2(a):C2(a)}function Q1(e,t,n){if(t||=Nge,n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return jge(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return jge(t,e,n)?n:e})}function jge(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function $1(e,t,n,r){var i=n0(e),a=new w2(n).map(function(e){return e.size});return i.size=r?a.max():a.min(),i.__iterate=function(e,t){for(var n=this.__iterator(a2,t),r,i=0;!(r=n.next()).done&&e(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var a=n.map(function(e){return e=e2(e),T1(i?e.reverse():e)}),o=0,s=!1;return new u2(function(){var n;return s||=(n=a.map(function(e){return e.next()}),r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s?C1():S1(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function e0(e,t){return e===t?e:R1(e)?t:e.constructor(t)}function Mge(e){if(e!==Object(e))throw TypeError(`Expected [K, V] tuple: `+e)}function t0(e){return y1(e)?t2:v1(e)?n2:r2}function n0(e){return Object.create((y1(e)?x2:v1(e)?S2:C2).prototype)}function r0(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):b2.prototype.cacheResult.call(this)}function Nge(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function Pge(e){return!!(e&&typeof e.equals==`function`&&typeof e.hashCode==`function`)}function i0(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf==`function`&&typeof t.valueOf==`function`){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(Pge(e)&&Pge(t)&&e.equals(t))}function Fge(e,t,n,r){return D0(e,[t],n,r)}function Ige(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Rge(this,e)}function Lge(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];if(typeof e!=`function`)throw TypeError(`Invalid merger function: `+e);return Rge(this,t,e)}function Rge(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=t2(t[i]);a.size!==0&&r.push(a)}return r.length===0?e:e.toSeq().size===0&&!e.__ownerID&&r.length===1?F1(e)?e:e.constructor(r[0]):e.withMutations(function(e){for(var t=n?function(t,r){Fge(e,r,h2,function(e){return e===h2?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})}function zge(e){if(!e||typeof e!=`object`||G_e.call(e)!==`[object Object]`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t,r=Object.getPrototypeOf(t);r!==null;)n=r,r=Object.getPrototypeOf(n);return n===t}function a0(e){return typeof e==`object`&&(I1(e)||Array.isArray(e)||zge(e))}function o0(e){return typeof e==`string`&&(e===`__proto__`||e===`constructor`)}function s0(e,t){t||=0;for(var n=Math.max(0,e.length-t),r=Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function c0(e){if(Array.isArray(e))return s0(e);var t={};for(var n in e)o0(n)||y2.call(e,n)&&(t[n]=e[n]);return t}function l0(e,t,n){return u0(e,t,Bge(n))}function u0(e,t,n){if(!a0(e))throw TypeError(`Cannot merge into non-data-structure value: `+e);if(I1(e))return typeof n==`function`&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,a=r?n2:t2,o=r?function(t){i===e&&(i=c0(i)),i.push(t)}:function(t,r){if(!o0(r)){var a=y2.call(i,r),o=a&&n?n(i[r],t,r):t;(!a||o!==i[r])&&(i===e&&(i=c0(i)),i[r]=o)}},s=0;s<t.length;s++)a(t[s]).forEach(o);return i}function Bge(e){function t(n,r,i){return a0(n)&&a0(r)&&Vge(n,r)?u0(n,[r],t):e?e(n,r,i):r}return t}function Vge(e,t){var n=b2(e),r=b2(t);return v1(n)===v1(r)&&y1(n)===y1(r)}function Hge(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return l0(this,e)}function Uge(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return l0(this,t,e)}function d0(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return D0(this,e,C0(),function(e){return l0(e,t)})}function f0(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return D0(this,e,C0(),function(e){return u0(e,t)})}function Wge(e,t,n){return D0(e,t,h2,function(){return n})}function p0(e,t){return Wge(this,e,t)}function m0(e,t,n){return arguments.length===1?e(this):Fge(this,e,t,n)}function h0(e,t,n){return D0(this,e,t,n)}function g0(){return this.__altered}function _0(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function v0(e){return!!(e&&e[B2])}function y0(e,t){if(!e)throw Error(t)}function b0(e){y0(e!==1/0,`Cannot perform this action with an infinite size.`)}function x0(e,t){return S1(e,t[0],t[1])}function Gge(e,t){return{node:e,index:0,__prev:t}}function S0(e,t,n,r){var i=Object.create(H2);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function C0(){return q_e||=S0(0)}function Kge(e,t,n){var r,i;if(e._root){var a=D1(),o=D1();if(r=w0(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===h2?-1:1:0)}else{if(n===h2)return e;i=1,r=new U2(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?S0(i,r):C0()}function w0(e,t,n,r,i,a,o,s){return e?e.update(t,n,r,i,a,o,s):a===h2?e:(O1(s),O1(o),new q2(t,r,[i,a]))}function qge(e){return e.constructor===q2||e.constructor===K2}function T0(e,t,n,r,i){if(e.keyHash===r)return new K2(t,r,[e.entry,i]);var a=(n===0?e.keyHash:e.keyHash>>>n)&m2,o=(n===0?r:r>>>n)&m2,s,c=a===o?[T0(e,t,n+f2,r,i)]:(s=new q2(t,r,i),a<o?[e,s]:[s,e]);return new W2(t,1<<a|1<<o,c)}function Jge(e,t,n,r){e||=new k1;for(var i=new q2(e,K1(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function Yge(e,t,n,r){for(var i=0,a=0,o=Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];u!==void 0&&s!==r&&(i|=c,o[a++]=u)}return new W2(e,i,o)}function Xge(e,t,n,r,i){for(var a=0,o=Array(p2),s=0;n!==0;s++,n>>>=1)o[s]=n&1?t[a++]:void 0;return o[r]=i,new G2(e,a+1,o)}function Zge(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function Qge(e,t,n,r){var i=r?e:s0(e);return i[t]=n,i}function $ge(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=Array(i),o=0,s=0;s<i;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function e_e(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}function t_e(e){if(z1(e)&&typeof e!=`string`)return e;if(L1(e))return e.toArray();throw TypeError(`Invalid keyPath: expected Ordered Collection or Array: `+e)}function E0(e){try{return typeof e==`string`?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function n_e(e,t){return I1(e)?e.has(t):a0(e)&&y2.call(e,t)}function r_e(e,t,n){return I1(e)?e.get(t,n):n_e(e,t)?typeof e.get==`function`?e.get(t):e[t]:n}function i_e(e,t){if(!a0(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(I1(e)){if(!e.remove)throw TypeError(`Cannot update immutable value without .remove() method: `+e);return e.remove(t)}if(!y2.call(e,t))return e;var n=c0(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function a_e(e,t,n){if(o0(t))return e;if(!a0(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(I1(e)){if(!e.set)throw TypeError(`Cannot update immutable value without .set() method: `+e);return e.set(t,n)}if(y2.call(e,t)&&n===e[t])return e;var r=c0(e);return r[t]=n,r}function D0(e,t,n,r){r||(r=n,n=void 0);var i=o_e(I1(e),e,t_e(t),0,n,r);return i===h2?n:i}function o_e(e,t,n,r,i,a){var o=t===h2;if(r===n.length){var s=o?i:t,c=a(s);return c===s?t:c}if(!o&&!a0(t))throw TypeError(`Cannot update within non-data-structure value in path [`+Array.from(n).slice(0,r).map(E0)+`]: `+t);var l=n[r],u=o?h2:r_e(t,l,h2),d=o_e(u===h2?e:I1(u),u,n,r+1,i,a);return d===u?t:d===h2?i_e(t,l):a_e(o?e?C0():{}:t,l,d)}function s_e(e,t){return D0(e,t,function(){return h2})}function O0(e){return s_e(this,e)}function c_e(e){return!!(e&&e[J2])}function l_e(e,t){var n=e._origin,r=e._capacity,i=P0(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return t===0?s(e,n):c(e,t,n)}function s(e,o){var s=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,l=r-o;return l>p2&&(l=p2),function(){if(c===l)return Q2;var e=t?--l:c++;return s&&s[e]}}function c(e,i,a){var s,c=e&&e.array,l=a>n?0:n-a>>i,u=(r-a>>i)+1;return u>p2&&(u=p2),function(){for(;;){if(s){var e=s();if(e!==Q2)return e;s=null}if(l===u)return Q2;var n=t?--u:l++;s=o(c&&c[n],i-f2,a+(n<<i))}}}}function k0(e,t,n,r,i,a,o){var s=Object.create(X2);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function A0(){return k0(0,0,f2)}function u_e(e,t,n){if(t=j1(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?N0(e,t).set(0,n):N0(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=D1();return t>=P0(e._capacity)?r=j0(r,e.__ownerID,0,t,n,a):i=j0(i,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):k0(e._origin,e._capacity,e._level,i,r):e}function j0(e,t,n,r,i,a){var o=r>>>n&m2,s=e&&o<e.array.length;if(!s&&i===void 0)return e;var c;if(n>0){var l=e&&e.array[o],u=j0(l,t,n-f2,r,i,a);return u===l?e:(c=M0(e,t),c.array[o]=u,c)}return s&&e.array[o]===i?e:(a&&O1(a),c=M0(e,t),i===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=i,c)}function M0(e,t){return t&&e&&t===e.ownerID?e:new Z2(e?e.array.slice():[],t)}function d_e(e,t){if(t>=P0(e._capacity))return e._tail;if(t<1<<e._level+f2){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m2],r-=f2;return n}}function f_e(e,t,n){var r=e._origin+(t===void 0?0:t),i=n===void 0?e._capacity:n<0?e._capacity+n:e._origin+n;if(Number.isFinite(i)&&i>$2||Number.isFinite(r)&&r<-$2||Number.isFinite(i)&&Number.isFinite(r)&&i-r>$2)throw RangeError(`Invalid List size: a List cannot hold more than `+$2+` (2 ** 30) values.`)}function N0(e,t,n){f_e(e,t,n),t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new k1,i=e._origin,a=e._capacity,o=i+t,s=n===void 0?a:n<0?a+n:i+n;if(o===i&&s===a)return e;if(o>=s)return e.clear();for(var c=e._level,l=e._root,u=0;o+u<0;)l=new Z2(l&&l.array.length?[void 0,l]:[],r),c+=f2,u+=p_e(c);u&&(o+=u,i+=u,s+=u,a+=u);for(var d=P0(a),f=P0(s);f>=p_e(c+f2);)l=new Z2(l&&l.array.length?[l]:[],r),c+=f2;var p=e._tail,m=f<d?d_e(e,s-1):f>d?new Z2([],r):p;if(p&&f>d&&o<a&&p.array.length){l=M0(l,r);for(var h=l,g=c;g>f2;g-=f2){var _=d>>>g&m2;h=h.array[_]=M0(h.array[_],r)}h.array[d>>>f2&m2]=p}if(s<a&&(m&&=m.removeAfter(r,0,s)),o>=f)o-=f,s-=f,c=f2,l=void 0,m&&=m.removeBefore(r,0,o);else if(o>i||f<d){for(u=0;l;){var v=o>>>c&m2;if(v!==f>>>c&m2)break;v&&(u+=(1<<c)*v),c-=f2,l=l.array[v]}l&&o>i&&(l=l.removeBefore(r,c,o-u)),l&&f<d&&(l=l.removeAfter(r,c,f-u)),u&&(o-=u,s-=u)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):k0(o,s,c,l,m)}function P0(e){return e<p2?0:e-1>>>f2<<f2}function p_e(e){return e<31?1<<e:2**e}function m_e(e){return v0(e)&&L1(e)}function F0(e,t,n,r){var i=Object.create(e4.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function I0(){return Q_e||=F0(C0(),A0())}function h_e(e,t,n){var r=e._map,i=e._list,a=r.get(t),o=a!==void 0,s,c;if(n===h2){if(!o)return e;i.size>=p2&&i.size>=r.size*2?(c=i.filter(function(e,t){return e!==void 0&&a!==t}),s=c.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(s.__ownerID=c.__ownerID=e.__ownerID)):(s=r.remove(t),c=a===i.size-1?i.pop():i.set(a,void 0))}else if(o){if(n===i.get(a)[1])return e;s=r,c=i.set(a,[t,n])}else s=r.set(t,i.size),c=i.set(i.size,[t,n]);return e.__ownerID?(e.size=s.size,e._map=s,e._list=c,e.__hash=void 0,e.__altered=!0,e):F0(s,c)}function L0(e){return!!(e&&e[t4])}function R0(e,t,n,r){var i=Object.create(r4);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function z0(){return $_e||=R0(0)}function g_e(e,t,n,r,i,a){return b0(e.size),e.__iterate(function(e,a,o){i?(i=!1,n=e):n=t.call(r,n,e,a,o)},a),n}function __e(e,t){return t}function v_e(e,t){return[t,e]}function B0(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function y_e(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function b_e(e,t){return e<t?1:e>t?-1:0}function x_e(e,t){if(e===t)return!0;if(!x1(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||y1(e)!==y1(t)||v1(e)!==v1(t)||L1(e)!==L1(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!b1(e);if(L1(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&i0(i[1],e)&&(n||i0(i[0],t))})&&r.next().done}var i=!1;if(e.size===void 0){if(t.size===void 0)typeof e.cacheResult==`function`&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}}var o=!0,s=t.__iterate(function(t,r){if(n?!e.has(t):i?!i0(t,e.get(r,h2)):!i0(e.get(r,h2),t))return o=!1,!1});return o&&e.size===s}function V0(e){return!!(e&&e[a4])}function H0(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function S_e(e,t){var n=Object.create(s4);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function U0(){return tve||=S_e(C0())}function C_e(e,t,n){for(var r=t_e(t),i=0;i!==r.length;)if(e=r_e(e,r[i++],h2),e===h2)return n;return e}function w_e(e,t){return C_e(this,e,t)}function T_e(e,t){return C_e(e,t,h2)!==h2}function E_e(e){return T_e(this,e)}function D_e(){b0(this.size);var e={};return this.__iterate(function(t,n){o0(n)||(e[n]=t)}),e}function W0(e){if(!e||typeof e!=`object`)return e;if(!x1(e)){if(!a0(e))return e;e=b2(e)}if(y1(e)){var t={};return e.__iterate(function(e,n){o0(n)||(t[n]=W0(e))}),t}var n=[];return e.__iterate(function(e){n.push(W0(e))}),n}function O_e(e){if(e.size===1/0)return 0;var t=L1(e),n=y1(e),r=+!!t;return e.__iterate(n?t?function(e,t){r=31*r+A_e(K1(e),K1(t))|0}:function(e,t){r=r+A_e(K1(e),K1(t))|0}:t?function(e){r=31*r+K1(e)|0}:function(e){r=r+K1(e)|0}),k_e(e.size,r)}function k_e(e,t){return t=E2(t,3432918353),t=E2(t<<15|t>>>-15,461845907),t=E2(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=E2(t^t>>>16,2246822507),t=E2(t^t>>>13,3266489909),t=G1(t^t>>>16),t}function A_e(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function G0(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function j_e(){return s0(arguments)}function M_e(e){return V0(e)&&L1(e)}function N_e(e,t){var n=Object.create(p4);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function K0(){return nve||=N_e(I0())}function P_e(e){if(F1(e))throw Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I1(e))throw Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(typeof e!=`object`||!e)throw Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}function q0(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function J0(e){return e.constructor.displayName||e.constructor.name||`Record`}function Y0(e){return V1(e._keys.map(function(t){return[t,e.get(t)]}))}function F_e(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){y0(this.__ownerID,`Cannot set on an immutable record.`),this.set(t,e)}})}catch{}}function X0(e,t){return I_e([],t||L_e,e,``,t&&t.length>2?[]:void 0,{"":e})}function I_e(e,t,n,r,i,a){if(typeof n!=`string`&&!I1(n)&&(z1(n)||w1(n)||zge(n))){if(~e.indexOf(n))throw TypeError(`Cannot convert circular structure to Immutable`);e.push(n),i&&r!==``&&i.push(r);var o=t.call(a,r,b2(n).map(function(r,a){return I_e(e,t,r,a,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function L_e(e,t){return v1(t)?t.toList():y1(t)?t.toMap():t.toSet()}var Z0,Q0,$0,e2,t2,n2,r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,R_e,z_e,E2,B_e,V_e,D2,O2,k2,A2,j2,M2,N2,H_e,U_e,P2,F2,I2,L2,R2,z2,W_e,G_e,B2,V2,H2,U2,W2,G2,K2,q2,K_e,q_e,J_e,Y_e,X_e,Z_e,J2,Y2,X2,Z2,Q2,$2,e4,Q_e,t4,n4,r4,$_e,eve,i4,a4,o4,s4,tve,c4,l4,u4,d4,f4,p4,nve,m4,h4;function g4(){return(g4=o((()=>{Z0=`@@__IMMUTABLE_INDEXED__@@`,Q0=`@@__IMMUTABLE_KEYED__@@`,$0=`@@__IMMUTABLE_ITERABLE__@@`,e2=function(e){return x1(e)?e:b2(e)},t2=function(e){function t(e){return y1(e)?e:x2(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(e2),n2=function(e){function t(e){return v1(e)?e:S2(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(e2),r2=function(e){function t(e){return x1(e)&&!b1(e)?e:C2(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(e2),e2.Keyed=t2,e2.Indexed=n2,e2.Set=r2,i2=0,a2=1,o2=2,s2=typeof Symbol==`function`&&Symbol.iterator,c2=`@@iterator`,l2=s2||c2,u2=function(e){this.next=e},u2.prototype.toString=function(){return`[Iterator]`},u2.KEYS=i2,u2.VALUES=a2,u2.ENTRIES=o2,u2.prototype.inspect=u2.prototype.toSource=function(){return this.toString()},u2.prototype[l2]=function(){return this},d2=`delete`,f2=5,p2=1<<f2,m2=p2-1,h2={},g2=`@@__IMMUTABLE_RECORD__@@`,_2=`@@__IMMUTABLE_ORDERED__@@`,v2=`@@__IMMUTABLE_SEQ__@@`,y2=Object.prototype.hasOwnProperty,b2=function(e){function t(e){return e==null?B1():I1(e)?e.toSeq():uge(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString(`Seq {`,`}`)},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var a=n[t?r-++i:i++];if(e(a[1],a[0],this)===!1)break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new u2(function(){if(i===r)return C1();var a=n[t?r-++i:i++];return S1(e,a[0],a[1])})}return this.__iteratorUncached(e,t)},t}(e2),x2=function(e){function t(e){return e==null?B1().toKeyedSeq():x1(e)?y1(e)?e.toSeq():e.fromEntrySeq():F1(e)?e.toSeq():V1(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(b2),S2=function(e){function t(e){return e==null?B1():x1(e)?y1(e)?e.entrySeq():e.toIndexedSeq():F1(e)?e.toSeq().entrySeq():lge(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString(`Seq [`,`]`)},t}(b2),C2=function(e){function t(e){return(x1(e)&&!b1(e)?e:S2(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(b2),b2.isSeq=R1,b2.Keyed=x2,b2.Set=C2,b2.Indexed=S2,b2.prototype[v2]=!0,w2=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[j1(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var a=t?r-++i:i++;if(e(n[a],a,this)===!1)break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new u2(function(){if(i===r)return C1();var a=t?r-++i:i++;return S1(e,a,n[a])})},t}(S2),T2=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},t.prototype.has=function(e){return y2.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,a=0;a!==i;){var o=r[t?i-++a:a++];if(e(n[o],o,this)===!1)break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,a=0;return new u2(function(){if(a===i)return C1();var o=r[t?i-++a:a++];return S1(e,o,n[o])})},t}(x2),T2.prototype[_2]=!0,R_e=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._collection,r=T1(n),i=0;if(rge(r))for(var a;!(a=r.next()).done&&e(a.value,i++,this)!==!1;);return i},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._collection,r=T1(n);if(!rge(r))return new u2(C1);var i=0;return new u2(function(){var t=r.next();return t.done?t:S1(e,i++,t.value)})},t}(S2),E2=typeof Math.imul==`function`?Math.imul:function(e,t){e|=0,t|=0;var n=e&65535,r=t&65535;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},B_e=Object.prototype.valueOf,V_e=(Math.random()*1048576|1)%1048576||40503,D2=Object.isExtensible,O2=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})(),k2=typeof WeakMap==`function`,k2&&(A2=new WeakMap),j2=Object.create(null),M2=0,N2=`__immutablehash__`,typeof Symbol==`function`&&(N2=Symbol(N2)),H_e=16,U_e=255,P2=0,F2={},I2=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Y1(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=bge(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(x2),I2.prototype[_2]=!0,L2=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&A1(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(a2,t),i=0;return t&&A1(this),new u2(function(){var a=r.next();return a.done?a:S1(e,t?n.size-++i:i++,a.value,a)})},t}(S2),R2=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(a2,t);return new u2(function(){var t=n.next();return t.done?t:S1(e,t.value,t.value,t)})},t}(C2),z2=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Mge(t);var r=x1(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(a2,t);return new u2(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Mge(r);var i=x1(r);return S1(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(x2),L2.prototype.cacheResult=I2.prototype.cacheResult=R2.prototype.cacheResult=z2.prototype.cacheResult=r0,W_e=function(e){function t(e){this._wrappedIterables=e.flatMap(function(e){return e._wrappedIterables?e._wrappedIterables:[e]}),this.size=this._wrappedIterables.reduce(function(e,t){if(e!==void 0){var n=t.size;if(n!==void 0)return e+n}},0),this[Q0]=this._wrappedIterables[0][Q0],this[Z0]=this._wrappedIterables[0][Z0],this[_2]=this._wrappedIterables[0][_2]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(this._wrappedIterables.length!==0){if(t)return this.cacheResult().__iterate(e,t);for(var n=0,r=y1(this),i=r?o2:a2,a=this._wrappedIterables[n].__iterator(i,t),o=!0,s=0;o;){for(var c=a.next();c.done;){if(n++,n===this._wrappedIterables.length)return s;a=this._wrappedIterables[n].__iterator(i,t),c=a.next()}o=(r?e(c.value[1],c.value[0],this):e(c.value,s,this))!==!1,s++}return s}},t.prototype.__iteratorUncached=function(e,t){var n=this;if(this._wrappedIterables.length===0)return new u2(C1);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new u2(function(){for(var a=i.next();a.done;){if(r++,r===n._wrappedIterables.length)return a;i=n._wrappedIterables[r].__iterator(e,t),a=i.next()}return a})},t}(b2),G_e=Object.prototype.toString,B2=`@@__IMMUTABLE_MAP__@@`,V2=function(e){function t(t){return t==null?C0():v0(t)&&!L1(t)?t:C0().withMutations(function(n){var r=e(t);b0(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString(`Map {`,`}`)},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Kge(this,e,t)},t.prototype.remove=function(e){return Kge(this,e,h2)},t.prototype.deleteAll=function(e){var t=e2(e);return t.size===0?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):C0()},t.prototype.sort=function(e){return e4(Z1(this,e))},t.prototype.sortBy=function(e,t){return e4(Z1(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,a){r.set(a,e.call(t,i,a,n))})})},t.prototype.__iterator=function(e,t){return new K_e(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?S0(this.size,this._root,e,this.__hash):this.size===0?C0():(this.__ownerID=e,this.__altered=!1,this)},t}(t2),V2.isMap=v0,H2=V2.prototype,H2[B2]=!0,H2[d2]=H2.remove,H2.removeAll=H2.deleteAll,H2.setIn=p0,H2.removeIn=H2.deleteIn=O0,H2.update=m0,H2.updateIn=h0,H2.merge=H2.concat=Ige,H2.mergeWith=Lge,H2.mergeDeep=Hge,H2.mergeDeepWith=Uge,H2.mergeIn=f0,H2.mergeDeepIn=d0,H2.withMutations=_0,H2.wasAltered=g0,H2.asImmutable=U1,H2[`@@transducer/init`]=H2.asMutable=W1,H2[`@@transducer/step`]=function(e,t){return e.set(t[0],t[1])},H2[`@@transducer/result`]=function(e){return e.asImmutable()},U2=function(e,t){this.ownerID=e,this.entries=t},U2.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(i0(n,i[a][0]))return i[a][1];return r},U2.prototype.update=function(e,t,n,r,i,a,o){for(var s=i===h2,c=this.entries,l=0,u=c.length;l<u&&!i0(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(O1(o),(s||!d)&&O1(a),!(s&&c.length===1)){if(!d&&!s&&c.length>=J_e)return Jge(e,c,r,i);var f=e&&e===this.ownerID,p=f?c:s0(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new U2(e,p)}},W2=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n},W2.prototype.get=function(e,t,n,r){t===void 0&&(t=K1(n));var i=1<<((e===0?t:t>>>e)&m2),a=this.bitmap;return(a&i)===0?r:this.nodes[Zge(a&i-1)].get(e+f2,t,n,r)},W2.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=K1(r));var s=(t===0?n:n>>>t)&m2,c=1<<s,l=this.bitmap,u=(l&c)!==0;if(!u&&i===h2)return this;var d=Zge(l&c-1),f=this.nodes,p=u?f[d]:void 0,m=w0(p,e,t+f2,n,r,i,a,o);if(m===p)return this;if(!u&&m&&f.length>=Y_e)return Xge(e,f,l,s,m);if(u&&!m&&f.length===2&&qge(f[d^1]))return f[d^1];if(u&&m&&f.length===1&&qge(m))return m;var h=e&&e===this.ownerID,g=u?m?l:l^c:l|c,_=u?m?Qge(f,d,m,h):e_e(f,d,h):$ge(f,d,m,h);return h?(this.bitmap=g,this.nodes=_,this):new W2(e,g,_)},G2=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n},G2.prototype.get=function(e,t,n,r){t===void 0&&(t=K1(n));var i=(e===0?t:t>>>e)&m2,a=this.nodes[i];return a?a.get(e+f2,t,n,r):r},G2.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=K1(r));var s=(t===0?n:n>>>t)&m2,c=i===h2,l=this.nodes,u=l[s];if(c&&!u)return this;var d=w0(u,e,t+f2,n,r,i,a,o);if(d===u)return this;var f=this.count;if(!u)f++;else if(!d&&(f--,f<X_e))return Yge(e,l,f,s);var p=e&&e===this.ownerID,m=Qge(l,s,d,p);return p?(this.count=f,this.nodes=m,this):new G2(e,f,m)},K2=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n,this._index=void 0},K2.prototype._positionOf=function(e,t){var n=this.entries,r=this._index;if(r===void 0&&t&&n.length>=Z_e&&(r=this._buildIndex()),r!==void 0){var i=r[J1(e)];if(i!==void 0)for(var a=0;a<i.length;a++){var o=i[a];if(i0(e,n[o][0]))return o}return-1}for(var s=0,c=n.length;s<c;s++)if(i0(e,n[s][0]))return s;return-1},K2.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,n=0,r=t.length;n<r;n++){var i=J1(t[n][0]),a=e[i];a===void 0?e[i]=[n]:a.push(n)}return this._index=e,e},K2.prototype.get=function(e,t,n,r){var i=this._positionOf(n,!0);return i===-1?r:this.entries[i][1]},K2.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=K1(r));var s=i===h2;if(n!==this.keyHash)return s?this:(O1(o),O1(a),T0(this,e,t,n,[r,i]));var c=this.entries,l=c.length,u=e&&e===this.ownerID,d=this._positionOf(r,u),f=d===-1?l:d,p=d!==-1;if(p?c[f][1]===i:s)return this;if(O1(o),(s||!p)&&O1(a),s&&l===2)return new q2(e,this.keyHash,c[f^1]);var m=u?c:s0(c);if(p)s?(f===l-1?m.pop():m[f]=m.pop(),u&&(this._index=void 0)):m[f]=[r,i];else if(m.push([r,i]),u&&this._index!==void 0){var h=J1(r),g=this._index[h];g===void 0?this._index[h]=[l]:g.push(l)}return u?(this.entries=m,this):new K2(e,this.keyHash,m)},q2=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n},q2.prototype.get=function(e,t,n,r){return i0(n,this.entry[0])?this.entry[1]:r},q2.prototype.update=function(e,t,n,r,i,a,o){var s=i===h2,c=i0(r,this.entry[0]);if(c?i===this.entry[1]:s)return this;if(O1(o),s){O1(a);return}return c?e&&e===this.ownerID?(this.entry[1]=i,this):new q2(e,this.keyHash,[r,i]):(O1(a),T0(this,e,t,K1(r),[r,i]))},U2.prototype.iterate=K2.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},W2.prototype.iterate=G2.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&a.iterate(e,t)===!1)return!1}},q2.prototype.iterate=function(e,t){return e(this.entry)},K_e=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Gge(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(r===0)return x0(e,n.entry)}else if(n.entries){if(i=n.entries.length-1,r<=i)return x0(e,n.entries[this._reverse?i-r:r])}else if(i=n.nodes.length-1,r<=i){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return x0(e,a.entry);t=this._stack=Gge(a,t)}continue}t=this._stack=this._stack.__prev}return C1()},t}(u2),J_e=p2/4,Y_e=p2/2,X_e=p2/4,Z_e=16,J2=`@@__IMMUTABLE_LIST__@@`,Y2=function(e){function t(t){var n=A0();if(t==null)return n;if(c_e(t))return t;var r=e(t),i=r.size;return i===0?n:(b0(i),i>0&&i<p2?k0(0,i,f2,void 0,new Z2(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`List [`,`]`)},t.prototype.get=function(e,t){if(e=j1(this,e),e>=0&&e<this.size){e+=this._origin;var n=d_e(this,e);return n&&n.array[e&m2]}return t},t.prototype.set=function(e,t){return u_e(this,e,t)},t.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=f2,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):A0()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){N0(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return N0(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){N0(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return N0(this,1)},t.prototype.shuffle=function(e){return e===void 0&&(e=Math.random),this.withMutations(function(t){for(var n=t.size,r,i;n;)r=Math.floor(e()*n--),i=t.get(r),t.set(r,t.get(n)),t.set(n,i)})},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],a=e(typeof i!=`string`&&w1(i)?i:[i]);a.size!==0&&n.push(a)}return n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})})},t.prototype.setSize=function(e){return N0(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))})},t.prototype.slice=function(e,t){var n=this.size;return M1(e,t,n)?this:N0(this,N1(e,n),P1(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=l_e(this,t);return new u2(function(){var i=r();return i===Q2?C1():S1(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n=t?this.size:0,r=l_e(this,t),i;(i=r())!==Q2&&e(i,t?--n:n++,this)!==!1;);return n},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?k0(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):this.size===0?A0():(this.__ownerID=e,this.__altered=!1,this)},t}(n2),Y2.isList=c_e,X2=Y2.prototype,X2[J2]=!0,X2[d2]=X2.remove,X2.merge=X2.concat,X2.setIn=p0,X2.deleteIn=X2.removeIn=O0,X2.update=m0,X2.updateIn=h0,X2.mergeIn=f0,X2.mergeDeepIn=d0,X2.withMutations=_0,X2.wasAltered=g0,X2.asImmutable=U1,X2[`@@transducer/init`]=X2.asMutable=W1,X2[`@@transducer/step`]=function(e,t){return e.push(t)},X2[`@@transducer/result`]=function(e){return e.asImmutable()},Z2=function(e,t){this.array=e,this.ownerID=t},Z2.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+f2)-1)||this.array.length===0)return this;var r=n>>>t&m2;if(r>=this.array.length)return new Z2([],e);var i=r===0,a;if(t>0){var o=this.array[r];if(a=o&&o.removeBefore(e,t-f2,n),a===o&&i)return this}if(i&&!a)return this;var s=M0(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return a&&(s.array[r]=a),s},Z2.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+f2:p2)||this.array.length===0)return this;var r=n-1>>>t&m2;if(r>=this.array.length)return this;var i;if(t>0){var a=this.array[r];if(i=a&&a.removeAfter(e,t-f2,n),i===a&&r===this.array.length-1)return this}var o=M0(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o},Q2={},$2=2**30,e4=function(e){function t(e){return e==null?I0():m_e(e)?e:I0().withMutations(function(t){var n=t2(e);b0(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`OrderedMap {`,`}`)},t.prototype.get=function(e,t){var n=this._map.get(e);return n===void 0?t:this._list.get(n)[1]},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):I0()},t.prototype.set=function(e,t){return h_e(this,e,t)},t.prototype.remove=function(e){return h_e(this,e,h2)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?F0(t,n,e,this.__hash):this.size===0?I0():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(V2),e4.isOrderedMap=m_e,e4.prototype[_2]=!0,e4.prototype[d2]=e4.prototype.remove,t4=`@@__IMMUTABLE_STACK__@@`,n4=function(e){function t(e){return e==null?z0():L0(e)?e:z0().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`Stack [`,`]`)},t.prototype.get=function(e,t){var n=this._head;for(e=j1(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(arguments.length===0)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):R0(t,n)},t.prototype.pushAll=function(t){if(t=e(t),t.size===0)return this;if(this.size===0&&L0(t))return t;b0(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):R0(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):z0()},t.prototype.slice=function(t,n){if(M1(t,n,this.size))return this;var r=N1(t,this.size);if(P1(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=i,this._head=a,this.__hash=void 0,this.__altered=!0,this):R0(i,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?R0(this.size,this._head,e,this.__hash):this.size===0?z0():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new w2(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&e(i.value,r++,this)!==!1;)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new w2(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new u2(function(){if(r){var t=r.value;return r=r.next,S1(e,n++,t)}return C1()})},t}(n2),n4.isStack=L0,r4=n4.prototype,r4[t4]=!0,r4.shift=r4.pop,r4.unshift=r4.push,r4.unshiftAll=r4.pushAll,r4.withMutations=_0,r4.wasAltered=g0,r4.asImmutable=U1,r4[`@@transducer/init`]=r4.asMutable=W1,r4[`@@transducer/step`]=function(e,t){return e.unshift(t)},r4[`@@transducer/result`]=function(e){return e.asImmutable()},eve=function(e){function t(e,n,r){if(r===void 0&&(r=1),!(this instanceof t))return new t(e,n,r);if(y0(r!==0,`Cannot step a Range by 0`),y0(e!==void 0,`You must define a start value when using Range`),y0(n!==void 0,`You must define an end value when using Range`),r=Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),this.size===0){if(i4)return i4;i4=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?`Range []`:`Range [ `+this._start+`...`+this._end+(this._step===1?``:` by `+this._step)+` ]`},t.prototype.get=function(e,t){return this.has(e)?this._start+j1(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return M1(e,n,this.size)?this:(e=N1(e,this.size),n=P1(n,this.size),n<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;a!==n&&e(i,t?n-++a:a++,this)!==!1;)i+=t?-r:r;return a},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;return new u2(function(){if(a===n)return C1();var o=i;return i+=t?-r:r,S1(e,t?n-++a:a++,o)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:x_e(this,e)},t}(S2),a4=`@@__IMMUTABLE_SET__@@`,o4=function(e){function t(t){return t==null?U0():V0(t)&&!L1(t)?t:U0().withMutations(function(n){var r=e(t);b0(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(t2(e).keySeq())},t.intersect=function(e){return e=e2(e).toArray(),e.length?s4.intersect.apply(t(e.pop()),e):U0()},t.union=function(e){return e=e2(e).toArray(),e.length?s4.union.apply(t(e.pop()),e):U0()},t.prototype.toString=function(){return this.__toString(`Set {`,`}`)},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return H0(this,this._map.set(e,e))},t.prototype.remove=function(e){return H0(this,this._map.remove(e))},t.prototype.clear=function(){return H0(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=H0(this,this._map.mapEntries(function(i){var a=i[1],o=e.call(t,a,a,n);return o!==a&&(r=!0),[o,o]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t=t.filter(function(e){return e.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(n){for(var r=0;r<t.length;r++)typeof t[r]==`string`?n.add(t[r]):e(t[r]).forEach(function(e){return n.add(e)})})},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return f4(Z1(this,e))},t.prototype.sortBy=function(e,t){return f4(Z1(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):this.size===0?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(r2),o4.isSet=V0,s4=o4.prototype,s4[a4]=!0,s4[d2]=s4.remove,s4.merge=s4.concat=s4.union,s4.withMutations=_0,s4.asImmutable=U1,s4[`@@transducer/init`]=s4.asMutable=W1,s4[`@@transducer/step`]=function(e,t){return e.add(t)},s4[`@@transducer/result`]=function(e){return e.asImmutable()},s4.__empty=U0,s4.__make=S_e,e2.Iterator=u2,G0(e2,{toArray:function(){b0(this.size);var e=Array(this.size||0),t=y1(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new L2(this)},toJS:function(){return W0(this)},toKeyedSeq:function(){return new I2(this,!0)},toMap:function(){return V2(this.toKeyedSeq())},toObject:D_e,toOrderedMap:function(){return e4(this.toKeyedSeq())},toOrderedSet:function(){return f4(y1(this)?this.valueSeq():this)},toSet:function(){return o4(y1(this)?this.valueSeq():this)},toSetSeq:function(){return new R2(this)},toSeq:function(){return v1(this)?this.toIndexedSeq():y1(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return n4(y1(this)?this.valueSeq():this)},toList:function(){return Y2(y1(this)?this.valueSeq():this)},toString:function(){return`[Collection]`},__toString:function(e,t){return this.size===0?e+t:e+` `+this.toSeq().map(this.__toStringMapper).join(`, `)+` `+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e0(this,Dge(this,e))},includes:function(e){return this.some(function(t){return i0(t,e)})},entries:function(){return this.__iterator(o2)},every:function(e,t){b0(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return e0(this,xge(this,e,t,!0))},partition:function(e,t){return wge(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return b0(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){b0(this.size),e=e===void 0?`,`:``+e;var t=``,n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=r==null?``:r.toString()}),t},keys:function(){return this.__iterator(i2)},map:function(e,t){return e0(this,bge(this,e,t))},reduce:function(e,t,n){return g_e(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return g_e(this,e,t,n,arguments.length<2,!0)},reverse:function(){return e0(this,Y1(this,!0))},slice:function(e,t){return e0(this,X1(this,e,t,!0))},some:function(e,t){b0(this.size);var n=!1;return this.__iterate(function(r,i,a){if(e.call(t,r,i,a))return n=!0,!1}),n},sort:function(e){return e0(this,Z1(this,e))},values:function(){return this.__iterator(a2)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size===void 0?!this.some(function(){return!0}):this.size===0},count:function(e,t){return A1(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return Sge(this,e,t)},equals:function(e){return x_e(this,e)},entrySeq:function(){var e=this;if(e._cache)return new w2(e._cache);var t=e.toSeq().map(v_e).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(B0(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,a){if(e.call(t,n,i,a))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(oge,null,e)},flatMap:function(e,t){return e0(this,kge(this,e,t))},flatten:function(e){return e0(this,Oge(this,e,!0))},fromEntrySeq:function(){return new z2(this)},get:function(e,t){return this.find(function(t,n){return i0(n,e)},void 0,t)},getIn:w_e,groupBy:function(e,t){return Cge(this,e,t)},has:function(e){return this.get(e,h2)!==h2},hasIn:E_e,isSubset:function(e){return e=typeof e.includes==`function`?e:e2(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset==`function`?e:e2(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return i0(t,e)})},keySeq:function(){return this.toSeq().map(__e).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Q1(this,e)},maxBy:function(e,t){return Q1(this,t,e)},min:function(e){return Q1(this,e?y_e(e):b_e)},minBy:function(e,t){return Q1(this,t?y_e(t):b_e,e)},rest:function(){return this.slice(1)},skip:function(e){return e===0?this:this.slice(Math.max(0,e))},skipLast:function(e){return e===0?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return e0(this,Ege(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(B0(e),t)},sortBy:function(e,t){return e0(this,Z1(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return e0(this,Tge(this,e,t))},takeUntil:function(e,t){return this.takeWhile(B0(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||=O_e(this)}}),c4=e2.prototype,c4[$0]=!0,c4[l2]=c4.values,c4.toJSON=c4.toArray,c4.__toStringMapper=E0,c4.inspect=c4.toSource=function(){return this.toString()},c4.chain=c4.flatMap,c4.contains=c4.includes,G0(t2,{flip:function(){return e0(this,yge(this))},mapEntries:function(e,t){var n=this,r=0;return e0(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return e0(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}}),l4=t2.prototype,l4[Q0]=!0,l4[l2]=c4.entries,l4.toJSON=D_e,l4.__toStringMapper=function(e,t){return E0(t)+`: `+E0(e)},G0(n2,{toKeyedSeq:function(){return new I2(this,!1)},filter:function(e,t){return e0(this,xge(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return t===void 0?-1:t},reverse:function(){return e0(this,Y1(this,!1))},slice:function(e,t){return e0(this,X1(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),n===0||n===2&&!t)return this;e=N1(e,e<0?this.count():this.size);var r=this.slice(0,e);return e0(this,n===1?r:r.concat(s0(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return e0(this,Oge(this,e,!1))},get:function(e,t){return e=j1(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=j1(this,e),e>=0&&(this.size===void 0?this.find(function(t,n){return n===e},void 0,h2)!==h2:this.size===1/0||e<this.size)},interpose:function(e){return e0(this,Age(this,e))},interleave:function(){var e=[this].concat(s0(arguments)),t=$1(this.toSeq(),S2.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),e0(this,n)},keySeq:function(){return eve(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return e0(this,Ege(this,e,t,!1))},zip:function(){var e=[this].concat(s0(arguments));return e0(this,$1(this,j_e,e))},zipAll:function(){var e=[this].concat(s0(arguments));return e0(this,$1(this,j_e,e,!0))},zipWith:function(e){var t=s0(arguments);return t[0]=this,e0(this,$1(this,e,t))}}),u4=n2.prototype,u4[Z0]=!0,u4[_2]=!0,G0(r2,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),d4=r2.prototype,d4.has=c4.includes,d4.contains=d4.includes,d4.keys=d4.values,G0(x2,l4),G0(S2,u4),G0(C2,d4),f4=function(e){function t(e){return e==null?K0():M_e(e)?e:K0().withMutations(function(t){var n=r2(e);b0(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(t2(e).keySeq())},t.prototype.toString=function(){return this.__toString(`OrderedSet {`,`}`)},t}(o4),f4.isOrderedSet=M_e,p4=f4.prototype,p4[_2]=!0,p4.zip=u4.zip,p4.zipWith=u4.zipWith,p4.zipAll=u4.zipAll,p4.__empty=K0,p4.__make=N_e,m4=function(e,t){var n;P_e(e);var r=function(a){var o=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var s=Object.keys(e),c=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var u=s[l];c[u]=l,i[u]?typeof console==`object`&&console.warn&&console.warn(`Cannot define `+J0(this)+` with property "`+u+`" since that property name is part of the Record API.`):F_e(i,u)}}return this.__ownerID=void 0,this._values=Y2().withMutations(function(e){e.setSize(o._keys.length),t2(a).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(h4);return i.constructor=r,t&&(r.displayName=t),r},m4.prototype.toString=function(){for(var e=J0(this)+` { `,t=this._keys,n,r=0,i=t.length;r!==i;r++)n=t[r],e+=(r?`, `:``)+n+`: `+E0(this.get(n));return e+` }`},m4.prototype.equals=function(e){return this===e||F1(e)&&Y0(this).equals(Y0(e))},m4.prototype.hashCode=function(){return Y0(this).hashCode()},m4.prototype.has=function(e){return this._indices.hasOwnProperty(e)},m4.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return r===void 0?this._defaultValues[e]:r},m4.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return q0(this,n)}return this},m4.prototype.remove=function(e){return this.set(e)},m4.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:q0(this,e)},m4.prototype.wasAltered=function(){return this._values.wasAltered()},m4.prototype.toSeq=function(){return Y0(this)},m4.prototype.toJS=function(){return W0(this)},m4.prototype.entries=function(){return this.__iterator(o2)},m4.prototype.__iterator=function(e,t){return Y0(this).__iterator(e,t)},m4.prototype.__iterate=function(e,t){return Y0(this).__iterate(e,t)},m4.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?q0(this,t,e):(this.__ownerID=e,this._values=t,this)},m4.isRecord=F1,m4.getDescriptiveName=J0,h4=m4.prototype,h4[g2]=!0,h4[d2]=h4.remove,h4.deleteIn=h4.removeIn=O0,h4.getIn=w_e,h4.hasIn=c4.hasIn,h4.merge=Ige,h4.mergeWith=Lge,h4.mergeIn=f0,h4.mergeDeep=Hge,h4.mergeDeepWith=Uge,h4.mergeDeepIn=d0,h4.setIn=p0,h4.update=m0,h4.updateIn=h0,h4.withMutations=_0,h4.asMutable=W1,h4.asImmutable=U1,h4[l2]=h4.entries,h4.toJSON=h4.toObject=c4.toObject,h4.inspect=h4.toSource=function(){return this.toString()}})))()}var rve;function ive(){return(ive=o((()=>{FM(),hH(),rve=class{#e;constructor(e){this.#e=e,this.path=fH(e,{pathOnly:!0})??``,this.url=e.blobURL??this.path,this.field=void 0,this.fileObj=e.file,(async()=>{this.url=await rH(e)??this.url})()}toString(){return this.url}async toBase64(){try{let e=await nH(this.#e);return PM(e)}catch(e){throw Error(`Failed to encode asset as base64: ${e.message}`)}}}})))()}var _4,v4,ave,ove,sve,y4,b4;function x4(){return(x4=o((()=>{g4(),AM(),ive(),_J(),XM(),RH(),MI(),hW(),_4=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>X0({data:LM(e),i18n:Object.fromEntries(t.map(e=>[e,{data:LM(n[e].content)}])),slug:r,path:i,newRecord:a,collection:o,mediaFiles:s.map(({sha:e,file:t,size:n,blobURL:r,...i})=>({id:e,name:i.name,path:i.path,file:t,size:n,url:r,displayURL:r})),meta:{path:i},isModification:null,label:null,partial:!1,author:``,raw:``,status:``,updatedOn:``}),v4=({entry:e,locale:t,collectionName:n,associatedAssets:r,content:i})=>{let a=i??e?.locales?.[t]?.content??{};return _4({content:a,otherLocales:Object.keys(e?.locales??{}).filter(e=>e!==t),locales:e?.locales??{},slug:e?.slug??``,path:e?.locales?.[t]?.path??``,isNew:!1,collectionName:n,associatedAssets:r})},ave=({entry:e,collectionName:t,fileName:n})=>r=>{let i=fJ({value:r,entry:e,collectionName:t,fileName:n});if(i)return new rve(i)},ove=({locale:e,getFieldArgs:t})=>{let{valueMap:n={}}=t,r={},i=new Map;return Object.entries(n).forEach(([n,a])=>{let o=n.replace(/\.\d+$/,``),s=sW({...t,keyPath:o});if(s?.widget===`relation`){let{value_field:t=`{{slug}}`,collection:n,file:c}=s,l=(()=>{let e=`${n}:${c??``}`,t=i.get(e);if(t)return t;let r=(c?[AI(n,c)]:PH(n)).filter(e=>!!e);return i.set(e,r),r})();r[o]??={},r[o][n]??={},r[o][n][a]=l.find(n=>t===`{{slug}}`?n.slug===a:n.locales[e]?.content?.[t]===a)?.locales[e]?.content}}),X0(r)},sve=({originalEntry:e,currentValues:t})=>({...e,locales:Object.fromEntries(Object.entries(t).map(([t,n])=>[t,{slug:e?.locales[t]?.slug??e?.slug,path:e?.locales[t]?.path??e?.subPath,content:n}]))}),y4=({collectionName:e,fileName:t})=>{let n=KM({collectionName:e,fileName:t});return n?k(Xq).filter(e=>pJ(e,n)):[]},b4=({draft:e,locale:t})=>{let{collectionName:n,fileName:r,isIndexFile:i,originalEntry:a,currentValues:o}=e,s=sve({originalEntry:a,currentValues:o}),c=s.locales[t].content??{},l={collectionName:n,fileName:r,valueMap:c,isIndexFile:i};return{entryMap:v4({entry:s,locale:t,collectionName:n,associatedAssets:y4({collectionName:n,fileName:r}),content:c}),valueMap:c,getFieldArgs:l,fieldsMetaData:ove({locale:t,getFieldArgs:l}),getAsset:ave({entry:s,collectionName:n,fileName:r})}}})))()}var S4,C4;function w4(){return(w4=o((()=>{FM(),wD(),AM(),_J(),XM(),hH(),VL(),ZI(),hW(),S4=async(e,t)=>{let{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=e,{locales:a}=t,{content:o}=a[r]??Object.values(a)[0]??{};if(!o)return;let s=i.some(e=>e.includes(`*`))?Object.keys(o):void 0,c=i.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${_D(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await mH({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},C4=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=RL(t);if(!a)return[];let o=XI(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||dJ(a))){let s=sW({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=fJ({value:a,entry:e,collectionName:t,fileName:n});if(c&&JM(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(!r||e.entryRelative)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&KM({collectionName:t,fileName:n})?.entryRelative){let t=NM(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));k(Xq).forEach(n=>{let r=NM(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})))()}var T4,cve,E4;function D4(){return(D4=o((()=>{_(),g4(),x4(),UI(),w4(),BY(),T4=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],cve=[`preSave`,`prePublish`],E4=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=zY.account,{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:d,locales:f}=n,p=Object.keys(f).filter(e=>e!==u),{content:m,path:g}=f[u],_=C4({entry:n,collectionName:c,fileName:l});for(let t of HI){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:_4({content:m,otherLocales:p,locales:f,slug:d,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(cve.includes(e)&&v0(n)){let e=n.toJS();h(e.data)&&h(e.i18n)?(f[u].content=IM(e.data),p.forEach(t=>{h(e.i18n[t]?.data)&&(f[t].content=IM(e.i18n[t].data))})):f[u].content=IM(e)}}}})))()}var lve,O4;function k4(){return(k4=o((()=>{wD(),BW(),ZI(),lL(),VB(),lve=({basePath:e,path:t,extension:n,locale:r,omitLocale:i,structure:a})=>{switch(a){case`multiple_folders`:return i?`${e}/${t}.${n}`:`${e}/${r}/${t}.${n}`;case`multiple_folders_i18n_root`:case`multiple_root_folders`:return i?`${e}/${t}.${n}`:`${r}/${e}/${t}.${n}`;case`multiple_files`:return i?`${e}/${t}.${n}`:`${e}/${t}.${r}.${n}`;default:return`${e}/${t}.${n}`}},O4=({draft:e,locale:t,slug:n})=>{let{collection:r,collectionFile:i,originalEntry:a,currentValues:o,isIndexFile:s}=e,{_i18n:{defaultLocale:c,structure:l,omitDefaultLocaleFromFilePath:u}}=i??r;if(i){let{_i18n:e,file:n}=i;return cL({_i18n:e,locale:t,path:yD(n)})}if(a?.locales[t]?.slug===n)return a.locales[t].path;let d=r,{_file:{basePath:f,subPath:p,extension:m}}=d,h=s?YI(d)?.name:p?zW(p,{collection:d,locale:t,content:o[c],currentSlug:n}):n;s&&h?.endsWith(`.${m}`)&&(h=h.slice(0,-m.length-1));let g=lve({basePath:f,path:h,extension:m,locale:t,omitLocale:u&&t===c,structure:l});return IB(g.split(`/`))}})))()}var A4,j4,uve,dve,fve,M4;function N4(){return(N4=o((()=>{BW(),ZI(),A4=(e,t)=>{let n={...e};return Object.entries(n).forEach(([e,r])=>{typeof r==`string`&&r.startsWith(`blob:`)&&t[r]&&(n[e]=t[r].file.name.replace(/\.[^.]+$/,``))}),n},j4=({draft:e})=>{let{collection:t,collectionFile:n,currentSlugs:r,currentValues:i,files:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=n??t;return{collection:t,content:{...A4(i[s],a),_slug:r?.[s]??r?._},locale:s,isIndexFile:o}},uve=({draft:e,locale:t,localizingKeyPaths:n})=>{let{isNew:r,collection:i,collectionFile:a,originalLocales:o,currentSlugs:s,currentValues:c,files:l,isIndexFile:u}=e,{_type:d}=i,{identifier_field:f=`title`,slug:p=`{{${f}}}`}=d===`entry`?i:{},{_i18n:{defaultLocale:m}}=a??i,h=s?.[t]??s?._;return r||!o[t]?zW(p,{collection:i,locale:t,content:{...A4(c[m],l),...A4(Object.fromEntries(n.map(e=>[e,c[t]?.[e]])),l),_slug:h},isIndexFile:u}):h},dve=({draft:e,defaultLocaleSlug:t})=>{let{collection:n,collectionFile:r,currentLocales:i}=e,{_type:a}=n,{identifier_field:o=`title`,slug:s=`{{${o}}}`}=a===`entry`?n:{},{_i18n:{defaultLocale:c,structureMap:{i18nSingleFile:l,i18nSingleFileDefaultRoot:u}}}=r??n,d=[...s.matchAll(/{{((?:fields\.)?.+?)( \| localize)?}}/g)].filter(([,,e])=>!!e).map(([,e])=>e.replace(/^fields\./,``));if(!(l||u||!d.length))return Object.fromEntries(Object.entries(i).map(([n])=>[n,n===c?t:uve({draft:e,locale:n,localizingKeyPaths:d})]))},fve=({draft:e,defaultLocaleSlug:t,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;let{collection:i,collectionFile:a}=e,{_i18n:{canonicalSlug:{value:o}}}=a??i;return o===`{{slug}}`?t:zW(o,{...r,currentSlug:t})},M4=({draft:e})=>{let{isNew:t,collection:n,collectionFile:r,fileName:i,currentSlugs:a,isIndexFile:o}=e,{_type:s}=n,{identifier_field:c=`title`,slug:l=`{{${c}}}`}=s===`entry`?n:{};if(o)return{defaultLocaleSlug:YI(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};let{_i18n:{defaultLocale:u}}=r??n,d=j4({draft:e}),f=i??(t?zW(l,d):a?.[u]??a?._),p=dve({draft:e,defaultLocaleSlug:f});return{defaultLocaleSlug:f,localizedSlugs:p,canonicalSlug:fve({draft:e,defaultLocaleSlug:f,localizedSlugs:p,fillSlugOptions:d})}}})))()}var pve,mve,P4,F4,hve,gve,_ve,vve,yve,bve;function xve(){return(xve=o((()=>{pve=l(xq(),1),_J(),hz(),BW(),k4(),N4(),VB(),mve=[`multiple_folders`,`multiple_folders_i18n_root`,`multiple_root_folders`],P4=/(?<path>.+?)(?:\/[^/]+)?$/,F4=(e,t)=>e.includes(`{{`)?zW(e,t):e,hve=(e,t)=>{let n=e.lastIndexOf(`.`),r=e.substring(0,n),i=t?.includes(`/`)?t.split(`/`).at(-1):void 0;return i&&!i.includes(`{{`)&&(r=r.match(P4)?.groups?.path),r},gve=({internalPath:e,internalSubPath:t,entryFolderPath:n,isMultiFolders:r,isNestedEntry:i,fillSlugOptions:a})=>{let o=IB([r||i?n:e,t]);return RB(F4(o,a))},_ve=({publicPath:e,subPathFolderPath:t,subPath:n,isMultiFolders:r,fillSlugOptions:i})=>{if(!r&&/^\.?$/.test(e))return e;let a=r?IB([...Array((n?.match(/\//g)??[]).length+1).fill(`..`),e,t]):e;return RB(F4(a,i))},vve=({folder:e,fillSlugOptions:t})=>{let{entryRelative:n,internalPath:r,internalSubPath:i,publicPath:a}=e;if(r===void 0||a===void 0)return{resolvedInternalPath:``,resolvedPublicPath:``};if(!n)return{resolvedInternalPath:zW(r,t),resolvedPublicPath:zW(a,t)};let{collection:o,entryFilePath:s}=t,c=mve.includes(o._i18n.structure),l=o._type===`entry`?o._file.subPath:void 0,u=l?.match(P4)?.groups?.path??``,d=hve(s??``,l),f=l?.includes(`/`)??!1;return{resolvedInternalPath:gve({internalPath:r,internalSubPath:i,entryFolderPath:d,isMultiFolders:c,isNestedEntry:f,fillSlugOptions:t}),resolvedPublicPath:_ve({publicPath:a,subPathFolderPath:u,subPath:l,isMultiFolders:c,fillSlugOptions:t})}},yve=({draft:e,defaultLocaleSlug:t,folder:n})=>{let{collection:r,collectionName:i,collectionFile:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=a??r,c=vve({folder:n,fillSlugOptions:{...j4({draft:e}),type:`media_folder`,currentSlug:t,entryFilePath:O4({draft:e,locale:s,slug:t}),isIndexFile:o}}),{resolvedInternalPath:l}=c;return{assetFolderPaths:c,assetNamesInSameFolder:hJ(l).map(e=>e.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},bve=async({file:e,folder:t,replace:n,blobURL:r,draft:i,defaultLocaleSlug:a,keyPath:o,content:s,changes:c,savingAssets:l,encodingEnabled:u})=>{let d=await BB(e),f=l.find(e=>e.sha===d&&(!t.entryRelative||(0,pve.default)(e.folder,t))),{savingAssetProps:p,assetNamesInSameFolder:m,assetFolderPaths:{resolvedInternalPath:h,resolvedPublicPath:g}}=yve({draft:i,defaultLocaleSlug:a,folder:t}),_=``;if(f)_=f.name;else{_=NB(e.name,n?{}:{assetNamesInSameFolder:m});let t=n&&m.includes(_),i=h?`${h}/${_}`:_;t||m.push(_),c.push({action:t?`update`:`create`,path:i,data:e}),l.push({...p,blobURL:r,name:_,path:i,sha:d,size:e.size,kind:mz(_)})}let v=g?`${g===`/`?``:g}/${_}`:_;u&&(v=OB(v)),s[o]=s[o].replaceAll(r,v)}})))()}var I4,L4,R4,Sve,z4;function B4(){return(B4=o((()=>{PG(),AM(),qF(),UI(),zq(),tL(),I4=(e,t=k(Nq)?.output?.json??{})=>{let{indent_style:n=`space`,indent_size:r=n===`tab`?1:2}=t;return JSON.stringify(e,null,n===`tab`?` `.repeat(r):r).trim()},L4=e=>Tpe(e).trim(),R4=(e,t=k(Nq)?.output?.yaml??{},n={})=>{let{indent_size:r=2,indent_sequences:i=!0,quote:a=`none`}=t,{quote:o=!1}=n;return KF(e,null,{indent:r,indentSeq:i,lineWidth:0,defaultKeyType:`PLAIN`,defaultStringType:o||a===`double`?`QUOTE_DOUBLE`:a===`single`?`QUOTE_SINGLE`:`PLAIN`,singleQuote:!(o||a===`double`)}).trim()},Sve=({content:e,_file:t})=>{let{format:n,fmDelimiters:r,bodyField:{key:i=`body`,inline:a=!1}={},yamlQuote:o=!1}=t,[s,c]=r??[`---`,`---`],l=``;if(!a&&i in e&&(l=typeof e[i]==`string`?e[i]:``,delete e[i]),!Object.keys(e).length)return`${l}\n`;try{let t=``;if(n===`frontmatter`||n===`yaml-frontmatter`)t=R4(e,void 0,{quote:o});else if(n===`toml-frontmatter`)t=L4(e);else if(n===`json-frontmatter`)t=I4(e);else return``;return`${s}\n${t}\n${c}\n${!a&&l?`\n${l}\n`:``}`}catch(e){console.error(e)}return``},z4=async({content:e,_file:t})=>{let{format:n,yamlQuote:r=!1}=t,i=zI.get(n)?.formatter;if(i)return`${(await i(e)).trim()}\n`;if(n===`raw`)return typeof e.body==`string`?`${e.body}\n`:``;try{if(/^ya?ml$/.test(n))return`${R4(e,void 0,{quote:r})}\n`;if(n===`toml`)return`${L4(e)}\n`;if(n===`json`)return`${I4(e)}\n`}catch(e){return console.error(e),``}return n===`frontmatter`||eL.includes(n)?Sve({content:e,_file:t}):``}})))()}var Cve,V4,wve,H4,Tve,Eve,Dve,Ove,kve,Ave,U4,jve,Mve,Nve;function W4(){return(W4=o((()=>{_(),RD(),AM(),jQ(),Z$(),q$(),RH(),ZI(),a3(),n3(),B4(),Cve=`order`,V4=e=>{let t=e?.reorder;if(t)return h(t)&&typeof t.key==`string`&&t.key?t.key:Cve},wve=e=>{let t=e?.reorder;if(h(t)&&typeof t.group==`string`&&t.group)return t.group},H4=(e,t)=>{let n=V4(t);if(!n)return[...e];let{defaultLocale:r}=t._i18n,i=e.map(e=>{let t=Number(e.locales[r]?.content?.[n]);return{entry:e,v:t,has:Number.isFinite(t)}});return i.sort((e,t)=>e.has&&t.has?e.v-t.v:e.has?-1:+!!t.has),i.map(({entry:e})=>e)},Tve=e=>({collection:e,collectionName:e.name,collectionFile:void 0,fields:e.fields,isIndexFile:!1}),Eve=({collection:e,entry:t,draft:n})=>{let{_i18n:{i18nEnabled:r,defaultLocale:i,structureMap:{i18nSingleFileDefaultRoot:a}={}}}=e;if(!r)return t3({draft:n,locale:`_default`,valueMap:t.locales[i].content});let o=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([e,t])=>[e,t3({draft:n,locale:e,valueMap:t.content})]));if(a){let{lang:e,...t}=o[i]??{},n=Object.fromEntries(Object.entries(o).filter(([e])=>e!==i));return{lang:[i,...Object.keys(n)],...t,...n}}return o},Dve=(e,t,n)=>{let r=Object.fromEntries(Object.entries(e.locales).map(([e,r])=>[e,r.content?{...r,content:{...r.content,[t]:n}}:{...r}]));return{...e,locales:r}},Ove=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{defaultLocale:a}}=e,{slug:o,path:s}=t.locales[a],[c,l]=await Promise.all([r3({cacheDB:r,previousPath:s}),z4({content:Eve({collection:e,entry:t,draft:n}),_file:i})]);return{action:`update`,slug:o,path:s,previousSha:c,data:l}},kve=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{allLocales:a}}=e;return(await Promise.all(a.map(async e=>{let a=t.locales[e];if(!a?.content)return;let[o,s]=await Promise.all([r3({cacheDB:r,previousPath:a.path}),z4({content:t3({draft:n,locale:e,valueMap:a.content}),_file:i})]);return{action:`update`,slug:a.slug,path:a.path,previousSha:o,data:s}}))).filter(Boolean)},Ave=e=>{if(e)return e;let t=k(kQ)?.repository?.databaseName;return t?new LD(t,`file-cache`):void 0},U4=async(e,t,{cacheDB:n}={})=>{let r=V4(e);if(!r)return{changes:[],savingEntries:[]};let{_i18n:{i18nEnabled:i,defaultLocale:a,structureMap:{i18nSingleFile:o,i18nSingleFileDefaultRoot:s}={}}}=e,c=!i||o||s,l=Ave(n),u=[];for(let[e,n]of t.entries()){let t=e+1;Number(n.locales[a]?.content?.[r])!==t&&u.push(Dve(n,r,t))}let d=Tve(e);return{changes:(await Promise.all(u.map(t=>c?Ove({collection:e,entry:t,draft:d,cacheDB:l}).then(e=>[e]):kve({collection:e,entry:t,draft:d,cacheDB:l})))).flat(),savingEntries:u}},jve=async(e,t,{silent:n=!1}={})=>{let{changes:r,savingEntries:i}=await U4(e,t);return r.length?(await X$({changes:r,savingEntries:i,options:{commitType:`update`,collection:e}}),n||K$.set({...G$,saved:!0,count:i.length}),i.length):0},Mve=(e,{excludeIds:t}={})=>{let n=YI(e)?.name,r=PH(e.name).filter(e=>e.slug!==n&&!(t&&t.has(e.id)));return H4(r,e)},Nve=async(e,{excludeIds:t,cacheDB:n}={})=>!e||e._type!==`entry`||!V4(e)?{changes:[],savingEntries:[]}:U4(e,Mve(e,{excludeIds:t}),{cacheDB:n})})))()}var G4,K4,q4,J4,Y4,Pve,Fve,Ive,Lve,X4;function Z4(){return(Z4=o((()=>{G4=l(xq(),1),AM(),Dq(),K4=/\.__sc_\w+$/,q4=sn(),J4=sn(!0),Y4=sn(!1),Pve=(e={})=>{let{files:t}=k(q4)??{};Object.keys(t??{}).forEach(t=>{t in e||URL.revokeObjectURL(t)})},Fve=e=>Object.fromEntries(Object.entries(e).filter(([e])=>!K4.test(e))),Ive=(e,t)=>{let n=0;return Object.keys(t).some(r=>!K4.test(r)&&(n+=1,!Object.hasOwn(e,r)||!(0,G4.default)(e[r],t[r])))||Object.keys(e).length!==n},Lve=(e,t)=>{let n=Object.keys(t);return n.length!==Object.keys(e).length||n.some(n=>{let r=e[n];return!r||Ive(r,t[n])})},X4=cn([q4],([e])=>{if(!e)return!1;let{originalLocales:t,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:a,currentValues:o}=e;return!(0,G4.default)(t,n)||!(0,G4.default)(r,i)||Lve(a,o)}),q4.subscribe(e=>{Tq.devModeEnabled&&console.info(`entryDraft`,e)})})))()}var Q4,Rve;function zve(){return(zve=o((()=>{hW(),II(),Q4=({field:e,keyPath:t,keyPathList:n})=>{let{widget:r}=e,i=r===`list`;if(n.push(t),i||r===`object`){let{fields:r}=e,{types:a,typeKey:o=`type`}=e;if(r)r.forEach(e=>{Q4({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})});else if(a)n.push(i?`${t}.*.${o}`:`${t}.${o}`),a.forEach(e=>{e.fields?.forEach(e=>{Q4({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})})});else if(i){let{field:r}=e;r?Q4({field:r,keyPath:`${t}.*`,keyPathList:n}):n.push(`${t}.*`)}}else r&&FI.includes(r)&&iW(e)&&n.push(`${t}.*`)},Rve=e=>{let t=[];return e.forEach(e=>{Q4({field:e,keyPath:e.name,keyPathList:t})}),t}})))()}var Bve,$4,e3,Vve,t3;function n3(){return(n3=o((()=>{_(),wD(),uG(),AM(),zq(),W4(),Z4(),zve(),hW(),bI(),tL(),aI(),Bve=new Map,$4=e=>e==null||e===``||Array.isArray(e)&&!e.length||h(e)&&!Object.keys(e).length,e3=({key:e,field:t,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:a,omitEmptyOptionalFields:o})=>{if(K4.test(e)){delete r[e];return}let s=r[e];if(a&&t?.widget===`datetime`&&!yI(t).format){let e=new lG(s);s=e.isValid()?e:void 0}if(o&&t&&!lW({fieldConfig:t,locale:n})&&$4(s)){let t=Object.keys(r).filter(t=>t.startsWith(`${e}.`));t.some(e=>!K4.test(e)&&!$4(r[e]))?i[e]=s:t.forEach(e=>{delete r[e]})}else i[e]=s;delete r[e]},Vve=({collectionName:e,fileName:t,fields:n,locale:r,valueMap:i,canonicalSlugKey:a,orderKey:o,isIndexFile:s=!1,isTomlOutput:c=!1})=>{let l=g(i),u={},{omit_empty_optional_fields:d=!1}=k(Nq)?.output??{},f={collectionName:e,fileName:t,valueMap:i,isIndexFile:s},p={locale:r,unsortedMap:l,sortedMap:u,isTomlOutput:c,omitEmptyOptionalFields:d};return a&&a in l&&e3({...p,key:a}),o&&o in l&&e3({...p,key:o}),Rve(n).forEach(e=>{let t=sW({...f,keyPath:e});if(e in l)e3({...p,key:e,field:t});else if(t?.widget===`keyvalue`)u[e]={},Object.entries(l).filter(([t])=>t.startsWith(`${e}.`)).forEach(([e])=>{e3({...p,key:e,field:t})});else{let n=rI(Bve,e,()=>RegExp(`^${_D(e.replaceAll(`*`,`\\d+`)).replaceAll(`\\\\d\\+`,`\\d+`)}$`));Object.keys(l).filter(e=>n.test(e)).sort(([e,t])=>CD(e,t)).forEach(e=>{let n=t??sW({...f,keyPath:e});e3({...p,key:e,field:n})})}}),Object.keys(l).sort(([e,t])=>CD(e,t)).forEach(e=>{e3({...p,key:e})}),LM(u)},t3=({draft:e,locale:t,valueMap:n})=>{let{collection:r,collectionName:i,collectionFile:a,fields:o,isIndexFile:s}=e,{_file:c,_i18n:{canonicalSlug:{key:l}}}=a??r,u=npe.includes(c.format),d=Vve({collectionName:i,fileName:a?.name,fields:o,locale:t,valueMap:n,canonicalSlugKey:l,orderKey:V4(r),isIndexFile:s,isTomlOutput:u});return!u&&rW(o,`list`)?d[o[0].name]??[]:rW(o,`keyvalue`)?d[o[0].name]??{}:d}})))()}var Hve,r3,Uve,Wve,i3;function a3(){return(a3=o((()=>{FM(),_(),RD(),AM(),D4(),XM(),jQ(),zq(),xve(),k4(),n3(),hW(),B4(),Hve=async({draft:e,slugs:{defaultLocaleSlug:t,canonicalSlug:n,localizedSlugs:r}})=>{let i=k(UM),{collection:a,collectionName:o,collectionFile:s,fileName:c,isIndexFile:l,currentLocales:u,currentValues:d,files:f}=e,{_i18n:{canonicalSlug:{key:p}}}=s??a,m=[],h=[],{encode_file_path:_=!1}=k(Nq)?.output??{},v={collectionName:o,fileName:c,keyPath:``,valueMap:{},isIndexFile:l},y={draft:e,defaultLocaleSlug:t,changes:m,savingAssets:h};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(d).map(async([a,o])=>{let s=r?.[a]??t,c=O4({draft:e,locale:a,slug:s});return u[a]?(n!==void 0&&(o[p]=n),await Promise.all(Object.entries(o).map(async([e,t])=>{if(t===void 0){delete o[e];return}if(typeof t!=`string`)return;o[e]=t.trim();let n=[...t.matchAll(jM(`g`))];if(!n.length)return;let r=sW({...v,valueMap:o,keyPath:e}),a={...y,keyPath:e,content:o,encodingEnabled:r?.widget===`richtext`||r?.widget===`markdown`||_};await Promise.all(n.map(async([e])=>{let{file:t,folder:n=i,replace:r}=f[e]??{};t&&await bve({...a,file:t,folder:n,replace:r,blobURL:e})}))})),[a,{slug:s,path:c,content:g(o)}]):[a,{path:c}]}))),changes:m,savingAssets:h}},r3=async({previousPath:e,cacheDB:t})=>{if(e)return(await t?.get(e))?.sha},Uve=async({draft:e,savingEntry:t,cacheDB:n})=>{let{collection:r,isNew:i,originalSlugs:a,originalEntry:o,collectionFile:s}=e,{_file:c,_i18n:{i18nEnabled:l,defaultLocale:u,structureMap:{i18nSingleFileDefaultRoot:d}={}}}=s??r,{slug:f,path:p,content:m}=t.locales[u],h=!i&&(a?.[u]??a?._)!==f,g=o?.locales[u]?.path;return{action:i?`create`:h?`move`:`update`,slug:f,path:p,previousPath:h?g:void 0,previousSha:await r3({cacheDB:n,previousPath:g}),data:await z4({content:(()=>{if(!l)return t3({draft:e,locale:`_default`,valueMap:m});let n=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([t,n])=>[t,t3({draft:e,locale:t,valueMap:n.content})]));if(d){let{lang:e,...t}=n[u]??{},r=Object.fromEntries(Object.entries(n).filter(([e])=>e!==u));return{lang:[u,...Object.keys(r)],...t,...r}}return n})(),_file:c})}},Wve=async({draft:e,savingEntry:t,cacheDB:n,locale:r})=>{let{collection:i,isNew:a,originalLocales:o,currentLocales:s,originalSlugs:c,originalEntry:l,collectionFile:u}=e,{_file:d}=u??i,{slug:f,path:p,content:m}=t.locales[r]??{},h=l?.locales[r]?.path,g=await r3({cacheDB:n,previousPath:h});if(s[r]){let t=!a&&o[r]&&(c?.[r]??c?._)!==f;return{action:a||!o[r]?`create`:t?`move`:`update`,slug:f,path:p,previousPath:t?h:void 0,previousSha:g,data:await z4({content:t3({draft:e,locale:r,valueMap:m}),_file:d})}}if(!a&&o[r])return{action:`delete`,slug:f,path:p,previousSha:g}},i3=async({draft:e,slugs:t})=>{let{id:n,collection:r,collectionFile:i}=e,{defaultLocaleSlug:a}=t,{_file:o,_i18n:{i18nEnabled:s,allLocales:c,defaultLocale:l,structureMap:{i18nSingleFile:u,i18nSingleFileDefaultRoot:d}}}=i??r,{localizedEntryMap:f,changes:p,savingAssets:m}=await Hve({draft:e,slugs:t}),h={id:n,slug:a,subPath:o.fullPathRegEx?f[l].path.match(o.fullPathRegEx)?.groups?.subPath??a:a,locales:Object.fromEntries(Object.entries(f))};await E4({type:`preSave`,draft:e,savingEntry:h});let g=k(kQ)?.repository?.databaseName,_={draft:e,savingEntry:h,cacheDB:g?new LD(g,`file-cache`):void 0};return!s||u||d?p.push(await Uve({..._})):await Promise.all(c.map(async e=>{let t=await Wve({..._,locale:e});t&&p.push(t)})),{savingEntry:h,savingAssets:m,changes:p}}})))()}var Gve,o3,Kve,qve,Jve,Yve;function Xve(){return(Xve=o((()=>{FM(),AM(),_J(),Y$(),XM(),hH(),Z$(),q$(),RH(),ZI(),MI(),a3(),N4(),TH(),Gve=({entry:e})=>{let{locales:t}=e,n=Object.entries(t),r=Object.fromEntries(n.map(([e])=>[e,!0])),i=Object.fromEntries(n.map(([e,{slug:t}])=>[e,t])),a=Object.fromEntries(n.map(([e,{content:t}])=>[e,t]));return{createdAt:Date.now(),isNew:!1,canPreview:!0,originalEntry:e,originalLocales:r,currentLocales:structuredClone(r),originalSlugs:i,currentSlugs:structuredClone(i),originalValues:a,currentValues:structuredClone(a),files:{},validities:{},validationMessages:{},expanderStates:{}}},o3=async({draftProps:e,indexFile:t,savingEntries:n,changes:r})=>{let{collection:i,collectionFile:a}=e,{fields:o=[]}=a??i,s={...e,fields:t?.fields??o},{savingEntry:c,changes:l}=await i3({draft:s,slugs:M4({draft:s})});n.push(c),r.push(...l)},Kve=async({entry:e,savingEntries:t,changes:n})=>{let r=Gve({entry:e});await Promise.all(xH(e).map(async i=>{let a=i.name,o=XI(i,e),s=o?YI(i):void 0,c=kI(i,e),l={indexFile:s,savingEntries:t,changes:n},u={...r,collection:i,collectionName:a,isIndexFile:o};c.length?await Promise.all(c.map(e=>o3({...l,draftProps:{...u,collectionFile:e,fileName:e.name}}))):await o3({...l,draftProps:u})}))},qve=async({_globalAssetFolder:e,newPath:t,asset:n,savingEntries:r,changes:i})=>{let a=fH(n)??n.blobURL,o=a?await IH(a):[];if(!a||!o.length)return;let{publicPath:s}=JM(n.path).find(({collectionName:e})=>e!==void 0)??e,c=await IH(a,{entries:structuredClone(o),newURL:t.replace(n.folder.internalPath??``,s??``)});c.length&&await Promise.all(c.map(async e=>Kve({entry:e,savingEntries:r,changes:i})))},Jve=({action:e,movedAssets:t})=>{let n=k(nJ)?.path,r=t.find(e=>e.asset.path===n),i=k(rJ)?.path,a=t.find(e=>e.asset.path===i);r&&nJ.set($q(r.path)),a&&rJ.set($q(a.path)),J$.set({...G$,moved:e===`move`,renamed:e===`rename`,count:t.length})},Yve=async(e,t)=>{let n=k(UM),r=[],i=[],a=[];await Promise.all(t.map(async({asset:e,path:t})=>{let o=t,s=NM(o).basename;a.push({...e,path:o,name:s}),r.push({action:`move`,path:o,previousPath:e.path,previousSha:e.sha,data:new File([e.file??await nH(e)],s)}),await qve({_globalAssetFolder:n,newPath:o,asset:e,savingEntries:i,changes:r})})),await X$({changes:r,savingEntries:i,savingAssets:a,options:{commitType:`uploadMedia`}}),Jve({action:e,movedAssets:t})}})))()}function Zve(e,t){let n=Oa();D(t,!0),G(e,eye);let r=()=>A(oJ,`$renamingAsset`,a),i=()=>A(BQ,`$showAssetOverlay`,a),[a,o]=fn(),s=M(!1),c=M(!1),l=M(void 0),u=!1,d=M(Dr({basename:``})),f=M(``),p=M(Dr([])),m=M(Dr([])),h=j(r),g=j(()=>z(d).dirname),_=j(()=>z(d).basename),v=j(()=>z(d).extension),y=j(()=>z(f).trim()),b=j(()=>NM(z(y)).extension),x=j(()=>!FB(z(v),z(b))),S=j(()=>{if(!z(y))return`empty`;if(z(y).includes(`/`))return`character`;if(z(p).includes(z(y)))return`duplicate`}),C=j(()=>!!z(S)),w=async()=>{z(h)&&(N(d,NM(z(h).path),!0),N(f,z(_),!0),u=!1,N(p,hJ(z(g)).map(e=>e.name).filter(e=>e!==z(h).name),!0),N(m,await H$(z(h)),!0),N(s,!0))},ee=()=>{if(u||!z(l))return;u=!0;let{filename:e}=NM(z(l).value);z(l).setSelectionRange(0,e.length)},te=async()=>{if(!z(h))return;let e=z(h).path,t=`${z(g)}/${z(y)}`;await Yve(`rename`,[{asset:z(h),path:t}]),s$().path===`/assets/${e}`&&await d$(`/assets/${t}`,{replaceState:!0,notifyChange:!1})};L(()=>{z(h)&&w()}),L(()=>{i()||(N(s,!1),N(c,!1),dn(oJ,void 0))});var ne=$ve(),re=F(ne);{let e=j(()=>X(`rename_x`,{values:{name:z(h)?.name??``}})),t=j(()=>X(`rename`)),r=j(()=>z(y)===z(_)||z(C));wp(re,{get title(){return z(e)},get okLabel(){return z(t)},get okDisabled(){return z(r)},onOk:()=>{z(x)?N(c,!0):te()},onClose:()=>{z(c)||dn(oJ,void 0)},get open(){return z(s)},set open(e){N(s,e,!0)},children:(e,t)=>{var r=Qve(),i=F(r),a=P(i,!0);E(i);var o=I(i,2);Wp(P(o),{dir:`auto`,flex:!0,get invalid(){return z(C)},get"aria-errormessage"(){return`${n}-error`},onselect:()=>{ee()},get value(){return z(f)},set value(e){N(f,e,!0)},get element(){return z(l)},set element(e){N(l,e,!0)}}),E(o);var s=I(o,2),c=P(s),u=e=>{var t=Da();R(e=>U(t,e),[()=>X(`enter_new_name_for_asset_error.${z(S)}`)]),H(e,t)};W(c,e=>{z(C)&&e(u)}),E(s),R(e=>{U(a,e),K(s,`id`,`${n}-error`)},[()=>X(`enter_new_name_for_asset`,{values:{count:z(m).length}})]),H(e,r)},$$slots:{default:!0}})}var ie=I(re,2);{let e=j(()=>X(`rename`));$he(ie,{get oldExtension(){return z(v)},get newExtension(){return z(b)},get okLabel(){return z(e)},onOk:()=>{te(),dn(oJ,void 0)},onCancel:()=>{N(s,!0)},get open(){return z(c)},set open(e){N(c,e,!0)}})}H(e,ne),O(),o()}var Qve,$ve,eye;function tye(){return(tye=o((()=>{Y(),J(),Z(),Mp(),Yp(),FM(),_1(),m$(),_J(),Xve(),U$(),KQ(),VB(),Qve=B(`<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!></div> <div role="none" class="error svelte-22gadf"><!></div>`,1),$ve=B(`<!> <!>`,1),eye={hash:`svelte-22gadf`,code:`p.svelte-22gadf {margin:0 0 8px;}div.svelte-22gadf {display:flex;align-items:center;gap:4px;}.error.svelte-22gadf {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}`}})))()}function nye(e,t){D(t,!0),G(e,aye);let n=()=>A(Upe,`$listedAssetIndexMap`,a),r=()=>A(nJ,`$focusedAsset`,a),i=()=>A(tJ,`$selectedAssetPathSet`,a),[a,o]=fn(),s=j(()=>t.asset.name),c=j(()=>t.asset.kind),l=e=>{eJ.update(n=>{let r=n.indexOf(t.asset);return e&&r===-1&&n.push(t.asset),!e&&r>-1&&n.splice(r,1),n})};{let a=j(()=>n().get(t.asset.path)??-1);fm(e,{get"aria-rowindex"(){return z(a)},onChange:e=>{l(e.detail.selected)},onfocus:()=>{dn(nJ,t.asset)},onclick:()=>{(UG.isSmallScreen||UG.isMediumScreen)&&r()&&dz(r())&&d$(`/assets/${r().path}`,{transitionType:`forwards`})},ondblclick:()=>{r()&&dz(r())&&d$(`/assets/${r().path}`,{transitionType:`forwards`})},children:(e,n)=>{var r=iye(),a=F(r),o=e=>{um(e,{class:`checkbox`,children:(e,n)=>{{let n=j(()=>i().has(t.asset.path));vp(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{l(e)}})}},$$slots:{default:!0}})};W(a,e=>{UG.isSmallScreen||UG.isMediumScreen||e(o)});var u=I(a,2);um(u,{class:`image`,children:(e,n)=>{{let n=j(()=>t.viewType===`list`?`icon`:`tile`),r=j(()=>z(c)===`image`);i1(e,{get kind(){return z(c)},get asset(){return t.asset},get variant(){return z(n)},get cover(){return UG.isSmallScreen},get checkerboard(){return z(r)}})}},$$slots:{default:!0}});var d=I(u,2),f=e=>{um(e,{class:`title`,children:(e,t)=>{var n=rye();dd(P(n),{lines:2,children:(e,t)=>{mt();var n=Da();R(()=>U(n,z(s))),H(e,n)},$$slots:{default:!0}}),E(n),H(e,n)},$$slots:{default:!0}})};W(d,e=>{(!UG.isSmallScreen||t.viewType===`list`)&&e(f)}),H(e,r)},$$slots:{default:!0}})}O(),o()}var rye,iye,aye;function oye(){return(oye=o((()=>{Y(),J(),Cp(),dm(),pm(),md(),a1(),m$(),_J(),hz(),KQ(),GG(),rye=B(`<div role="none" class="label svelte-17zk54k"><!></div>`),iye=B(`<!> <!> <!>`,1),aye={hash:`svelte-17zk54k`,code:`.label.svelte-17zk54k {word-break:break-all;}`}})))()}function s3(e,t){let n=q(t,`loading`,3,`lazy`),r=q(t,`asset`,3,void 0),i=q(t,`src`,3,void 0),a=q(t,`variant`,3,void 0),o=q(t,`blurBackground`,3,!1),s=q(t,`cover`,3,!1),c=q(t,`checkerboard`,3,!1),l=q(t,`alt`,3,``),u=Hs(t,sye);i1(e,Us({kind:`image`,get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return a()},get blurBackground(){return o()},get cover(){return s()},get checkerboard(){return c()},get alt(){return l()}},()=>u))}var sye;function c3(){return(c3=o((()=>{Y(),J(),a1(),sye=new Set([`$$slots`,`$$events`,`$$legacy`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`alt`])})))()}function l3(e,t){D(t,!0),G(e,dye);let n=q(t,`files`,27,()=>Dr([])),r=q(t,`transformedFileMap`,3,void 0),i=q(t,`removable`,3,!0),a=q(t,`showThumbnail`,3,!0),o=new Map,s=e=>{let t=o.get(e);return t===void 0&&(t=URL.createObjectURL(e),o.set(e,t)),t};L(()=>{let e=new Set(n());o.forEach((t,n)=>{e.has(n)||(URL.revokeObjectURL(t),o.delete(n))})}),$s(()=>{o.forEach(e=>URL.revokeObjectURL(e)),o.clear()});var c=uye();ao(c,23,n,(e,t)=>`${e.name}-${t}`,(e,t,o)=>{var c=V();Ga(F(c),hd,null,e=>{let c=j(()=>{let{name:e,type:n,size:r}=z(t);return{name:e,type:n,size:r}}),l=j(()=>r()?.get(z(t)));var u=lye(),d=P(u),f=e=>{{let n=j(()=>s(z(t)));s3(e,{get src(){return z(n)},variant:`icon`,checkerboard:!0})}},p=j(()=>a()&&AV.includes(z(c).type)),m=e=>{var t=cye();nc(P(t),{name:`draft`}),E(t),H(e,t)};W(d,e=>{z(p)?e(f):e(m,-1)});var h=I(d,2),g=P(h);dd(P(g),{children:(e,t)=>{mt();var n=Da();R(e=>U(n,e),[()=>z(c).name.normalize()]),H(e,n)},$$slots:{default:!0}}),E(g);var _=I(g,2),v=P(_);Za(v,()=>zu.current,e=>{var n=Da();R(e=>U(n,e),[()=>X(`file_meta`,{values:{type:X(`file_type_labels.${z(t).type.split(`/`)[1]}`,{default:NM(z(c).name).extension?.toUpperCase()}),size:jB(z(c).size)}})]),H(e,n)});var y=I(v,2),b=e=>{var t=Da();R(e=>U(t,e),[()=>X(`file_meta_converted_from_x`,{values:{type:X(`file_type_labels.${z(l).type.split(`/`)[1]}`,{default:NM(z(l).name).extension?.toUpperCase()})}})]),H(e,t)};W(y,e=>{z(l)&&z(l).type!==z(t).type&&e(b)}),E(_),E(h);var x=I(h,2);{let e=j(()=>X(`remove`)),t=j(()=>!i()||n().length===1);$d(x,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(e)},get hidden(){return z(t)},onclick:e=>{e.stopPropagation(),n().splice(z(o),1)},children:(e,t)=>{nc(e,{name:`close`})},$$slots:{default:!0}})}E(u),H(e,u)}),H(e,c)}),E(c),H(e,c),O()}var cye,lye,uye,dye;function u3(){return(u3=o((()=>{Y(),J(),Z(),of(),oc(),md(),FM(),gd(),tc(),c3(),VB(),MV(),cye=B(`<span role="none" class="image svelte-lbhi1w"><!></span>`),lye=B(`<div role="listitem" class="file svelte-lbhi1w"><!> <div role="none" class="info svelte-lbhi1w"><div role="none" class="name"><!></div> <div role="none" class="meta svelte-lbhi1w"><!> <!></div></div> <!></div>`),uye=B(`<div role="list" class="files svelte-lbhi1w"></div>`),dye={hash:`svelte-lbhi1w`,code:`.files.svelte-lbhi1w {display:flex;flex-direction:column;gap:16px;margin:0 8px;}.file.svelte-lbhi1w {display:flex;align-items:center;gap:16px;overflow:hidden;.preview {flex:none;}.image:where(.svelte-lbhi1w) {flex:none;display:flex;justify-content:center;align-items:center;width:40px;height:40px;aspect-ratio:1 / 1;object-fit:cover;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-tertiary-background-color);}.info:where(.svelte-lbhi1w) {flex:auto;display:flex;flex-direction:column;gap:4px;overflow:hidden;text-align:start;.meta:where(.svelte-lbhi1w) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}}}`}})))()}function d3(e,t){D(t,!0),G(e,_ye);let n=e=>{var t=V(),n=F(t),i=e=>{var t=Da();R(e=>U(t,e),[()=>X(`dropped_image_type_mismatch`,{values:{types:y([`GIF`,`JPEG`,`PNG`,`WebP`,`SVG`])}})]),H(e,t)},a=j(()=>r()===AV.join(`,`)),o=e=>{var t=Da();R(e=>U(t,e),[()=>X(`dropped_file_type_mismatch`,{values:{types:y(r().split(/,\s*/))}})]),H(e,t)};W(n,e=>{z(a)?e(i):e(o,-1)}),H(e,t)},r=q(t,`accept`,3,void 0),i=q(t,`disabled`,3,!1),a=q(t,`multiple`,3,!1),o=q(t,`showUploadButton`,3,!1),s=q(t,`showFilePreview`,3,!1),c=q(t,`onDrop`,3,void 0),l=q(t,`children`,3,void 0),u=M(void 0),d=M(!1),f=M(!1),p=M(!1),m=M(void 0),h=M(Dr([])),g=j(()=>o()||s()&&z(h).length),_=()=>{z(m)?.open()},v=()=>{z(h).length&&(N(h,[],!0),c()?.({files:z(h)}))},y=e=>sL(zu.current,{type:`disjunction`}).format(e),b=e=>{N(h,a()?e:e.slice(0,1),!0),c()?.({files:z(h)})},x=e=>{c()?.({files:e.detail.files})};Qs(()=>(z(u)?.addEventListener(`Select`,x),()=>{z(u)?.removeEventListener(`Select`,x)})),L(()=>{!z(g)&&z(f)&&N(p,!0)});var S={openFilePicker:_,reset:v},C=gye(),w=F(C),ee=P(w),te=e=>{var t=mye(),r=P(t),c=e=>{var t=pye(),r=F(t),o=P(r),s=e=>{var t=Da();R(e=>U(t,e),[()=>X(`drop_files_or_click_to_browse`,{values:{count:a()?2:1}})]),H(e,t)},c=e=>{var t=Da();R(e=>U(t,e),[()=>X(`tap_to_browse`)]),H(e,t)};W(o,e=>{UG.hasMouse?e(s):e(c,-1)}),E(r);var l=I(r,2),u=P(l);{let e=e=>{nc(e,{name:`cloud_upload`})},t=j(()=>X(`choose_files`,{values:{count:a()?2:1}}));$d(u,{variant:`primary`,get label(){return z(t)},get disabled(){return i()},onclick:()=>{_()},startIcon:e,$$slots:{startIcon:!0}})}E(l);var d=I(l,2),p=e=>{var t=fye(),r=P(t);n(r),E(t),H(e,t)};W(d,e=>{z(f)&&e(p)}),H(e,t)};W(r,e=>{o()&&e(c)});var l=I(r,2),u=e=>{l3(e,{get files(){return z(h)},set files(e){N(h,e,!0)}})};W(l,e=>{s()&&z(h).length&&e(u)}),E(t),H(e,t)},ne=e=>{var t=V();vo(F(t),()=>l()??T),H(e,t)};W(ee,e=>{z(g)?e(te):e(ne,-1)});var re=I(ee,2),ie=e=>{var t=hye(),n=P(t),r=P(n);nc(r,{name:`download`});var i=I(r,2),o=P(i,!0);E(i),E(n),E(t),R(e=>U(o,e),[()=>X(`drop_files_here`,{values:{count:a()?2:1}})]),H(e,t)};W(re,e=>{z(d)&&e(ie)}),E(w),Fs(w,e=>N(u,e),()=>z(u));var ae=I(w,2);Fs(tm(ae,{get accept(){return r()},get multiple(){return a()},onSelect:({files:e})=>{b(e)}}),e=>N(m,e,!0),()=>z(m));var oe=I(ae,2),se=e=>{{let t=j(()=>X(`unsupported_file_type`));Np(e,{get title(){return z(t)},get open(){return z(p)},set open(e){N(p,e,!0)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}};return W(oe,e=>{z(g)||e(se)}),pa(`dragover`,w,e=>{e.preventDefault(),!(i()||!e.dataTransfer)&&(e.dataTransfer.dropEffect=`copy`,N(d,!0),N(f,!1))}),pa(`dragleave`,w,e=>{e.preventDefault(),!i()&&N(d,!1)}),pa(`dragend`,w,e=>{e.preventDefault(),!i()&&N(d,!1)}),pa(`drop`,w,async e=>{if(e.preventDefault(),i()||!e.dataTransfer)return;N(d,!1);let t=await Wle(e.dataTransfer,{accept:r()});t.length?b(t):N(f,!0)}),H(e,C),O(S)}var fye,pye,mye,hye,gye,_ye;function f3(){return(f3=o((()=>{Y(),J(),Z(),Pp(),of(),rm(),oc(),FM(),tc(),u3(),lL(),GG(),MV(),fye=B(`<div role="alert"><!></div>`),pye=B(`<div role="none"><!></div> <div role="none"><!></div> <!>`,1),mye=B(`<div role="none" class="content svelte-1hhq62q"><!> <!></div>`),hye=B(`<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>`),gye=B(`<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>`,1),_ye={hash:`svelte-1hhq62q`,code:`.drop-target.svelte-1hhq62q {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;& > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}button:not(:disabled) {pointer-events:auto;}}.drop-indicator.svelte-1hhq62q {position:absolute;inset:0;z-index:10;border-radius:var(--sui-control-large-border-radius);background-color:hsl(var(--sui-background-color-4-hsl) / 80%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;pointer-events:none;div:where(.svelte-1hhq62q) {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:4px dashed var(--sui-primary-accent-color);border-radius:var(--sui-control-large-border-radius);font-size:var(--sui-font-size-x-large);.icon {color:var(--sui-secondary-foreground-color);font-size:48px;}}}.content.svelte-1hhq62q {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;height:100%;min-height:320px;text-align:center;}`}})))()}function vye(e,t){D(t,!0);let n=()=>A(GM,`$targetAssetFolder`,r),[r,i]=fn(),a=q(t,`label`,3,void 0),o=j(()=>!YM(n()));{let t=e=>{nc(e,{name:`cloud_upload`})},n=j(()=>!a()),r=j(()=>X(`upload_assets`));$d(e,{variant:`primary`,get iconic(){return z(n)},get disabled(){return z(o)},get label(){return a()},get"aria-label"(){return z(r)},onclick:()=>{dn(VQ,!0)},startIcon:t,$$slots:{startIcon:!0}})}O(),i()}function p3(){return(p3=o((()=>{Y(),J(),Z(),of(),oc(),XM(),KQ()})))()}function m3(e,t){G(e,xye);let n=q(t,`children`,3,void 0),r=Hs(t,yye);var i=bye();ds(i,()=>({role:`group`,class:`list-container`,...r}),void 0,void 0,void 0,`svelte-1sdsl2g`),vo(P(i),()=>n()??T),E(i),H(e,i)}var yye,bye,xye;function h3(){return(h3=o((()=>{Y(),J(),yye=new Set([`$$slots`,`$$events`,`$$legacy`,`children`]),bye=B(`<div><!></div>`),xye={hash:`svelte-1sdsl2g`,code:`.list-container.svelte-1sdsl2g {--icon-size: 36px;flex:auto;position:relative;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;}`}})))()}function g3(e,t){D(t,!0),G(e,wye);let n=q(t,`children`,3,void 0),r=Hs(t,Sye);var i=Cye();Ga(P(i),hd,null,e=>{Fee(e,Us({multiple:!0,clickToSelect:!1},()=>r,{children:(e,t)=>{var r=V();vo(F(r),()=>n()??T),H(e,r)},$$slots:{default:!0}}))}),E(i),R(()=>es(i,1,`${t.viewType??``}-view`,`svelte-1sfbolp`)),H(e,i),O()}var Sye,Cye,wye;function _3(){return(_3=o((()=>{Y(),J(),zee(),gd(),Sye=new Set([`$$slots`,`$$events`,`$$legacy`,`viewType`,`children`]),Cye=B(`<div role="none"><!></div>`),wye={hash:`svelte-1sfbolp`,code:`:is(.grid-view.svelte-1sfbolp, .list-view.svelte-1sfbolp) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}.grid-view.svelte-1sfbolp {
|
|
2724
|
+
function v1(e){return!!(e&&e[Z0])}function y1(e){return!!(e&&e[Q0])}function b1(e){return y1(e)||v1(e)}function x1(e){return!!(e&&e[$0])}function S1(e,t,n,r){var i=e===i2?t:e===a2?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function C1(){return{value:void 0,done:!0}}function w1(e){return Array.isArray(e)?!0:!!E1(e)}function rge(e){return!!(e&&typeof e.next==`function`)}function T1(e){var t=E1(e);return t&&t.call(e)}function E1(e){var t=e&&(s2&&e[s2]||e[c2]);if(typeof t==`function`)return t}function ige(e){var t=E1(e);return t&&t===e.entries}function age(e){var t=E1(e);return t&&t===e.keys}function D1(){return{value:!1}}function O1(e){e&&(e.value=!0)}function k1(){}function A1(e){return e.size===void 0&&(e.size=e.__iterate(oge)),e.size}function j1(e,t){if(typeof t!=`number`){var n=t>>>0;if(``+n!==t||n===4294967295)return NaN;t=n}return t<0?A1(e)+t:t}function oge(){return!0}function M1(e,t,n){return(e===0&&!cge(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function N1(e,t){return sge(e,t,0)}function P1(e,t){return sge(e,t,t)}function sge(e,t,n){return e===void 0?n:cge(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function cge(e){return e<0||e===0&&1/e==-1/0}function F1(e){return!!(e&&e[g2])}function I1(e){return x1(e)||F1(e)}function L1(e){return!!(e&&e[_2])}function R1(e){return!!(e&&e[v2])}function z1(e){return Array.isArray(e)||typeof e==`string`?!0:e&&typeof e==`object`&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}function B1(){return z_e||=new w2([])}function V1(e){var t=H1(e);if(t)return t.fromEntrySeq();if(typeof e==`object`)return new T2(e);throw TypeError(`Expected Array or collection object of [k, v] entries, or keyed object: `+e)}function lge(e){var t=H1(e);if(t)return t;throw TypeError(`Expected Array or collection object of values: `+e)}function uge(e){var t=H1(e);if(t)return ige(e)?t.fromEntrySeq():age(e)?t.toSetSeq():t;if(typeof e==`object`)return new T2(e);throw TypeError(`Expected Array or collection object of values, or keyed object: `+e)}function H1(e){return z1(e)?new w2(e):w1(e)?new R_e(e):void 0}function U1(){return this.__ensureOwner()}function W1(){return this.__ownerID?this:this.__ensureOwner(new k1)}function G1(e){return e>>>1&1073741824|e&3221225471}function K1(e){if(e==null)return dge(e);if(typeof e.hashCode==`function`)return G1(e.hashCode(e));var t=_ge(e);if(t==null)return dge(t);switch(typeof t){case`boolean`:return t?1108378657:1108378656;case`number`:return fge(t);case`string`:return t.length>H_e?pge(t):q1(t);case`object`:case`function`:return hge(t);case`symbol`:return mge(t);default:if(typeof t.toString==`function`)return q1(t.toString());throw Error(`Value type `+typeof t+` cannot be hashed.`)}}function dge(e){return e===null?1108378658:1108378659}function fge(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return G1(t)}function pge(e){var t=F2[e];return t===void 0&&(t=q1(e),P2===U_e&&(P2=0,F2={}),P2++,F2[e]=t),t}function q1(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return G1(t)}function J1(e){if(typeof e!=`string`)return K1(e);for(var t=0,n=0;n<e.length;n++)t=V_e*t+e.charCodeAt(n)|0;return t}function mge(e){var t=j2[e];return t===void 0?(t=vge(),j2[e]=t,t):t}function hge(e){var t;if(k2&&(t=A2.get(e),t!==void 0)||(t=e[N2],t!==void 0)||!O2&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[N2],t!==void 0||(t=gge(e),t!==void 0)))return t;if(t=vge(),k2)A2.set(e,t);else if(D2!==void 0&&D2(e)===!1)throw Error(`Non-extensible objects are not allowed as keys.`);else if(O2)Object.defineProperty(e,N2,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[N2]=t;else if(e.nodeType!==void 0)e[N2]=t;else throw Error(`Unable to set a non-enumerable property on object.`);return t}function gge(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function _ge(e){return e.valueOf!==B_e&&typeof e.valueOf==`function`?e.valueOf(e):e}function vge(){var e=++M2;return M2&1073741824&&(M2=0),e}function yge(e){var t=n0(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=r0,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===o2){var r=e.__iterator(t,n);return new u2(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===a2?i2:a2,n)},t}function bge(e,t,n){var r=n0(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,h2);return a===h2?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return r(t.call(n,e,i,o),i,a)!==!1},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(o2,i);return new u2(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return S1(r,s,t.call(n,o[1],s,e),i)})},r}function Y1(e,t){var n=n0(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=yge(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=r0,n.__iterate=function(n,r){var i=this,a=0;return r&&A1(e),e.__iterate(function(e,o){return n(e,t?o:r?i.size-++a:a++,i)},!r)},n.__iterator=function(r,i){var a=0;i&&A1(e);var o=e.__iterator(o2,!i);return new u2(function(){var e=o.next();if(e.done)return e;var s=e.value;return S1(r,t?s[0]:i?n.size-++a:a++,s[1],e)})},n}function xge(e,t,n,r){var i=n0(e);return r&&(i.has=function(r){var i=e.get(r,h2);return i!==h2&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,h2);return a!==h2&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,s=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return s++,i(e,r?a:s-1,o)},a),s},i.__iteratorUncached=function(i,a){var o=e.__iterator(o2,a),s=0;return new u2(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return S1(i,r?l:s++,u,a)}})},i}function Sge(e,t,n){var r=V2().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function Cge(e,t,n){var r=y1(e),i=(L1(e)?e4():V2()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return e||=[],e.push(r?[o,a]:a),e})});var a=t0(e);return i.map(function(t){return e0(e,a(t))}).asImmutable()}function wge(e,t,n){var r=y1(e),i=[[],[]];e.__iterate(function(a,o){i[+!!t.call(n,a,o,e)].push(r?[o,a]:a)});var a=t0(e);return i.map(function(t){return e0(e,a(t))})}function X1(e,t,n,r){var i=e.size;if(M1(t,n,i))return e;if(i===void 0&&(t<0||n<0))return X1(e.toSeq().cacheResult(),t,n,r);var a=N1(t,i),o=P1(n,i)-a,s;o===o&&(s=o<0?0:o);var c=n0(e);return c.size=s===0?s:e.size&&s||void 0,!r&&R1(e)&&s>=0&&(c.get=function(t,n){return t=j1(this,t),t>=0&&t<s?e.get(t+a,n):n}),c.__iterateUncached=function(t,n){var i=this;if(s===0)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,c=!0,l=0;return e.__iterate(function(e,n){if(!(c&&=o++<a))return l++,t(e,r?n:l-1,i)!==!1&&l!==s}),l},c.__iteratorUncached=function(t,n){if(s!==0&&n)return this.cacheResult().__iterator(t,n);if(s===0)return new u2(C1);var i=e.__iterator(t,n),o=0,c=0;return new u2(function(){for(;o++<a;)i.next();if(++c>s)return C1();var e=i.next();return r||t===a2||e.done?e:t===i2?S1(t,c-1,void 0,e):S1(t,c-1,e.value[1],e)})},c}function Tge(e,t,n){var r=n0(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(o2,i),s=!0;return new u2(function(){if(!s)return C1();var e=o.next();if(e.done)return e;var i=e.value,c=i[0],l=i[1];return t.call(n,l,c,a)?r===o2?e:S1(r,c,l,e):(s=!1,C1())})},r}function Ege(e,t,n,r){var i=n0(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var s=!0,c=0;return e.__iterate(function(e,a,l){if(!(s&&=t.call(n,e,a,l)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var s=e.__iterator(o2,a),c=!0,l=0;return new u2(function(){var e,a,u;do{if(e=s.next(),e.done)return r||i===a2?e:i===i2?S1(i,l++,void 0,e):S1(i,l++,e.value[1],e);var d=e.value;a=d[0],u=d[1],c&&=t.call(n,u,a,o)}while(c);return i===o2?e:S1(i,a,u,e)})},i}function Dge(e,t){var n=y1(e),r=[e].concat(t).map(function(e){return x1(e)?n&&(e=t2(e)):e=n?V1(e):lge(Array.isArray(e)?e:[e]),e}).filter(function(e){return e.size!==0});if(r.length===0)return e;if(r.length===1){var i=r[0];if(i===e||n&&y1(i)||v1(e)&&v1(i))return i}return new W_e(r)}function Oge(e,t,n){var r=n0(e);return r.__iterateUncached=function(i,a){if(a)return this.cacheResult().__iterate(i,a);var o=0,s=!1;function c(e,l){e.__iterate(function(e,a){return(!t||l<t)&&x1(e)?c(e,l+1):(o++,i(e,n?a:o-1,r)===!1&&(s=!0)),!s},a)}return c(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(r,i),o=[],s=0;return new u2(function(){for(;a;){var e=a.next();if(e.done!==!1){a=o.pop();continue}var c=e.value;if(r===o2&&(c=c[1]),(!t||o.length<t)&&x1(c))o.push(a),a=c.__iterator(r,i);else return n?e:S1(r,s++,c,e)}return C1()})},r}function kge(e,t,n){var r=t0(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function Age(e,t){var n=n0(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e){return(!a||n(t,a++,i)!==!1)&&n(e,a++,i)!==!1},r),a},n.__iteratorUncached=function(n,r){var i=e.__iterator(a2,r),a=0,o;return new u2(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?S1(n,a++,t):S1(n,a++,o.value,o)})},n}function Z1(e,t,n){t||=Nge;var r=y1(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?x2(a):v1(e)?S2(a):C2(a)}function Q1(e,t,n){if(t||=Nge,n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return jge(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return jge(t,e,n)?n:e})}function jge(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function $1(e,t,n,r){var i=n0(e),a=new w2(n).map(function(e){return e.size});return i.size=r?a.max():a.min(),i.__iterate=function(e,t){for(var n=this.__iterator(a2,t),r,i=0;!(r=n.next()).done&&e(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var a=n.map(function(e){return e=e2(e),T1(i?e.reverse():e)}),o=0,s=!1;return new u2(function(){var n;return s||=(n=a.map(function(e){return e.next()}),r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s?C1():S1(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function e0(e,t){return e===t?e:R1(e)?t:e.constructor(t)}function Mge(e){if(e!==Object(e))throw TypeError(`Expected [K, V] tuple: `+e)}function t0(e){return y1(e)?t2:v1(e)?n2:r2}function n0(e){return Object.create((y1(e)?x2:v1(e)?S2:C2).prototype)}function r0(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):b2.prototype.cacheResult.call(this)}function Nge(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function Pge(e){return!!(e&&typeof e.equals==`function`&&typeof e.hashCode==`function`)}function i0(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf==`function`&&typeof t.valueOf==`function`){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(Pge(e)&&Pge(t)&&e.equals(t))}function Fge(e,t,n,r){return D0(e,[t],n,r)}function Ige(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Rge(this,e)}function Lge(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];if(typeof e!=`function`)throw TypeError(`Invalid merger function: `+e);return Rge(this,t,e)}function Rge(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=t2(t[i]);a.size!==0&&r.push(a)}return r.length===0?e:e.toSeq().size===0&&!e.__ownerID&&r.length===1?F1(e)?e:e.constructor(r[0]):e.withMutations(function(e){for(var t=n?function(t,r){Fge(e,r,h2,function(e){return e===h2?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})}function zge(e){if(!e||typeof e!=`object`||G_e.call(e)!==`[object Object]`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t,r=Object.getPrototypeOf(t);r!==null;)n=r,r=Object.getPrototypeOf(n);return n===t}function a0(e){return typeof e==`object`&&(I1(e)||Array.isArray(e)||zge(e))}function o0(e){return typeof e==`string`&&(e===`__proto__`||e===`constructor`)}function s0(e,t){t||=0;for(var n=Math.max(0,e.length-t),r=Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function c0(e){if(Array.isArray(e))return s0(e);var t={};for(var n in e)o0(n)||y2.call(e,n)&&(t[n]=e[n]);return t}function l0(e,t,n){return u0(e,t,Bge(n))}function u0(e,t,n){if(!a0(e))throw TypeError(`Cannot merge into non-data-structure value: `+e);if(I1(e))return typeof n==`function`&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,a=r?n2:t2,o=r?function(t){i===e&&(i=c0(i)),i.push(t)}:function(t,r){if(!o0(r)){var a=y2.call(i,r),o=a&&n?n(i[r],t,r):t;(!a||o!==i[r])&&(i===e&&(i=c0(i)),i[r]=o)}},s=0;s<t.length;s++)a(t[s]).forEach(o);return i}function Bge(e){function t(n,r,i){return a0(n)&&a0(r)&&Vge(n,r)?u0(n,[r],t):e?e(n,r,i):r}return t}function Vge(e,t){var n=b2(e),r=b2(t);return v1(n)===v1(r)&&y1(n)===y1(r)}function Hge(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return l0(this,e)}function Uge(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return l0(this,t,e)}function d0(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return D0(this,e,C0(),function(e){return l0(e,t)})}function f0(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return D0(this,e,C0(),function(e){return u0(e,t)})}function Wge(e,t,n){return D0(e,t,h2,function(){return n})}function p0(e,t){return Wge(this,e,t)}function m0(e,t,n){return arguments.length===1?e(this):Fge(this,e,t,n)}function h0(e,t,n){return D0(this,e,t,n)}function g0(){return this.__altered}function _0(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function v0(e){return!!(e&&e[B2])}function y0(e,t){if(!e)throw Error(t)}function b0(e){y0(e!==1/0,`Cannot perform this action with an infinite size.`)}function x0(e,t){return S1(e,t[0],t[1])}function Gge(e,t){return{node:e,index:0,__prev:t}}function S0(e,t,n,r){var i=Object.create(H2);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function C0(){return q_e||=S0(0)}function Kge(e,t,n){var r,i;if(e._root){var a=D1(),o=D1();if(r=w0(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===h2?-1:1:0)}else{if(n===h2)return e;i=1,r=new U2(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?S0(i,r):C0()}function w0(e,t,n,r,i,a,o,s){return e?e.update(t,n,r,i,a,o,s):a===h2?e:(O1(s),O1(o),new q2(t,r,[i,a]))}function qge(e){return e.constructor===q2||e.constructor===K2}function T0(e,t,n,r,i){if(e.keyHash===r)return new K2(t,r,[e.entry,i]);var a=(n===0?e.keyHash:e.keyHash>>>n)&m2,o=(n===0?r:r>>>n)&m2,s,c=a===o?[T0(e,t,n+f2,r,i)]:(s=new q2(t,r,i),a<o?[e,s]:[s,e]);return new W2(t,1<<a|1<<o,c)}function Jge(e,t,n,r){e||=new k1;for(var i=new q2(e,K1(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function Yge(e,t,n,r){for(var i=0,a=0,o=Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];u!==void 0&&s!==r&&(i|=c,o[a++]=u)}return new W2(e,i,o)}function Xge(e,t,n,r,i){for(var a=0,o=Array(p2),s=0;n!==0;s++,n>>>=1)o[s]=n&1?t[a++]:void 0;return o[r]=i,new G2(e,a+1,o)}function Zge(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function Qge(e,t,n,r){var i=r?e:s0(e);return i[t]=n,i}function $ge(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=Array(i),o=0,s=0;s<i;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function e_e(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}function t_e(e){if(z1(e)&&typeof e!=`string`)return e;if(L1(e))return e.toArray();throw TypeError(`Invalid keyPath: expected Ordered Collection or Array: `+e)}function E0(e){try{return typeof e==`string`?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function n_e(e,t){return I1(e)?e.has(t):a0(e)&&y2.call(e,t)}function r_e(e,t,n){return I1(e)?e.get(t,n):n_e(e,t)?typeof e.get==`function`?e.get(t):e[t]:n}function i_e(e,t){if(!a0(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(I1(e)){if(!e.remove)throw TypeError(`Cannot update immutable value without .remove() method: `+e);return e.remove(t)}if(!y2.call(e,t))return e;var n=c0(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function a_e(e,t,n){if(o0(t))return e;if(!a0(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(I1(e)){if(!e.set)throw TypeError(`Cannot update immutable value without .set() method: `+e);return e.set(t,n)}if(y2.call(e,t)&&n===e[t])return e;var r=c0(e);return r[t]=n,r}function D0(e,t,n,r){r||(r=n,n=void 0);var i=o_e(I1(e),e,t_e(t),0,n,r);return i===h2?n:i}function o_e(e,t,n,r,i,a){var o=t===h2;if(r===n.length){var s=o?i:t,c=a(s);return c===s?t:c}if(!o&&!a0(t))throw TypeError(`Cannot update within non-data-structure value in path [`+Array.from(n).slice(0,r).map(E0)+`]: `+t);var l=n[r],u=o?h2:r_e(t,l,h2),d=o_e(u===h2?e:I1(u),u,n,r+1,i,a);return d===u?t:d===h2?i_e(t,l):a_e(o?e?C0():{}:t,l,d)}function s_e(e,t){return D0(e,t,function(){return h2})}function O0(e){return s_e(this,e)}function c_e(e){return!!(e&&e[J2])}function l_e(e,t){var n=e._origin,r=e._capacity,i=P0(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return t===0?s(e,n):c(e,t,n)}function s(e,o){var s=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,l=r-o;return l>p2&&(l=p2),function(){if(c===l)return Q2;var e=t?--l:c++;return s&&s[e]}}function c(e,i,a){var s,c=e&&e.array,l=a>n?0:n-a>>i,u=(r-a>>i)+1;return u>p2&&(u=p2),function(){for(;;){if(s){var e=s();if(e!==Q2)return e;s=null}if(l===u)return Q2;var n=t?--u:l++;s=o(c&&c[n],i-f2,a+(n<<i))}}}}function k0(e,t,n,r,i,a,o){var s=Object.create(X2);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function A0(){return k0(0,0,f2)}function u_e(e,t,n){if(t=j1(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?N0(e,t).set(0,n):N0(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=D1();return t>=P0(e._capacity)?r=j0(r,e.__ownerID,0,t,n,a):i=j0(i,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):k0(e._origin,e._capacity,e._level,i,r):e}function j0(e,t,n,r,i,a){var o=r>>>n&m2,s=e&&o<e.array.length;if(!s&&i===void 0)return e;var c;if(n>0){var l=e&&e.array[o],u=j0(l,t,n-f2,r,i,a);return u===l?e:(c=M0(e,t),c.array[o]=u,c)}return s&&e.array[o]===i?e:(a&&O1(a),c=M0(e,t),i===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=i,c)}function M0(e,t){return t&&e&&t===e.ownerID?e:new Z2(e?e.array.slice():[],t)}function d_e(e,t){if(t>=P0(e._capacity))return e._tail;if(t<1<<e._level+f2){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m2],r-=f2;return n}}function f_e(e,t,n){var r=e._origin+(t===void 0?0:t),i=n===void 0?e._capacity:n<0?e._capacity+n:e._origin+n;if(Number.isFinite(i)&&i>$2||Number.isFinite(r)&&r<-$2||Number.isFinite(i)&&Number.isFinite(r)&&i-r>$2)throw RangeError(`Invalid List size: a List cannot hold more than `+$2+` (2 ** 30) values.`)}function N0(e,t,n){f_e(e,t,n),t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new k1,i=e._origin,a=e._capacity,o=i+t,s=n===void 0?a:n<0?a+n:i+n;if(o===i&&s===a)return e;if(o>=s)return e.clear();for(var c=e._level,l=e._root,u=0;o+u<0;)l=new Z2(l&&l.array.length?[void 0,l]:[],r),c+=f2,u+=p_e(c);u&&(o+=u,i+=u,s+=u,a+=u);for(var d=P0(a),f=P0(s);f>=p_e(c+f2);)l=new Z2(l&&l.array.length?[l]:[],r),c+=f2;var p=e._tail,m=f<d?d_e(e,s-1):f>d?new Z2([],r):p;if(p&&f>d&&o<a&&p.array.length){l=M0(l,r);for(var h=l,g=c;g>f2;g-=f2){var _=d>>>g&m2;h=h.array[_]=M0(h.array[_],r)}h.array[d>>>f2&m2]=p}if(s<a&&(m&&=m.removeAfter(r,0,s)),o>=f)o-=f,s-=f,c=f2,l=void 0,m&&=m.removeBefore(r,0,o);else if(o>i||f<d){for(u=0;l;){var v=o>>>c&m2;if(v!==f>>>c&m2)break;v&&(u+=(1<<c)*v),c-=f2,l=l.array[v]}l&&o>i&&(l=l.removeBefore(r,c,o-u)),l&&f<d&&(l=l.removeAfter(r,c,f-u)),u&&(o-=u,s-=u)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):k0(o,s,c,l,m)}function P0(e){return e<p2?0:e-1>>>f2<<f2}function p_e(e){return e<31?1<<e:2**e}function m_e(e){return v0(e)&&L1(e)}function F0(e,t,n,r){var i=Object.create(e4.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function I0(){return Q_e||=F0(C0(),A0())}function h_e(e,t,n){var r=e._map,i=e._list,a=r.get(t),o=a!==void 0,s,c;if(n===h2){if(!o)return e;i.size>=p2&&i.size>=r.size*2?(c=i.filter(function(e,t){return e!==void 0&&a!==t}),s=c.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(s.__ownerID=c.__ownerID=e.__ownerID)):(s=r.remove(t),c=a===i.size-1?i.pop():i.set(a,void 0))}else if(o){if(n===i.get(a)[1])return e;s=r,c=i.set(a,[t,n])}else s=r.set(t,i.size),c=i.set(i.size,[t,n]);return e.__ownerID?(e.size=s.size,e._map=s,e._list=c,e.__hash=void 0,e.__altered=!0,e):F0(s,c)}function L0(e){return!!(e&&e[t4])}function R0(e,t,n,r){var i=Object.create(r4);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function z0(){return $_e||=R0(0)}function g_e(e,t,n,r,i,a){return b0(e.size),e.__iterate(function(e,a,o){i?(i=!1,n=e):n=t.call(r,n,e,a,o)},a),n}function __e(e,t){return t}function v_e(e,t){return[t,e]}function B0(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function y_e(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function b_e(e,t){return e<t?1:e>t?-1:0}function x_e(e,t){if(e===t)return!0;if(!x1(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||y1(e)!==y1(t)||v1(e)!==v1(t)||L1(e)!==L1(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!b1(e);if(L1(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&i0(i[1],e)&&(n||i0(i[0],t))})&&r.next().done}var i=!1;if(e.size===void 0){if(t.size===void 0)typeof e.cacheResult==`function`&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}}var o=!0,s=t.__iterate(function(t,r){if(n?!e.has(t):i?!i0(t,e.get(r,h2)):!i0(e.get(r,h2),t))return o=!1,!1});return o&&e.size===s}function V0(e){return!!(e&&e[a4])}function H0(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function S_e(e,t){var n=Object.create(s4);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function U0(){return tve||=S_e(C0())}function C_e(e,t,n){for(var r=t_e(t),i=0;i!==r.length;)if(e=r_e(e,r[i++],h2),e===h2)return n;return e}function w_e(e,t){return C_e(this,e,t)}function T_e(e,t){return C_e(e,t,h2)!==h2}function E_e(e){return T_e(this,e)}function D_e(){b0(this.size);var e={};return this.__iterate(function(t,n){o0(n)||(e[n]=t)}),e}function W0(e){if(!e||typeof e!=`object`)return e;if(!x1(e)){if(!a0(e))return e;e=b2(e)}if(y1(e)){var t={};return e.__iterate(function(e,n){o0(n)||(t[n]=W0(e))}),t}var n=[];return e.__iterate(function(e){n.push(W0(e))}),n}function O_e(e){if(e.size===1/0)return 0;var t=L1(e),n=y1(e),r=+!!t;return e.__iterate(n?t?function(e,t){r=31*r+A_e(K1(e),K1(t))|0}:function(e,t){r=r+A_e(K1(e),K1(t))|0}:t?function(e){r=31*r+K1(e)|0}:function(e){r=r+K1(e)|0}),k_e(e.size,r)}function k_e(e,t){return t=E2(t,3432918353),t=E2(t<<15|t>>>-15,461845907),t=E2(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=E2(t^t>>>16,2246822507),t=E2(t^t>>>13,3266489909),t=G1(t^t>>>16),t}function A_e(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function G0(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function j_e(){return s0(arguments)}function M_e(e){return V0(e)&&L1(e)}function N_e(e,t){var n=Object.create(p4);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function K0(){return nve||=N_e(I0())}function P_e(e){if(F1(e))throw Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I1(e))throw Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(typeof e!=`object`||!e)throw Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}function q0(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function J0(e){return e.constructor.displayName||e.constructor.name||`Record`}function Y0(e){return V1(e._keys.map(function(t){return[t,e.get(t)]}))}function F_e(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){y0(this.__ownerID,`Cannot set on an immutable record.`),this.set(t,e)}})}catch{}}function X0(e,t){return I_e([],t||L_e,e,``,t&&t.length>2?[]:void 0,{"":e})}function I_e(e,t,n,r,i,a){if(typeof n!=`string`&&!I1(n)&&(z1(n)||w1(n)||zge(n))){if(~e.indexOf(n))throw TypeError(`Cannot convert circular structure to Immutable`);e.push(n),i&&r!==``&&i.push(r);var o=t.call(a,r,b2(n).map(function(r,a){return I_e(e,t,r,a,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function L_e(e,t){return v1(t)?t.toList():y1(t)?t.toMap():t.toSet()}var Z0,Q0,$0,e2,t2,n2,r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,R_e,z_e,E2,B_e,V_e,D2,O2,k2,A2,j2,M2,N2,H_e,U_e,P2,F2,I2,L2,R2,z2,W_e,G_e,B2,V2,H2,U2,W2,G2,K2,q2,K_e,q_e,J_e,Y_e,X_e,Z_e,J2,Y2,X2,Z2,Q2,$2,e4,Q_e,t4,n4,r4,$_e,eve,i4,a4,o4,s4,tve,c4,l4,u4,d4,f4,p4,nve,m4,h4;function g4(){return(g4=o((()=>{Z0=`@@__IMMUTABLE_INDEXED__@@`,Q0=`@@__IMMUTABLE_KEYED__@@`,$0=`@@__IMMUTABLE_ITERABLE__@@`,e2=function(e){return x1(e)?e:b2(e)},t2=function(e){function t(e){return y1(e)?e:x2(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(e2),n2=function(e){function t(e){return v1(e)?e:S2(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(e2),r2=function(e){function t(e){return x1(e)&&!b1(e)?e:C2(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(e2),e2.Keyed=t2,e2.Indexed=n2,e2.Set=r2,i2=0,a2=1,o2=2,s2=typeof Symbol==`function`&&Symbol.iterator,c2=`@@iterator`,l2=s2||c2,u2=function(e){this.next=e},u2.prototype.toString=function(){return`[Iterator]`},u2.KEYS=i2,u2.VALUES=a2,u2.ENTRIES=o2,u2.prototype.inspect=u2.prototype.toSource=function(){return this.toString()},u2.prototype[l2]=function(){return this},d2=`delete`,f2=5,p2=1<<f2,m2=p2-1,h2={},g2=`@@__IMMUTABLE_RECORD__@@`,_2=`@@__IMMUTABLE_ORDERED__@@`,v2=`@@__IMMUTABLE_SEQ__@@`,y2=Object.prototype.hasOwnProperty,b2=function(e){function t(e){return e==null?B1():I1(e)?e.toSeq():uge(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString(`Seq {`,`}`)},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var a=n[t?r-++i:i++];if(e(a[1],a[0],this)===!1)break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new u2(function(){if(i===r)return C1();var a=n[t?r-++i:i++];return S1(e,a[0],a[1])})}return this.__iteratorUncached(e,t)},t}(e2),x2=function(e){function t(e){return e==null?B1().toKeyedSeq():x1(e)?y1(e)?e.toSeq():e.fromEntrySeq():F1(e)?e.toSeq():V1(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(b2),S2=function(e){function t(e){return e==null?B1():x1(e)?y1(e)?e.entrySeq():e.toIndexedSeq():F1(e)?e.toSeq().entrySeq():lge(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString(`Seq [`,`]`)},t}(b2),C2=function(e){function t(e){return(x1(e)&&!b1(e)?e:S2(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(b2),b2.isSeq=R1,b2.Keyed=x2,b2.Set=C2,b2.Indexed=S2,b2.prototype[v2]=!0,w2=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[j1(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var a=t?r-++i:i++;if(e(n[a],a,this)===!1)break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new u2(function(){if(i===r)return C1();var a=t?r-++i:i++;return S1(e,a,n[a])})},t}(S2),T2=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},t.prototype.has=function(e){return y2.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,a=0;a!==i;){var o=r[t?i-++a:a++];if(e(n[o],o,this)===!1)break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,a=0;return new u2(function(){if(a===i)return C1();var o=r[t?i-++a:a++];return S1(e,o,n[o])})},t}(x2),T2.prototype[_2]=!0,R_e=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._collection,r=T1(n),i=0;if(rge(r))for(var a;!(a=r.next()).done&&e(a.value,i++,this)!==!1;);return i},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._collection,r=T1(n);if(!rge(r))return new u2(C1);var i=0;return new u2(function(){var t=r.next();return t.done?t:S1(e,i++,t.value)})},t}(S2),E2=typeof Math.imul==`function`?Math.imul:function(e,t){e|=0,t|=0;var n=e&65535,r=t&65535;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},B_e=Object.prototype.valueOf,V_e=(Math.random()*1048576|1)%1048576||40503,D2=Object.isExtensible,O2=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})(),k2=typeof WeakMap==`function`,k2&&(A2=new WeakMap),j2=Object.create(null),M2=0,N2=`__immutablehash__`,typeof Symbol==`function`&&(N2=Symbol(N2)),H_e=16,U_e=255,P2=0,F2={},I2=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Y1(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=bge(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(x2),I2.prototype[_2]=!0,L2=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&A1(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(a2,t),i=0;return t&&A1(this),new u2(function(){var a=r.next();return a.done?a:S1(e,t?n.size-++i:i++,a.value,a)})},t}(S2),R2=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(a2,t);return new u2(function(){var t=n.next();return t.done?t:S1(e,t.value,t.value,t)})},t}(C2),z2=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Mge(t);var r=x1(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(a2,t);return new u2(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Mge(r);var i=x1(r);return S1(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(x2),L2.prototype.cacheResult=I2.prototype.cacheResult=R2.prototype.cacheResult=z2.prototype.cacheResult=r0,W_e=function(e){function t(e){this._wrappedIterables=e.flatMap(function(e){return e._wrappedIterables?e._wrappedIterables:[e]}),this.size=this._wrappedIterables.reduce(function(e,t){if(e!==void 0){var n=t.size;if(n!==void 0)return e+n}},0),this[Q0]=this._wrappedIterables[0][Q0],this[Z0]=this._wrappedIterables[0][Z0],this[_2]=this._wrappedIterables[0][_2]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(this._wrappedIterables.length!==0){if(t)return this.cacheResult().__iterate(e,t);for(var n=0,r=y1(this),i=r?o2:a2,a=this._wrappedIterables[n].__iterator(i,t),o=!0,s=0;o;){for(var c=a.next();c.done;){if(n++,n===this._wrappedIterables.length)return s;a=this._wrappedIterables[n].__iterator(i,t),c=a.next()}o=(r?e(c.value[1],c.value[0],this):e(c.value,s,this))!==!1,s++}return s}},t.prototype.__iteratorUncached=function(e,t){var n=this;if(this._wrappedIterables.length===0)return new u2(C1);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new u2(function(){for(var a=i.next();a.done;){if(r++,r===n._wrappedIterables.length)return a;i=n._wrappedIterables[r].__iterator(e,t),a=i.next()}return a})},t}(b2),G_e=Object.prototype.toString,B2=`@@__IMMUTABLE_MAP__@@`,V2=function(e){function t(t){return t==null?C0():v0(t)&&!L1(t)?t:C0().withMutations(function(n){var r=e(t);b0(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString(`Map {`,`}`)},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Kge(this,e,t)},t.prototype.remove=function(e){return Kge(this,e,h2)},t.prototype.deleteAll=function(e){var t=e2(e);return t.size===0?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):C0()},t.prototype.sort=function(e){return e4(Z1(this,e))},t.prototype.sortBy=function(e,t){return e4(Z1(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,a){r.set(a,e.call(t,i,a,n))})})},t.prototype.__iterator=function(e,t){return new K_e(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?S0(this.size,this._root,e,this.__hash):this.size===0?C0():(this.__ownerID=e,this.__altered=!1,this)},t}(t2),V2.isMap=v0,H2=V2.prototype,H2[B2]=!0,H2[d2]=H2.remove,H2.removeAll=H2.deleteAll,H2.setIn=p0,H2.removeIn=H2.deleteIn=O0,H2.update=m0,H2.updateIn=h0,H2.merge=H2.concat=Ige,H2.mergeWith=Lge,H2.mergeDeep=Hge,H2.mergeDeepWith=Uge,H2.mergeIn=f0,H2.mergeDeepIn=d0,H2.withMutations=_0,H2.wasAltered=g0,H2.asImmutable=U1,H2[`@@transducer/init`]=H2.asMutable=W1,H2[`@@transducer/step`]=function(e,t){return e.set(t[0],t[1])},H2[`@@transducer/result`]=function(e){return e.asImmutable()},U2=function(e,t){this.ownerID=e,this.entries=t},U2.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(i0(n,i[a][0]))return i[a][1];return r},U2.prototype.update=function(e,t,n,r,i,a,o){for(var s=i===h2,c=this.entries,l=0,u=c.length;l<u&&!i0(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(O1(o),(s||!d)&&O1(a),!(s&&c.length===1)){if(!d&&!s&&c.length>=J_e)return Jge(e,c,r,i);var f=e&&e===this.ownerID,p=f?c:s0(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new U2(e,p)}},W2=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n},W2.prototype.get=function(e,t,n,r){t===void 0&&(t=K1(n));var i=1<<((e===0?t:t>>>e)&m2),a=this.bitmap;return(a&i)===0?r:this.nodes[Zge(a&i-1)].get(e+f2,t,n,r)},W2.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=K1(r));var s=(t===0?n:n>>>t)&m2,c=1<<s,l=this.bitmap,u=(l&c)!==0;if(!u&&i===h2)return this;var d=Zge(l&c-1),f=this.nodes,p=u?f[d]:void 0,m=w0(p,e,t+f2,n,r,i,a,o);if(m===p)return this;if(!u&&m&&f.length>=Y_e)return Xge(e,f,l,s,m);if(u&&!m&&f.length===2&&qge(f[d^1]))return f[d^1];if(u&&m&&f.length===1&&qge(m))return m;var h=e&&e===this.ownerID,g=u?m?l:l^c:l|c,_=u?m?Qge(f,d,m,h):e_e(f,d,h):$ge(f,d,m,h);return h?(this.bitmap=g,this.nodes=_,this):new W2(e,g,_)},G2=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n},G2.prototype.get=function(e,t,n,r){t===void 0&&(t=K1(n));var i=(e===0?t:t>>>e)&m2,a=this.nodes[i];return a?a.get(e+f2,t,n,r):r},G2.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=K1(r));var s=(t===0?n:n>>>t)&m2,c=i===h2,l=this.nodes,u=l[s];if(c&&!u)return this;var d=w0(u,e,t+f2,n,r,i,a,o);if(d===u)return this;var f=this.count;if(!u)f++;else if(!d&&(f--,f<X_e))return Yge(e,l,f,s);var p=e&&e===this.ownerID,m=Qge(l,s,d,p);return p?(this.count=f,this.nodes=m,this):new G2(e,f,m)},K2=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n,this._index=void 0},K2.prototype._positionOf=function(e,t){var n=this.entries,r=this._index;if(r===void 0&&t&&n.length>=Z_e&&(r=this._buildIndex()),r!==void 0){var i=r[J1(e)];if(i!==void 0)for(var a=0;a<i.length;a++){var o=i[a];if(i0(e,n[o][0]))return o}return-1}for(var s=0,c=n.length;s<c;s++)if(i0(e,n[s][0]))return s;return-1},K2.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,n=0,r=t.length;n<r;n++){var i=J1(t[n][0]),a=e[i];a===void 0?e[i]=[n]:a.push(n)}return this._index=e,e},K2.prototype.get=function(e,t,n,r){var i=this._positionOf(n,!0);return i===-1?r:this.entries[i][1]},K2.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=K1(r));var s=i===h2;if(n!==this.keyHash)return s?this:(O1(o),O1(a),T0(this,e,t,n,[r,i]));var c=this.entries,l=c.length,u=e&&e===this.ownerID,d=this._positionOf(r,u),f=d===-1?l:d,p=d!==-1;if(p?c[f][1]===i:s)return this;if(O1(o),(s||!p)&&O1(a),s&&l===2)return new q2(e,this.keyHash,c[f^1]);var m=u?c:s0(c);if(p)s?(f===l-1?m.pop():m[f]=m.pop(),u&&(this._index=void 0)):m[f]=[r,i];else if(m.push([r,i]),u&&this._index!==void 0){var h=J1(r),g=this._index[h];g===void 0?this._index[h]=[l]:g.push(l)}return u?(this.entries=m,this):new K2(e,this.keyHash,m)},q2=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n},q2.prototype.get=function(e,t,n,r){return i0(n,this.entry[0])?this.entry[1]:r},q2.prototype.update=function(e,t,n,r,i,a,o){var s=i===h2,c=i0(r,this.entry[0]);if(c?i===this.entry[1]:s)return this;if(O1(o),s){O1(a);return}return c?e&&e===this.ownerID?(this.entry[1]=i,this):new q2(e,this.keyHash,[r,i]):(O1(a),T0(this,e,t,K1(r),[r,i]))},U2.prototype.iterate=K2.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},W2.prototype.iterate=G2.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&a.iterate(e,t)===!1)return!1}},q2.prototype.iterate=function(e,t){return e(this.entry)},K_e=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Gge(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(r===0)return x0(e,n.entry)}else if(n.entries){if(i=n.entries.length-1,r<=i)return x0(e,n.entries[this._reverse?i-r:r])}else if(i=n.nodes.length-1,r<=i){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return x0(e,a.entry);t=this._stack=Gge(a,t)}continue}t=this._stack=this._stack.__prev}return C1()},t}(u2),J_e=p2/4,Y_e=p2/2,X_e=p2/4,Z_e=16,J2=`@@__IMMUTABLE_LIST__@@`,Y2=function(e){function t(t){var n=A0();if(t==null)return n;if(c_e(t))return t;var r=e(t),i=r.size;return i===0?n:(b0(i),i>0&&i<p2?k0(0,i,f2,void 0,new Z2(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`List [`,`]`)},t.prototype.get=function(e,t){if(e=j1(this,e),e>=0&&e<this.size){e+=this._origin;var n=d_e(this,e);return n&&n.array[e&m2]}return t},t.prototype.set=function(e,t){return u_e(this,e,t)},t.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=f2,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):A0()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){N0(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return N0(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){N0(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return N0(this,1)},t.prototype.shuffle=function(e){return e===void 0&&(e=Math.random),this.withMutations(function(t){for(var n=t.size,r,i;n;)r=Math.floor(e()*n--),i=t.get(r),t.set(r,t.get(n)),t.set(n,i)})},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],a=e(typeof i!=`string`&&w1(i)?i:[i]);a.size!==0&&n.push(a)}return n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})})},t.prototype.setSize=function(e){return N0(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))})},t.prototype.slice=function(e,t){var n=this.size;return M1(e,t,n)?this:N0(this,N1(e,n),P1(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=l_e(this,t);return new u2(function(){var i=r();return i===Q2?C1():S1(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n=t?this.size:0,r=l_e(this,t),i;(i=r())!==Q2&&e(i,t?--n:n++,this)!==!1;);return n},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?k0(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):this.size===0?A0():(this.__ownerID=e,this.__altered=!1,this)},t}(n2),Y2.isList=c_e,X2=Y2.prototype,X2[J2]=!0,X2[d2]=X2.remove,X2.merge=X2.concat,X2.setIn=p0,X2.deleteIn=X2.removeIn=O0,X2.update=m0,X2.updateIn=h0,X2.mergeIn=f0,X2.mergeDeepIn=d0,X2.withMutations=_0,X2.wasAltered=g0,X2.asImmutable=U1,X2[`@@transducer/init`]=X2.asMutable=W1,X2[`@@transducer/step`]=function(e,t){return e.push(t)},X2[`@@transducer/result`]=function(e){return e.asImmutable()},Z2=function(e,t){this.array=e,this.ownerID=t},Z2.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+f2)-1)||this.array.length===0)return this;var r=n>>>t&m2;if(r>=this.array.length)return new Z2([],e);var i=r===0,a;if(t>0){var o=this.array[r];if(a=o&&o.removeBefore(e,t-f2,n),a===o&&i)return this}if(i&&!a)return this;var s=M0(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return a&&(s.array[r]=a),s},Z2.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+f2:p2)||this.array.length===0)return this;var r=n-1>>>t&m2;if(r>=this.array.length)return this;var i;if(t>0){var a=this.array[r];if(i=a&&a.removeAfter(e,t-f2,n),i===a&&r===this.array.length-1)return this}var o=M0(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o},Q2={},$2=2**30,e4=function(e){function t(e){return e==null?I0():m_e(e)?e:I0().withMutations(function(t){var n=t2(e);b0(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`OrderedMap {`,`}`)},t.prototype.get=function(e,t){var n=this._map.get(e);return n===void 0?t:this._list.get(n)[1]},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):I0()},t.prototype.set=function(e,t){return h_e(this,e,t)},t.prototype.remove=function(e){return h_e(this,e,h2)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?F0(t,n,e,this.__hash):this.size===0?I0():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(V2),e4.isOrderedMap=m_e,e4.prototype[_2]=!0,e4.prototype[d2]=e4.prototype.remove,t4=`@@__IMMUTABLE_STACK__@@`,n4=function(e){function t(e){return e==null?z0():L0(e)?e:z0().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`Stack [`,`]`)},t.prototype.get=function(e,t){var n=this._head;for(e=j1(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(arguments.length===0)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):R0(t,n)},t.prototype.pushAll=function(t){if(t=e(t),t.size===0)return this;if(this.size===0&&L0(t))return t;b0(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):R0(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):z0()},t.prototype.slice=function(t,n){if(M1(t,n,this.size))return this;var r=N1(t,this.size);if(P1(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=i,this._head=a,this.__hash=void 0,this.__altered=!0,this):R0(i,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?R0(this.size,this._head,e,this.__hash):this.size===0?z0():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new w2(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&e(i.value,r++,this)!==!1;)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new w2(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new u2(function(){if(r){var t=r.value;return r=r.next,S1(e,n++,t)}return C1()})},t}(n2),n4.isStack=L0,r4=n4.prototype,r4[t4]=!0,r4.shift=r4.pop,r4.unshift=r4.push,r4.unshiftAll=r4.pushAll,r4.withMutations=_0,r4.wasAltered=g0,r4.asImmutable=U1,r4[`@@transducer/init`]=r4.asMutable=W1,r4[`@@transducer/step`]=function(e,t){return e.unshift(t)},r4[`@@transducer/result`]=function(e){return e.asImmutable()},eve=function(e){function t(e,n,r){if(r===void 0&&(r=1),!(this instanceof t))return new t(e,n,r);if(y0(r!==0,`Cannot step a Range by 0`),y0(e!==void 0,`You must define a start value when using Range`),y0(n!==void 0,`You must define an end value when using Range`),r=Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),this.size===0){if(i4)return i4;i4=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?`Range []`:`Range [ `+this._start+`...`+this._end+(this._step===1?``:` by `+this._step)+` ]`},t.prototype.get=function(e,t){return this.has(e)?this._start+j1(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return M1(e,n,this.size)?this:(e=N1(e,this.size),n=P1(n,this.size),n<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;a!==n&&e(i,t?n-++a:a++,this)!==!1;)i+=t?-r:r;return a},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;return new u2(function(){if(a===n)return C1();var o=i;return i+=t?-r:r,S1(e,t?n-++a:a++,o)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:x_e(this,e)},t}(S2),a4=`@@__IMMUTABLE_SET__@@`,o4=function(e){function t(t){return t==null?U0():V0(t)&&!L1(t)?t:U0().withMutations(function(n){var r=e(t);b0(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(t2(e).keySeq())},t.intersect=function(e){return e=e2(e).toArray(),e.length?s4.intersect.apply(t(e.pop()),e):U0()},t.union=function(e){return e=e2(e).toArray(),e.length?s4.union.apply(t(e.pop()),e):U0()},t.prototype.toString=function(){return this.__toString(`Set {`,`}`)},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return H0(this,this._map.set(e,e))},t.prototype.remove=function(e){return H0(this,this._map.remove(e))},t.prototype.clear=function(){return H0(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=H0(this,this._map.mapEntries(function(i){var a=i[1],o=e.call(t,a,a,n);return o!==a&&(r=!0),[o,o]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t=t.filter(function(e){return e.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(n){for(var r=0;r<t.length;r++)typeof t[r]==`string`?n.add(t[r]):e(t[r]).forEach(function(e){return n.add(e)})})},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return f4(Z1(this,e))},t.prototype.sortBy=function(e,t){return f4(Z1(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):this.size===0?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(r2),o4.isSet=V0,s4=o4.prototype,s4[a4]=!0,s4[d2]=s4.remove,s4.merge=s4.concat=s4.union,s4.withMutations=_0,s4.asImmutable=U1,s4[`@@transducer/init`]=s4.asMutable=W1,s4[`@@transducer/step`]=function(e,t){return e.add(t)},s4[`@@transducer/result`]=function(e){return e.asImmutable()},s4.__empty=U0,s4.__make=S_e,e2.Iterator=u2,G0(e2,{toArray:function(){b0(this.size);var e=Array(this.size||0),t=y1(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new L2(this)},toJS:function(){return W0(this)},toKeyedSeq:function(){return new I2(this,!0)},toMap:function(){return V2(this.toKeyedSeq())},toObject:D_e,toOrderedMap:function(){return e4(this.toKeyedSeq())},toOrderedSet:function(){return f4(y1(this)?this.valueSeq():this)},toSet:function(){return o4(y1(this)?this.valueSeq():this)},toSetSeq:function(){return new R2(this)},toSeq:function(){return v1(this)?this.toIndexedSeq():y1(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return n4(y1(this)?this.valueSeq():this)},toList:function(){return Y2(y1(this)?this.valueSeq():this)},toString:function(){return`[Collection]`},__toString:function(e,t){return this.size===0?e+t:e+` `+this.toSeq().map(this.__toStringMapper).join(`, `)+` `+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e0(this,Dge(this,e))},includes:function(e){return this.some(function(t){return i0(t,e)})},entries:function(){return this.__iterator(o2)},every:function(e,t){b0(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return e0(this,xge(this,e,t,!0))},partition:function(e,t){return wge(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return b0(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){b0(this.size),e=e===void 0?`,`:``+e;var t=``,n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=r==null?``:r.toString()}),t},keys:function(){return this.__iterator(i2)},map:function(e,t){return e0(this,bge(this,e,t))},reduce:function(e,t,n){return g_e(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return g_e(this,e,t,n,arguments.length<2,!0)},reverse:function(){return e0(this,Y1(this,!0))},slice:function(e,t){return e0(this,X1(this,e,t,!0))},some:function(e,t){b0(this.size);var n=!1;return this.__iterate(function(r,i,a){if(e.call(t,r,i,a))return n=!0,!1}),n},sort:function(e){return e0(this,Z1(this,e))},values:function(){return this.__iterator(a2)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size===void 0?!this.some(function(){return!0}):this.size===0},count:function(e,t){return A1(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return Sge(this,e,t)},equals:function(e){return x_e(this,e)},entrySeq:function(){var e=this;if(e._cache)return new w2(e._cache);var t=e.toSeq().map(v_e).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(B0(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,a){if(e.call(t,n,i,a))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(oge,null,e)},flatMap:function(e,t){return e0(this,kge(this,e,t))},flatten:function(e){return e0(this,Oge(this,e,!0))},fromEntrySeq:function(){return new z2(this)},get:function(e,t){return this.find(function(t,n){return i0(n,e)},void 0,t)},getIn:w_e,groupBy:function(e,t){return Cge(this,e,t)},has:function(e){return this.get(e,h2)!==h2},hasIn:E_e,isSubset:function(e){return e=typeof e.includes==`function`?e:e2(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset==`function`?e:e2(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return i0(t,e)})},keySeq:function(){return this.toSeq().map(__e).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Q1(this,e)},maxBy:function(e,t){return Q1(this,t,e)},min:function(e){return Q1(this,e?y_e(e):b_e)},minBy:function(e,t){return Q1(this,t?y_e(t):b_e,e)},rest:function(){return this.slice(1)},skip:function(e){return e===0?this:this.slice(Math.max(0,e))},skipLast:function(e){return e===0?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return e0(this,Ege(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(B0(e),t)},sortBy:function(e,t){return e0(this,Z1(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return e0(this,Tge(this,e,t))},takeUntil:function(e,t){return this.takeWhile(B0(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||=O_e(this)}}),c4=e2.prototype,c4[$0]=!0,c4[l2]=c4.values,c4.toJSON=c4.toArray,c4.__toStringMapper=E0,c4.inspect=c4.toSource=function(){return this.toString()},c4.chain=c4.flatMap,c4.contains=c4.includes,G0(t2,{flip:function(){return e0(this,yge(this))},mapEntries:function(e,t){var n=this,r=0;return e0(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return e0(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}}),l4=t2.prototype,l4[Q0]=!0,l4[l2]=c4.entries,l4.toJSON=D_e,l4.__toStringMapper=function(e,t){return E0(t)+`: `+E0(e)},G0(n2,{toKeyedSeq:function(){return new I2(this,!1)},filter:function(e,t){return e0(this,xge(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return t===void 0?-1:t},reverse:function(){return e0(this,Y1(this,!1))},slice:function(e,t){return e0(this,X1(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),n===0||n===2&&!t)return this;e=N1(e,e<0?this.count():this.size);var r=this.slice(0,e);return e0(this,n===1?r:r.concat(s0(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return e0(this,Oge(this,e,!1))},get:function(e,t){return e=j1(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=j1(this,e),e>=0&&(this.size===void 0?this.find(function(t,n){return n===e},void 0,h2)!==h2:this.size===1/0||e<this.size)},interpose:function(e){return e0(this,Age(this,e))},interleave:function(){var e=[this].concat(s0(arguments)),t=$1(this.toSeq(),S2.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),e0(this,n)},keySeq:function(){return eve(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return e0(this,Ege(this,e,t,!1))},zip:function(){var e=[this].concat(s0(arguments));return e0(this,$1(this,j_e,e))},zipAll:function(){var e=[this].concat(s0(arguments));return e0(this,$1(this,j_e,e,!0))},zipWith:function(e){var t=s0(arguments);return t[0]=this,e0(this,$1(this,e,t))}}),u4=n2.prototype,u4[Z0]=!0,u4[_2]=!0,G0(r2,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),d4=r2.prototype,d4.has=c4.includes,d4.contains=d4.includes,d4.keys=d4.values,G0(x2,l4),G0(S2,u4),G0(C2,d4),f4=function(e){function t(e){return e==null?K0():M_e(e)?e:K0().withMutations(function(t){var n=r2(e);b0(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(t2(e).keySeq())},t.prototype.toString=function(){return this.__toString(`OrderedSet {`,`}`)},t}(o4),f4.isOrderedSet=M_e,p4=f4.prototype,p4[_2]=!0,p4.zip=u4.zip,p4.zipWith=u4.zipWith,p4.zipAll=u4.zipAll,p4.__empty=K0,p4.__make=N_e,m4=function(e,t){var n;P_e(e);var r=function(a){var o=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var s=Object.keys(e),c=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var u=s[l];c[u]=l,i[u]?typeof console==`object`&&console.warn&&console.warn(`Cannot define `+J0(this)+` with property "`+u+`" since that property name is part of the Record API.`):F_e(i,u)}}return this.__ownerID=void 0,this._values=Y2().withMutations(function(e){e.setSize(o._keys.length),t2(a).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(h4);return i.constructor=r,t&&(r.displayName=t),r},m4.prototype.toString=function(){for(var e=J0(this)+` { `,t=this._keys,n,r=0,i=t.length;r!==i;r++)n=t[r],e+=(r?`, `:``)+n+`: `+E0(this.get(n));return e+` }`},m4.prototype.equals=function(e){return this===e||F1(e)&&Y0(this).equals(Y0(e))},m4.prototype.hashCode=function(){return Y0(this).hashCode()},m4.prototype.has=function(e){return this._indices.hasOwnProperty(e)},m4.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return r===void 0?this._defaultValues[e]:r},m4.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return q0(this,n)}return this},m4.prototype.remove=function(e){return this.set(e)},m4.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:q0(this,e)},m4.prototype.wasAltered=function(){return this._values.wasAltered()},m4.prototype.toSeq=function(){return Y0(this)},m4.prototype.toJS=function(){return W0(this)},m4.prototype.entries=function(){return this.__iterator(o2)},m4.prototype.__iterator=function(e,t){return Y0(this).__iterator(e,t)},m4.prototype.__iterate=function(e,t){return Y0(this).__iterate(e,t)},m4.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?q0(this,t,e):(this.__ownerID=e,this._values=t,this)},m4.isRecord=F1,m4.getDescriptiveName=J0,h4=m4.prototype,h4[g2]=!0,h4[d2]=h4.remove,h4.deleteIn=h4.removeIn=O0,h4.getIn=w_e,h4.hasIn=c4.hasIn,h4.merge=Ige,h4.mergeWith=Lge,h4.mergeIn=f0,h4.mergeDeep=Hge,h4.mergeDeepWith=Uge,h4.mergeDeepIn=d0,h4.setIn=p0,h4.update=m0,h4.updateIn=h0,h4.withMutations=_0,h4.asMutable=W1,h4.asImmutable=U1,h4[l2]=h4.entries,h4.toJSON=h4.toObject=c4.toObject,h4.inspect=h4.toSource=function(){return this.toString()}})))()}var rve;function ive(){return(ive=o((()=>{FM(),hH(),rve=class{#e;constructor(e){this.#e=e,this.path=fH(e,{pathOnly:!0})??``,this.url=e.blobURL??this.path,this.field=void 0,this.fileObj=e.file,(async()=>{this.url=await rH(e)??this.url})()}toString(){return this.url}async toBase64(){try{let e=await nH(this.#e);return PM(e)}catch(e){throw Error(`Failed to encode asset as base64: ${e.message}`)}}}})))()}var _4,v4,ave,ove,sve,y4,b4;function x4(){return(x4=o((()=>{g4(),AM(),ive(),_J(),XM(),RH(),MI(),hW(),_4=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>X0({data:LM(e),i18n:Object.fromEntries(t.map(e=>[e,{data:LM(n[e].content)}])),slug:r,path:i,newRecord:a,collection:o,mediaFiles:s.map(({sha:e,file:t,size:n,blobURL:r,...i})=>({id:e,name:i.name,path:i.path,file:t,size:n,url:r,displayURL:r})),meta:{path:i},isModification:null,label:null,partial:!1,author:``,raw:``,status:``,updatedOn:``}),v4=({entry:e,locale:t,collectionName:n,associatedAssets:r,content:i})=>{let a=i??e?.locales?.[t]?.content??{};return _4({content:a,otherLocales:Object.keys(e?.locales??{}).filter(e=>e!==t),locales:e?.locales??{},slug:e?.slug??``,path:e?.locales?.[t]?.path??``,isNew:!1,collectionName:n,associatedAssets:r})},ave=({entry:e,collectionName:t,fileName:n})=>r=>{let i=fJ({value:r,entry:e,collectionName:t,fileName:n});if(i)return new rve(i)},ove=({locale:e,getFieldArgs:t})=>{let{valueMap:n={}}=t,r={},i=new Map;return Object.entries(n).forEach(([n,a])=>{let o=n.replace(/\.\d+$/,``),s=sW({...t,keyPath:o});if(s?.widget===`relation`){let{value_field:t=`{{slug}}`,collection:n,file:c}=s,l=(()=>{let e=`${n}:${c??``}`,t=i.get(e);if(t)return t;let r=(c?[AI(n,c)]:PH(n)).filter(e=>!!e);return i.set(e,r),r})();r[o]??={},r[o][n]??={},r[o][n][a]=l.find(n=>t===`{{slug}}`?n.slug===a:n.locales[e]?.content?.[t]===a)?.locales[e]?.content}}),X0(r)},sve=({originalEntry:e,currentValues:t})=>({...e,locales:Object.fromEntries(Object.entries(t).map(([t,n])=>[t,{slug:e?.locales[t]?.slug??e?.slug,path:e?.locales[t]?.path??e?.subPath,content:n}]))}),y4=({collectionName:e,fileName:t})=>{let n=KM({collectionName:e,fileName:t});return n?k(Xq).filter(e=>pJ(e,n)):[]},b4=({draft:e,locale:t})=>{let{collectionName:n,fileName:r,isIndexFile:i,originalEntry:a,currentValues:o}=e,s=sve({originalEntry:a,currentValues:o}),c=s.locales[t].content??{},l={collectionName:n,fileName:r,valueMap:c,isIndexFile:i};return{entryMap:v4({entry:s,locale:t,collectionName:n,associatedAssets:y4({collectionName:n,fileName:r}),content:c}),valueMap:c,getFieldArgs:l,fieldsMetaData:ove({locale:t,getFieldArgs:l}),getAsset:ave({entry:s,collectionName:n,fileName:r})}}})))()}var S4,C4;function w4(){return(w4=o((()=>{FM(),wD(),AM(),_J(),XM(),hH(),VL(),ZI(),hW(),S4=async(e,t)=>{let{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=e,{locales:a}=t,{content:o}=a[r]??Object.values(a)[0]??{};if(!o)return;let s=i.some(e=>e.includes(`*`))?Object.keys(o):void 0,c=i.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${_D(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await mH({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},C4=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=RL(t);if(!a)return[];let o=XI(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||dJ(a))){let s=sW({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=fJ({value:a,entry:e,collectionName:t,fileName:n});if(c&&JM(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(!r||e.entryRelative)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&KM({collectionName:t,fileName:n})?.entryRelative){let t=NM(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));k(Xq).forEach(n=>{let r=NM(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})))()}var T4,cve,E4;function D4(){return(D4=o((()=>{_(),g4(),x4(),UI(),w4(),BY(),T4=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],cve=[`preSave`,`prePublish`],E4=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=zY.account,{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:d,locales:f}=n,p=Object.keys(f).filter(e=>e!==u),{content:m,path:g}=f[u],_=C4({entry:n,collectionName:c,fileName:l});for(let t of HI){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:_4({content:m,otherLocales:p,locales:f,slug:d,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(cve.includes(e)&&v0(n)){let e=n.toJS();h(e.data)&&h(e.i18n)?(f[u].content=IM(e.data),p.forEach(t=>{h(e.i18n[t]?.data)&&(f[t].content=IM(e.i18n[t].data))})):f[u].content=IM(e)}}}})))()}var lve,O4;function k4(){return(k4=o((()=>{wD(),BW(),ZI(),lL(),VB(),lve=({basePath:e,path:t,extension:n,locale:r,omitLocale:i,structure:a})=>{switch(a){case`multiple_folders`:return i?`${e}/${t}.${n}`:`${e}/${r}/${t}.${n}`;case`multiple_folders_i18n_root`:case`multiple_root_folders`:return i?`${e}/${t}.${n}`:`${r}/${e}/${t}.${n}`;case`multiple_files`:return i?`${e}/${t}.${n}`:`${e}/${t}.${r}.${n}`;default:return`${e}/${t}.${n}`}},O4=({draft:e,locale:t,slug:n})=>{let{collection:r,collectionFile:i,originalEntry:a,currentValues:o,isIndexFile:s}=e,{_i18n:{defaultLocale:c,structure:l,omitDefaultLocaleFromFilePath:u}}=i??r;if(i){let{_i18n:e,file:n}=i;return cL({_i18n:e,locale:t,path:yD(n)})}if(a?.locales[t]?.slug===n)return a.locales[t].path;let d=r,{_file:{basePath:f,subPath:p,extension:m}}=d,h=s?YI(d)?.name:p?zW(p,{collection:d,locale:t,content:o[c],currentSlug:n}):n;s&&h?.endsWith(`.${m}`)&&(h=h.slice(0,-m.length-1));let g=lve({basePath:f,path:h,extension:m,locale:t,omitLocale:u&&t===c,structure:l});return IB(g.split(`/`))}})))()}var A4,j4,uve,dve,fve,M4;function N4(){return(N4=o((()=>{BW(),ZI(),A4=(e,t)=>{let n={...e};return Object.entries(n).forEach(([e,r])=>{typeof r==`string`&&r.startsWith(`blob:`)&&t[r]&&(n[e]=t[r].file.name.replace(/\.[^.]+$/,``))}),n},j4=({draft:e})=>{let{collection:t,collectionFile:n,currentSlugs:r,currentValues:i,files:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=n??t;return{collection:t,content:{...A4(i[s],a),_slug:r?.[s]??r?._},locale:s,isIndexFile:o}},uve=({draft:e,locale:t,localizingKeyPaths:n})=>{let{isNew:r,collection:i,collectionFile:a,originalLocales:o,currentSlugs:s,currentValues:c,files:l,isIndexFile:u}=e,{_type:d}=i,{identifier_field:f=`title`,slug:p=`{{${f}}}`}=d===`entry`?i:{},{_i18n:{defaultLocale:m}}=a??i,h=s?.[t]??s?._;return r||!o[t]?zW(p,{collection:i,locale:t,content:{...A4(c[m],l),...A4(Object.fromEntries(n.map(e=>[e,c[t]?.[e]])),l),_slug:h},isIndexFile:u}):h},dve=({draft:e,defaultLocaleSlug:t})=>{let{collection:n,collectionFile:r,currentLocales:i}=e,{_type:a}=n,{identifier_field:o=`title`,slug:s=`{{${o}}}`}=a===`entry`?n:{},{_i18n:{defaultLocale:c,structureMap:{i18nSingleFile:l,i18nSingleFileDefaultRoot:u}}}=r??n,d=[...s.matchAll(/{{((?:fields\.)?.+?)( \| localize)?}}/g)].filter(([,,e])=>!!e).map(([,e])=>e.replace(/^fields\./,``));if(!(l||u||!d.length))return Object.fromEntries(Object.entries(i).map(([n])=>[n,n===c?t:uve({draft:e,locale:n,localizingKeyPaths:d})]))},fve=({draft:e,defaultLocaleSlug:t,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;let{collection:i,collectionFile:a}=e,{_i18n:{canonicalSlug:{value:o}}}=a??i;return o===`{{slug}}`?t:zW(o,{...r,currentSlug:t})},M4=({draft:e})=>{let{isNew:t,collection:n,collectionFile:r,fileName:i,currentSlugs:a,isIndexFile:o}=e,{_type:s}=n,{identifier_field:c=`title`,slug:l=`{{${c}}}`}=s===`entry`?n:{};if(o)return{defaultLocaleSlug:YI(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};let{_i18n:{defaultLocale:u}}=r??n,d=j4({draft:e}),f=i??(t?zW(l,d):a?.[u]??a?._),p=dve({draft:e,defaultLocaleSlug:f});return{defaultLocaleSlug:f,localizedSlugs:p,canonicalSlug:fve({draft:e,defaultLocaleSlug:f,localizedSlugs:p,fillSlugOptions:d})}}})))()}var pve,mve,P4,F4,hve,gve,_ve,vve,yve,bve;function xve(){return(xve=o((()=>{pve=l(xq(),1),_J(),hz(),BW(),k4(),N4(),VB(),mve=[`multiple_folders`,`multiple_folders_i18n_root`,`multiple_root_folders`],P4=/(?<path>.+?)(?:\/[^/]+)?$/,F4=(e,t)=>e.includes(`{{`)?zW(e,t):e,hve=(e,t)=>{let n=e.lastIndexOf(`.`),r=e.substring(0,n),i=t?.includes(`/`)?t.split(`/`).at(-1):void 0;return i&&!i.includes(`{{`)&&(r=r.match(P4)?.groups?.path),r},gve=({internalPath:e,internalSubPath:t,entryFolderPath:n,isMultiFolders:r,isNestedEntry:i,fillSlugOptions:a})=>{let o=IB([r||i?n:e,t]);return RB(F4(o,a))},_ve=({publicPath:e,subPathFolderPath:t,subPath:n,isMultiFolders:r,fillSlugOptions:i})=>{if(!r&&/^\.?$/.test(e))return e;let a=r?IB([...Array((n?.match(/\//g)??[]).length+1).fill(`..`),e,t]):e;return RB(F4(a,i))},vve=({folder:e,fillSlugOptions:t})=>{let{entryRelative:n,internalPath:r,internalSubPath:i,publicPath:a}=e;if(r===void 0||a===void 0)return{resolvedInternalPath:``,resolvedPublicPath:``};if(!n)return{resolvedInternalPath:zW(r,t),resolvedPublicPath:zW(a,t)};let{collection:o,entryFilePath:s}=t,c=mve.includes(o._i18n.structure),l=o._type===`entry`?o._file.subPath:void 0,u=l?.match(P4)?.groups?.path??``,d=hve(s??``,l),f=l?.includes(`/`)??!1;return{resolvedInternalPath:gve({internalPath:r,internalSubPath:i,entryFolderPath:d,isMultiFolders:c,isNestedEntry:f,fillSlugOptions:t}),resolvedPublicPath:_ve({publicPath:a,subPathFolderPath:u,subPath:l,isMultiFolders:c,fillSlugOptions:t})}},yve=({draft:e,defaultLocaleSlug:t,folder:n})=>{let{collection:r,collectionName:i,collectionFile:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=a??r,c=vve({folder:n,fillSlugOptions:{...j4({draft:e}),type:`media_folder`,currentSlug:t,entryFilePath:O4({draft:e,locale:s,slug:t}),isIndexFile:o}}),{resolvedInternalPath:l}=c;return{assetFolderPaths:c,assetNamesInSameFolder:hJ(l).map(e=>e.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},bve=async({file:e,folder:t,replace:n,blobURL:r,draft:i,defaultLocaleSlug:a,keyPath:o,content:s,changes:c,savingAssets:l,encodingEnabled:u})=>{let d=await BB(e),f=l.find(e=>e.sha===d&&(!t.entryRelative||(0,pve.default)(e.folder,t))),{savingAssetProps:p,assetNamesInSameFolder:m,assetFolderPaths:{resolvedInternalPath:h,resolvedPublicPath:g}}=yve({draft:i,defaultLocaleSlug:a,folder:t}),_=``;if(f)_=f.name;else{_=NB(e.name,n?{}:{assetNamesInSameFolder:m});let t=n&&m.includes(_),i=h?`${h}/${_}`:_;t||m.push(_),c.push({action:t?`update`:`create`,path:i,data:e}),l.push({...p,blobURL:r,name:_,path:i,sha:d,size:e.size,kind:mz(_)})}let v=g?`${g===`/`?``:g}/${_}`:_;u&&(v=OB(v)),s[o]=s[o].replaceAll(r,v)}})))()}var I4,L4,R4,Sve,z4;function B4(){return(B4=o((()=>{PG(),AM(),qF(),UI(),zq(),tL(),I4=(e,t=k(Nq)?.output?.json??{})=>{let{indent_style:n=`space`,indent_size:r=n===`tab`?1:2}=t;return JSON.stringify(e,null,n===`tab`?` `.repeat(r):r).trim()},L4=e=>Tpe(e).trim(),R4=(e,t=k(Nq)?.output?.yaml??{},n={})=>{let{indent_size:r=2,indent_sequences:i=!0,quote:a=`none`}=t,{quote:o=!1}=n;return KF(e,null,{indent:r,indentSeq:i,lineWidth:0,defaultKeyType:`PLAIN`,defaultStringType:o||a===`double`?`QUOTE_DOUBLE`:a===`single`?`QUOTE_SINGLE`:`PLAIN`,singleQuote:!(o||a===`double`)}).trim()},Sve=({content:e,_file:t})=>{let{format:n,fmDelimiters:r,bodyField:{key:i=`body`,inline:a=!1}={},yamlQuote:o=!1}=t,[s,c]=r??[`---`,`---`],l=``;if(!a&&i in e&&(l=typeof e[i]==`string`?e[i]:``,delete e[i]),!Object.keys(e).length)return`${l}\n`;try{let t=``;if(n===`frontmatter`||n===`yaml-frontmatter`)t=R4(e,void 0,{quote:o});else if(n===`toml-frontmatter`)t=L4(e);else if(n===`json-frontmatter`)t=I4(e);else return``;return`${s}\n${t}\n${c}\n${!a&&l?`\n${l}\n`:``}`}catch(e){console.error(e)}return``},z4=async({content:e,_file:t})=>{let{format:n,yamlQuote:r=!1}=t,i=zI.get(n)?.formatter;if(i)return`${(await i(e)).trim()}\n`;if(n===`raw`)return typeof e.body==`string`?`${e.body}\n`:``;try{if(/^ya?ml$/.test(n))return`${R4(e,void 0,{quote:r})}\n`;if(n===`toml`)return`${L4(e)}\n`;if(n===`json`)return`${I4(e)}\n`}catch(e){return console.error(e),``}return n===`frontmatter`||eL.includes(n)?Sve({content:e,_file:t}):``}})))()}var Cve,V4,wve,H4,Tve,Eve,Dve,Ove,kve,Ave,U4,jve,Mve,Nve;function W4(){return(W4=o((()=>{_(),RD(),AM(),jQ(),Z$(),q$(),RH(),ZI(),a3(),n3(),B4(),Cve=`order`,V4=e=>{let t=e?.reorder;if(t)return h(t)&&typeof t.key==`string`&&t.key?t.key:Cve},wve=e=>{let t=e?.reorder;if(h(t)&&typeof t.group==`string`&&t.group)return t.group},H4=(e,t)=>{let n=V4(t);if(!n)return[...e];let{defaultLocale:r}=t._i18n,i=e.map(e=>{let t=Number(e.locales[r]?.content?.[n]);return{entry:e,v:t,has:Number.isFinite(t)}});return i.sort((e,t)=>e.has&&t.has?e.v-t.v:e.has?-1:+!!t.has),i.map(({entry:e})=>e)},Tve=e=>({collection:e,collectionName:e.name,collectionFile:void 0,fields:e.fields,isIndexFile:!1}),Eve=({collection:e,entry:t,draft:n})=>{let{_i18n:{i18nEnabled:r,defaultLocale:i,structureMap:{i18nSingleFileDefaultRoot:a}={}}}=e;if(!r)return t3({draft:n,locale:`_default`,valueMap:t.locales[i].content});let o=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([e,t])=>[e,t3({draft:n,locale:e,valueMap:t.content})]));if(a){let{lang:e,...t}=o[i]??{},n=Object.fromEntries(Object.entries(o).filter(([e])=>e!==i));return{lang:[i,...Object.keys(n)],...t,...n}}return o},Dve=(e,t,n)=>{let r=Object.fromEntries(Object.entries(e.locales).map(([e,r])=>[e,r.content?{...r,content:{...r.content,[t]:n}}:{...r}]));return{...e,locales:r}},Ove=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{defaultLocale:a}}=e,{slug:o,path:s}=t.locales[a],[c,l]=await Promise.all([r3({cacheDB:r,previousPath:s}),z4({content:Eve({collection:e,entry:t,draft:n}),_file:i})]);return{action:`update`,slug:o,path:s,previousSha:c,data:l}},kve=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{allLocales:a}}=e;return(await Promise.all(a.map(async e=>{let a=t.locales[e];if(!a?.content)return;let[o,s]=await Promise.all([r3({cacheDB:r,previousPath:a.path}),z4({content:t3({draft:n,locale:e,valueMap:a.content}),_file:i})]);return{action:`update`,slug:a.slug,path:a.path,previousSha:o,data:s}}))).filter(Boolean)},Ave=e=>{if(e)return e;let t=k(kQ)?.repository?.databaseName;return t?new LD(t,`file-cache`):void 0},U4=async(e,t,{cacheDB:n}={})=>{let r=V4(e);if(!r)return{changes:[],savingEntries:[]};let{_i18n:{i18nEnabled:i,defaultLocale:a,structureMap:{i18nSingleFile:o,i18nSingleFileDefaultRoot:s}={}}}=e,c=!i||o||s,l=Ave(n),u=[];for(let[e,n]of t.entries()){let t=e+1;Number(n.locales[a]?.content?.[r])!==t&&u.push(Dve(n,r,t))}let d=Tve(e);return{changes:(await Promise.all(u.map(t=>c?Ove({collection:e,entry:t,draft:d,cacheDB:l}).then(e=>[e]):kve({collection:e,entry:t,draft:d,cacheDB:l})))).flat(),savingEntries:u}},jve=async(e,t,{silent:n=!1}={})=>{let{changes:r,savingEntries:i}=await U4(e,t);return r.length?(await X$({changes:r,savingEntries:i,options:{commitType:`update`,collection:e}}),n||K$.set({...G$,saved:!0,count:i.length}),i.length):0},Mve=(e,{excludeIds:t}={})=>{let n=YI(e)?.name,r=PH(e.name).filter(e=>e.slug!==n&&!(t&&t.has(e.id)));return H4(r,e)},Nve=async(e,{excludeIds:t,cacheDB:n}={})=>!e||e._type!==`entry`||!V4(e)?{changes:[],savingEntries:[]}:U4(e,Mve(e,{excludeIds:t}),{cacheDB:n})})))()}var G4,K4,q4,J4,Y4,Pve,Fve,Ive,Lve,X4;function Z4(){return(Z4=o((()=>{G4=l(xq(),1),AM(),Dq(),K4=/\.__sc_\w+$/,q4=sn(),J4=sn(!0),Y4=sn(!1),Pve=(e={})=>{let{files:t}=k(q4)??{};Object.keys(t??{}).forEach(t=>{t in e||URL.revokeObjectURL(t)})},Fve=e=>Object.fromEntries(Object.entries(e).filter(([e])=>!K4.test(e))),Ive=(e,t)=>{let n=0;return Object.keys(t).some(r=>!K4.test(r)&&(n+=1,!Object.hasOwn(e,r)||!(0,G4.default)(e[r],t[r])))||Object.keys(e).length!==n},Lve=(e,t)=>{let n=Object.keys(t);return n.length!==Object.keys(e).length||n.some(n=>{let r=e[n];return!r||Ive(r,t[n])})},X4=cn([q4],([e])=>{if(!e)return!1;let{originalLocales:t,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:a,currentValues:o}=e;return!(0,G4.default)(t,n)||!(0,G4.default)(r,i)||Lve(a,o)}),q4.subscribe(e=>{Tq.devModeEnabled&&console.info(`entryDraft`,e)})})))()}var Q4,Rve;function zve(){return(zve=o((()=>{hW(),II(),Q4=({field:e,keyPath:t,keyPathList:n})=>{let{widget:r}=e,i=r===`list`;if(n.push(t),i||r===`object`){let{fields:r}=e,{types:a,typeKey:o=`type`}=e;if(r)r.forEach(e=>{Q4({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})});else if(a)n.push(i?`${t}.*.${o}`:`${t}.${o}`),a.forEach(e=>{e.fields?.forEach(e=>{Q4({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})})});else if(i){let{field:r}=e;r?Q4({field:r,keyPath:`${t}.*`,keyPathList:n}):n.push(`${t}.*`)}}else r&&FI.includes(r)&&iW(e)&&n.push(`${t}.*`)},Rve=e=>{let t=[];return e.forEach(e=>{Q4({field:e,keyPath:e.name,keyPathList:t})}),t}})))()}var Bve,$4,e3,Vve,t3;function n3(){return(n3=o((()=>{_(),wD(),uG(),AM(),zq(),W4(),Z4(),zve(),hW(),bI(),tL(),aI(),Bve=new Map,$4=e=>e==null||e===``||Array.isArray(e)&&!e.length||h(e)&&!Object.keys(e).length,e3=({key:e,field:t,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:a,omitEmptyOptionalFields:o})=>{if(K4.test(e)){delete r[e];return}let s=r[e];if(a&&t?.widget===`datetime`&&!yI(t).format){let e=new lG(s);s=e.isValid()?e:void 0}if(o&&t&&!lW({fieldConfig:t,locale:n})&&$4(s)){let t=Object.keys(r).filter(t=>t.startsWith(`${e}.`));t.some(e=>!K4.test(e)&&!$4(r[e]))?i[e]=s:t.forEach(e=>{delete r[e]})}else i[e]=s;delete r[e]},Vve=({collectionName:e,fileName:t,fields:n,locale:r,valueMap:i,canonicalSlugKey:a,orderKey:o,isIndexFile:s=!1,isTomlOutput:c=!1})=>{let l=g(i),u={},{omit_empty_optional_fields:d=!1}=k(Nq)?.output??{},f={collectionName:e,fileName:t,valueMap:i,isIndexFile:s},p={locale:r,unsortedMap:l,sortedMap:u,isTomlOutput:c,omitEmptyOptionalFields:d};return a&&a in l&&e3({...p,key:a}),o&&o in l&&e3({...p,key:o}),Rve(n).forEach(e=>{let t=sW({...f,keyPath:e});if(e in l)e3({...p,key:e,field:t});else if(t?.widget===`keyvalue`)u[e]={},Object.entries(l).filter(([t])=>t.startsWith(`${e}.`)).forEach(([e])=>{e3({...p,key:e,field:t})});else{let n=rI(Bve,e,()=>RegExp(`^${_D(e.replaceAll(`*`,`\\d+`)).replaceAll(`\\\\d\\+`,`\\d+`)}$`));Object.keys(l).filter(e=>n.test(e)).sort(([e,t])=>CD(e,t)).forEach(e=>{let n=t??sW({...f,keyPath:e});e3({...p,key:e,field:n})})}}),Object.keys(l).sort(([e,t])=>CD(e,t)).forEach(e=>{e3({...p,key:e})}),LM(u)},t3=({draft:e,locale:t,valueMap:n})=>{let{collection:r,collectionName:i,collectionFile:a,fields:o,isIndexFile:s}=e,{_file:c,_i18n:{canonicalSlug:{key:l}}}=a??r,u=npe.includes(c.format),d=Vve({collectionName:i,fileName:a?.name,fields:o,locale:t,valueMap:n,canonicalSlugKey:l,orderKey:V4(r),isIndexFile:s,isTomlOutput:u});return!u&&rW(o,`list`)?d[o[0].name]??[]:rW(o,`keyvalue`)?d[o[0].name]??{}:d}})))()}var Hve,r3,Uve,Wve,i3;function a3(){return(a3=o((()=>{FM(),_(),RD(),AM(),D4(),XM(),jQ(),zq(),xve(),k4(),n3(),hW(),B4(),Hve=async({draft:e,slugs:{defaultLocaleSlug:t,canonicalSlug:n,localizedSlugs:r}})=>{let i=k(UM),{collection:a,collectionName:o,collectionFile:s,fileName:c,isIndexFile:l,currentLocales:u,currentValues:d,files:f}=e,{_i18n:{canonicalSlug:{key:p}}}=s??a,m=[],h=[],{encode_file_path:_=!1}=k(Nq)?.output??{},v={collectionName:o,fileName:c,keyPath:``,valueMap:{},isIndexFile:l},y={draft:e,defaultLocaleSlug:t,changes:m,savingAssets:h};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(d).map(async([a,o])=>{let s=r?.[a]??t,c=O4({draft:e,locale:a,slug:s});return u[a]?(n!==void 0&&(o[p]=n),await Promise.all(Object.entries(o).map(async([e,t])=>{if(t===void 0){delete o[e];return}if(typeof t!=`string`)return;o[e]=t.trim();let n=[...t.matchAll(jM(`g`))];if(!n.length)return;let r=sW({...v,valueMap:o,keyPath:e}),a={...y,keyPath:e,content:o,encodingEnabled:r?.widget===`richtext`||r?.widget===`markdown`||_};await Promise.all(n.map(async([e])=>{let{file:t,folder:n=i,replace:r}=f[e]??{};t&&await bve({...a,file:t,folder:n,replace:r,blobURL:e})}))})),[a,{slug:s,path:c,content:g(o)}]):[a,{path:c}]}))),changes:m,savingAssets:h}},r3=async({previousPath:e,cacheDB:t})=>{if(e)return(await t?.get(e))?.sha},Uve=async({draft:e,savingEntry:t,cacheDB:n})=>{let{collection:r,isNew:i,originalSlugs:a,originalEntry:o,collectionFile:s}=e,{_file:c,_i18n:{i18nEnabled:l,defaultLocale:u,structureMap:{i18nSingleFileDefaultRoot:d}={}}}=s??r,{slug:f,path:p,content:m}=t.locales[u],h=!i&&(a?.[u]??a?._)!==f,g=o?.locales[u]?.path;return{action:i?`create`:h?`move`:`update`,slug:f,path:p,previousPath:h?g:void 0,previousSha:await r3({cacheDB:n,previousPath:g}),data:await z4({content:(()=>{if(!l)return t3({draft:e,locale:`_default`,valueMap:m});let n=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([t,n])=>[t,t3({draft:e,locale:t,valueMap:n.content})]));if(d){let{lang:e,...t}=n[u]??{},r=Object.fromEntries(Object.entries(n).filter(([e])=>e!==u));return{lang:[u,...Object.keys(r)],...t,...r}}return n})(),_file:c})}},Wve=async({draft:e,savingEntry:t,cacheDB:n,locale:r})=>{let{collection:i,isNew:a,originalLocales:o,currentLocales:s,originalSlugs:c,originalEntry:l,collectionFile:u}=e,{_file:d}=u??i,{slug:f,path:p,content:m}=t.locales[r]??{},h=l?.locales[r]?.path,g=await r3({cacheDB:n,previousPath:h});if(s[r]){let t=!a&&o[r]&&(c?.[r]??c?._)!==f;return{action:a||!o[r]?`create`:t?`move`:`update`,slug:f,path:p,previousPath:t?h:void 0,previousSha:g,data:await z4({content:t3({draft:e,locale:r,valueMap:m}),_file:d})}}if(!a&&o[r])return{action:`delete`,slug:f,path:p,previousSha:g}},i3=async({draft:e,slugs:t})=>{let{id:n,collection:r,collectionFile:i}=e,{defaultLocaleSlug:a}=t,{_file:o,_i18n:{i18nEnabled:s,allLocales:c,defaultLocale:l,structureMap:{i18nSingleFile:u,i18nSingleFileDefaultRoot:d}}}=i??r,{localizedEntryMap:f,changes:p,savingAssets:m}=await Hve({draft:e,slugs:t}),h={id:n,slug:a,subPath:o.fullPathRegEx?f[l].path.match(o.fullPathRegEx)?.groups?.subPath??a:a,locales:Object.fromEntries(Object.entries(f))};await E4({type:`preSave`,draft:e,savingEntry:h});let g=k(kQ)?.repository?.databaseName,_={draft:e,savingEntry:h,cacheDB:g?new LD(g,`file-cache`):void 0};return!s||u||d?p.push(await Uve({..._})):await Promise.all(c.map(async e=>{let t=await Wve({..._,locale:e});t&&p.push(t)})),{savingEntry:h,savingAssets:m,changes:p}}})))()}var Gve,o3,Kve,qve,Jve,Yve;function Xve(){return(Xve=o((()=>{FM(),AM(),_J(),Y$(),XM(),hH(),Z$(),q$(),RH(),ZI(),MI(),a3(),N4(),TH(),Gve=({entry:e})=>{let{locales:t}=e,n=Object.entries(t),r=Object.fromEntries(n.map(([e])=>[e,!0])),i=Object.fromEntries(n.map(([e,{slug:t}])=>[e,t])),a=Object.fromEntries(n.map(([e,{content:t}])=>[e,t]));return{createdAt:Date.now(),isNew:!1,canPreview:!0,originalEntry:e,originalLocales:r,currentLocales:structuredClone(r),originalSlugs:i,currentSlugs:structuredClone(i),originalValues:a,currentValues:structuredClone(a),files:{},validities:{},validationMessages:{},expanderStates:{}}},o3=async({draftProps:e,indexFile:t,savingEntries:n,changes:r})=>{let{collection:i,collectionFile:a}=e,{fields:o=[]}=a??i,s={...e,fields:t?.fields??o},{savingEntry:c,changes:l}=await i3({draft:s,slugs:M4({draft:s})});n.push(c),r.push(...l)},Kve=async({entry:e,savingEntries:t,changes:n})=>{let r=Gve({entry:e});await Promise.all(xH(e).map(async i=>{let a=i.name,o=XI(i,e),s=o?YI(i):void 0,c=kI(i,e),l={indexFile:s,savingEntries:t,changes:n},u={...r,collection:i,collectionName:a,isIndexFile:o};c.length?await Promise.all(c.map(e=>o3({...l,draftProps:{...u,collectionFile:e,fileName:e.name}}))):await o3({...l,draftProps:u})}))},qve=async({_globalAssetFolder:e,newPath:t,asset:n,savingEntries:r,changes:i})=>{let a=fH(n)??n.blobURL,o=a?await IH(a):[];if(!a||!o.length)return;let{publicPath:s}=JM(n.path).find(({collectionName:e})=>e!==void 0)??e,c=await IH(a,{entries:structuredClone(o),newURL:t.replace(n.folder.internalPath??``,s??``)});c.length&&await Promise.all(c.map(async e=>Kve({entry:e,savingEntries:r,changes:i})))},Jve=({action:e,movedAssets:t})=>{let n=k(nJ)?.path,r=t.find(e=>e.asset.path===n),i=k(rJ)?.path,a=t.find(e=>e.asset.path===i);r&&nJ.set($q(r.path)),a&&rJ.set($q(a.path)),J$.set({...G$,moved:e===`move`,renamed:e===`rename`,count:t.length})},Yve=async(e,t)=>{let n=k(UM),r=[],i=[],a=[];await Promise.all(t.map(async({asset:e,path:t})=>{let o=t,s=NM(o).basename;a.push({...e,path:o,name:s}),r.push({action:`move`,path:o,previousPath:e.path,previousSha:e.sha,data:new File([e.file??await nH(e)],s)}),await qve({_globalAssetFolder:n,newPath:o,asset:e,savingEntries:i,changes:r})})),await X$({changes:r,savingEntries:i,savingAssets:a,options:{commitType:`uploadMedia`}}),Jve({action:e,movedAssets:t})}})))()}function Zve(e,t){let n=Oa();D(t,!0),G(e,eye);let r=()=>A(oJ,`$renamingAsset`,a),i=()=>A(BQ,`$showAssetOverlay`,a),[a,o]=fn(),s=M(!1),c=M(!1),l=M(void 0),u=!1,d=M(Dr({basename:``})),f=M(``),p=M(Dr([])),m=M(Dr([])),h=j(r),g=j(()=>z(d).dirname),_=j(()=>z(d).basename),v=j(()=>z(d).extension),y=j(()=>z(f).trim()),b=j(()=>NM(z(y)).extension),x=j(()=>!FB(z(v),z(b))),S=j(()=>{if(!z(y))return`empty`;if(z(y).includes(`/`))return`character`;if(z(p).includes(z(y)))return`duplicate`}),C=j(()=>!!z(S)),w=async()=>{z(h)&&(N(d,NM(z(h).path),!0),N(f,z(_),!0),u=!1,N(p,hJ(z(g)).map(e=>e.name).filter(e=>e!==z(h).name),!0),N(m,await H$(z(h)),!0),N(s,!0))},ee=()=>{if(u||!z(l))return;u=!0;let{filename:e}=NM(z(l).value);z(l).setSelectionRange(0,e.length)},te=async()=>{if(!z(h))return;let e=z(h).path,t=`${z(g)}/${z(y)}`;await Yve(`rename`,[{asset:z(h),path:t}]),s$().path===`/assets/${e}`&&await d$(`/assets/${t}`,{replaceState:!0,notifyChange:!1})};L(()=>{z(h)&&w()}),L(()=>{i()||(N(s,!1),N(c,!1),dn(oJ,void 0))});var ne=$ve(),re=F(ne);{let e=j(()=>X(`rename_x`,{values:{name:z(h)?.name??``}})),t=j(()=>X(`rename`)),r=j(()=>z(y)===z(_)||z(C));wp(re,{get title(){return z(e)},get okLabel(){return z(t)},get okDisabled(){return z(r)},onOk:()=>{z(x)?N(c,!0):te()},onClose:()=>{z(c)||dn(oJ,void 0)},get open(){return z(s)},set open(e){N(s,e,!0)},children:(e,t)=>{var r=Qve(),i=F(r),a=P(i,!0);E(i);var o=I(i,2);Wp(P(o),{dir:`auto`,flex:!0,get invalid(){return z(C)},get"aria-errormessage"(){return`${n}-error`},onselect:()=>{ee()},get value(){return z(f)},set value(e){N(f,e,!0)},get element(){return z(l)},set element(e){N(l,e,!0)}}),E(o);var s=I(o,2),c=P(s),u=e=>{var t=Da();R(e=>U(t,e),[()=>X(`enter_new_name_for_asset_error.${z(S)}`)]),H(e,t)};W(c,e=>{z(C)&&e(u)}),E(s),R(e=>{U(a,e),K(s,`id`,`${n}-error`)},[()=>X(`enter_new_name_for_asset`,{values:{count:z(m).length}})]),H(e,r)},$$slots:{default:!0}})}var ie=I(re,2);{let e=j(()=>X(`rename`));$he(ie,{get oldExtension(){return z(v)},get newExtension(){return z(b)},get okLabel(){return z(e)},onOk:()=>{te(),dn(oJ,void 0)},onCancel:()=>{N(s,!0)},get open(){return z(c)},set open(e){N(c,e,!0)}})}H(e,ne),O(),o()}var Qve,$ve,eye;function tye(){return(tye=o((()=>{Y(),J(),Z(),Mp(),Yp(),FM(),_1(),m$(),_J(),Xve(),U$(),KQ(),VB(),Qve=B(`<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!></div> <div role="none" class="error svelte-22gadf"><!></div>`,1),$ve=B(`<!> <!>`,1),eye={hash:`svelte-22gadf`,code:`p.svelte-22gadf {margin:0 0 8px;}div.svelte-22gadf {display:flex;align-items:center;gap:4px;}.error.svelte-22gadf {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}`}})))()}function nye(e,t){D(t,!0),G(e,aye);let n=()=>A(Upe,`$listedAssetIndexMap`,a),r=()=>A(nJ,`$focusedAsset`,a),i=()=>A(tJ,`$selectedAssetPathSet`,a),[a,o]=fn(),s=j(()=>t.asset.name),c=j(()=>t.asset.kind),l=e=>{eJ.update(n=>{let r=n.indexOf(t.asset);return e&&r===-1&&n.push(t.asset),!e&&r>-1&&n.splice(r,1),n})};{let a=j(()=>n().get(t.asset.path)??-1);fm(e,{get"aria-rowindex"(){return z(a)},get"aria-label"(){return z(s)},onChange:e=>{l(e.detail.selected)},onfocus:()=>{dn(nJ,t.asset)},onclick:()=>{(UG.isSmallScreen||UG.isMediumScreen)&&r()&&dz(r())&&d$(`/assets/${r().path}`,{transitionType:`forwards`})},ondblclick:()=>{r()&&dz(r())&&d$(`/assets/${r().path}`,{transitionType:`forwards`})},children:(e,n)=>{var r=iye(),a=F(r),o=e=>{um(e,{class:`checkbox`,children:(e,n)=>{{let n=j(()=>i().has(t.asset.path));vp(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{l(e)}})}},$$slots:{default:!0}})};W(a,e=>{UG.isSmallScreen||UG.isMediumScreen||e(o)});var u=I(a,2);um(u,{class:`image`,children:(e,n)=>{{let n=j(()=>t.viewType===`list`?`icon`:`tile`),r=j(()=>z(c)===`image`);i1(e,{get kind(){return z(c)},get asset(){return t.asset},get variant(){return z(n)},get cover(){return UG.isSmallScreen},get checkerboard(){return z(r)}})}},$$slots:{default:!0}});var d=I(u,2),f=e=>{um(e,{class:`title`,children:(e,t)=>{var n=rye();dd(P(n),{lines:2,children:(e,t)=>{mt();var n=Da();R(()=>U(n,z(s))),H(e,n)},$$slots:{default:!0}}),E(n),H(e,n)},$$slots:{default:!0}})};W(d,e=>{(!UG.isSmallScreen||t.viewType===`list`)&&e(f)}),H(e,r)},$$slots:{default:!0}})}O(),o()}var rye,iye,aye;function oye(){return(oye=o((()=>{Y(),J(),Cp(),dm(),pm(),md(),a1(),m$(),_J(),hz(),KQ(),GG(),rye=B(`<div role="none" class="label svelte-17zk54k"><!></div>`),iye=B(`<!> <!> <!>`,1),aye={hash:`svelte-17zk54k`,code:`.label.svelte-17zk54k {word-break:break-all;}`}})))()}function s3(e,t){let n=q(t,`loading`,3,`lazy`),r=q(t,`asset`,3,void 0),i=q(t,`src`,3,void 0),a=q(t,`variant`,3,void 0),o=q(t,`blurBackground`,3,!1),s=q(t,`cover`,3,!1),c=q(t,`checkerboard`,3,!1),l=q(t,`alt`,3,``),u=Hs(t,sye);i1(e,Us({kind:`image`,get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return a()},get blurBackground(){return o()},get cover(){return s()},get checkerboard(){return c()},get alt(){return l()}},()=>u))}var sye;function c3(){return(c3=o((()=>{Y(),J(),a1(),sye=new Set([`$$slots`,`$$events`,`$$legacy`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`alt`])})))()}function l3(e,t){D(t,!0),G(e,dye);let n=q(t,`files`,27,()=>Dr([])),r=q(t,`transformedFileMap`,3,void 0),i=q(t,`removable`,3,!0),a=q(t,`showThumbnail`,3,!0),o=new Map,s=e=>{let t=o.get(e);return t===void 0&&(t=URL.createObjectURL(e),o.set(e,t)),t};L(()=>{let e=new Set(n());o.forEach((t,n)=>{e.has(n)||(URL.revokeObjectURL(t),o.delete(n))})}),$s(()=>{o.forEach(e=>URL.revokeObjectURL(e)),o.clear()});var c=uye();ao(c,23,n,(e,t)=>`${e.name}-${t}`,(e,t,o)=>{var c=V();Ga(F(c),hd,null,e=>{let c=j(()=>{let{name:e,type:n,size:r}=z(t);return{name:e,type:n,size:r}}),l=j(()=>r()?.get(z(t)));var u=lye(),d=P(u),f=e=>{{let n=j(()=>s(z(t)));s3(e,{get src(){return z(n)},variant:`icon`,checkerboard:!0})}},p=j(()=>a()&&AV.includes(z(c).type)),m=e=>{var t=cye();nc(P(t),{name:`draft`}),E(t),H(e,t)};W(d,e=>{z(p)?e(f):e(m,-1)});var h=I(d,2),g=P(h);dd(P(g),{children:(e,t)=>{mt();var n=Da();R(e=>U(n,e),[()=>z(c).name.normalize()]),H(e,n)},$$slots:{default:!0}}),E(g);var _=I(g,2),v=P(_);Za(v,()=>zu.current,e=>{var n=Da();R(e=>U(n,e),[()=>X(`file_meta`,{values:{type:X(`file_type_labels.${z(t).type.split(`/`)[1]}`,{default:NM(z(c).name).extension?.toUpperCase()}),size:jB(z(c).size)}})]),H(e,n)});var y=I(v,2),b=e=>{var t=Da();R(e=>U(t,e),[()=>X(`file_meta_converted_from_x`,{values:{type:X(`file_type_labels.${z(l).type.split(`/`)[1]}`,{default:NM(z(l).name).extension?.toUpperCase()})}})]),H(e,t)};W(y,e=>{z(l)&&z(l).type!==z(t).type&&e(b)}),E(_),E(h);var x=I(h,2);{let e=j(()=>X(`remove`)),t=j(()=>!i()||n().length===1);$d(x,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(e)},get hidden(){return z(t)},onclick:e=>{e.stopPropagation(),n().splice(z(o),1)},children:(e,t)=>{nc(e,{name:`close`})},$$slots:{default:!0}})}E(u),H(e,u)}),H(e,c)}),E(c),H(e,c),O()}var cye,lye,uye,dye;function u3(){return(u3=o((()=>{Y(),J(),Z(),of(),oc(),md(),FM(),gd(),tc(),c3(),VB(),MV(),cye=B(`<span role="none" class="image svelte-lbhi1w"><!></span>`),lye=B(`<div role="listitem" class="file svelte-lbhi1w"><!> <div role="none" class="info svelte-lbhi1w"><div role="none" class="name"><!></div> <div role="none" class="meta svelte-lbhi1w"><!> <!></div></div> <!></div>`),uye=B(`<div role="list" class="files svelte-lbhi1w"></div>`),dye={hash:`svelte-lbhi1w`,code:`.files.svelte-lbhi1w {display:flex;flex-direction:column;gap:16px;margin:0 8px;}.file.svelte-lbhi1w {display:flex;align-items:center;gap:16px;overflow:hidden;.preview {flex:none;}.image:where(.svelte-lbhi1w) {flex:none;display:flex;justify-content:center;align-items:center;width:40px;height:40px;aspect-ratio:1 / 1;object-fit:cover;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-tertiary-background-color);}.info:where(.svelte-lbhi1w) {flex:auto;display:flex;flex-direction:column;gap:4px;overflow:hidden;text-align:start;.meta:where(.svelte-lbhi1w) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}}}`}})))()}function d3(e,t){D(t,!0),G(e,_ye);let n=e=>{var t=V(),n=F(t),i=e=>{var t=Da();R(e=>U(t,e),[()=>X(`dropped_image_type_mismatch`,{values:{types:y([`GIF`,`JPEG`,`PNG`,`WebP`,`SVG`])}})]),H(e,t)},a=j(()=>r()===AV.join(`,`)),o=e=>{var t=Da();R(e=>U(t,e),[()=>X(`dropped_file_type_mismatch`,{values:{types:y(r().split(/,\s*/))}})]),H(e,t)};W(n,e=>{z(a)?e(i):e(o,-1)}),H(e,t)},r=q(t,`accept`,3,void 0),i=q(t,`disabled`,3,!1),a=q(t,`multiple`,3,!1),o=q(t,`showUploadButton`,3,!1),s=q(t,`showFilePreview`,3,!1),c=q(t,`onDrop`,3,void 0),l=q(t,`children`,3,void 0),u=M(void 0),d=M(!1),f=M(!1),p=M(!1),m=M(void 0),h=M(Dr([])),g=j(()=>o()||s()&&z(h).length),_=()=>{z(m)?.open()},v=()=>{z(h).length&&(N(h,[],!0),c()?.({files:z(h)}))},y=e=>sL(zu.current,{type:`disjunction`}).format(e),b=e=>{N(h,a()?e:e.slice(0,1),!0),c()?.({files:z(h)})},x=e=>{c()?.({files:e.detail.files})};Qs(()=>(z(u)?.addEventListener(`Select`,x),()=>{z(u)?.removeEventListener(`Select`,x)})),L(()=>{!z(g)&&z(f)&&N(p,!0)});var S={openFilePicker:_,reset:v},C=gye(),w=F(C),ee=P(w),te=e=>{var t=mye(),r=P(t),c=e=>{var t=pye(),r=F(t),o=P(r),s=e=>{var t=Da();R(e=>U(t,e),[()=>X(`drop_files_or_click_to_browse`,{values:{count:a()?2:1}})]),H(e,t)},c=e=>{var t=Da();R(e=>U(t,e),[()=>X(`tap_to_browse`)]),H(e,t)};W(o,e=>{UG.hasMouse?e(s):e(c,-1)}),E(r);var l=I(r,2),u=P(l);{let e=e=>{nc(e,{name:`cloud_upload`})},t=j(()=>X(`choose_files`,{values:{count:a()?2:1}}));$d(u,{variant:`primary`,get label(){return z(t)},get disabled(){return i()},onclick:()=>{_()},startIcon:e,$$slots:{startIcon:!0}})}E(l);var d=I(l,2),p=e=>{var t=fye(),r=P(t);n(r),E(t),H(e,t)};W(d,e=>{z(f)&&e(p)}),H(e,t)};W(r,e=>{o()&&e(c)});var l=I(r,2),u=e=>{l3(e,{get files(){return z(h)},set files(e){N(h,e,!0)}})};W(l,e=>{s()&&z(h).length&&e(u)}),E(t),H(e,t)},ne=e=>{var t=V();vo(F(t),()=>l()??T),H(e,t)};W(ee,e=>{z(g)?e(te):e(ne,-1)});var re=I(ee,2),ie=e=>{var t=hye(),n=P(t),r=P(n);nc(r,{name:`download`});var i=I(r,2),o=P(i,!0);E(i),E(n),E(t),R(e=>U(o,e),[()=>X(`drop_files_here`,{values:{count:a()?2:1}})]),H(e,t)};W(re,e=>{z(d)&&e(ie)}),E(w),Fs(w,e=>N(u,e),()=>z(u));var ae=I(w,2);Fs(tm(ae,{get accept(){return r()},get multiple(){return a()},onSelect:({files:e})=>{b(e)}}),e=>N(m,e,!0),()=>z(m));var oe=I(ae,2),se=e=>{{let t=j(()=>X(`unsupported_file_type`));Np(e,{get title(){return z(t)},get open(){return z(p)},set open(e){N(p,e,!0)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}};return W(oe,e=>{z(g)||e(se)}),pa(`dragover`,w,e=>{e.preventDefault(),!(i()||!e.dataTransfer)&&(e.dataTransfer.dropEffect=`copy`,N(d,!0),N(f,!1))}),pa(`dragleave`,w,e=>{e.preventDefault(),!i()&&N(d,!1)}),pa(`dragend`,w,e=>{e.preventDefault(),!i()&&N(d,!1)}),pa(`drop`,w,async e=>{if(e.preventDefault(),i()||!e.dataTransfer)return;N(d,!1);let t=await Wle(e.dataTransfer,{accept:r()});t.length?b(t):N(f,!0)}),H(e,C),O(S)}var fye,pye,mye,hye,gye,_ye;function f3(){return(f3=o((()=>{Y(),J(),Z(),Pp(),of(),rm(),oc(),FM(),tc(),u3(),lL(),GG(),MV(),fye=B(`<div role="alert"><!></div>`),pye=B(`<div role="none"><!></div> <div role="none"><!></div> <!>`,1),mye=B(`<div role="none" class="content svelte-1hhq62q"><!> <!></div>`),hye=B(`<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>`),gye=B(`<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>`,1),_ye={hash:`svelte-1hhq62q`,code:`.drop-target.svelte-1hhq62q {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;& > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}button:not(:disabled) {pointer-events:auto;}}.drop-indicator.svelte-1hhq62q {position:absolute;inset:0;z-index:10;border-radius:var(--sui-control-large-border-radius);background-color:hsl(var(--sui-background-color-4-hsl) / 80%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;pointer-events:none;div:where(.svelte-1hhq62q) {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:4px dashed var(--sui-primary-accent-color);border-radius:var(--sui-control-large-border-radius);font-size:var(--sui-font-size-x-large);.icon {color:var(--sui-secondary-foreground-color);font-size:48px;}}}.content.svelte-1hhq62q {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;height:100%;min-height:320px;text-align:center;}`}})))()}function vye(e,t){D(t,!0);let n=()=>A(GM,`$targetAssetFolder`,r),[r,i]=fn(),a=q(t,`label`,3,void 0),o=j(()=>!YM(n()));{let t=e=>{nc(e,{name:`cloud_upload`})},n=j(()=>!a()),r=j(()=>X(`upload_assets`));$d(e,{variant:`primary`,get iconic(){return z(n)},get disabled(){return z(o)},get label(){return a()},get"aria-label"(){return z(r)},onclick:()=>{dn(VQ,!0)},startIcon:t,$$slots:{startIcon:!0}})}O(),i()}function p3(){return(p3=o((()=>{Y(),J(),Z(),of(),oc(),XM(),KQ()})))()}function m3(e,t){G(e,xye);let n=q(t,`children`,3,void 0),r=Hs(t,yye);var i=bye();ds(i,()=>({role:`group`,class:`list-container`,...r}),void 0,void 0,void 0,`svelte-1sdsl2g`),vo(P(i),()=>n()??T),E(i),H(e,i)}var yye,bye,xye;function h3(){return(h3=o((()=>{Y(),J(),yye=new Set([`$$slots`,`$$events`,`$$legacy`,`children`]),bye=B(`<div><!></div>`),xye={hash:`svelte-1sdsl2g`,code:`.list-container.svelte-1sdsl2g {--icon-size: 36px;flex:auto;position:relative;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;}`}})))()}function g3(e,t){D(t,!0),G(e,wye);let n=q(t,`children`,3,void 0),r=Hs(t,Sye);var i=Cye();Ga(P(i),hd,null,e=>{Fee(e,Us({multiple:!0,clickToSelect:!1},()=>r,{children:(e,t)=>{var r=V();vo(F(r),()=>n()??T),H(e,r)},$$slots:{default:!0}}))}),E(i),R(()=>es(i,1,`${t.viewType??``}-view`,`svelte-1sfbolp`)),H(e,i),O()}var Sye,Cye,wye;function _3(){return(_3=o((()=>{Y(),J(),zee(),gd(),Sye=new Set([`$$slots`,`$$events`,`$$legacy`,`viewType`,`children`]),Cye=B(`<div role="none"><!></div>`),wye={hash:`svelte-1sfbolp`,code:`:is(.grid-view.svelte-1sfbolp, .list-view.svelte-1sfbolp) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}.grid-view.svelte-1sfbolp {
|
|
2725
2725
|
@media (width < 768px) {padding:4px;
|
|
2726
2726
|
}.row-group-caption {display:block;grid-column:1 / -1; /* span the entire row */th {display:block;}}.row-group:not(:first-child) .row-group-caption {margin-top:16px;}.grid-body {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 200px), 1fr));gap:16px;border-width:0;
|
|
2727
2727
|
|
|
@@ -2918,7 +2918,7 @@ Error generating stack: `+e.message+`
|
|
|
2918
2918
|
/* Hide the bottom border */[data-field-type]::after {display:none;}[data-field-type='string'] {display:flex;align-items:center;gap:8px;padding-block:0 16px;h4 {margin-bottom:0 !important;}.field-wrapper {flex:auto;}}
|
|
2919
2919
|
}button {margin:var(--sui-focus-ring-width);}}}.placeholder.svelte-1l1n28m {border:dashed 1px currentColor;border-color:hsl(from currentColor h s l / 0.5);border-radius:2px;padding-inline:0.4em;cursor:pointer;-webkit-user-select:none;user-select:none;&:hover {border-color:currentColor;}&:focus {outline:2px solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}&.block {width:fit-content;}&.inline:not(:first-child) {margin-inline-start:var(--sui-paragraph-margin);}}.fields.svelte-1l1n28m {display:flex;flex-direction:column;gap:16px;}`},ha([`click`,`keydown`])})))()}var y7,mAe;function hAe(){return(hAe=o((()=>{rC(),tc(),pAe(),TU(),y7=/^<(?<tagName>[a-z]+)/i,mAe=e=>{let{id:t,label:n,collapsed:r,mode:i,summary:a,fields:o,pattern:s,toBlock:c,toPreview:l}=e,u=!SU(s),d=l?.({}),f=c({}),p=typeof d==`string`?d.trim().match(y7)?.groups?.tagName??(typeof f==`string`?f.trim().match(y7)?.groups?.tagName:void 0):void 0;class m extends PS{__props;constructor(e,t){super(t),this.__props=e}static getType(){return t}isInline(){return u}static clone(e){return new m(e.__props,e.__key)}static importJSON(e){return new m().updateFromJSON(e)}exportJSON(){return{...CU(this.__props??{}),type:t,version:1}}createDOM(){let e,s=null,c,l=!1,d=()=>{l||(l=!0,Na(c))};return c=ja(sAe,{target:document.createElement(`div`),props:{componentName:t,label:n,collapsed:r,mode:i,inline:u,summary:a,fields:o,values:this.__props,onChange:async({type:t,detail:n})=>{await Pi(),s??=V_(e);let{activeElement:r}=document,i=r,a=i?.matches(`[contenteditable="true"]`)?window.getSelection():null,o=a&&a.rangeCount>0?a.getRangeAt(0).cloneRange():null;s?.update(()=>{if(t===`update`)try{this.getWritable().__props=n}catch{}t===`remove`&&(d(),this.remove())},{discrete:!0,onUpdate:()=>{i&&document.body.contains(i)&&(i.focus(),o&&a&&(a.removeAllRanges(),a.addRange(o)))}})}}}),Yn(),e=c.getElement(),window.requestAnimationFrame(()=>{e.closest(`[role="textbox"][aria-readonly="false"]`)&&e.focus(),e.closest(`.field`)?.addEventListener(`Unmount`,d,{once:!0});let{parentElement:t}=e;if(t){let n=new MutationObserver(()=>{e.isConnected||(d(),n.disconnect())});n.observe(t,{childList:!0})}}),e}exportDOM(){return{element:this.createDOM()}}static importDOM(){let e={};return p&&(e[p]=()=>({conversion:e=>({node:new m(Object.fromEntries(o.map(({name:t})=>[t,e[t]??``])))}),priority:3})),t===`linked-image`&&Object.assign(e,{a:e=>{if(e.firstChild?.nodeName.toLowerCase()===`img`){let{href:t}=e,{src:n,alt:r,title:i}=e.firstChild;return{conversion:()=>({node:new m({src:n,alt:r,title:i,link:t}),after:()=>[]}),priority:4}}return null}}),e}updateDOM(){return!1}}return m}})))()}var gAe;function _Ae(){return(_Ae=o((()=>{TU(),gAe=({componentDef:e,CustomNode:t})=>{let{id:n,pattern:r,fromBlock:i,toBlock:a}=e,o=new RegExp(r.source,r.flags.replace(`g`,``)),s=e=>i?.(e)??e.groups??{},c=e=>e instanceof t&&e.getType()===n,l=e=>c(e)?a(CU(e.__props??{})):null;return SU(r)?{type:`multiline-element`,dependencies:[t],regExpStart:/^./,regExpEnd:{optional:!0,regExp:/.$/},handleImportAfterStartMatch:({lines:e,rootNode:n,startLineIndex:r})=>{let i=e.slice(r).join(`
|
|
2920
2920
|
`),[a]=i.match(o)??[];if(!a||!i.startsWith(a))return null;let c=a.match(o),l=r+a.split(`
|
|
2921
|
-
`).length-1;return c?(n.append(new t(s(c))),[!0,l]):[!1,l]},replace:()=>void 0,export:l}:{type:`text-match`,dependencies:[t],importRegExp:o,regExp:o,replace:(e,n)=>{e.replace(new t(s(n)))},export:l}}})))()}var b7,vAe,yAe;function bAe(){return(bAe=o((()=>{hAe(),_Ae(),b7=new Map,vAe=e=>{let t=mAe(e);return{node:t,createNode:e=>new t(e),transformer:gAe({componentDef:e,CustomNode:t})}},yAe=class{constructor(e){let{id:t}=e,n=b7.get(t),r=n??vAe(e);n||b7.set(t,r),Object.assign(this,{...e,...r})}}})))()}function xAe(e,t){D(t,!0),G(e,CAe);let n=()=>A(Nq,`$cmsConfig`,i),r=()=>A(q4,`$entryDraft`,i),[i,a]=fn(),o=/^data:(?<type>image\/.+?);base64,.+/,s=n()?.field_defaults?.richtext??{},{fieldContext:c,parentComponentNames:l,valueStoreKey:u}=Pt(`field-editor`)??{},d=c===`rich-text-editor-component`,f=l.at(-1),p=q(t,`currentValue`,15),m=q(t,`required`,3,!0),h=q(t,`readonly`,3,!1),g=q(t,`invalid`,3,!1),_=M(void 0),v=M(``),y=0,b=j(()=>S(t.fieldConfig.modes,()=>s.modes??[...oSe],!0)),x=j(()=>S(t.fieldConfig.buttons,()=>s.buttons??[...cSe],!0)),C=j(()=>S(t.fieldConfig.editor_components,()=>s.editor_components??[...w6,...LI.keys()],!0)),w=j(()=>t.fieldConfig.allow_nested_components),ee=j(()=>S(t.fieldConfig.linked_images,()=>s.linked_images??!0,!0)),te=j(()=>S(t.fieldConfig.use_emoji_autocomplete,()=>s.use_emoji_autocomplete??!0,!0)),ne=j(()=>S(t.fieldConfig.use_markdown_shortcuts,()=>s.use_markdown_shortcuts??!0,!0)),re=j(()=>S(t.fieldConfig.minimal,()=>s.minimal??!1,!0)),ie=j(()=>z(b).map(e=>sSe[e]).filter(Boolean)),ae=j(()=>r()?.isIndexFile??!1),oe=j(()=>r()?.collectionName??``),se=j(()=>r()?.fileName),ce=j(()=>D8(r(),t.locale,u)),le=j(()=>[...z(x),...z(C).includes(`code-block`)?[`code-block`]:[]].map(e=>lSe[e]).filter(Boolean)),T=j(()=>{let e=z(w);return d&&(e=sW({collectionName:z(oe),fileName:z(se),isIndexFile:z(ae),valueMap:z(ce),keyPath:t.keyPath.match(/^[^:]+/)?.[0]})?.allow_nested_components),e??s.allow_nested_components??!0}),ue=j(()=>d&&!z(T)?[]:z(C).filter(e=>z(T)!==`exclude_self`||!l.includes(e)).map(e=>RU(e===`image`&&z(ee)?`linked-image`:e)).filter(e=>!!e).map(e=>new yAe(e))),de=j(()=>z(ue).find(({id:e})=>e===`image`||e===`linked-image`)),fe=j(()=>r5(n5({collectionName:z(oe),fileName:z(se),componentName:f,typedKeyPath:t.typedKeyPath,isIndexFile:z(ae)}))),pe=async({target:e,images:t})=>{let n=e?.closest(`div`),i=V_(n);if(!r()||!z(de)||!n?.matches(`.lexical-root`)||!i)return;let a=z(de).fields?.find(({name:e})=>e===`src`),{config:o}=Hq({fieldConfig:a}),s=r(),c=z(fe);for(let{file:e,src:n,alt:r=``}of t){let t=n;if(e){let{value:n}=await f5({draft:s,resource:{file:e,folder:c},libraryConfig:o});t=n}if(!t)continue;let a=t;i.update(()=>{d_([z(de).createNode({src:a,alt:r}),N_()])})}},me=async e=>{let{target:t,clipboardData:n}=e,r=n?.items;if(!r)return;let i=[],a=[...r].findIndex(({kind:e,type:t})=>e===`file`&&AV.includes(t)),o=[...r].findIndex(({kind:e,type:t})=>e===`string`&&t===`text/html`);if(a>-1&&o>-1){let t=a>-1?r[a].getAsFile():void 0;if(!t)return;r.clear(),e.stopPropagation();let n=``,s=t.name,c=await new Promise(e=>{r[o].getAsString(t=>{e(new DOMParser().parseFromString(t,`text/html`).querySelector(`img`))})});if(c&&(n=c.alt,/^https?:/.test(c.src))){let e=new URL(c.src).pathname.split(`/`).pop()??``;(EV.test(e)||kV.test(e))&&(s=e)}i=[{file:new File([t],s,{type:t.type}),alt:n}]}else i=[...n.files].filter(({type:e})=>AV.includes(e)).map(e=>({file:e}));i.length&&(i=i.map(({file:e,alt:t},n)=>{if(e?.name===`image.png`){let{year:t,month:r,day:a,hour:o,minute:s,second:c}=XF(),l=`${t}${r}${a}-${o}${s}${c}${i.length>1?`-${n+1}`:``}.png`;e=new File([e],l,{type:e.type})}return{file:e,alt:t}}),await pe({target:t,images:i}))},he=async e=>{let{target:t,dataTransfer:n}=e,r=n?.files,i=[];if(r?.length)i=[...r].filter(({type:e})=>AV.includes(e)).map(e=>({file:e}));else{let t=e.dataTransfer?.getData(`text/html`);if(t){let e=new DOMParser().parseFromString(t,`text/html`).querySelector(`img`);if(e){let{src:t,alt:n}=e,r=t.match(o),a;if(r){let e=r.groups?.type??``;if(AV.includes(e))try{let n=await(await fetch(t)).blob(),{year:r,month:i,day:o,hour:s,minute:c,second:l}=XF(),u=`${r}${i}${o}-${s}${c}${l}.${e.split(`/`)[1]}`;a=new File([n],u,{type:e})}catch{return}}i=[{file:a,src:t,alt:n}]}}}i.length&&await pe({target:t,images:i})},ge=()=>{let e=typeof p()==`string`?p():``;z(v)!==e&&N(v,e,!0),!(!r()||d)&&(window.clearTimeout(y),y=window.setTimeout(()=>{Object.keys(r()?.extraValues[t.locale]??{}).forEach(e=>{let[n]=e.match(C6)??[];n?.startsWith(`${t.keyPath}:`)&&!z(_)?.querySelector(`[data-key-path-prefix="${n}"]`)&&delete r().extraValues[t.locale][e]})},500))},_e=()=>{let e=z(v);p()!==e&&p(e)};L(()=>{p(),Li(()=>{ge()})}),L(()=>{z(v),Li(()=>{_e()})});var ve=SAe();let ye;Ga(P(ve),hd,null,e=>{var n=V();Za(F(n),()=>JSON.stringify(t.fieldConfig),e=>{{let n=j(()=>nL(t.locale)),r=j(()=>rL(t.locale));tce(e,{get lang(){return z(n)},get dir(){return z(r)},get modes(){return z(ie)},get buttons(){return z(le)},get components(){return z(ue)},get useEmojiAutocomplete(){return z(te)},get useMarkdownShortcuts(){return z(ne)},flex:!0,get readonly(){return h()},get required(){return m()},get invalid(){return g()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,onpastecapture:e=>{me(e)},ondrop:e=>{he(e)},get value(){return z(v)},set value(e){N(v,e,!0)}})}}),H(e,n)}),E(ve),Fs(ve,e=>N(_,e),()=>z(_)),R(()=>ye=es(ve,1,`wrapper svelte-duifo7`,null,ye,{minimal:z(re)})),H(e,ve),O(),a()}var SAe,CAe;function wAe(){return(wAe=o((()=>{Y(),J(),gA(),ZF(),gd(),rC(),tc(),UI(),zq(),Z4(),O8(),hW(),s5(),p5(),T6(),bAe(),zU(),lL(),Wq(),MV(),SAe=B(`<div role="none"><!></div>`),CAe={hash:`svelte-duifo7`,code:`.wrapper.svelte-duifo7 {--sui-paragraph-margin: 20px;display:contents;&.minimal {:is([role='textbox'], textarea) {overflow:auto;max-height:240px;}}
|
|
2921
|
+
`).length-1;return c?(n.append(new t(s(c))),[!0,l]):[!1,l]},replace:()=>void 0,export:l}:{type:`text-match`,dependencies:[t],importRegExp:o,regExp:o,replace:(e,n)=>{e.replace(new t(s(n)))},export:l}}})))()}var b7,vAe,yAe;function bAe(){return(bAe=o((()=>{hAe(),_Ae(),b7=new Map,vAe=e=>{let t=mAe(e);return{node:t,createNode:e=>new t(e),transformer:gAe({componentDef:e,CustomNode:t})}},yAe=class{constructor(e){let{id:t}=e,n=b7.get(t),r=n??vAe(e);n||b7.set(t,r),Object.assign(this,{...e,...r})}}})))()}function xAe(e,t){D(t,!0),G(e,CAe);let n=()=>A(Nq,`$cmsConfig`,i),r=()=>A(q4,`$entryDraft`,i),[i,a]=fn(),o=/^data:(?<type>image\/.+?);base64,.+/,s=n()?.field_defaults?.richtext??{},{fieldContext:c,parentComponentNames:l,valueStoreKey:u}=Pt(`field-editor`)??{},d=c===`rich-text-editor-component`,f=l.at(-1),p=q(t,`currentValue`,15),m=q(t,`required`,3,!0),h=q(t,`readonly`,3,!1),g=q(t,`invalid`,3,!1),_=M(void 0),v=M(``),y=0,b=j(()=>S(t.fieldConfig.modes,()=>s.modes??[...oSe],!0)),x=j(()=>S(t.fieldConfig.buttons,()=>s.buttons??[...cSe],!0)),C=j(()=>S(t.fieldConfig.editor_components,()=>s.editor_components??[...w6,...LI.keys()],!0)),w=j(()=>t.fieldConfig.allow_nested_components),ee=j(()=>S(t.fieldConfig.linked_images,()=>s.linked_images??!0,!0)),te=j(()=>S(t.fieldConfig.use_emoji_autocomplete,()=>s.use_emoji_autocomplete??!0,!0)),ne=j(()=>S(t.fieldConfig.use_markdown_shortcuts,()=>s.use_markdown_shortcuts??!0,!0)),re=j(()=>S(t.fieldConfig.minimal,()=>s.minimal??!1,!0)),ie=j(()=>z(b).map(e=>sSe[e]).filter(Boolean)),ae=j(()=>r()?.isIndexFile??!1),oe=j(()=>r()?.collectionName??``),se=j(()=>r()?.fileName),ce=j(()=>D8(r(),t.locale,u)),le=j(()=>[...z(x),...z(C).includes(`code-block`)?[`code-block`]:[]].map(e=>lSe[e]).filter(Boolean)),T=j(()=>{let e=z(w);return d&&(e=sW({collectionName:z(oe),fileName:z(se),isIndexFile:z(ae),valueMap:z(ce),keyPath:t.keyPath.match(/^[^:]+/)?.[0]})?.allow_nested_components),e??s.allow_nested_components??!0}),ue=j(()=>d&&!z(T)?[]:z(C).filter(e=>z(T)!==`exclude_self`||!l.includes(e)).map(e=>RU(e===`image`&&z(ee)?`linked-image`:e)).filter(e=>!!e).map(e=>new yAe(e))),de=j(()=>z(ue).find(({id:e})=>e===`image`||e===`linked-image`)),fe=j(()=>r5(n5({collectionName:z(oe),fileName:z(se),componentName:f,typedKeyPath:t.typedKeyPath,isIndexFile:z(ae)}))),pe=async({target:e,images:t})=>{let n=e?.closest(`div`),i=V_(n);if(!r()||!z(de)||!n?.matches(`.lexical-root`)||!i)return;let a=z(de).fields?.find(({name:e})=>e===`src`),{config:o}=Hq({fieldConfig:a}),s=r(),c=z(fe);for(let{file:e,src:n,alt:r=``}of t){let t=n;if(e){let{value:n}=await f5({draft:s,resource:{file:e,folder:c},libraryConfig:o});t=n}if(!t)continue;let a=t;i.update(()=>{d_([z(de).createNode({src:a,alt:r}),N_()])})}},me=async e=>{let{target:t,clipboardData:n}=e,r=n?.items;if(!r)return;let i=[],a=[...r].findIndex(({kind:e,type:t})=>e===`file`&&AV.includes(t)),o=[...r].findIndex(({kind:e,type:t})=>e===`string`&&t===`text/html`);if(a>-1&&o>-1){let t=a>-1?r[a].getAsFile():void 0;if(!t)return;r.clear(),e.stopPropagation();let n=``,s=t.name,c=await new Promise(e=>{r[o].getAsString(t=>{e(new DOMParser().parseFromString(t,`text/html`).querySelector(`img`))})});if(c&&(n=c.alt,/^https?:/.test(c.src))){let e=new URL(c.src).pathname.split(`/`).pop()??``;(EV.test(e)||kV.test(e))&&(s=e)}i=[{file:new File([t],s,{type:t.type}),alt:n}]}else i=[...n.files].filter(({type:e})=>AV.includes(e)).map(e=>({file:e}));i.length&&(i=i.map(({file:e,alt:t},n)=>{if(e?.name===`image.png`){let{year:t,month:r,day:a,hour:o,minute:s,second:c}=XF(),l=`${t}${r}${a}-${o}${s}${c}${i.length>1?`-${n+1}`:``}.png`;e=new File([e],l,{type:e.type})}return{file:e,alt:t}}),await pe({target:t,images:i}))},he=async e=>{let{target:t,dataTransfer:n}=e,r=n?.files,i=[];if(r?.length)i=[...r].filter(({type:e})=>AV.includes(e)).map(e=>({file:e}));else{let t=e.dataTransfer?.getData(`text/html`);if(t){let e=new DOMParser().parseFromString(t,`text/html`).querySelector(`img`);if(e){let{src:t,alt:n}=e,r=t.match(o),a;if(r){let e=r.groups?.type??``;if(AV.includes(e))try{let n=await(await fetch(t)).blob(),{year:r,month:i,day:o,hour:s,minute:c,second:l}=XF(),u=`${r}${i}${o}-${s}${c}${l}.${e.split(`/`)[1]}`;a=new File([n],u,{type:e})}catch{return}}i=[{file:a,src:t,alt:n}]}}}i.length&&await pe({target:t,images:i})},ge=()=>{let e=typeof p()==`string`?p():``;z(v)!==e&&N(v,e,!0),!(!r()||d)&&(window.clearTimeout(y),y=window.setTimeout(()=>{Object.keys(r()?.extraValues[t.locale]??{}).forEach(e=>{let[n]=e.match(C6)??[];n?.startsWith(`${t.keyPath}:`)&&!z(_)?.querySelector(`[data-key-path-prefix="${n}"]`)&&delete r().extraValues[t.locale][e]})},500))},_e=()=>{let e=z(v);p()!==e&&p(e)};L(()=>{p(),Li(()=>{ge()})}),L(()=>{z(v),Li(()=>{_e()})}),L(()=>()=>{window.clearTimeout(y)});var ve=SAe();let ye;Ga(P(ve),hd,null,e=>{var n=V();Za(F(n),()=>JSON.stringify(t.fieldConfig),e=>{{let n=j(()=>nL(t.locale)),r=j(()=>rL(t.locale));tce(e,{get lang(){return z(n)},get dir(){return z(r)},get modes(){return z(ie)},get buttons(){return z(le)},get components(){return z(ue)},get useEmojiAutocomplete(){return z(te)},get useMarkdownShortcuts(){return z(ne)},flex:!0,get readonly(){return h()},get required(){return m()},get invalid(){return g()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,onpastecapture:e=>{me(e)},ondrop:e=>{he(e)},get value(){return z(v)},set value(e){N(v,e,!0)}})}}),H(e,n)}),E(ve),Fs(ve,e=>N(_,e),()=>z(_)),R(()=>ye=es(ve,1,`wrapper svelte-duifo7`,null,ye,{minimal:z(re)})),H(e,ve),O(),a()}var SAe,CAe;function wAe(){return(wAe=o((()=>{Y(),J(),gA(),ZF(),gd(),rC(),tc(),UI(),zq(),Z4(),O8(),hW(),s5(),p5(),T6(),bAe(),zU(),lL(),Wq(),MV(),SAe=B(`<div role="none"><!></div>`),CAe={hash:`svelte-duifo7`,code:`.wrapper.svelte-duifo7 {--sui-paragraph-margin: 20px;display:contents;&.minimal {:is([role='textbox'], textarea) {overflow:auto;max-height:240px;}}
|
|
2922
2922
|
@media (width < 768px) {.sui.text-editor {
|
|
2923
2923
|
/* Remove the section padding */margin:0 calc(var(--field-editor-padding) * -1) calc(var(--field-editor-padding) * -1);width:100dvw;}:is(.sui.toolbar, .lexical-root, textarea) {border:0;border-radius:0;}
|
|
2924
2924
|
}}`}})))()}function TAe(){return{useNewRenderer:!0,renderer:{heading(...e){return Vj.Renderer.prototype.heading.call(this,...e).replace(/^<(h\d)/,`<$1 dir="auto"`)},list(...e){return Vj.Renderer.prototype.list.call(this,...e).replace(/^<(ol|ul)/,`<$1 dir="auto"`)},paragraph(...e){return Vj.Renderer.prototype.paragraph.call(this,...e).replace(/^<p/,`<p dir="auto"`)}}}}function EAe(){return(EAe=o((()=>{OM()})))()}var DAe,OAe,kAe,x7,AAe,jAe,MAe,NAe,PAe,FAe,IAe,LAe,S7,RAe;function zAe(){return(zAe=o((()=>{Fj(),AU(),aI(),DAe={ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|blob):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i,ADD_TAGS:[`iframe`],ADD_ATTR:[`allow`,`allowfullscreen`,`referrerpolicy`,`sandbox`]},OAe=e=>{let t=e.getAttribute(`src`)?.trim()||``;if(!t.startsWith(`https://`))return!1;try{let e=new URL(t),n=typeof window<`u`&&window.location?window.location.origin:``;if(n&&e.origin===n)return!1}catch{return!1}let n=e.getAttribute(`sandbox`)||``,r=new Set(n.split(/\s+/).filter(Boolean));return r.add(`allow-scripts`),r.add(`allow-same-origin`),e.setAttribute(`sandbox`,Array.from(r).join(` `)),!0},kAe=(e,t={})=>{let n=Pj(e,{...DAe,...t,RETURN_DOM:!0});return Array.from(n.querySelectorAll(`iframe`)).forEach(e=>{OAe(e)||e.remove()}),n.innerHTML},x7=`span[data-component-key]`,AAe=`img[src]:not([data-processed])`,jAe=e=>Array.from(e).reduce((e,t)=>((e^t.charCodeAt(0))>>>0)*16777619>>>0,2166136261).toString(16),MAe=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),NAe=/^[ ]{0,3}(`{3,}|~{3,})/,PAe=/^<([a-zA-Z][a-zA-Z0-9]*)(?:[\s>])/,FAe=new Map,IAe=e=>{if(!e)return[];let t=[],n=[],r=null,i=null;return e.split(`
|