@bolttech/template-editor 0.0.1 โ 0.0.3
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/README.md +2 -1
- package/dist/template-editor.cjs +89 -0
- package/dist/template-editor.d.ts +37 -32
- package/dist/template-editor.mjs +10530 -0
- package/package.json +30 -21
- package/dist/DataSourceModal-CW1ZoE0O.js +0 -433
- package/dist/index-CmbewOaI.js +0 -26017
- package/dist/template-editor.es.js +0 -4
- package/dist/template-editor.umd.js +0 -272
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
(function(Dr,L){typeof exports=="object"&&typeof module<"u"?L(exports,require("react"),require("react-dom"),require("@monaco-editor/react"),require("react-icons/fi"),require("htmlparser2"),require("sanitize-html"),require("handlebars")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","@monaco-editor/react","react-icons/fi","htmlparser2","sanitize-html","handlebars"],L):(Dr=typeof globalThis<"u"?globalThis:Dr||self,L(Dr.TemplateEditor={},Dr.React,Dr.ReactDOM,Dr.MonacoEditor,Dr.ReactIconsFi,Dr.HTMLParser2,Dr.SanitizeHtml,Dr.Handlebars))})(this,(function(Dr,L,Ho,Cw,Te,Ew,Fw,Wo){"use strict";var PS=Object.defineProperty;var OS=(Dr,L,Ho)=>L in Dr?PS(Dr,L,{enumerable:!0,configurable:!0,writable:!0,value:Ho}):Dr[L]=Ho;var ju=(Dr,L,Ho)=>OS(Dr,typeof L!="symbol"?L+"":L,Ho);function Sw(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}function kw(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const c=Object.getOwnPropertyDescriptor(n,i);c&&Object.defineProperty(e,i,c.get?c:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const rd=Sw(L);var af=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kf={exports:{}},ad={},mm;function Tw(){if(mm)return ad;mm=1;/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/return(function(){function e(j){if(j==null)return null;if(typeof j=="function")return j.$$typeof===me?null:j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case N:return"Fragment";case B:return"Profiler";case O:return"StrictMode";case J:return"Suspense";case $:return"SuspenseList";case se:return"Activity"}if(typeof j=="object")switch(typeof j.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case S:return"Portal";case Z:return(j.displayName||"Context")+".Provider";case z:return(j._context.displayName||"Context")+".Consumer";case V:var ne=j.render;return j=j.displayName,j||(j=ne.displayName||ne.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case K:return ne=j.displayName||null,ne!==null?ne:e(j.type)||"Memo";case ve:ne=j._payload,j=j._init;try{return e(j(ne))}catch{}}return null}function t(j){return""+j}function r(j){try{var ne=!1}catch{ne=!0}if(ne){ne=console;var Fe=ne.error,_e=typeof Symbol=="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return Fe.call(ne,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_e),t(j)}}function n(j){if(j===N)return"<>";if(typeof j=="object"&&j!==null&&j.$$typeof===ve)return"<...>";try{var ne=e(j);return ne?"<"+ne+">":"<...>"}catch{return"<...>"}}function i(){var j=ge.A;return j===null?null:j.getOwner()}function c(){return Error("react-stack-top-frame")}function f(j){if(Qe.call(j,"key")){var ne=Object.getOwnPropertyDescriptor(j,"key").get;if(ne&&ne.isReactWarning)return!1}return j.key!==void 0}function g(j,ne){function Fe(){tt||(tt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ne))}Fe.isReactWarning=!0,Object.defineProperty(j,"key",{get:Fe,configurable:!0})}function b(){var j=e(this.type);return rt[j]||(rt[j]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),j=this.props.ref,j!==void 0?j:null}function m(j,ne,Fe,_e,De,Ae,Oe,ze){return Fe=Ae.ref,j={$$typeof:F,type:j,key:ne,props:Ae,_owner:De},(Fe!==void 0?Fe:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:b}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Oe}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ze}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function v(j,ne,Fe,_e,De,Ae,Oe,ze){var Ee=ne.children;if(Ee!==void 0)if(_e)if(pe(Ee)){for(_e=0;_e<Ee.length;_e++)E(Ee[_e]);Object.freeze&&Object.freeze(Ee)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else E(Ee);if(Qe.call(ne,"key")){Ee=e(j);var Be=Object.keys(ne).filter(function(Ce){return Ce!=="key"});_e=0<Be.length?"{key: someKey, "+Be.join(": ..., ")+": ...}":"{key: someKey}",Pe[Ee+_e]||(Be=0<Be.length?"{"+Be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
10
|
-
let props = %s;
|
|
11
|
-
<%s {...props} />
|
|
12
|
-
React keys must be passed directly to JSX without using spread:
|
|
13
|
-
let props = %s;
|
|
14
|
-
<%s key={someKey} {...props} />`,_e,Ee,Be,Ee),Pe[Ee+_e]=!0)}if(Ee=null,Fe!==void 0&&(r(Fe),Ee=""+Fe),f(ne)&&(r(ne.key),Ee=""+ne.key),"key"in ne){Fe={};for(var ye in ne)ye!=="key"&&(Fe[ye]=ne[ye])}else Fe=ne;return Ee&&g(Fe,typeof j=="function"?j.displayName||j.name||"Unknown":j),m(j,Ee,Ae,De,i(),Fe,Oe,ze)}function E(j){typeof j=="object"&&j!==null&&j.$$typeof===F&&j._store&&(j._store.validated=1)}var A=L,F=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),me=Symbol.for("react.client.reference"),ge=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qe=Object.prototype.hasOwnProperty,pe=Array.isArray,Ie=console.createTask?console.createTask:function(){return null};A={react_stack_bottom_frame:function(j){return j()}};var tt,rt={},Pt=A.react_stack_bottom_frame.bind(A,c)(),sr=Ie(n(c)),Pe={};ad.Fragment=N,ad.jsx=function(j,ne,Fe,_e,De){var Ae=1e4>ge.recentlyCreatedOwnerStacks++;return v(j,ne,Fe,!1,_e,De,Ae?Error("react-stack-top-frame"):Pt,Ae?Ie(n(j)):sr)},ad.jsxs=function(j,ne,Fe,_e,De){var Ae=1e4>ge.recentlyCreatedOwnerStacks++;return v(j,ne,Fe,!0,_e,De,Ae?Error("react-stack-top-frame"):Pt,Ae?Ie(n(j)):sr)}})(),ad}var vm;function Aw(){return vm||(vm=1,Kf.exports=Tw()),Kf.exports}var w=Aw(),Bl={},od={},bm;function _w(){if(bm)return od;bm=1;/**
|
|
15
|
-
* @license React
|
|
16
|
-
* react-dom-server-legacy.browser.development.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/return(function(){function e(o,u,h,C){return""+u+(h==="s"?"\\73 ":"\\53 ")+C}function t(o,u,h,C){return""+u+(h==="s"?"\\u0073":"\\u0053")+C}function r(o){return Object.prototype.toString.call(o).replace(/^\[object (.*)\]$/,function(u,h){return h})}function n(o){var u=JSON.stringify(o);return'"'+o+'"'===u?o:u}function i(o){switch(typeof o){case"string":return JSON.stringify(10>=o.length?o:o.slice(0,10)+"...");case"object":return Yn(o)?"[...]":o!==null&&o.$$typeof===ll?"client":(o=r(o),o==="Object"?"{...}":o);case"function":return o.$$typeof===ll?"client":(o=o.displayName||o.name)?"function "+o:"function";default:return String(o)}}function c(o){if(typeof o=="string")return o;switch(o){case xo:return"Suspense";case es:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case Za:return c(o.render);case ts:return c(o.type);case Do:var u=o._payload;o=o._init;try{return c(o(u))}catch{}}return""}function f(o,u){var h=r(o);if(h!=="Object"&&h!=="Array")return h;var C=-1,k=0;if(Yn(o))if(mc.has(o)){var P=mc.get(o);h="<"+c(P)+">";for(var W=0;W<o.length;W++){var G=o[W];G=typeof G=="string"?G:typeof G=="object"&&G!==null?"{"+f(G)+"}":"{"+i(G)+"}",""+W===u?(C=h.length,k=G.length,h+=G):h=15>G.length&&40>h.length+G.length?h+G:h+"{...}"}h+="</"+c(P)+">"}else{for(h="[",P=0;P<o.length;P++)0<P&&(h+=", "),W=o[P],W=typeof W=="object"&&W!==null?f(W):i(W),""+P===u?(C=h.length,k=W.length,h+=W):h=10>W.length&&40>h.length+W.length?h+W:h+"...";h+="]"}else if(o.$$typeof===yo)h="<"+c(o.type)+"/>";else{if(o.$$typeof===ll)return"client";if(xa.has(o)){for(h=xa.get(o),h="<"+(c(h)||"..."),P=Object.keys(o),W=0;W<P.length;W++){h+=" ",G=P[W],h+=n(G)+"=";var ee=o[G],X=G===u&&typeof ee=="object"&&ee!==null?f(ee):i(ee);typeof ee!="string"&&(X="{"+X+"}"),G===u?(C=h.length,k=X.length,h+=X):h=10>X.length&&40>h.length+X.length?h+X:h+"..."}h+=">"}else{for(h="{",P=Object.keys(o),W=0;W<P.length;W++)0<W&&(h+=", "),G=P[W],h+=n(G)+": ",ee=o[G],ee=typeof ee=="object"&&ee!==null?f(ee):i(ee),G===u?(C=h.length,k=ee.length,h+=ee):h=10>ee.length&&40>h.length+ee.length?h+ee:h+"...";h+="}"}}return u===void 0?h:-1<C&&0<k?(o=" ".repeat(C)+"^".repeat(k),`
|
|
23
|
-
`+h+`
|
|
24
|
-
`+o):`
|
|
25
|
-
`+h}function g(o,u){var h=o.length&3,C=o.length-h,k=u;for(u=0;u<C;){var P=o.charCodeAt(u)&255|(o.charCodeAt(++u)&255)<<8|(o.charCodeAt(++u)&255)<<16|(o.charCodeAt(++u)&255)<<24;++u,P=3432918353*(P&65535)+((3432918353*(P>>>16)&65535)<<16)&4294967295,P=P<<15|P>>>17,P=461845907*(P&65535)+((461845907*(P>>>16)&65535)<<16)&4294967295,k^=P,k=k<<13|k>>>19,k=5*(k&65535)+((5*(k>>>16)&65535)<<16)&4294967295,k=(k&65535)+27492+(((k>>>16)+58964&65535)<<16)}switch(P=0,h){case 3:P^=(o.charCodeAt(u+2)&255)<<16;case 2:P^=(o.charCodeAt(u+1)&255)<<8;case 1:P^=o.charCodeAt(u)&255,P=3432918353*(P&65535)+((3432918353*(P>>>16)&65535)<<16)&4294967295,P=P<<15|P>>>17,k^=461845907*(P&65535)+((461845907*(P>>>16)&65535)<<16)&4294967295}return k^=o.length,k^=k>>>16,k=2246822507*(k&65535)+((2246822507*(k>>>16)&65535)<<16)&4294967295,k^=k>>>13,k=3266489909*(k&65535)+((3266489909*(k>>>16)&65535)<<16)&4294967295,(k^k>>>16)>>>0}function b(o){return typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object"}function m(o){try{return!1}catch{return!0}}function v(o){return""+o}function E(o,u){if(m())return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",u,b(o)),v(o)}function A(o,u){if(m())return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",u,b(o)),v(o)}function F(o){if(m())return console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",b(o)),v(o)}function S(o){return st.call(Ja,o)?!0:st.call(su,o)?!1:kd.test(o)?Ja[o]=!0:(su[o]=!0,console.error("Invalid attribute name: `%s`",o),!1)}function N(o,u){uu[u.type]||u.onChange||u.onInput||u.readOnly||u.disabled||u.value==null||console.error(o==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),u.onChange||u.readOnly||u.disabled||u.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function O(o,u){if(st.call(Eo,u)&&Eo[u])return!0;if(di.test(u)){if(o="aria-"+u.slice(4).toLowerCase(),o=cu.hasOwnProperty(o)?o:null,o==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",u),Eo[u]=!0;if(u!==o)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",u,o),Eo[u]=!0}if(Td.test(u)){if(o=u.toLowerCase(),o=cu.hasOwnProperty(o)?o:null,o==null)return Eo[u]=!0,!1;u!==o&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",u,o),Eo[u]=!0)}return!0}function B(o,u){var h=[],C;for(C in u)O(o,C)||h.push(C);u=h.map(function(k){return"`"+k+"`"}).join(", "),h.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",u,o):1<h.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",u,o)}function z(o,u,h,C){if(st.call(Mr,u)&&Mr[u])return!0;var k=u.toLowerCase();if(k==="onfocusin"||k==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Mr[u]=!0;if(typeof h=="function"&&(o==="form"&&u==="action"||o==="input"&&u==="formAction"||o==="button"&&u==="formAction"))return!0;if(mt.test(u))return lt.test(u)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",u),Mr[u]=!0;if(Fo.test(u)||ul.test(u))return!0;if(k==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Mr[u]=!0;if(k==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Mr[u]=!0;if(k==="is"&&h!==null&&h!==void 0&&typeof h!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),Mr[u]=!0;if(typeof h=="number"&&isNaN(h))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",u),Mr[u]=!0;if(mr.hasOwnProperty(k)){if(k=mr[k],k!==u)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",u,k),Mr[u]=!0}else if(u!==k)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",u,k),Mr[u]=!0;switch(u){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof h){case"boolean":switch(u){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return k=u.toLowerCase().slice(0,5),k==="data-"||k==="aria-"?!0:(h?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',h,u,u,h,u):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',h,u,u,h,u,u,u),Mr[u]=!0)}case"function":case"symbol":return Mr[u]=!0,!1;case"string":if(h==="false"||h==="true"){switch(u){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,u,h==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',u,h),Mr[u]=!0}}return!0}function Z(o,u,h){var C=[],k;for(k in u)z(o,k,u[k])||C.push(k);u=C.map(function(P){return"`"+P+"`"}).join(", "),C.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",u,o):1<C.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",u,o)}function V(o){return o.replace(So,function(u,h){return h.toUpperCase()})}function J(o){if(typeof o=="boolean"||typeof o=="number"||typeof o=="bigint")return""+o;F(o),o=""+o;var u=wc.exec(o);if(u){var h="",C,k=0;for(C=u.index;C<o.length;C++){switch(o.charCodeAt(C)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}k!==C&&(h+=o.slice(k,C)),k=C+1,h+=u}o=k!==C?h+o.slice(k,C):h}return o}function $(o){return os.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function K(o){return F(o),(""+o).replace(Ad,t)}function ve(o,u,h,C,k){return{idPrefix:o===void 0?"":o,nextFormID:0,streamingFormat:0,bootstrapScriptContent:h,bootstrapScripts:C,bootstrapModules:k,instructions:ko,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function se(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:Cc}}function me(o,u,h){return{insertionMode:o,selectedValue:u,tagScope:h}}function ge(o,u,h){switch(u){case"noscript":return me(Hr,null,o.tagScope|1);case"select":return me(Hr,h.value!=null?h.value:h.defaultValue,o.tagScope);case"svg":return me(cr,null,o.tagScope);case"picture":return me(Hr,null,o.tagScope|2);case"math":return me(Vn,null,o.tagScope);case"foreignObject":return me(Hr,null,o.tagScope);case"table":return me(ls,null,o.tagScope);case"thead":case"tbody":case"tfoot":return me(gi,null,o.tagScope);case"colgroup":return me(Da,null,o.tagScope);case"tr":return me(us,null,o.tagScope);case"head":if(o.insertionMode<Hr)return me(cl,null,o.tagScope);break;case"html":if(o.insertionMode===pi)return me(ur,null,o.tagScope)}return o.insertionMode>=ls||o.insertionMode<Hr?me(Hr,null,o.tagScope):o}function Qe(o,u){if(typeof u!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var h=!0,C;for(C in u)if(st.call(u,C)){var k=u[C];if(k!=null&&typeof k!="boolean"&&k!==""){if(C.indexOf("--")===0){var P=J(C);A(k,C),k=J((""+k).trim())}else{P=C;var W=k;if(-1<P.indexOf("-")){var G=P;Tn.hasOwnProperty(G)&&Tn[G]||(Tn[G]=!0,console.error("Unsupported style property %s. Did you mean %s?",G,V(G.replace(bc,"ms-"))))}else if(fi.test(P))G=P,Tn.hasOwnProperty(G)&&Tn[G]||(Tn[G]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",G,G.charAt(0).toUpperCase()+G.slice(1)));else if(hi.test(W)){G=P;var ee=W;An.hasOwnProperty(ee)&&An[ee]||(An[ee]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,G,ee.replace(hi,"")))}typeof W=="number"&&(isNaN(W)?yc||(yc=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",P)):isFinite(W)||as||(as=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",P))),P=C,W=Et.get(P),W!==void 0||(W=J(P.replace(xc,"-$1").toLowerCase().replace(Tr,"-ms-")),Et.set(P,W)),P=W,typeof k=="number"?k=k===0||lu.has(C)?""+k:k+"px":(A(k,C),k=J((""+k).trim()))}h?(h=!1,o.push(Ar,P,Ec,k)):o.push(pu,P,Ec,k)}}h||o.push(Wr)}function pe(o,u,h){h&&typeof h!="function"&&typeof h!="symbol"&&o.push(_r,u,dl)}function Ie(o,u,h){typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&o.push(_r,u,dn,J(h),Wr)}function tt(o,u){this.push('<input type="hidden"'),rt(o),Ie(this,"name",u),Ie(this,"value",o),this.push(Ao)}function rt(o){if(typeof o!="string")throw Error("File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.")}function Pt(o,u){if(typeof u.$$FORM_ACTION=="function"){var h=o.nextFormID++;o=o.idPrefix+h;try{var C=u.$$FORM_ACTION(o);if(C){var k=C.data;k?.forEach(rt)}return C}catch(P){if(typeof P=="object"&&P!==null&&typeof P.then=="function")throw P;console.error(`Failed to serialize an action for progressive enhancement:
|
|
26
|
-
%s`,P)}}return null}function sr(o,u,h,C,k,P,W,G){var ee=null;if(typeof C=="function"){G===null||fn||(fn=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),k===null&&P===null||Xn||(Xn=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),W===null||Me||(Me=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."));var X=Pt(u,C);X!==null?(G=X.name,C=X.action||"",k=X.encType,P=X.method,W=X.target,ee=X.data):(o.push(_r,"formAction",dn,gu,Wr),W=P=k=C=G=null,_e(u,h))}return G!=null&&Pe(o,"name",G),C!=null&&Pe(o,"formAction",C),k!=null&&Pe(o,"formEncType",k),P!=null&&Pe(o,"formMethod",P),W!=null&&Pe(o,"formTarget",W),ee}function Pe(o,u,h){switch(u){case"className":Ie(o,"class",h);break;case"tabIndex":Ie(o,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Ie(o,u,h);break;case"style":Qe(o,h);break;case"src":case"href":if(h===""){console.error(u==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',u,u);break}case"action":case"formAction":if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean")break;E(h,u),h=$(""+h),o.push(_r,u,dn,J(h),Wr);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":pe(o,u.toLowerCase(),h);break;case"xlinkHref":if(typeof h=="function"||typeof h=="symbol"||typeof h=="boolean")break;E(h,u),h=$(""+h),o.push(_r,"xlink:href",dn,J(h),Wr);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof h!="function"&&typeof h!="symbol"&&o.push(_r,u,dn,J(h),Wr);break;case"inert":h!==""||Dc[u]||(Dc[u]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",u));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"&&o.push(_r,u,dl);break;case"capture":case"download":h===!0?o.push(_r,u,dl):h!==!1&&typeof h!="function"&&typeof h!="symbol"&&o.push(_r,u,dn,J(h),Wr);break;case"cols":case"rows":case"size":case"span":typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h&&o.push(_r,u,dn,J(h),Wr);break;case"rowSpan":case"start":typeof h=="function"||typeof h=="symbol"||isNaN(h)||o.push(_r,u,dn,J(h),Wr);break;case"xlinkActuate":Ie(o,"xlink:actuate",h);break;case"xlinkArcrole":Ie(o,"xlink:arcrole",h);break;case"xlinkRole":Ie(o,"xlink:role",h);break;case"xlinkShow":Ie(o,"xlink:show",h);break;case"xlinkTitle":Ie(o,"xlink:title",h);break;case"xlinkType":Ie(o,"xlink:type",h);break;case"xmlBase":Ie(o,"xml:base",h);break;case"xmlLang":Ie(o,"xml:lang",h);break;case"xmlSpace":Ie(o,"xml:space",h);break;default:if((!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=vc.get(u)||u,S(u))){switch(typeof h){case"function":case"symbol":return;case"boolean":var C=u.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-")return}o.push(_r,u,dn,J(h),Wr)}}}function j(o,u,h){if(u!=null){if(h!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");u=u.__html,u!=null&&(F(u),o.push(""+u))}}function ne(o,u){var h=o[u];h!=null&&(h=Yn(h),o.multiple&&!h?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",u):!o.multiple&&h&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",u))}function Fe(o){var u="";return iu.Children.forEach(o,function(h){h!=null&&(u+=h,Ca||typeof h=="string"||typeof h=="number"||typeof h=="bigint"||(Ca=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),u}function _e(o,u){(o.instructions&16)===ko&&(o.instructions|=16,u.bootstrapChunks.unshift(u.startInlineScript,hl,"<\/script>"))}function De(o,u){o.push(Ce("link"));for(var h in u)if(st.call(u,h)){var C=u[h];if(C!=null)switch(h){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pe(o,h,C)}}return o.push(Ao),null}function Ae(o){return F(o),(""+o).replace(mu,e)}function Oe(o,u,h){o.push(Ce(h));for(var C in u)if(st.call(u,C)){var k=u[C];if(k!=null)switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(h+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pe(o,C,k)}}return o.push(Ao),null}function ze(o,u){o.push(Ce("title"));var h=null,C=null,k;for(k in u)if(st.call(u,k)){var P=u[k];if(P!=null)switch(k){case"children":h=P;break;case"dangerouslySetInnerHTML":C=P;break;default:Pe(o,k,P)}}return o.push(Ot),u=Array.isArray(h)?2>h.length?h[0]:null:h,typeof u!="function"&&typeof u!="symbol"&&u!==null&&u!==void 0&&o.push(J(""+u)),j(o,C,h),o.push(Kt("title")),null}function Ee(o,u){o.push(Ce("script"));var h=null,C=null,k;for(k in u)if(st.call(u,k)){var P=u[k];if(P!=null)switch(k){case"children":h=P;break;case"dangerouslySetInnerHTML":C=P;break;default:Pe(o,k,P)}}return o.push(Ot),h!=null&&typeof h!="string"&&(u=typeof h=="number"?"a number for children":Array.isArray(h)?"an array for children":"something unexpected for children",console.error("A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",u)),j(o,C,h),typeof h=="string"&&o.push(K(h)),o.push(Kt("script")),null}function Be(o,u,h){o.push(Ce(h));var C=h=null,k;for(k in u)if(st.call(u,k)){var P=u[k];if(P!=null)switch(k){case"children":h=P;break;case"dangerouslySetInnerHTML":C=P;break;default:Pe(o,k,P)}}return o.push(Ot),j(o,C,h),h}function ye(o,u,h){o.push(Ce(h));var C=h=null,k;for(k in u)if(st.call(u,k)){var P=u[k];if(P!=null)switch(k){case"children":h=P;break;case"dangerouslySetInnerHTML":C=P;break;default:Pe(o,k,P)}}return o.push(Ot),j(o,C,h),typeof h=="string"?(o.push(J(h)),null):h}function Ce(o){var u=vu.get(o);if(u===void 0){if(!Fa.test(o))throw Error("Invalid tag: "+o);u="<"+o,vu.set(o,u)}return u}function be(o,u,h,C,k,P,W,G,ee,X){B(u,h),u!=="input"&&u!=="textarea"&&u!=="select"||h==null||h.value!==null||lr||(lr=!0,u==="select"&&h.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",u):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",u));e:if(u.indexOf("-")===-1)var fe=!1;else switch(u){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":fe=!1;break e;default:fe=!0}switch(fe||typeof h.is=="string"||Z(u,h),!h.suppressContentEditableWarning&&h.contentEditable&&h.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),G.insertionMode!==cr&&G.insertionMode!==Vn&&u.indexOf("-")===-1&&u.toLowerCase()!==u&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",u),u){case"div":case"span":case"svg":case"path":break;case"a":o.push(Ce("a"));var le=null,he=null,xe;for(xe in h)if(st.call(h,xe)){var oe=h[xe];if(oe!=null)switch(xe){case"children":le=oe;break;case"dangerouslySetInnerHTML":he=oe;break;case"href":oe===""?Ie(o,"href",""):Pe(o,xe,oe);break;default:Pe(o,xe,oe)}}if(o.push(Ot),j(o,he,le),typeof le=="string"){o.push(J(le));var $e=null}else $e=le;return $e;case"g":case"p":case"li":break;case"select":N("select",h),ne(h,"value"),ne(h,"defaultValue"),h.value===void 0||h.defaultValue===void 0||ds||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),ds=!0),o.push(Ce("select"));var qe=null,Le=null,Ue;for(Ue in h)if(st.call(h,Ue)){var dr=h[Ue];if(dr!=null)switch(Ue){case"children":qe=dr;break;case"dangerouslySetInnerHTML":Le=dr;break;case"defaultValue":case"value":break;default:Pe(o,Ue,dr)}}return o.push(Ot),j(o,Le,qe),qe;case"option":var Re=G.selectedValue;o.push(Ce("option"));var et=null,ht=null,Pr=null,rr=null,nr;for(nr in h)if(st.call(h,nr)){var Lt=h[nr];if(Lt!=null)switch(nr){case"children":et=Lt;break;case"selected":Pr=Lt,Ur||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ur=!0);break;case"dangerouslySetInnerHTML":rr=Lt;break;case"value":ht=Lt;default:Pe(o,nr,Lt)}}if(Re!=null){if(ht!==null){E(ht,"value");var On=""+ht}else rr===null||mi||(mi=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),On=Fe(et);if(Yn(Re)){for(var nn=0;nn<Re.length;nn++)if(E(Re[nn],"value"),""+Re[nn]===On){o.push(' selected=""');break}}else E(Re,"select.value"),""+Re===On&&o.push(' selected=""')}else Pr&&o.push(' selected=""');return o.push(Ot),j(o,rr,et),et;case"textarea":N("textarea",h),h.value===void 0||h.defaultValue===void 0||fl||(console.error("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"),fl=!0),o.push(Ce("textarea"));var ot=null,a=null,s=null,p;for(p in h)if(st.call(h,p)){var D=h[p];if(D!=null)switch(p){case"children":s=D;break;case"value":ot=D;break;case"defaultValue":a=D;break;case"dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Pe(o,p,D)}}if(ot===null&&a!==null&&(ot=a),o.push(Ot),s!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),ot!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Yn(s)){if(1<s.length)throw Error("<textarea> can only have at most one child.");F(s[0]),ot=""+s[0]}F(s),ot=""+s}return typeof ot=="string"&&ot[0]===`
|
|
27
|
-
`&&o.push(fs),ot!==null&&(E(ot,"value"),o.push(J(""+ot))),null;case"input":N("input",h),o.push(Ce("input"));var T=null,R=null,M=null,H=null,Q=null,U=null,ie=null,re=null,de=null,ue;for(ue in h)if(st.call(h,ue)){var te=h[ue];if(te!=null)switch(ue){case"children":case"dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"name":T=te;break;case"formAction":R=te;break;case"formEncType":M=te;break;case"formMethod":H=te;break;case"formTarget":Q=te;break;case"defaultChecked":de=te;break;case"defaultValue":ie=te;break;case"checked":re=te;break;case"value":U=te;break;default:Pe(o,ue,te)}}R===null||h.type==="image"||h.type==="submit"||Ea||(Ea=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".'));var Ze=sr(o,C,k,R,M,H,Q,T);return re===null||de===null||Fc||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",h.type),Fc=!0),U===null||ie===null||cs||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",h.type),cs=!0),re!==null?pe(o,"checked",re):de!==null&&pe(o,"checked",de),U!==null?Pe(o,"value",U):ie!==null&&Pe(o,"value",ie),o.push(Ao),Ze?.forEach(tt,o),null;case"button":o.push(Ce("button"));var nt=null,je=null,ke=null,kt=null,it=null,Ge=null,ar=null,br;for(br in h)if(st.call(h,br)){var Rt=h[br];if(Rt!=null)switch(br){case"children":nt=Rt;break;case"dangerouslySetInnerHTML":je=Rt;break;case"name":ke=Rt;break;case"formAction":kt=Rt;break;case"formEncType":it=Rt;break;case"formMethod":Ge=Rt;break;case"formTarget":ar=Rt;break;default:Pe(o,br,Rt)}}kt===null||h.type==null||h.type==="submit"||Ea||(Ea=!0,console.error('A button can only specify a formAction along with type="submit" or no type.'));var Mt=sr(o,C,k,kt,it,Ge,ar,ke);if(o.push(Ot),Mt?.forEach(tt,o),j(o,je,nt),typeof nt=="string"){o.push(J(nt));var pt=null}else pt=nt;return pt;case"form":o.push(Ce("form"));var or=null,ir=null,Ke=null,bt=null,at=null,fr=null,hr;for(hr in h)if(st.call(h,hr)){var zt=h[hr];if(zt!=null)switch(hr){case"children":or=zt;break;case"dangerouslySetInnerHTML":ir=zt;break;case"action":Ke=zt;break;case"encType":bt=zt;break;case"method":at=zt;break;case"target":fr=zt;break;default:Pe(o,hr,zt)}}var gn=null,Or=null;if(typeof Ke=="function"){bt===null&&at===null||Xn||(Xn=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),fr===null||Me||(Me=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."));var mn=Pt(C,Ke);mn!==null?(Ke=mn.action||"",bt=mn.encType,at=mn.method,fr=mn.target,gn=mn.data,Or=mn.name):(o.push(_r,"action",dn,gu,Wr),fr=at=bt=Ke=null,_e(C,k))}if(Ke!=null&&Pe(o,"action",Ke),bt!=null&&Pe(o,"encType",bt),at!=null&&Pe(o,"method",at),fr!=null&&Pe(o,"target",fr),o.push(Ot),Or!==null&&(o.push('<input type="hidden"'),Ie(o,"name",Or),o.push(Ao),gn?.forEach(tt,o)),j(o,ir,or),typeof or=="string"){o.push(J(or));var eo=null}else eo=or;return eo;case"menuitem":o.push(Ce("menuitem"));for(var vn in h)if(st.call(h,vn)){var Aa=h[vn];if(Aa!=null)switch(vn){case"children":case"dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Pe(o,vn,Aa)}}return o.push(Ot),null;case"object":o.push(Ce("object"));var jr=null,to=null,pr;for(pr in h)if(st.call(h,pr)){var Ht=h[pr];if(Ht!=null)switch(pr){case"children":jr=Ht;break;case"dangerouslySetInnerHTML":to=Ht;break;case"data":E(Ht,"data");var wt=$(""+Ht);if(wt===""){console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',pr,pr);break}o.push(_r,"data",dn,J(wt),Wr);break;default:Pe(o,pr,Ht)}}if(o.push(Ot),j(o,to,jr),typeof jr=="string"){o.push(J(jr));var yr=null}else yr=jr;return yr;case"title":var Gr=G.insertionMode,_a=!!(G.tagScope&1);if(st.call(h,"children")){var Yr=h.children,bn=Array.isArray(Yr)?2>Yr.length?Yr[0]:null:Yr;Array.isArray(Yr)&&1<Yr.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",Yr.length):typeof bn=="function"||typeof bn=="symbol"?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof bn=="function"?"a Function":"a Sybmol"):bn&&bn.toString==={}.toString&&(bn.$$typeof!=null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."))}if(Gr===cr||_a||h.itemProp!=null)var Vr=ze(o,h);else X?Vr=null:(ze(k.hoistableChunks,h),Vr=void 0);return Vr;case"link":var Ti=h.rel,Nt=h.href,wr=h.precedence;if(G.insertionMode===cr||G.tagScope&1||h.itemProp!=null||typeof Ti!="string"||typeof Nt!="string"||Nt===""){Ti==="stylesheet"&&typeof h.precedence=="string"&&(typeof Nt=="string"&&Nt||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',Nt===null?"`null`":Nt===void 0?"`undefined`":Nt===""?"an empty string":'something with type "'+typeof Nt+'"')),De(o,h);var Bn=null}else if(h.rel==="stylesheet")if(typeof wr!="string"||h.disabled!=null||h.onLoad||h.onError){if(typeof wr=="string"){if(h.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(h.onLoad||h.onError){var In=h.onLoad&&h.onError?"`onLoad` and `onError` props":h.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',In,In)}}Bn=De(o,h)}else{var yn=k.styles.get(wr),Ra=C.styleResources.hasOwnProperty(Nt)?C.styleResources[Nt]:void 0;if(Ra!==Yt){C.styleResources[Nt]=Yt,yn||(yn={precedence:J(wr),rules:[],hrefs:[],sheets:new Map},k.styles.set(wr,yn));var an={state:Dl,props:At({},h,{"data-precedence":h.precedence,precedence:null})};if(Ra){Ra.length===2&&Gi(an.props,Ra);var $n=k.preloads.stylesheets.get(Nt);$n&&0<$n.length?$n.length=0:an.state=Su}yn.sheets.set(Nt,an),W&&W.stylesheets.add(an)}else if(yn){var ea=yn.sheets.get(Nt);ea&&W&&W.stylesheets.add(ea)}ee&&o.push("<!-- -->"),Bn=null}else h.onLoad||h.onError?Bn=De(o,h):(ee&&o.push("<!-- -->"),Bn=X?null:De(k.hoistableChunks,h));return Bn;case"script":var ta=h.async;if(typeof h.src!="string"||!h.src||!ta||typeof ta=="function"||typeof ta=="symbol"||h.onLoad||h.onError||G.insertionMode===cr||G.tagScope&1||h.itemProp!=null)var ra=Ee(o,h);else{var Xr=h.src;if(h.type==="module")var wn=C.moduleScriptResources,Ai=k.preloads.moduleScripts;else wn=C.scriptResources,Ai=k.preloads.scripts;var on=wn.hasOwnProperty(Xr)?wn[Xr]:void 0;if(on!==Yt){wn[Xr]=Yt;var ro=h;if(on){on.length===2&&(ro=At({},h),Gi(ro,on));var no=Ai.get(Xr);no&&(no.length=0)}var As=[];k.scripts.add(As),Ee(As,ro)}ee&&o.push("<!-- -->"),ra=null}return ra;case"style":var Ln=G.insertionMode,_i=!!(G.tagScope&1);if(st.call(h,"children")){var Br=h.children,xn=Array.isArray(Br)?2>Br.length?Br[0]:null:Br;(typeof xn=="function"||typeof xn=="symbol"||Array.isArray(xn))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof xn=="function"?"a Function":typeof xn=="symbol"?"a Sybmol":"an Array")}var xt=h.precedence,Zt=h.href;if(Ln===cr||_i||h.itemProp!=null||typeof xt!="string"||typeof Zt!="string"||Zt===""){o.push(Ce("style"));var xr=null,_s=null,Dn;for(Dn in h)if(st.call(h,Dn)){var na=h[Dn];if(na!=null)switch(Dn){case"children":xr=na;break;case"dangerouslySetInnerHTML":_s=na;break;default:Pe(o,Dn,na)}}o.push(Ot);var Na=Array.isArray(xr)?2>xr.length?xr[0]:null:xr;typeof Na!="function"&&typeof Na!="symbol"&&Na!==null&&Na!==void 0&&o.push(Ae(Na)),j(o,_s,xr),o.push(Kt("style"));var Nl=null}else{Zt.includes(" ")&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',Zt);var Wt=k.styles.get(xt),Po=C.styleResources.hasOwnProperty(Zt)?C.styleResources[Zt]:void 0;if(Po!==Yt){C.styleResources[Zt]=Yt,Po&&console.error('React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',Zt),Wt?Wt.hrefs.push(J(Zt)):(Wt={precedence:J(xt),rules:[],hrefs:[J(Zt)],sheets:new Map},k.styles.set(xt,Wt));var ao=Wt.rules,Pa=null,Oo=null,oo;for(oo in h)if(st.call(h,oo)){var Ri=h[oo];if(Ri!=null)switch(oo){case"children":Pa=Ri;break;case"dangerouslySetInnerHTML":Oo=Ri}}var Bo=Array.isArray(Pa)?2>Pa.length?Pa[0]:null:Pa;typeof Bo!="function"&&typeof Bo!="symbol"&&Bo!==null&&Bo!==void 0&&ao.push(Ae(Bo)),j(ao,Oo,Pa)}Wt&&W&&W.styles.add(Wt),ee&&o.push("<!-- -->"),Nl=void 0}return Nl;case"meta":if(G.insertionMode===cr||G.tagScope&1||h.itemProp!=null)var Lu=Oe(o,h,"meta");else ee&&o.push("<!-- -->"),Lu=X?null:typeof h.charSet=="string"?Oe(k.charsetChunks,h,"meta"):h.name==="viewport"?Oe(k.viewportChunks,h,"meta"):Oe(k.hoistableChunks,h,"meta");return Lu;case"listing":case"pre":o.push(Ce(u));var Io=null,io=null,Oa;for(Oa in h)if(st.call(h,Oa)){var Mn=h[Oa];if(Mn!=null)switch(Oa){case"children":Io=Mn;break;case"dangerouslySetInnerHTML":io=Mn;break;default:Pe(o,Oa,Mn)}}if(o.push(Ot),io!=null){if(Io!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof io!="object"||!("__html"in io))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var Ba=io.__html;Ba!=null&&(typeof Ba=="string"&&0<Ba.length&&Ba[0]===`
|
|
28
|
-
`?o.push(fs,Ba):(F(Ba),o.push(""+Ba)))}return typeof Io=="string"&&Io[0]===`
|
|
29
|
-
`&&o.push(fs),Io;case"img":var Jt=h.src,Ut=h.srcSet;if(!(h.loading==="lazy"||!Jt&&!Ut||typeof Jt!="string"&&Jt!=null||typeof Ut!="string"&&Ut!=null)&&h.fetchPriority!=="low"&&!(G.tagScope&3)&&(typeof Jt!="string"||Jt[4]!==":"||Jt[0]!=="d"&&Jt[0]!=="D"||Jt[1]!=="a"&&Jt[1]!=="A"||Jt[2]!=="t"&&Jt[2]!=="T"||Jt[3]!=="a"&&Jt[3]!=="A")&&(typeof Ut!="string"||Ut[4]!==":"||Ut[0]!=="d"&&Ut[0]!=="D"||Ut[1]!=="a"&&Ut[1]!=="A"||Ut[2]!=="t"&&Ut[2]!=="T"||Ut[3]!=="a"&&Ut[3]!=="A")){var Mu=typeof h.sizes=="string"?h.sizes:void 0,Lo=Ut?Ut+`
|
|
30
|
-
`+(Mu||""):Jt,zu=k.preloads.images,so=zu.get(Lo);if(so)(h.fetchPriority==="high"||10>k.highImagePreloads.size)&&(zu.delete(Lo),k.highImagePreloads.add(so));else if(!C.imageResources.hasOwnProperty(Lo)){C.imageResources[Lo]=zr;var lo=h.crossOrigin,Pl=typeof lo=="string"?lo==="use-credentials"?lo:"":void 0,uo=k.headers,aa;uo&&0<uo.remainingCapacity&&typeof h.srcSet!="string"&&(h.fetchPriority==="high"||500>uo.highImagePreloads.length)&&(aa=Kr(Jt,"image",{imageSrcSet:h.srcSet,imageSizes:h.sizes,crossOrigin:Pl,integrity:h.integrity,nonce:h.nonce,type:h.type,fetchPriority:h.fetchPriority,referrerPolicy:h.refererPolicy}),0<=(uo.remainingCapacity-=aa.length+2))?(k.resets.image[Lo]=zr,uo.highImagePreloads&&(uo.highImagePreloads+=", "),uo.highImagePreloads+=aa):(so=[],De(so,{rel:"preload",as:"image",href:Ut?void 0:Jt,imageSrcSet:Ut,imageSizes:Mu,crossOrigin:Pl,integrity:h.integrity,type:h.type,fetchPriority:h.fetchPriority,referrerPolicy:h.referrerPolicy}),h.fetchPriority==="high"||10>k.highImagePreloads.size?k.highImagePreloads.add(so):(k.bulkPreloads.add(so),zu.set(Lo,so)))}}return Oe(o,h,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return Oe(o,h,u);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(G.insertionMode<Hr){var Ni=P||k.preamble;if(Ni.headChunks)throw Error("The `<head>` tag may only be rendered once.");Ni.headChunks=[];var Jd=Be(Ni.headChunks,h,"head")}else Jd=ye(o,h,"head");return Jd;case"body":if(G.insertionMode<Hr){var Rs=P||k.preamble;if(Rs.bodyChunks)throw Error("The `<body>` tag may only be rendered once.");Rs.bodyChunks=[];var Hu=Be(Rs.bodyChunks,h,"body")}else Hu=ye(o,h,"body");return Hu;case"html":if(G.insertionMode===pi){var Ns=P||k.preamble;if(Ns.htmlChunks)throw Error("The `<html>` tag may only be rendered once.");Ns.htmlChunks=[Xc];var qd=Be(Ns.htmlChunks,h,"html")}else qd=ye(o,h,"html");return qd;default:if(u.indexOf("-")!==-1){o.push(Ce(u));var Mo=null,Kd=null,Ps;for(Ps in h)if(st.call(h,Ps)){var Zr=h[Ps];if(Zr!=null){var Qd=Ps;switch(Ps){case"children":Mo=Zr;break;case"dangerouslySetInnerHTML":Kd=Zr;break;case"style":Qe(o,Zr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":Qd="class";default:if(S(Ps)&&typeof Zr!="function"&&typeof Zr!="symbol"&&Zr!==!1){if(Zr===!0)Zr="";else if(typeof Zr=="object")continue;o.push(_r,Qd,dn,J(Zr),Wr)}}}}return o.push(Ot),j(o,Kd,Mo),Mo}}return ye(o,h,u)}function Kt(o){var u=Sc.get(o);return u===void 0&&(u="</"+o+">",Sc.set(o,u)),u}function la(o,u){o=o.preamble,o.htmlChunks===null&&u.htmlChunks&&(o.htmlChunks=u.htmlChunks,u.contribution|=1),o.headChunks===null&&u.headChunks&&(o.headChunks=u.headChunks,u.contribution|=4),o.bodyChunks===null&&u.bodyChunks&&(o.bodyChunks=u.bodyChunks,u.contribution|=2)}function Ct(o,u){u=u.bootstrapChunks;for(var h=0;h<u.length-1;h++)o.push(u[h]);return h<u.length?(h=u[h],u.length=0,o.push(h)):!0}function Xl(o,u,h){if(o.push(hn),h===null)throw Error("An ID must have been assigned before we can complete the boundary.");return o.push(u.boundaryPrefix),u=h.toString(16),o.push(u),o.push(rn)}function Fn(o,u){u=u.contribution,u!==Cc&&(o.push(wu),o.push(""+u),o.push(Nc))}function ac(o,u,h,C){switch(h.insertionMode){case pi:case ur:case cl:case Hr:return o.push(Pc),o.push(u.segmentPrefix),u=C.toString(16),o.push(u),o.push(gs);case cr:return o.push(ms),o.push(u.segmentPrefix),u=C.toString(16),o.push(u),o.push(vs);case Vn:return o.push(Oc),o.push(u.segmentPrefix),u=C.toString(16),o.push(u),o.push(_o);case ls:return o.push(Rn),o.push(u.segmentPrefix),u=C.toString(16),o.push(u),o.push(vi);case gi:return o.push(Du),o.push(u.segmentPrefix),u=C.toString(16),o.push(u),o.push(gl);case us:return o.push(ml),o.push(u.segmentPrefix),u=C.toString(16),o.push(u),o.push(Lc);case Da:return o.push(Rd),o.push(u.segmentPrefix),u=C.toString(16),o.push(u),o.push(Nd);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function Ws(o,u){switch(u.insertionMode){case pi:case ur:case cl:case Hr:return o.push(xu);case cr:return o.push(pl);case Vn:return o.push(Bc);case ls:return o.push(Ic);case gi:return o.push(bs);case us:return o.push(vl);case Da:return o.push(Pd);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function gt(o){return JSON.stringify(o).replace(Ud,function(u){switch(u){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function yt(o){return JSON.stringify(o).replace(jd,function(u){switch(u){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Ye(o){var u=o.rules,h=o.hrefs;0<u.length&&h.length===0&&console.error("React expected to have at least one href for an a hoistable style but found none. This is a bug in React.");var C=0;if(h.length){for(this.push(yi),this.push(o.precedence),this.push(Hc);C<h.length-1;C++)this.push(h[C]),this.push(jc);for(this.push(h[C]),this.push(Wc),C=0;C<u.length;C++)this.push(u[C]);wi=this.push(Uc),xl=!0,u.length=0,h.length=0}}function Dd(o){return o.state!==xi?xl=!0:!1}function qr(o,u,h){return xl=!1,wi=!0,u.styles.forEach(Ye,o),u.stylesheets.forEach(Dd),xl&&(h.stylesToHoist=!0),wi}function Fr(o){for(var u=0;u<o.length;u++)this.push(o[u]);o.length=0}function Zl(o){De(Ka,o.props);for(var u=0;u<Ka.length;u++)this.push(Ka[u]);Ka.length=0,o.state=xi}function oc(o){var u=0<o.sheets.size;o.sheets.forEach(Zl,this),o.sheets.clear();var h=o.rules,C=o.hrefs;if(!u||C.length){if(this.push(Gd),this.push(o.precedence),o=0,C.length){for(this.push(Yd);o<C.length-1;o++)this.push(C[o]),this.push(jc);this.push(C[o])}for(this.push(Gc),o=0;o<h.length;o++)this.push(h[o]);this.push(Eu),h.length=0,C.length=0}}function ic(o){if(o.state===Dl){o.state=Su;var u=o.props;for(De(Ka,{rel:"preload",as:"style",href:o.props.href,crossOrigin:u.crossOrigin,fetchPriority:u.fetchPriority,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy}),o=0;o<Ka.length;o++)this.push(Ka[o]);Ka.length=0}}function Cd(o){o.sheets.forEach(ic,this),o.sheets.clear()}function Sn(o,u){o.push(Yc);var h=Yc;u.stylesheets.forEach(function(C){if(C.state!==xi)if(C.state===Cl)o.push(h),C=C.props.href,E(C,"href"),C=yt(""+C),o.push(C),o.push(Qa),h=Vc;else{o.push(h);var k=C.props["data-precedence"],P=C.props,W=$(""+C.props.href);W=yt(W),o.push(W),E(k,"precedence"),k=""+k,o.push(Fu),k=yt(k),o.push(k);for(var G in P)if(st.call(P,G)&&(k=P[G],k!=null))switch(G){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Us(o,G,k)}o.push(Qa),h=Vc,C.state=Cl}}),o.push(Qa)}function Us(o,u,h){var C=u.toLowerCase();switch(typeof h){case"function":case"symbol":return}switch(u){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":C="class",E(h,C),u=""+h;break;case"hidden":if(h===!1)return;u="";break;case"src":case"href":h=$(h),E(h,C),u=""+h;break;default:if(2<u.length&&(u[0]==="o"||u[0]==="O")&&(u[1]==="n"||u[1]==="N")||!S(u))return;E(h,C),u=""+h}o.push(Fu),C=yt(C),o.push(C),o.push(Fu),C=yt(u),o.push(C)}function qo(){return{styles:new Set,stylesheets:new Set}}function sc(o,u,h,C){(o.scriptResources.hasOwnProperty(h)||o.moduleScriptResources.hasOwnProperty(h))&&console.error('Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',h),o.scriptResources[h]=Yt,o.moduleScriptResources[h]=Yt,o=[],De(o,C),u.bootstrapScripts.add(o)}function Gi(o,u){o.crossOrigin==null&&(o.crossOrigin=u[0]),o.integrity==null&&(o.integrity=u[1])}function Kr(o,u,h){o=Qr(o),u=Jl(u,"as"),u="<"+o+'>; rel=preload; as="'+u+'"';for(var C in h)st.call(h,C)&&(o=h[C],typeof o=="string"&&(u+="; "+C.toLowerCase()+'="'+Jl(o,C)+'"'));return u}function Qr(o){return E(o,"href"),(""+o).replace(Vd,Ed)}function Ed(o){switch(o){case"<":return"%3C";case">":return"%3E";case`
|
|
31
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Jl(o,u){return m()&&(console.error("The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",u,b(o)),v(o)),(""+o).replace(Bt,js)}function js(o){switch(o){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
32
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function lc(o){this.styles.add(o)}function uc(o){this.stylesheets.add(o)}function cc(o,u){var h=o.idPrefix,C=[],k=o.bootstrapScriptContent,P=o.bootstrapScripts,W=o.bootstrapModules;if(k!==void 0&&C.push("<script>",K(k),"<\/script>"),h={placeholderPrefix:h+"P:",segmentPrefix:h+"S:",boundaryPrefix:h+"B:",startInlineScript:"<script>",preamble:se(),externalRuntimeScript:null,bootstrapChunks:C,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:void 0,hoistableState:null,stylesToHoist:!1},P!==void 0)for(k=0;k<P.length;k++){var G=P[k],ee,X=void 0,fe=void 0,le={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};typeof G=="string"?le.href=ee=G:(le.href=ee=G.src,le.integrity=fe=typeof G.integrity=="string"?G.integrity:void 0,le.crossOrigin=X=typeof G=="string"||G.crossOrigin==null?void 0:G.crossOrigin==="use-credentials"?"use-credentials":""),sc(o,h,ee,le),C.push('<script src="',J(ee)),typeof fe=="string"&&C.push('" integrity="',J(fe)),typeof X=="string"&&C.push('" crossorigin="',J(X)),C.push('" async=""><\/script>')}if(W!==void 0)for(P=0;P<W.length;P++)k=W[P],X=ee=void 0,fe={rel:"modulepreload",fetchPriority:"low",nonce:void 0},typeof k=="string"?fe.href=G=k:(fe.href=G=k.src,fe.integrity=X=typeof k.integrity=="string"?k.integrity:void 0,fe.crossOrigin=ee=typeof k=="string"||k.crossOrigin==null?void 0:k.crossOrigin==="use-credentials"?"use-credentials":""),sc(o,h,G,fe),C.push('<script type="module" src="',J(G)),typeof X=="string"&&C.push('" integrity="',J(X)),typeof ee=="string"&&C.push('" crossorigin="',J(ee)),C.push('" async=""><\/script>');return{placeholderPrefix:h.placeholderPrefix,segmentPrefix:h.segmentPrefix,boundaryPrefix:h.boundaryPrefix,startInlineScript:h.startInlineScript,preamble:h.preamble,externalRuntimeScript:h.externalRuntimeScript,bootstrapChunks:h.bootstrapChunks,importMapChunks:h.importMapChunks,onHeaders:h.onHeaders,headers:h.headers,resets:h.resets,charsetChunks:h.charsetChunks,viewportChunks:h.viewportChunks,hoistableChunks:h.hoistableChunks,preconnects:h.preconnects,fontPreloads:h.fontPreloads,highImagePreloads:h.highImagePreloads,styles:h.styles,bootstrapScripts:h.bootstrapScripts,scripts:h.scripts,bulkPreloads:h.bulkPreloads,preloads:h.preloads,stylesToHoist:h.stylesToHoist,generateStaticMarkup:u}}function ql(o,u,h,C){return h.generateStaticMarkup?(o.push(J(u)),!1):(u===""?o=C:(C&&o.push("<!-- -->"),o.push(J(u)),o=!0),o)}function Gs(o,u,h,C){u.generateStaticMarkup||h&&C&&o.push("<!-- -->")}function ut(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===Zd?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case Xa:return"Fragment";case wo:return"Profiler";case ol:return"StrictMode";case xo:return"Suspense";case es:return"SuspenseList";case il:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case al:return"Portal";case $i:return(o.displayName||"Context")+".Provider";case Qi:return(o._context.displayName||"Context")+".Consumer";case Za:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case ts:return u=o.displayName||null,u!==null?u:ut(o.type)||"Memo";case Do:u=o._payload,o=o._init;try{return ut(o(u))}catch{}}return null}function Wn(o,u){if(o!==u){o.context._currentValue2=o.parentValue,o=o.parent;var h=u.parent;if(o===null){if(h!==null)throw Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(h===null)throw Error("The stacks must reach the root at the same time. This is a bug in React.");Wn(o,h)}u.context._currentValue2=u.value}}function ua(o){o.context._currentValue2=o.parentValue,o=o.parent,o!==null&&ua(o)}function un(o){var u=o.parent;u!==null&&un(u),o.context._currentValue2=o.value}function Ys(o,u){if(o.context._currentValue2=o.parentValue,o=o.parent,o===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");o.depth===u.depth?Wn(o,u):Ys(o,u)}function dc(o,u){var h=u.parent;if(h===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");o.depth===h.depth?Wn(o,h):dc(o,h),u.context._currentValue2=u.value}function ca(o){var u=Jn;u!==o&&(u===null?un(o):o===null?ua(u):u.depth===o.depth?Wn(u,o):u.depth>o.depth?Ys(u,o):dc(u,o),Jn=o)}function Vs(o){if(o!==null&&typeof o!="function"){var u=String(o);qc.has(u)||(qc.add(u),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",o))}}function vt(o,u){o=(o=o.constructor)&&ut(o)||"ReactClass";var h=o+"."+u;ku[h]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
33
|
-
|
|
34
|
-
Please check the code for the %s component.`,u,o),ku[h]=!0)}function za(o,u,h){var C=o.id;o=o.overflow;var k=32-kl(C)-1;C&=~(1<<k),h+=1;var P=32-kl(u)+k;if(30<P){var W=k-k%5;return P=(C&(1<<W)-1).toString(32),C>>=W,k-=W,{id:1<<32-kl(u)+k|h<<k|C,overflow:P+o}}return{id:1<<P|h<<k|C,overflow:o}}function Kl(o){return o>>>=0,o===0?32:31-(Pu(o)/Kc|0)|0}function Ko(){}function Ql(o,u,h){switch(h=o[h],h===void 0?o.push(u):h!==u&&(u.then(Ko,Ko),u=h),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(Ko,Ko):(o=u,o.status="pending",o.then(function(C){if(u.status==="pending"){var k=u;k.status="fulfilled",k.value=C}},function(C){if(u.status==="pending"){var k=u;k.status="rejected",k.reason=C}})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}throw Di=u,ka}}function Qo(){if(Di===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var o=Di;return Di=null,o}function da(o,u){return o===u&&(o!==0||1/o===1/u)||o!==o&&u!==u}function kn(){if(Nr===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
35
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
36
|
-
2. You might be breaking the Rules of Hooks
|
|
37
|
-
3. You might have more than one copy of React in the same app
|
|
38
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Pn&&console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"),Nr}function Xs(){if(0<Cs)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Yi(){return ct===null?Ro===null?(qn=!1,Ro=ct=Xs()):(qn=!0,ct=Ro):ct.next===null?(qn=!1,ct=ct.next=Xs()):(qn=!0,ct=ct.next),ct}function $o(){var o=No;return No=null,o}function Ha(){Pn=!1,Tl=xs=ws=Nr=null,Ci=!1,Ro=null,Cs=0,ct=Ta=null}function fc(o){return Pn&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),o._currentValue2}function ei(o,u){return typeof u=="function"?u(o):u}function $l(o,u,h){if(o!==ei&&(Ei="useReducer"),Nr=kn(),ct=Yi(),qn){if(h=ct.queue,u=h.dispatch,Ta!==null){var C=Ta.get(h);if(C!==void 0){Ta.delete(h),h=ct.memoizedState;do{var k=C.action;Pn=!0,h=o(h,k),Pn=!1,C=C.next}while(C!==null);return ct.memoizedState=h,[h,u]}}return[ct.memoizedState,u]}return Pn=!0,o=o===ei?typeof u=="function"?u():u:h!==void 0?h(u):u,Pn=!1,ct.memoizedState=o,o=ct.queue={last:null,dispatch:null},o=o.dispatch=eu.bind(null,Nr,o),[ct.memoizedState,o]}function Un(o,u){if(Nr=kn(),ct=Yi(),u=u===void 0?null:u,ct!==null){var h=ct.memoizedState;if(h!==null&&u!==null){e:{var C=h[1];if(C===null)console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ei),C=!1;else{u.length!==C.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
39
|
-
|
|
40
|
-
Previous: %s
|
|
41
|
-
Incoming: %s`,Ei,"["+u.join(", ")+"]","["+C.join(", ")+"]");for(var k=0;k<C.length&&k<u.length;k++)if(!Ou(u[k],C[k])){C=!1;break e}C=!0}}if(C)return h[0]}}return Pn=!0,o=o(),Pn=!1,ct.memoizedState=[o,u],o}function eu(o,u,h){if(25<=Cs)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(o===Nr)if(Ci=!0,o={action:h,next:null},Ta===null&&(Ta=new Map),h=Ta.get(u),h===void 0)Ta.set(u,o);else{for(u=h;u.next!==null;)u=u.next;u.next=o}}function tu(){throw Error("startTransition cannot be called during server rendering.")}function fa(){throw Error("Cannot update optimistic state while rendering.")}function ti(o,u,h){kn();var C=$a++,k=xs;if(typeof o.$$FORM_ACTION=="function"){var P=null,W=Tl;k=k.formState;var G=o.$$IS_SIGNATURE_EQUAL;if(k!==null&&typeof G=="function"){var ee=k[1];G.call(o,k[2],k[3])&&(P=h!==void 0?"p"+h:"k"+g(JSON.stringify([W,null,C]),0),ee===P&&(Nn=C,u=k[0]))}var X=o.bind(null,u);return o=function(le){X(le)},typeof X.$$FORM_ACTION=="function"&&(o.$$FORM_ACTION=function(le){le=X.$$FORM_ACTION(le),h!==void 0&&(E(h,"target"),h+="",le.action=h);var he=le.data;return he&&(P===null&&(P=h!==void 0?"p"+h:"k"+g(JSON.stringify([W,null,C]),0)),he.append("$ACTION_KEY",P)),le}),[u,o,!1]}var fe=o.bind(null,u);return[u,function(le){fe(le)},!1]}function Zs(o){var u=Ds;return Ds+=1,No===null&&(No=[]),Ql(No,o,u)}function ru(){throw Error("Cache cannot be refreshed during server rendering.")}function ho(){}function nu(){}function Vi(){if(Fi===0){Al=console.log,$c=console.info,Si=console.warn,Bu=console.error,ki=console.group,Kn=console.groupCollapsed,Ss=console.groupEnd;var o={configurable:!0,enumerable:!0,value:nu,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}Fi++}function Fd(){if(Fi--,Fi===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:At({},o,{value:Al}),info:At({},o,{value:$c}),warn:At({},o,{value:Si}),error:At({},o,{value:Bu}),group:At({},o,{value:ki}),groupCollapsed:At({},o,{value:Kn}),groupEnd:At({},o,{value:Ss})})}0>Fi&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ha(o){if(Iu===void 0)try{throw Error()}catch(h){var u=h.stack.trim().match(/\n( *(at )?)/);Iu=u&&u[1]||"",Qn=-1<h.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Iu+o+Qn}function Xi(o,u){if(!o||ks)return"";var h=Ts.get(o);if(h!==void 0)return h;ks=!0,h=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var C=null;C=Gt.H,Gt.H=null,Vi();try{var k={DetermineComponentFrameRoot:function(){try{if(u){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(oe){var xe=oe}Reflect.construct(o,[],he)}else{try{he.call()}catch(oe){xe=oe}o.call(he.prototype)}}else{try{throw Error()}catch(oe){xe=oe}(he=o())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(oe){if(oe&&xe&&typeof oe.stack=="string")return[oe.stack,xe.stack]}return[null,null]}};k.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var P=Object.getOwnPropertyDescriptor(k.DetermineComponentFrameRoot,"name");P&&P.configurable&&Object.defineProperty(k.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var W=k.DetermineComponentFrameRoot(),G=W[0],ee=W[1];if(G&&ee){var X=G.split(`
|
|
44
|
-
`),fe=ee.split(`
|
|
45
|
-
`);for(W=P=0;P<X.length&&!X[P].includes("DetermineComponentFrameRoot");)P++;for(;W<fe.length&&!fe[W].includes("DetermineComponentFrameRoot");)W++;if(P===X.length||W===fe.length)for(P=X.length-1,W=fe.length-1;1<=P&&0<=W&&X[P]!==fe[W];)W--;for(;1<=P&&0<=W;P--,W--)if(X[P]!==fe[W]){if(P!==1||W!==1)do if(P--,W--,0>W||X[P]!==fe[W]){var le=`
|
|
46
|
-
`+X[P].replace(" at new "," at ");return o.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",o.displayName)),typeof o=="function"&&Ts.set(o,le),le}while(1<=P&&0<=W);break}}}finally{ks=!1,Gt.H=C,Fd(),Error.prepareStackTrace=h}return X=(X=o?o.displayName||o.name:"")?ha(X):"",typeof o=="function"&&Ts.set(o,X),X}function Js(o){var u=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,o=o.stack,Error.prepareStackTrace=u,o.startsWith(`Error: react-stack-top-frame
|
|
47
|
-
`)&&(o=o.slice(29)),u=o.indexOf(`
|
|
48
|
-
`),u!==-1&&(o=o.slice(u+1)),u=o.indexOf("react_stack_bottom_frame"),u!==-1&&(u=o.lastIndexOf(`
|
|
49
|
-
`,u)),u!==-1)o=o.slice(0,u);else return"";return o}function ri(o){if(typeof o=="string")return ha(o);if(typeof o=="function")return o.prototype&&o.prototype.isReactComponent?Xi(o,!0):Xi(o,!1);if(typeof o=="object"&&o!==null){switch(o.$$typeof){case Za:return Xi(o.render,!1);case ts:return Xi(o.type,!1);case Do:var u=o,h=u._payload;u=u._init;try{o=u(h)}catch{return ha("Lazy")}return ri(o)}if(typeof o.name=="string")return h=o.env,ha(o.name+(h?" ["+h+"]":""))}switch(o){case es:return ha("SuspenseList");case xo:return ha("Suspense")}return""}function Zi(o){if(typeof o=="object"&&o!==null&&typeof o.environmentName=="string"){var u=o.environmentName;o=[o].slice(0),typeof o[0]=="string"?o.splice(0,1,"[%s] "+o[0]," "+u+" "):o.splice(0,0,"[%s] "," "+u+" "),o.unshift(console),u=Xd.apply(console.error,o),u()}else console.error(o);return null}function Qt(){}function pa(o,u,h,C,k,P,W,G,ee,X,fe){var le=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=o,this.renderState=u,this.rootFormatContext=h,this.progressiveChunkSize=C===void 0?12800:C,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=le,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=k===void 0?Zi:k,this.onPostpone=X===void 0?Qt:X,this.onAllReady=P===void 0?Qt:P,this.onShellReady=W===void 0?Qt:W,this.onShellError=G===void 0?Qt:G,this.onFatalError=ee===void 0?Qt:ee,this.formState=fe===void 0?null:fe,this.didWarnForKey=null}function Sd(o,u,h,C,k,P,W,G,ee,X,fe,le){var he=Y();return 1e3<he-_&&(Gt.recentlyCreatedOwnerStacks=0,_=he),u=new pa(u,h,C,k,P,W,G,ee,X,fe,le),h=ai(u,0,null,C,!1,!1),h.parentFlushed=!0,o=ni(u,null,o,-1,null,h,null,null,u.abortableTasks,null,C,null,Nu,null,!1,Zn,null),Wa(o),u.pingedTasks.push(o),u}function ga(o,u){o.pingedTasks.push(u),o.pingedTasks.length===1&&(o.flushScheduled=o.destination!==null,en(o))}function ma(o,u,h,C){return{status:we,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:u,errorDigest:null,contentState:qo(),fallbackState:qo(),contentPreamble:h,fallbackPreamble:C,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null}}function ni(o,u,h,C,k,P,W,G,ee,X,fe,le,he,xe,oe,$e,qe){o.allPendingTasks++,k===null?o.pendingRootTasks++:k.pendingTasks++;var Le={replay:null,node:h,childIndex:C,ping:function(){return ga(o,Le)},blockedBoundary:k,blockedSegment:P,blockedPreamble:W,hoistableState:G,abortSet:ee,keyPath:X,formatContext:fe,context:le,treeContext:he,componentStack:xe,thenableState:u,isFallback:oe};return Le.debugTask=qe,ee.add(Le),Le}function qs(o,u,h,C,k,P,W,G,ee,X,fe,le,he,xe,oe,$e){o.allPendingTasks++,P===null?o.pendingRootTasks++:P.pendingTasks++,h.pendingTasks++;var qe={replay:h,node:C,childIndex:k,ping:function(){return ga(o,qe)},blockedBoundary:P,blockedSegment:null,blockedPreamble:null,hoistableState:W,abortSet:G,keyPath:ee,formatContext:X,context:fe,treeContext:le,componentStack:he,thenableState:u,isFallback:xe};return qe.debugTask=$e,G.add(qe),qe}function ai(o,u,h,C,k,P){return{status:we,parentFlushed:!1,id:-1,index:u,chunks:[],children:[],preambleChildren:[],parentFormatContext:C,boundary:h,lastPushedText:k,textEmbedded:P}}function va(){if(pn===null||pn.componentStack===null)return"";var o=pn.componentStack;try{var u="";if(typeof o.type=="string")u+=ha(o.type);else if(typeof o.type=="function"){if(!o.owner){var h=u,C=o.type,k=C?C.displayName||C.name:"",P=k?ha(k):"";u=h+P}}else o.owner||(u+=ri(o.type));for(;o;)h=null,o.debugStack!=null?h=Js(o.debugStack):(P=o,P.stack!=null&&(h=typeof P.stack!="string"?P.stack=Js(P.stack):P.stack)),(o=o.owner)&&h&&(u+=`
|
|
50
|
-
`+h);var W=u}catch(G){W=`
|
|
51
|
-
Error generating stack: `+G.message+`
|
|
52
|
-
`+G.stack}return W}function Ks(o,u){if(u!=null)for(var h=0;h<u.length;h++){var C=u[h];typeof C.name=="string"&&C.debugStack!==void 0&&(o.componentStack={parent:o.componentStack,type:C,owner:C.owner,stack:C.debugStack},o.debugTask=C.debugTask)}}function Wa(o){var u=o.node;if(typeof u=="object"&&u!==null)switch(u.$$typeof){case yo:var h=u.type,C=u._owner,k=u._debugStack;Ks(o,u._debugInfo),o.debugTask=u._debugTask,o.componentStack={parent:o.componentStack,type:h,owner:C,stack:k};break;case Do:Ks(o,u._debugInfo);break;default:typeof u.then=="function"&&Ks(o,u._debugInfo)}}function ba(o){var u={};return o&&Object.defineProperty(u,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var h="",C=o;do h+=ri(C.type),C=C.parent;while(C);var k=h}catch(P){k=`
|
|
53
|
-
Error generating stack: `+P.message+`
|
|
54
|
-
`+P.stack}return Object.defineProperty(u,"componentStack",{value:k}),k}}),u}function po(o,u,h,C,k){o.errorDigest=u,h instanceof Error?(u=String(h.message),h=String(h.stack)):(u=typeof h=="object"&&h!==null?f(h):String(h),h=null),k=k?`Switched to client rendering because the server rendering aborted due to:
|
|
55
|
-
|
|
56
|
-
`:`Switched to client rendering because the server rendering errored:
|
|
57
|
-
|
|
58
|
-
`,o.errorMessage=k+u,o.errorStack=h!==null?k+h:null,o.errorComponentStack=C.componentStack}function $t(o,u,h,C){if(o=o.onError,u=C?C.run(o.bind(null,u,h)):o(u,h),u!=null&&typeof u!="string")console.error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',typeof u);else return u}function jn(o,u,h,C){h=o.onShellError;var k=o.onFatalError;C?(C.run(h.bind(null,u)),C.run(k.bind(null,u))):(h(u),k(u)),o.destination!==null?(o.status=He,o.destination.destroy(u)):(o.status=13,o.fatalError=u)}function Qs(o,u,h,C,k,P){var W=u.thenableState;for(u.thenableState=null,Nr={},ws=u,xs=o,Tl=h,Pn=!1,$a=vr=0,Nn=-1,Ds=0,No=W,o=Rl(C,k,P);Ci;)Ci=!1,$a=vr=0,Nn=-1,Ds=0,Cs+=1,ct=null,o=C(k,P);return Ha(),o}function Ua(o,u,h,C,k,P,W){var G=!1;if(P!==0&&o.formState!==null){var ee=u.blockedSegment;if(ee!==null){G=!0,ee=ee.chunks;for(var X=0;X<P;X++)X===W?ee.push("<!--F!-->"):ee.push("<!--F-->")}}P=u.keyPath,u.keyPath=h,k?(h=u.treeContext,u.treeContext=za(h,1,0),kr(o,u,C,-1),u.treeContext=h):G?kr(o,u,C,-1):er(o,u,C,-1),u.keyPath=P}function go(o,u,h,C,k,P){if(typeof C=="function")if(C.prototype&&C.prototype.isReactComponent){var W=k;if("ref"in k){W={};for(var G in k)G!=="ref"&&(W[G]=k[G])}var ee=C.defaultProps;if(ee){W===k&&(W=At({},W,k));for(var X in ee)W[X]===void 0&&(W[X]=ee[X])}var fe=W,le=Zn,he=C.contextType;if("contextType"in C&&he!==null&&(he===void 0||he.$$typeof!==$i)&&!Sa.has(C)){Sa.add(C);var xe=he===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof he!="object"?" However, it is set to a "+typeof he+".":he.$$typeof===Qi?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(he).join(", ")+"}.";console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ut(C)||"Component",xe)}typeof he=="object"&&he!==null&&(le=he._currentValue2);var oe=new C(fe,le);if(typeof C.getDerivedStateFromProps=="function"&&(oe.state===null||oe.state===void 0)){var $e=ut(C)||"Component";Au.has($e)||(Au.add($e),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",$e,oe.state===null?"null":"undefined",$e))}if(typeof C.getDerivedStateFromProps=="function"||typeof oe.getSnapshotBeforeUpdate=="function"){var qe=null,Le=null,Ue=null;if(typeof oe.componentWillMount=="function"&&oe.componentWillMount.__suppressDeprecationWarning!==!0?qe="componentWillMount":typeof oe.UNSAFE_componentWillMount=="function"&&(qe="UNSAFE_componentWillMount"),typeof oe.componentWillReceiveProps=="function"&&oe.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Le="componentWillReceiveProps":typeof oe.UNSAFE_componentWillReceiveProps=="function"&&(Le="UNSAFE_componentWillReceiveProps"),typeof oe.componentWillUpdate=="function"&&oe.componentWillUpdate.__suppressDeprecationWarning!==!0?Ue="componentWillUpdate":typeof oe.UNSAFE_componentWillUpdate=="function"&&(Ue="UNSAFE_componentWillUpdate"),qe!==null||Le!==null||Ue!==null){var dr=ut(C)||"Component",Re=typeof C.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";_u.has(dr)||(_u.add(dr),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
59
|
-
|
|
60
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
61
|
-
|
|
62
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
63
|
-
https://react.dev/link/unsafe-component-lifecycles`,dr,Re,qe!==null?`
|
|
64
|
-
`+qe:"",Le!==null?`
|
|
65
|
-
`+Le:"",Ue!==null?`
|
|
66
|
-
`+Ue:""))}}var et=ut(C)||"Component";oe.render||(C.prototype&&typeof C.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",et):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",et)),!oe.getInitialState||oe.getInitialState.isReactClassApproved||oe.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",et),oe.getDefaultProps&&!oe.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",et),oe.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",et),C.childContextTypes&&!Sl.has(C)&&(Sl.add(C),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",et)),C.contextTypes&&!Xt.has(C)&&(Xt.add(C),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",et)),typeof oe.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",et),C.prototype&&C.prototype.isPureReactComponent&&typeof oe.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ut(C)||"A pure component"),typeof oe.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",et),typeof oe.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",et),typeof oe.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",et),typeof oe.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",et);var ht=oe.props!==fe;oe.props!==void 0&&ht&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",et),oe.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",et,et),typeof oe.getSnapshotBeforeUpdate!="function"||typeof oe.componentDidUpdate=="function"||Zc.has(C)||(Zc.add(C),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ut(C))),typeof oe.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",et),typeof oe.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",et),typeof C.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",et);var Pr=oe.state;Pr&&(typeof Pr!="object"||Yn(Pr))&&console.error("%s.state: must be set to an object or null",et),typeof oe.getChildContext=="function"&&typeof C.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",et);var rr=oe.state!==void 0?oe.state:null;oe.updater=Ru,oe.props=fe,oe.state=rr;var nr={queue:[],replace:!1};oe._reactInternals=nr;var Lt=C.contextType;if(oe.context=typeof Lt=="object"&&Lt!==null?Lt._currentValue2:Zn,oe.state===fe){var On=ut(C)||"Component";Jc.has(On)||(Jc.add(On),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",On))}var nn=C.getDerivedStateFromProps;if(typeof nn=="function"){var ot=nn(fe,rr);if(ot===void 0){var a=ut(C)||"Component";Fl.has(a)||(Fl.add(a),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))}var s=ot==null?rr:At({},rr,ot);oe.state=s}if(typeof C.getDerivedStateFromProps!="function"&&typeof oe.getSnapshotBeforeUpdate!="function"&&(typeof oe.UNSAFE_componentWillMount=="function"||typeof oe.componentWillMount=="function")){var p=oe.state;if(typeof oe.componentWillMount=="function"){if(oe.componentWillMount.__suppressDeprecationWarning!==!0){var D=ut(C)||"Unknown";Tu[D]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
67
|
-
|
|
68
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
69
|
-
|
|
70
|
-
Please update the following components: %s`,D),Tu[D]=!0)}oe.componentWillMount()}if(typeof oe.UNSAFE_componentWillMount=="function"&&oe.UNSAFE_componentWillMount(),p!==oe.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ut(C)||"Component"),Ru.enqueueReplaceState(oe,oe.state,null)),nr.queue!==null&&0<nr.queue.length){var T=nr.queue,R=nr.replace;if(nr.queue=null,nr.replace=!1,R&&T.length===1)oe.state=T[0];else{for(var M=R?T[0]:oe.state,H=!0,Q=R?1:0;Q<T.length;Q++){var U=T[Q],ie=typeof U=="function"?U.call(oe,M,fe,void 0):U;ie!=null&&(H?(H=!1,M=At({},M,ie)):At(M,ie))}oe.state=M}}else nr.queue=null}var re=d(oe);if(o.status===12)throw null;oe.props!==fe&&(Je||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ut(C)||"a component"),Je=!0);var de=u.keyPath;u.keyPath=h,er(o,u,re,-1),u.keyPath=de}else{if(C.prototype&&typeof C.prototype.render=="function"){var ue=ut(C)||"Unknown";It[ue]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",ue,ue),It[ue]=!0)}var te=Qs(o,u,h,C,k,void 0);if(o.status===12)throw null;var Ze=vr!==0,nt=$a,je=Nn;if(C.contextTypes){var ke=ut(C)||"Unknown";Ft[ke]||(Ft[ke]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",ke))}if(C&&C.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
71
|
-
%s.childContextTypes = ...`,C.displayName||C.name||"Component"),typeof C.getDerivedStateFromProps=="function"){var kt=ut(C)||"Unknown";Se[kt]||(console.error("%s: Function components do not support getDerivedStateFromProps.",kt),Se[kt]=!0)}if(typeof C.contextType=="object"&&C.contextType!==null){var it=ut(C)||"Unknown";tr[it]||(console.error("%s: Function components do not support contextType.",it),tr[it]=!0)}Ua(o,u,h,te,Ze,nt,je)}else if(typeof C=="string"){var Ge=u.blockedSegment;if(Ge===null){var ar=k.children,br=u.formatContext,Rt=u.keyPath;u.formatContext=ge(br,C,k),u.keyPath=h,kr(o,u,ar,-1),u.formatContext=br,u.keyPath=Rt}else{var Mt=be(Ge.chunks,C,k,o.resumableState,o.renderState,u.blockedPreamble,u.hoistableState,u.formatContext,Ge.lastPushedText,u.isFallback);Ge.lastPushedText=!1;var pt=u.formatContext,or=u.keyPath;if(u.keyPath=h,(u.formatContext=ge(pt,C,k)).insertionMode===cl){var ir=ai(o,0,null,u.formatContext,!1,!1);Ge.preambleChildren.push(ir);var Ke=ni(o,null,Mt,-1,u.blockedBoundary,ir,u.blockedPreamble,u.hoistableState,o.abortableTasks,u.keyPath,u.formatContext,u.context,u.treeContext,u.componentStack,u.isFallback,Zn,u.debugTask);Wa(Ke),o.pingedTasks.push(Ke)}else kr(o,u,Mt,-1);u.formatContext=pt,u.keyPath=or;e:{var bt=Ge.chunks,at=o.resumableState;switch(C){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(pt.insertionMode<=ur){at.hasBody=!0;break e}break;case"html":if(pt.insertionMode===pi){at.hasHtml=!0;break e}break;case"head":if(pt.insertionMode<=ur)break e}bt.push(Kt(C))}Ge.lastPushedText=!1}}else{switch(C){case rs:case ol:case wo:case Xa:var fr=u.keyPath;u.keyPath=h,er(o,u,k.children,-1),u.keyPath=fr;return;case il:if(k.mode!=="hidden"){var hr=u.keyPath;u.keyPath=h,er(o,u,k.children,-1),u.keyPath=hr}return;case es:var zt=u.keyPath;u.keyPath=h,er(o,u,k.children,-1),u.keyPath=zt;return;case ns:case gc:throw Error("ReactDOMServer does not yet support scope components.");case xo:e:if(u.replay!==null){var gn=u.keyPath;u.keyPath=h;var Or=k.children;try{kr(o,u,Or,-1)}finally{u.keyPath=gn}}else{var mn=u.keyPath,eo=u.blockedBoundary,vn=u.blockedPreamble,Aa=u.hoistableState,jr=u.blockedSegment,to=k.fallback,pr=k.children,Ht=new Set,wt=u.formatContext.insertionMode<Hr?ma(o,Ht,se(),se()):ma(o,Ht,null,null);o.trackedPostpones!==null&&(wt.trackedContentKeyPath=h);var yr=ai(o,jr.chunks.length,wt,u.formatContext,!1,!1);jr.children.push(yr),jr.lastPushedText=!1;var Gr=ai(o,0,null,u.formatContext,!1,!1);if(Gr.parentFlushed=!0,o.trackedPostpones!==null){var _a=[h[0],"Suspense Fallback",h[2]],Yr=[_a[1],_a[2],[],null];o.trackedPostpones.workingMap.set(_a,Yr),wt.trackedFallbackNode=Yr,u.blockedSegment=yr,u.blockedPreamble=wt.fallbackPreamble,u.keyPath=_a,yr.status=6;try{kr(o,u,to,-1),Gs(yr.chunks,o.renderState,yr.lastPushedText,yr.textEmbedded),yr.status=ce}catch(Br){throw yr.status=o.status===12?3:4,Br}finally{u.blockedSegment=jr,u.blockedPreamble=vn,u.keyPath=mn}var bn=ni(o,null,pr,-1,wt,Gr,wt.contentPreamble,wt.contentState,u.abortSet,h,u.formatContext,u.context,u.treeContext,u.componentStack,u.isFallback,Zn,u.debugTask);Wa(bn),o.pingedTasks.push(bn)}else{u.blockedBoundary=wt,u.blockedPreamble=wt.contentPreamble,u.hoistableState=wt.contentState,u.blockedSegment=Gr,u.keyPath=h,Gr.status=6;try{if(kr(o,u,pr,-1),Gs(Gr.chunks,o.renderState,Gr.lastPushedText,Gr.textEmbedded),Gr.status=ce,vo(wt,Gr),wt.pendingTasks===0&&wt.status===we){wt.status=ce,o.pendingRootTasks===0&&u.blockedPreamble&&li(o);break e}}catch(Br){if(wt.status=ae,o.status===12){Gr.status=3;var Vr=o.fatalError}else Gr.status=4,Vr=Br;var Ti=ba(u.componentStack),Nt=$t(o,Vr,Ti,u.debugTask);po(wt,Nt,Vr,Ti,!1),Ya(o,wt)}finally{u.blockedBoundary=eo,u.blockedPreamble=vn,u.hoistableState=Aa,u.blockedSegment=jr,u.keyPath=mn}var wr=ni(o,null,to,-1,eo,yr,wt.fallbackPreamble,wt.fallbackState,Ht,[h[0],"Suspense Fallback",h[2]],u.formatContext,u.context,u.treeContext,u.componentStack,!0,Zn,u.debugTask);Wa(wr),o.pingedTasks.push(wr)}}return}if(typeof C=="object"&&C!==null)switch(C.$$typeof){case Za:if("ref"in k){var Bn={};for(var In in k)In!=="ref"&&(Bn[In]=k[In])}else Bn=k;var yn=Qs(o,u,h,C.render,Bn,P);Ua(o,u,h,yn,vr!==0,$a,Nn);return;case ts:go(o,u,h,C.type,k,P);return;case pc:case $i:var Ra=k.value,an=k.children,$n=u.context,ea=u.keyPath,ta=C._currentValue2;C._currentValue2=Ra,C._currentRenderer2!==void 0&&C._currentRenderer2!==null&&C._currentRenderer2!==El&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),C._currentRenderer2=El;var ra=Jn,Xr={parent:ra,depth:ra===null?0:ra.depth+1,context:C,parentValue:ta,value:Ra};Jn=Xr,u.context=Xr,u.keyPath=h,er(o,u,an,-1);var wn=Jn;if(wn===null)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");wn.context!==C&&console.error("The parent context is not the expected context. This is probably a bug in React."),wn.context._currentValue2=wn.parentValue,C._currentRenderer2!==void 0&&C._currentRenderer2!==null&&C._currentRenderer2!==El&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),C._currentRenderer2=El;var Ai=Jn=wn.parent;u.context=Ai,u.keyPath=ea,$n!==u.context&&console.error("Popping the context provider did not return back to the original snapshot. This is a bug in React.");return;case Qi:var on=C._context,ro=k.children;typeof ro!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var no=ro(on._currentValue2),As=u.keyPath;u.keyPath=h,er(o,u,no,-1),u.keyPath=As;return;case Do:var Ln=x(C);if(o.status===12)throw null;go(o,u,h,Ln,k,P);return}var _i="";throw(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(_i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+((C==null?C:typeof C)+"."+_i))}}function oi(o,u,h,C,k){var P=u.replay,W=u.blockedBoundary,G=ai(o,0,null,u.formatContext,!1,!1);G.id=h,G.parentFlushed=!0;try{u.replay=null,u.blockedSegment=G,kr(o,u,C,k),G.status=ce,W===null?o.completedRootSegment=G:(vo(W,G),W.parentFlushed&&o.partialBoundaries.push(W))}finally{u.replay=P,u.blockedSegment=null}}function ja(o,u,h,C,k,P,W,G,ee,X){P=X.nodes;for(var fe=0;fe<P.length;fe++){var le=P[fe];if(k===le[1]){if(le.length===4){if(C!==null&&C!==le[0])throw Error("Expected the resume to render <"+le[0]+"> in this slot but instead it rendered <"+C+">. The tree doesn't match so React will fallback to client rendering.");var he=le[2];le=le[3],C=u.node,u.replay={nodes:he,slots:le,pendingTasks:1};try{if(go(o,u,h,W,G,ee),u.replay.pendingTasks===1&&0<u.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");u.replay.pendingTasks--}catch(Re){if(typeof Re=="object"&&Re!==null&&(Re===ka||typeof Re.then=="function"))throw u.node===C&&(u.replay=X),Re;u.replay.pendingTasks--,W=ba(u.componentStack),G=o,o=u.blockedBoundary,h=Re,ee=le,le=$t(G,h,W,u.debugTask),ii(G,o,he,ee,h,le,W,!1)}u.replay=X}else{if(W!==xo)throw Error("Expected the resume to render <Suspense> in this slot but instead it rendered <"+(ut(W)||"Unknown")+">. The tree doesn't match so React will fallback to client rendering.");e:{X=void 0,W=le[5],ee=le[2],C=le[3],k=le[4]===null?[]:le[4][2],le=le[4]===null?null:le[4][3];var xe=u.keyPath,oe=u.replay,$e=u.blockedBoundary,qe=u.hoistableState,Le=G.children,Ue=G.fallback,dr=new Set;G=u.formatContext.insertionMode<Hr?ma(o,dr,se(),se()):ma(o,dr,null,null),G.parentFlushed=!0,G.rootSegmentID=W,u.blockedBoundary=G,u.hoistableState=G.contentState,u.keyPath=h,u.replay={nodes:ee,slots:C,pendingTasks:1};try{if(kr(o,u,Le,-1),u.replay.pendingTasks===1&&0<u.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");if(u.replay.pendingTasks--,G.pendingTasks===0&&G.status===we){G.status=ce,o.completedBoundaries.push(G);break e}}catch(Re){G.status=ae,he=ba(u.componentStack),X=$t(o,Re,he,u.debugTask),po(G,X,Re,he,!1),u.replay.pendingTasks--,o.clientRenderedBoundaries.push(G)}finally{u.blockedBoundary=$e,u.hoistableState=qe,u.replay=oe,u.keyPath=xe}G=qs(o,null,{nodes:k,slots:le,pendingTasks:0},Ue,-1,$e,G.fallbackState,dr,[h[0],"Suspense Fallback",h[2]],u.formatContext,u.context,u.treeContext,u.componentStack,!0,Zn,u.debugTask),Wa(G),o.pingedTasks.push(G)}}P.splice(fe,1);break}}}function er(o,u,h,C){u.replay!==null&&typeof u.replay.slots=="number"?oi(o,u,u.replay.slots,h,C):(u.node=h,u.childIndex=C,h=u.componentStack,C=u.debugTask,Wa(u),Ga(o,u),u.componentStack=h,u.debugTask=C)}function Ga(o,u){var h=u.node,C=u.childIndex;if(h!==null){if(typeof h=="object"){switch(h.$$typeof){case yo:var k=h.type,P=h.key;h=h.props;var W=h.ref;W=W!==void 0?W:null;var G=u.debugTask,ee=ut(k);P=P??(C===-1?0:C);var X=[u.keyPath,ee,P];u.replay!==null?G?G.run(ja.bind(null,o,u,X,ee,P,C,k,h,W,u.replay)):ja(o,u,X,ee,P,C,k,h,W,u.replay):G?G.run(go.bind(null,o,u,X,k,h,W)):go(o,u,X,k,h,W);return;case al:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Do:if(h=x(h),o.status===12)throw null;er(o,u,h,C);return}if(Yn(h)){Sr(o,u,h,C);return}if(h===null||typeof h!="object"?P=null:(k=Co&&h[Co]||h["@@iterator"],P=typeof k=="function"?k:null),P&&(k=P.call(h))){if(k===h?(C!==-1||u.componentStack===null||typeof u.componentStack.type!="function"||Object.prototype.toString.call(u.componentStack.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(k)!=="[object Generator]")&&(_t||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),_t=!0):h.entries!==P||St||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),St=!0),h=k.next(),!h.done){P=[];do P.push(h.value),h=k.next();while(!h.done);Sr(o,u,P,C)}return}if(typeof h.then=="function")return u.thenableState=null,er(o,u,Zs(h),C);if(h.$$typeof===$i)return er(o,u,h._currentValue2,C);throw o=Object.prototype.toString.call(h),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}typeof h=="string"?(u=u.blockedSegment,u!==null&&(u.lastPushedText=ql(u.chunks,h,o.renderState,u.lastPushedText))):typeof h=="number"||typeof h=="bigint"?(u=u.blockedSegment,u!==null&&(u.lastPushedText=ql(u.chunks,""+h,o.renderState,u.lastPushedText))):(typeof h=="function"&&(o=h.displayName||h.name||"Component",console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",o,o)),typeof h=="symbol"&&console.error(`Symbols are not valid as a React child.
|
|
72
|
-
%s`,String(h)))}}function Sr(o,u,h,C){var k=u.keyPath,P=u.componentStack,W=u.debugTask;if(Ks(u,u.node._debugInfo),C!==-1&&(u.keyPath=[u.keyPath,"Fragment",C],u.replay!==null)){for(var G=u.replay,ee=G.nodes,X=0;X<ee.length;X++){var fe=ee[X];if(fe[1]===C){C=fe[2],fe=fe[3],u.replay={nodes:C,slots:fe,pendingTasks:1};try{if(Sr(o,u,h,-1),u.replay.pendingTasks===1&&0<u.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");u.replay.pendingTasks--}catch(Le){if(typeof Le=="object"&&Le!==null&&(Le===ka||typeof Le.then=="function"))throw Le;u.replay.pendingTasks--;var le=ba(u.componentStack);h=u.blockedBoundary;var he=Le,xe=fe;fe=$t(o,he,le,u.debugTask),ii(o,h,C,xe,he,fe,le,!1)}u.replay=G,ee.splice(X,1);break}}u.keyPath=k,u.componentStack=P,u.debugTask=W;return}if(G=u.treeContext,ee=h.length,u.replay!==null&&(X=u.replay.slots,X!==null&&typeof X=="object")){for(C=0;C<ee;C++)fe=h[C],u.treeContext=za(G,ee,C),he=X[C],typeof he=="number"?(oi(o,u,he,fe,C),delete X[C]):kr(o,u,fe,C);u.treeContext=G,u.keyPath=k,u.componentStack=P,u.debugTask=W;return}for(X=0;X<ee;X++){if(C=h[X],xe=o,fe=u,he=C,he!==null&&typeof he=="object"&&(he.$$typeof===yo||he.$$typeof===al)&&he._store&&(!he._store.validated&&he.key==null||he._store.validated===2)){if(typeof he._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");if(he._store.validated=1,le=xe.didWarnForKey,le==null&&(le=xe.didWarnForKey=new WeakSet),xe=fe.componentStack,xe!==null&&!le.has(xe)){le.add(xe);var oe=ut(he.type);le=he._owner;var $e=xe.owner;if(xe="",$e&&typeof $e.type<"u"){var qe=ut($e.type);qe&&(xe=`
|
|
73
|
-
|
|
74
|
-
Check the render method of \``+qe+"`.")}xe||oe&&(xe=`
|
|
75
|
-
|
|
76
|
-
Check the top-level render call using <`+oe+">."),oe="",le!=null&&$e!==le&&($e=null,typeof le.type<"u"?$e=ut(le.type):typeof le.name=="string"&&($e=le.name),$e&&(oe=" It was passed a child from "+$e+".")),le=fe.componentStack,fe.componentStack={parent:fe.componentStack,type:he.type,owner:he._owner,stack:he._debugStack},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',xe,oe),fe.componentStack=le}}u.treeContext=za(G,ee,X),kr(o,u,C,X)}u.treeContext=G,u.keyPath=k,u.componentStack=P,u.debugTask=W}function Ya(o,u){o=o.trackedPostpones,o!==null&&(u=u.trackedContentKeyPath,u!==null&&(u=o.workingMap.get(u),u!==void 0&&(u.length=4,u[2]=[],u[3]=null)))}function mo(o,u,h){return qs(o,h,u.replay,u.node,u.childIndex,u.blockedBoundary,u.hoistableState,u.abortSet,u.keyPath,u.formatContext,u.context,u.treeContext,u.componentStack,u.isFallback,Zn,u.debugTask)}function au(o,u,h){var C=u.blockedSegment,k=ai(o,C.chunks.length,null,u.formatContext,C.lastPushedText,!0);return C.children.push(k),C.lastPushedText=!1,ni(o,h,u.node,u.childIndex,u.blockedBoundary,k,u.blockedPreamble,u.hoistableState,u.abortSet,u.keyPath,u.formatContext,u.context,u.treeContext,u.componentStack,u.isFallback,Zn,u.debugTask)}function kr(o,u,h,C){var k=u.formatContext,P=u.context,W=u.keyPath,G=u.treeContext,ee=u.componentStack,X=u.debugTask,fe=u.blockedSegment;if(fe===null)try{return er(o,u,h,C)}catch(xe){if(Ha(),h=xe===ka?Qo():xe,typeof h=="object"&&h!==null){if(typeof h.then=="function"){C=$o(),o=mo(o,u,C).ping,h.then(o,o),u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,u.componentStack=ee,u.debugTask=X,ca(P);return}if(h.message==="Maximum call stack size exceeded"){h=$o(),h=mo(o,u,h),o.pingedTasks.push(h),u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,u.componentStack=ee,u.debugTask=X,ca(P);return}}}else{var le=fe.children.length,he=fe.chunks.length;try{return er(o,u,h,C)}catch(xe){if(Ha(),fe.children.length=le,fe.chunks.length=he,h=xe===ka?Qo():xe,typeof h=="object"&&h!==null){if(typeof h.then=="function"){C=$o(),o=au(o,u,C).ping,h.then(o,o),u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,u.componentStack=ee,u.debugTask=X,ca(P);return}if(h.message==="Maximum call stack size exceeded"){h=$o(),h=au(o,u,h),o.pingedTasks.push(h),u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,u.componentStack=ee,u.debugTask=X,ca(P);return}}}}throw u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,ca(P),h}function ou(o){var u=o.blockedBoundary;o=o.blockedSegment,o!==null&&(o.status=3,$s(this,u,o))}function ii(o,u,h,C,k,P,W,G){for(var ee=0;ee<h.length;ee++){var X=h[ee];if(X.length===4)ii(o,u,X[2],X[3],k,P,W,G);else{var fe=o;X=X[5];var le=k,he=P,xe=W,oe=G,$e=ma(fe,new Set,null,null);$e.parentFlushed=!0,$e.rootSegmentID=X,$e.status=ae,po($e,he,le,xe,oe),$e.parentFlushed&&fe.clientRenderedBoundaries.push($e)}}if(h.length=0,C!==null){if(u===null)throw Error("We should not have any resumable nodes in the shell. This is a bug in React.");if(u.status!==ae&&(u.status=ae,po(u,P,k,W,G),u.parentFlushed&&o.clientRenderedBoundaries.push(u)),typeof C=="object")for(var qe in C)delete C[qe]}}function $r(o,u,h){var C=o.blockedBoundary,k=o.blockedSegment;if(k!==null){if(k.status===6)return;k.status=3}if(k=ba(o.componentStack),C===null){if(u.status!==13&&u.status!==He){if(C=o.replay,C===null){$t(u,h,k,null),jn(u,h,k,null);return}C.pendingTasks--,C.pendingTasks===0&&0<C.nodes.length&&(o=$t(u,h,k,null),ii(u,null,C.nodes,C.slots,h,o,k,!0)),u.pendingRootTasks--,u.pendingRootTasks===0&&Ji(u)}}else C.pendingTasks--,C.status!==ae&&(C.status=ae,o=$t(u,h,k,null),C.status=ae,po(C,o,h,k,!0),Ya(u,C),C.parentFlushed&&u.clientRenderedBoundaries.push(C)),C.fallbackAbortableTasks.forEach(function(P){return $r(P,u,h)}),C.fallbackAbortableTasks.clear();u.allPendingTasks--,u.allPendingTasks===0&&si(u)}function Gn(o,u){try{var h=o.renderState,C=h.onHeaders;if(C){var k=h.headers;if(k){h.headers=null;var P=k.preconnects;if(k.fontPreloads&&(P&&(P+=", "),P+=k.fontPreloads),k.highImagePreloads&&(P&&(P+=", "),P+=k.highImagePreloads),!u){var W=h.styles.values(),G=W.next();e:for(;0<k.remainingCapacity&&!G.done;G=W.next())for(var ee=G.value.sheets.values(),X=ee.next();0<k.remainingCapacity&&!X.done;X=ee.next()){var fe=X.value,le=fe.props,he=le.href,xe=fe.props,oe=Kr(xe.href,"style",{crossOrigin:xe.crossOrigin,integrity:xe.integrity,nonce:xe.nonce,type:xe.type,fetchPriority:xe.fetchPriority,referrerPolicy:xe.referrerPolicy,media:xe.media});if(0<=(k.remainingCapacity-=oe.length+2))h.resets.style[he]=zr,P&&(P+=", "),P+=oe,h.resets.style[he]=typeof le.crossOrigin=="string"||typeof le.integrity=="string"?[le.crossOrigin,le.integrity]:zr;else break e}}C(P?{Link:P}:{})}}}catch($e){$t(o,$e,{},null)}}function Ji(o){o.trackedPostpones===null&&Gn(o,!0),o.trackedPostpones===null&&li(o),o.onShellError=Qt,o=o.onShellReady,o()}function si(o){Gn(o,o.trackedPostpones===null?!0:o.completedRootSegment===null||o.completedRootSegment.status!==We),li(o),o=o.onAllReady,o()}function vo(o,u){if(u.chunks.length===0&&u.children.length===1&&u.children[0].boundary===null&&u.children[0].id===-1){var h=u.children[0];h.id=u.id,h.parentFlushed=!0,h.status===ce&&vo(o,h)}else o.completedSegments.push(u)}function $s(o,u,h){if(u===null){if(h!==null&&h.parentFlushed){if(o.completedRootSegment!==null)throw Error("There can only be one root segment. This is a bug in React.");o.completedRootSegment=h}o.pendingRootTasks--,o.pendingRootTasks===0&&Ji(o)}else u.pendingTasks--,u.status!==ae&&(u.pendingTasks===0?(u.status===we&&(u.status=ce),h!==null&&h.parentFlushed&&h.status===ce&&vo(u,h),u.parentFlushed&&o.completedBoundaries.push(u),u.status===ce&&(u.fallbackAbortableTasks.forEach(ou,o),u.fallbackAbortableTasks.clear(),o.pendingRootTasks===0&&o.trackedPostpones===null&&u.contentPreamble!==null&&li(o))):h!==null&&h.parentFlushed&&h.status===ce&&(vo(u,h),u.completedSegments.length===1&&u.parentFlushed&&o.partialBoundaries.push(u)));o.allPendingTasks--,o.allPendingTasks===0&&si(o)}function en(o){if(o.status!==He&&o.status!==13){var u=Jn,h=Gt.H;Gt.H=Es;var C=Gt.A;Gt.A=Qc;var k=Ne;Ne=o;var P=Gt.getCurrentStack;Gt.getCurrentStack=va;var W=Fs;Fs=o.resumableState;try{var G=o.pingedTasks,ee;for(ee=0;ee<G.length;ee++){var X=o,fe=G[ee],le=fe.blockedSegment;if(le===null){var he=void 0,xe=X;if(X=fe,X.replay.pendingTasks!==0){ca(X.context),he=pn,pn=X;try{if(typeof X.replay.slots=="number"?oi(xe,X,X.replay.slots,X.node,X.childIndex):Ga(xe,X),X.replay.pendingTasks===1&&0<X.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");X.replay.pendingTasks--,X.abortSet.delete(X),$s(xe,X.blockedBoundary,null)}catch(s){Ha();var oe=s===ka?Qo():s;if(typeof oe=="object"&&oe!==null&&typeof oe.then=="function"){var $e=X.ping;oe.then($e,$e),X.thenableState=$o()}else{X.replay.pendingTasks--,X.abortSet.delete(X);var qe=ba(X.componentStack),Le=void 0,Ue=xe,dr=X.blockedBoundary,Re=xe.status===12?xe.fatalError:oe,et=qe,ht=X.replay.nodes,Pr=X.replay.slots;Le=$t(Ue,Re,et,X.debugTask),ii(Ue,dr,ht,Pr,Re,Le,et,!1),xe.pendingRootTasks--,xe.pendingRootTasks===0&&Ji(xe),xe.allPendingTasks--,xe.allPendingTasks===0&&si(xe)}}finally{pn=he}}}else if(xe=he=void 0,Le=fe,Ue=le,Ue.status===we){Ue.status=6,ca(Le.context),xe=pn,pn=Le;var rr=Ue.children.length,nr=Ue.chunks.length;try{Ga(X,Le),Gs(Ue.chunks,X.renderState,Ue.lastPushedText,Ue.textEmbedded),Le.abortSet.delete(Le),Ue.status=ce,$s(X,Le.blockedBoundary,Ue)}catch(s){Ha(),Ue.children.length=rr,Ue.chunks.length=nr;var Lt=s===ka?Qo():X.status===12?X.fatalError:s;if(typeof Lt=="object"&&Lt!==null&&typeof Lt.then=="function"){Ue.status=we,Le.thenableState=$o();var On=Le.ping;Lt.then(On,On)}else{var nn=ba(Le.componentStack);Le.abortSet.delete(Le),Ue.status=4;var ot=Le.blockedBoundary,a=Le.debugTask;he=$t(X,Lt,nn,a),ot===null?jn(X,Lt,nn,a):(ot.pendingTasks--,ot.status!==ae&&(ot.status=ae,po(ot,he,Lt,nn,!1),Ya(X,ot),ot.parentFlushed&&X.clientRenderedBoundaries.push(ot),X.pendingRootTasks===0&&X.trackedPostpones===null&&ot.contentPreamble!==null&&li(X))),X.allPendingTasks--,X.allPendingTasks===0&&si(X)}}finally{pn=xe}}}G.splice(0,ee),o.destination!==null&&bo(o,o.destination)}catch(s){G={},$t(o,s,G,null),jn(o,s,G,null)}finally{Fs=W,Gt.H=h,Gt.A=C,Gt.getCurrentStack=P,h===Es&&ca(u),Ne=k}}}function el(o,u,h){u.preambleChildren.length&&h.push(u.preambleChildren);for(var C=!1,k=0;k<u.children.length;k++)C=tn(o,u.children[k],h)||C;return C}function tn(o,u,h){var C=u.boundary;if(C===null)return el(o,u,h);var k=C.contentPreamble,P=C.fallbackPreamble;if(k===null||P===null)return!1;switch(C.status){case ce:if(la(o.renderState,k),u=C.completedSegments[0],!u)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return el(o,u,h);case We:if(o.trackedPostpones!==null)return!0;case ae:if(u.status===ce)return la(o.renderState,P),el(o,u,h);default:return!0}}function li(o){if(o.completedRootSegment&&o.completedPreambleSegments===null){var u=[],h=tn(o,o.completedRootSegment,u),C=o.renderState.preamble;(h===!1||C.headChunks&&C.bodyChunks)&&(o.completedPreambleSegments=u)}}function ya(o,u,h,C){switch(h.parentFlushed=!0,h.status){case we:h.id=o.nextSegmentId++;case We:return C=h.id,h.lastPushedText=!1,h.textEmbedded=!1,o=o.renderState,u.push(kc),u.push(o.placeholderPrefix),o=C.toString(16),u.push(o),u.push(_d);case ce:h.status=Xe;var k=!0,P=h.chunks,W=0;h=h.children;for(var G=0;G<h.length;G++){for(k=h[G];W<k.index;W++)u.push(P[W]);k=cn(o,u,k,C)}for(;W<P.length-1;W++)u.push(P[W]);return W<P.length&&(k=u.push(P[W])),k;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function cn(o,u,h,C){var k=h.boundary;if(k===null)return ya(o,u,h,C);if(k.parentFlushed=!0,k.status===ae){if(!o.renderState.generateStaticMarkup){var P=k.errorDigest,W=k.errorMessage,G=k.errorStack,ee=k.errorComponentStack;u.push(bu),u.push(Tc),P&&(u.push(ps),P=J(P),u.push(P),u.push(Vt)),W&&(u.push(Ac),W=J(W),u.push(W),u.push(Vt)),G&&(u.push(_c),G=J(G),u.push(G),u.push(Vt)),ee&&(u.push(Rc),ee=J(ee),u.push(ee),u.push(Vt)),u.push(yu)}return ya(o,u,h,C),o.renderState.generateStaticMarkup?u=!0:((o=k.fallbackPreamble)&&Fn(u,o),u=u.push(hs)),u}if(k.status!==ce)return k.status===we&&(k.rootSegmentID=o.nextSegmentId++),0<k.completedSegments.length&&o.partialBoundaries.push(k),Xl(u,o.renderState,k.rootSegmentID),C&&(k=k.fallbackState,k.styles.forEach(lc,C),k.stylesheets.forEach(uc,C)),ya(o,u,h,C),u.push(hs);if(k.byteSize>o.progressiveChunkSize)return k.rootSegmentID=o.nextSegmentId++,o.completedBoundaries.push(k),Xl(u,o.renderState,k.rootSegmentID),ya(o,u,h,C),u.push(hs);if(C&&(h=k.contentState,h.styles.forEach(lc,C),h.stylesheets.forEach(uc,C)),o.renderState.generateStaticMarkup||u.push(Rr),h=k.completedSegments,h.length!==1)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return cn(o,u,h[0],C),o.renderState.generateStaticMarkup?u=!0:((o=k.contentPreamble)&&Fn(u,o),u=u.push(hs)),u}function Va(o,u,h,C){return ac(u,o.renderState,h.parentFormatContext,h.id),cn(o,u,h,C),Ws(u,h.parentFormatContext)}function ui(o,u,h){for(var C=h.completedSegments,k=0;k<C.length;k++)tl(o,u,h,C[k]);C.length=0,qr(u,h.contentState,o.renderState),C=o.resumableState,o=o.renderState,k=h.rootSegmentID,h=h.contentState;var P=o.stylesToHoist;return o.stylesToHoist=!1,u.push(o.startInlineScript),P?(C.instructions&is)===ko?(C.instructions=C.instructions|ss|is,u.push(Ld)):(C.instructions&ss)===ko?(C.instructions|=ss,u.push(Ve)):u.push(zc):(C.instructions&is)===ko?(C.instructions|=is,u.push(Bd)):u.push(Id),C=k.toString(16),u.push(o.boundaryPrefix),u.push(C),u.push(ys),u.push(o.segmentPrefix),u.push(C),P?(u.push(Cu),Sn(u,h)):u.push(bi),h=u.push(Md),Ct(u,o)&&h}function tl(o,u,h,C){if(C.status===Xe)return!0;var k=h.contentState,P=C.id;if(P===-1){if((C.id=h.rootSegmentID)===-1)throw Error("A root segment ID must have been assigned by now. This is a bug in React.");return Va(o,u,C,k)}return P===h.rootSegmentID?Va(o,u,C,k):(Va(o,u,C,k),h=o.resumableState,o=o.renderState,u.push(o.startInlineScript),(h.instructions&hu)===ko?(h.instructions|=hu,u.push(bl)):u.push(Od),u.push(o.segmentPrefix),P=P.toString(16),u.push(P),u.push(yl),u.push(o.placeholderPrefix),u.push(P),u=u.push(Mc),u)}function bo(o,u){try{if(!(0<o.pendingRootTasks)){var h,C=o.completedRootSegment;if(C!==null){if(C.status===We)return;var k=o.completedPreambleSegments;if(k===null)return;var P=o.renderState,W=P.preamble,G=W.htmlChunks,ee=W.headChunks,X;if(G){for(X=0;X<G.length;X++)u.push(G[X]);if(ee)for(X=0;X<ee.length;X++)u.push(ee[X]);else{var fe=Ce("head");u.push(fe),u.push(Ot)}}else if(ee)for(X=0;X<ee.length;X++)u.push(ee[X]);var le=P.charsetChunks;for(X=0;X<le.length;X++)u.push(le[X]);le.length=0,P.preconnects.forEach(Fr,u),P.preconnects.clear();var he=P.viewportChunks;for(X=0;X<he.length;X++)u.push(he[X]);he.length=0,P.fontPreloads.forEach(Fr,u),P.fontPreloads.clear(),P.highImagePreloads.forEach(Fr,u),P.highImagePreloads.clear(),P.styles.forEach(oc,u);var xe=P.importMapChunks;for(X=0;X<xe.length;X++)u.push(xe[X]);xe.length=0,P.bootstrapScripts.forEach(Fr,u),P.scripts.forEach(Fr,u),P.scripts.clear(),P.bulkPreloads.forEach(Fr,u),P.bulkPreloads.clear();var oe=P.hoistableChunks;for(X=0;X<oe.length;X++)u.push(oe[X]);for(P=oe.length=0;P<k.length;P++){var $e=k[P];for(W=0;W<$e.length;W++)cn(o,u,$e[W],null)}var qe=o.renderState.preamble,Le=qe.headChunks;if(qe.htmlChunks||Le){var Ue=Kt("head");u.push(Ue)}var dr=qe.bodyChunks;if(dr)for(k=0;k<dr.length;k++)u.push(dr[k]);cn(o,u,C,null),o.completedRootSegment=null,Ct(u,o.renderState)}var Re=o.renderState;C=0;var et=Re.viewportChunks;for(C=0;C<et.length;C++)u.push(et[C]);et.length=0,Re.preconnects.forEach(Fr,u),Re.preconnects.clear(),Re.fontPreloads.forEach(Fr,u),Re.fontPreloads.clear(),Re.highImagePreloads.forEach(Fr,u),Re.highImagePreloads.clear(),Re.styles.forEach(Cd,u),Re.scripts.forEach(Fr,u),Re.scripts.clear(),Re.bulkPreloads.forEach(Fr,u),Re.bulkPreloads.clear();var ht=Re.hoistableChunks;for(C=0;C<ht.length;C++)u.push(ht[C]);ht.length=0;var Pr=o.clientRenderedBoundaries;for(h=0;h<Pr.length;h++){var rr=Pr[h];Re=u;var nr=o.resumableState,Lt=o.renderState,On=rr.rootSegmentID,nn=rr.errorDigest,ot=rr.errorMessage,a=rr.errorStack,s=rr.errorComponentStack;Re.push(Lt.startInlineScript),(nr.instructions&To)===ko?(nr.instructions|=To,Re.push(zd)):Re.push(Hd),Re.push(Lt.boundaryPrefix);var p=On.toString(16);if(Re.push(p),Re.push(Wd),nn||ot||a||s){Re.push(wl);var D=gt(nn||"");Re.push(D)}if(ot||a||s){Re.push(wl);var T=gt(ot||"");Re.push(T)}if(a||s){Re.push(wl);var R=gt(a||"");Re.push(R)}if(s){Re.push(wl);var M=gt(s);Re.push(M)}var H=Re.push(qa);if(!H){o.destination=null,h++,Pr.splice(0,h);return}}Pr.splice(0,h);var Q=o.completedBoundaries;for(h=0;h<Q.length;h++)if(!ui(o,u,Q[h])){o.destination=null,h++,Q.splice(0,h);return}Q.splice(0,h);var U=o.partialBoundaries;for(h=0;h<U.length;h++){e:{Pr=o,rr=u;var ie=U[h],re=ie.completedSegments;for(H=0;H<re.length;H++)if(!tl(Pr,rr,ie,re[H])){H++,re.splice(0,H);var de=!1;break e}re.splice(0,H),de=qr(rr,ie.contentState,Pr.renderState)}if(!de){o.destination=null,h++,U.splice(0,h);return}}U.splice(0,h);var ue=o.completedBoundaries;for(h=0;h<ue.length;h++)if(!ui(o,u,ue[h])){o.destination=null,h++,ue.splice(0,h);return}ue.splice(0,h)}}finally{o.allPendingTasks===0&&o.pingedTasks.length===0&&o.clientRenderedBoundaries.length===0&&o.completedBoundaries.length===0&&(o.flushScheduled=!1,h=o.resumableState,h.hasBody&&(U=Kt("body"),u.push(U)),h.hasHtml&&(h=Kt("html"),u.push(h)),o.abortableTasks.size!==0&&console.error("There was still abortable task at the root when we closed. This is a bug in React."),o.status=He,u.push(null),o.destination=null)}}function rl(o){o.flushScheduled=o.destination!==null,en(o),o.status===10&&(o.status=11),o.trackedPostpones===null&&Gn(o,o.pendingRootTasks===0)}function wa(o){if(o.flushScheduled===!1&&o.pingedTasks.length===0&&o.destination!==null){o.flushScheduled=!0;var u=o.destination;u?bo(o,u):o.flushScheduled=!1}}function qi(o,u){if(o.status===13)o.status=He,u.destroy(o.fatalError);else if(o.status!==He&&o.destination===null){o.destination=u;try{bo(o,u)}catch(h){u={},$t(o,h,u,null),jn(o,h,u,null)}}}function ci(o,u){(o.status===11||o.status===10)&&(o.status=12);try{var h=o.abortableTasks;if(0<h.size){var C=u===void 0?Error("The render was aborted by the server without a reason."):typeof u=="object"&&u!==null&&typeof u.then=="function"?Error("The render was aborted by the server with a promise."):u;o.fatalError=C,h.forEach(function(k){return $r(k,o,C)}),h.clear()}o.destination!==null&&bo(o,o.destination)}catch(k){u={},$t(o,k,u,null),jn(o,k,u,null)}}function Ki(){}function nl(o,u,h,C){var k=!1,P=null,W="",G=!1;if(u=ve(u?u.identifierPrefix:void 0),o=Sd(o,u,cc(u,h),me(pi,null,0),1/0,Ki,void 0,function(){G=!0},void 0,void 0,void 0),rl(o),ci(o,C),qi(o,{push:function(ee){return ee!==null&&(W+=ee),!0},destroy:function(ee){k=!0,P=ee}}),k&&P!==C)throw P;if(!G)throw Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return W}var iu=L,hc=Ho,yo=Symbol.for("react.transitional.element"),al=Symbol.for("react.portal"),Xa=Symbol.for("react.fragment"),ol=Symbol.for("react.strict_mode"),wo=Symbol.for("react.profiler"),pc=Symbol.for("react.provider"),Qi=Symbol.for("react.consumer"),$i=Symbol.for("react.context"),Za=Symbol.for("react.forward_ref"),xo=Symbol.for("react.suspense"),es=Symbol.for("react.suspense_list"),ts=Symbol.for("react.memo"),Do=Symbol.for("react.lazy"),gc=Symbol.for("react.scope"),il=Symbol.for("react.activity"),rs=Symbol.for("react.legacy_hidden"),sl=Symbol.for("react.memo_cache_sentinel"),ns=Symbol.for("react.view_transition"),Co=Symbol.iterator,Yn=Array.isArray,xa=new WeakMap,mc=new WeakMap,ll=Symbol.for("react.client.reference"),At=Object.assign,st=Object.prototype.hasOwnProperty,kd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),su={},Ja={},lu=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),vc=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),uu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},cu={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Eo={},Td=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),di=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lr=!1,mr={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Mr={},mt=/^on./,lt=/^on[^A-Z]/,Fo=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ul=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fi=/^(?:webkit|moz|o)[A-Z]/,bc=/^-ms-/,So=/-(.)/g,hi=/;\s*$/,Tn={},An={},yc=!1,as=!1,wc=/["'&<>]/,xc=/([A-Z])/g,Tr=/^ms-/,os=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Gt=iu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,du=hc.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fu=Object.freeze({pending:!1,data:null,method:null,action:null}),_n=du.d;du.d={f:_n.f,r:_n.r,D:function(o){var u=Ne||null;if(u){var h=u.resumableState,C=u.renderState;if(typeof o=="string"&&o){if(!h.dnsResources.hasOwnProperty(o)){h.dnsResources[o]=Yt,h=C.headers;var k,P;(P=h&&0<h.remainingCapacity)&&(P=(k="<"+Qr(o)+">; rel=dns-prefetch",0<=(h.remainingCapacity-=k.length+2))),P?(C.resets.dns[o]=Yt,h.preconnects&&(h.preconnects+=", "),h.preconnects+=k):(k=[],De(k,{href:o,rel:"dns-prefetch"}),C.preconnects.add(k))}wa(u)}}else _n.D(o)},C:function(o,u){var h=Ne||null;if(h){var C=h.resumableState,k=h.renderState;if(typeof o=="string"&&o){var P=u==="use-credentials"?"credentials":typeof u=="string"?"anonymous":"default";if(!C.connectResources[P].hasOwnProperty(o)){C.connectResources[P][o]=Yt,C=k.headers;var W,G;if(G=C&&0<C.remainingCapacity){if(G="<"+Qr(o)+">; rel=preconnect",typeof u=="string"){var ee=Jl(u,"crossOrigin");G+='; crossorigin="'+ee+'"'}G=(W=G,0<=(C.remainingCapacity-=W.length+2))}G?(k.resets.connect[P][o]=Yt,C.preconnects&&(C.preconnects+=", "),C.preconnects+=W):(P=[],De(P,{rel:"preconnect",href:o,crossOrigin:u}),k.preconnects.add(P))}wa(h)}}else _n.C(o,u)},L:function(o,u,h){var C=Ne||null;if(C){var k=C.resumableState,P=C.renderState;if(u&&o){switch(u){case"image":if(h)var W=h.imageSrcSet,G=h.imageSizes,ee=h.fetchPriority;var X=W?W+`
|
|
77
|
-
`+(G||""):o;if(k.imageResources.hasOwnProperty(X))return;k.imageResources[X]=zr,k=P.headers;var fe;k&&0<k.remainingCapacity&&typeof W!="string"&&ee==="high"&&(fe=Kr(o,u,h),0<=(k.remainingCapacity-=fe.length+2))?(P.resets.image[X]=zr,k.highImagePreloads&&(k.highImagePreloads+=", "),k.highImagePreloads+=fe):(k=[],De(k,At({rel:"preload",href:W?void 0:o,as:u},h)),ee==="high"?P.highImagePreloads.add(k):(P.bulkPreloads.add(k),P.preloads.images.set(X,k)));break;case"style":if(k.styleResources.hasOwnProperty(o))return;W=[],De(W,At({rel:"preload",href:o,as:u},h)),k.styleResources[o]=!h||typeof h.crossOrigin!="string"&&typeof h.integrity!="string"?zr:[h.crossOrigin,h.integrity],P.preloads.stylesheets.set(o,W),P.bulkPreloads.add(W);break;case"script":if(k.scriptResources.hasOwnProperty(o))return;W=[],P.preloads.scripts.set(o,W),P.bulkPreloads.add(W),De(W,At({rel:"preload",href:o,as:u},h)),k.scriptResources[o]=!h||typeof h.crossOrigin!="string"&&typeof h.integrity!="string"?zr:[h.crossOrigin,h.integrity];break;default:if(k.unknownResources.hasOwnProperty(u)){if(W=k.unknownResources[u],W.hasOwnProperty(o))return}else W={},k.unknownResources[u]=W;if(W[o]=zr,(k=P.headers)&&0<k.remainingCapacity&&u==="font"&&(X=Kr(o,u,h),0<=(k.remainingCapacity-=X.length+2)))P.resets.font[o]=zr,k.fontPreloads&&(k.fontPreloads+=", "),k.fontPreloads+=X;else switch(k=[],o=At({rel:"preload",href:o,as:u},h),De(k,o),u){case"font":P.fontPreloads.add(k);break;default:P.bulkPreloads.add(k)}}wa(C)}}else _n.L(o,u,h)},m:function(o,u){var h=Ne||null;if(h){var C=h.resumableState,k=h.renderState;if(o){var P=u&&typeof u.as=="string"?u.as:"script";switch(P){case"script":if(C.moduleScriptResources.hasOwnProperty(o))return;P=[],C.moduleScriptResources[o]=!u||typeof u.crossOrigin!="string"&&typeof u.integrity!="string"?zr:[u.crossOrigin,u.integrity],k.preloads.moduleScripts.set(o,P);break;default:if(C.moduleUnknownResources.hasOwnProperty(P)){var W=C.unknownResources[P];if(W.hasOwnProperty(o))return}else W={},C.moduleUnknownResources[P]=W;P=[],W[o]=zr}De(P,At({rel:"modulepreload",href:o},u)),k.bulkPreloads.add(P),wa(h)}}else _n.m(o,u)},X:function(o,u){var h=Ne||null;if(h){var C=h.resumableState,k=h.renderState;if(o){var P=C.scriptResources.hasOwnProperty(o)?C.scriptResources[o]:void 0;P!==Yt&&(C.scriptResources[o]=Yt,u=At({src:o,async:!0},u),P&&(P.length===2&&Gi(u,P),o=k.preloads.scripts.get(o))&&(o.length=0),o=[],k.scripts.add(o),Ee(o,u),wa(h))}}else _n.X(o,u)},S:function(o,u,h){var C=Ne||null;if(C){var k=C.resumableState,P=C.renderState;if(o){u=u||"default";var W=P.styles.get(u),G=k.styleResources.hasOwnProperty(o)?k.styleResources[o]:void 0;G!==Yt&&(k.styleResources[o]=Yt,W||(W={precedence:J(u),rules:[],hrefs:[],sheets:new Map},P.styles.set(u,W)),u={state:Dl,props:At({rel:"stylesheet",href:o,"data-precedence":u},h)},G&&(G.length===2&&Gi(u.props,G),(P=P.preloads.stylesheets.get(o))&&0<P.length?P.length=0:u.state=Su),W.sheets.set(o,u),wa(C))}}else _n.S(o,u,h)},M:function(o,u){var h=Ne||null;if(h){var C=h.resumableState,k=h.renderState;if(o){var P=C.moduleScriptResources.hasOwnProperty(o)?C.moduleScriptResources[o]:void 0;P!==Yt&&(C.moduleScriptResources[o]=Yt,u=At({src:o,type:"module",async:!0},u),P&&(P.length===2&&Gi(u,P),o=k.preloads.moduleScripts.get(o))&&(o.length=0),o=[],k.scripts.add(o),Ee(o,u),wa(h))}}else _n.M(o,u)}};var ko=0,hu=1,is=2,To=4,ss=8,Yt=null,zr=[];Object.freeze(zr);var Ad=/(<\/|<)(s)(cript)/gi,Dc={},Cc=0,pi=0,ur=1,Hr=2,cl=3,cr=4,Vn=5,ls=6,gi=7,us=8,Da=9,Et=new Map,Ar=' style="',Ec=":",pu=";",_r=" ",dn='="',Wr='"',dl='=""',gu=J("javascript:throw new Error('React form unexpectedly submitted.')"),Ot=">",Ao="/>",cs=!1,Fc=!1,ds=!1,fl=!1,Ca=!1,mi=!1,Ur=!1,Ea=!1,fn=!1,Me=!1,Xn=!1,hl=`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,mu=/(<\/|<)(s)(tyle)/gi,fs=`
|
|
78
|
-
`,Fa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,vu=new Map,Sc=new Map,kc='<template id="',_d='"></template>',Rr="<!--$-->",hn='<!--$?--><template id="',rn='"></template>',bu="<!--$!-->",hs="<!--/$-->",Tc="<template",Vt='"',ps=' data-dgst="',Ac=' data-msg="',_c=' data-stck="',Rc=' data-cstck="',yu="></template>",wu="<!--",Nc="-->",Pc='<div hidden id="',gs='">',xu="</div>",ms='<svg aria-hidden="true" style="display:none" id="',vs='">',pl="</svg>",Oc='<math aria-hidden="true" style="display:none" id="',_o='">',Bc="</math>",Rn='<table hidden id="',vi='">',Ic="</table>",Du='<table hidden><tbody id="',gl='">',bs="</tbody></table>",ml='<table hidden><tr id="',Lc='">',vl="</tr></table>",Rd='<table hidden><colgroup id="',Nd='">',Pd="</colgroup></table>",bl='$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("',Od='$RS("',yl='","',Mc='")<\/script>',Bd='$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("',Id='$RC("',Ld=`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
|
|
79
|
-
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
80
|
-
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
81
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`,Ve=`$RM=new Map;
|
|
82
|
-
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
83
|
-
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
84
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`,zc='$RR("',ys='","',Cu='",',bi='"',Md=")<\/script>",zd='$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("',Hd='$RX("',Wd='"',wl=",",qa=")<\/script>",Ud=/[<\u2028\u2029]/g,jd=/[&><\u2028\u2029]/g,yi='<style media="not all" data-precedence="',Hc='" data-href="',Wc='">',Uc="</style>",xl=!1,wi=!0,Ka=[],Gd='<style data-precedence="',Yd='" data-href="',jc=" ",Gc='">',Eu="</style>",Yc="[",Vc=",[",Fu=",",Qa="]",Dl=0,Su=1,xi=2,Cl=3,Vd=/[<>\r\n]/g,Bt=/["';,\r\n]/g,Xc="",Xd=Function.prototype.bind,Zd=Symbol.for("react.client.reference"),Zn={};Object.freeze(Zn);var El={},Jn=null,ku={},Tu={},Au=new Set,Zc=new Set,_u=new Set,Jc=new Set,Fl=new Set,Xt=new Set,Sl=new Set,Sa=new Set,qc=new Set,Ru={enqueueSetState:function(o,u,h){var C=o._reactInternals;C.queue===null?vt(o,"setState"):(C.queue.push(u),h!=null&&Vs(h))},enqueueReplaceState:function(o,u,h){o=o._reactInternals,o.replace=!0,o.queue=[u],h!=null&&Vs(h)},enqueueForceUpdate:function(o,u){o._reactInternals.queue===null?vt(o,"forceUpdate"):u!=null&&Vs(u)}},Nu={id:1,overflow:""},kl=Math.clz32?Math.clz32:Kl,Pu=Math.log,Kc=Math.LN2,ka=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Di=null,Ou=typeof Object.is=="function"?Object.is:da,Nr=null,ws=null,xs=null,Tl=null,Ro=null,ct=null,qn=!1,Ci=!1,vr=0,$a=0,Nn=-1,Ds=0,No=null,Ta=null,Cs=0,Pn=!1,Ei,Es={readContext:fc,use:function(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Zs(o);if(o.$$typeof===$i)return fc(o)}throw Error("An unsupported type was passed to use(): "+String(o))},useContext:function(o){return Ei="useContext",kn(),o._currentValue2},useMemo:Un,useReducer:$l,useRef:function(o){Nr=kn(),ct=Yi();var u=ct.memoizedState;return u===null?(o={current:o},Object.seal(o),ct.memoizedState=o):u},useState:function(o){return Ei="useState",$l(ei,o)},useInsertionEffect:ho,useLayoutEffect:ho,useCallback:function(o,u){return Un(function(){return o},u)},useImperativeHandle:ho,useEffect:ho,useDebugValue:ho,useDeferredValue:function(o,u){return kn(),u!==void 0?u:o},useTransition:function(){return kn(),[!1,tu]},useId:function(){var o=ws.treeContext,u=o.overflow;o=o.id,o=(o&~(1<<32-kl(o)-1)).toString(32)+u;var h=Fs;if(h===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return u=vr++,o="ยซ"+h.idPrefix+"R"+o,0<u&&(o+="H"+u.toString(32)),o+"ยป"},useSyncExternalStore:function(o,u,h){if(h===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return h()},useOptimistic:function(o){return kn(),[o,fa]},useActionState:ti,useFormState:ti,useHostTransitionStatus:function(){return kn(),fu},useMemoCache:function(o){for(var u=Array(o),h=0;h<o;h++)u[h]=sl;return u},useCacheRefresh:function(){return ru}},Fs=null,pn=null,Qc={getCacheForType:function(){throw Error("Not implemented.")},getOwner:function(){return pn===null?null:pn.componentStack}},Fi=0,Al,$c,Si,Bu,ki,Kn,Ss;nu.__reactDisabledLog=!0;var Iu,Qn,ks=!1,Ts=new(typeof WeakMap=="function"?WeakMap:Map),_l={react_stack_bottom_frame:function(o,u,h){return o(u,h)}},Rl=_l.react_stack_bottom_frame.bind(_l),l={react_stack_bottom_frame:function(o){return o.render()}},d=l.react_stack_bottom_frame.bind(l),y={react_stack_bottom_frame:function(o){var u=o._init;return u(o._payload)}},x=y.react_stack_bottom_frame.bind(y),_=0;if(typeof performance=="object"&&typeof performance.now=="function")var I=performance,Y=function(){return I.now()};else{var q=Date;Y=function(){return q.now()}}var ae=4,we=0,ce=1,Xe=2,We=5,He=14,Ne=null,It={},Ft={},tr={},Se={},Je=!1,_t=!1,St=!1;od.renderToStaticMarkup=function(o,u){return nl(o,u,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},od.renderToString=function(o,u){return nl(o,u,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},od.version="19.1.1"})(),od}var id={},ym;function Rw(){if(ym)return id;ym=1;/**
|
|
85
|
-
* @license React
|
|
86
|
-
* react-dom-server.browser.development.js
|
|
87
|
-
*
|
|
88
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the MIT license found in the
|
|
91
|
-
* LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/return(function(){function e(a,s,p,D){return""+s+(p==="s"?"\\73 ":"\\53 ")+D}function t(a,s,p,D){return""+s+(p==="s"?"\\u0073":"\\u0053")+D}function r(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(s,p){return p})}function n(a){var s=JSON.stringify(a);return'"'+a+'"'===s?a:s}function i(a){switch(typeof a){case"string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case"object":return Ja(a)?"[...]":a!==null&&a.$$typeof===uu?"client":(a=r(a),a==="Object"?"{...}":a);case"function":return a.$$typeof===uu?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}function c(a){if(typeof a=="string")return a;switch(a){case ns:return"Suspense";case Co:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case sl:return c(a.render);case Yn:return c(a.type);case xa:var s=a._payload;a=a._init;try{return c(a(s))}catch{}}return""}function f(a,s){var p=r(a);if(p!=="Object"&&p!=="Array")return p;var D=-1,T=0;if(Ja(a))if(vc.has(a)){var R=vc.get(a);p="<"+c(R)+">";for(var M=0;M<a.length;M++){var H=a[M];H=typeof H=="string"?H:typeof H=="object"&&H!==null?"{"+f(H)+"}":"{"+i(H)+"}",""+M===s?(D=p.length,T=H.length,p+=H):p=15>H.length&&40>p.length+H.length?p+H:p+"{...}"}p+="</"+c(R)+">"}else{for(p="[",R=0;R<a.length;R++)0<R&&(p+=", "),M=a[R],M=typeof M=="object"&&M!==null?f(M):i(M),""+R===s?(D=p.length,T=M.length,p+=M):p=10>M.length&&40>p.length+M.length?p+M:p+"...";p+="]"}else if(a.$$typeof===Za)p="<"+c(a.type)+"/>";else{if(a.$$typeof===uu)return"client";if(lu.has(a)){for(p=lu.get(a),p="<"+(c(p)||"..."),R=Object.keys(a),M=0;M<R.length;M++){p+=" ",H=R[M],p+=n(H)+"=";var Q=a[H],U=H===s&&typeof Q=="object"&&Q!==null?f(Q):i(Q);typeof Q!="string"&&(U="{"+U+"}"),H===s?(D=p.length,T=U.length,p+=U):p=10>U.length&&40>p.length+U.length?p+U:p+"..."}p+=">"}else{for(p="{",R=Object.keys(a),M=0;M<R.length;M++)0<M&&(p+=", "),H=R[M],p+=n(H)+": ",Q=a[H],Q=typeof Q=="object"&&Q!==null?f(Q):i(Q),H===s?(D=p.length,T=Q.length,p+=Q):p=10>Q.length&&40>p.length+Q.length?p+Q:p+"...";p+="}"}}return s===void 0?p:-1<D&&0<T?(a=" ".repeat(D)+"^".repeat(T),`
|
|
93
|
-
`+p+`
|
|
94
|
-
`+a):`
|
|
95
|
-
`+p}function g(a,s){var p=a.length&3,D=a.length-p,T=s;for(s=0;s<D;){var R=a.charCodeAt(s)&255|(a.charCodeAt(++s)&255)<<8|(a.charCodeAt(++s)&255)<<16|(a.charCodeAt(++s)&255)<<24;++s,R=3432918353*(R&65535)+((3432918353*(R>>>16)&65535)<<16)&4294967295,R=R<<15|R>>>17,R=461845907*(R&65535)+((461845907*(R>>>16)&65535)<<16)&4294967295,T^=R,T=T<<13|T>>>19,T=5*(T&65535)+((5*(T>>>16)&65535)<<16)&4294967295,T=(T&65535)+27492+(((T>>>16)+58964&65535)<<16)}switch(R=0,p){case 3:R^=(a.charCodeAt(s+2)&255)<<16;case 2:R^=(a.charCodeAt(s+1)&255)<<8;case 1:R^=a.charCodeAt(s)&255,R=3432918353*(R&65535)+((3432918353*(R>>>16)&65535)<<16)&4294967295,R=R<<15|R>>>17,T^=461845907*(R&65535)+((461845907*(R>>>16)&65535)<<16)&4294967295}return T^=a.length,T^=T>>>16,T=2246822507*(T&65535)+((2246822507*(T>>>16)&65535)<<16)&4294967295,T^=T>>>13,T=3266489909*(T&65535)+((3266489909*(T>>>16)&65535)<<16)&4294967295,(T^T>>>16)>>>0}function b(a){Eo.push(a),cu.port2.postMessage(null)}function m(a){setTimeout(function(){throw a})}function v(a,s){if(s.byteLength!==0)if(2048<s.byteLength)0<mr&&(a.enqueue(new Uint8Array(lr.buffer,0,mr)),lr=new Uint8Array(2048),mr=0),a.enqueue(s);else{var p=lr.length-mr;p<s.byteLength&&(p===0?a.enqueue(lr):(lr.set(s.subarray(0,p),mr),a.enqueue(lr),s=s.subarray(p)),lr=new Uint8Array(2048),mr=0),lr.set(s,mr),mr+=s.byteLength}}function E(a,s){return v(a,s),!0}function A(a){lr&&0<mr&&(a.enqueue(new Uint8Array(lr.buffer,0,mr)),lr=null,mr=0)}function F(a){return Mr.encode(a)}function S(a){return a=Mr.encode(a),2048<a.byteLength&&console.error("precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."),a}function N(a,s){typeof a.error=="function"?a.error(s):a.close()}function O(a){return typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function B(a){try{return!1}catch{return!0}}function z(a){return""+a}function Z(a,s){if(B())return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",s,O(a)),z(a)}function V(a,s){if(B())return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",s,O(a)),z(a)}function J(a){if(B())return console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",O(a)),z(a)}function $(a){return lt.call(fi,a)?!0:lt.call(ul,a)?!1:Fo.test(a)?fi[a]=!0:(ul[a]=!0,console.error("Invalid attribute name: `%s`",a),!1)}function K(a,s){hi[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||console.error(a==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),s.onChange||s.readOnly||s.disabled||s.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ve(a,s){if(lt.call(An,s)&&An[s])return!0;if(as.test(s)){if(a="aria-"+s.slice(4).toLowerCase(),a=Tn.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),An[s]=!0;if(s!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,a),An[s]=!0}if(yc.test(s)){if(a=s.toLowerCase(),a=Tn.hasOwnProperty(a)?a:null,a==null)return An[s]=!0,!1;s!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,a),An[s]=!0)}return!0}function se(a,s){var p=[],D;for(D in s)ve(a,D)||p.push(D);s=p.map(function(T){return"`"+T+"`"}).join(", "),p.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",s,a):1<p.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",s,a)}function me(a,s,p,D){if(lt.call(Tr,s)&&Tr[s])return!0;var T=s.toLowerCase();if(T==="onfocusin"||T==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Tr[s]=!0;if(typeof p=="function"&&(a==="form"&&s==="action"||a==="input"&&s==="formAction"||a==="button"&&s==="formAction"))return!0;if(os.test(s))return Gt.test(s)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),Tr[s]=!0;if(du.test(s)||fu.test(s))return!0;if(T==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Tr[s]=!0;if(T==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Tr[s]=!0;if(T==="is"&&p!==null&&p!==void 0&&typeof p!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof p),Tr[s]=!0;if(typeof p=="number"&&isNaN(p))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),Tr[s]=!0;if(xc.hasOwnProperty(T)){if(T=xc[T],T!==s)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",s,T),Tr[s]=!0}else if(s!==T)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,T),Tr[s]=!0;switch(s){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof p){case"boolean":switch(s){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return T=s.toLowerCase().slice(0,5),T==="data-"||T==="aria-"?!0:(p?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',p,s,s,p,s):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',p,s,s,p,s,s,s),Tr[s]=!0)}case"function":case"symbol":return Tr[s]=!0,!1;case"string":if(p==="false"||p==="true"){switch(s){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",p,s,p==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,p),Tr[s]=!0}}return!0}function ge(a,s,p){var D=[],T;for(T in s)me(a,T,s[T])||D.push(T);s=D.map(function(R){return"`"+R+"`"}).join(", "),D.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",s,a):1<D.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",s,a)}function Qe(a){return a.replace(hu,function(s,p){return p.toUpperCase()})}function pe(a){if(typeof a=="boolean"||typeof a=="number"||typeof a=="bigint")return""+a;J(a),a=""+a;var s=Ad.exec(a);if(s){var p="",D,T=0;for(D=s.index;D<a.length;D++){switch(a.charCodeAt(D)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}T!==D&&(p+=a.slice(T,D)),T=D+1,p+=s}a=T!==D?p+a.slice(T,D):p}return a}function Ie(a){return pi.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function tt(a){return J(a),(""+a).replace(Ao,t)}function rt(a,s,p,D,T,R){var M=s===void 0?Ec:S('<script nonce="'+pe(s)+'">'),H=a.idPrefix;p=[];var Q=a.bootstrapScriptContent,U=a.bootstrapScripts,ie=a.bootstrapModules;if(Q!==void 0&&p.push(M,F(tt(Q)),pu),Q=[],D!==void 0&&(Q.push(cs),Q.push(F(tt(JSON.stringify(D)))),Q.push(Fc)),T&&typeof R=="number"&&0>=R&&console.error("React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",R===0?"zero":R),D=T?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+(typeof R=="number"?R:2e3)}:null,T={placeholderPrefix:S(H+"P:"),segmentPrefix:S(H+"S:"),boundaryPrefix:S(H+"B:"),startInlineScript:M,preamble:sr(),externalRuntimeScript:null,bootstrapChunks:p,importMapChunks:Q,onHeaders:T,headers:D,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:s,hoistableState:null,stylesToHoist:!1},U!==void 0)for(D=0;D<U.length;D++){R=U[D],Q=H=void 0;var re={rel:"preload",as:"script",fetchPriority:"low",nonce:s};typeof R=="string"?re.href=M=R:(re.href=M=R.src,re.integrity=Q=typeof R.integrity=="string"?R.integrity:void 0,re.crossOrigin=H=typeof R=="string"||R.crossOrigin==null?void 0:R.crossOrigin==="use-credentials"?"use-credentials":""),Gs(a,T,M,re),p.push(_r,F(pe(M))),s&&p.push(Wr,F(pe(s))),typeof Q=="string"&&p.push(dl,F(pe(Q))),typeof H=="string"&&p.push(gu,F(pe(H))),p.push(Ot)}if(ie!==void 0)for(U=0;U<ie.length;U++)D=ie[U],H=M=void 0,Q={rel:"modulepreload",fetchPriority:"low",nonce:s},typeof D=="string"?Q.href=R=D:(Q.href=R=D.src,Q.integrity=H=typeof D.integrity=="string"?D.integrity:void 0,Q.crossOrigin=M=typeof D=="string"||D.crossOrigin==null?void 0:D.crossOrigin==="use-credentials"?"use-credentials":""),Gs(a,T,R,Q),p.push(dn,F(pe(R))),s&&p.push(Wr,F(pe(s))),typeof H=="string"&&p.push(dl,F(pe(H))),typeof M=="string"&&p.push(gu,F(pe(M))),p.push(Ot);return T}function Pt(a,s,p,D,T){return{idPrefix:a===void 0?"":a,nextFormID:0,streamingFormat:0,bootstrapScriptContent:p,bootstrapScripts:D,bootstrapModules:T,instructions:Vn,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function sr(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:fl}}function Pe(a,s,p){return{insertionMode:a,selectedValue:s,tagScope:p}}function j(a){return Pe(a==="http://www.w3.org/2000/svg"?fn:a==="http://www.w3.org/1998/Math/MathML"?Me:Ca,null,0)}function ne(a,s,p){switch(s){case"noscript":return Pe(Ur,null,a.tagScope|1);case"select":return Pe(Ur,p.value!=null?p.value:p.defaultValue,a.tagScope);case"svg":return Pe(fn,null,a.tagScope);case"picture":return Pe(Ur,null,a.tagScope|2);case"math":return Pe(Me,null,a.tagScope);case"foreignObject":return Pe(Ur,null,a.tagScope);case"table":return Pe(Xn,null,a.tagScope);case"thead":case"tbody":case"tfoot":return Pe(hl,null,a.tagScope);case"colgroup":return Pe(fs,null,a.tagScope);case"tr":return Pe(mu,null,a.tagScope);case"head":if(a.insertionMode<Ur)return Pe(Ea,null,a.tagScope);break;case"html":if(a.insertionMode===Ca)return Pe(mi,null,a.tagScope)}return a.insertionMode>=Xn||a.insertionMode<Ur?Pe(Ur,null,a.tagScope):a}function Fe(a,s,p,D){return s===""?D:(D&&a.push(Fa),a.push(F(pe(s))),!0)}function _e(a,s){if(typeof s!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var p=!0,D;for(D in s)if(lt.call(s,D)){var T=s[D];if(T!=null&&typeof T!="boolean"&&T!==""){if(D.indexOf("--")===0){var R=F(pe(D));V(T,D),T=F(pe((""+T).trim()))}else{R=D;var M=T;if(-1<R.indexOf("-")){var H=R;To.hasOwnProperty(H)&&To[H]||(To[H]=!0,console.error("Unsupported style property %s. Did you mean %s?",H,Qe(H.replace(ko,"ms-"))))}else if(_n.test(R))H=R,To.hasOwnProperty(H)&&To[H]||(To[H]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",H,H.charAt(0).toUpperCase()+H.slice(1)));else if(is.test(M)){H=R;var Q=M;ss.hasOwnProperty(Q)&&ss[Q]||(ss[Q]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,H,Q.replace(is,"")))}typeof M=="number"&&(isNaN(M)?Yt||(Yt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",R)):isFinite(M)||zr||(zr=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",R))),R=D,M=vu.get(R),M!==void 0||(M=S(pe(R.replace(Dc,"-$1").toLowerCase().replace(Cc,"-ms-"))),vu.set(R,M)),R=M,typeof T=="number"?T=T===0||bc.has(D)?F(""+T):F(T+"px"):(V(T,D),T=F(pe((""+T).trim())))}p?(p=!1,a.push(Sc,R,kc,T)):a.push(_d,R,kc,T)}}p||a.push(rn)}function De(a,s,p){p&&typeof p!="function"&&typeof p!="symbol"&&a.push(Rr,F(s),bu)}function Ae(a,s,p){typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&a.push(Rr,F(s),hn,F(pe(p)),rn)}function Oe(a,s){this.push(Tc),ze(a),Ae(this,"name",s),Ae(this,"value",a),this.push(ps)}function ze(a){if(typeof a!="string")throw Error("File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.")}function Ee(a,s){if(typeof s.$$FORM_ACTION=="function"){var p=a.nextFormID++;a=a.idPrefix+p;try{var D=s.$$FORM_ACTION(a);if(D){var T=D.data;T?.forEach(ze)}return D}catch(R){if(typeof R=="object"&&R!==null&&typeof R.then=="function")throw R;console.error(`Failed to serialize an action for progressive enhancement:
|
|
96
|
-
%s`,R)}}return null}function Be(a,s,p,D,T,R,M,H){var Q=null;if(typeof D=="function"){H===null||xu||(xu=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),T===null&&R===null||vs||(vs=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),M===null||ms||(ms=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."));var U=Ee(s,D);U!==null?(H=U.name,D=U.action||"",T=U.encType,R=U.method,M=U.target,Q=U.data):(a.push(Rr,F("formAction"),hn,hs,rn),M=R=T=D=H=null,la(s,p))}return H!=null&&ye(a,"name",H),D!=null&&ye(a,"formAction",D),T!=null&&ye(a,"formEncType",T),R!=null&&ye(a,"formMethod",R),M!=null&&ye(a,"formTarget",M),Q}function ye(a,s,p){switch(s){case"className":Ae(a,"class",p);break;case"tabIndex":Ae(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Ae(a,s,p);break;case"style":_e(a,p);break;case"src":case"href":if(p===""){console.error(s==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',s,s);break}case"action":case"formAction":if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean")break;Z(p,s),p=Ie(""+p),a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":De(a,s.toLowerCase(),p);break;case"xlinkHref":if(typeof p=="function"||typeof p=="symbol"||typeof p=="boolean")break;Z(p,s),p=Ie(""+p),a.push(Rr,F("xlink:href"),hn,F(pe(p)),rn);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof p!="function"&&typeof p!="symbol"&&a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"inert":p!==""||ds[s]||(ds[s]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",s));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"&&a.push(Rr,F(s),bu);break;case"capture":case"download":p===!0?a.push(Rr,F(s),bu):p!==!1&&typeof p!="function"&&typeof p!="symbol"&&a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"cols":case"rows":case"size":case"span":typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p&&a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"rowSpan":case"start":typeof p=="function"||typeof p=="symbol"||isNaN(p)||a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"xlinkActuate":Ae(a,"xlink:actuate",p);break;case"xlinkArcrole":Ae(a,"xlink:arcrole",p);break;case"xlinkRole":Ae(a,"xlink:role",p);break;case"xlinkShow":Ae(a,"xlink:show",p);break;case"xlinkTitle":Ae(a,"xlink:title",p);break;case"xlinkType":Ae(a,"xlink:type",p);break;case"xmlBase":Ae(a,"xml:base",p);break;case"xmlLang":Ae(a,"xml:lang",p);break;case"xmlSpace":Ae(a,"xml:space",p);break;default:if((!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=So.get(s)||s,$(s))){switch(typeof p){case"function":case"symbol":return;case"boolean":var D=s.toLowerCase().slice(0,5);if(D!=="data-"&&D!=="aria-")return}a.push(Rr,F(s),hn,F(pe(p)),rn)}}}function Ce(a,s,p){if(s!=null){if(p!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");s=s.__html,s!=null&&(J(s),a.push(F(""+s)))}}function be(a,s){var p=a[s];p!=null&&(p=Ja(p),a.multiple&&!p?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!a.multiple&&p&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s))}function Kt(a){var s="";return Qi.Children.forEach(a,function(p){p!=null&&(s+=p,wu||typeof p=="string"||typeof p=="number"||typeof p=="bigint"||(wu=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),s}function la(a,s){(a.instructions&16)===Vn&&(a.instructions|=16,s.bootstrapChunks.unshift(s.startInlineScript,Oc,pu))}function Ct(a,s){a.push(Ye("link"));for(var p in s)if(lt.call(s,p)){var D=s[p];if(D!=null)switch(p){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ye(a,p,D)}}return a.push(ps),null}function Xl(a){return J(a),(""+a).replace(Rn,e)}function Fn(a,s,p){a.push(Ye(p));for(var D in s)if(lt.call(s,D)){var T=s[D];if(T!=null)switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(p+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ye(a,D,T)}}return a.push(ps),null}function ac(a,s){a.push(Ye("title"));var p=null,D=null,T;for(T in s)if(lt.call(s,T)){var R=s[T];if(R!=null)switch(T){case"children":p=R;break;case"dangerouslySetInnerHTML":D=R;break;default:ye(a,T,R)}}return a.push(Vt),s=Array.isArray(p)?2>p.length?p[0]:null:p,typeof s!="function"&&typeof s!="symbol"&&s!==null&&s!==void 0&&a.push(F(pe(""+s))),Ce(a,D,p),a.push(qr("title")),null}function Ws(a,s){a.push(Ye("script"));var p=null,D=null,T;for(T in s)if(lt.call(s,T)){var R=s[T];if(R!=null)switch(T){case"children":p=R;break;case"dangerouslySetInnerHTML":D=R;break;default:ye(a,T,R)}}return a.push(Vt),p!=null&&typeof p!="string"&&(s=typeof p=="number"?"a number for children":Array.isArray(p)?"an array for children":"something unexpected for children",console.error("A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",s)),Ce(a,D,p),typeof p=="string"&&a.push(F(tt(p))),a.push(qr("script")),null}function gt(a,s,p){a.push(Ye(p));var D=p=null,T;for(T in s)if(lt.call(s,T)){var R=s[T];if(R!=null)switch(T){case"children":p=R;break;case"dangerouslySetInnerHTML":D=R;break;default:ye(a,T,R)}}return a.push(Vt),Ce(a,D,p),p}function yt(a,s,p){a.push(Ye(p));var D=p=null,T;for(T in s)if(lt.call(s,T)){var R=s[T];if(R!=null)switch(T){case"children":p=R;break;case"dangerouslySetInnerHTML":D=R;break;default:ye(a,T,R)}}return a.push(Vt),Ce(a,D,p),typeof p=="string"?(a.push(F(pe(p))),null):p}function Ye(a){var s=Du.get(a);if(s===void 0){if(!Ic.test(a))throw Error("Invalid tag: "+a);s=S("<"+a),Du.set(a,s)}return s}function Dd(a,s,p,D,T,R,M,H,Q,U){se(s,p),s!=="input"&&s!=="textarea"&&s!=="select"||p==null||p.value!==null||wc||(wc=!0,s==="select"&&p.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",s):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",s));e:if(s.indexOf("-")===-1)var ie=!1;else switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":ie=!1;break e;default:ie=!0}switch(ie||typeof p.is=="string"||ge(s,p),!p.suppressContentEditableWarning&&p.contentEditable&&p.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),H.insertionMode!==fn&&H.insertionMode!==Me&&s.indexOf("-")===-1&&s.toLowerCase()!==s&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),s){case"div":case"span":case"svg":case"path":break;case"a":a.push(Ye("a"));var re=null,de=null,ue;for(ue in p)if(lt.call(p,ue)){var te=p[ue];if(te!=null)switch(ue){case"children":re=te;break;case"dangerouslySetInnerHTML":de=te;break;case"href":te===""?Ae(a,"href",""):ye(a,ue,te);break;default:ye(a,ue,te)}}if(a.push(Vt),Ce(a,de,re),typeof re=="string"){a.push(F(pe(re)));var Ze=null}else Ze=re;return Ze;case"g":case"p":case"li":break;case"select":K("select",p),be(p,"value"),be(p,"defaultValue"),p.value===void 0||p.defaultValue===void 0||Rc||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Rc=!0),a.push(Ye("select"));var nt=null,je=null,ke;for(ke in p)if(lt.call(p,ke)){var kt=p[ke];if(kt!=null)switch(ke){case"children":nt=kt;break;case"dangerouslySetInnerHTML":je=kt;break;case"defaultValue":case"value":break;default:ye(a,ke,kt)}}return a.push(Vt),Ce(a,je,nt),nt;case"option":var it=H.selectedValue;a.push(Ye("option"));var Ge=null,ar=null,br=null,Rt=null,Mt;for(Mt in p)if(lt.call(p,Mt)){var pt=p[Mt];if(pt!=null)switch(Mt){case"children":Ge=pt;break;case"selected":br=pt,Pc||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pc=!0);break;case"dangerouslySetInnerHTML":Rt=pt;break;case"value":ar=pt;default:ye(a,Mt,pt)}}if(it!=null){if(ar!==null){Z(ar,"value");var or=""+ar}else Rt===null||Nc||(Nc=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),or=Kt(Ge);if(Ja(it)){for(var ir=0;ir<it.length;ir++)if(Z(it[ir],"value"),""+it[ir]===or){a.push(pl);break}}else Z(it,"select.value"),""+it===or&&a.push(pl)}else br&&a.push(pl);return a.push(Vt),Ce(a,Rt,Ge),Ge;case"textarea":K("textarea",p),p.value===void 0||p.defaultValue===void 0||yu||(console.error("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"),yu=!0),a.push(Ye("textarea"));var Ke=null,bt=null,at=null,fr;for(fr in p)if(lt.call(p,fr)){var hr=p[fr];if(hr!=null)switch(fr){case"children":at=hr;break;case"value":Ke=hr;break;case"defaultValue":bt=hr;break;case"dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ye(a,fr,hr)}}if(Ke===null&&bt!==null&&(Ke=bt),a.push(Vt),at!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),Ke!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ja(at)){if(1<at.length)throw Error("<textarea> can only have at most one child.");J(at[0]),Ke=""+at[0]}J(at),Ke=""+at}return typeof Ke=="string"&&Ke[0]===`
|
|
97
|
-
`&&a.push(vi),Ke!==null&&(Z(Ke,"value"),a.push(F(pe(""+Ke)))),null;case"input":K("input",p),a.push(Ye("input"));var zt=null,gn=null,Or=null,mn=null,eo=null,vn=null,Aa=null,jr=null,to=null,pr;for(pr in p)if(lt.call(p,pr)){var Ht=p[pr];if(Ht!=null)switch(pr){case"children":case"dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"name":zt=Ht;break;case"formAction":gn=Ht;break;case"formEncType":Or=Ht;break;case"formMethod":mn=Ht;break;case"formTarget":eo=Ht;break;case"defaultChecked":to=Ht;break;case"defaultValue":Aa=Ht;break;case"checked":jr=Ht;break;case"value":vn=Ht;break;default:ye(a,pr,Ht)}}gn===null||p.type==="image"||p.type==="submit"||gs||(gs=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".'));var wt=Be(a,D,T,gn,Or,mn,eo,zt);return jr===null||to===null||_c||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",p.type),_c=!0),vn===null||Aa===null||Ac||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",p.type),Ac=!0),jr!==null?De(a,"checked",jr):to!==null&&De(a,"checked",to),vn!==null?ye(a,"value",vn):Aa!==null&&ye(a,"value",Aa),a.push(ps),wt?.forEach(Oe,a),null;case"button":a.push(Ye("button"));var yr=null,Gr=null,_a=null,Yr=null,bn=null,Vr=null,Ti=null,Nt;for(Nt in p)if(lt.call(p,Nt)){var wr=p[Nt];if(wr!=null)switch(Nt){case"children":yr=wr;break;case"dangerouslySetInnerHTML":Gr=wr;break;case"name":_a=wr;break;case"formAction":Yr=wr;break;case"formEncType":bn=wr;break;case"formMethod":Vr=wr;break;case"formTarget":Ti=wr;break;default:ye(a,Nt,wr)}}Yr===null||p.type==null||p.type==="submit"||gs||(gs=!0,console.error('A button can only specify a formAction along with type="submit" or no type.'));var Bn=Be(a,D,T,Yr,bn,Vr,Ti,_a);if(a.push(Vt),Bn?.forEach(Oe,a),Ce(a,Gr,yr),typeof yr=="string"){a.push(F(pe(yr)));var In=null}else In=yr;return In;case"form":a.push(Ye("form"));var yn=null,Ra=null,an=null,$n=null,ea=null,ta=null,ra;for(ra in p)if(lt.call(p,ra)){var Xr=p[ra];if(Xr!=null)switch(ra){case"children":yn=Xr;break;case"dangerouslySetInnerHTML":Ra=Xr;break;case"action":an=Xr;break;case"encType":$n=Xr;break;case"method":ea=Xr;break;case"target":ta=Xr;break;default:ye(a,ra,Xr)}}var wn=null,Ai=null;if(typeof an=="function"){$n===null&&ea===null||vs||(vs=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),ta===null||ms||(ms=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."));var on=Ee(D,an);on!==null?(an=on.action||"",$n=on.encType,ea=on.method,ta=on.target,wn=on.data,Ai=on.name):(a.push(Rr,F("action"),hn,hs,rn),ta=ea=$n=an=null,la(D,T))}if(an!=null&&ye(a,"action",an),$n!=null&&ye(a,"encType",$n),ea!=null&&ye(a,"method",ea),ta!=null&&ye(a,"target",ta),a.push(Vt),Ai!==null&&(a.push(Tc),Ae(a,"name",Ai),a.push(ps),wn?.forEach(Oe,a)),Ce(a,Ra,yn),typeof yn=="string"){a.push(F(pe(yn)));var ro=null}else ro=yn;return ro;case"menuitem":a.push(Ye("menuitem"));for(var no in p)if(lt.call(p,no)){var As=p[no];if(As!=null)switch(no){case"children":case"dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ye(a,no,As)}}return a.push(Vt),null;case"object":a.push(Ye("object"));var Ln=null,_i=null,Br;for(Br in p)if(lt.call(p,Br)){var xn=p[Br];if(xn!=null)switch(Br){case"children":Ln=xn;break;case"dangerouslySetInnerHTML":_i=xn;break;case"data":Z(xn,"data");var xt=Ie(""+xn);if(xt===""){console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Br,Br);break}a.push(Rr,F("data"),hn,F(pe(xt)),rn);break;default:ye(a,Br,xn)}}if(a.push(Vt),Ce(a,_i,Ln),typeof Ln=="string"){a.push(F(pe(Ln)));var Zt=null}else Zt=Ln;return Zt;case"title":var xr=H.insertionMode,_s=!!(H.tagScope&1);if(lt.call(p,"children")){var Dn=p.children,na=Array.isArray(Dn)?2>Dn.length?Dn[0]:null:Dn;Array.isArray(Dn)&&1<Dn.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",Dn.length):typeof na=="function"||typeof na=="symbol"?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof na=="function"?"a Function":"a Sybmol"):na&&na.toString==={}.toString&&(na.$$typeof!=null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."))}if(xr===fn||_s||p.itemProp!=null)var Na=ac(a,p);else U?Na=null:(ac(T.hoistableChunks,p),Na=void 0);return Na;case"link":var Nl=p.rel,Wt=p.href,Po=p.precedence;if(H.insertionMode===fn||H.tagScope&1||p.itemProp!=null||typeof Nl!="string"||typeof Wt!="string"||Wt===""){Nl==="stylesheet"&&typeof p.precedence=="string"&&(typeof Wt=="string"&&Wt||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',Wt===null?"`null`":Wt===void 0?"`undefined`":Wt===""?"an empty string":'something with type "'+typeof Wt+'"')),Ct(a,p);var ao=null}else if(p.rel==="stylesheet")if(typeof Po!="string"||p.disabled!=null||p.onLoad||p.onError){if(typeof Po=="string"){if(p.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(p.onLoad||p.onError){var Pa=p.onLoad&&p.onError?"`onLoad` and `onError` props":p.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',Pa,Pa)}}ao=Ct(a,p)}else{var Oo=T.styles.get(Po),oo=D.styleResources.hasOwnProperty(Wt)?D.styleResources[Wt]:void 0;if(oo!==Et){D.styleResources[Wt]=Et,Oo||(Oo={precedence:F(pe(Po)),rules:[],hrefs:[],sheets:new Map},T.styles.set(Po,Oo));var Ri={state:Nr,props:mt({},p,{"data-precedence":p.precedence,precedence:null})};if(oo){oo.length===2&&ut(Ri.props,oo);var Bo=T.preloads.stylesheets.get(Wt);Bo&&0<Bo.length?Bo.length=0:Ri.state=ws}Oo.sheets.set(Wt,Ri),M&&M.stylesheets.add(Ri)}else if(Oo){var Lu=Oo.sheets.get(Wt);Lu&&M&&M.stylesheets.add(Lu)}Q&&a.push(Fa),ao=null}else p.onLoad||p.onError?ao=Ct(a,p):(Q&&a.push(Fa),ao=U?null:Ct(T.hoistableChunks,p));return ao;case"script":var Io=p.async;if(typeof p.src!="string"||!p.src||!Io||typeof Io=="function"||typeof Io=="symbol"||p.onLoad||p.onError||H.insertionMode===fn||H.tagScope&1||p.itemProp!=null)var io=Ws(a,p);else{var Oa=p.src;if(p.type==="module")var Mn=D.moduleScriptResources,Ba=T.preloads.moduleScripts;else Mn=D.scriptResources,Ba=T.preloads.scripts;var Jt=Mn.hasOwnProperty(Oa)?Mn[Oa]:void 0;if(Jt!==Et){Mn[Oa]=Et;var Ut=p;if(Jt){Jt.length===2&&(Ut=mt({},p),ut(Ut,Jt));var Mu=Ba.get(Oa);Mu&&(Mu.length=0)}var Lo=[];T.scripts.add(Lo),Ws(Lo,Ut)}Q&&a.push(Fa),io=null}return io;case"style":var zu=H.insertionMode,so=!!(H.tagScope&1);if(lt.call(p,"children")){var lo=p.children,Pl=Array.isArray(lo)?2>lo.length?lo[0]:null:lo;(typeof Pl=="function"||typeof Pl=="symbol"||Array.isArray(Pl))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof Pl=="function"?"a Function":typeof Pl=="symbol"?"a Sybmol":"an Array")}var uo=p.precedence,aa=p.href;if(zu===fn||so||p.itemProp!=null||typeof uo!="string"||typeof aa!="string"||aa===""){a.push(Ye("style"));var Ni=null,Jd=null,Rs;for(Rs in p)if(lt.call(p,Rs)){var Hu=p[Rs];if(Hu!=null)switch(Rs){case"children":Ni=Hu;break;case"dangerouslySetInnerHTML":Jd=Hu;break;default:ye(a,Rs,Hu)}}a.push(Vt);var Ns=Array.isArray(Ni)?2>Ni.length?Ni[0]:null:Ni;typeof Ns!="function"&&typeof Ns!="symbol"&&Ns!==null&&Ns!==void 0&&a.push(F(Xl(Ns))),Ce(a,Jd,Ni),a.push(qr("style"));var qd=null}else{aa.includes(" ")&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',aa);var Mo=T.styles.get(uo),Kd=D.styleResources.hasOwnProperty(aa)?D.styleResources[aa]:void 0;if(Kd!==Et){D.styleResources[aa]=Et,Kd&&console.error('React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',aa),Mo?Mo.hrefs.push(F(pe(aa))):(Mo={precedence:F(pe(uo)),rules:[],hrefs:[F(pe(aa))],sheets:new Map},T.styles.set(uo,Mo));var Ps=Mo.rules,Zr=null,Qd=null,Jf;for(Jf in p)if(lt.call(p,Jf)){var im=p[Jf];if(im!=null)switch(Jf){case"children":Zr=im;break;case"dangerouslySetInnerHTML":Qd=im}}var $d=Array.isArray(Zr)?2>Zr.length?Zr[0]:null:Zr;typeof $d!="function"&&typeof $d!="symbol"&&$d!==null&&$d!==void 0&&Ps.push(F(Xl($d))),Ce(Ps,Qd,Zr)}Mo&&M&&M.styles.add(Mo),Q&&a.push(Fa),qd=void 0}return qd;case"meta":if(H.insertionMode===fn||H.tagScope&1||p.itemProp!=null)var dw=Fn(a,p,"meta");else Q&&a.push(Fa),dw=U?null:typeof p.charSet=="string"?Fn(T.charsetChunks,p,"meta"):p.name==="viewport"?Fn(T.viewportChunks,p,"meta"):Fn(T.hoistableChunks,p,"meta");return dw;case"listing":case"pre":a.push(Ye(s));var ef=null,tf=null,rf;for(rf in p)if(lt.call(p,rf)){var qf=p[rf];if(qf!=null)switch(rf){case"children":ef=qf;break;case"dangerouslySetInnerHTML":tf=qf;break;default:ye(a,rf,qf)}}if(a.push(Vt),tf!=null){if(ef!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof tf!="object"||!("__html"in tf))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var Ol=tf.__html;Ol!=null&&(typeof Ol=="string"&&0<Ol.length&&Ol[0]===`
|
|
98
|
-
`?a.push(vi,F(Ol)):(J(Ol),a.push(F(""+Ol))))}return typeof ef=="string"&&ef[0]===`
|
|
99
|
-
`&&a.push(vi),ef;case"img":var Cn=p.src,sn=p.srcSet;if(!(p.loading==="lazy"||!Cn&&!sn||typeof Cn!="string"&&Cn!=null||typeof sn!="string"&&sn!=null)&&p.fetchPriority!=="low"&&!(H.tagScope&3)&&(typeof Cn!="string"||Cn[4]!==":"||Cn[0]!=="d"&&Cn[0]!=="D"||Cn[1]!=="a"&&Cn[1]!=="A"||Cn[2]!=="t"&&Cn[2]!=="T"||Cn[3]!=="a"&&Cn[3]!=="A")&&(typeof sn!="string"||sn[4]!==":"||sn[0]!=="d"&&sn[0]!=="D"||sn[1]!=="a"&&sn[1]!=="A"||sn[2]!=="t"&&sn[2]!=="T"||sn[3]!=="a"&&sn[3]!=="A")){var fw=typeof p.sizes=="string"?p.sizes:void 0,ed=sn?sn+`
|
|
100
|
-
`+(fw||""):Cn,sm=T.preloads.images,Wu=sm.get(ed);if(Wu)(p.fetchPriority==="high"||10>T.highImagePreloads.size)&&(sm.delete(ed),T.highImagePreloads.add(Wu));else if(!D.imageResources.hasOwnProperty(ed)){D.imageResources[ed]=Ar;var lm=p.crossOrigin,hw=typeof lm=="string"?lm==="use-credentials"?lm:"":void 0,Uu=T.headers,um;Uu&&0<Uu.remainingCapacity&&typeof p.srcSet!="string"&&(p.fetchPriority==="high"||500>Uu.highImagePreloads.length)&&(um=Wn(Cn,"image",{imageSrcSet:p.srcSet,imageSizes:p.sizes,crossOrigin:hw,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.refererPolicy}),0<=(Uu.remainingCapacity-=um.length+2))?(T.resets.image[ed]=Ar,Uu.highImagePreloads&&(Uu.highImagePreloads+=", "),Uu.highImagePreloads+=um):(Wu=[],Ct(Wu,{rel:"preload",as:"image",href:sn?void 0:Cn,imageSrcSet:sn,imageSizes:fw,crossOrigin:hw,integrity:p.integrity,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy}),p.fetchPriority==="high"||10>T.highImagePreloads.size?T.highImagePreloads.add(Wu):(T.bulkPreloads.add(Wu),sm.set(ed,Wu)))}}return Fn(a,p,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return Fn(a,p,s);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(H.insertionMode<Ur){var cm=R||T.preamble;if(cm.headChunks)throw Error("The `<head>` tag may only be rendered once.");cm.headChunks=[];var pw=gt(cm.headChunks,p,"head")}else pw=yt(a,p,"head");return pw;case"body":if(H.insertionMode<Ur){var dm=R||T.preamble;if(dm.bodyChunks)throw Error("The `<body>` tag may only be rendered once.");dm.bodyChunks=[];var gw=gt(dm.bodyChunks,p,"body")}else gw=yt(a,p,"body");return gw;case"html":if(H.insertionMode===Ca){var fm=R||T.preamble;if(fm.htmlChunks)throw Error("The `<html>` tag may only be rendered once.");fm.htmlChunks=[gl];var mw=gt(fm.htmlChunks,p,"html")}else mw=yt(a,p,"html");return mw;default:if(s.indexOf("-")!==-1){a.push(Ye(s));var hm=null,vw=null,td;for(td in p)if(lt.call(p,td)){var zo=p[td];if(zo!=null){var bw=td;switch(td){case"children":hm=zo;break;case"dangerouslySetInnerHTML":vw=zo;break;case"style":_e(a,zo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":bw="class";default:if($(td)&&typeof zo!="function"&&typeof zo!="symbol"&&zo!==!1){if(zo===!0)zo="";else if(typeof zo=="object")continue;a.push(Rr,F(bw),hn,F(pe(zo)),rn)}}}}return a.push(Vt),Ce(a,vw,hm),hm}}return yt(a,p,s)}function qr(a){var s=bs.get(a);return s===void 0&&(s=S("</"+a+">"),bs.set(a,s)),s}function Fr(a,s){a=a.preamble,a.htmlChunks===null&&s.htmlChunks&&(a.htmlChunks=s.htmlChunks,s.contribution|=1),a.headChunks===null&&s.headChunks&&(a.headChunks=s.headChunks,s.contribution|=4),a.bodyChunks===null&&s.bodyChunks&&(a.bodyChunks=s.bodyChunks,s.contribution|=2)}function Zl(a,s){s=s.bootstrapChunks;for(var p=0;p<s.length-1;p++)v(a,s[p]);return p<s.length?(p=s[p],s.length=0,E(a,p)):!0}function oc(a,s,p){if(v(a,Rd),p===null)throw Error("An ID must have been assigned before we can complete the boundary.");return v(a,s.boundaryPrefix),v(a,F(p.toString(16))),E(a,Nd)}function ic(a,s){s=s.contribution,s!==fl&&(v(a,zc),v(a,F(""+s)),v(a,ys))}function Cd(a,s,p,D){switch(p.insertionMode){case Ca:case mi:case Ea:case Ur:return v(a,Cu),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,bi);case fn:return v(a,zd),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,Hd);case Me:return v(a,wl),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,qa);case Xn:return v(a,jd),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,yi);case hl:return v(a,Wc),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,Uc);case mu:return v(a,wi),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,Ka);case fs:return v(a,Yd),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,jc);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function Sn(a,s){switch(s.insertionMode){case Ca:case mi:case Ea:case Ur:return E(a,Md);case fn:return E(a,Wd);case Me:return E(a,Ud);case Xn:return E(a,Hc);case hl:return E(a,xl);case mu:return E(a,Gd);case fs:return E(a,Gc);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function Us(a){return JSON.stringify(a).replace(Tu,function(s){switch(s){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function qo(a){return JSON.stringify(a).replace(Au,function(s){switch(s){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function sc(a){var s=a.rules,p=a.hrefs;0<s.length&&p.length===0&&console.error("React expected to have at least one href for an a hoistable style but found none. This is a bug in React.");var D=0;if(p.length){for(v(this,Zc),v(this,a.precedence),v(this,_u);D<p.length-1;D++)v(this,p[D]),v(this,Nu);for(v(this,p[D]),v(this,Jc),D=0;D<s.length;D++)v(this,s[D]);Sl=E(this,Fl),Xt=!0,s.length=0,p.length=0}}function Gi(a){return a.state!==xs?Xt=!0:!1}function Kr(a,s,p){return Xt=!1,Sl=!0,s.styles.forEach(sc,a),s.stylesheets.forEach(Gi),Xt&&(p.stylesToHoist=!0),Sl}function Qr(a){for(var s=0;s<a.length;s++)v(this,a[s]);a.length=0}function Ed(a){Ct(Sa,a.props);for(var s=0;s<Sa.length;s++)v(this,Sa[s]);Sa.length=0,a.state=xs}function Jl(a){var s=0<a.sheets.size;a.sheets.forEach(Ed,this),a.sheets.clear();var p=a.rules,D=a.hrefs;if(!s||D.length){if(v(this,qc),v(this,a.precedence),a=0,D.length){for(v(this,Ru);a<D.length-1;a++)v(this,D[a]),v(this,Nu);v(this,D[a])}for(v(this,kl),a=0;a<p.length;a++)v(this,p[a]);v(this,Pu),p.length=0,D.length=0}}function js(a){if(a.state===Nr){a.state=ws;var s=a.props;for(Ct(Sa,{rel:"preload",as:"style",href:a.props.href,crossOrigin:s.crossOrigin,fetchPriority:s.fetchPriority,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy}),a=0;a<Sa.length;a++)v(this,Sa[a]);Sa.length=0}}function lc(a){a.sheets.forEach(js,this),a.sheets.clear()}function uc(a,s){v(a,Kc);var p=Kc;s.stylesheets.forEach(function(D){if(D.state!==xs)if(D.state===Tl)v(a,p),D=D.props.href,Z(D,"href"),v(a,F(qo(""+D))),v(a,Ou),p=ka;else{v(a,p);var T=D.props["data-precedence"],R=D.props,M=Ie(""+D.props.href);v(a,F(qo(M))),Z(T,"precedence"),T=""+T,v(a,Di),v(a,F(qo(T)));for(var H in R)if(lt.call(R,H)&&(T=R[H],T!=null))switch(H){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:cc(a,H,T)}v(a,Ou),p=ka,D.state=Tl}}),v(a,Ou)}function cc(a,s,p){var D=s.toLowerCase();switch(typeof p){case"function":case"symbol":return}switch(s){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":D="class",Z(p,D),s=""+p;break;case"hidden":if(p===!1)return;s="";break;case"src":case"href":p=Ie(p),Z(p,D),s=""+p;break;default:if(2<s.length&&(s[0]==="o"||s[0]==="O")&&(s[1]==="n"||s[1]==="N")||!$(s))return;Z(p,D),s=""+p}v(a,Di),v(a,F(qo(D))),v(a,Di),v(a,F(qo(s)))}function ql(){return{styles:new Set,stylesheets:new Set}}function Gs(a,s,p,D){(a.scriptResources.hasOwnProperty(p)||a.moduleScriptResources.hasOwnProperty(p))&&console.error('Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',p),a.scriptResources[p]=Et,a.moduleScriptResources[p]=Et,a=[],Ct(a,D),s.bootstrapScripts.add(a)}function ut(a,s){a.crossOrigin==null&&(a.crossOrigin=s[0]),a.integrity==null&&(a.integrity=s[1])}function Wn(a,s,p){a=ua(a),s=Ys(s,"as"),s="<"+a+'>; rel=preload; as="'+s+'"';for(var D in p)lt.call(p,D)&&(a=p[D],typeof a=="string"&&(s+="; "+D.toLowerCase()+'="'+Ys(a,D)+'"'));return s}function ua(a){return Z(a,"href"),(""+a).replace(Ro,un)}function un(a){switch(a){case"<":return"%3C";case">":return"%3E";case`
|
|
101
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Ys(a,s){return B()&&(console.error("The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",s,O(a)),z(a)),(""+a).replace(ct,dc)}function dc(a){switch(a){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
102
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function ca(a){this.styles.add(a)}function Vs(a){this.stylesheets.add(a)}function vt(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===Ci?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case es:return"Fragment";case Do:return"Profiler";case ts:return"StrictMode";case ns:return"Suspense";case Co:return"SuspenseList";case ll:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case xo:return"Portal";case rs:return(a.displayName||"Context")+".Provider";case il:return(a._context.displayName||"Context")+".Consumer";case sl:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Yn:return s=a.displayName||null,s!==null?s:vt(a.type)||"Memo";case xa:s=a._payload,a=a._init;try{return vt(a(s))}catch{}}return null}function za(a,s){if(a!==s){a.context._currentValue=a.parentValue,a=a.parent;var p=s.parent;if(a===null){if(p!==null)throw Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(p===null)throw Error("The stacks must reach the root at the same time. This is a bug in React.");za(a,p)}s.context._currentValue=s.value}}function Kl(a){a.context._currentValue=a.parentValue,a=a.parent,a!==null&&Kl(a)}function Ko(a){var s=a.parent;s!==null&&Ko(s),a.context._currentValue=a.value}function Ql(a,s){if(a.context._currentValue=a.parentValue,a=a.parent,a===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===s.depth?za(a,s):Ql(a,s)}function Qo(a,s){var p=s.parent;if(p===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===p.depth?za(a,p):Qo(a,p),s.context._currentValue=s.value}function da(a){var s=Nn;s!==a&&(s===null?Ko(a):a===null?Kl(s):s.depth===a.depth?za(s,a):s.depth>a.depth?Ql(s,a):Qo(s,a),Nn=a)}function kn(a){if(a!==null&&typeof a!="function"){var s=String(a);Fi.has(s)||(Fi.add(s),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function Xs(a,s){a=(a=a.constructor)&&vt(a)||"ReactClass";var p=a+"."+s;Ds[p]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
103
|
-
|
|
104
|
-
Please check the code for the %s component.`,s,a),Ds[p]=!0)}function Yi(a,s,p){var D=a.id;a=a.overflow;var T=32-Si(D)-1;D&=~(1<<T),p+=1;var R=32-Si(s)+T;if(30<R){var M=T-T%5;return R=(D&(1<<M)-1).toString(32),D>>=M,T-=M,{id:1<<32-Si(s)+T|p<<T|D,overflow:R+a}}return{id:1<<R|p<<T|D,overflow:a}}function $o(a){return a>>>=0,a===0?32:31-(Bu(a)/ki|0)|0}function Ha(){}function fc(a,s,p){switch(p=a[p],p===void 0?a.push(s):p!==s&&(s.then(Ha,Ha),s=p),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(Ha,Ha):(a=s,a.status="pending",a.then(function(D){if(s.status==="pending"){var T=s;T.status="fulfilled",T.value=D}},function(D){if(s.status==="pending"){var T=s;T.status="rejected",T.reason=D}})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}throw Ss=s,Kn}}function ei(){if(Ss===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Ss;return Ss=null,a}function $l(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}function Un(){if(Qn===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
105
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
106
|
-
2. You might be breaking the Rules of Hooks
|
|
107
|
-
3. You might have more than one copy of React in the same app
|
|
108
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return ce&&console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"),Qn}function eu(){if(0<we)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function tu(){return l===null?Rl===null?(d=!1,Rl=l=eu()):(d=!0,l=Rl):l.next===null?(d=!1,l=l.next=eu()):(d=!0,l=l.next),l}function fa(){var a=q;return q=null,a}function ti(){ce=!1,_l=Ts=ks=Qn=null,y=!1,Rl=null,we=0,l=ae=null}function Zs(a){return ce&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),a._currentValue}function ru(a,s){return typeof s=="function"?s(a):s}function ho(a,s,p){if(a!==ru&&(Xe="useReducer"),Qn=Un(),l=tu(),d){if(p=l.queue,s=p.dispatch,ae!==null){var D=ae.get(p);if(D!==void 0){ae.delete(p),p=l.memoizedState;do{var T=D.action;ce=!0,p=a(p,T),ce=!1,D=D.next}while(D!==null);return l.memoizedState=p,[p,s]}}return[l.memoizedState,s]}return ce=!0,a=a===ru?typeof s=="function"?s():s:p!==void 0?p(s):s,ce=!1,l.memoizedState=a,a=l.queue={last:null,dispatch:null},a=a.dispatch=Vi.bind(null,Qn,a),[l.memoizedState,a]}function nu(a,s){if(Qn=Un(),l=tu(),s=s===void 0?null:s,l!==null){var p=l.memoizedState;if(p!==null&&s!==null){e:{var D=p[1];if(D===null)console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Xe),D=!1;else{s.length!==D.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
109
|
-
|
|
110
|
-
Previous: %s
|
|
111
|
-
Incoming: %s`,Xe,"["+s.join(", ")+"]","["+D.join(", ")+"]");for(var T=0;T<D.length&&T<s.length;T++)if(!Iu(s[T],D[T])){D=!1;break e}D=!0}}if(D)return p[0]}}return ce=!0,a=a(),ce=!1,l.memoizedState=[a,s],a}function Vi(a,s,p){if(25<=we)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a===Qn)if(y=!0,a={action:p,next:null},ae===null&&(ae=new Map),p=ae.get(s),p===void 0)ae.set(s,a);else{for(s=p;s.next!==null;)s=s.next;s.next=a}}function Fd(){throw Error("startTransition cannot be called during server rendering.")}function ha(){throw Error("Cannot update optimistic state while rendering.")}function Xi(a,s,p){Un();var D=_++,T=Ts;if(typeof a.$$FORM_ACTION=="function"){var R=null,M=_l;T=T.formState;var H=a.$$IS_SIGNATURE_EQUAL;if(T!==null&&typeof H=="function"){var Q=T[1];H.call(a,T[2],T[3])&&(R=p!==void 0?"p"+p:"k"+g(JSON.stringify([M,null,D]),0),Q===R&&(I=D,s=T[0]))}var U=a.bind(null,s);return a=function(re){U(re)},typeof U.$$FORM_ACTION=="function"&&(a.$$FORM_ACTION=function(re){re=U.$$FORM_ACTION(re),p!==void 0&&(Z(p,"target"),p+="",re.action=p);var de=re.data;return de&&(R===null&&(R=p!==void 0?"p"+p:"k"+g(JSON.stringify([M,null,D]),0)),de.append("$ACTION_KEY",R)),re}),[s,a,!1]}var ie=a.bind(null,s);return[s,function(re){ie(re)},!1]}function Js(a){var s=Y;return Y+=1,q===null&&(q=[]),fc(q,a,s)}function ri(){throw Error("Cache cannot be refreshed during server rendering.")}function Zi(){}function Qt(){}function pa(){if(Ft===0){tr=console.log,Se=console.info,Je=console.warn,_t=console.error,St=console.group,o=console.groupCollapsed,u=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Qt,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}Ft++}function Sd(){if(Ft--,Ft===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mt({},a,{value:tr}),info:mt({},a,{value:Se}),warn:mt({},a,{value:Je}),error:mt({},a,{value:_t}),group:mt({},a,{value:St}),groupCollapsed:mt({},a,{value:o}),groupEnd:mt({},a,{value:u})})}0>Ft&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ga(a){if(h===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);h=s&&s[1]||"",C=-1<p.stack.indexOf(`
|
|
112
|
-
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
113
|
-
`+h+a+C}function ma(a,s){if(!a||k)return"";var p=P.get(a);if(p!==void 0)return p;k=!0,p=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var D=null;D=ur.H,ur.H=null,pa();try{var T={DetermineComponentFrameRoot:function(){try{if(s){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(te){var ue=te}Reflect.construct(a,[],de)}else{try{de.call()}catch(te){ue=te}a.call(de.prototype)}}else{try{throw Error()}catch(te){ue=te}(de=a())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(te){if(te&&ue&&typeof te.stack=="string")return[te.stack,ue.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var R=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");R&&R.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=T.DetermineComponentFrameRoot(),H=M[0],Q=M[1];if(H&&Q){var U=H.split(`
|
|
114
|
-
`),ie=Q.split(`
|
|
115
|
-
`);for(M=R=0;R<U.length&&!U[R].includes("DetermineComponentFrameRoot");)R++;for(;M<ie.length&&!ie[M].includes("DetermineComponentFrameRoot");)M++;if(R===U.length||M===ie.length)for(R=U.length-1,M=ie.length-1;1<=R&&0<=M&&U[R]!==ie[M];)M--;for(;1<=R&&0<=M;R--,M--)if(U[R]!==ie[M]){if(R!==1||M!==1)do if(R--,M--,0>M||U[R]!==ie[M]){var re=`
|
|
116
|
-
`+U[R].replace(" at new "," at ");return a.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",a.displayName)),typeof a=="function"&&P.set(a,re),re}while(1<=R&&0<=M);break}}}finally{k=!1,ur.H=D,Sd(),Error.prepareStackTrace=p}return U=(U=a?a.displayName||a.name:"")?ga(U):"",typeof a=="function"&&P.set(a,U),U}function ni(a){var s=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=s,a.startsWith(`Error: react-stack-top-frame
|
|
117
|
-
`)&&(a=a.slice(29)),s=a.indexOf(`
|
|
118
|
-
`),s!==-1&&(a=a.slice(s+1)),s=a.indexOf("react_stack_bottom_frame"),s!==-1&&(s=a.lastIndexOf(`
|
|
119
|
-
`,s)),s!==-1)a=a.slice(0,s);else return"";return a}function qs(a){if(typeof a=="string")return ga(a);if(typeof a=="function")return a.prototype&&a.prototype.isReactComponent?ma(a,!0):ma(a,!1);if(typeof a=="object"&&a!==null){switch(a.$$typeof){case sl:return ma(a.render,!1);case Yn:return ma(a.type,!1);case xa:var s=a,p=s._payload;s=s._init;try{a=s(p)}catch{return ga("Lazy")}return qs(a)}if(typeof a.name=="string")return p=a.env,ga(a.name+(p?" ["+p+"]":""))}switch(a){case Co:return ga("SuspenseList");case ns:return ga("Suspense")}return""}function ai(a){if(typeof a=="object"&&a!==null&&typeof a.environmentName=="string"){var s=a.environmentName;a=[a].slice(0),typeof a[0]=="string"?a.splice(0,1,"%c%s%c "+a[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+s+" ",""):a.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+s+" ",""),a.unshift(console),s=qn.apply(console.error,a),s()}else console.error(a);return null}function va(){}function Ks(a,s,p,D,T,R,M,H,Q,U,ie){var re=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=a,this.renderState=s,this.rootFormatContext=p,this.progressiveChunkSize=D===void 0?12800:D,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=re,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=T===void 0?ai:T,this.onPostpone=U===void 0?va:U,this.onAllReady=R===void 0?va:R,this.onShellReady=M===void 0?va:M,this.onShellError=H===void 0?va:H,this.onFatalError=Q===void 0?va:Q,this.formState=ie===void 0?null:ie,this.didWarnForKey=null}function Wa(a,s,p,D,T,R,M,H,Q,U,ie,re){var de=oe();return 1e3<de-he&&(ur.recentlyCreatedOwnerStacks=0,he=de),s=new Ks(s,p,D,T,R,M,H,Q,U,ie,re),p=Ua(s,0,null,D,!1,!1),p.parentFlushed=!0,a=jn(s,null,a,-1,null,p,null,null,s.abortableTasks,null,D,null,$c,null,!1,vr,null),ja(a),s.pingedTasks.push(a),s}function ba(a,s,p,D,T,R,M,H,Q,U,ie){return a=Wa(a,s,p,D,T,R,M,H,Q,U,ie,void 0),a.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},a}function po(a,s){a.pingedTasks.push(s),a.pingedTasks.length===1&&(a.flushScheduled=a.destination!==null,a.trackedPostpones!==null||a.status===10?di(function(){return bo(a)}):b(function(){return bo(a)}))}function $t(a,s,p,D){return{status:Le,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null,contentState:ql(),fallbackState:ql(),contentPreamble:p,fallbackPreamble:D,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null}}function jn(a,s,p,D,T,R,M,H,Q,U,ie,re,de,ue,te,Ze,nt){a.allPendingTasks++,T===null?a.pendingRootTasks++:T.pendingTasks++;var je={replay:null,node:p,childIndex:D,ping:function(){return po(a,je)},blockedBoundary:T,blockedSegment:R,blockedPreamble:M,hoistableState:H,abortSet:Q,keyPath:U,formatContext:ie,context:re,treeContext:de,componentStack:ue,thenableState:s,isFallback:te};return je.debugTask=nt,Q.add(je),je}function Qs(a,s,p,D,T,R,M,H,Q,U,ie,re,de,ue,te,Ze){a.allPendingTasks++,R===null?a.pendingRootTasks++:R.pendingTasks++,p.pendingTasks++;var nt={replay:p,node:D,childIndex:T,ping:function(){return po(a,nt)},blockedBoundary:R,blockedSegment:null,blockedPreamble:null,hoistableState:M,abortSet:H,keyPath:Q,formatContext:U,context:ie,treeContext:re,componentStack:de,thenableState:s,isFallback:ue};return nt.debugTask=Ze,H.add(nt),nt}function Ua(a,s,p,D,T,R){return{status:Le,parentFlushed:!1,id:-1,index:s,chunks:[],children:[],preambleChildren:[],parentFormatContext:D,boundary:p,lastPushedText:T,textEmbedded:R}}function go(){if(Ne===null||Ne.componentStack===null)return"";var a=Ne.componentStack;try{var s="";if(typeof a.type=="string")s+=ga(a.type);else if(typeof a.type=="function"){if(!a.owner){var p=s,D=a.type,T=D?D.displayName||D.name:"",R=T?ga(T):"";s=p+R}}else a.owner||(s+=qs(a.type));for(;a;)p=null,a.debugStack!=null?p=ni(a.debugStack):(R=a,R.stack!=null&&(p=typeof R.stack!="string"?R.stack=ni(R.stack):R.stack)),(a=a.owner)&&p&&(s+=`
|
|
120
|
-
`+p);var M=s}catch(H){M=`
|
|
121
|
-
Error generating stack: `+H.message+`
|
|
122
|
-
`+H.stack}return M}function oi(a,s){if(s!=null)for(var p=0;p<s.length;p++){var D=s[p];typeof D.name=="string"&&D.debugStack!==void 0&&(a.componentStack={parent:a.componentStack,type:D,owner:D.owner,stack:D.debugStack},a.debugTask=D.debugTask)}}function ja(a){var s=a.node;if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Za:var p=s.type,D=s._owner,T=s._debugStack;oi(a,s._debugInfo),a.debugTask=s._debugTask,a.componentStack={parent:a.componentStack,type:p,owner:D,stack:T};break;case xa:oi(a,s._debugInfo);break;default:typeof s.then=="function"&&oi(a,s._debugInfo)}}function er(a){var s={};return a&&Object.defineProperty(s,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var p="",D=a;do p+=qs(D.type),D=D.parent;while(D);var T=p}catch(R){T=`
|
|
123
|
-
Error generating stack: `+R.message+`
|
|
124
|
-
`+R.stack}return Object.defineProperty(s,"componentStack",{value:T}),T}}),s}function Ga(a,s,p,D,T){a.errorDigest=s,p instanceof Error?(s=String(p.message),p=String(p.stack)):(s=typeof p=="object"&&p!==null?f(p):String(p),p=null),T=T?`Switched to client rendering because the server rendering aborted due to:
|
|
125
|
-
|
|
126
|
-
`:`Switched to client rendering because the server rendering errored:
|
|
127
|
-
|
|
128
|
-
`,a.errorMessage=T+s,a.errorStack=p!==null?T+p:null,a.errorComponentStack=D.componentStack}function Sr(a,s,p,D){if(a=a.onError,s=D?D.run(a.bind(null,s,p)):a(s,p),s!=null&&typeof s!="string")console.error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',typeof s);else return s}function Ya(a,s,p,D){p=a.onShellError;var T=a.onFatalError;D?(D.run(p.bind(null,s)),D.run(T.bind(null,s))):(p(s),T(s)),a.destination!==null?(a.status=et,N(a.destination,s)):(a.status=13,a.fatalError=s)}function mo(a,s,p,D,T,R){var M=s.thenableState;for(s.thenableState=null,Qn={},ks=s,Ts=a,_l=p,ce=!1,_=x=0,I=-1,Y=0,q=M,a=G(D,T,R);y;)y=!1,_=x=0,I=-1,Y=0,we+=1,l=null,a=D(T,R);return ti(),a}function au(a,s,p,D,T,R,M){var H=!1;if(R!==0&&a.formState!==null){var Q=s.blockedSegment;if(Q!==null){H=!0,Q=Q.chunks;for(var U=0;U<R;U++)U===M?Q.push(_o):Q.push(Bc)}}R=s.keyPath,s.keyPath=p,T?(p=s.treeContext,s.treeContext=Yi(p,1,0),en(a,s,D,-1),s.treeContext=p):H?en(a,s,D,-1):$r(a,s,D,-1),s.keyPath=R}function kr(a,s,p,D,T,R){if(typeof D=="function")if(D.prototype&&D.prototype.isReactComponent){var M=T;if("ref"in T){M={};for(var H in T)H!=="ref"&&(M[H]=T[H])}var Q=D.defaultProps;if(Q){M===T&&(M=mt({},M,T));for(var U in Q)M[U]===void 0&&(M[U]=Q[U])}var ie=M,re=vr,de=D.contextType;if("contextType"in D&&de!==null&&(de===void 0||de.$$typeof!==rs)&&!Qc.has(D)){Qc.add(D);var ue=de===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof de!="object"?" However, it is set to a "+typeof de+".":de.$$typeof===il?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(de).join(", ")+"}.";console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",vt(D)||"Component",ue)}typeof de=="object"&&de!==null&&(re=de._currentValue);var te=new D(ie,re);if(typeof D.getDerivedStateFromProps=="function"&&(te.state===null||te.state===void 0)){var Ze=vt(D)||"Component";Ta.has(Ze)||(Ta.add(Ze),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Ze,te.state===null?"null":"undefined",Ze))}if(typeof D.getDerivedStateFromProps=="function"||typeof te.getSnapshotBeforeUpdate=="function"){var nt=null,je=null,ke=null;if(typeof te.componentWillMount=="function"&&te.componentWillMount.__suppressDeprecationWarning!==!0?nt="componentWillMount":typeof te.UNSAFE_componentWillMount=="function"&&(nt="UNSAFE_componentWillMount"),typeof te.componentWillReceiveProps=="function"&&te.componentWillReceiveProps.__suppressDeprecationWarning!==!0?je="componentWillReceiveProps":typeof te.UNSAFE_componentWillReceiveProps=="function"&&(je="UNSAFE_componentWillReceiveProps"),typeof te.componentWillUpdate=="function"&&te.componentWillUpdate.__suppressDeprecationWarning!==!0?ke="componentWillUpdate":typeof te.UNSAFE_componentWillUpdate=="function"&&(ke="UNSAFE_componentWillUpdate"),nt!==null||je!==null||ke!==null){var kt=vt(D)||"Component",it=typeof D.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Pn.has(kt)||(Pn.add(kt),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
129
|
-
|
|
130
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
131
|
-
|
|
132
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
133
|
-
https://react.dev/link/unsafe-component-lifecycles`,kt,it,nt!==null?`
|
|
134
|
-
`+nt:"",je!==null?`
|
|
135
|
-
`+je:"",ke!==null?`
|
|
136
|
-
`+ke:""))}}var Ge=vt(D)||"Component";te.render||(D.prototype&&typeof D.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",Ge):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",Ge)),!te.getInitialState||te.getInitialState.isReactClassApproved||te.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",Ge),te.getDefaultProps&&!te.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",Ge),te.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",Ge),D.childContextTypes&&!pn.has(D)&&(pn.add(D),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",Ge)),D.contextTypes&&!Fs.has(D)&&(Fs.add(D),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",Ge)),typeof te.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",Ge),D.prototype&&D.prototype.isPureReactComponent&&typeof te.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",vt(D)||"A pure component"),typeof te.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",Ge),typeof te.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",Ge),typeof te.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",Ge),typeof te.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",Ge);var ar=te.props!==ie;te.props!==void 0&&ar&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",Ge),te.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",Ge,Ge),typeof te.getSnapshotBeforeUpdate!="function"||typeof te.componentDidUpdate=="function"||Cs.has(D)||(Cs.add(D),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",vt(D))),typeof te.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Ge),typeof te.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Ge),typeof D.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",Ge);var br=te.state;br&&(typeof br!="object"||Ja(br))&&console.error("%s.state: must be set to an object or null",Ge),typeof te.getChildContext=="function"&&typeof D.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",Ge);var Rt=te.state!==void 0?te.state:null;te.updater=Al,te.props=ie,te.state=Rt;var Mt={queue:[],replace:!1};te._reactInternals=Mt;var pt=D.contextType;if(te.context=typeof pt=="object"&&pt!==null?pt._currentValue:vr,te.state===ie){var or=vt(D)||"Component";Ei.has(or)||(Ei.add(or),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",or))}var ir=D.getDerivedStateFromProps;if(typeof ir=="function"){var Ke=ir(ie,Rt);if(Ke===void 0){var bt=vt(D)||"Component";Es.has(bt)||(Es.add(bt),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",bt))}var at=Ke==null?Rt:mt({},Rt,Ke);te.state=at}if(typeof D.getDerivedStateFromProps!="function"&&typeof te.getSnapshotBeforeUpdate!="function"&&(typeof te.UNSAFE_componentWillMount=="function"||typeof te.componentWillMount=="function")){var fr=te.state;if(typeof te.componentWillMount=="function"){if(te.componentWillMount.__suppressDeprecationWarning!==!0){var hr=vt(D)||"Unknown";No[hr]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
137
|
-
|
|
138
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
139
|
-
|
|
140
|
-
Please update the following components: %s`,hr),No[hr]=!0)}te.componentWillMount()}if(typeof te.UNSAFE_componentWillMount=="function"&&te.UNSAFE_componentWillMount(),fr!==te.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",vt(D)||"Component"),Al.enqueueReplaceState(te,te.state,null)),Mt.queue!==null&&0<Mt.queue.length){var zt=Mt.queue,gn=Mt.replace;if(Mt.queue=null,Mt.replace=!1,gn&&zt.length===1)te.state=zt[0];else{for(var Or=gn?zt[0]:te.state,mn=!0,eo=gn?1:0;eo<zt.length;eo++){var vn=zt[eo],Aa=typeof vn=="function"?vn.call(te,Or,ie,void 0):vn;Aa!=null&&(mn?(mn=!1,Or=mt({},Or,Aa)):mt(Or,Aa))}te.state=Or}}else Mt.queue=null}var jr=X(te);if(a.status===12)throw null;te.props!==ie&&(On||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",vt(D)||"a component"),On=!0);var to=s.keyPath;s.keyPath=p,$r(a,s,jr,-1),s.keyPath=to}else{if(D.prototype&&typeof D.prototype.render=="function"){var pr=vt(D)||"Unknown";Pr[pr]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",pr,pr),Pr[pr]=!0)}var Ht=mo(a,s,p,D,T,void 0);if(a.status===12)throw null;var wt=x!==0,yr=_,Gr=I;if(D.contextTypes){var _a=vt(D)||"Unknown";rr[_a]||(rr[_a]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",_a))}if(D&&D.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
141
|
-
%s.childContextTypes = ...`,D.displayName||D.name||"Component"),typeof D.getDerivedStateFromProps=="function"){var Yr=vt(D)||"Unknown";Lt[Yr]||(console.error("%s: Function components do not support getDerivedStateFromProps.",Yr),Lt[Yr]=!0)}if(typeof D.contextType=="object"&&D.contextType!==null){var bn=vt(D)||"Unknown";nr[bn]||(console.error("%s: Function components do not support contextType.",bn),nr[bn]=!0)}au(a,s,p,Ht,wt,yr,Gr)}else if(typeof D=="string"){var Vr=s.blockedSegment;if(Vr===null){var Ti=T.children,Nt=s.formatContext,wr=s.keyPath;s.formatContext=ne(Nt,D,T),s.keyPath=p,en(a,s,Ti,-1),s.formatContext=Nt,s.keyPath=wr}else{var Bn=Dd(Vr.chunks,D,T,a.resumableState,a.renderState,s.blockedPreamble,s.hoistableState,s.formatContext,Vr.lastPushedText,s.isFallback);Vr.lastPushedText=!1;var In=s.formatContext,yn=s.keyPath;if(s.keyPath=p,(s.formatContext=ne(In,D,T)).insertionMode===Ea){var Ra=Ua(a,0,null,s.formatContext,!1,!1);Vr.preambleChildren.push(Ra);var an=jn(a,null,Bn,-1,s.blockedBoundary,Ra,s.blockedPreamble,s.hoistableState,a.abortableTasks,s.keyPath,s.formatContext,s.context,s.treeContext,s.componentStack,s.isFallback,vr,s.debugTask);ja(an),a.pingedTasks.push(an)}else en(a,s,Bn,-1);s.formatContext=In,s.keyPath=yn;e:{var $n=Vr.chunks,ea=a.resumableState;switch(D){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(In.insertionMode<=mi){ea.hasBody=!0;break e}break;case"html":if(In.insertionMode===Ca){ea.hasHtml=!0;break e}break;case"head":if(In.insertionMode<=mi)break e}$n.push(qr(D))}Vr.lastPushedText=!1}}else{switch(D){case At:case ts:case Do:case es:var ta=s.keyPath;s.keyPath=p,$r(a,s,T.children,-1),s.keyPath=ta;return;case ll:if(T.mode!=="hidden"){var ra=s.keyPath;s.keyPath=p,$r(a,s,T.children,-1),s.keyPath=ra}return;case Co:var Xr=s.keyPath;s.keyPath=p,$r(a,s,T.children,-1),s.keyPath=Xr;return;case kd:case mc:throw Error("ReactDOMServer does not yet support scope components.");case ns:e:if(s.replay!==null){var wn=s.keyPath;s.keyPath=p;var Ai=T.children;try{en(a,s,Ai,-1)}finally{s.keyPath=wn}}else{var on=s.keyPath,ro=s.blockedBoundary,no=s.blockedPreamble,As=s.hoistableState,Ln=s.blockedSegment,_i=T.fallback,Br=T.children,xn=new Set,xt=s.formatContext.insertionMode<Ur?$t(a,xn,sr(),sr()):$t(a,xn,null,null);a.trackedPostpones!==null&&(xt.trackedContentKeyPath=p);var Zt=Ua(a,Ln.chunks.length,xt,s.formatContext,!1,!1);Ln.children.push(Zt),Ln.lastPushedText=!1;var xr=Ua(a,0,null,s.formatContext,!1,!1);if(xr.parentFlushed=!0,a.trackedPostpones!==null){var _s=[p[0],"Suspense Fallback",p[2]],Dn=[_s[1],_s[2],[],null];a.trackedPostpones.workingMap.set(_s,Dn),xt.trackedFallbackNode=Dn,s.blockedSegment=Zt,s.blockedPreamble=xt.fallbackPreamble,s.keyPath=_s,Zt.status=6;try{en(a,s,_i,-1),Zt.lastPushedText&&Zt.textEmbedded&&Zt.chunks.push(Fa),Zt.status=Ue}catch(lo){throw Zt.status=a.status===12?3:4,lo}finally{s.blockedSegment=Ln,s.blockedPreamble=no,s.keyPath=on}var na=jn(a,null,Br,-1,xt,xr,xt.contentPreamble,xt.contentState,s.abortSet,p,s.formatContext,s.context,s.treeContext,s.componentStack,s.isFallback,vr,s.debugTask);ja(na),a.pingedTasks.push(na)}else{s.blockedBoundary=xt,s.blockedPreamble=xt.contentPreamble,s.hoistableState=xt.contentState,s.blockedSegment=xr,s.keyPath=p,xr.status=6;try{if(en(a,s,Br,-1),xr.lastPushedText&&xr.textEmbedded&&xr.chunks.push(Fa),xr.status=Ue,ui(xt,xr),xt.pendingTasks===0&&xt.status===Le){xt.status=Ue,a.pendingRootTasks===0&&s.blockedPreamble&&qi(a);break e}}catch(lo){if(xt.status=qe,a.status===12){xr.status=3;var Na=a.fatalError}else xr.status=4,Na=lo;var Nl=er(s.componentStack),Wt=Sr(a,Na,Nl,s.debugTask);Ga(xt,Wt,Na,Nl,!1),si(a,xt)}finally{s.blockedBoundary=ro,s.blockedPreamble=no,s.hoistableState=As,s.blockedSegment=Ln,s.keyPath=on}var Po=jn(a,null,_i,-1,ro,Zt,xt.fallbackPreamble,xt.fallbackState,xn,[p[0],"Suspense Fallback",p[2]],s.formatContext,s.context,s.treeContext,s.componentStack,!0,vr,s.debugTask);ja(Po),a.pingedTasks.push(Po)}}return}if(typeof D=="object"&&D!==null)switch(D.$$typeof){case sl:if("ref"in T){var ao={};for(var Pa in T)Pa!=="ref"&&(ao[Pa]=T[Pa])}else ao=T;var Oo=mo(a,s,p,D.render,ao,R);au(a,s,p,Oo,x!==0,_,I);return;case Yn:kr(a,s,p,D.type,T,R);return;case gc:case rs:var oo=T.value,Ri=T.children,Bo=s.context,Lu=s.keyPath,Io=D._currentValue;D._currentValue=oo,D._currentRenderer!==void 0&&D._currentRenderer!==null&&D._currentRenderer!==$a&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),D._currentRenderer=$a;var io=Nn,Oa={parent:io,depth:io===null?0:io.depth+1,context:D,parentValue:Io,value:oo};Nn=Oa,s.context=Oa,s.keyPath=p,$r(a,s,Ri,-1);var Mn=Nn;if(Mn===null)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");Mn.context!==D&&console.error("The parent context is not the expected context. This is probably a bug in React."),Mn.context._currentValue=Mn.parentValue,D._currentRenderer!==void 0&&D._currentRenderer!==null&&D._currentRenderer!==$a&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),D._currentRenderer=$a;var Ba=Nn=Mn.parent;s.context=Ba,s.keyPath=Lu,Bo!==s.context&&console.error("Popping the context provider did not return back to the original snapshot. This is a bug in React.");return;case il:var Jt=D._context,Ut=T.children;typeof Ut!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var Mu=Ut(Jt._currentValue),Lo=s.keyPath;s.keyPath=p,$r(a,s,Mu,-1),s.keyPath=Lo;return;case xa:var zu=le(D);if(a.status===12)throw null;kr(a,s,p,zu,T,R);return}var so="";throw(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(so+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+((D==null?D:typeof D)+"."+so))}}function ou(a,s,p,D,T){var R=s.replay,M=s.blockedBoundary,H=Ua(a,0,null,s.formatContext,!1,!1);H.id=p,H.parentFlushed=!0;try{s.replay=null,s.blockedSegment=H,en(a,s,D,T),H.status=Ue,M===null?a.completedRootSegment=H:(ui(M,H),M.parentFlushed&&a.partialBoundaries.push(M))}finally{s.replay=R,s.blockedSegment=null}}function ii(a,s,p,D,T,R,M,H,Q,U){R=U.nodes;for(var ie=0;ie<R.length;ie++){var re=R[ie];if(T===re[1]){if(re.length===4){if(D!==null&&D!==re[0])throw Error("Expected the resume to render <"+re[0]+"> in this slot but instead it rendered <"+D+">. The tree doesn't match so React will fallback to client rendering.");var de=re[2];re=re[3],D=s.node,s.replay={nodes:de,slots:re,pendingTasks:1};try{if(kr(a,s,p,M,H,Q),s.replay.pendingTasks===1&&0<s.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");s.replay.pendingTasks--}catch(it){if(typeof it=="object"&&it!==null&&(it===Kn||typeof it.then=="function"))throw s.node===D&&(s.replay=U),it;s.replay.pendingTasks--,M=er(s.componentStack),H=a,a=s.blockedBoundary,p=it,Q=re,re=Sr(H,p,M,s.debugTask),tn(H,a,de,Q,p,re,M,!1)}s.replay=U}else{if(M!==ns)throw Error("Expected the resume to render <Suspense> in this slot but instead it rendered <"+(vt(M)||"Unknown")+">. The tree doesn't match so React will fallback to client rendering.");e:{U=void 0,M=re[5],Q=re[2],D=re[3],T=re[4]===null?[]:re[4][2],re=re[4]===null?null:re[4][3];var ue=s.keyPath,te=s.replay,Ze=s.blockedBoundary,nt=s.hoistableState,je=H.children,ke=H.fallback,kt=new Set;H=s.formatContext.insertionMode<Ur?$t(a,kt,sr(),sr()):$t(a,kt,null,null),H.parentFlushed=!0,H.rootSegmentID=M,s.blockedBoundary=H,s.hoistableState=H.contentState,s.keyPath=p,s.replay={nodes:Q,slots:D,pendingTasks:1};try{if(en(a,s,je,-1),s.replay.pendingTasks===1&&0<s.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");if(s.replay.pendingTasks--,H.pendingTasks===0&&H.status===Le){H.status=Ue,a.completedBoundaries.push(H);break e}}catch(it){H.status=qe,de=er(s.componentStack),U=Sr(a,it,de,s.debugTask),Ga(H,U,it,de,!1),s.replay.pendingTasks--,a.clientRenderedBoundaries.push(H)}finally{s.blockedBoundary=Ze,s.hoistableState=nt,s.replay=te,s.keyPath=ue}H=Qs(a,null,{nodes:T,slots:re,pendingTasks:0},ke,-1,Ze,H.fallbackState,kt,[p[0],"Suspense Fallback",p[2]],s.formatContext,s.context,s.treeContext,s.componentStack,!0,vr,s.debugTask),ja(H),a.pingedTasks.push(H)}}R.splice(ie,1);break}}}function $r(a,s,p,D){s.replay!==null&&typeof s.replay.slots=="number"?ou(a,s,s.replay.slots,p,D):(s.node=p,s.childIndex=D,p=s.componentStack,D=s.debugTask,ja(s),Gn(a,s),s.componentStack=p,s.debugTask=D)}function Gn(a,s){var p=s.node,D=s.childIndex;if(p!==null){if(typeof p=="object"){switch(p.$$typeof){case Za:var T=p.type,R=p.key;p=p.props;var M=p.ref;M=M!==void 0?M:null;var H=s.debugTask,Q=vt(T);R=R??(D===-1?0:D);var U=[s.keyPath,Q,R];s.replay!==null?H?H.run(ii.bind(null,a,s,U,Q,R,D,T,p,M,s.replay)):ii(a,s,U,Q,R,D,T,p,M,s.replay):H?H.run(kr.bind(null,a,s,U,T,p,M)):kr(a,s,U,T,p,M);return;case xo:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case xa:if(p=le(p),a.status===12)throw null;$r(a,s,p,D);return}if(Ja(p)){Ji(a,s,p,D);return}if(p===null||typeof p!="object"?R=null:(T=su&&p[su]||p["@@iterator"],R=typeof T=="function"?T:null),R&&(T=R.call(p))){if(T===p?(D!==-1||s.componentStack===null||typeof s.componentStack.type!="function"||Object.prototype.toString.call(s.componentStack.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(T)!=="[object Generator]")&&(nn||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),nn=!0):p.entries!==R||ot||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ot=!0),p=T.next(),!p.done){R=[];do R.push(p.value),p=T.next();while(!p.done);Ji(a,s,R,D)}return}if(typeof p.then=="function")return s.thenableState=null,$r(a,s,Js(p),D);if(p.$$typeof===rs)return $r(a,s,p._currentValue,D);throw a=Object.prototype.toString.call(p),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}typeof p=="string"?(s=s.blockedSegment,s!==null&&(s.lastPushedText=Fe(s.chunks,p,a.renderState,s.lastPushedText))):typeof p=="number"||typeof p=="bigint"?(s=s.blockedSegment,s!==null&&(s.lastPushedText=Fe(s.chunks,""+p,a.renderState,s.lastPushedText))):(typeof p=="function"&&(a=p.displayName||p.name||"Component",console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",a,a)),typeof p=="symbol"&&console.error(`Symbols are not valid as a React child.
|
|
142
|
-
%s`,String(p)))}}function Ji(a,s,p,D){var T=s.keyPath,R=s.componentStack,M=s.debugTask;if(oi(s,s.node._debugInfo),D!==-1&&(s.keyPath=[s.keyPath,"Fragment",D],s.replay!==null)){for(var H=s.replay,Q=H.nodes,U=0;U<Q.length;U++){var ie=Q[U];if(ie[1]===D){D=ie[2],ie=ie[3],s.replay={nodes:D,slots:ie,pendingTasks:1};try{if(Ji(a,s,p,-1),s.replay.pendingTasks===1&&0<s.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");s.replay.pendingTasks--}catch(je){if(typeof je=="object"&&je!==null&&(je===Kn||typeof je.then=="function"))throw je;s.replay.pendingTasks--;var re=er(s.componentStack);p=s.blockedBoundary;var de=je,ue=ie;ie=Sr(a,de,re,s.debugTask),tn(a,p,D,ue,de,ie,re,!1)}s.replay=H,Q.splice(U,1);break}}s.keyPath=T,s.componentStack=R,s.debugTask=M;return}if(H=s.treeContext,Q=p.length,s.replay!==null&&(U=s.replay.slots,U!==null&&typeof U=="object")){for(D=0;D<Q;D++)ie=p[D],s.treeContext=Yi(H,Q,D),de=U[D],typeof de=="number"?(ou(a,s,de,ie,D),delete U[D]):en(a,s,ie,D);s.treeContext=H,s.keyPath=T,s.componentStack=R,s.debugTask=M;return}for(U=0;U<Q;U++){if(D=p[U],ue=a,ie=s,de=D,de!==null&&typeof de=="object"&&(de.$$typeof===Za||de.$$typeof===xo)&&de._store&&(!de._store.validated&&de.key==null||de._store.validated===2)){if(typeof de._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");if(de._store.validated=1,re=ue.didWarnForKey,re==null&&(re=ue.didWarnForKey=new WeakSet),ue=ie.componentStack,ue!==null&&!re.has(ue)){re.add(ue);var te=vt(de.type);re=de._owner;var Ze=ue.owner;if(ue="",Ze&&typeof Ze.type<"u"){var nt=vt(Ze.type);nt&&(ue=`
|
|
143
|
-
|
|
144
|
-
Check the render method of \``+nt+"`.")}ue||te&&(ue=`
|
|
145
|
-
|
|
146
|
-
Check the top-level render call using <`+te+">."),te="",re!=null&&Ze!==re&&(Ze=null,typeof re.type<"u"?Ze=vt(re.type):typeof re.name=="string"&&(Ze=re.name),Ze&&(te=" It was passed a child from "+Ze+".")),re=ie.componentStack,ie.componentStack={parent:ie.componentStack,type:de.type,owner:de._owner,stack:de._debugStack},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',ue,te),ie.componentStack=re}}s.treeContext=Yi(H,Q,U),en(a,s,D,U)}s.treeContext=H,s.keyPath=T,s.componentStack=R,s.debugTask=M}function si(a,s){a=a.trackedPostpones,a!==null&&(s=s.trackedContentKeyPath,s!==null&&(s=a.workingMap.get(s),s!==void 0&&(s.length=4,s[2]=[],s[3]=null)))}function vo(a,s,p){return Qs(a,p,s.replay,s.node,s.childIndex,s.blockedBoundary,s.hoistableState,s.abortSet,s.keyPath,s.formatContext,s.context,s.treeContext,s.componentStack,s.isFallback,vr,s.debugTask)}function $s(a,s,p){var D=s.blockedSegment,T=Ua(a,D.chunks.length,null,s.formatContext,D.lastPushedText,!0);return D.children.push(T),D.lastPushedText=!1,jn(a,p,s.node,s.childIndex,s.blockedBoundary,T,s.blockedPreamble,s.hoistableState,s.abortSet,s.keyPath,s.formatContext,s.context,s.treeContext,s.componentStack,s.isFallback,vr,s.debugTask)}function en(a,s,p,D){var T=s.formatContext,R=s.context,M=s.keyPath,H=s.treeContext,Q=s.componentStack,U=s.debugTask,ie=s.blockedSegment;if(ie===null)try{return $r(a,s,p,D)}catch(ue){if(ti(),p=ue===Kn?ei():ue,typeof p=="object"&&p!==null){if(typeof p.then=="function"){D=fa(),a=vo(a,s,D).ping,p.then(a,a),s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,s.componentStack=Q,s.debugTask=U,da(R);return}if(p.message==="Maximum call stack size exceeded"){p=fa(),p=vo(a,s,p),a.pingedTasks.push(p),s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,s.componentStack=Q,s.debugTask=U,da(R);return}}}else{var re=ie.children.length,de=ie.chunks.length;try{return $r(a,s,p,D)}catch(ue){if(ti(),ie.children.length=re,ie.chunks.length=de,p=ue===Kn?ei():ue,typeof p=="object"&&p!==null){if(typeof p.then=="function"){D=fa(),a=$s(a,s,D).ping,p.then(a,a),s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,s.componentStack=Q,s.debugTask=U,da(R);return}if(p.message==="Maximum call stack size exceeded"){p=fa(),p=$s(a,s,p),a.pingedTasks.push(p),s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,s.componentStack=Q,s.debugTask=U,da(R);return}}}}throw s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,da(R),p}function el(a){var s=a.blockedBoundary;a=a.blockedSegment,a!==null&&(a.status=3,tl(this,s,a))}function tn(a,s,p,D,T,R,M,H){for(var Q=0;Q<p.length;Q++){var U=p[Q];if(U.length===4)tn(a,s,U[2],U[3],T,R,M,H);else{var ie=a;U=U[5];var re=T,de=R,ue=M,te=H,Ze=$t(ie,new Set,null,null);Ze.parentFlushed=!0,Ze.rootSegmentID=U,Ze.status=qe,Ga(Ze,de,re,ue,te),Ze.parentFlushed&&ie.clientRenderedBoundaries.push(Ze)}}if(p.length=0,D!==null){if(s===null)throw Error("We should not have any resumable nodes in the shell. This is a bug in React.");if(s.status!==qe&&(s.status=qe,Ga(s,R,T,M,H),s.parentFlushed&&a.clientRenderedBoundaries.push(s)),typeof D=="object")for(var nt in D)delete D[nt]}}function li(a,s,p){var D=a.blockedBoundary,T=a.blockedSegment;if(T!==null){if(T.status===6)return;T.status=3}if(T=er(a.componentStack),D===null){if(s.status!==13&&s.status!==et){if(D=a.replay,D===null){Sr(s,p,T,null),Ya(s,p,T,null);return}D.pendingTasks--,D.pendingTasks===0&&0<D.nodes.length&&(a=Sr(s,p,T,null),tn(s,null,D.nodes,D.slots,p,a,T,!0)),s.pendingRootTasks--,s.pendingRootTasks===0&&cn(s)}}else D.pendingTasks--,D.status!==qe&&(D.status=qe,a=Sr(s,p,T,null),D.status=qe,Ga(D,a,p,T,!0),si(s,D),D.parentFlushed&&s.clientRenderedBoundaries.push(D)),D.fallbackAbortableTasks.forEach(function(R){return li(R,s,p)}),D.fallbackAbortableTasks.clear();s.allPendingTasks--,s.allPendingTasks===0&&Va(s)}function ya(a,s){try{var p=a.renderState,D=p.onHeaders;if(D){var T=p.headers;if(T){p.headers=null;var R=T.preconnects;if(T.fontPreloads&&(R&&(R+=", "),R+=T.fontPreloads),T.highImagePreloads&&(R&&(R+=", "),R+=T.highImagePreloads),!s){var M=p.styles.values(),H=M.next();e:for(;0<T.remainingCapacity&&!H.done;H=M.next())for(var Q=H.value.sheets.values(),U=Q.next();0<T.remainingCapacity&&!U.done;U=Q.next()){var ie=U.value,re=ie.props,de=re.href,ue=ie.props,te=Wn(ue.href,"style",{crossOrigin:ue.crossOrigin,integrity:ue.integrity,nonce:ue.nonce,type:ue.type,fetchPriority:ue.fetchPriority,referrerPolicy:ue.referrerPolicy,media:ue.media});if(0<=(T.remainingCapacity-=te.length+2))p.resets.style[de]=Ar,R&&(R+=", "),R+=te,p.resets.style[de]=typeof re.crossOrigin=="string"||typeof re.integrity=="string"?[re.crossOrigin,re.integrity]:Ar;else break e}}D(R?{Link:R}:{})}}}catch(Ze){Sr(a,Ze,{},null)}}function cn(a){a.trackedPostpones===null&&ya(a,!0),a.trackedPostpones===null&&qi(a),a.onShellError=va,a=a.onShellReady,a()}function Va(a){ya(a,a.trackedPostpones===null?!0:a.completedRootSegment===null||a.completedRootSegment.status!==Re),qi(a),a=a.onAllReady,a()}function ui(a,s){if(s.chunks.length===0&&s.children.length===1&&s.children[0].boundary===null&&s.children[0].id===-1){var p=s.children[0];p.id=s.id,p.parentFlushed=!0,p.status===Ue&&ui(a,p)}else a.completedSegments.push(s)}function tl(a,s,p){if(s===null){if(p!==null&&p.parentFlushed){if(a.completedRootSegment!==null)throw Error("There can only be one root segment. This is a bug in React.");a.completedRootSegment=p}a.pendingRootTasks--,a.pendingRootTasks===0&&cn(a)}else s.pendingTasks--,s.status!==qe&&(s.pendingTasks===0?(s.status===Le&&(s.status=Ue),p!==null&&p.parentFlushed&&p.status===Ue&&ui(s,p),s.parentFlushed&&a.completedBoundaries.push(s),s.status===Ue&&(s.fallbackAbortableTasks.forEach(el,a),s.fallbackAbortableTasks.clear(),a.pendingRootTasks===0&&a.trackedPostpones===null&&s.contentPreamble!==null&&qi(a))):p!==null&&p.parentFlushed&&p.status===Ue&&(ui(s,p),s.completedSegments.length===1&&s.parentFlushed&&a.partialBoundaries.push(s)));a.allPendingTasks--,a.allPendingTasks===0&&Va(a)}function bo(a){if(a.status!==et&&a.status!==13){var s=Nn,p=ur.H;ur.H=We;var D=ur.A;ur.A=It;var T=ht;ht=a;var R=ur.getCurrentStack;ur.getCurrentStack=go;var M=He;He=a.resumableState;try{var H=a.pingedTasks,Q;for(Q=0;Q<H.length;Q++){var U=a,ie=H[Q],re=ie.blockedSegment;if(re===null){var de=void 0,ue=U;if(U=ie,U.replay.pendingTasks!==0){da(U.context),de=Ne,Ne=U;try{if(typeof U.replay.slots=="number"?ou(ue,U,U.replay.slots,U.node,U.childIndex):Gn(ue,U),U.replay.pendingTasks===1&&0<U.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");U.replay.pendingTasks--,U.abortSet.delete(U),tl(ue,U.blockedBoundary,null)}catch(at){ti();var te=at===Kn?ei():at;if(typeof te=="object"&&te!==null&&typeof te.then=="function"){var Ze=U.ping;te.then(Ze,Ze),U.thenableState=fa()}else{U.replay.pendingTasks--,U.abortSet.delete(U);var nt=er(U.componentStack),je=void 0,ke=ue,kt=U.blockedBoundary,it=ue.status===12?ue.fatalError:te,Ge=nt,ar=U.replay.nodes,br=U.replay.slots;je=Sr(ke,it,Ge,U.debugTask),tn(ke,kt,ar,br,it,je,Ge,!1),ue.pendingRootTasks--,ue.pendingRootTasks===0&&cn(ue),ue.allPendingTasks--,ue.allPendingTasks===0&&Va(ue)}}finally{Ne=de}}}else if(ue=de=void 0,je=ie,ke=re,ke.status===Le){ke.status=6,da(je.context),ue=Ne,Ne=je;var Rt=ke.children.length,Mt=ke.chunks.length;try{Gn(U,je),ke.lastPushedText&&ke.textEmbedded&&ke.chunks.push(Fa),je.abortSet.delete(je),ke.status=Ue,tl(U,je.blockedBoundary,ke)}catch(at){ti(),ke.children.length=Rt,ke.chunks.length=Mt;var pt=at===Kn?ei():U.status===12?U.fatalError:at;if(typeof pt=="object"&&pt!==null&&typeof pt.then=="function"){ke.status=Le,je.thenableState=fa();var or=je.ping;pt.then(or,or)}else{var ir=er(je.componentStack);je.abortSet.delete(je),ke.status=4;var Ke=je.blockedBoundary,bt=je.debugTask;de=Sr(U,pt,ir,bt),Ke===null?Ya(U,pt,ir,bt):(Ke.pendingTasks--,Ke.status!==qe&&(Ke.status=qe,Ga(Ke,de,pt,ir,!1),si(U,Ke),Ke.parentFlushed&&U.clientRenderedBoundaries.push(Ke),U.pendingRootTasks===0&&U.trackedPostpones===null&&Ke.contentPreamble!==null&&qi(U))),U.allPendingTasks--,U.allPendingTasks===0&&Va(U)}}finally{Ne=ue}}}H.splice(0,Q),a.destination!==null&&yo(a,a.destination)}catch(at){H={},Sr(a,at,H,null),Ya(a,at,H,null)}finally{He=M,ur.H=p,ur.A=D,ur.getCurrentStack=R,p===We&&da(s),ht=T}}}function rl(a,s,p){s.preambleChildren.length&&p.push(s.preambleChildren);for(var D=!1,T=0;T<s.children.length;T++)D=wa(a,s.children[T],p)||D;return D}function wa(a,s,p){var D=s.boundary;if(D===null)return rl(a,s,p);var T=D.contentPreamble,R=D.fallbackPreamble;if(T===null||R===null)return!1;switch(D.status){case Ue:if(Fr(a.renderState,T),s=D.completedSegments[0],!s)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return rl(a,s,p);case Re:if(a.trackedPostpones!==null)return!0;case qe:if(s.status===Ue)return Fr(a.renderState,R),rl(a,s,p);default:return!0}}function qi(a){if(a.completedRootSegment&&a.completedPreambleSegments===null){var s=[],p=wa(a,a.completedRootSegment,s),D=a.renderState.preamble;(p===!1||D.headChunks&&D.bodyChunks)&&(a.completedPreambleSegments=s)}}function ci(a,s,p,D){switch(p.parentFlushed=!0,p.status){case Le:p.id=a.nextSegmentId++;case Re:return D=p.id,p.lastPushedText=!1,p.textEmbedded=!1,a=a.renderState,v(s,ml),v(s,a.placeholderPrefix),a=F(D.toString(16)),v(s,a),E(s,Lc);case Ue:p.status=dr;var T=!0,R=p.chunks,M=0;p=p.children;for(var H=0;H<p.length;H++){for(T=p[H];M<T.index;M++)v(s,R[M]);T=Ki(a,s,T,D)}for(;M<R.length-1;M++)v(s,R[M]);return M<R.length&&(T=E(s,R[M])),T;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ki(a,s,p,D){var T=p.boundary;if(T===null)return ci(a,s,p,D);if(T.parentFlushed=!0,T.status===qe){var R=T.errorDigest,M=T.errorMessage,H=T.errorStack,Q=T.errorComponentStack;return E(s,Pd),v(s,Od),R&&(v(s,Mc),v(s,F(pe(R))),v(s,yl)),M&&(v(s,Bd),v(s,F(pe(M))),v(s,yl)),H&&(v(s,Id),v(s,F(pe(H))),v(s,yl)),Q&&(v(s,Ld),v(s,F(pe(Q))),v(s,yl)),E(s,Ve),ci(a,s,p,D),(a=T.fallbackPreamble)&&ic(s,a),E(s,bl)}if(T.status!==Ue)return T.status===Le&&(T.rootSegmentID=a.nextSegmentId++),0<T.completedSegments.length&&a.partialBoundaries.push(T),oc(s,a.renderState,T.rootSegmentID),D&&(T=T.fallbackState,T.styles.forEach(ca,D),T.stylesheets.forEach(Vs,D)),ci(a,s,p,D),E(s,bl);if(T.byteSize>a.progressiveChunkSize)return T.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(T),oc(s,a.renderState,T.rootSegmentID),ci(a,s,p,D),E(s,bl);if(D&&(p=T.contentState,p.styles.forEach(ca,D),p.stylesheets.forEach(Vs,D)),E(s,vl),p=T.completedSegments,p.length!==1)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return Ki(a,s,p[0],D),(a=T.contentPreamble)&&ic(s,a),E(s,bl)}function nl(a,s,p,D){return Cd(s,a.renderState,p.parentFormatContext,p.id),Ki(a,s,p,D),Sn(s,p.parentFormatContext)}function iu(a,s,p){for(var D=p.completedSegments,T=0;T<D.length;T++)hc(a,s,p,D[T]);D.length=0,Kr(s,p.contentState,a.renderState),D=a.resumableState,a=a.renderState,T=p.rootSegmentID,p=p.contentState;var R=a.stylesToHoist;return a.stylesToHoist=!1,v(s,a.startInlineScript),R?(D.instructions&gi)===Vn?(D.instructions=D.instructions|Da|gi,v(s,Su)):(D.instructions&Da)===Vn?(D.instructions|=Da,v(s,xi)):v(s,Cl):(D.instructions&gi)===Vn?(D.instructions|=gi,v(s,Qa)):v(s,Dl),D=F(T.toString(16)),v(s,a.boundaryPrefix),v(s,D),v(s,Vd),v(s,a.segmentPrefix),v(s,D),R?(v(s,Bt),uc(s,p)):v(s,Xc),p=E(s,Xd),Zl(s,a)&&p}function hc(a,s,p,D){if(D.status===dr)return!0;var T=p.contentState,R=D.id;if(R===-1){if((D.id=p.rootSegmentID)===-1)throw Error("A root segment ID must have been assigned by now. This is a bug in React.");return nl(a,s,D,T)}return R===p.rootSegmentID?nl(a,s,D,T):(nl(a,s,D,T),p=a.resumableState,a=a.renderState,v(s,a.startInlineScript),(p.instructions&ls)===Vn?(p.instructions|=ls,v(s,Eu)):v(s,Yc),v(s,a.segmentPrefix),R=F(R.toString(16)),v(s,R),v(s,Vc),v(s,a.placeholderPrefix),v(s,R),s=E(s,Fu),s)}function yo(a,s){lr=new Uint8Array(2048),mr=0;try{if(!(0<a.pendingRootTasks)){var p,D=a.completedRootSegment;if(D!==null){if(D.status===Re)return;var T=a.completedPreambleSegments;if(T===null)return;var R=a.renderState,M=R.preamble,H=M.htmlChunks,Q=M.headChunks,U;if(H){for(U=0;U<H.length;U++)v(s,H[U]);if(Q)for(U=0;U<Q.length;U++)v(s,Q[U]);else v(s,Ye("head")),v(s,Vt)}else if(Q)for(U=0;U<Q.length;U++)v(s,Q[U]);var ie=R.charsetChunks;for(U=0;U<ie.length;U++)v(s,ie[U]);ie.length=0,R.preconnects.forEach(Qr,s),R.preconnects.clear();var re=R.viewportChunks;for(U=0;U<re.length;U++)v(s,re[U]);re.length=0,R.fontPreloads.forEach(Qr,s),R.fontPreloads.clear(),R.highImagePreloads.forEach(Qr,s),R.highImagePreloads.clear(),R.styles.forEach(Jl,s);var de=R.importMapChunks;for(U=0;U<de.length;U++)v(s,de[U]);de.length=0,R.bootstrapScripts.forEach(Qr,s),R.scripts.forEach(Qr,s),R.scripts.clear(),R.bulkPreloads.forEach(Qr,s),R.bulkPreloads.clear();var ue=R.hoistableChunks;for(U=0;U<ue.length;U++)v(s,ue[U]);for(R=ue.length=0;R<T.length;R++){var te=T[R];for(M=0;M<te.length;M++)Ki(a,s,te[M],null)}var Ze=a.renderState.preamble,nt=Ze.headChunks;(Ze.htmlChunks||nt)&&v(s,qr("head"));var je=Ze.bodyChunks;if(je)for(T=0;T<je.length;T++)v(s,je[T]);Ki(a,s,D,null),a.completedRootSegment=null,Zl(s,a.renderState)}var ke=a.renderState;D=0;var kt=ke.viewportChunks;for(D=0;D<kt.length;D++)v(s,kt[D]);kt.length=0,ke.preconnects.forEach(Qr,s),ke.preconnects.clear(),ke.fontPreloads.forEach(Qr,s),ke.fontPreloads.clear(),ke.highImagePreloads.forEach(Qr,s),ke.highImagePreloads.clear(),ke.styles.forEach(lc,s),ke.scripts.forEach(Qr,s),ke.scripts.clear(),ke.bulkPreloads.forEach(Qr,s),ke.bulkPreloads.clear();var it=ke.hoistableChunks;for(D=0;D<it.length;D++)v(s,it[D]);it.length=0;var Ge=a.clientRenderedBoundaries;for(p=0;p<Ge.length;p++){var ar=Ge[p];ke=s;var br=a.resumableState,Rt=a.renderState,Mt=ar.rootSegmentID,pt=ar.errorDigest,or=ar.errorMessage,ir=ar.errorStack,Ke=ar.errorComponentStack;v(ke,Rt.startInlineScript),(br.instructions&us)===Vn?(br.instructions|=us,v(ke,Zd)):v(ke,Zn),v(ke,Rt.boundaryPrefix),v(ke,F(Mt.toString(16))),v(ke,El),(pt||or||ir||Ke)&&(v(ke,Jn),v(ke,F(Us(pt||"")))),(or||ir||Ke)&&(v(ke,Jn),v(ke,F(Us(or||"")))),(ir||Ke)&&(v(ke,Jn),v(ke,F(Us(ir||"")))),Ke&&(v(ke,Jn),v(ke,F(Us(Ke))));var bt=E(ke,ku);if(!bt){a.destination=null,p++,Ge.splice(0,p);return}}Ge.splice(0,p);var at=a.completedBoundaries;for(p=0;p<at.length;p++)if(!iu(a,s,at[p])){a.destination=null,p++,at.splice(0,p);return}at.splice(0,p),A(s),lr=new Uint8Array(2048),mr=0;var fr=a.partialBoundaries;for(p=0;p<fr.length;p++){e:{Ge=a,ar=s;var hr=fr[p],zt=hr.completedSegments;for(bt=0;bt<zt.length;bt++)if(!hc(Ge,ar,hr,zt[bt])){bt++,zt.splice(0,bt);var gn=!1;break e}zt.splice(0,bt),gn=Kr(ar,hr.contentState,Ge.renderState)}if(!gn){a.destination=null,p++,fr.splice(0,p);return}}fr.splice(0,p);var Or=a.completedBoundaries;for(p=0;p<Or.length;p++)if(!iu(a,s,Or[p])){a.destination=null,p++,Or.splice(0,p);return}Or.splice(0,p)}}finally{a.allPendingTasks===0&&a.pingedTasks.length===0&&a.clientRenderedBoundaries.length===0&&a.completedBoundaries.length===0?(a.flushScheduled=!1,p=a.resumableState,p.hasBody&&v(s,qr("body")),p.hasHtml&&v(s,qr("html")),A(s),a.abortableTasks.size!==0&&console.error("There was still abortable task at the root when we closed. This is a bug in React."),a.status=et,s.close(),a.destination=null):A(s)}}function al(a){a.flushScheduled=a.destination!==null,di(function(){return bo(a)}),b(function(){a.status===10&&(a.status=11),a.trackedPostpones===null&&ya(a,a.pendingRootTasks===0)})}function Xa(a){a.flushScheduled===!1&&a.pingedTasks.length===0&&a.destination!==null&&(a.flushScheduled=!0,b(function(){var s=a.destination;s?yo(a,s):a.flushScheduled=!1}))}function ol(a,s){if(a.status===13)a.status=et,N(s,a.fatalError);else if(a.status!==et&&a.destination===null){a.destination=s;try{yo(a,s)}catch(p){s={},Sr(a,p,s,null),Ya(a,p,s,null)}}}function wo(a,s){(a.status===11||a.status===10)&&(a.status=12);try{var p=a.abortableTasks;if(0<p.size){var D=s===void 0?Error("The render was aborted by the server without a reason."):typeof s=="object"&&s!==null&&typeof s.then=="function"?Error("The render was aborted by the server with a promise."):s;a.fatalError=D,p.forEach(function(T){return li(T,a,D)}),p.clear()}a.destination!==null&&yo(a,a.destination)}catch(T){s={},Sr(a,T,s,null),Ya(a,T,s,null)}}function pc(){var a=Qi.version;if(a!=="19.1.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
147
|
-
- react: `+(a+`
|
|
148
|
-
- react-dom: 19.1.1
|
|
149
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}var Qi=L,$i=Ho,Za=Symbol.for("react.transitional.element"),xo=Symbol.for("react.portal"),es=Symbol.for("react.fragment"),ts=Symbol.for("react.strict_mode"),Do=Symbol.for("react.profiler"),gc=Symbol.for("react.provider"),il=Symbol.for("react.consumer"),rs=Symbol.for("react.context"),sl=Symbol.for("react.forward_ref"),ns=Symbol.for("react.suspense"),Co=Symbol.for("react.suspense_list"),Yn=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),mc=Symbol.for("react.scope"),ll=Symbol.for("react.activity"),At=Symbol.for("react.legacy_hidden"),st=Symbol.for("react.memo_cache_sentinel"),kd=Symbol.for("react.view_transition"),su=Symbol.iterator,Ja=Array.isArray,lu=new WeakMap,vc=new WeakMap,uu=Symbol.for("react.client.reference"),cu=new MessageChannel,Eo=[];cu.port1.onmessage=function(){var a=Eo.shift();a&&a()};var Td=Promise,di=typeof queueMicrotask=="function"?queueMicrotask:function(a){Td.resolve(null).then(a).catch(m)},lr=null,mr=0,Mr=new TextEncoder,mt=Object.assign,lt=Object.prototype.hasOwnProperty,Fo=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ul={},fi={},bc=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),So=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),hi={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Tn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},An={},yc=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),as=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wc=!1,xc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Tr={},os=/^on./,Gt=/^on[^A-Z]/,du=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fu=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_n=/^(?:webkit|moz|o)[A-Z]/,ko=/^-ms-/,hu=/-(.)/g,is=/;\s*$/,To={},ss={},Yt=!1,zr=!1,Ad=/["'&<>]/,Dc=/([A-Z])/g,Cc=/^ms-/,pi=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,ur=Qi.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Hr=$i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,cl=Object.freeze({pending:!1,data:null,method:null,action:null}),cr=Hr.d;Hr.d={f:cr.f,r:cr.r,D:function(a){var s=ht||null;if(s){var p=s.resumableState,D=s.renderState;if(typeof a=="string"&&a){if(!p.dnsResources.hasOwnProperty(a)){p.dnsResources[a]=Et,p=D.headers;var T,R;(R=p&&0<p.remainingCapacity)&&(R=(T="<"+ua(a)+">; rel=dns-prefetch",0<=(p.remainingCapacity-=T.length+2))),R?(D.resets.dns[a]=Et,p.preconnects&&(p.preconnects+=", "),p.preconnects+=T):(T=[],Ct(T,{href:a,rel:"dns-prefetch"}),D.preconnects.add(T))}Xa(s)}}else cr.D(a)},C:function(a,s){var p=ht||null;if(p){var D=p.resumableState,T=p.renderState;if(typeof a=="string"&&a){var R=s==="use-credentials"?"credentials":typeof s=="string"?"anonymous":"default";if(!D.connectResources[R].hasOwnProperty(a)){D.connectResources[R][a]=Et,D=T.headers;var M,H;if(H=D&&0<D.remainingCapacity){if(H="<"+ua(a)+">; rel=preconnect",typeof s=="string"){var Q=Ys(s,"crossOrigin");H+='; crossorigin="'+Q+'"'}H=(M=H,0<=(D.remainingCapacity-=M.length+2))}H?(T.resets.connect[R][a]=Et,D.preconnects&&(D.preconnects+=", "),D.preconnects+=M):(R=[],Ct(R,{rel:"preconnect",href:a,crossOrigin:s}),T.preconnects.add(R))}Xa(p)}}else cr.C(a,s)},L:function(a,s,p){var D=ht||null;if(D){var T=D.resumableState,R=D.renderState;if(s&&a){switch(s){case"image":if(p)var M=p.imageSrcSet,H=p.imageSizes,Q=p.fetchPriority;var U=M?M+`
|
|
150
|
-
`+(H||""):a;if(T.imageResources.hasOwnProperty(U))return;T.imageResources[U]=Ar,T=R.headers;var ie;T&&0<T.remainingCapacity&&typeof M!="string"&&Q==="high"&&(ie=Wn(a,s,p),0<=(T.remainingCapacity-=ie.length+2))?(R.resets.image[U]=Ar,T.highImagePreloads&&(T.highImagePreloads+=", "),T.highImagePreloads+=ie):(T=[],Ct(T,mt({rel:"preload",href:M?void 0:a,as:s},p)),Q==="high"?R.highImagePreloads.add(T):(R.bulkPreloads.add(T),R.preloads.images.set(U,T)));break;case"style":if(T.styleResources.hasOwnProperty(a))return;M=[],Ct(M,mt({rel:"preload",href:a,as:s},p)),T.styleResources[a]=!p||typeof p.crossOrigin!="string"&&typeof p.integrity!="string"?Ar:[p.crossOrigin,p.integrity],R.preloads.stylesheets.set(a,M),R.bulkPreloads.add(M);break;case"script":if(T.scriptResources.hasOwnProperty(a))return;M=[],R.preloads.scripts.set(a,M),R.bulkPreloads.add(M),Ct(M,mt({rel:"preload",href:a,as:s},p)),T.scriptResources[a]=!p||typeof p.crossOrigin!="string"&&typeof p.integrity!="string"?Ar:[p.crossOrigin,p.integrity];break;default:if(T.unknownResources.hasOwnProperty(s)){if(M=T.unknownResources[s],M.hasOwnProperty(a))return}else M={},T.unknownResources[s]=M;if(M[a]=Ar,(T=R.headers)&&0<T.remainingCapacity&&s==="font"&&(U=Wn(a,s,p),0<=(T.remainingCapacity-=U.length+2)))R.resets.font[a]=Ar,T.fontPreloads&&(T.fontPreloads+=", "),T.fontPreloads+=U;else switch(T=[],a=mt({rel:"preload",href:a,as:s},p),Ct(T,a),s){case"font":R.fontPreloads.add(T);break;default:R.bulkPreloads.add(T)}}Xa(D)}}else cr.L(a,s,p)},m:function(a,s){var p=ht||null;if(p){var D=p.resumableState,T=p.renderState;if(a){var R=s&&typeof s.as=="string"?s.as:"script";switch(R){case"script":if(D.moduleScriptResources.hasOwnProperty(a))return;R=[],D.moduleScriptResources[a]=!s||typeof s.crossOrigin!="string"&&typeof s.integrity!="string"?Ar:[s.crossOrigin,s.integrity],T.preloads.moduleScripts.set(a,R);break;default:if(D.moduleUnknownResources.hasOwnProperty(R)){var M=D.unknownResources[R];if(M.hasOwnProperty(a))return}else M={},D.moduleUnknownResources[R]=M;R=[],M[a]=Ar}Ct(R,mt({rel:"modulepreload",href:a},s)),T.bulkPreloads.add(R),Xa(p)}}else cr.m(a,s)},X:function(a,s){var p=ht||null;if(p){var D=p.resumableState,T=p.renderState;if(a){var R=D.scriptResources.hasOwnProperty(a)?D.scriptResources[a]:void 0;R!==Et&&(D.scriptResources[a]=Et,s=mt({src:a,async:!0},s),R&&(R.length===2&&ut(s,R),a=T.preloads.scripts.get(a))&&(a.length=0),a=[],T.scripts.add(a),Ws(a,s),Xa(p))}}else cr.X(a,s)},S:function(a,s,p){var D=ht||null;if(D){var T=D.resumableState,R=D.renderState;if(a){s=s||"default";var M=R.styles.get(s),H=T.styleResources.hasOwnProperty(a)?T.styleResources[a]:void 0;H!==Et&&(T.styleResources[a]=Et,M||(M={precedence:F(pe(s)),rules:[],hrefs:[],sheets:new Map},R.styles.set(s,M)),s={state:Nr,props:mt({rel:"stylesheet",href:a,"data-precedence":s},p)},H&&(H.length===2&&ut(s.props,H),(R=R.preloads.stylesheets.get(a))&&0<R.length?R.length=0:s.state=ws),M.sheets.set(a,s),Xa(D))}}else cr.S(a,s,p)},M:function(a,s){var p=ht||null;if(p){var D=p.resumableState,T=p.renderState;if(a){var R=D.moduleScriptResources.hasOwnProperty(a)?D.moduleScriptResources[a]:void 0;R!==Et&&(D.moduleScriptResources[a]=Et,s=mt({src:a,type:"module",async:!0},s),R&&(R.length===2&&ut(s,R),a=T.preloads.moduleScripts.get(a))&&(a.length=0),a=[],T.scripts.add(a),Ws(a,s),Xa(p))}}else cr.M(a,s)}};var Vn=0,ls=1,gi=2,us=4,Da=8,Et=null,Ar=[];Object.freeze(Ar),S('"></template>');var Ec=S("<script>"),pu=S("<\/script>"),_r=S('<script src="'),dn=S('<script type="module" src="'),Wr=S('" nonce="'),dl=S('" integrity="'),gu=S('" crossorigin="'),Ot=S('" async=""><\/script>'),Ao=/(<\/|<)(s)(cript)/gi,cs=S('<script type="importmap">'),Fc=S("<\/script>"),ds={},fl=0,Ca=0,mi=1,Ur=2,Ea=3,fn=4,Me=5,Xn=6,hl=7,mu=8,fs=9,Fa=S("<!-- -->"),vu=new Map,Sc=S(' style="'),kc=S(":"),_d=S(";"),Rr=S(" "),hn=S('="'),rn=S('"'),bu=S('=""'),hs=S(pe("javascript:throw new Error('React form unexpectedly submitted.')")),Tc=S('<input type="hidden"'),Vt=S(">"),ps=S("/>"),Ac=!1,_c=!1,Rc=!1,yu=!1,wu=!1,Nc=!1,Pc=!1,gs=!1,xu=!1,ms=!1,vs=!1,pl=S(' selected=""'),Oc=S(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`),_o=S("<!--F!-->"),Bc=S("<!--F-->"),Rn=/(<\/|<)(s)(tyle)/gi,vi=S(`
|
|
151
|
-
`),Ic=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Du=new Map,gl=S("<!DOCTYPE html>"),bs=new Map,ml=S('<template id="'),Lc=S('"></template>'),vl=S("<!--$-->"),Rd=S('<!--$?--><template id="'),Nd=S('"></template>'),Pd=S("<!--$!-->"),bl=S("<!--/$-->"),Od=S("<template"),yl=S('"'),Mc=S(' data-dgst="'),Bd=S(' data-msg="'),Id=S(' data-stck="'),Ld=S(' data-cstck="'),Ve=S("></template>"),zc=S("<!--"),ys=S("-->"),Cu=S('<div hidden id="'),bi=S('">'),Md=S("</div>"),zd=S('<svg aria-hidden="true" style="display:none" id="'),Hd=S('">'),Wd=S("</svg>"),wl=S('<math aria-hidden="true" style="display:none" id="'),qa=S('">'),Ud=S("</math>"),jd=S('<table hidden id="'),yi=S('">'),Hc=S("</table>"),Wc=S('<table hidden><tbody id="'),Uc=S('">'),xl=S("</tbody></table>"),wi=S('<table hidden><tr id="'),Ka=S('">'),Gd=S("</tr></table>"),Yd=S('<table hidden><colgroup id="'),jc=S('">'),Gc=S("</colgroup></table>"),Eu=S('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Yc=S('$RS("'),Vc=S('","'),Fu=S('")<\/script>');S('<template data-rsi="" data-sid="'),S('" data-pid="');var Qa=S('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),Dl=S('$RC("'),Su=S(`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
|
|
152
|
-
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
153
|
-
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
154
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),xi=S(`$RM=new Map;
|
|
155
|
-
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
156
|
-
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
157
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),Cl=S('$RR("'),Vd=S('","'),Bt=S('",'),Xc=S('"'),Xd=S(")<\/script>");S('<template data-rci="" data-bid="'),S('<template data-rri="" data-bid="'),S('" data-sid="'),S('" data-sty="');var Zd=S('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),Zn=S('$RX("'),El=S('"'),Jn=S(","),ku=S(")<\/script>");S('<template data-rxi="" data-bid="'),S('" data-dgst="'),S('" data-msg="'),S('" data-stck="'),S('" data-cstck="');var Tu=/[<\u2028\u2029]/g,Au=/[&><\u2028\u2029]/g,Zc=S('<style media="not all" data-precedence="'),_u=S('" data-href="'),Jc=S('">'),Fl=S("</style>"),Xt=!1,Sl=!0,Sa=[],qc=S('<style data-precedence="'),Ru=S('" data-href="'),Nu=S(" "),kl=S('">'),Pu=S("</style>"),Kc=S("["),ka=S(",["),Di=S(","),Ou=S("]"),Nr=0,ws=1,xs=2,Tl=3,Ro=/[<>\r\n]/g,ct=/["';,\r\n]/g,qn=Function.prototype.bind,Ci=Symbol.for("react.client.reference"),vr={};Object.freeze(vr);var $a={},Nn=null,Ds={},No={},Ta=new Set,Cs=new Set,Pn=new Set,Ei=new Set,Es=new Set,Fs=new Set,pn=new Set,Qc=new Set,Fi=new Set,Al={enqueueSetState:function(a,s,p){var D=a._reactInternals;D.queue===null?Xs(a,"setState"):(D.queue.push(s),p!=null&&kn(p))},enqueueReplaceState:function(a,s,p){a=a._reactInternals,a.replace=!0,a.queue=[s],p!=null&&kn(p)},enqueueForceUpdate:function(a,s){a._reactInternals.queue===null?Xs(a,"forceUpdate"):s!=null&&kn(s)}},$c={id:1,overflow:""},Si=Math.clz32?Math.clz32:$o,Bu=Math.log,ki=Math.LN2,Kn=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Ss=null,Iu=typeof Object.is=="function"?Object.is:$l,Qn=null,ks=null,Ts=null,_l=null,Rl=null,l=null,d=!1,y=!1,x=0,_=0,I=-1,Y=0,q=null,ae=null,we=0,ce=!1,Xe,We={readContext:Zs,use:function(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Js(a);if(a.$$typeof===rs)return Zs(a)}throw Error("An unsupported type was passed to use(): "+String(a))},useContext:function(a){return Xe="useContext",Un(),a._currentValue},useMemo:nu,useReducer:ho,useRef:function(a){Qn=Un(),l=tu();var s=l.memoizedState;return s===null?(a={current:a},Object.seal(a),l.memoizedState=a):s},useState:function(a){return Xe="useState",ho(ru,a)},useInsertionEffect:Zi,useLayoutEffect:Zi,useCallback:function(a,s){return nu(function(){return a},s)},useImperativeHandle:Zi,useEffect:Zi,useDebugValue:Zi,useDeferredValue:function(a,s){return Un(),s!==void 0?s:a},useTransition:function(){return Un(),[!1,Fd]},useId:function(){var a=ks.treeContext,s=a.overflow;a=a.id,a=(a&~(1<<32-Si(a)-1)).toString(32)+s;var p=He;if(p===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return s=x++,a="ยซ"+p.idPrefix+"R"+a,0<s&&(a+="H"+s.toString(32)),a+"ยป"},useSyncExternalStore:function(a,s,p){if(p===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return p()},useOptimistic:function(a){return Un(),[a,ha]},useActionState:Xi,useFormState:Xi,useHostTransitionStatus:function(){return Un(),cl},useMemoCache:function(a){for(var s=Array(a),p=0;p<a;p++)s[p]=st;return s},useCacheRefresh:function(){return ri}},He=null,Ne=null,It={getCacheForType:function(){throw Error("Not implemented.")},getOwner:function(){return Ne===null?null:Ne.componentStack}},Ft=0,tr,Se,Je,_t,St,o,u;Qt.__reactDisabledLog=!0;var h,C,k=!1,P=new(typeof WeakMap=="function"?WeakMap:Map),W={react_stack_bottom_frame:function(a,s,p){return a(s,p)}},G=W.react_stack_bottom_frame.bind(W),ee={react_stack_bottom_frame:function(a){return a.render()}},X=ee.react_stack_bottom_frame.bind(ee),fe={react_stack_bottom_frame:function(a){var s=a._init;return s(a._payload)}},le=fe.react_stack_bottom_frame.bind(fe),he=0;if(typeof performance=="object"&&typeof performance.now=="function")var xe=performance,oe=function(){return xe.now()};else{var $e=Date;oe=function(){return $e.now()}}var qe=4,Le=0,Ue=1,dr=2,Re=5,et=14,ht=null,Pr={},rr={},nr={},Lt={},On=!1,nn=!1,ot=!1;pc(),pc(),id.prerender=function(a,s){return new Promise(function(p,D){var T=s?s.onHeaders:void 0,R;T&&(R=function(ie){T(new Headers(ie))});var M=Pt(s?s.identifierPrefix:void 0,s?s.unstable_externalRuntimeSrc:void 0,s?s.bootstrapScriptContent:void 0,s?s.bootstrapScripts:void 0,s?s.bootstrapModules:void 0),H=ba(a,M,rt(M,void 0,s?s.unstable_externalRuntimeSrc:void 0,s?s.importMap:void 0,R,s?s.maxHeadersLength:void 0),j(s?s.namespaceURI:void 0),s?s.progressiveChunkSize:void 0,s?s.onError:void 0,function(){var ie={prelude:new ReadableStream({type:"bytes",pull:function(re){ol(H,re)},cancel:function(re){H.destination=null,wo(H,re)}},{highWaterMark:0})};p(ie)},void 0,void 0,D,s?s.onPostpone:void 0);if(s&&s.signal){var Q=s.signal;if(Q.aborted)wo(H,Q.reason);else{var U=function(){wo(H,Q.reason),Q.removeEventListener("abort",U)};Q.addEventListener("abort",U)}}al(H)})},id.renderToReadableStream=function(a,s){return new Promise(function(p,D){var T,R,M=new Promise(function(ue,te){R=ue,T=te}),H=s?s.onHeaders:void 0,Q;H&&(Q=function(ue){H(new Headers(ue))});var U=Pt(s?s.identifierPrefix:void 0,s?s.unstable_externalRuntimeSrc:void 0,s?s.bootstrapScriptContent:void 0,s?s.bootstrapScripts:void 0,s?s.bootstrapModules:void 0),ie=Wa(a,U,rt(U,s?s.nonce:void 0,s?s.unstable_externalRuntimeSrc:void 0,s?s.importMap:void 0,Q,s?s.maxHeadersLength:void 0),j(s?s.namespaceURI:void 0),s?s.progressiveChunkSize:void 0,s?s.onError:void 0,R,function(){var ue=new ReadableStream({type:"bytes",pull:function(te){ol(ie,te)},cancel:function(te){ie.destination=null,wo(ie,te)}},{highWaterMark:0});ue.allReady=M,p(ue)},function(ue){M.catch(function(){}),D(ue)},T,s?s.onPostpone:void 0,s?s.formState:void 0);if(s&&s.signal){var re=s.signal;if(re.aborted)wo(ie,re.reason);else{var de=function(){wo(ie,re.reason),re.removeEventListener("abort",de)};re.addEventListener("abort",de)}}al(ie)})},id.version="19.1.1"})(),id}var wm;function Nw(){if(wm)return Bl;wm=1;var e,t;return e=_w(),t=Rw(),Bl.version=e.version,Bl.renderToString=e.renderToString,Bl.renderToStaticMarkup=e.renderToStaticMarkup,Bl.renderToReadableStream=t.renderToReadableStream,t.resume&&(Bl.resume=t.resume),Bl}var Pw=Nw(),Qf={exports:{}},$f={exports:{}},dt={},xm;function Ow(){if(xm)return dt;xm=1;/** @license React v16.13.1
|
|
158
|
-
* react-is.development.js
|
|
159
|
-
*
|
|
160
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the MIT license found in the
|
|
163
|
-
* LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/return(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,g=e?Symbol.for("react.context"):60110,b=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,A=e?Symbol.for("react.suspense_list"):60120,F=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,B=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function Z(be){return typeof be=="string"||typeof be=="function"||be===n||be===m||be===c||be===i||be===E||be===A||typeof be=="object"&&be!==null&&(be.$$typeof===S||be.$$typeof===F||be.$$typeof===f||be.$$typeof===g||be.$$typeof===v||be.$$typeof===O||be.$$typeof===B||be.$$typeof===z||be.$$typeof===N)}function V(be){if(typeof be=="object"&&be!==null){var Kt=be.$$typeof;switch(Kt){case t:var la=be.type;switch(la){case b:case m:case n:case c:case i:case E:return la;default:var Ct=la&&la.$$typeof;switch(Ct){case g:case v:case S:case F:case f:return Ct;default:return Kt}}case r:return Kt}}}var J=b,$=m,K=g,ve=f,se=t,me=v,ge=n,Qe=S,pe=F,Ie=r,tt=c,rt=i,Pt=E,sr=!1;function Pe(be){return sr||(sr=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(be)||V(be)===b}function j(be){return V(be)===m}function ne(be){return V(be)===g}function Fe(be){return V(be)===f}function _e(be){return typeof be=="object"&&be!==null&&be.$$typeof===t}function De(be){return V(be)===v}function Ae(be){return V(be)===n}function Oe(be){return V(be)===S}function ze(be){return V(be)===F}function Ee(be){return V(be)===r}function Be(be){return V(be)===c}function ye(be){return V(be)===i}function Ce(be){return V(be)===E}dt.AsyncMode=J,dt.ConcurrentMode=$,dt.ContextConsumer=K,dt.ContextProvider=ve,dt.Element=se,dt.ForwardRef=me,dt.Fragment=ge,dt.Lazy=Qe,dt.Memo=pe,dt.Portal=Ie,dt.Profiler=tt,dt.StrictMode=rt,dt.Suspense=Pt,dt.isAsyncMode=Pe,dt.isConcurrentMode=j,dt.isContextConsumer=ne,dt.isContextProvider=Fe,dt.isElement=_e,dt.isForwardRef=De,dt.isFragment=Ae,dt.isLazy=Oe,dt.isMemo=ze,dt.isPortal=Ee,dt.isProfiler=Be,dt.isStrictMode=ye,dt.isSuspense=Ce,dt.isValidElementType=Z,dt.typeOf=V})(),dt}var Dm;function Cm(){return Dm||(Dm=1,$f.exports=Ow()),$f.exports}/*
|
|
165
|
-
object-assign
|
|
166
|
-
(c) Sindre Sorhus
|
|
167
|
-
@license MIT
|
|
168
|
-
*/var eh,Em;function Bw(){if(Em)return eh;Em=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function i(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var f={},g=0;g<10;g++)f["_"+String.fromCharCode(g)]=g;var b=Object.getOwnPropertyNames(f).map(function(v){return f[v]});if(b.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return eh=i()?Object.assign:function(c,f){for(var g,b=n(c),m,v=1;v<arguments.length;v++){g=Object(arguments[v]);for(var E in g)t.call(g,E)&&(b[E]=g[E]);if(e){m=e(g);for(var A=0;A<m.length;A++)r.call(g,m[A])&&(b[m[A]]=g[m[A]])}}return b},eh}var th,Fm;function Sm(){if(Fm)return th;Fm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return th=e,th}var rh,km;function Tm(){return km||(km=1,rh=Function.call.bind(Object.prototype.hasOwnProperty)),rh}var nh,Am;function Iw(){if(Am)return nh;Am=1;var e=function(){};{var t=Sm(),r={},n=Tm();e=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}}}function i(c,f,g,b,m){for(var v in c)if(n(c,v)){var E;try{if(typeof c[v]!="function"){var A=Error((b||"React class")+": "+g+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}E=c[v](f,v,b,g,null,t)}catch(S){E=S}if(E&&!(E instanceof Error)&&e((b||"React class")+": type specification of "+g+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in r)){r[E.message]=!0;var F=m?m():"";e("Failed "+g+" type: "+E.message+(F??""))}}}return i.resetWarningCache=function(){r={}},nh=i,nh}var ah,_m;function Lw(){if(_m)return ah;_m=1;var e=Cm(),t=Bw(),r=Sm(),n=Tm(),i=Iw(),c=function(){};c=function(g){var b="Warning: "+g;typeof console<"u"&&console.error(b);try{throw new Error(b)}catch{}};function f(){return null}return ah=function(g,b){var m=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function E(j){var ne=j&&(m&&j[m]||j[v]);if(typeof ne=="function")return ne}var A="<<anonymous>>",F={array:B("array"),bigint:B("bigint"),bool:B("boolean"),func:B("function"),number:B("number"),object:B("object"),string:B("string"),symbol:B("symbol"),any:z(),arrayOf:Z,element:V(),elementType:J(),instanceOf:$,node:me(),objectOf:ve,oneOf:K,oneOfType:se,shape:Qe,exact:pe};function S(j,ne){return j===ne?j!==0||1/j===1/ne:j!==j&&ne!==ne}function N(j,ne){this.message=j,this.data=ne&&typeof ne=="object"?ne:{},this.stack=""}N.prototype=Error.prototype;function O(j){var ne={},Fe=0;function _e(Ae,Oe,ze,Ee,Be,ye,Ce){if(Ee=Ee||A,ye=ye||ze,Ce!==r){if(b){var be=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw be.name="Invariant Violation",be}else if(typeof console<"u"){var Kt=Ee+":"+ze;!ne[Kt]&&Fe<3&&(c("You are manually calling a React.PropTypes validation function for the `"+ye+"` prop on `"+Ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ne[Kt]=!0,Fe++)}}return Oe[ze]==null?Ae?Oe[ze]===null?new N("The "+Be+" `"+ye+"` is marked as required "+("in `"+Ee+"`, but its value is `null`.")):new N("The "+Be+" `"+ye+"` is marked as required in "+("`"+Ee+"`, but its value is `undefined`.")):null:j(Oe,ze,Ee,Be,ye)}var De=_e.bind(null,!1);return De.isRequired=_e.bind(null,!0),De}function B(j){function ne(Fe,_e,De,Ae,Oe,ze){var Ee=Fe[_e],Be=rt(Ee);if(Be!==j){var ye=Pt(Ee);return new N("Invalid "+Ae+" `"+Oe+"` of type "+("`"+ye+"` supplied to `"+De+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return O(ne)}function z(){return O(f)}function Z(j){function ne(Fe,_e,De,Ae,Oe){if(typeof j!="function")return new N("Property `"+Oe+"` of component `"+De+"` has invalid PropType notation inside arrayOf.");var ze=Fe[_e];if(!Array.isArray(ze)){var Ee=rt(ze);return new N("Invalid "+Ae+" `"+Oe+"` of type "+("`"+Ee+"` supplied to `"+De+"`, expected an array."))}for(var Be=0;Be<ze.length;Be++){var ye=j(ze,Be,De,Ae,Oe+"["+Be+"]",r);if(ye instanceof Error)return ye}return null}return O(ne)}function V(){function j(ne,Fe,_e,De,Ae){var Oe=ne[Fe];if(!g(Oe)){var ze=rt(Oe);return new N("Invalid "+De+" `"+Ae+"` of type "+("`"+ze+"` supplied to `"+_e+"`, expected a single ReactElement."))}return null}return O(j)}function J(){function j(ne,Fe,_e,De,Ae){var Oe=ne[Fe];if(!e.isValidElementType(Oe)){var ze=rt(Oe);return new N("Invalid "+De+" `"+Ae+"` of type "+("`"+ze+"` supplied to `"+_e+"`, expected a single ReactElement type."))}return null}return O(j)}function $(j){function ne(Fe,_e,De,Ae,Oe){if(!(Fe[_e]instanceof j)){var ze=j.name||A,Ee=Pe(Fe[_e]);return new N("Invalid "+Ae+" `"+Oe+"` of type "+("`"+Ee+"` supplied to `"+De+"`, expected ")+("instance of `"+ze+"`."))}return null}return O(ne)}function K(j){if(!Array.isArray(j))return arguments.length>1?c("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):c("Invalid argument supplied to oneOf, expected an array."),f;function ne(Fe,_e,De,Ae,Oe){for(var ze=Fe[_e],Ee=0;Ee<j.length;Ee++)if(S(ze,j[Ee]))return null;var Be=JSON.stringify(j,function(Ce,be){var Kt=Pt(be);return Kt==="symbol"?String(be):be});return new N("Invalid "+Ae+" `"+Oe+"` of value `"+String(ze)+"` "+("supplied to `"+De+"`, expected one of "+Be+"."))}return O(ne)}function ve(j){function ne(Fe,_e,De,Ae,Oe){if(typeof j!="function")return new N("Property `"+Oe+"` of component `"+De+"` has invalid PropType notation inside objectOf.");var ze=Fe[_e],Ee=rt(ze);if(Ee!=="object")return new N("Invalid "+Ae+" `"+Oe+"` of type "+("`"+Ee+"` supplied to `"+De+"`, expected an object."));for(var Be in ze)if(n(ze,Be)){var ye=j(ze,Be,De,Ae,Oe+"."+Be,r);if(ye instanceof Error)return ye}return null}return O(ne)}function se(j){if(!Array.isArray(j))return c("Invalid argument supplied to oneOfType, expected an instance of array."),f;for(var ne=0;ne<j.length;ne++){var Fe=j[ne];if(typeof Fe!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+sr(Fe)+" at index "+ne+"."),f}function _e(De,Ae,Oe,ze,Ee){for(var Be=[],ye=0;ye<j.length;ye++){var Ce=j[ye],be=Ce(De,Ae,Oe,ze,Ee,r);if(be==null)return null;be.data&&n(be.data,"expectedType")&&Be.push(be.data.expectedType)}var Kt=Be.length>0?", expected one of type ["+Be.join(", ")+"]":"";return new N("Invalid "+ze+" `"+Ee+"` supplied to "+("`"+Oe+"`"+Kt+"."))}return O(_e)}function me(){function j(ne,Fe,_e,De,Ae){return Ie(ne[Fe])?null:new N("Invalid "+De+" `"+Ae+"` supplied to "+("`"+_e+"`, expected a ReactNode."))}return O(j)}function ge(j,ne,Fe,_e,De){return new N((j||"React class")+": "+ne+" type `"+Fe+"."+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+De+"`.")}function Qe(j){function ne(Fe,_e,De,Ae,Oe){var ze=Fe[_e],Ee=rt(ze);if(Ee!=="object")return new N("Invalid "+Ae+" `"+Oe+"` of type `"+Ee+"` "+("supplied to `"+De+"`, expected `object`."));for(var Be in j){var ye=j[Be];if(typeof ye!="function")return ge(De,Ae,Oe,Be,Pt(ye));var Ce=ye(ze,Be,De,Ae,Oe+"."+Be,r);if(Ce)return Ce}return null}return O(ne)}function pe(j){function ne(Fe,_e,De,Ae,Oe){var ze=Fe[_e],Ee=rt(ze);if(Ee!=="object")return new N("Invalid "+Ae+" `"+Oe+"` of type `"+Ee+"` "+("supplied to `"+De+"`, expected `object`."));var Be=t({},Fe[_e],j);for(var ye in Be){var Ce=j[ye];if(n(j,ye)&&typeof Ce!="function")return ge(De,Ae,Oe,ye,Pt(Ce));if(!Ce)return new N("Invalid "+Ae+" `"+Oe+"` key `"+ye+"` supplied to `"+De+"`.\nBad object: "+JSON.stringify(Fe[_e],null," ")+`
|
|
169
|
-
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var be=Ce(ze,ye,De,Ae,Oe+"."+ye,r);if(be)return be}return null}return O(ne)}function Ie(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(Ie);if(j===null||g(j))return!0;var ne=E(j);if(ne){var Fe=ne.call(j),_e;if(ne!==j.entries){for(;!(_e=Fe.next()).done;)if(!Ie(_e.value))return!1}else for(;!(_e=Fe.next()).done;){var De=_e.value;if(De&&!Ie(De[1]))return!1}}else return!1;return!0;default:return!1}}function tt(j,ne){return j==="symbol"?!0:ne?ne["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ne instanceof Symbol:!1}function rt(j){var ne=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":tt(ne,j)?"symbol":ne}function Pt(j){if(typeof j>"u"||j===null)return""+j;var ne=rt(j);if(ne==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return ne}function sr(j){var ne=Pt(j);switch(ne){case"array":case"object":return"an "+ne;case"boolean":case"date":case"regexp":return"a "+ne;default:return ne}}function Pe(j){return!j.constructor||!j.constructor.name?A:j.constructor.name}return F.checkPropTypes=i,F.resetWarningCache=i.resetWarningCache,F.PropTypes=F,F},ah}var Rm;function Mw(){if(Rm)return Qf.exports;Rm=1;{var e=Cm(),t=!0;Qf.exports=Lw()(e.isElement,t)}return Qf.exports}var zw=Mw();const co=nd(zw);var Hw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nm(e,t){return e(t={exports:{}},t.exports),t.exports}var Ww=Nm((function(e){(function(t){var r=function(O,B,z){if(!b(B)||v(B)||E(B)||A(B)||g(B))return B;var Z,V=0,J=0;if(m(B))for(Z=[],J=B.length;V<J;V++)Z.push(r(O,B[V],z));else for(var $ in Z={},B)Object.prototype.hasOwnProperty.call(B,$)&&(Z[O($,z)]=r(O,B[$],z));return Z},n=function(O){return F(O)?O:(O=O.replace(/[\-_\s]+(.)?/g,(function(B,z){return z?z.toUpperCase():""}))).substr(0,1).toLowerCase()+O.substr(1)},i=function(O){var B=n(O);return B.substr(0,1).toUpperCase()+B.substr(1)},c=function(O,B){return(function(z,Z){var V=(Z=Z||{}).separator||"_",J=Z.split||/(?=[A-Z])/;return z.split(J).join(V)})(O,B).toLowerCase()},f=Object.prototype.toString,g=function(O){return typeof O=="function"},b=function(O){return O===Object(O)},m=function(O){return f.call(O)=="[object Array]"},v=function(O){return f.call(O)=="[object Date]"},E=function(O){return f.call(O)=="[object RegExp]"},A=function(O){return f.call(O)=="[object Boolean]"},F=function(O){return(O-=0)==O},S=function(O,B){var z=B&&"process"in B?B.process:B;return typeof z!="function"?O:function(Z,V){return z(Z,O,V)}},N={camelize:n,decamelize:c,pascalize:i,depascalize:c,camelizeKeys:function(O,B){return r(S(n,B),O)},decamelizeKeys:function(O,B){return r(S(c,B),O,B)},pascalizeKeys:function(O,B){return r(S(i,B),O)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=N:t.humps=N})(Hw)})).decamelize,Uw=function(e){if(Array.isArray(e))return e},jw=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,c=void 0;try{for(var f,g=e[Symbol.iterator]();!(n=(f=g.next()).done)&&(r.push(f.value),r.length!==t);n=!0);}catch(b){i=!0,c=b}finally{try{n||g.return==null||g.return()}finally{if(i)throw c}}return r}},Pm=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},Gw=function(e,t){if(e){if(typeof e=="string")return Pm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pm(e,t):void 0}},Yw=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
170
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Vw=function(e,t){return Uw(e)||jw(e,t)||Gw(e,t)||Yw()},Om=Nm((function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},t.apply(this,arguments)}e.exports=t})),Xw=function(e,t){if(e==null)return{};var r,n,i={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},Bm=function(e,t){if(e==null)return{};var r,n,i=Xw(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},Zw=L.createContext(null);function Im(e){var t=e.children,r=t===void 0?"":t,n=Bm(e,["children"]);return typeof r!="string"&&(r=Pw.renderToString(r)),L.createElement("template",Om({},n,{dangerouslySetInnerHTML:{__html:r}}))}function Lm(e){var t=e.root,r=e.children;return Ho.createPortal(r===void 0?null:r,t)}function Jw(e){var t=L.forwardRef((function(r,n){var i,c,f=r.mode,g=f===void 0?"open":f,b=r.delegatesFocus,m=b!==void 0&&b,v=r.styleSheets,E=v===void 0?[]:v,A=r.ssr,F=A!==void 0&&A,S=r.children,N=Bm(r,["mode","delegatesFocus","styleSheets","ssr","children"]),O=(c=L.useRef((i=n)&&i.current),L.useEffect((function(){i&&(i.current=c.current)}),[i]),c),B=L.useState(null),z=Vw(B,2),Z=z[0],V=z[1],J="node_".concat(g).concat(m);return L.useLayoutEffect((function(){if(O.current)try{if(typeof n=="function"&&n(O.current),F){var $=O.current.shadowRoot;return void V($)}var K=O.current.attachShadow({mode:g,delegatesFocus:m});E.length>0&&(K.adoptedStyleSheets=E),V(K)}catch(ve){(function(se){var me=se.error,ge=se.styleSheets,Qe=se.root;switch(me.name){case"NotSupportedError":ge.length>0&&(Qe.adoptedStyleSheets=ge);break;default:throw me}})({error:ve,styleSheets:E,root:Z})}}),[n,O,E]),L.createElement(L.Fragment,null,L.createElement(e.tag,Om({key:J,ref:O},N),(Z||F)&&L.createElement(Zw.Provider,{value:Z},F?L.createElement(Im,{shadowroot:g,shadowrootmode:g},e.render({root:Z,ssr:F,children:S})):L.createElement(Lm,{root:Z},e.render({root:Z,ssr:F,children:S})))))}));return t.propTypes={mode:co.oneOf(["open","closed"]),delegatesFocus:co.bool,styleSheets:co.arrayOf(co.instanceOf(globalThis.CSSStyleSheet)),ssr:co.bool,children:co.node},t}Im.propTypes={children:co.oneOfType([co.string,co.node])},Lm.propTypes={root:co.object.isRequired,children:co.node};var oh=new Map;function qw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,i){var c=Ww(i,{separator:"-"}),f="".concat(t,"-").concat(c);return oh.has(f)||oh.set(f,Jw({tag:c,render:r})),oh.get(f)}})}var Kw=qw();function jt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];{var i=i2[e],c=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+e;throw Error("[Immer] "+c)}}function Il(e){return!!e&&!!e[ft]}function Uo(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===s2})(e)||Array.isArray(e)||!!e[ud]||!!(!((t=e.constructor)===null||t===void 0)&&t[ud])||sf(e)||lf(e))}function Ll(e,t,r){r===void 0&&(r=!1),Os(e)===0?(r?Object.keys:mh)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function Os(e){var t=e[ft];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:sf(e)?2:lf(e)?3:0}function sd(e,t){return Os(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function of(e,t){return Os(e)===2?e.get(t):e[t]}function Mm(e,t,r){var n=Os(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Qw(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function sf(e){return a2&&e instanceof Map}function lf(e){return o2&&e instanceof Set}function Ir(e){return e.o||e.t}function ih(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=l2(e);delete t[ft];for(var r=mh(t),n=0;n<r.length;n++){var i=r[n],c=t[i];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[i]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function sh(e,t){return t===void 0&&(t=!1),lh(e)||Il(e)||!Uo(e)||(Os(e)>1&&(e.set=e.add=e.clear=e.delete=$w),Object.freeze(e),t&&Ll(e,(function(r,n){return sh(n,!0)}),!0)),e}function $w(){jt(2)}function lh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function jo(e){var t=vh[e];return t||jt(18,e),t}function zm(e,t){vh[e]||(vh[e]=t)}function uf(){return Gu||jt(0),Gu}function uh(e,t){t&&(jo("Patches"),e.u=[],e.s=[],e.v=t)}function cf(e){ch(e),e.p.forEach(e2),e.p=null}function ch(e){e===Gu&&(Gu=e.l)}function Hm(e){return Gu={p:[],l:Gu,h:e,m:!0,_:0}}function e2(e){var t=e[ft];t.i===0||t.i===1?t.j():t.g=!0}function dh(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||jo("ES5").S(t,e,n),n?(r[ft].P&&(cf(t),jt(4)),Uo(e)&&(e=df(t,e),t.l||ff(t,e)),t.u&&jo("Patches").M(r[ft].t,e,t.u,t.s)):e=df(t,r,[]),cf(t),t.u&&t.v(t.u,t.s),e!==gh?e:void 0}function df(e,t,r){if(lh(t))return t;var n=t[ft];if(!n)return Ll(t,(function(g,b){return Wm(e,n,t,g,b,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return ff(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ih(n.k):n.o,c=i,f=!1;n.i===3&&(c=new Set(i),i.clear(),f=!0),Ll(c,(function(g,b){return Wm(e,n,i,g,b,r,f)})),ff(e,i,!1),r&&e.u&&jo("Patches").N(n,r,e.u,e.s)}return n.o}function Wm(e,t,r,n,i,c,f){if(i===r&&jt(5),Il(i)){var g=df(e,i,c&&t&&t.i!==3&&!sd(t.R,n)?c.concat(n):void 0);if(Mm(r,n,g),!Il(g))return;e.m=!1}else f&&r.add(i);if(Uo(i)&&!lh(i)){if(!e.h.D&&e._<1)return;df(e,i),t&&t.A.l||ff(e,i)}}function ff(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&sh(t,r)}function fh(e,t){var r=e[ft];return(r?Ir(r):e)[t]}function Um(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Pi(e){e.P||(e.P=!0,e.l&&Pi(e.l))}function hh(e){e.o||(e.o=ih(e.t))}function ld(e,t,r){var n=sf(t)?jo("MapSet").F(t,r):lf(t)?jo("MapSet").T(t,r):e.O?(function(i,c){var f=Array.isArray(i),g={i:f?1:0,A:c?c.A:uf(),P:!1,I:!1,R:{},l:c,t:i,k:null,o:null,j:null,C:!1},b=g,m=bh;f&&(b=[g],m=cd);var v=Proxy.revocable(b,m),E=v.revoke,A=v.proxy;return g.k=A,g.j=E,A})(t,r):jo("ES5").J(t,r);return(r?r.A:uf()).p.push(n),n}function t2(e){return Il(e)||jt(22,e),(function t(r){if(!Uo(r))return r;var n,i=r[ft],c=Os(r);if(i){if(!i.P&&(i.i<4||!jo("ES5").K(i)))return i.t;i.I=!0,n=jm(r,c),i.I=!1}else n=jm(r,c);return Ll(n,(function(f,g){i&&of(i.t,f)===g||Mm(n,f,t(g))})),c===3?new Set(n):n})(e)}function jm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ih(e)}function r2(){function e(n){if(!Uo(n))return n;if(Array.isArray(n))return n.map(e);if(sf(n))return new Map(Array.from(n.entries()).map((function(f){return[f[0],e(f[1])]})));if(lf(n))return new Set(Array.from(n).map(e));var i=Object.create(Object.getPrototypeOf(n));for(var c in n)i[c]=e(n[c]);return sd(n,ud)&&(i[ud]=n[ud]),i}function t(n){return Il(n)?e(n):n}var r="add";zm("Patches",{$:function(n,i){return i.forEach((function(c){for(var f=c.path,g=c.op,b=n,m=0;m<f.length-1;m++){var v=Os(b),E=f[m];typeof E!="string"&&typeof E!="number"&&(E=""+E),v!==0&&v!==1||E!=="__proto__"&&E!=="constructor"||jt(24),typeof b=="function"&&E==="prototype"&&jt(24),typeof(b=of(b,E))!="object"&&jt(15,f.join("/"))}var A=Os(b),F=e(c.value),S=f[f.length-1];switch(g){case"replace":switch(A){case 2:return b.set(S,F);case 3:jt(16);default:return b[S]=F}case r:switch(A){case 1:return S==="-"?b.push(F):b.splice(S,0,F);case 2:return b.set(S,F);case 3:return b.add(F);default:return b[S]=F}case"remove":switch(A){case 1:return b.splice(S,1);case 2:return b.delete(S);case 3:return b.delete(c.value);default:return delete b[S]}default:jt(17,g)}})),n},N:function(n,i,c,f){switch(n.i){case 0:case 4:case 2:return(function(g,b,m,v){var E=g.t,A=g.o;Ll(g.R,(function(F,S){var N=of(E,F),O=of(A,F),B=S?sd(E,F)?"replace":r:"remove";if(N!==O||B!=="replace"){var z=b.concat(F);m.push(B==="remove"?{op:B,path:z}:{op:B,path:z,value:O}),v.push(B===r?{op:"remove",path:z}:B==="remove"?{op:r,path:z,value:t(N)}:{op:"replace",path:z,value:t(N)})}}))})(n,i,c,f);case 5:case 1:return(function(g,b,m,v){var E=g.t,A=g.R,F=g.o;if(F.length<E.length){var S=[F,E];E=S[0],F=S[1];var N=[v,m];m=N[0],v=N[1]}for(var O=0;O<E.length;O++)if(A[O]&&F[O]!==E[O]){var B=b.concat([O]);m.push({op:"replace",path:B,value:t(F[O])}),v.push({op:"replace",path:B,value:t(E[O])})}for(var z=E.length;z<F.length;z++){var Z=b.concat([z]);m.push({op:r,path:Z,value:t(F[z])})}E.length<F.length&&v.push({op:"replace",path:b.concat(["length"]),value:E.length})})(n,i,c,f);case 3:return(function(g,b,m,v){var E=g.t,A=g.o,F=0;E.forEach((function(S){if(!A.has(S)){var N=b.concat([F]);m.push({op:"remove",path:N,value:S}),v.unshift({op:r,path:N,value:S})}F++})),F=0,A.forEach((function(S){if(!E.has(S)){var N=b.concat([F]);m.push({op:r,path:N,value:S}),v.unshift({op:"remove",path:N,value:S})}F++}))})(n,i,c,f)}},M:function(n,i,c,f){c.push({op:"replace",path:[],value:i===gh?void 0:i}),f.push({op:"replace",path:[],value:n})}})}function n2(){function e(g,b){function m(){this.constructor=g}i(g,b),g.prototype=(m.prototype=b.prototype,new m)}function t(g){g.o||(g.R=new Map,g.o=new Map(g.t))}function r(g){g.o||(g.o=new Set,g.t.forEach((function(b){if(Uo(b)){var m=ld(g.A.h,b,g);g.p.set(b,m),g.o.add(m)}else g.o.add(b)})))}function n(g){g.g&&jt(3,JSON.stringify(Ir(g)))}var i=function(g,b){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var E in v)v.hasOwnProperty(E)&&(m[E]=v[E])})(g,b)},c=(function(){function g(m,v){return this[ft]={i:2,l:v,A:v?v.A:uf(),P:!1,I:!1,o:void 0,R:void 0,t:m,k:this,C:!1,g:!1},this}e(g,Map);var b=g.prototype;return Object.defineProperty(b,"size",{get:function(){return Ir(this[ft]).size}}),b.has=function(m){return Ir(this[ft]).has(m)},b.set=function(m,v){var E=this[ft];return n(E),Ir(E).has(m)&&Ir(E).get(m)===v||(t(E),Pi(E),E.R.set(m,!0),E.o.set(m,v),E.R.set(m,!0)),this},b.delete=function(m){if(!this.has(m))return!1;var v=this[ft];return n(v),t(v),Pi(v),v.t.has(m)?v.R.set(m,!1):v.R.delete(m),v.o.delete(m),!0},b.clear=function(){var m=this[ft];n(m),Ir(m).size&&(t(m),Pi(m),m.R=new Map,Ll(m.t,(function(v){m.R.set(v,!1)})),m.o.clear())},b.forEach=function(m,v){var E=this;Ir(this[ft]).forEach((function(A,F){m.call(v,E.get(F),F,E)}))},b.get=function(m){var v=this[ft];n(v);var E=Ir(v).get(m);if(v.I||!Uo(E)||E!==v.t.get(m))return E;var A=ld(v.A.h,E,v);return t(v),v.o.set(m,A),A},b.keys=function(){return Ir(this[ft]).keys()},b.values=function(){var m,v=this,E=this.keys();return(m={})[hf]=function(){return v.values()},m.next=function(){var A=E.next();return A.done?A:{done:!1,value:v.get(A.value)}},m},b.entries=function(){var m,v=this,E=this.keys();return(m={})[hf]=function(){return v.entries()},m.next=function(){var A=E.next();if(A.done)return A;var F=v.get(A.value);return{done:!1,value:[A.value,F]}},m},b[hf]=function(){return this.entries()},g})(),f=(function(){function g(m,v){return this[ft]={i:3,l:v,A:v?v.A:uf(),P:!1,I:!1,o:void 0,t:m,k:this,p:new Map,g:!1,C:!1},this}e(g,Set);var b=g.prototype;return Object.defineProperty(b,"size",{get:function(){return Ir(this[ft]).size}}),b.has=function(m){var v=this[ft];return n(v),v.o?!!v.o.has(m)||!(!v.p.has(m)||!v.o.has(v.p.get(m))):v.t.has(m)},b.add=function(m){var v=this[ft];return n(v),this.has(m)||(r(v),Pi(v),v.o.add(m)),this},b.delete=function(m){if(!this.has(m))return!1;var v=this[ft];return n(v),r(v),Pi(v),v.o.delete(m)||!!v.p.has(m)&&v.o.delete(v.p.get(m))},b.clear=function(){var m=this[ft];n(m),Ir(m).size&&(r(m),Pi(m),m.o.clear())},b.values=function(){var m=this[ft];return n(m),r(m),m.o.values()},b.entries=function(){var m=this[ft];return n(m),r(m),m.o.entries()},b.keys=function(){return this.values()},b[hf]=function(){return this.values()},b.forEach=function(m,v){for(var E=this.values(),A=E.next();!A.done;)m.call(v,A.value,A.value,this),A=E.next()},g})();zm("MapSet",{F:function(g,b){return new c(g,b)},T:function(g,b){return new f(g,b)}})}var Gm,Gu,ph=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",a2=typeof Map<"u",o2=typeof Set<"u",Ym=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",gh=ph?Symbol.for("immer-nothing"):((Gm={})["immer-nothing"]=!0,Gm),ud=ph?Symbol.for("immer-draftable"):"__$immer_draftable",ft=ph?Symbol.for("immer-state"):"__$immer_state",hf=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",i2={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},s2=""+Object.prototype.constructor,mh=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,l2=Object.getOwnPropertyDescriptors||function(e){var t={};return mh(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},vh={},bh={get:function(e,t){if(t===ft)return e;var r=Ir(e);if(!sd(r,t))return(function(i,c,f){var g,b=Um(c,f);return b?"value"in b?b.value:(g=b.get)===null||g===void 0?void 0:g.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!Uo(n)?n:n===fh(e.t,t)?(hh(e),e.o[t]=ld(e.A.h,n,e)):n},has:function(e,t){return t in Ir(e)},ownKeys:function(e){return Reflect.ownKeys(Ir(e))},set:function(e,t,r){var n=Um(Ir(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=fh(Ir(e),t),c=i?.[ft];if(c&&c.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Qw(r,i)&&(r!==void 0||sd(e.t,t)))return!0;hh(e),Pi(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return fh(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,hh(e),Pi(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ir(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){jt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){jt(12)}},cd={};Ll(bh,(function(e,t){cd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),cd.deleteProperty=function(e,t){return isNaN(parseInt(t))&&jt(13),cd.set.call(this,e,t,void 0)},cd.set=function(e,t,r){return t!=="length"&&isNaN(parseInt(t))&&jt(14),bh.set.call(this,e[0],t,r,e[0])};var u2=(function(){function e(r){var n=this;this.O=Ym,this.D=!0,this.produce=function(i,c,f){if(typeof i=="function"&&typeof c!="function"){var g=c;c=i;var b=n;return function(N){var O=this;N===void 0&&(N=g);for(var B=arguments.length,z=Array(B>1?B-1:0),Z=1;Z<B;Z++)z[Z-1]=arguments[Z];return b.produce(N,(function(V){var J;return(J=c).call.apply(J,[O,V].concat(z))}))}}var m;if(typeof c!="function"&&jt(6),f!==void 0&&typeof f!="function"&&jt(7),Uo(i)){var v=Hm(n),E=ld(n,i,void 0),A=!0;try{m=c(E),A=!1}finally{A?cf(v):ch(v)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(N){return uh(v,f),dh(N,v)}),(function(N){throw cf(v),N})):(uh(v,f),dh(m,v))}if(!i||typeof i!="object"){if((m=c(i))===void 0&&(m=i),m===gh&&(m=void 0),n.D&&sh(m,!0),f){var F=[],S=[];jo("Patches").M(i,m,F,S),f(F,S)}return m}jt(21,i)},this.produceWithPatches=function(i,c){if(typeof i=="function")return function(m){for(var v=arguments.length,E=Array(v>1?v-1:0),A=1;A<v;A++)E[A-1]=arguments[A];return n.produceWithPatches(m,(function(F){return i.apply(void 0,[F].concat(E))}))};var f,g,b=n.produce(i,c,(function(m,v){f=m,g=v}));return typeof Promise<"u"&&b instanceof Promise?b.then((function(m){return[m,f,g]})):[b,f,g]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Uo(r)||jt(8),Il(r)&&(r=t2(r));var n=Hm(this),i=ld(this,r,void 0);return i[ft].C=!0,ch(n),i},t.finishDraft=function(r,n){var i=r&&r[ft];i&&i.C||jt(9),i.I&&jt(10);var c=i.A;return uh(c,n),dh(void 0,c)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Ym&&jt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var c=n[i];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}i>-1&&(n=n.slice(i+1));var f=jo("Patches").$;return Il(r)?f(r,n):this.produce(r,(function(g){return f(g,n)}))},e})(),oa=new u2,c2=oa.produce,Vm=oa.produceWithPatches.bind(oa);oa.setAutoFreeze.bind(oa),oa.setUseProxies.bind(oa);var Xm=oa.applyPatches.bind(oa);oa.createDraft.bind(oa),oa.finishDraft.bind(oa);var yh,Zm;function d2(){if(Zm)return yh;Zm=1;function e(){this.__data__=[],this.size=0}return yh=e,yh}var wh,Jm;function qm(){if(Jm)return wh;Jm=1;function e(t,r){return t===r||t!==t&&r!==r}return wh=e,wh}var xh,Km;function pf(){if(Km)return xh;Km=1;var e=qm();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return xh=t,xh}var Dh,Qm;function f2(){if(Qm)return Dh;Qm=1;var e=pf(),t=Array.prototype,r=t.splice;function n(i){var c=this.__data__,f=e(c,i);if(f<0)return!1;var g=c.length-1;return f==g?c.pop():r.call(c,f,1),--this.size,!0}return Dh=n,Dh}var Ch,$m;function h2(){if($m)return Ch;$m=1;var e=pf();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ch=t,Ch}var Eh,ev;function p2(){if(ev)return Eh;ev=1;var e=pf();function t(r){return e(this.__data__,r)>-1}return Eh=t,Eh}var Fh,tv;function g2(){if(tv)return Fh;tv=1;var e=pf();function t(r,n){var i=this.__data__,c=e(i,r);return c<0?(++this.size,i.push([r,n])):i[c][1]=n,this}return Fh=t,Fh}var Sh,rv;function gf(){if(rv)return Sh;rv=1;var e=d2(),t=f2(),r=h2(),n=p2(),i=g2();function c(f){var g=-1,b=f==null?0:f.length;for(this.clear();++g<b;){var m=f[g];this.set(m[0],m[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=r,c.prototype.has=n,c.prototype.set=i,Sh=c,Sh}var kh,nv;function m2(){if(nv)return kh;nv=1;var e=gf();function t(){this.__data__=new e,this.size=0}return kh=t,kh}var Th,av;function v2(){if(av)return Th;av=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Th=e,Th}var Ah,ov;function b2(){if(ov)return Ah;ov=1;function e(t){return this.__data__.get(t)}return Ah=e,Ah}var _h,iv;function y2(){if(iv)return _h;iv=1;function e(t){return this.__data__.has(t)}return _h=e,_h}var Rh,sv;function lv(){if(sv)return Rh;sv=1;var e=typeof af=="object"&&af&&af.Object===Object&⁡return Rh=e,Rh}var Nh,uv;function Oi(){if(uv)return Nh;uv=1;var e=lv(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Nh=r,Nh}var Ph,cv;function Oh(){if(cv)return Ph;cv=1;var e=Oi(),t=e.Symbol;return Ph=t,Ph}var Bh,dv;function w2(){if(dv)return Bh;dv=1;var e=Oh(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function c(f){var g=r.call(f,i),b=f[i];try{f[i]=void 0;var m=!0}catch{}var v=n.call(f);return m&&(g?f[i]=b:delete f[i]),v}return Bh=c,Bh}var Ih,fv;function x2(){if(fv)return Ih;fv=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ih=r,Ih}var Lh,hv;function mf(){if(hv)return Lh;hv=1;var e=Oh(),t=w2(),r=x2(),n="[object Null]",i="[object Undefined]",c=e?e.toStringTag:void 0;function f(g){return g==null?g===void 0?i:n:c&&c in Object(g)?t(g):r(g)}return Lh=f,Lh}var Mh,pv;function gv(){if(pv)return Mh;pv=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Mh=e,Mh}var zh,mv;function Hh(){if(mv)return zh;mv=1;var e=mf(),t=gv(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",c="[object Proxy]";function f(g){if(!t(g))return!1;var b=e(g);return b==n||b==i||b==r||b==c}return zh=f,zh}var Wh,vv;function D2(){if(vv)return Wh;vv=1;var e=Oi(),t=e["__core-js_shared__"];return Wh=t,Wh}var Uh,bv;function C2(){if(bv)return Uh;bv=1;var e=D2(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Uh=r,Uh}var jh,yv;function wv(){if(yv)return jh;yv=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return jh=r,jh}var Gh,xv;function E2(){if(xv)return Gh;xv=1;var e=Hh(),t=C2(),r=gv(),n=wv(),i=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,f=Function.prototype,g=Object.prototype,b=f.toString,m=g.hasOwnProperty,v=RegExp("^"+b.call(m).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E(A){if(!r(A)||t(A))return!1;var F=e(A)?v:c;return F.test(n(A))}return Gh=E,Gh}var Yh,Dv;function F2(){if(Dv)return Yh;Dv=1;function e(t,r){return t?.[r]}return Yh=e,Yh}var Vh,Cv;function Yu(){if(Cv)return Vh;Cv=1;var e=E2(),t=F2();function r(n,i){var c=t(n,i);return e(c)?c:void 0}return Vh=r,Vh}var Xh,Ev;function Zh(){if(Ev)return Xh;Ev=1;var e=Yu(),t=Oi(),r=e(t,"Map");return Xh=r,Xh}var Jh,Fv;function vf(){if(Fv)return Jh;Fv=1;var e=Yu(),t=e(Object,"create");return Jh=t,Jh}var qh,Sv;function S2(){if(Sv)return qh;Sv=1;var e=vf();function t(){this.__data__=e?e(null):{},this.size=0}return qh=t,qh}var Kh,kv;function k2(){if(kv)return Kh;kv=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Kh=e,Kh}var Qh,Tv;function T2(){if(Tv)return Qh;Tv=1;var e=vf(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(c){var f=this.__data__;if(e){var g=f[c];return g===t?void 0:g}return n.call(f,c)?f[c]:void 0}return Qh=i,Qh}var $h,Av;function A2(){if(Av)return $h;Av=1;var e=vf(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var c=this.__data__;return e?c[i]!==void 0:r.call(c,i)}return $h=n,$h}var ep,_v;function _2(){if(_v)return ep;_v=1;var e=vf(),t="__lodash_hash_undefined__";function r(n,i){var c=this.__data__;return this.size+=this.has(n)?0:1,c[n]=e&&i===void 0?t:i,this}return ep=r,ep}var tp,Rv;function R2(){if(Rv)return tp;Rv=1;var e=S2(),t=k2(),r=T2(),n=A2(),i=_2();function c(f){var g=-1,b=f==null?0:f.length;for(this.clear();++g<b;){var m=f[g];this.set(m[0],m[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=r,c.prototype.has=n,c.prototype.set=i,tp=c,tp}var rp,Nv;function N2(){if(Nv)return rp;Nv=1;var e=R2(),t=gf(),r=Zh();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return rp=n,rp}var np,Pv;function P2(){if(Pv)return np;Pv=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return np=e,np}var ap,Ov;function bf(){if(Ov)return ap;Ov=1;var e=P2();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ap=t,ap}var op,Bv;function O2(){if(Bv)return op;Bv=1;var e=bf();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return op=t,op}var ip,Iv;function B2(){if(Iv)return ip;Iv=1;var e=bf();function t(r){return e(this,r).get(r)}return ip=t,ip}var sp,Lv;function I2(){if(Lv)return sp;Lv=1;var e=bf();function t(r){return e(this,r).has(r)}return sp=t,sp}var lp,Mv;function L2(){if(Mv)return lp;Mv=1;var e=bf();function t(r,n){var i=e(this,r),c=i.size;return i.set(r,n),this.size+=i.size==c?0:1,this}return lp=t,lp}var up,zv;function Hv(){if(zv)return up;zv=1;var e=N2(),t=O2(),r=B2(),n=I2(),i=L2();function c(f){var g=-1,b=f==null?0:f.length;for(this.clear();++g<b;){var m=f[g];this.set(m[0],m[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=r,c.prototype.has=n,c.prototype.set=i,up=c,up}var cp,Wv;function M2(){if(Wv)return cp;Wv=1;var e=gf(),t=Zh(),r=Hv(),n=200;function i(c,f){var g=this.__data__;if(g instanceof e){var b=g.__data__;if(!t||b.length<n-1)return b.push([c,f]),this.size=++g.size,this;g=this.__data__=new r(b)}return g.set(c,f),this.size=g.size,this}return cp=i,cp}var dp,Uv;function z2(){if(Uv)return dp;Uv=1;var e=gf(),t=m2(),r=v2(),n=b2(),i=y2(),c=M2();function f(g){var b=this.__data__=new e(g);this.size=b.size}return f.prototype.clear=t,f.prototype.delete=r,f.prototype.get=n,f.prototype.has=i,f.prototype.set=c,dp=f,dp}var fp,jv;function H2(){if(jv)return fp;jv=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return fp=t,fp}var hp,Gv;function W2(){if(Gv)return hp;Gv=1;function e(t){return this.__data__.has(t)}return hp=e,hp}var pp,Yv;function U2(){if(Yv)return pp;Yv=1;var e=Hv(),t=H2(),r=W2();function n(i){var c=-1,f=i==null?0:i.length;for(this.__data__=new e;++c<f;)this.add(i[c])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,pp=n,pp}var gp,Vv;function j2(){if(Vv)return gp;Vv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return gp=e,gp}var mp,Xv;function G2(){if(Xv)return mp;Xv=1;function e(t,r){return t.has(r)}return mp=e,mp}var vp,Zv;function Jv(){if(Zv)return vp;Zv=1;var e=U2(),t=j2(),r=G2(),n=1,i=2;function c(f,g,b,m,v,E){var A=b&n,F=f.length,S=g.length;if(F!=S&&!(A&&S>F))return!1;var N=E.get(f),O=E.get(g);if(N&&O)return N==g&&O==f;var B=-1,z=!0,Z=b&i?new e:void 0;for(E.set(f,g),E.set(g,f);++B<F;){var V=f[B],J=g[B];if(m)var $=A?m(J,V,B,g,f,E):m(V,J,B,f,g,E);if($!==void 0){if($)continue;z=!1;break}if(Z){if(!t(g,function(K,ve){if(!r(Z,ve)&&(V===K||v(V,K,b,m,E)))return Z.push(ve)})){z=!1;break}}else if(!(V===J||v(V,J,b,m,E))){z=!1;break}}return E.delete(f),E.delete(g),z}return vp=c,vp}var bp,qv;function Y2(){if(qv)return bp;qv=1;var e=Oi(),t=e.Uint8Array;return bp=t,bp}var yp,Kv;function V2(){if(Kv)return yp;Kv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,c){n[++r]=[c,i]}),n}return yp=e,yp}var wp,Qv;function X2(){if(Qv)return wp;Qv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return wp=e,wp}var xp,$v;function Z2(){if($v)return xp;$v=1;var e=Oh(),t=Y2(),r=qm(),n=Jv(),i=V2(),c=X2(),f=1,g=2,b="[object Boolean]",m="[object Date]",v="[object Error]",E="[object Map]",A="[object Number]",F="[object RegExp]",S="[object Set]",N="[object String]",O="[object Symbol]",B="[object ArrayBuffer]",z="[object DataView]",Z=e?e.prototype:void 0,V=Z?Z.valueOf:void 0;function J($,K,ve,se,me,ge,Qe){switch(ve){case z:if($.byteLength!=K.byteLength||$.byteOffset!=K.byteOffset)return!1;$=$.buffer,K=K.buffer;case B:return!($.byteLength!=K.byteLength||!ge(new t($),new t(K)));case b:case m:case A:return r(+$,+K);case v:return $.name==K.name&&$.message==K.message;case F:case N:return $==K+"";case E:var pe=i;case S:var Ie=se&f;if(pe||(pe=c),$.size!=K.size&&!Ie)return!1;var tt=Qe.get($);if(tt)return tt==K;se|=g,Qe.set($,K);var rt=n(pe($),pe(K),se,me,ge,Qe);return Qe.delete($),rt;case O:if(V)return V.call($)==V.call(K)}return!1}return xp=J,xp}var Dp,eb;function J2(){if(eb)return Dp;eb=1;function e(t,r){for(var n=-1,i=r.length,c=t.length;++n<i;)t[c+n]=r[n];return t}return Dp=e,Dp}var Cp,tb;function Ep(){if(tb)return Cp;tb=1;var e=Array.isArray;return Cp=e,Cp}var Fp,rb;function q2(){if(rb)return Fp;rb=1;var e=J2(),t=Ep();function r(n,i,c){var f=i(n);return t(n)?f:e(f,c(n))}return Fp=r,Fp}var Sp,nb;function K2(){if(nb)return Sp;nb=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,c=0,f=[];++n<i;){var g=t[n];r(g,n,t)&&(f[c++]=g)}return f}return Sp=e,Sp}var kp,ab;function Q2(){if(ab)return kp;ab=1;function e(){return[]}return kp=e,kp}var Tp,ob;function $2(){if(ob)return Tp;ob=1;var e=K2(),t=Q2(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,c=i?function(f){return f==null?[]:(f=Object(f),e(i(f),function(g){return n.call(f,g)}))}:t;return Tp=c,Tp}var Ap,ib;function ex(){if(ib)return Ap;ib=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ap=e,Ap}var _p,sb;function yf(){if(sb)return _p;sb=1;function e(t){return t!=null&&typeof t=="object"}return _p=e,_p}var Rp,lb;function tx(){if(lb)return Rp;lb=1;var e=mf(),t=yf(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Rp=n,Rp}var Np,ub;function rx(){if(ub)return Np;ub=1;var e=tx(),t=yf(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,c=e((function(){return arguments})())?e:function(f){return t(f)&&n.call(f,"callee")&&!i.call(f,"callee")};return Np=c,Np}var wf={exports:{}},Pp,cb;function nx(){if(cb)return Pp;cb=1;function e(){return!1}return Pp=e,Pp}var db;function fb(){return db||(db=1,(function(e,t){var r=Oi(),n=nx(),i=t&&!t.nodeType&&t,c=i&&!0&&e&&!e.nodeType&&e,f=c&&c.exports===i,g=f?r.Buffer:void 0,b=g?g.isBuffer:void 0,m=b||n;e.exports=m})(wf,wf.exports)),wf.exports}var Op,hb;function ax(){if(hb)return Op;hb=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var c=typeof n;return i=i??e,!!i&&(c=="number"||c!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Op=r,Op}var Bp,pb;function gb(){if(pb)return Bp;pb=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Bp=t,Bp}var Ip,mb;function ox(){if(mb)return Ip;mb=1;var e=mf(),t=gb(),r=yf(),n="[object Arguments]",i="[object Array]",c="[object Boolean]",f="[object Date]",g="[object Error]",b="[object Function]",m="[object Map]",v="[object Number]",E="[object Object]",A="[object RegExp]",F="[object Set]",S="[object String]",N="[object WeakMap]",O="[object ArrayBuffer]",B="[object DataView]",z="[object Float32Array]",Z="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",$="[object Int32Array]",K="[object Uint8Array]",ve="[object Uint8ClampedArray]",se="[object Uint16Array]",me="[object Uint32Array]",ge={};ge[z]=ge[Z]=ge[V]=ge[J]=ge[$]=ge[K]=ge[ve]=ge[se]=ge[me]=!0,ge[n]=ge[i]=ge[O]=ge[c]=ge[B]=ge[f]=ge[g]=ge[b]=ge[m]=ge[v]=ge[E]=ge[A]=ge[F]=ge[S]=ge[N]=!1;function Qe(pe){return r(pe)&&t(pe.length)&&!!ge[e(pe)]}return Ip=Qe,Ip}var Lp,vb;function ix(){if(vb)return Lp;vb=1;function e(t){return function(r){return t(r)}}return Lp=e,Lp}var xf={exports:{}},bb;function sx(){return bb||(bb=1,(function(e,t){var r=lv(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===n,f=c&&r.process,g=(function(){try{var b=i&&i.require&&i.require("util").types;return b||f&&f.binding&&f.binding("util")}catch{}})();e.exports=g})(xf,xf.exports)),xf.exports}var Mp,yb;function wb(){if(yb)return Mp;yb=1;var e=ox(),t=ix(),r=sx(),n=r&&r.isTypedArray,i=n?t(n):e;return Mp=i,Mp}var zp,xb;function lx(){if(xb)return zp;xb=1;var e=ex(),t=rx(),r=Ep(),n=fb(),i=ax(),c=wb(),f=Object.prototype,g=f.hasOwnProperty;function b(m,v){var E=r(m),A=!E&&t(m),F=!E&&!A&&n(m),S=!E&&!A&&!F&&c(m),N=E||A||F||S,O=N?e(m.length,String):[],B=O.length;for(var z in m)(v||g.call(m,z))&&!(N&&(z=="length"||F&&(z=="offset"||z=="parent")||S&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||i(z,B)))&&O.push(z);return O}return zp=b,zp}var Hp,Db;function ux(){if(Db)return Hp;Db=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Hp=t,Hp}var Wp,Cb;function cx(){if(Cb)return Wp;Cb=1;function e(t,r){return function(n){return t(r(n))}}return Wp=e,Wp}var Up,Eb;function dx(){if(Eb)return Up;Eb=1;var e=cx(),t=e(Object.keys,Object);return Up=t,Up}var jp,Fb;function fx(){if(Fb)return jp;Fb=1;var e=ux(),t=dx(),r=Object.prototype,n=r.hasOwnProperty;function i(c){if(!e(c))return t(c);var f=[];for(var g in Object(c))n.call(c,g)&&g!="constructor"&&f.push(g);return f}return jp=i,jp}var Gp,Sb;function hx(){if(Sb)return Gp;Sb=1;var e=Hh(),t=gb();function r(n){return n!=null&&t(n.length)&&!e(n)}return Gp=r,Gp}var Yp,kb;function px(){if(kb)return Yp;kb=1;var e=lx(),t=fx(),r=hx();function n(i){return r(i)?e(i):t(i)}return Yp=n,Yp}var Vp,Tb;function gx(){if(Tb)return Vp;Tb=1;var e=q2(),t=$2(),r=px();function n(i){return e(i,r,t)}return Vp=n,Vp}var Xp,Ab;function mx(){if(Ab)return Xp;Ab=1;var e=gx(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(c,f,g,b,m,v){var E=g&t,A=e(c),F=A.length,S=e(f),N=S.length;if(F!=N&&!E)return!1;for(var O=F;O--;){var B=A[O];if(!(E?B in f:n.call(f,B)))return!1}var z=v.get(c),Z=v.get(f);if(z&&Z)return z==f&&Z==c;var V=!0;v.set(c,f),v.set(f,c);for(var J=E;++O<F;){B=A[O];var $=c[B],K=f[B];if(b)var ve=E?b(K,$,B,f,c,v):b($,K,B,c,f,v);if(!(ve===void 0?$===K||m($,K,g,b,v):ve)){V=!1;break}J||(J=B=="constructor")}if(V&&!J){var se=c.constructor,me=f.constructor;se!=me&&"constructor"in c&&"constructor"in f&&!(typeof se=="function"&&se instanceof se&&typeof me=="function"&&me instanceof me)&&(V=!1)}return v.delete(c),v.delete(f),V}return Xp=i,Xp}var Zp,_b;function vx(){if(_b)return Zp;_b=1;var e=Yu(),t=Oi(),r=e(t,"DataView");return Zp=r,Zp}var Jp,Rb;function bx(){if(Rb)return Jp;Rb=1;var e=Yu(),t=Oi(),r=e(t,"Promise");return Jp=r,Jp}var qp,Nb;function yx(){if(Nb)return qp;Nb=1;var e=Yu(),t=Oi(),r=e(t,"Set");return qp=r,qp}var Kp,Pb;function wx(){if(Pb)return Kp;Pb=1;var e=Yu(),t=Oi(),r=e(t,"WeakMap");return Kp=r,Kp}var Qp,Ob;function xx(){if(Ob)return Qp;Ob=1;var e=vx(),t=Zh(),r=bx(),n=yx(),i=wx(),c=mf(),f=wv(),g="[object Map]",b="[object Object]",m="[object Promise]",v="[object Set]",E="[object WeakMap]",A="[object DataView]",F=f(e),S=f(t),N=f(r),O=f(n),B=f(i),z=c;return(e&&z(new e(new ArrayBuffer(1)))!=A||t&&z(new t)!=g||r&&z(r.resolve())!=m||n&&z(new n)!=v||i&&z(new i)!=E)&&(z=function(Z){var V=c(Z),J=V==b?Z.constructor:void 0,$=J?f(J):"";if($)switch($){case F:return A;case S:return g;case N:return m;case O:return v;case B:return E}return V}),Qp=z,Qp}var $p,Bb;function Dx(){if(Bb)return $p;Bb=1;var e=z2(),t=Jv(),r=Z2(),n=mx(),i=xx(),c=Ep(),f=fb(),g=wb(),b=1,m="[object Arguments]",v="[object Array]",E="[object Object]",A=Object.prototype,F=A.hasOwnProperty;function S(N,O,B,z,Z,V){var J=c(N),$=c(O),K=J?v:i(N),ve=$?v:i(O);K=K==m?E:K,ve=ve==m?E:ve;var se=K==E,me=ve==E,ge=K==ve;if(ge&&f(N)){if(!f(O))return!1;J=!0,se=!1}if(ge&&!se)return V||(V=new e),J||g(N)?t(N,O,B,z,Z,V):r(N,O,K,B,z,Z,V);if(!(B&b)){var Qe=se&&F.call(N,"__wrapped__"),pe=me&&F.call(O,"__wrapped__");if(Qe||pe){var Ie=Qe?N.value():N,tt=pe?O.value():O;return V||(V=new e),Z(Ie,tt,B,z,V)}}return ge?(V||(V=new e),n(N,O,B,z,Z,V)):!1}return $p=S,$p}var eg,Ib;function Cx(){if(Ib)return eg;Ib=1;var e=Dx(),t=yf();function r(n,i,c,f,g){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,c,f,r,g)}return eg=r,eg}var tg,Lb;function Ex(){if(Lb)return tg;Lb=1;var e=Cx();function t(r,n,i){i=typeof i=="function"?i:void 0;var c=i?i(r,n):void 0;return c===void 0?e(r,n,void 0,i):!!c}return tg=t,tg}var Fx=Ex();const Sx=nd(Fx);var rg,Mb;function kx(){return Mb||(Mb=1,rg=function(t,r,n,i){var c=n?n.call(i,t,r):void 0;if(c!==void 0)return!!c;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var f=Object.keys(t),g=Object.keys(r);if(f.length!==g.length)return!1;for(var b=Object.prototype.hasOwnProperty.bind(r),m=0;m<f.length;m++){var v=f[m];if(!b(v))return!1;var E=t[v],A=r[v];if(c=n?n.call(i,E,A,v):void 0,c===!1||c===void 0&&E!==A)return!1}return!0}),rg}var Tx=kx();const Ax=nd(Tx);let _x=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");var zb="Invariant failed";function Dt(e,t){if(!e){var r=typeof t=="function"?t():t,n=r?"".concat(zb,": ").concat(r):zb;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Go="ROOT",Hb="canvas-ROOT",Rx="Parent id cannot be ommited",Nx="Attempting to add a node with duplicated id",Wb="Node does not exist, it may have been removed",Px='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',Ox="Node cannot be dropped into target parent",Bx="Target parent rejects incoming node",Ix="Current parent rejects outgoing node",Ub="Cannot move node that is not a direct child of a Canvas node",Lx="Cannot move node into a non-Canvas parent",jb="A top-level Node cannot be moved",Mx="Cannot move node into a descendant",Df="The component type specified for this node (%node_type%) does not exist in the resolver",zx="The node has specified a canDrag() rule that prevents it from being dragged",Hx="Invalid parameter Node Id specified",Wx="Attempting to delete a top-level Node",Ux=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
|
|
171
|
-
|
|
172
|
-
More info: https://craft.js.org/r/docs/api/editor#props`,jx=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
|
|
173
|
-
|
|
174
|
-
Available components in resolver: %availableComponents%
|
|
175
|
-
|
|
176
|
-
More info: https://craft.js.org/r/docs/api/editor#props`,Gx=`You can only use useEditor in the context of <Editor />.
|
|
177
|
-
|
|
178
|
-
Please only use useEditor in components that are children of the <Editor /> component.`,Yx=`You can only use useNode in the context of <Editor />.
|
|
179
|
-
|
|
180
|
-
Please only use useNode in components that are children of the <Editor /> component.`;function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach((function(n){Cr(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Vu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jb(n.key),n)}}function Xu(e,t,r){return t&&Vx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cr(e,t,r){return(t=Jb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zu(e)}function ng(e,t){return ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ng(e,t)}function ag(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function og(){return og=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=(function(c,f){for(;!Object.prototype.hasOwnProperty.call(c,f)&&(c=Zu(c))!==null;);return c})(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},og.apply(this,arguments)}function Yb(e,t){return Vb(e)||(function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var c,f,g,b,m=[],v=!0,E=!1;try{if(g=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;v=!1}else for(;!(v=(c=g.call(i)).done)&&(m.push(c.value),m.length!==n);v=!0);}catch(A){E=!0,f=A}finally{try{if(!v&&i.return!=null&&(b=i.return(),Object(b)!==b))return}finally{if(E)throw f}}return m}})(e,t)||ig(e,t)||Zb()}function En(e){return(function(t){if(Array.isArray(t))return sg(t)})(e)||Xb(e)||ig(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
181
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Vb(e){if(Array.isArray(e))return e}function Xb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ig(e,t){if(e){if(typeof e=="string")return sg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sg(e,t):void 0}}function sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
182
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jb(e){var t=(function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var c=i.call(r,"string");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(e);return typeof t=="symbol"?t:String(t)}var qt={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Xx=(function(){function e(){Vu(this,e),Cr(this,"timeline",[]),Cr(this,"pointer",-1)}return Xu(e,[{key:"add",value:function(t,r){t.length===0&&r.length===0||(this.pointer=this.pointer+1,this.timeline.length=this.pointer,this.timeline[this.pointer]={patches:t,inversePatches:r,timestamp:Date.now()})}},{key:"throttleAdd",value:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:500;if(t.length!==0||r.length!==0){if(this.timeline.length&&this.pointer>=0){var i=this.timeline[this.pointer],c=i.patches,f=i.inversePatches,g=i.timestamp;if(new Date().getTime()-g<n)return void(this.timeline[this.pointer]={timestamp:g,patches:[].concat(En(c),En(t)),inversePatches:[].concat(En(r),En(f))})}this.add(t,r)}}},{key:"merge",value:function(t,r){if(t.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],i=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(En(n.patches),En(t)),inversePatches:[].concat(En(r),En(i))}}else this.add(t,r)}},{key:"clear",value:function(){this.timeline=[],this.pointer=-1}},{key:"canUndo",value:function(){return this.pointer>=0}},{key:"canRedo",value:function(){return this.pointer<this.timeline.length-1}},{key:"undo",value:function(t){if(this.canUndo()){var r=this.timeline[this.pointer].inversePatches;return this.pointer=this.pointer-1,Xm(t,r)}}},{key:"redo",value:function(t){if(this.canRedo())return this.pointer=this.pointer+1,Xm(t,this.timeline[this.pointer].patches)}}]),e})();function Zx(e,t,r,n){var i,c=L.useMemo((function(){return new Xx}),[]),f=L.useRef([]),g=L.useRef((function(){}));typeof e=="function"?i=e:(i=e.methods,f.current=e.ignoreHistoryForActions,g.current=e.normalizeHistory);var b=L.useRef(n);b.current=n;var m=L.useRef(t),v=L.useMemo((function(){var O=g.current,B=f.current,z=b.current;return function(Z,V){var J,$=r&&qb(r,(function(){return Z}),c),K=Yb(Vm(Z,(function(ge){var Qe,pe;switch(V.type){case qt.UNDO:return c.undo(ge);case qt.REDO:return c.redo(ge);case qt.CLEAR:return c.clear(),Ia({},ge);case qt.IGNORE:case qt.MERGE:case qt.THROTTLE:var Ie,tt=Vb(pe=V.payload)||Xb(pe)||ig(pe)||Zb(),rt=tt[0],Pt=tt.slice(1);(Ie=i(ge,$))[rt].apply(Ie,En(Pt));break;default:(Qe=i(ge,$))[V.type].apply(Qe,En(V.payload))}})),3),ve=K[0],se=K[1],me=K[2];return J=ve,z&&z(ve,Z,{type:V.type,params:V.payload,patches:se},$,(function(ge){var Qe=Vm(ve,ge);J=Qe[0],se=[].concat(En(se),En(Qe[1])),me=[].concat(En(Qe[2]),En(me))})),[qt.UNDO,qt.REDO].includes(V.type)&&O&&(J=c2(J,O)),[].concat(En(B),[qt.UNDO,qt.REDO,qt.IGNORE,qt.CLEAR]).includes(V.type)||(V.type===qt.THROTTLE?c.throttleAdd(se,me,V.config&&V.config.rate):V.type===qt.MERGE?c.merge(se,me):c.add(se,me)),J}}),[c,i,r]),E=L.useCallback((function(){return m.current}),[]),A=L.useMemo((function(){return new Jx(E)}),[E]),F=L.useCallback((function(O){var B=v(m.current,O);m.current=B,A.notify()}),[v,A]);L.useEffect((function(){A.notify()}),[A]);var S=L.useMemo((function(){return r?qb(r,(function(){return m.current}),c):[]}),[c,r]),N=L.useMemo((function(){var O=Object.keys(i(null,null)),B=f.current;return Ia(Ia({},O.reduce((function(z,Z){return z[Z]=function(){for(var V=arguments.length,J=new Array(V),$=0;$<V;$++)J[$]=arguments[$];return F({type:Z,payload:J})},z}),{})),{},{history:{undo:function(){return F({type:qt.UNDO})},redo:function(){return F({type:qt.REDO})},clear:function(){return F({type:qt.CLEAR})},throttle:function(z){return Ia({},O.filter((function(Z){return!B.includes(Z)})).reduce((function(Z,V){return Z[V]=function(){for(var J=arguments.length,$=new Array(J),K=0;K<J;K++)$[K]=arguments[K];return F({type:qt.THROTTLE,payload:[V].concat($),config:{rate:z}})},Z}),{}))},ignore:function(){return Ia({},O.filter((function(z){return!B.includes(z)})).reduce((function(z,Z){return z[Z]=function(){for(var V=arguments.length,J=new Array(V),$=0;$<V;$++)J[$]=arguments[$];return F({type:qt.IGNORE,payload:[Z].concat(J)})},z}),{}))},merge:function(){return Ia({},O.filter((function(z){return!B.includes(z)})).reduce((function(z,Z){return z[Z]=function(){for(var V=arguments.length,J=new Array(V),$=0;$<V;$++)J[$]=arguments[$];return F({type:qt.MERGE,payload:[Z].concat(J)})},z}),{}))}}})}),[F,i]);return L.useMemo((function(){return{getState:E,subscribe:function(O,B,z){return A.subscribe(O,B,z)},actions:N,query:S,history:c}}),[N,S,A,E,c])}function qb(e,t,r){var n=Object.keys(e()).reduce((function(i,c){return Ia(Ia({},i),{},Cr({},c,(function(){var f;return(f=e(t()))[c].apply(f,arguments)})))}),{});return Ia(Ia({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}n2(),r2();var Jx=(function(){function e(t){Vu(this,e),Cr(this,"getState",void 0),Cr(this,"subscribers",[]),this.getState=t}return Xu(e,[{key:"subscribe",value:function(t,r,n){var i=this,c=new qx((function(){return t(i.getState())}),r,n);return this.subscribers.push(c),this.unsubscribe.bind(this,c)}},{key:"unsubscribe",value:function(t){if(this.subscribers.length){var r=this.subscribers.indexOf(t);if(r>-1)return this.subscribers.splice(r,1)}}},{key:"notify",value:function(){this.subscribers.forEach((function(t){return t.collect()}))}}]),e})(),qx=(function(){function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Vu(this,e),Cr(this,"collected",void 0),Cr(this,"collector",void 0),Cr(this,"onChange",void 0),Cr(this,"id",void 0),this.collector=t,this.onChange=r,n&&this.collect()}return Xu(e,[{key:"collect",value:function(){try{var t=this.collector();Sx(t,this.collected)||(this.collected=t,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),e})(),dd=function(e){var t=e.getBoundingClientRect(),r=t.x,n=t.y,i=t.top,c=t.left,f=t.bottom,g=t.right,b=t.width,m=t.height,v=window.getComputedStyle(e),E={left:parseInt(v.marginLeft),right:parseInt(v.marginRight),bottom:parseInt(v.marginBottom),top:parseInt(v.marginTop)},A={left:parseInt(v.paddingLeft),right:parseInt(v.paddingRight),bottom:parseInt(v.paddingBottom),top:parseInt(v.paddingTop)};return{x:r,y:n,top:i,left:c,bottom:f,right:g,width:b,height:m,outerWidth:Math.round(b+E.left+E.right),outerHeight:Math.round(m+E.top+E.bottom),margin:E,padding:A,inFlow:e.parentElement&&!!(function(F){var S=getComputedStyle(F);if(!(v.overflow&&v.overflow!=="visible"||S.float!=="none"||S.display==="grid"||S.display==="flex"&&S["flex-direction"]!=="column")){switch(v.position){case"static":case"relative":break;default:return}switch(e.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(v.display){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}})(e.parentElement)}};function Kx(e,t){const{subscribe:r,getState:n,actions:i,query:c}=e,f=L.useRef(!0),g=L.useRef(null),b=L.useRef(t);b.current=t;const m=L.useCallback((A=>({...A,actions:i,query:c})),[i,c]);f.current&&t&&(g.current=t(n(),c),f.current=!1);const[v,E]=L.useState(m(g.current));return L.useEffect((()=>{let A;return b.current&&(A=r((F=>b.current(F,c)),(F=>{E(m(F))}))),()=>{A&&A()}}),[m,c,r]),v}var Ju,Kb=function(){return _x(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Qx=(function(){function e(){Vu(this,e),Cr(this,"isEnabled",!0),Cr(this,"elementIdMap",new WeakMap),Cr(this,"registry",new Map)}return Xu(e,[{key:"getElementId",value:function(t){var r=this.elementIdMap.get(t);if(r)return r;var n=Kb();return this.elementIdMap.set(t,n),n}},{key:"getConnectorId",value:function(t,r){var n=this.getElementId(t);return"".concat(r,"--").concat(n)}},{key:"register",value:function(t,r){var n=this,i=this.getByElement(t,r.name);if(i){if(Ax(r.required,i.required))return i;this.getByElement(t,r.name).disable()}var c=null,f=this.getConnectorId(t,r.name);return this.registry.set(f,{id:f,required:r.required,enable:function(){c&&c(),c=r.connector(t,r.required,r.options)},disable:function(){c&&c()},remove:function(){return n.remove(f)}}),this.isEnabled&&this.registry.get(f).enable(),this.registry.get(f)}},{key:"get",value:function(t){return this.registry.get(t)}},{key:"remove",value:function(t){var r=this.get(t);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach((function(t){t.enable()}))}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach((function(t){t.disable()}))}},{key:"getByElement",value:function(t,r){return this.get(this.getConnectorId(t,r))}},{key:"removeByElement",value:function(t,r){return this.remove(this.getConnectorId(t,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),e})();(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(Ju||(Ju={}));var Qb=(function(){function e(t){Vu(this,e),Cr(this,"options",void 0),Cr(this,"registry",new Qx),Cr(this,"subscribers",new Set),this.options=t}return Xu(e,[{key:"listen",value:function(t){var r=this;return this.subscribers.add(t),function(){return r.subscribers.delete(t)}}},{key:"disable",value:function(){this.onDisable&&this.onDisable(),this.registry.disable(),this.subscribers.forEach((function(t){t(Ju.HandlerDisabled)}))}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach((function(t){t(Ju.HandlerEnabled)}))}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(t,r,n,i){var c=function(f){(function(g,b,m){g.craft||(g.craft={stopPropagation:function(){},blockedEvents:{}});for(var v=g.craft&&g.craft.blockedEvents[b]||[],E=0;E<v.length;E++){var A=v[E];if(m!==A&&m.contains(A))return!0}return!1})(f,r,t)||(f.craft.stopPropagation=function(){f.craft.blockedEvents[r]||(f.craft.blockedEvents[r]=[]),f.craft.blockedEvents[r].push(t)},n(f))};return t.addEventListener(r,c,i),function(){return t.removeEventListener(r,c,i)}}},{key:"createConnectorsUsage",value:function(){var t=this,r=this.handlers(),n=new Set,i=!1,c=new Map;return{connectors:Object.entries(r).reduce((function(f,g){var b=Yb(g,2),m=b[0],v=b[1];return Ia(Ia({},f),{},Cr({},m,(function(E,A,F){var S=function(){var N=t.registry.register(E,{required:A,name:m,options:F,connector:v});return n.add(N.id),N};return c.set(t.registry.getConnectorId(E,m),S),i&&S(),E})))}),{}),register:function(){i=!0,c.forEach((function(f){f()}))},cleanup:function(){i=!1,n.forEach((function(f){return t.registry.remove(f)}))}}}},{key:"derive",value:function(t,r){return new t(this,r)}},{key:"createProxyHandlers",value:function(t,r){var n=[],i=t.handlers(),c=new Proxy(i,{get:function(f,g,b){return g in i==0?Reflect.get(f,g,b):function(m){for(var v=arguments.length,E=new Array(v>1?v-1:0),A=1;A<v;A++)E[A-1]=arguments[A];var F=i[g].apply(i,[m].concat(E));F&&n.push(F)}}});return r(c),function(){n.forEach((function(f){f()}))}}},{key:"reflect",value:function(t){return this.createProxyHandlers(this,t)}}]),e})(),$x=(function(e){(function(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(f&&f.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),f&&ng(c,f)})(i,Qb);var t,r,n=(t=i,r=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var c,f=Zu(t);if(r){var g=Zu(this).constructor;c=Reflect.construct(f,arguments,g)}else c=f.apply(this,arguments);return(function(b,m){if(m&&(typeof m=="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ag(b)})(this,c)});function i(c,f){var g;return Vu(this,i),Cr(ag(g=n.call(this,f)),"derived",void 0),Cr(ag(g),"unsubscribeParentHandlerListener",void 0),g.derived=c,g.options=f,g.unsubscribeParentHandlerListener=g.derived.listen((function(b){switch(b){case Ju.HandlerEnabled:return g.enable();case Ju.HandlerDisabled:return g.disable();default:return}})),g}return Xu(i,[{key:"inherit",value:function(c){return this.createProxyHandlers(this.derived,c)}},{key:"cleanup",value:function(){og(Zu(i.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),i})();function $b(e,t){t&&(typeof e=="function"?e(t):e.current=t)}function eD(e,t){const r=e.ref;return Dt(typeof r!="string","Cannot connect to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),L.cloneElement(e,r?{ref:n=>{$b(r,n),$b(t,n)}}:{ref:t})}function tD(e){return(t=null,...r)=>{if(!L.isValidElement(t)){if(!t)return;const i=t;return i&&e(i,...r),i}const n=t;return(function(i){if(typeof i.type!="string")throw new Error})(n),eD(n,e)}}function ey(e){return Object.keys(e).reduce(((t,r)=>(t[r]=tD(((...n)=>e[r](...n))),t)),{})}const rD=({style:e,className:t,parentDom:r})=>{const n=L.createElement("div",{className:t,style:{position:"fixed",display:"block",opacity:1,borderStyle:"solid",borderWidth:"1px",borderColor:"transparent",zIndex:99999,...e}});return r&&r.ownerDocument!==document?Ho.createPortal(n,r.ownerDocument.body):n};var Bs=function(e,t){var r="Deprecation warning: ".concat(e," will be deprecated in future relases."),n=t.suggest,i=t.doc;n&&(r+=" Please use ".concat(n," instead.")),i&&(r+="(".concat(i,")")),console.warn(r)},ty=function(){return typeof window<"u"},nD=function(){return ty()&&/Linux/i.test(window.navigator.userAgent)},aD=function(){return ty()&&/Chrome/i.test(window.navigator.userAgent)},oD=Hh();const iD=nd(oD);typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const ry=L.createContext(null),lg=({id:e,related:t=!1,children:r})=>L.createElement(ry.Provider,{value:{id:e,related:t}},r);function ny(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ny(Object(r),!0).forEach((function(n){Er(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function ug(e){return ug=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ug(e)}function Cf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iy(n.key),n)}}function Ef(e,t,r){return t&&sD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Er(e,t,r){return(t=iy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cg(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dg(e,t)}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ff(e)}function dg(e,t){return dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},dg(e,t)}function fg(e,t){if(e==null)return{};var r,n,i=(function(f,g){if(f==null)return{};var b,m,v={},E=Object.keys(f);for(m=0;m<E.length;m++)g.indexOf(b=E[m])>=0||(v[b]=f[b]);return v})(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)t.indexOf(r=c[n])>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function fd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hg(e){var t=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var r,n=Ff(e);if(t){var i=Ff(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(function(c,f){if(f&&(typeof f=="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fd(c)})(this,r)}}function ay(e,t){return(function(r){if(Array.isArray(r))return r})(e)||(function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var c,f,g,b,m=[],v=!0,E=!1;try{if(g=(i=i.call(r)).next,n!==0)for(;!(v=(c=g.call(i)).done)&&(m.push(c.value),m.length!==n);v=!0);}catch(A){E=!0,f=A}finally{try{if(!v&&i.return!=null&&(b=i.return(),Object(b)!==b))return}finally{if(E)throw f}}return m}})(e,t)||oy(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
183
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function hd(e){return(function(t){if(Array.isArray(t))return pg(t)})(e)||(function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||oy(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
184
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function oy(e,t){if(e){if(typeof e=="string")return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pg(e,t):void 0}}function pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iy(e){var t=(function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var c=i.call(r,"string");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(e);return typeof t=="symbol"?t:String(t)}const gg=L.createContext(null);var sy=L.createContext(null),ly=function(){return L.useContext(sy)};function Ml(e){var t=ly(),r=L.useContext(gg);Dt(r,Gx);var n=Kx(r,e),i=L.useMemo((function(){return t&&t.createConnectorsUsage()}),[t]);L.useEffect((function(){return i.register(),function(){i.cleanup()}}),[i]);var c=L.useMemo((function(){return i&&ey(i.connectors)}),[i]);return Tt(Tt({},n),{},{connectors:c,inContext:!!r,store:r})}var lD=["actions","query","connectors"];function Sf(e){var t=L.useContext(ry);Dt(t,Yx);var r=t.id,n=t.related,i=Ml((function(v){return r&&v.nodes[r]&&e&&e(v.nodes[r])})),c=i.actions,f=i.connectors,g=fg(i,lD),b=L.useMemo((function(){return ey({connect:function(v){return f.connect(v,r)},drag:function(v){return f.drag(v,r)}})}),[f,r]),m=L.useMemo((function(){return{setProp:function(v,E){E?c.history.throttle(E).setProp(r,v):c.setProp(r,v)},setCustom:function(v,E){E?c.history.throttle(E).setCustom(r,v):c.setCustom(r,v)},setHidden:function(v){return c.setHidden(r,v)}}}),[c,r]);return Tt(Tt({},g),{},{id:r,related:n,inNodeContext:!!t,actions:m,connectors:b})}var uD=["id","related","actions","inNodeContext","connectors"];function ln(e){var t=Sf(e),r=t.id,n=t.related,i=t.actions,c=t.inNodeContext,f=t.connectors;return Tt(Tt({},fg(t,uD)),{},{actions:i,id:r,related:n,setProp:function(g,b){return Bs("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),i.setProp(g,b)},inNodeContext:c,connectors:f})}const cD=({render:e})=>{const{connectors:{connect:t,drag:r}}=ln();return typeof e.type=="string"?t(r(L.cloneElement(e))):e},dD=()=>{const{type:e,props:t,nodes:r,hydrationTimestamp:n}=Sf((i=>({type:i.data.type,props:i.data.props,nodes:i.data.nodes,hydrationTimestamp:i._hydrationTimestamp})));return L.useMemo((()=>{let i=t.children;r&&r.length>0&&(i=L.createElement(L.Fragment,null,r.map((f=>L.createElement(mg,{id:f,key:f})))));const c=L.createElement(e,t,i);return typeof e=="string"?L.createElement(cD,{render:c}):c}),[e,t,n,r])},fD=({render:e})=>{const{hidden:t}=Sf((n=>({hidden:n.data.hidden}))),{onRender:r}=Ml((n=>({onRender:n.options.onRender})));return t?null:L.createElement(r,{render:e||L.createElement(dD,null)})},mg=({id:e,render:t})=>L.createElement(lg,{id:e},L.createElement(fD,{render:t})),vg={is:"div",canvas:!1,custom:{},hidden:!1},hD={is:"type",canvas:"isCanvas"};function kf({id:e,children:t,...r}){const{is:n}={...vg,...r},{query:i,actions:c}=Ml(),{id:f,inNodeContext:g}=Sf(),[b]=L.useState((()=>{Dt(!!e,Px);const m=i.node(f).get();if(g){const v=m.data.linkedNodes[e]?i.node(m.data.linkedNodes[e]).get():null;if(v&&v.data.type===n)return v.id;const E=L.createElement(kf,r,t),A=i.parseReactElement(E).toNodeTree();return c.history.ignore().addLinkedNodeFromTree(A,f,e),A.rootNodeId}return null}));return b?L.createElement(mg,{id:b}):null}const uy=()=>Bs("<Canvas />",{suggest:"<Element canvas={true} />"});function bg({...e}){return L.useEffect((()=>uy()),[]),L.createElement(kf,{...e,canvas:!0})}const pD=()=>{const{timestamp:e}=Ml((t=>({timestamp:t.nodes[Go]&&t.nodes[Go]._hydrationTimestamp})));return e?L.createElement(mg,{id:Go,key:e}):null},gD=({children:e,json:t,data:r})=>{const{actions:n,query:i}=Ml();t&&Bs("<Frame json={...} />",{suggest:"<Frame data={...} />"});const c=L.useRef(!1);if(!c.current){const f=r||t;if(f)n.history.ignore().deserialize(f);else if(e){const g=L.Children.only(e),b=i.parseReactElement(g).toNodeTree(((m,v)=>(v===g&&(m.id=Go),m)));n.history.ignore().addNodeTree(b)}c.current=!0}return L.createElement(pD,null)};var cy;(function(e){e[e.Any=0]="Any",e[e.Id=1]="Id",e[e.Obj=2]="Obj"})(cy||(cy={}));const yg=e=>{const{addLinkedNodeFromTree:t,setDOM:r,setNodeEvent:n,replaceNodes:i,reset:c,...f}=e;return f};function La(e){const{connectors:t,actions:r,query:n,store:i,...c}=Ml(e),f=yg(r);return{connectors:t,actions:L.useMemo((()=>({...f,history:{...f.history,ignore:(...g)=>yg(f.history.ignore(...g)),throttle:(...g)=>yg(f.history.throttle(...g))}})),[f]),query:n,store:i,...c}}var dy=function(e){return Object.fromEntries?Object.fromEntries(e):e.reduce((function(t,r){var n=ay(r,2),i=n[0],c=n[1];return Tt(Tt({},t),{},Er({},i,c))}),{})},Bi=function(e,t,r){var n=Array.isArray(t)?t:[t],i=Tt({existOnly:!1,idOnly:!1},r||{}),c=n.filter((function(f){return!!f})).map((function(f){return typeof f=="string"?{node:e[f],exists:!!e[f]}:ug(f)!=="object"||i.idOnly?{node:null,exists:!1}:{node:f,exists:!!e[f.id]}}));return i.existOnly&&Dt(c.filter((function(f){return!f.exists})).length===0,Wb),c},mD=["history"],qu=null,Tf=function(e,t){if(typeof t=="string")return t;var r,n=(function(i,c){var f=(function(g){if(qu&&qu.resolver===g)return qu.reversed;qu={resolver:g,reversed:new Map};for(var b=0,m=Object.entries(g);b<m.length;b++){var v=ay(m[b],2);qu.reversed.set(v[1],v[0])}return qu.reversed})(i).get(c);return f!==void 0?f:null})(e,t);return Dt(n,Df.replace("%node_type%",(r=t).name||r.displayName)),n};const vD=(e,t)=>typeof e=="string"?e:{resolvedName:Tf(t,e)},wg=(e,t)=>{let{type:r,isCanvas:n,props:i}=e;return i=Object.keys(i).reduce(((c,f)=>{const g=i[f];return g==null||typeof g=="function"||(c[f]=f==="children"&&typeof g!="string"?L.Children.map(g,(b=>typeof b=="string"?b:wg(b,t))):typeof g.type=="function"?wg(g,t):g),c}),{}),{type:vD(r,t),isCanvas:!!n,props:i}},bD=(e,t)=>{const{type:r,props:n,isCanvas:i,name:c,...f}=e;return{...wg({type:r,isCanvas:i,props:n},t),...f}};function xg(e,t){Dt(typeof t=="string",Hx);var r=e.nodes[t],n=function(i){return xg(e,i)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===Go},isLinkedNode:function(){return r.data.parent&&n(r.data.parent).linkedNodes().includes(r.id)},isTopLevelNode:function(){return this.isRoot()||this.isLinkedNode()},isDeletable:function(){return!this.isTopLevelNode()},isParentOfTopLevelNodes:function(){return r.data.linkedNodes&&Object.keys(r.data.linkedNodes).length>0},isParentOfTopLevelCanvas:function(){return Bs("query.node(id).isParentOfTopLevelCanvas",{suggest:"query.node(id).isParentOfTopLevelNodes"}),this.isParentOfTopLevelNodes()},isSelected:function(){return e.events.selected.has(t)},isHovered:function(){return e.events.hovered.has(t)},isDragged:function(){return e.events.dragged.has(t)},get:function(){return r},ancestors:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return(function c(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=e.nodes[f];return m?(g.push(f),m.data.parent&&(i||!i&&b===0)&&(g=c(m.data.parent,g,b+1)),g):g})(r.data.parent)},descendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],c=arguments.length>1?arguments[1]:void 0;return(function f(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(i||!i&&m===0)&&e.nodes[g]&&(c!=="childNodes"&&n(g).linkedNodes().forEach((function(v){b.push(v),b=f(v,b,m+1)})),c!=="linkedNodes"&&n(g).childNodes().forEach((function(v){b.push(v),b=f(v,b,m+1)}))),b})(t)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(i){try{var c=r;return Dt(!this.isTopLevelNode(),jb),Dt(xg(e,c.data.parent).isCanvas(),Ub),Dt(c.rules.canDrag(c,n),zx),!0}catch(f){return i&&i(f),!1}},isDroppable:function(i,c){var f=Bi(e.nodes,i),g=r;try{Dt(this.isCanvas(),Lx),Dt(g.rules.canMoveIn(f.map((function(m){return m.node})),g,n),Bx);var b={};return f.forEach((function(m){var v=m.node,E=m.exists;if(Dt(v.rules.canDrop(g,v,n),Ox),E){Dt(!n(v.id).isTopLevelNode(),jb);var A=n(v.id).descendants(!0);Dt(!A.includes(g.id)&&g.id!==v.id,Mx);var F=v.data.parent&&e.nodes[v.data.parent];Dt(F.data.isCanvas,Ub),Dt(F||!F&&!e.nodes[v.id],Nx),F.id!==g.id&&(b[F.id]||(b[F.id]=[]),b[F.id].push(v))}})),Object.keys(b).forEach((function(m){var v=e.nodes[m];Dt(v.rules.canMoveOut(b[m],v,n),Ix)})),!0}catch(m){return c&&c(m),!1}},toSerializedNode:function(){return bD(r.data,e.options.resolver)},toNodeTree:function(i){var c=[t].concat(hd(this.descendants(!0,i))).reduce((function(f,g){return f[g]=n(g).get(),f}),{});return{rootNodeId:t,nodes:c}},decendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return Bs("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(i)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function fy(e,t,r,n){for(var i={parent:e,index:0,where:"before"},c=0,f=0,g=0,b=0,m=0,v=0,E=0,A=t.length;E<A;E++){var F=t[E];if(v=F.top+F.outerHeight,b=F.left+F.outerWidth/2,m=F.top+F.outerHeight/2,!(f&&F.left>f||g&&m>=g||c&&F.left+F.outerWidth<c))if(i.index=E,F.inFlow){if(n<m){i.where="before";break}i.where="after"}else n<v&&(g=v),r<b?(f=b,i.where="before"):(c=b,i.where="after")}return i}var Af=function(e){return typeof e=="string"?e:e.name};function hy(e,t){var r=e.data.type,n={id:e.id||Kb(),_hydrationTimestamp:Date.now(),data:Tt({type:r,name:Af(r),displayName:Af(r),props:{},custom:{},parent:null,isCanvas:!1,hidden:!1,nodes:[],linkedNodes:{}},e.data),info:{},related:{},events:{selected:!1,dragged:!1,hovered:!1},rules:{canDrag:function(){return!0},canDrop:function(){return!0},canMoveIn:function(){return!0},canMoveOut:function(){return!0}},dom:null};if(n.data.type===kf||n.data.type===bg){var i=Tt(Tt({},vg),n.data.props);n.data.props=Object.keys(n.data.props).reduce((function(g,b){return Object.keys(vg).includes(b)?n.data[hD[b]||b]=i[b]:g[b]=n.data.props[b],g}),{}),n.data.name=Af(r=n.data.type),n.data.displayName=Af(r),n.data.type===bg&&(n.data.isCanvas=!0,uy())}t&&t(n);var c=r.craft;if(c){if(n.data.displayName=c.displayName||c.name||n.data.displayName,n.data.props=Tt(Tt({},c.props||c.defaultProps||{}),n.data.props),n.data.custom=Tt(Tt({},c.custom||{}),n.data.custom),c.isCanvas!=null&&(n.data.isCanvas=c.isCanvas),c.rules&&Object.keys(c.rules).forEach((function(g){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(g)&&(n.rules[g]=c.rules[g])})),c.related){var f={id:n.id,related:!0};Object.keys(c.related).forEach((function(g){n.related[g]=function(b){return L.createElement(lg,f,L.createElement(c.related[g],b))}}))}c.info&&(n.info=c.info)}return n}const Dg=(e,t,r)=>{let{type:n,props:i}=e;const c=((g,b)=>typeof g=="object"&&g.resolvedName?g.resolvedName==="Canvas"?bg:b[g.resolvedName]:typeof g=="string"?g:null)(n,t);if(!c)return;i=Object.keys(i).reduce(((g,b)=>{const m=i[b];return g[b]=m==null?null:typeof m=="object"&&m.resolvedName?Dg(m,t):b==="children"&&Array.isArray(m)?m.map((v=>typeof v=="string"?v:Dg(v,t))):m,g}),{});const f={...L.createElement(c,{...i})};return{...f,name:Tf(t,f.type)}},yD=(e,t)=>{const{type:r,props:n,...i}=e;Dt(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,jx.replace("%displayName%",e.displayName).replace("%availableComponents%",Object.keys(t).join(", ")));const{type:c,name:f,props:g}=Dg(e,t),{parent:b,custom:m,displayName:v,isCanvas:E,nodes:A,hidden:F}=i;return{type:c,name:f,displayName:v||f,props:g,custom:m||{},isCanvas:!!E,hidden:!!F,parent:b,linkedNodes:i.linkedNodes||i._childCanvas||{},nodes:A||[]}},wD=(e,t)=>{if(t.length<1)return{[e.id]:e};const r=t.map((({rootNodeId:i})=>i)),n={...e,data:{...e.data,nodes:r}};return t.reduce(((i,c)=>{const f=c.nodes[c.rootNodeId];return{...i,...c.nodes,[f.id]:{...f,data:{...f.data,parent:e.id}}}}),{[e.id]:n})},xD=(e,t)=>({rootNodeId:e.id,nodes:wD(e,t)});function py(e){const t=e&&e.options,r=()=>py(e);return{getDropPlaceholder:(n,i,c,f=(g=>e.nodes[g.id].dom))=>{const g=e.nodes[i],b=r().node(g.id).isCanvas()?g:e.nodes[g.data.parent];if(!b)return;const m=b.data.nodes||[],v=fy(b,m?m.reduce(((F,S)=>{const N=f(e.nodes[S]);if(N){const O={id:S,...dd(N)};F.push(O)}return F}),[]):[],c.x,c.y),E=m.length&&e.nodes[m[v.index]],A={placement:{...v,currentNode:E},error:null};return Bi(e.nodes,n).forEach((({node:F,exists:S})=>{S&&r().node(F.id).isDraggable((N=>A.error=N))})),r().node(b.id).isDroppable(n,(F=>A.error=F)),A},getOptions:()=>t,getNodes:()=>e.nodes,node:n=>xg(e,n),getSerializedNodes(){const n=Object.keys(e.nodes).map((i=>[i,this.node(i).toSerializedNode()]));return dy(n)},getEvent:n=>(function(i,c){var f=i.events[c];return{contains:function(g){return f.has(g)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var g=this.all();return g[g.length-1]},all:function(){return Array.from(f)},size:function(){return this.all().length},at:function(g){return this.all()[g]},raw:function(){return f}}})(e,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(i){let c=(function(g,b){let m=g;return typeof m=="string"&&(m=L.createElement(L.Fragment,{},m)),hy({data:{type:m.type,props:{...m.props}}},(v=>{b&&b(v,m)}))})(n,((g,b)=>{const m=Tf(e.options.resolver,g.data.type);g.data.displayName=g.data.displayName||m,g.data.name=m,i&&i(g,b)})),f=[];return n.props&&n.props.children&&(f=L.Children.toArray(n.props.children).reduce(((g,b)=>(L.isValidElement(b)&&g.push(r().parseReactElement(b).toNodeTree(i)),g)),[])),xD(c,f)}}),parseSerializedNode:n=>({toNode(i){const c=yD(n,e.options.resolver);Dt(c.type,Df);const f=typeof i=="string"&&i;return f&&Bs("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...f?{id:f}:{},data:c}).toNode(!f&&i)}}),parseFreshNode:n=>({toNode:i=>hy(n,(c=>{c.data.parent===Hb&&(c.data.parent=Go);const f=Tf(e.options.resolver,c.data.type);Dt(f!==null,Df),c.data.displayName=c.data.displayName||f,c.data.name=f,i&&i(c)}))}),createNode(n,i){Bs(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const c=this.parseReactElement(n).toNodeTree(),f=c.nodes[c.rootNodeId];return i&&(i.id&&(f.id=i.id),i.data&&(f.data={...f.data,...i.data})),f},getState:()=>e}}var DD=(function(e){cg(r,Qb);var t=hg(r);function r(){return Cf(this,r),t.apply(this,arguments)}return Ef(r,[{key:"handlers",value:function(){return{connect:function(n,i){},select:function(n,i){},hover:function(n,i){},drag:function(n,i){},drop:function(n,i){},create:function(n,i,c){}}}}]),r})();(function(e){cg(r,$x);var t=hg(r);function r(){return Cf(this,r),t.apply(this,arguments)}return Ef(r)})();var gy=function(e){e.preventDefault()},Cg=(function(){function e(t,r){Cf(this,e),Er(this,"store",void 0),Er(this,"dragTarget",void 0),Er(this,"currentDropTargetId",void 0),Er(this,"currentDropTargetCanvasAncestorId",void 0),Er(this,"currentIndicator",null),Er(this,"currentTargetId",void 0),Er(this,"currentTargetChildDimensions",void 0),Er(this,"dragError",void 0),Er(this,"draggedNodes",void 0),Er(this,"onScrollListener",void 0),this.store=t,this.dragTarget=r,this.currentDropTargetId=null,this.currentDropTargetCanvasAncestorId=null,this.currentTargetId=null,this.currentTargetChildDimensions=null,this.currentIndicator=null,this.dragError=null,this.draggedNodes=this.getDraggedNodes(),this.validateDraggedNodes(),this.onScrollListener=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollListener,!0),window.addEventListener("dragover",gy,!1)}return Ef(e,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",gy,!1)}},{key:"onScroll",value:function(t){var r=t.target,n=this.store.query.node(Go).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Bi(this.store.query.getNodes(),this.dragTarget.type==="new"?this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId]:this.dragTarget.nodes)}},{key:"validateDraggedNodes",value:function(){var t=this;this.dragTarget.type!=="new"&&this.draggedNodes.forEach((function(r){r.exists&&t.store.query.node(r.node.id).isDraggable((function(n){t.dragError=n}))}))}},{key:"isNearBorders",value:function(t,r,n){return t.top+e.BORDER_OFFSET>n||t.bottom-e.BORDER_OFFSET<n||t.left+e.BORDER_OFFSET>r||t.right-e.BORDER_OFFSET<r}},{key:"isDiff",value:function(t){return!this.currentIndicator||this.currentIndicator.placement.parent.id!==t.parent.id||this.currentIndicator.placement.index!==t.index||this.currentIndicator.placement.where!==t.where}},{key:"getChildDimensions",value:function(t){var r=this,n=this.currentTargetChildDimensions;return this.currentTargetId===t.id&&n?n:t.data.nodes.reduce((function(i,c){var f=r.store.query.node(c).get().dom;return f&&i.push(Tt({id:c},dd(f))),i}),[])}},{key:"getCanvasAncestor",value:function(t){var r=this;if(t===this.currentDropTargetId&&this.currentDropTargetCanvasAncestorId){var n=this.store.query.node(this.currentDropTargetCanvasAncestorId).get();if(n)return n}return(function i(c){var f=r.store.query.node(c).get();return f&&f.data.isCanvas?f:f.data.parent?i(f.data.parent):null})(t)}},{key:"computeIndicator",value:function(t,r,n){var i=this.getCanvasAncestor(t);if(i&&(this.currentDropTargetId=t,this.currentDropTargetCanvasAncestorId=i.id,i.data.parent&&this.isNearBorders(dd(i.dom),r,n)&&!this.store.query.node(i.id).isLinkedNode()&&(i=this.store.query.node(i.data.parent).get()),i)){this.currentTargetChildDimensions=this.getChildDimensions(i),this.currentTargetId=i.id;var c=fy(i,this.currentTargetChildDimensions,r,n);if(this.isDiff(c)){var f=this.dragError;f||this.store.query.node(i.id).isDroppable(this.draggedNodes.map((function(m){return m.node})),(function(m){f=m}));var g=i.data.nodes[c.index],b=g&&this.store.query.node(g).get();return this.currentIndicator={placement:Tt(Tt({},c),{},{currentNode:b}),error:f},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),e})();Er(Cg,"BORDER_OFFSET",10);var my=function(e,t){if(t.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=t[0].getBoundingClientRect(),n=r.width,i=r.height,c=t[0].cloneNode(!0);return c.style.position="absolute",c.style.left="-100%",c.style.top="-100%",c.style.width="".concat(n,"px"),c.style.height="".concat(i,"px"),c.style.pointerEvents="none",c.classList.add("drag-shadow"),document.body.appendChild(c),e.dataTransfer.setDragImage(c,0,0),c}var f=document.createElement("div");return f.style.position="absolute",f.style.left="-100%",f.style.top="-100%",f.style.width="100%",f.style.height="100%",f.style.pointerEvents="none",f.classList.add("drag-shadow-container"),t.forEach((function(g){var b=g.getBoundingClientRect(),m=b.width,v=b.height,E=b.top,A=b.left,F=g.cloneNode(!0);F.style.position="absolute",F.style.left="".concat(A,"px"),F.style.top="".concat(E,"px"),F.style.width="".concat(m,"px"),F.style.height="".concat(v,"px"),F.classList.add("drag-shadow"),f.appendChild(F)})),document.body.appendChild(f),e.dataTransfer.setDragImage(f,e.clientX,e.clientY),f},vy=(function(e){cg(r,DD);var t=hg(r);function r(){var n;Cf(this,r);for(var i=arguments.length,c=new Array(i),f=0;f<i;f++)c[f]=arguments[f];return Er(fd(n=t.call.apply(t,[this].concat(c))),"draggedElementShadow",void 0),Er(fd(n),"dragTarget",void 0),Er(fd(n),"positioner",null),Er(fd(n),"currentSelectedElementIds",[]),n}return Ef(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,i=this.options.store;return{connect:function(c,f){return i.actions.setDOM(f,c),n.reflect((function(g){g.select(c,f),g.hover(c,f),g.drop(c,f)}))},select:function(c,f){var g=n.addCraftEventListener(c,"mousedown",(function(m){m.craft.stopPropagation();var v=[];if(f){var E=i.query,A=E.getEvent("selected").all();(n.options.isMultiSelectEnabled(m)||A.includes(f))&&(v=A.filter((function(F){var S=E.node(F).descendants(!0),N=E.node(F).ancestors(!0);return!S.includes(f)&&!N.includes(f)}))),v.includes(f)||v.push(f)}i.actions.setNodeEvent("selected",v)})),b=n.addCraftEventListener(c,"click",(function(m){m.craft.stopPropagation();var v=i.query.getEvent("selected").all(),E=n.options.isMultiSelectEnabled(m),A=n.currentSelectedElementIds.includes(f),F=hd(v);E&&A?(F.splice(F.indexOf(f),1),i.actions.setNodeEvent("selected",F)):!E&&v.length>1&&i.actions.setNodeEvent("selected",F=[f]),n.currentSelectedElementIds=F}));return function(){g(),b()}},hover:function(c,f){var g=n.addCraftEventListener(c,"mouseover",(function(m){m.craft.stopPropagation(),i.actions.setNodeEvent("hovered",f)})),b=null;return n.options.removeHoverOnMouseleave&&(b=n.addCraftEventListener(c,"mouseleave",(function(m){m.craft.stopPropagation(),i.actions.setNodeEvent("hovered",null)}))),function(){g(),b&&b()}},drop:function(c,f){var g=n.addCraftEventListener(c,"dragover",(function(m){if(m.craft.stopPropagation(),m.preventDefault(),n.positioner){var v=n.positioner.computeIndicator(f,m.clientX,m.clientY);v&&i.actions.setIndicator(v)}})),b=n.addCraftEventListener(c,"dragenter",(function(m){m.craft.stopPropagation(),m.preventDefault()}));return function(){b(),g()}},drag:function(c,f){if(!i.query.node(f).isDraggable())return function(){};c.setAttribute("draggable","true");var g=n.addCraftEventListener(c,"dragstart",(function(m){m.craft.stopPropagation();var v=i.query,E=i.actions,A=v.getEvent("selected").all(),F=n.options.isMultiSelectEnabled(m);n.currentSelectedElementIds.includes(f)||(A=F?[].concat(hd(A),[f]):[f],i.actions.setNodeEvent("selected",A)),E.setNodeEvent("dragged",A);var S=A.map((function(N){return v.node(N).get().dom}));n.draggedElementShadow=my(m,S,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:A},n.positioner=new Cg(n.options.store,n.dragTarget)})),b=n.addCraftEventListener(c,"dragend",(function(m){m.craft.stopPropagation(),n.dropElement((function(v,E){v.type!=="new"&&i.actions.move(v.nodes,E.placement.parent.id,E.placement.index+(E.placement.where==="after"?1:0))}))}));return function(){c.setAttribute("draggable","false"),g(),b()}},create:function(c,f,g){c.setAttribute("draggable","true");var b=n.addCraftEventListener(c,"dragstart",(function(v){var E;if(v.craft.stopPropagation(),typeof f=="function"){var A=f();E=L.isValidElement(A)?i.query.parseReactElement(A).toNodeTree():A}else E=i.query.parseReactElement(f).toNodeTree();n.draggedElementShadow=my(v,[v.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:E},n.positioner=new Cg(n.options.store,n.dragTarget)})),m=n.addCraftEventListener(c,"dragend",(function(v){v.craft.stopPropagation(),n.dropElement((function(E,A){E.type!=="existing"&&(i.actions.addNodeTree(E.tree,A.placement.parent.id,A.placement.index+(A.placement.where==="after"?1:0)),g&&iD(g.onCreate)&&g.onCreate(E.tree))}))}));return function(){c.removeAttribute("draggable"),b(),m()}}}}},{key:"dropElement",value:function(n){var i=this.options.store;if(this.positioner){var c=this.draggedElementShadow,f=this.positioner.getIndicator();this.dragTarget&&f&&!f.error&&n(this.dragTarget,f),c&&(c.parentNode.removeChild(c),this.draggedElementShadow=null),this.dragTarget=null,i.actions.setIndicator(null),i.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r})();function CD(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,i=0,c=0,f=0,g=0,b=e.where;return r?r.inFlow?(f=r.outerWidth,g=n,i=b==="before"?r.top:r.bottom,c=r.left):(f=n,g=r.outerHeight,i=r.top,c=b==="before"?r.left:r.left+r.outerWidth):t&&(i=t.top+t.padding.top,c=t.left+t.padding.left,f=t.outerWidth-t.padding.right-t.padding.left-t.margin.left-t.margin.right,g=n),{top:"".concat(i,"px"),left:"".concat(c,"px"),width:"".concat(f,"px"),height:"".concat(g,"px")}}Er(vy,"forceSingleDragShadow",aD()&&nD());const ED=()=>{const{indicator:e,indicatorOptions:t,enabled:r}=Ml((i=>({indicator:i.indicator,indicatorOptions:i.options.indicator,enabled:i.options.enabled}))),n=ly();return L.useEffect((()=>{n&&(r?n.enable():n.disable())}),[r,n]),e?L.createElement(rD,{className:t.className,style:{...CD(e.placement,dd(e.placement.parent.dom),e.placement.currentNode&&dd(e.placement.currentNode.dom),t.thickness),backgroundColor:e.error?t.error:t.success,transition:t.transition||"0.2s ease-in",...t.style??{}},parentDom:e.placement.parent.dom}):null},FD=({children:e})=>{const t=L.useContext(gg),r=L.useMemo((()=>t.query.getOptions().handlers(t)),[t]);return r?L.createElement(sy.Provider,{value:r},L.createElement(ED,null),e):null},by={nodes:{},events:{dragged:new Set,selected:new Set,hovered:new Set},indicator:null,options:{onNodesChange:()=>null,onRender:({render:e})=>e,onBeforeMoveEnd:()=>null,resolver:{},enabled:!0,indicator:{error:"red",success:"rgb(98, 196, 98)"},handlers:e=>new vy({store:e,removeHoverOnMouseleave:!1,isMultiSelectEnabled:t=>!!t.metaKey}),normalizeNodes:()=>{}}},SD={methods:function(e,t){return Tt(Tt({},(function(r,n){var i=function(g,b,m){if((function A(F,S){var N=g.nodes[F];typeof N.data.type!="string"&&Dt(r.options.resolver[N.data.name],Df.replace("%node_type%","".concat(N.data.type.name))),r.nodes[F]=Tt(Tt({},N),{},{data:Tt(Tt({},N.data),{},{parent:S})}),N.data.nodes.length>0&&(delete r.nodes[F].data.props.children,N.data.nodes.forEach((function(O){return A(O,N.id)}))),Object.values(N.data.linkedNodes).forEach((function(O){return A(O,N.id)}))})(g.rootNodeId,b),b||g.rootNodeId!==Go){var v=c(b);if(m.type!=="child")v.data.linkedNodes[m.id]=g.rootNodeId;else{var E=m.index;E!=null?v.data.nodes.splice(E,0,g.rootNodeId):v.data.nodes.push(g.rootNodeId)}}},c=function(g){Dt(g,Rx);var b=r.nodes[g];return Dt(b,Wb),b},f=function g(b){var m=r.nodes[b],v=r.nodes[m.data.parent];if(m.data.nodes&&hd(m.data.nodes).forEach((function(F){return g(F)})),m.data.linkedNodes&&Object.values(m.data.linkedNodes).map((function(F){return g(F)})),v.data.nodes.includes(b)){var E=v.data.nodes;E.splice(E.indexOf(b),1)}else{var A=Object.keys(v.data.linkedNodes).find((function(F){return v.data.linkedNodes[F]===F}));A&&delete v.data.linkedNodes[A]}(function(F,S){Object.keys(F.events).forEach((function(N){var O=F.events[N];O&&O.has&&O.has(S)&&(F.events[N]=new Set(Array.from(O).filter((function(B){return S!==B}))))}))})(r,b),delete r.nodes[b]};return{addLinkedNodeFromTree:function(g,b,m){var v=c(b).data.linkedNodes[m];v&&f(v),i(g,b,{type:"linked",id:m})},add:function(g,b,m){var v=[g];Array.isArray(g)&&(Bs("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),v=g),v.forEach((function(E){i({nodes:Er({},E.id,E),rootNodeId:E.id},b,{type:"child",index:m})}))},addNodeTree:function(g,b,m){i(g,b,{type:"child",index:m})},delete:function(g){Bi(r.nodes,g,{existOnly:!0,idOnly:!0}).forEach((function(b){var m=b.node;Dt(!n.node(m.id).isTopLevelNode(),Wx),f(m.id)}))},deserialize:function(g){var b=typeof g=="string"?JSON.parse(g):g,m=Object.keys(b).map((function(v){var E=v;return v===Hb&&(E=Go),[E,n.parseSerializedNode(b[v]).toNode((function(A){return A.id=E}))]}));this.replaceNodes(dy(m))},move:function(g,b,m){var v=Bi(r.nodes,g,{existOnly:!0}),E=r.nodes[b],A=new Set;v.forEach((function(F,S){var N=F.node,O=N.id,B=N.data.parent;n.node(b).isDroppable([O],(function(V){throw new Error(V)})),r.options.onBeforeMoveEnd(N,E,r.nodes[B]);var z=r.nodes[B].data.nodes;A.add(z);var Z=z.indexOf(O);z[Z]="$$",E.data.nodes.splice(m+S,0,O),r.nodes[O].data.parent=b})),A.forEach((function(F){var S=F.length;hd(F).reverse().forEach((function(N,O){N==="$$"&&F.splice(S-1-O,1)}))}))},replaceNodes:function(g){this.clearEvents(),r.nodes=g},clearEvents:function(){this.setNodeEvent("selected",null),this.setNodeEvent("hovered",null),this.setNodeEvent("dragged",null),this.setIndicator(null)},reset:function(){this.clearEvents(),this.replaceNodes({})},setOptions:function(g){g(r.options)},setNodeEvent:function(g,b){if(r.events[g].forEach((function(E){r.nodes[E]&&(r.nodes[E].events[g]=!1)})),r.events[g]=new Set,b){var m=Bi(r.nodes,b,{idOnly:!0,existOnly:!0}),v=new Set(m.map((function(E){return E.node.id})));v.forEach((function(E){r.nodes[E].events[g]=!0})),r.events[g]=v}},setCustom:function(g,b){Bi(r.nodes,g,{idOnly:!0,existOnly:!0}).forEach((function(m){return b(r.nodes[m.node.id].data.custom)}))},setDOM:function(g,b){r.nodes[g]&&(r.nodes[g].dom=b)},setIndicator:function(g){g&&(!g.placement.parent.dom||g.placement.currentNode&&!g.placement.currentNode.dom)||(r.indicator=g)},setHidden:function(g,b){r.nodes[g].data.hidden=b},setProp:function(g,b){Bi(r.nodes,g,{idOnly:!0,existOnly:!0}).forEach((function(m){return b(r.nodes[m.node.id].data.props)}))},selectNode:function(g){if(g){var b=Bi(r.nodes,g,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",b.map((function(m){return m.node.id})))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}})(e,t)),{},{setState:function(r){var n=fg(this,mD);r(e,n)}})},ignoreHistoryForActions:["setDOM","setNodeEvent","selectNode","clearEvents","setOptions","setIndicator"],normalizeHistory:e=>{Object.keys(e.events).forEach((t=>{Array.from(e.events[t]||[]).forEach((r=>{e.nodes[r]||e.events[t].delete(r)}))})),Object.keys(e.nodes).forEach((t=>{const r=e.nodes[t];Object.keys(r.events).forEach((n=>{r.events[n]&&e.events[n]&&!e.events[n].has(r.id)&&(r.events[n]=!1)}))}))}},kD=(e,t)=>Zx(SD,{...by,options:{...by.options,...e}},py,t),TD=({children:e,...t})=>{t.resolver!==void 0&&Dt(typeof t.resolver=="object"&&!Array.isArray(t.resolver)&&t.resolver!==null,Ux);const r=rd.useRef(t),n=kD(r.current,((i,c,f,g,b)=>{if(!f)return;const{patches:m,...v}=f;for(let E=0;E<m.length;E++){const{path:A}=m[E],F=A.length>2&&A[0]==="nodes"&&A[2]==="data";if([qt.IGNORE,qt.THROTTLE].includes(v.type)&&v.params&&(v.type=v.params[0]),["setState","deserialize"].includes(v.type)||F){b((S=>{i.options.normalizeNodes&&i.options.normalizeNodes(S,c,v,g)}));break}}}));return rd.useEffect((()=>{n&&t.enabled!==void 0&&n.query.getOptions().enabled!==t.enabled&&n.actions.setOptions((i=>{i.enabled=t.enabled}))}),[n,t.enabled]),rd.useEffect((()=>{n.subscribe((i=>({json:n.query.serialize()})),(()=>{n.query.getOptions().onNodesChange(n.query)}))}),[n]),n?rd.createElement(gg.Provider,{value:n},rd.createElement(FD,null,e)):null};var yy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wy=L.createContext&&L.createContext(yy),AD=["attr","size","title"];function _D(e,t){if(e==null)return{};var r=RD(e,t),n,i;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(i=0;i<c.length;i++)n=c[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_f.apply(this,arguments)}function xy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xy(Object(r),!0).forEach(function(n){ND(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ND(e,t,r){return t=PD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PD(e){var t=OD(e,"string");return typeof t=="symbol"?t:t+""}function OD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dy(e){return e&&e.map((t,r)=>L.createElement(t.tag,Rf({key:r},t.attr),Dy(t.child)))}function fo(e){return t=>L.createElement(BD,_f({attr:Rf({},e.attr)},t),Dy(e.child))}function BD(e){var t=r=>{var{attr:n,size:i,title:c}=e,f=_D(e,AD),g=i||r.size||"1em",b;return r.className&&(b=r.className),e.className&&(b=(b?b+" ":"")+e.className),L.createElement("svg",_f({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,f,{className:b,style:Rf(Rf({color:e.color||r.color},r.style),e.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),c&&L.createElement("title",null,c),e.children)};return wy!==void 0?L.createElement(wy.Consumer,null,r=>t(r)):t(yy)}function ID(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5Z"},child:[]}]})(e)}function LD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"},child:[]}]})(e)}function MD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 11H4V13H2V11ZM6 11H18V13H6V11ZM20 11H22V13H20V11Z"},child:[]}]})(e)}function zD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 6V21H11V6H5V4H19V6H13Z"},child:[]}]})(e)}function HD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z"},child:[]}]})(e)}function WD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 1L21.5 6.5V17.5L12 23L2.5 17.5V6.5L12 1ZM5.49388 7.0777L12.0001 10.8444L18.5062 7.07774L12 3.311L5.49388 7.0777ZM4.5 8.81329V16.3469L11.0001 20.1101V12.5765L4.5 8.81329ZM13.0001 20.11L19.5 16.3469V8.81337L13.0001 12.5765V20.11Z"},child:[]}]})(e)}const Cy=({children:e,style:t,...r})=>{const{connectors:{connect:n,drag:i}}=ln(f=>({selected:f.events.selected})),c={...t,display:"block",overflow:"visible",boxSizing:"border-box",...t?.height==="auto"&&{height:"auto",minHeight:t?.minHeight||"50px"}};return w.jsx("div",{ref:f=>{f&&n(i(f))},style:c,...r,children:e})},UD={displayName:"Box",isCanvas:!0,custom:{resizable:!0,tagHtml:"div",settings:["default"]},props:{style:{padding:"16px",margin:"0px",border:"none",borderRadius:"0px",width:"100%",height:"auto",minHeight:"50px"}}};Cy.craft={...UD};const Ey=({text:e="Button",variant:t="primary",size:r="md",onClick:n,...i})=>{const{connectors:{connect:c,drag:f},selected:g}=ln(m=>({selected:m.events.selected})),b=()=>{const m={fontFamily:"inherit",fontWeight:"500",border:"none",cursor:g?"pointer":"default",transition:"all 0.2s"},v={sm:{padding:"6px 12px",fontSize:"14px"},md:{padding:"8px 16px",fontSize:"16px"},lg:{padding:"12px 24px",fontSize:"18px"}},E={primary:{backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px"},secondary:{backgroundColor:"#6b7280",color:"#ffffff",borderRadius:"8px"},outline:{backgroundColor:"transparent",color:"#374151",border:"1px solid #d1d5db",borderRadius:"8px"}};return{...m,...v[r],...E[t]}};return w.jsx("button",{ref:m=>{m&&c(f(m))},style:b(),className:`${g?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"} transition-all duration-200`,onClick:n,...i,children:e})},jD={props:{text:"Button",variant:"primary",size:"md"},displayName:"Button",custom:{displayName:"Button"}};function Fy(){const{actions:{setProp:e},text:t,variant:r,size:n}=ln(i=>({text:i.data.props.text,variant:i.data.props.variant,size:i.data.props.size}));return w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Button text"}),w.jsx("input",{type:"text",value:t,onChange:i=>e(c=>c.text=i.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Variant"}),w.jsxs("select",{value:r,onChange:i=>e(c=>c.variant=i.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",children:[w.jsx("option",{value:"primary",children:"Primary"}),w.jsx("option",{value:"secondary",children:"Secondary"}),w.jsx("option",{value:"outline",children:"Outline"})]})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Size"}),w.jsxs("select",{value:n,onChange:i=>e(c=>c.size=i.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",children:[w.jsx("option",{value:"sm",children:"Small"}),w.jsx("option",{value:"md",children:"Medium"}),w.jsx("option",{value:"lg",children:"Large"})]})]})]})}Ey.craft={...jD,related:{settings:Fy}};function Sy(){const{actions:{setProp:e},color:t,height:r,width:n,margin:i}=ln(c=>({color:c.data.props.color,height:c.data.props.height,width:c.data.props.width,margin:c.data.props.margin}));return w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Color"}),w.jsx("input",{type:"color",value:t,onChange:c=>e(f=>f.color=c.target.value),className:"focus:ring-primary-500 h-10 w-full rounded-md border border-gray-300 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Height"}),w.jsx("input",{type:"text",value:r,onChange:c=>e(f=>f.height=c.target.value),placeholder:"1px",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Width"}),w.jsx("input",{type:"text",value:n,onChange:c=>e(f=>f.width=c.target.value),placeholder:"100%",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Margin"}),w.jsx("input",{type:"text",value:i,onChange:c=>e(f=>f.margin=c.target.value),placeholder:"16px 0",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}const ky=({color:e="#e5e7eb",height:t="1px",width:r="100%",margin:n="16px 0",...i})=>{const{connectors:{connect:c,drag:f},selected:g}=ln(m=>({selected:m.events.selected})),b={backgroundColor:e,height:t,width:r,margin:n,cursor:g?"pointer":"default"};return w.jsx("div",{ref:m=>{m&&c(f(m))},style:b,className:`${g?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"} transition-all duration-200`,...i})};ky.craft={props:{color:"#e5e7eb",height:"1px",width:"100%",margin:"16px 0"},related:{settings:Sy}};var gr=function(){return gr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},gr.apply(this,arguments)},Ty={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Ay={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Nf={width:"20px",height:"20px",position:"absolute",zIndex:1},GD={top:gr(gr({},Ty),{top:"-5px"}),right:gr(gr({},Ay),{left:void 0,right:"-5px"}),bottom:gr(gr({},Ty),{top:void 0,bottom:"-5px"}),left:gr(gr({},Ay),{left:"-5px"}),topRight:gr(gr({},Nf),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:gr(gr({},Nf),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:gr(gr({},Nf),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:gr(gr({},Nf),{left:"-10px",top:"-10px",cursor:"nw-resize"})},YD=L.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,i=e.replaceStyles,c=e.className,f=L.useCallback(function(m){t(m,r)},[t,r]),g=L.useCallback(function(m){t(m,r)},[t,r]),b=L.useMemo(function(){return gr(gr({position:"absolute",userSelect:"none"},GD[r]),i??{})},[i,r]);return w.jsx("div",{className:c||void 0,style:b,onMouseDown:f,onTouchStart:g,children:n})}),VD=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Yo=function(){return Yo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Yo.apply(this,arguments)},XD={width:"auto",height:"auto"},Pf=function(e,t,r){return Math.max(Math.min(e,r),t)},_y=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},Ku=function(e,t){return new RegExp(e,"i").test(t)},Of=function(e){return!!(e.touches&&e.touches.length)},ZD=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Ry=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(c,f,g){return Math.abs(f-e)<Math.abs(t[c]-e)?g:c},0),i=Math.abs(t[n]-e);return r===0||i<r?t[n]:e},Eg=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Bf=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return r*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return n*i}}return e},JD=function(e,t,r,n,i,c,f){return n=Bf(n,e.width,t,r),i=Bf(i,e.height,t,r),c=Bf(c,e.width,t,r),f=Bf(f,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof c>"u"?void 0:Number(c),minHeight:typeof f>"u"?void 0:Number(f)}},qD=function(e){return Array.isArray(e)?e:[e,e]},KD=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Ny="__resizable_base__",QD=(function(e){VD(t,e);function t(r){var n,i,c,f,g=e.call(this,r)||this;return g.ratio=1,g.resizable=null,g.parentLeft=0,g.parentTop=0,g.resizableLeft=0,g.resizableRight=0,g.resizableTop=0,g.resizableBottom=0,g.targetLeft=0,g.targetTop=0,g.delta={width:0,height:0},g.appendBase=function(){if(!g.resizable||!g.window)return null;var b=g.parentNode;if(!b)return null;var m=g.window.document.createElement("div");return m.style.width="100%",m.style.height="100%",m.style.position="absolute",m.style.transform="scale(0, 0)",m.style.left="0",m.style.flex="0 0 100%",m.classList?m.classList.add(Ny):m.className+=Ny,b.appendChild(m),m},g.removeBase=function(b){var m=g.parentNode;m&&m.removeChild(b)},g.state={isResizing:!1,width:(i=(n=g.propsSize)===null||n===void 0?void 0:n.width)!==null&&i!==void 0?i:"auto",height:(f=(c=g.propsSize)===null||c===void 0?void 0:c.height)!==null&&f!==void 0?f:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},g.onResizeStart=g.onResizeStart.bind(g),g.onMouseMove=g.onMouseMove.bind(g),g.onMouseUp=g.onMouseUp.bind(g),g}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||XD},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,c=this.resizable.offsetHeight,f=this.resizable.style.position;f!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:c,this.resizable.style.position=f}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,i=function(g){var b;if(typeof r.state[g]>"u"||r.state[g]==="auto")return"auto";if(r.propsSize&&r.propsSize[g]&&(!((b=r.propsSize[g])===null||b===void 0)&&b.toString().endsWith("%"))){if(r.state[g].toString().endsWith("%"))return r.state[g].toString();var m=r.getParentSize(),v=Number(r.state[g].toString().replace("px","")),E=v/m[g]*100;return"".concat(E,"%")}return Eg(r.state[g])},c=n&&typeof n.width<"u"&&!this.state.isResizing?Eg(n.width):i("width"),f=n&&typeof n.height<"u"&&!this.state.isResizing?Eg(n.height):i("height");return{width:c,height:f}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var c={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(r),c},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof i>"u"||i==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var i=this.props.boundsByDirection,c=this.state.direction,f=i&&Ku("left",c),g=i&&Ku("top",c),b,m;if(this.props.bounds==="parent"){var v=this.parentNode;v&&(b=f?this.resizableRight-this.parentLeft:v.offsetWidth+(this.parentLeft-this.resizableLeft),m=g?this.resizableBottom-this.parentTop:v.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(b=f?this.resizableRight:this.window.innerWidth-this.resizableLeft,m=g?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(b=f?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),m=g?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return b&&Number.isFinite(b)&&(r=r&&r<b?r:b),m&&Number.isFinite(m)&&(n=n&&n<m?n:m),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var i=this.props.scale||1,c=qD(this.props.resizeRatio||1),f=c[0],g=c[1],b=this.state,m=b.direction,v=b.original,E=this.props,A=E.lockAspectRatio,F=E.lockAspectRatioExtraHeight,S=E.lockAspectRatioExtraWidth,N=v.width,O=v.height,B=F||0,z=S||0;return Ku("right",m)&&(N=v.width+(r-v.x)*f/i,A&&(O=(N-z)/this.ratio+B)),Ku("left",m)&&(N=v.width-(r-v.x)*f/i,A&&(O=(N-z)/this.ratio+B)),Ku("bottom",m)&&(O=v.height+(n-v.y)*g/i,A&&(N=(O-B)*this.ratio+z)),Ku("top",m)&&(O=v.height-(n-v.y)*g/i,A&&(N=(O-B)*this.ratio+z)),{newWidth:N,newHeight:O}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,i,c){var f=this.props,g=f.lockAspectRatio,b=f.lockAspectRatioExtraHeight,m=f.lockAspectRatioExtraWidth,v=typeof c.width>"u"?10:c.width,E=typeof i.width>"u"||i.width<0?r:i.width,A=typeof c.height>"u"?10:c.height,F=typeof i.height>"u"||i.height<0?n:i.height,S=b||0,N=m||0;if(g){var O=(A-S)*this.ratio+N,B=(F-S)*this.ratio+N,z=(v-N)/this.ratio+S,Z=(E-N)/this.ratio+S,V=Math.max(v,O),J=Math.min(E,B),$=Math.max(A,z),K=Math.min(F,Z);r=Pf(r,V,J),n=Pf(n,$,K)}else r=Pf(r,v,E),n=Pf(n,A,F);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left*r,this.parentTop=i.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var c=this.props.bounds.getBoundingClientRect();this.targetLeft=c.left*r,this.targetTop=c.top*r}if(this.resizable){var f=this.resizable.getBoundingClientRect(),g=f.left,b=f.top,m=f.right,v=f.bottom;this.resizableLeft=g*r,this.resizableRight=m*r,this.resizableTop=b*r,this.resizableBottom=v*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var i=0,c=0;if(r.nativeEvent&&ZD(r.nativeEvent)?(i=r.nativeEvent.clientX,c=r.nativeEvent.clientY):r.nativeEvent&&Of(r.nativeEvent)&&(i=r.nativeEvent.touches[0].clientX,c=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var f=this.props.onResizeStart(r,n,this.resizable);if(f===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var g,b=this.window.getComputedStyle(this.resizable);if(b.flexBasis!=="auto"){var m=this.parentNode;if(m){var v=this.window.getComputedStyle(m).flexDirection;this.flexDir=v.startsWith("row")?"row":"column",g=b.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var E={original:{x:i,y:c,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Yo(Yo({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:g};this.setState(E)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Of(r))try{r.preventDefault(),r.stopPropagation()}catch{}var i=this.props,c=i.maxWidth,f=i.maxHeight,g=i.minWidth,b=i.minHeight,m=Of(r)?r.touches[0].clientX:r.clientX,v=Of(r)?r.touches[0].clientY:r.clientY,E=this.state,A=E.direction,F=E.original,S=E.width,N=E.height,O=this.getParentSize(),B=JD(O,this.window.innerWidth,this.window.innerHeight,c,f,g,b);c=B.maxWidth,f=B.maxHeight,g=B.minWidth,b=B.minHeight;var z=this.calculateNewSizeFromDirection(m,v),Z=z.newHeight,V=z.newWidth,J=this.calculateNewMaxFromBoundary(c,f);this.props.snap&&this.props.snap.x&&(V=Ry(V,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(Z=Ry(Z,this.props.snap.y,this.props.snapGap));var $=this.calculateNewSizeFromAspectRatio(V,Z,{width:J.maxWidth,height:J.maxHeight},{width:g,height:b});if(V=$.newWidth,Z=$.newHeight,this.props.grid){var K=_y(V,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),ve=_y(Z,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),se=this.props.snapGap||0,me=se===0||Math.abs(K-V)<=se?K:V,ge=se===0||Math.abs(ve-Z)<=se?ve:Z;V=me,Z=ge}var Qe={width:V-F.width,height:Z-F.height};if(this.delta=Qe,S&&typeof S=="string"){if(S.endsWith("%")){var pe=V/O.width*100;V="".concat(pe,"%")}else if(S.endsWith("vw")){var Ie=V/this.window.innerWidth*100;V="".concat(Ie,"vw")}else if(S.endsWith("vh")){var tt=V/this.window.innerHeight*100;V="".concat(tt,"vh")}}if(N&&typeof N=="string"){if(N.endsWith("%")){var pe=Z/O.height*100;Z="".concat(pe,"%")}else if(N.endsWith("vw")){var Ie=Z/this.window.innerWidth*100;Z="".concat(Ie,"vw")}else if(N.endsWith("vh")){var tt=Z/this.window.innerHeight*100;Z="".concat(tt,"vh")}}var rt={width:this.createSizeForCssProperty(V,"width"),height:this.createSizeForCssProperty(Z,"height")};this.flexDir==="row"?rt.flexBasis=rt.width:this.flexDir==="column"&&(rt.flexBasis=rt.height);var Pt=this.state.width!==rt.width,sr=this.state.height!==rt.height,Pe=this.state.flexBasis!==rt.flexBasis,j=Pt||sr||Pe;j&&Ho.flushSync(function(){n.setState(rt)}),this.props.onResize&&j&&this.props.onResize(r,A,this.resizable,Qe)}},t.prototype.onMouseUp=function(r){var n,i,c=this.state,f=c.isResizing,g=c.direction;!f||!this.resizable||(this.props.onResizeStop&&this.props.onResizeStop(r,g,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Yo(Yo({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,i;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(i=r.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,i=n.enable,c=n.handleStyles,f=n.handleClasses,g=n.handleWrapperStyle,b=n.handleWrapperClass,m=n.handleComponent;if(!i)return null;var v=Object.keys(i).map(function(E){return i[E]!==!1?w.jsx(YD,{direction:E,onResizeStart:r.onResizeStart,replaceStyles:c&&c[E],className:f&&f[E],children:m&&m[E]?m[E]:null},E):null});return w.jsx("div",{className:b,style:g,children:v})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(f,g){return KD.indexOf(g)!==-1||(f[g]=r.props[g]),f},{}),i=Yo(Yo(Yo({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var c=this.props.as||"div";return w.jsxs(c,Yo({style:i,className:this.props.className},n,{ref:function(f){f&&(r.resizable=f)},children:[this.state.isResizing&&w.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(L.PureComponent);const Py=({children:e,isHover:t,isSelected:r,name:n,showIndicator:i=!0,width:c,height:f})=>{const g=t&&!r&&i,b=r&&i,m=g||b,v={outline:b?"1px solid #170f4fff":g?"1px dashed #00BAC7":"1px solid transparent",background:b?"rgba(23,15,79,0.03)":g?"rgba(0,186,199,0.02)":"transparent",position:"relative",width:c||"min-content",height:f||"min-content",cursor:"pointer",overflow:"visible"};return w.jsxs("div",{style:v,children:[m&&w.jsxs("div",{className:`absolute left-0 top-0 flex items-center gap-1.5 px-2 py-1 text-xs font-medium backdrop-blur-sm ${b?"border border-[#170F4F] bg-[#170F4F] text-white shadow-lg":"border border-[#00BAC7] bg-[#00BAC7] text-white shadow-md"} `,style:{borderRadius:"4px",transform:"translateY(-100%)",transformOrigin:"left bottom",marginTop:"-2px",zIndex:99999,position:"absolute",transition:"all 0.15s ease-out"},onClick:E=>{E.stopPropagation(),E.preventDefault()},onMouseDown:E=>{E.stopPropagation(),E.preventDefault()},children:[w.jsx("div",{className:"flex h-3 w-3 items-center justify-center",children:b?w.jsx("div",{className:"h-2 w-2 rounded-full bg-white"}):w.jsx("div",{className:"h-2 w-2 rounded-full bg-white opacity-70"})}),w.jsx("span",{className:"select-none whitespace-nowrap leading-none",children:n})]}),e]})},Oy=6,Is=-3,$D={position:"absolute",width:`${Oy}px`,height:`${Oy}px`,background:"#170F4F",display:"block",pointerEvents:"none",boxShadow:"0 2px 8px rgba(23,15,79,0.3)",border:"0.5px solid #CCF1F4"},e1={topLeft:{left:`${Is}px`,top:`${Is}px`},topRight:{right:`${Is}px`,top:`${Is}px`},bottomLeft:{left:`${Is}px`,bottom:`${Is}px`},bottomRight:{right:`${Is}px`,bottom:`${Is}px`}},By=({children:e,propKey:t={width:"width",height:"height"},maxWidth:r})=>{const{actions:n,connectors:{connect:i}}=ln(),{isSelected:c,isHover:f,nodeWidth:g,nodeHeight:b,name:m}=ln(B=>({isSelected:B.events.selected,isHover:B.events.hovered,nodeWidth:B.data.props.style?.[t.width]||B.data.props[t.width]||200,nodeHeight:B.data.props.style?.[t.height]||B.data.props[t.height]||100,name:B.data.custom?.displayName||B.data.displayName})),v=L.useRef(null),E=L.useRef(null),A=L.useMemo(()=>{const B=()=>typeof g=="number"?Math.round(g):typeof g=="string"&&g||200,z=()=>b==="auto"?"auto":typeof b=="number"?Math.round(b):typeof b=="string"&&b||100;return{width:B(),height:z()}},[g,b]),[F,S]=L.useState(A),N=L.useCallback(()=>{S(A)},[A]),O=L.useCallback((B,z)=>{if(!E.current)return A;const{width:Z,height:V}=E.current;let J=Math.round(Z+B),$=Math.round(V+z);return r&&J>r&&(J=r),J=Math.max(J,50),$=Math.max($,20),{width:J,height:$}},[A,r]);return L.useEffect(()=>{N(),n.setCustom(B=>{B.resizable=!0})},[g,b,N,n]),w.jsx(Py,{isHover:f,isSelected:c,name:m||"Component",showIndicator:!0,width:F.width,height:F.height,children:w.jsxs(QD,{ref:B=>{B&&B.resizable&&(v.current=B,i(B.resizable))},enable:{top:c,right:c,bottom:c,left:c,topLeft:c,topRight:c,bottomLeft:c,bottomRight:c},size:F,onResizeStart:B=>{B.preventDefault(),B.stopPropagation();const z=v.current?.resizable;if(!z)return;const Z=z.getBoundingClientRect();E.current={width:Math.round(Z.width),height:Math.round(Z.height)}},onResize:(B,z,Z,V)=>{const J=O(V.width,V.height);n.setProp($=>{$.style||($.style={}),$.style[t.width]=J.width,$.style[t.height]=J.height}),N()},onResizeStop:(B,z,Z,V)=>{const J=O(V.width,V.height);n.setProp($=>{$.style||($.style={}),$.style[t.width]=J.width,$.style[t.height]=J.height}),N()},handleStyles:{topLeft:{display:"block"},topRight:{display:"block"},bottomLeft:{display:"block"},bottomRight:{display:"block"}},children:[e,w.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:99999},children:c&&Object.entries(e1).map(([B,z])=>w.jsx("span",{style:{...$D,...z}},B))})]})})},Iy=({src:e="https://via.placeholder.com/400x300",alt:t="Image",width:r="200px",height:n="200px",borderRadius:i="0px",objectFit:c="cover",...f})=>{const{connectors:{connect:g,drag:b},selected:m}=ln(E=>({selected:E.events.selected})),v={width:r,height:n,borderRadius:i,objectFit:c,cursor:m?"pointer":"default"};return w.jsx(By,{children:w.jsx("img",{ref:E=>{E&&g(b(E))},src:e,alt:t,style:v,className:`${m?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"}`,...f})})},t1={props:{src:"https://picsum.photos/id/1/1200/1200",alt:"Image",width:"200px",height:"200px",borderRadius:"0px",objectFit:"cover"},custom:{resizable:!1},related:{settings:"ImageSettings"}};function Ly(){const{actions:{setProp:e},src:t,alt:r,width:n,height:i,borderRadius:c,objectFit:f}=ln(g=>({src:g.data.props.src,alt:g.data.props.alt,width:g.data.props.width,height:g.data.props.height,borderRadius:g.data.props.borderRadius,objectFit:g.data.props.objectFit}));return w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Image URL"}),w.jsx("input",{type:"text",value:t,onChange:g=>e(b=>b.src=g.target.value),placeholder:"https://example.com/image.jpg",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Alt Text"}),w.jsx("input",{type:"text",value:r,onChange:g=>e(b=>b.alt=g.target.value),placeholder:"Image description",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Width"}),w.jsx("input",{type:"text",value:n,onChange:g=>e(b=>b.width=g.target.value),placeholder:"100%",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Height"}),w.jsx("input",{type:"text",value:i,onChange:g=>e(b=>b.height=g.target.value),placeholder:"auto",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Border Radius"}),w.jsx("input",{type:"text",value:c,onChange:g=>e(b=>b.borderRadius=g.target.value),placeholder:"0px",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Object Fit"}),w.jsxs("select",{value:f,onChange:g=>e(b=>b.objectFit=g.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",children:[w.jsx("option",{value:"cover",children:"Cover"}),w.jsx("option",{value:"contain",children:"Contain"}),w.jsx("option",{value:"fill",children:"Fill"}),w.jsx("option",{value:"none",children:"None"}),w.jsx("option",{value:"scale-down",children:"Scale Down"})]})]})]})}Iy.craft={...t1,related:{settings:Ly}};function r1(e){const t=document.createTextNode("");e.appendChild(t);const r=document.activeElement===e;if(t!==null&&t.nodeValue!==null&&r){const n=window.getSelection();if(n!==null){const i=document.createRange();i.setStart(t,t.nodeValue.length),i.collapse(!0),n.removeAllRanges(),n.addRange(i)}e instanceof HTMLElement&&e.focus()}}function n1({tagName:e,html:t,innerRef:r,onChange:n,disabled:i,editable:c=!0,onBlur:f,onKeyUp:g,onKeyDown:b,...m}){const v=L.useRef(t),E=L.useRef(null),A=()=>(r&&typeof r!="function"?r:E).current,F=L.useCallback(N=>{const O=A();if(!O)return;const B=O.innerHTML;if(n&&B!==v.current){const z=Object.assign({},N,{target:{value:B}});n(z)}v.current=B},[n]);L.useEffect(()=>{const N=A();N&&(t!==N.innerHTML&&(N.innerHTML=t),v.current=t,r1(N))},[t]);const S=L.useCallback(N=>{typeof r=="function"&&r(N),E.current=N},[r]);return L.createElement(e||"div",{...m,ref:typeof r=="function"?S:r||E,onInput:c?F:void 0,onBlur:c?f||F:f,onKeyUp:c?g||F:g,onKeyDown:c?b||F:b,contentEditable:!i&&c,dangerouslySetInnerHTML:{__html:t}})}const a1=[{name:"userName",label:"User Name",value:"John Doe"},{name:"userEmail",label:"User Email",value:"john@example.com"},{name:"companyName",label:"Company Name",value:"Acme Corp"},{name:"currentDate",label:"Current Date",value:new Date().toLocaleDateString()},{name:"currentTime",label:"Current Time",value:new Date().toLocaleTimeString()}],o1=({editableRef:e,position:t,onVariableInsert:r})=>{const[n,i]=L.useState(!1),[c,f]=L.useState(!1),g=(m,v)=>{e.current&&(e.current.focus(),document.execCommand(m,!1,v),setTimeout(()=>{e.current?.focus()},0))},b=m=>{if(e.current){e.current.focus();const v=window.getSelection();if(v&&v.rangeCount>0){const E=v.getRangeAt(0);E.deleteContents();const A=document.createElement("span");A.className="variable-tag",A.style.cssText="background: #e3f2fd; border: 1px solid #90caf9; border-radius: 4px; padding: 2px 6px; margin: 0 2px; color: #1976d2; font-size: 0.9em; cursor: pointer;",A.setAttribute("data-variable",m.name),A.textContent=`{{${m.label}}}`,E.insertNode(A),E.setStartAfter(A),E.collapse(!0),v.removeAllRanges(),v.addRange(E)}}i(!1),r(m.name)};return w.jsxs("div",{className:"toolbar-container flex flex-wrap gap-2 rounded-lg border border-gray-300 bg-white p-3 shadow-md",style:{position:"absolute",left:"50%",transform:"translateX(-50%)",zIndex:9999,top:t==="top"?"-80px":void 0,bottom:t==="bottom"?"-80px":void 0},children:[w.jsxs("div",{className:"flex gap-2",children:[w.jsx("button",{className:"toolbar-btn",title:"Bold",onMouseDown:m=>{m.preventDefault(),g("bold")},children:w.jsx(Te.FiBold,{size:16})}),w.jsx("button",{className:"toolbar-btn",title:"Italic",onMouseDown:m=>{m.preventDefault(),g("italic")},children:w.jsx(Te.FiItalic,{size:16})}),w.jsx("button",{className:"toolbar-btn",title:"Underline",onMouseDown:m=>{m.preventDefault(),g("underline")},children:w.jsx(Te.FiUnderline,{size:16})})]}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("button",{className:"toolbar-btn",title:"Text Color",onMouseDown:m=>{m.preventDefault(),f(!c)},children:w.jsx(Te.FiEdit3,{size:16})}),c&&w.jsx("input",{type:"color",className:"color-picker",onChange:m=>g("foreColor",m.target.value)})]}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("button",{className:"toolbar-btn",title:"Insert Variable",onMouseDown:m=>{m.preventDefault(),i(!n)},children:w.jsx(Te.FiCode,{size:16})}),n&&w.jsx("div",{className:"variable-dropdown",children:a1.map(m=>w.jsx("button",{className:"variable-item",onMouseDown:v=>{v.preventDefault(),b(m)},children:m.label},m.name))})]})]})},My=({isEditing:e=!1,children:t="Double-click to edit text...",style:r={}})=>{const{actions:n,setProp:i}=ln(),[c,f]=L.useState("top"),g=L.useRef(null),b=L.useRef(null),m=L.useCallback(N=>{i(O=>{O.children=N})},[i]),v=L.useCallback(N=>{i(O=>{O.isEditing=N})},[i]);L.useEffect(()=>{e&&g.current&&setTimeout(()=>{g.current?.focus();const N=window.getSelection();if(N&&g.current){const O=document.createRange();O.selectNodeContents(g.current),O.collapse(!1),N.removeAllRanges(),N.addRange(O)}},0)},[e]),L.useEffect(()=>{const N=O=>{e&&b.current&&!b.current.contains(O.target)&&v(!1)};return e&&document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[e]);const E=N=>{N.preventDefault(),N.stopPropagation(),v(!0),b.current&&(b.current.getBoundingClientRect().top<100?f("bottom"):f("top"))},A=L.useCallback(N=>{const O=N.target.value;O!==t&&m(O)},[t]),F=N=>{if(g.current){const O=window.getSelection();if(O&&O.rangeCount>0){const B=O.getRangeAt(0),z=document.createElement("span");z.setAttribute("data-variable",N),z.style.cssText="background: #e8f5e8; border: 1px solid #4caf50; border-radius: 4px; padding: 2px 6px; margin: 0 2px; color: #2e7d32; font-size: 0.9em;",z.textContent=`{{${N}}}`,B.deleteContents(),B.insertNode(z),B.setStartAfter(z),B.collapse(!0),O.removeAllRanges(),O.addRange(B);const Z=g.current.innerHTML;n.setProp(V=>{V.text=Z})}}},S={fontSize:"16px",fontWeight:"normal",color:"#000000",textAlign:"left",minHeight:"50px",height:"100%",width:"100%",padding:"8px",border:"none",outline:"none",cursor:e?"text":"pointer",overflow:"scroll",position:"relative",userSelect:e?"text":"none",...r};return w.jsxs("div",{ref:b,onDoubleClick:E,style:{position:"relative",width:"100%",height:"100%"},children:[e&&w.jsx(o1,{editableRef:g,position:c,onVariableInsert:F}),w.jsx(n1,{innerRef:N=>{g.current=N},tagName:"p",html:t,editable:e,onChange:A,style:S})]})},i1={displayName:"Text",custom:{resizable:!0,tagHtml:"p",settings:["typography","default"]},props:{children:"Double click to edit text 2",isEditing:!1,style:{fontSize:16,fontWeight:"normal",color:"#000000",textAlign:"left",width:200,height:100}}};My.craft={...i1};function zy(){const{actions:{setProp:e},variableId:t,fallback:r}=ln(n=>({variableId:n.data.props.variableId,fallback:n.data.props.fallback}));return w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Variable ID"}),w.jsx("input",{type:"text",value:t,onChange:n=>e(i=>i.variableId=n.target.value),placeholder:"ex: nome_usuario",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Default value"}),w.jsx("input",{type:"text",value:r,onChange:n=>e(i=>i.fallback=n.target.value),placeholder:"ex: Usuรกrio",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}const s1=({data:e,onSelect:t,selectedPath:r})=>!e||typeof e!="object"?null:w.jsx("div",{className:"space-y-2",children:Object.entries(e).map(([n,i])=>w.jsxs("button",{onClick:()=>t(n,i),className:`block w-full rounded px-3 py-2 text-left transition-colors ${r===n?"bg-blue-100 text-blue-800":"bg-gray-50 text-gray-700 hover:bg-gray-100"}`,children:[w.jsxs("span",{className:"font-medium",children:[n,":"]})," ",w.jsx("span",{className:"text-sm",children:JSON.stringify(i)})]},n))}),l1=({isOpen:e,onClose:t,value:r,onSelect:n})=>{const[i,c]=L.useState(r||""),[f,g]=L.useState(null);return L.useEffect(()=>{const b=localStorage.getItem("bolttech_datasource");if(b)try{const m=JSON.parse(b);m&&typeof m=="object"&&m.data&&g({root:m.data})}catch{}},[e]),e?w.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-40",children:w.jsxs("div",{className:"flex w-full max-w-[40vw] flex-col rounded bg-white shadow-xl",children:[w.jsxs("div",{className:"flex items-center justify-between border-b border-gray-200 p-4",children:[w.jsx("h2",{className:"text-lg font-bold text-[#170f4f]",children:"Selecionar variรกvel do DataSource"}),w.jsx("button",{onClick:t,className:"p-2 text-gray-400 hover:text-gray-600",children:w.jsx(Te.FiX,{size:18})})]}),w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-sm font-medium text-gray-700",children:"Path da variรกvel"}),w.jsx("input",{type:"text",value:i,onChange:b=>c(b.target.value),className:"focus:ring-primary-500 w-full rounded border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",placeholder:"Ex: root.user.name"})]}),f&&w.jsx("div",{children:w.jsx(s1,{data:f,onSelect:b=>c(b),selectedPath:i})}),w.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[w.jsx("button",{onClick:t,className:"rounded bg-gray-100 px-4 py-2 text-gray-700 transition-colors duration-200 hover:bg-gray-200",children:"Cancelar"}),w.jsx("button",{onClick:()=>{n(i),t()},className:"rounded bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3]",children:"Salvar"})]})]})]})}):null},Hy=({variableId:e="variable",fallback:t="Default value",...r})=>{const{connectors:{connect:n,drag:i},selected:c,actions:{setProp:f}}=ln(A=>({selected:A.events.selected})),[g,b]=L.useState(!1),m=`{{${e}}}`;let v;try{const A=localStorage.getItem("bolttech_datasource");if(A){const F=JSON.parse(A),S=F&&F.data;S&&e&&(v=e.split(".").reduce((O,B)=>O&&O[B]!==void 0?O[B]:void 0,{root:S}))}}catch{}const E={display:"inline-block",padding:"4px 8px",backgroundColor:"#fef3c7",border:"1px solid #f59e0b",borderRadius:"4px",color:"#92400e",fontFamily:"monospace",fontSize:"14px",cursor:c?"pointer":"default",transition:"all 0.2s"};return w.jsxs(w.Fragment,{children:[w.jsx("span",{ref:A=>{A&&n(i(A))},style:E,className:`${c?"ring-2 ring-yellow-400":"hover:ring-2 hover:ring-yellow-300 hover:ring-opacity-50"} transition-all duration-200`,title:`Variable: ${e}`,onClick:()=>b(!0),...r,children:v!=null?String(v):t||m}),w.jsx(l1,{isOpen:g,onClose:()=>b(!1),value:e,onSelect:A=>f(F=>F.variableId=A)})]})};Hy.craft={props:{variableId:"variavel",fallback:"Valor padrรฃo"},related:{settings:zy}};const pd=[{id:"box",label:"Box",icon:w.jsx(WD,{size:16}),category:"layout",component:Cy,tags:["div"]},{id:"text",label:"Text",icon:w.jsx(zD,{size:16}),category:"content",component:My,tags:["p","span","h1","h2","h3","h4","h5","h6"]},{id:"button",label:"Button",icon:w.jsx(ID,{size:16}),category:"interactive",component:Ey,settings:Fy,tags:["button","a"]},{id:"image",label:"Image",icon:w.jsx(HD,{size:16}),category:"media",component:Iy,settings:Ly,tags:["img"]},{id:"divider",label:"Divider",icon:w.jsx(MD,{size:16}),category:"layout",component:ky,settings:Sy,tags:["hr","div"]},{id:"variable",label:"Variable",icon:w.jsx(LD,{size:16}),category:"dynamic",component:Hy,settings:zy,tags:["span"]}];function Wy(){const[e,t]=L.useState(!1),[r,n]=L.useState(!1),[i,c]=L.useState(!0);return{showPreview:e,togglePreview:()=>{t(N=>!N)},openPreview:()=>{t(!0)},closePreview:()=>{t(!1)},showCodePanel:r,toggleCodePanel:()=>{n(N=>!N)},openCodePanel:()=>{n(!0)},closeCodePanel:()=>{n(!1)},showSidebar:i,toggleSidebar:()=>{c(N=>!N)},isEditorEnabled:!(e||r),setIsEditorEnabled:N=>{t(!N),n(!N)}}}const Uy={mobile:{width:375,height:667},tablet:{width:768,height:1024},desktop:{width:1200,height:800}};class u1{constructor(t={}){ju(this,"options");this.options={inlineStyles:!0,prettify:!1,includeComments:!1,customComponentMap:{},styleTransformers:[],...t}}convert(t){try{const r=t.ROOT;if(!r||!r.nodes)return"";const n=this.buildHTMLFromNodes(r.nodes,t);return this.options.prettify?this.prettifyHTML(n):n}catch(r){return console.error("Error converting CraftJS to HTML:",r),""}}buildHTMLFromNodes(t,r){return t.map(n=>this.buildHTMLFromNode(n,r)).filter(n=>n.trim()!=="").join("")}buildHTMLFromNode(t,r){const n=r[t];if(!n||n.hidden)return"";const{type:i,props:c={},nodes:f=[]}=n;if(i==="text"||i==="Text")return this.escapeHTML(c.text||"");const g=this.getTagName(i,n),b=this.buildAttributes(c);let m=this.buildHTMLFromNodes(f,r);return c.children&&typeof c.children=="string"&&(m+=c.children),this.isSelfClosingTag(g)?`<${g}${b} />`:`${this.options.includeComments?`<!-- ${i} -->`:""}<${g}${b}>${m}</${g}>`}getTagName(t,r){return console.log("Node custom properties:",r.custom),r.custom?.tagHtml&&typeof r.custom.tagHtml=="string"?r.custom.tagHtml.toLowerCase():this.options.customComponentMap?.[t]?this.options.customComponentMap[t]:["div","span","p","h1","h2","h3","h4","h5","h6","a","img","button","input","textarea","select","option","ul","ol","li","table","tr","td","th","thead","tbody","section","article","header","footer","nav","main","aside"].includes(t.toLowerCase())?t.toLowerCase():"div"}buildAttributes(t){const r=[];if(["id","className","title","alt","src","href","target","rel"].forEach(i=>{if(t[i]){const c=i==="className"?"class":i;r.push(`${c}="${this.escapeHTML(t[i])}"`)}}),t.style&&this.options.inlineStyles){const i=this.convertStyleObjectToCSS(t.style);i&&r.push(`style="${i}"`)}return Object.keys(t).forEach(i=>{i.startsWith("data-")&&typeof t[i]=="string"&&r.push(`${i}="${this.escapeHTML(t[i])}"`)}),r.length>0?` ${r.join(" ")}`:""}convertStyleObjectToCSS(t){if(!t||typeof t!="object")return"";const r=[];return Object.entries(t).forEach(([n,i])=>{if(i==null)return;const c=this.camelToKebabCase(n);let f=this.applStyleTransformers(n,i);f=this.addUnitIfNeeded(c,f),r.push(`${c}: ${f}`)}),r.join("; ")}camelToKebabCase(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}applStyleTransformers(t,r){const n=this.options.styleTransformers?.find(i=>i.property===t);return n?n.transform(r):String(r)}addUnitIfNeeded(t,r){const n=["width","height","min-width","min-height","max-width","max-height","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","font-size","line-height","letter-spacing","word-spacing","top","right","bottom","left","text-indent","text-decoration-thickness"],i=parseFloat(r);return!isNaN(i)&&n.includes(t)&&!r.includes("px")&&!r.includes("%")&&!r.includes("em")&&!r.includes("rem")&&!r.includes("vh")&&!r.includes("vw")?`${i}px`:r}isSelfClosingTag(t){return["img","br","hr","input","meta","link","area","base","col","embed","source","track","wbr"].includes(t.toLowerCase())}escapeHTML(t){const r=document.createElement("div");return r.textContent=t,r.innerHTML}prettifyHTML(t){let r="",n=0;const i=" ";return t.split(/>\s*</).forEach((c,f)=>{f!==0&&(c=`<${c}`),f!==t.split(/>\s*</).length-1&&(c=`${c}>`),c.match(/^<\/\w/)&&n--,r+=`${i.repeat(Math.max(0,n))+c}
|
|
185
|
-
`,c.match(/^<\w[^>]*[^/]$/)&&n++}),r.trim()}}function c1(e,t){return new u1(t).convert(e)}function gd(){const{setIsEditorEnabled:e}=Wy(),{query:t,actions:r}=La(),{nodes:n}=La(b=>({nodes:b.nodes})),i=L.useMemo(()=>Object.keys(n).length>1,[n]),[c,f]=L.useState("desktop");return L.useEffect(()=>{const b=t.node("ROOT").get();b&&r.setProp(b.id,m=>{m.style={...m.style||{},maxWidth:Uy[c].width||"100%"}})},[c]),{device:c,isEmpty:i,setDevice:f,getHtml:()=>{e(!1);try{const b=t.getSerializedNodes();if(b&&b.ROOT){const m=c1(b,{inlineStyles:!0,prettify:!1,includeComments:!1});if(m&&m.trim())return m}return""}catch(b){return console.warn("Erro na serializaรงรฃo CraftJS:",b),""}finally{e(!0)}}}}function d1(){L.useMemo(()=>{Wo.registerHelper("formatDate",(i,c)=>{if(!i)return"";const f=new Date(i);if(isNaN(f.getTime()))return i;switch(c){case"short":return f.toLocaleDateString();case"long":return f.toLocaleDateString("pt-BR",{weekday:"long",year:"numeric",month:"long",day:"numeric"});case"time":return f.toLocaleTimeString();default:return f.toLocaleString()}}),Wo.registerHelper("currency",(i,c="BRL")=>typeof i!="number"?i:new Intl.NumberFormat("pt-BR",{style:"currency",currency:c}).format(i)),Wo.registerHelper("upper",i=>typeof i!="string"?i:i.toUpperCase()),Wo.registerHelper("lower",i=>typeof i!="string"?i:i.toLowerCase()),Wo.registerHelper("capitalize",i=>typeof i!="string"?i:i.charAt(0).toUpperCase()+i.slice(1).toLowerCase()),Wo.registerHelper("truncate",(i,c=50)=>typeof i!="string"||i.length<=c?i:`${i.slice(0,c)}...`),Wo.registerHelper("ifExists",function(i,c){return i!=null&&i!==""?c.fn(this):c.inverse(this)}),Wo.registerHelper("math",(i,c,f)=>{if(typeof i!="number"||typeof f!="number")return"";switch(c){case"+":return i+f;case"-":return i-f;case"*":return i*f;case"/":return f!==0?i/f:0;case"%":return i%f;default:return""}})},[]);const e=L.useCallback((i,c)=>{try{return Wo.compile(i)(c)}catch(f){return console.error("Erro ao renderizar template:",f),i}},[]),t=L.useCallback(i=>{const c=/\{\{\s*([^}]+)\s*\}\}/g,f=[];let g;for(;(g=c.exec(i))!==null;){const m=g[1].trim().split(" ")[0].replace(/^[#^/]/,"").replace(/\.[^.]*$/,"");m&&!f.includes(m)&&f.push(m)}return f},[]),r=L.useCallback(i=>{try{return Wo.compile(i),{isValid:!0}}catch(c){return{isValid:!1,error:c instanceof Error?c.message:"Template invรกlido"}}},[]),n=L.useCallback((i,c={})=>i.map(f=>{const g=c[f]||"";let b="text";return typeof g=="number"?b="number":typeof g=="boolean"?b="boolean":f.toLowerCase().includes("date")||f.toLowerCase().includes("time")?b="date":(f.toLowerCase().includes("price")||f.toLowerCase().includes("valor")||f.toLowerCase().includes("amount"))&&(b="number"),{key:f,label:f.charAt(0).toUpperCase()+f.slice(1).replace(/([A-Z])/g," $1"),value:g,type:b}}),[]);return{renderTemplate:e,extractPlaceholders:t,validateTemplate:r,generateSchema:n}}var Fg={exports:{}},jy;function f1(){return jy||(jy=1,(function(e,t){(function(r){function n(){var i=r();return i.default||i}e.exports=n()})(function(){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=l=>{throw TypeError(l)},g=(l,d,y)=>d in l?r(l,d,{enumerable:!0,configurable:!0,writable:!0,value:y}):l[d]=y,b=(l,d)=>{for(var y in d)r(l,y,{get:d[y],enumerable:!0})},m=(l,d,y,x)=>{if(d&&typeof d=="object"||typeof d=="function")for(let _ of i(d))!c.call(l,_)&&_!==y&&r(l,_,{get:()=>d[_],enumerable:!(x=n(d,_))||x.enumerable});return l},v=l=>m(r({},"__esModule",{value:!0}),l),E=(l,d,y)=>g(l,typeof d!="symbol"?d+"":d,y),A=(l,d,y)=>d.has(l)||f("Cannot "+y),F=(l,d,y)=>(A(l,d,"read from private field"),y?y.call(l):d.get(l)),S=(l,d,y)=>d.has(l)?f("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(l):d.set(l,y),N=(l,d,y,x)=>(A(l,d,"write to private field"),d.set(l,y),y),O={};b(O,{languages:()=>Rc,options:()=>Pc,parsers:()=>gs,printers:()=>Rl});var B=(l,d,y,x)=>{if(!(l&&d==null))return d.replaceAll?d.replaceAll(y,x):y.global?d.replace(y,x):d.split(y).join(x)},z=B,Z="string",V="array",J="cursor",$="indent",K="align",ve="trim",se="group",me="fill",ge="if-break",Qe="indent-if-break",pe="line-suffix",Ie="line-suffix-boundary",tt="line",rt="label",Pt="break-parent",sr=new Set([J,$,K,ve,se,me,ge,Qe,pe,Ie,tt,rt,Pt]),Pe=(l,d,y)=>{if(!(l&&d==null))return Array.isArray(d)||typeof d=="string"?d[y<0?d.length+y:y]:d.at(y)},j=Pe;function ne(l){if(typeof l=="string")return Z;if(Array.isArray(l))return V;if(!l)return;let{type:d}=l;if(sr.has(d))return d}var Fe=ne,_e=l=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(l);function De(l){let d=l===null?"null":typeof l;if(d!=="string"&&d!=="object")return`Unexpected doc '${d}',
|
|
186
|
-
Expected it to be 'string' or 'object'.`;if(Fe(l))throw new Error("doc is valid.");let y=Object.prototype.toString.call(l);if(y!=="[object Object]")return`Unexpected doc '${y}'.`;let x=_e([...sr].map(_=>`'${_}'`));return`Unexpected doc.type '${l.type}'.
|
|
187
|
-
Expected it to be ${x}.`}var Ae=class extends Error{constructor(d){super(De(d));ju(this,"name","InvalidDocError");this.doc=d}},Oe=Ae;function ze(l,d){if(typeof l=="string")return d(l);let y=new Map;return x(l);function x(I){if(y.has(I))return y.get(I);let Y=_(I);return y.set(I,Y),Y}function _(I){switch(Fe(I)){case V:return d(I.map(x));case me:return d({...I,parts:I.parts.map(x)});case ge:return d({...I,breakContents:x(I.breakContents),flatContents:x(I.flatContents)});case se:{let{expandedStates:Y,contents:q}=I;return Y?(Y=Y.map(x),q=Y[0]):q=x(q),d({...I,contents:q,expandedStates:Y})}case K:case $:case Qe:case rt:case pe:return d({...I,contents:x(I.contents)});case Z:case J:case ve:case Ie:case tt:case Pt:return d(I);default:throw new Oe(I)}}}function Ee(l,d=Dd){return ze(l,y=>typeof y=="string"?qr(d,y.split(`
|
|
188
|
-
`)):y)}function Be(l){return{type:$,contents:l}}function ye(l,d){return{type:K,contents:d,n:l}}function Ce(l,d={}){return{type:se,id:d.id,contents:l,break:!!d.shouldBreak,expandedStates:d.expandedStates}}function be(l){return ye(Number.NEGATIVE_INFINITY,l)}function Kt(l){return ye({type:"root"},l)}function la(l){return{type:me,parts:l}}function Ct(l,d="",y={}){return{type:ge,breakContents:l,flatContents:d,groupId:y.groupId}}function Xl(l,d){return{type:Qe,contents:l,groupId:d.groupId,negate:d.negate}}var Fn={type:Pt},ac={type:tt,hard:!0},Ws={type:tt,hard:!0,literal:!0},gt={type:tt},yt={type:tt,soft:!0},Ye=[ac,Fn],Dd=[Ws,Fn];function qr(l,d){let y=[];for(let x=0;x<d.length;x++)x!==0&&y.push(l),y.push(d[x]);return y}var Fr="'",Zl='"';function oc(l,d){let y=d===!0||d===Fr?Fr:Zl,x=y===Fr?Zl:Fr,_=0,I=0;for(let Y of l)Y===y?_++:Y===x&&I++;return _>I?x:y}var ic=oc;function Cd(l){if(typeof l!="string")throw new TypeError("Expected a string");return l.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Sn,Us=class{constructor(l){S(this,Sn),N(this,Sn,new Set(l))}getLeadingWhitespaceCount(l){let d=F(this,Sn),y=0;for(let x=0;x<l.length&&d.has(l.charAt(x));x++)y++;return y}getTrailingWhitespaceCount(l){let d=F(this,Sn),y=0;for(let x=l.length-1;x>=0&&d.has(l.charAt(x));x--)y++;return y}getLeadingWhitespace(l){let d=this.getLeadingWhitespaceCount(l);return l.slice(0,d)}getTrailingWhitespace(l){let d=this.getTrailingWhitespaceCount(l);return l.slice(l.length-d)}hasLeadingWhitespace(l){return F(this,Sn).has(l.charAt(0))}hasTrailingWhitespace(l){return F(this,Sn).has(j(!1,l,-1))}trimStart(l){let d=this.getLeadingWhitespaceCount(l);return l.slice(d)}trimEnd(l){let d=this.getTrailingWhitespaceCount(l);return l.slice(0,l.length-d)}trim(l){return this.trimEnd(this.trimStart(l))}split(l,d=!1){let y=`[${Cd([...F(this,Sn)].join(""))}]+`,x=new RegExp(d?`(${y})`:y,"u");return l.split(x)}hasWhitespaceCharacter(l){let d=F(this,Sn);return Array.prototype.some.call(l,y=>d.has(y))}hasNonWhitespaceCharacter(l){let d=F(this,Sn);return Array.prototype.some.call(l,y=>!d.has(y))}isWhitespaceOnly(l){let d=F(this,Sn);return Array.prototype.every.call(l,y=>d.has(y))}};Sn=new WeakMap;var qo=Us,sc=[" ",`
|
|
189
|
-
`,"\f","\r"," "],Gi=new qo(sc),Kr=Gi,Qr=class extends Error{constructor(d,y,x="type"){super(`Unexpected ${y} node ${x}: ${JSON.stringify(d[x])}.`);ju(this,"name","UnexpectedNodeError");this.node=d}},Ed=Qr;function Jl(l){return l?.type==="front-matter"}var js=Jl,lc=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),uc=new Set(["if","else if","for","switch","case"]);function cc(l,d){var y;if(l.type==="text"||l.type==="comment"||js(l)||l.type==="yaml"||l.type==="toml")return null;if(l.type==="attribute"&&delete d.value,l.type==="docType"&&delete d.value,l.type==="angularControlFlowBlock"&&(y=l.parameters)!=null&&y.children)for(let x of d.parameters.children)uc.has(l.name)?delete x.expression:x.expression=x.expression.trim();l.type==="angularIcuExpression"&&(d.switchValue=l.switchValue.trim()),l.type==="angularLetDeclarationInitializer"&&delete d.value}cc.ignoredProperties=lc;var ql=cc;async function Gs(l,d){if(l.language==="yaml"){let y=l.value.trim(),x=y?await d(y,{parser:"yaml"}):"";return Kt([l.startDelimiter,l.explicitLanguage,Ye,x,x?Ye:"",l.endDelimiter])}}var ut=Gs;function Wn(l,d=!0){return[Be([yt,l]),d?yt:""]}function ua(l,d){let y=l.type==="NGRoot"?l.node.type==="NGMicrosyntax"&&l.node.body.length===1&&l.node.body[0].type==="NGMicrosyntaxExpression"?l.node.body[0].expression:l.node:l.type==="JsExpressionRoot"?l.node:l;return y&&(y.type==="ObjectExpression"||y.type==="ArrayExpression"||(d.parser==="__vue_expression"||d.parser==="__vue_ts_expression")&&(y.type==="TemplateLiteral"||y.type==="StringLiteral"))}async function un(l,d,y,x){y={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...y};let _=!0;x&&(y.__onHtmlBindingRoot=(Y,q)=>{_=x(Y,q)});let I=await d(l,y,d);return _?Ce(I):Wn(I)}function Ys(l,d,y,x){let{node:_}=y,I=x.originalText.slice(_.sourceSpan.start.offset,_.sourceSpan.end.offset);return/^\s*$/u.test(I)?"":un(I,l,{parser:"__ng_directive",__isInHtmlAttribute:!1},ua)}var dc=Ys,ca=(l,d)=>{if(!(l&&d==null))return d.toReversed||!Array.isArray(d)?d.toReversed():[...d].reverse()},Vs=ca;function vt(l){return Array.isArray(l)&&l.length>0}var za=vt,Kl,Ko,Ql,Qo,da,kn=((Kl=globalThis.Deno)==null?void 0:Kl.build.os)==="windows"||((Ql=(Ko=globalThis.navigator)==null?void 0:Ko.platform)==null?void 0:Ql.startsWith("Win"))||((da=(Qo=globalThis.process)==null?void 0:Qo.platform)==null?void 0:da.startsWith("win"))||!1;function Xs(l){if(l=l instanceof URL?l:new URL(l),l.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${l.protocol}"`);return l}function Yi(l){return l=Xs(l),decodeURIComponent(l.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function $o(l){l=Xs(l);let d=decodeURIComponent(l.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return l.hostname!==""&&(d=`\\\\${l.hostname}${d}`),d}function Ha(l){return kn?$o(l):Yi(l)}var fc=Ha,ei=l=>String(l).split(/[/\\]/u).pop();function $l(l,d){if(!d)return;let y=ei(d).toLowerCase();return l.find(({filenames:x})=>x?.some(_=>_.toLowerCase()===y))??l.find(({extensions:x})=>x?.some(_=>y.endsWith(_)))}function Un(l,d){if(d)return l.find(({name:y})=>y.toLowerCase()===d)??l.find(({aliases:y})=>y?.includes(d))??l.find(({extensions:y})=>y?.includes(`.${d}`))}function eu(l,d){if(d){if(String(d).startsWith("file:"))try{d=fc(d)}catch{return}if(typeof d=="string")return l.find(({isSupported:y})=>y?.({filepath:d}))}}function tu(l,d){let y=Vs(!1,l.plugins).flatMap(_=>_.languages??[]),x=Un(y,d.language)??$l(y,d.physicalFile)??$l(y,d.file)??eu(y,d.physicalFile)??eu(y,d.file)??void 0;return x?.parsers[0]}var fa=tu,ti="inline",Zs={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},ru="normal",ho={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function nu(l){return l.type==="element"&&!l.hasExplicitNamespace&&!["html","svg"].includes(l.namespace)}var Vi=nu,Fd=l=>z(!1,l,/^[\t\f\r ]*\n/gu,""),ha=l=>Fd(Kr.trimEnd(l)),Xi=l=>{let d=l,y=Kr.getLeadingWhitespace(d);y&&(d=d.slice(y.length));let x=Kr.getTrailingWhitespace(d);return x&&(d=d.slice(0,-x.length)),{leadingWhitespace:y,trailingWhitespace:x,text:d}};function Js(l,d){return!!(l.type==="ieConditionalComment"&&l.lastChild&&!l.lastChild.isSelfClosing&&!l.lastChild.endSourceSpan||l.type==="ieConditionalComment"&&!l.complete||Gn(l)&&l.children.some(y=>y.type!=="text"&&y.type!=="interpolation")||Va(l,d)&&!pa(l,d)&&l.type!=="interpolation")}function ri(l){return l.type==="attribute"||!l.parent||!l.prev?!1:Zi(l.prev)}function Zi(l){return l.type==="comment"&&l.value.trim()==="prettier-ignore"}function Qt(l){return l.type==="text"||l.type==="comment"}function pa(l,d){return l.type==="element"&&(l.fullName==="script"||l.fullName==="style"||l.fullName==="svg:style"||l.fullName==="svg:script"||l.fullName==="mj-style"&&d.parser==="mjml"||Vi(l)&&(l.name==="script"||l.name==="style"))}function Sd(l,d){return l.children&&!pa(l,d)}function ga(l,d){return pa(l,d)||l.type==="interpolation"||ma(l)}function ma(l){return vo(l).startsWith("pre")}function ni(l,d){var y,x;let _=I();if(_&&!l.prev&&(x=(y=l.parent)==null?void 0:y.tagDefinition)!=null&&x.ignoreFirstLf)return l.type==="interpolation";return _;function I(){return js(l)||l.type==="angularControlFlowBlock"?!1:(l.type==="text"||l.type==="interpolation")&&l.prev&&(l.prev.type==="text"||l.prev.type==="interpolation")?!0:!l.parent||l.parent.cssDisplay==="none"?!1:Gn(l.parent)?!0:!(!l.prev&&(l.parent.type==="root"||Gn(l)&&l.parent||pa(l.parent,d)||ya(l.parent,d)||!au(l.parent.cssDisplay))||l.prev&&!ii(l.prev.cssDisplay))}}function qs(l,d){return js(l)||l.type==="angularControlFlowBlock"?!1:(l.type==="text"||l.type==="interpolation")&&l.next&&(l.next.type==="text"||l.next.type==="interpolation")?!0:!l.parent||l.parent.cssDisplay==="none"?!1:Gn(l.parent)?!0:!(!l.next&&(l.parent.type==="root"||Gn(l)&&l.parent||pa(l.parent,d)||ya(l.parent,d)||!kr(l.parent.cssDisplay))||l.next&&!ou(l.next.cssDisplay))}function ai(l,d){return $r(l.cssDisplay)&&!pa(l,d)}function va(l){return js(l)||l.next&&l.sourceSpan.end&&l.sourceSpan.end.line+1<l.next.sourceSpan.start.line}function Ks(l){return Wa(l)||l.type==="element"&&l.children.length>0&&(["body","script","style"].includes(l.name)||l.children.some(d=>oi(d)))||l.firstChild&&l.firstChild===l.lastChild&&l.firstChild.type!=="text"&&jn(l.firstChild)&&(!l.lastChild.isTrailingSpaceSensitive||Qs(l.lastChild))}function Wa(l){return l.type==="element"&&l.children.length>0&&(["html","head","ul","ol","select"].includes(l.name)||l.cssDisplay.startsWith("table")&&l.cssDisplay!=="table-cell")}function ba(l){return Ua(l)||l.prev&&po(l.prev)||$t(l)}function po(l){return Ua(l)||l.type==="element"&&l.fullName==="br"||$t(l)}function $t(l){return jn(l)&&Qs(l)}function jn(l){return l.hasLeadingSpaces&&(l.prev?l.prev.sourceSpan.end.line<l.sourceSpan.start.line:l.parent.type==="root"||l.parent.startSourceSpan.end.line<l.sourceSpan.start.line)}function Qs(l){return l.hasTrailingSpaces&&(l.next?l.next.sourceSpan.start.line>l.sourceSpan.end.line:l.parent.type==="root"||l.parent.endSourceSpan&&l.parent.endSourceSpan.start.line>l.sourceSpan.end.line)}function Ua(l){switch(l.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(l.name)}return!1}function go(l){return l.lastChild?go(l.lastChild):l}function oi(l){var d;return(d=l.children)==null?void 0:d.some(y=>y.type!=="text")}function ja(l){if(l)switch(l){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(l.endsWith("json")||l.endsWith("importmap")||l==="speculationrules")return"json"}}function er(l,d){let{name:y,attrMap:x}=l;if(y!=="script"||Object.prototype.hasOwnProperty.call(x,"src"))return;let{type:_,lang:I}=l.attrMap;return!I&&!_?"babel":fa(d,{language:I})??ja(_)}function Ga(l,d){if(!Va(l,d))return;let{attrMap:y}=l;if(Object.prototype.hasOwnProperty.call(y,"src"))return;let{type:x,lang:_}=y;return fa(d,{language:_})??ja(x)}function Sr(l,d){if(l.name==="style"){let{lang:y}=l.attrMap;return y?fa(d,{language:y}):"css"}if(l.name==="mj-style"&&d.parser==="mjml")return"css"}function Ya(l,d){return er(l,d)??Sr(l,d)??Ga(l,d)}function mo(l){return l==="block"||l==="list-item"||l.startsWith("table")}function au(l){return!mo(l)&&l!=="inline-block"}function kr(l){return!mo(l)&&l!=="inline-block"}function ou(l){return!mo(l)}function ii(l){return!mo(l)}function $r(l){return!mo(l)&&l!=="inline-block"}function Gn(l){return vo(l).startsWith("pre")}function Ji(l,d){let y=l;for(;y;){if(d(y))return!0;y=y.parent}return!1}function si(l,d){var y;if(cn(l,d))return"block";if(((y=l.prev)==null?void 0:y.type)==="comment"){let _=l.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(_)return _[1]}let x=!1;if(l.type==="element"&&l.namespace==="svg")if(Ji(l,_=>_.fullName==="svg:foreignObject"))x=!0;else return l.name==="svg"?"inline-block":"block";switch(d.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(l.type==="element"&&(!l.namespace||x||Vi(l))&&Object.prototype.hasOwnProperty.call(Zs,l.name))return Zs[l.name]}return ti}function vo(l){return l.type==="element"&&(!l.namespace||Vi(l))&&Object.prototype.hasOwnProperty.call(ho,l.name)?ho[l.name]:ru}function $s(l){let d=Number.POSITIVE_INFINITY;for(let y of l.split(`
|
|
190
|
-
`)){if(y.length===0)continue;let x=Kr.getLeadingWhitespaceCount(y);if(x===0)return 0;y.length!==x&&x<d&&(d=x)}return d===Number.POSITIVE_INFINITY?0:d}function en(l,d=$s(l)){return d===0?l:l.split(`
|
|
191
|
-
`).map(y=>y.slice(d)).join(`
|
|
192
|
-
`)}function el(l){return z(!1,z(!1,l,"'","'"),""",'"')}function tn(l){return el(l.value)}var li=new Set(["template","style","script"]);function ya(l,d){return cn(l,d)&&!li.has(l.fullName)}function cn(l,d){return d.parser==="vue"&&l.type==="element"&&l.parent.type==="root"&&l.fullName.toLowerCase()!=="html"}function Va(l,d){return cn(l,d)&&(ya(l,d)||l.attrMap.lang&&l.attrMap.lang!=="html")}function ui(l){let d=l.fullName;return d.charAt(0)==="#"||d==="slot-scope"||d==="v-slot"||d.startsWith("v-slot:")}function tl(l,d){let y=l.parent;if(!cn(y,d))return!1;let x=y.fullName,_=l.fullName;return x==="script"&&_==="setup"||x==="style"&&_==="vars"}function bo(l,d=l.value){return l.parent.isWhitespaceSensitive?l.parent.isIndentationSensitive?Ee(d):Ee(en(ha(d)),Ye):qr(gt,Kr.split(d))}function rl(l,d){return cn(l,d)&&l.name==="script"}var wa=/\{\{(.+?)\}\}/su;async function qi(l,d){let y=[];for(let[x,_]of l.split(wa).entries())if(x%2===0)y.push(Ee(_));else try{y.push(Ce(["{{",Be([gt,await un(_,d,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),gt,"}}"]))}catch{y.push("{{",Ee(_),"}}")}return y}function ci({parser:l}){return(d,y,x)=>un(tn(x.node),d,{parser:l},ua)}var Ki=ci({parser:"__ng_action"}),nl=ci({parser:"__ng_binding"}),iu=ci({parser:"__ng_directive"});function hc(l,d){if(d.parser!=="angular")return;let{node:y}=l,x=y.fullName;if(x.startsWith("(")&&x.endsWith(")")||x.startsWith("on-"))return Ki;if(x.startsWith("[")&&x.endsWith("]")||/^bind(?:on)?-/u.test(x)||/^ng-(?:if|show|hide|class|style)$/u.test(x))return nl;if(x.startsWith("*"))return iu;let _=tn(y);if(/^i18n(?:-.+)?$/u.test(x))return()=>Wn(la(bo(y,_.trim())),!_.includes("@@"));if(wa.test(_))return I=>qi(_,I)}var yo=hc;function al(l,d){let{node:y}=l,x=tn(y);if(y.fullName==="class"&&!d.parentParser&&!x.includes("{{"))return()=>x.trim().split(/\s+/u).join(" ")}var Xa=al;function ol(l){return l===" "||l===`
|
|
193
|
-
`||l==="\f"||l==="\r"||l===" "}var wo=/^[ \t\n\r\u000c]+/,pc=/^[, \t\n\r\u000c]+/,Qi=/^[^ \t\n\r\u000c]+/,$i=/[,]+$/,Za=/^\d+$/,xo=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function es(l){let d=l.length,y,x,_,I,Y,q=0,ae;function we(He){let Ne,It=He.exec(l.substring(q));if(It)return[Ne]=It,q+=Ne.length,Ne}let ce=[];for(;;){if(we(pc),q>=d){if(ce.length===0)throw new Error("Must contain one or more image candidate strings.");return ce}ae=q,y=we(Qi),x=[],y.slice(-1)===","?(y=y.replace($i,""),We()):Xe()}function Xe(){for(we(wo),_="",I="in descriptor";;){if(Y=l.charAt(q),I==="in descriptor")if(ol(Y))_&&(x.push(_),_="",I="after descriptor");else if(Y===","){q+=1,_&&x.push(_),We();return}else if(Y==="(")_+=Y,I="in parens";else if(Y===""){_&&x.push(_),We();return}else _+=Y;else if(I==="in parens")if(Y===")")_+=Y,I="in descriptor";else if(Y===""){x.push(_),We();return}else _+=Y;else if(I==="after descriptor"&&!ol(Y))if(Y===""){We();return}else I="in descriptor",q-=1;q+=1}}function We(){let He=!1,Ne,It,Ft,tr,Se={},Je,_t,St,o,u;for(tr=0;tr<x.length;tr++)Je=x[tr],_t=Je[Je.length-1],St=Je.substring(0,Je.length-1),o=parseInt(St,10),u=parseFloat(St),Za.test(St)&&_t==="w"?((Ne||It)&&(He=!0),o===0?He=!0:Ne=o):xo.test(St)&&_t==="x"?((Ne||It||Ft)&&(He=!0),u<0?He=!0:It=u):Za.test(St)&&_t==="h"?((Ft||It)&&(He=!0),o===0?He=!0:Ft=o):He=!0;if(!He)Se.source={value:y,startOffset:ae},Ne&&(Se.width={value:Ne}),It&&(Se.density={value:It}),Ft&&(Se.height={value:Ft}),ce.push(Se);else throw new Error(`Invalid srcset descriptor found in "${l}" at "${Je}".`)}}var ts=es;function Do(l){if(l.node.fullName==="srcset"&&(l.parent.fullName==="img"||l.parent.fullName==="source"))return()=>rs(tn(l.node))}var gc={width:"w",height:"h",density:"x"},il=Object.keys(gc);function rs(l){let d=ts(l),y=il.filter(ce=>d.some(Xe=>Object.prototype.hasOwnProperty.call(Xe,ce)));if(y.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[x]=y,_=gc[x],I=d.map(ce=>ce.source.value),Y=Math.max(...I.map(ce=>ce.length)),q=d.map(ce=>ce[x]?String(ce[x].value):""),ae=q.map(ce=>{let Xe=ce.indexOf(".");return Xe===-1?ce.length:Xe}),we=Math.max(...ae);return Wn(qr([",",gt],I.map((ce,Xe)=>{let We=[ce],He=q[Xe];if(He){let Ne=Y-ce.length+1,It=we-ae[Xe],Ft=" ".repeat(Ne+It);We.push(Ct(Ft," "),He+_)}return We})))}var sl=Do;function ns(l,d){let{node:y}=l,x=tn(l.node).trim();if(y.fullName==="style"&&!d.parentParser&&!x.includes("{{"))return async _=>Wn(await _(x,{parser:"css",__isHTMLStyleAttribute:!0}))}var Co=new WeakMap;function Yn(l,d){let{root:y}=l;return Co.has(y)||Co.set(y,y.children.some(x=>rl(x,d)&&["ts","typescript"].includes(x.attrMap.lang))),Co.get(y)}var xa=Yn;function mc(l,d,y){let{node:x}=y,_=tn(x);return un(`type T<${_}> = any`,l,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ua)}function ll(l,d,{parseWithTs:y}){return un(`function _(${l}) {}`,d,{parser:y?"babel-ts":"babel",__isVueBindings:!0})}async function At(l,d,y,x){let _=tn(y.node),{left:I,operator:Y,right:q}=st(_),ae=xa(y,x);return[Ce(await un(`function _(${I}) {}`,l,{parser:ae?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",Y," ",await un(q,l,{parser:ae?"__ts_expression":"__js_expression"})]}function st(l){let d=/(.*?)\s+(in|of)\s+(.*)/su,y=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,x=/^\(|\)$/gu,_=l.match(d);if(!_)return;let I={};if(I.for=_[3].trim(),!I.for)return;let Y=z(!1,_[1].trim(),x,""),q=Y.match(y);q?(I.alias=Y.replace(y,""),I.iterator1=q[1].trim(),q[2]&&(I.iterator2=q[2].trim())):I.alias=Y;let ae=[I.alias,I.iterator1,I.iterator2];if(!ae.some((we,ce)=>!we&&(ce===0||ae.slice(ce+1).some(Boolean))))return{left:ae.filter(Boolean).join(","),operator:_[2],right:I.for}}function kd(l,d){if(d.parser!=="vue")return;let{node:y}=l,x=y.fullName;if(x==="v-for")return At;if(x==="generic"&&rl(y.parent,d))return mc;let _=tn(y),I=xa(l,d);if(ui(y)||tl(y,d))return Y=>ll(_,Y,{parseWithTs:I});if(x.startsWith("@")||x.startsWith("v-on:"))return Y=>su(_,Y,{parseWithTs:I});if(x.startsWith(":")||x.startsWith(".")||x.startsWith("v-bind:"))return Y=>Ja(_,Y,{parseWithTs:I});if(x.startsWith("v-"))return Y=>lu(_,Y,{parseWithTs:I})}async function su(l,d,{parseWithTs:y}){var x;try{return await lu(l,d,{parseWithTs:y})}catch(_){if(((x=_.cause)==null?void 0:x.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw _}return un(l,d,{parser:y?"__vue_ts_event_binding":"__vue_event_binding"},ua)}function Ja(l,d,{parseWithTs:y}){return un(l,d,{parser:y?"__vue_ts_expression":"__vue_expression"},ua)}function lu(l,d,{parseWithTs:y}){return un(l,d,{parser:y?"__ts_expression":"__js_expression"},ua)}var vc=kd;function uu(l,d){let{node:y}=l;if(y.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(d.originalText.slice(y.valueSpan.start.offset,y.valueSpan.end.offset))||d.parser==="lwc"&&y.value.startsWith("{")&&y.value.endsWith("}"))return[y.rawName,"=",y.value];for(let x of[sl,ns,Xa,vc,yo]){let _=x(l,d);if(_)return cu(_)}}}function cu(l){return async(d,y,x,_)=>{let I=await l(d,y,x,_);if(I)return I=ze(I,Y=>typeof Y=="string"?z(!1,Y,'"',"""):Y),[x.node.rawName,'="',Ce(I),'"']}}var Eo=uu,Td=new Proxy(()=>{},{get:()=>Td});function di(l){return l.sourceSpan.start.offset}function lr(l){return l.sourceSpan.end.offset}function mr(l,d){return[l.isSelfClosing?"":Mr(l,d),mt(l,d)]}function Mr(l,d){return l.lastChild&&Tn(l.lastChild)?"":[lt(l,d),ul(l,d)]}function mt(l,d){return(l.next?So(l.next):hi(l.parent))?"":[fi(l,d),Fo(l,d)]}function lt(l,d){return hi(l)?fi(l.lastChild,d):""}function Fo(l,d){return Tn(l)?ul(l.parent,d):An(l)?fu(l.next,d):""}function ul(l,d){if(bc(l,d))return"";switch(l.type){case"ieConditionalComment":return"<!";case"element":if(l.hasHtmComponentClosingTag)return"<//";default:return`</${l.rawName}`}}function fi(l,d){if(bc(l,d))return"";switch(l.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(l.isSelfClosing)return"/>";default:return">"}}function bc(l,d){return!l.isSelfClosing&&!l.endSourceSpan&&(ri(l)||Js(l.parent,d))}function So(l){return l.prev&&l.prev.type!=="docType"&&l.type!=="angularControlFlowBlock"&&!Qt(l.prev)&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces}function hi(l){var d;return((d=l.lastChild)==null?void 0:d.isTrailingSpaceSensitive)&&!l.lastChild.hasTrailingSpaces&&!Qt(go(l.lastChild))&&!Gn(l)}function Tn(l){return!l.next&&!l.hasTrailingSpaces&&l.isTrailingSpaceSensitive&&Qt(go(l))}function An(l){return l.next&&!Qt(l.next)&&Qt(l)&&l.isTrailingSpaceSensitive&&!l.hasTrailingSpaces}function yc(l){let d=l.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return d?d[1]?d[1].split(/\s+/u):!0:!1}function as(l){return!l.prev&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces}function wc(l,d,y){var x;let{node:_}=l;if(!za(_.attrs))return _.isSelfClosing?" ":"";let I=((x=_.prev)==null?void 0:x.type)==="comment"&&yc(_.prev.value),Y=typeof I=="boolean"?()=>I:Array.isArray(I)?Xe=>I.includes(Xe.rawName):()=>!1,q=l.map(({node:Xe})=>Y(Xe)?Ee(d.originalText.slice(di(Xe),lr(Xe))):y(),"attrs"),ae=_.type==="element"&&_.fullName==="script"&&_.attrs.length===1&&_.attrs[0].fullName==="src"&&_.children.length===0,we=d.singleAttributePerLine&&_.attrs.length>1&&!cn(_,d)?Ye:gt,ce=[Be([ae?" ":gt,qr(we,q)])];return _.firstChild&&as(_.firstChild)||_.isSelfClosing&&hi(_.parent)||ae?ce.push(_.isSelfClosing?" ":""):ce.push(d.bracketSameLine?_.isSelfClosing?" ":"":_.isSelfClosing?gt:yt),ce}function xc(l){return l.firstChild&&as(l.firstChild)?"":_n(l)}function Tr(l,d,y){let{node:x}=l;return[os(x,d),wc(l,d,y),x.isSelfClosing?"":xc(x)]}function os(l,d){return l.prev&&An(l.prev)?"":[Gt(l,d),fu(l,d)]}function Gt(l,d){return as(l)?_n(l.parent):So(l)?fi(l.prev,d):""}var du="<!doctype";function fu(l,d){switch(l.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${l.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(l.value==="html"){let{filepath:x}=d;if(x&&/\.html?$/u.test(x))return du}let y=di(l);return d.originalText.slice(y,y+du.length)}case"angularIcuExpression":return"{";case"element":if(l.condition)return`<!--[if ${l.condition}]><!--><${l.rawName}`;default:return`<${l.rawName}`}}function _n(l){switch(l.type){case"ieConditionalComment":return"]>";case"element":if(l.condition)return"><!--<![endif]-->";default:return">"}}function ko(l,d){if(!l.endSourceSpan)return"";let y=l.startSourceSpan.end.offset;l.firstChild&&as(l.firstChild)&&(y-=_n(l).length);let x=l.endSourceSpan.start.offset;return l.lastChild&&Tn(l.lastChild)?x+=ul(l,d).length:hi(l)&&(x-=fi(l.lastChild,d).length),d.originalText.slice(y,x)}var hu=ko,is=new Set(["if","else if","for","switch","case"]);function To(l,d){let{node:y}=l;switch(y.type){case"element":if(pa(y,d)||y.type==="interpolation")return;if(!y.isSelfClosing&&Va(y,d)){let x=Ya(y,d);return x?async(_,I)=>{let Y=hu(y,d),q=/^\s*$/u.test(Y),ae="";return q||(ae=await _(ha(Y),{parser:x,__embeddedInHtml:!0}),q=ae===""),[Gt(y,d),Ce(Tr(l,d,I)),q?"":Ye,ae,q?"":Ye,mr(y,d),Fo(y,d)]}:void 0}break;case"text":if(pa(y.parent,d)){let x=Ya(y.parent,d);if(x)return async _=>{let I=x==="markdown"?en(y.value.replace(/^[^\S\n]*\n/u,"")):y.value,Y={parser:x,__embeddedInHtml:!0};if(d.parser==="html"&&x==="babel"){let q="script",{attrMap:ae}=y.parent;ae&&(ae.type==="module"||(ae.type==="text/babel"||ae.type==="text/jsx")&&ae["data-type"]==="module")&&(q="module"),Y.__babelSourceType=q}return[Fn,Gt(y,d),await _(I,Y),Fo(y,d)]}}else if(y.parent.type==="interpolation")return async x=>{let _={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return d.parser==="angular"?_.parser="__ng_interpolation":d.parser==="vue"?_.parser=xa(l,d)?"__vue_ts_expression":"__vue_expression":_.parser="__js_expression",[Be([gt,await x(y.value,_)]),y.parent.next&&So(y.parent.next)?" ":gt]};break;case"attribute":return Eo(l,d);case"front-matter":return x=>ut(y,x);case"angularControlFlowBlockParameters":return is.has(l.parent.name)?dc:void 0;case"angularLetDeclarationInitializer":return x=>un(y.value,x,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var ss=To;function Yt(l,d="type"){function y(x){let _=x[d],I=l[_];if(!Array.isArray(I))throw Object.assign(new Error(`Missing visitor keys for '${_}'.`),{node:x});return I}return y}var zr=Yt,Ad={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},Dc=Ad,Cc=zr(Dc),pi=Cc,ur="format",Hr=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,cl=/^\s*<!--\s*@(?:format|prettier)\s*-->/u;function cr(l){return cl.test(l)}function Vn(l){return Hr.test(l)}function ls(l){return`<!-- @${ur} -->
|
|
194
|
-
|
|
195
|
-
${l}`}var gi=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function us(l){let d=lr(l);return l.type==="element"&&!l.endSourceSpan&&za(l.children)?Math.max(d,us(j(!1,l.children,-1))):d}function Da(l,d,y){let x=l.node;if(ri(x)){let _=us(x);return[Gt(x,d),Ee(Kr.trimEnd(d.originalText.slice(di(x)+(x.prev&&An(x.prev)?fu(x).length:0),_-(x.next&&So(x.next)?fi(x,d).length:0)))),Fo(x,d)]}return y()}function Et(l,d){return Qt(l)&&Qt(d)?l.isTrailingSpaceSensitive?l.hasTrailingSpaces?ba(d)?Ye:gt:"":ba(d)?Ye:yt:An(l)&&(ri(d)||d.firstChild||d.isSelfClosing||d.type==="element"&&d.attrs.length>0)||l.type==="element"&&l.isSelfClosing&&So(d)?"":!d.isLeadingSpaceSensitive||ba(d)||So(d)&&l.lastChild&&Tn(l.lastChild)&&l.lastChild.lastChild&&Tn(l.lastChild.lastChild)?Ye:d.hasLeadingSpaces?gt:yt}function Ar(l,d,y){let{node:x}=l;if(Wa(x))return[Fn,...l.map(I=>{let Y=I.node,q=Y.prev?Et(Y.prev,Y):"";return[q?[q,va(Y.prev)?Ye:""]:"",Da(I,d,y)]},"children")];let _=x.children.map(()=>Symbol(""));return l.map((I,Y)=>{let q=I.node;if(Qt(q)){if(q.prev&&Qt(q.prev)){let Ne=Et(q.prev,q);if(Ne)return va(q.prev)?[Ye,Ye,Da(I,d,y)]:[Ne,Da(I,d,y)]}return Da(I,d,y)}let ae=[],we=[],ce=[],Xe=[],We=q.prev?Et(q.prev,q):"",He=q.next?Et(q,q.next):"";return We&&(va(q.prev)?ae.push(Ye,Ye):We===Ye?ae.push(Ye):Qt(q.prev)?we.push(We):we.push(Ct("",yt,{groupId:_[Y-1]}))),He&&(va(q)?Qt(q.next)&&Xe.push(Ye,Ye):He===Ye?Qt(q.next)&&Xe.push(Ye):ce.push(He)),[...ae,Ce([...we,Ce([Da(I,d,y),...ce],{id:_[Y]})]),...Xe]},"children")}function Ec(l,d,y){let{node:x}=l,_=[];_r(l)&&_.push("} "),_.push("@",x.name),x.parameters&&_.push(" (",Ce(y("parameters")),")"),_.push(" {");let I=pu(x);return x.children.length>0?(x.firstChild.hasLeadingSpaces=!0,x.lastChild.hasTrailingSpaces=!0,_.push(Be([Ye,Ar(l,d,y)])),I&&_.push(Ye,"}")):I&&_.push("}"),Ce(_,{shouldBreak:!0})}function pu(l){var d,y;return!(((d=l.next)==null?void 0:d.type)==="angularControlFlowBlock"&&(y=gi.get(l.name))!=null&&y.has(l.next.name))}function _r(l){let{previous:d}=l;return d?.type==="angularControlFlowBlock"&&!ri(d)&&!pu(d)}function dn(l,d,y){return[Be([yt,qr([";",gt],l.map(y,"children"))]),yt]}function Wr(l,d,y){let{node:x}=l;return[os(x,d),Ce([x.switchValue.trim(),", ",x.clause,x.cases.length>0?[",",Be([gt,qr(gt,l.map(y,"cases"))])]:"",yt]),mt(x,d)]}function dl(l,d,y){let{node:x}=l;return[x.value," {",Ce([Be([yt,l.map(({node:_,isLast:I})=>{let Y=[y()];return _.type==="text"&&(_.hasLeadingSpaces&&Y.unshift(gt),_.hasTrailingSpaces&&!I&&Y.push(gt)),Y},"expression")]),yt]),"}"]}function gu(l,d,y){let{node:x}=l;if(Js(x,d))return[Gt(x,d),Ce(Tr(l,d,y)),Ee(hu(x,d)),...mr(x,d),Fo(x,d)];let _=x.children.length===1&&(x.firstChild.type==="interpolation"||x.firstChild.type==="angularIcuExpression")&&x.firstChild.isLeadingSpaceSensitive&&!x.firstChild.hasLeadingSpaces&&x.lastChild.isTrailingSpaceSensitive&&!x.lastChild.hasTrailingSpaces,I=Symbol("element-attr-group-id"),Y=ce=>Ce([Ce(Tr(l,d,y),{id:I}),ce,mr(x,d)]),q=ce=>_?Xl(ce,{groupId:I}):(pa(x,d)||ya(x,d))&&x.parent.type==="root"&&d.parser==="vue"&&!d.vueIndentScriptAndStyle?ce:Be(ce),ae=()=>_?Ct(yt,"",{groupId:I}):x.firstChild.hasLeadingSpaces&&x.firstChild.isLeadingSpaceSensitive?gt:x.firstChild.type==="text"&&x.isWhitespaceSensitive&&x.isIndentationSensitive?be(yt):yt,we=()=>(x.next?So(x.next):hi(x.parent))?x.lastChild.hasTrailingSpaces&&x.lastChild.isTrailingSpaceSensitive?" ":"":_?Ct(yt,"",{groupId:I}):x.lastChild.hasTrailingSpaces&&x.lastChild.isTrailingSpaceSensitive?gt:(x.lastChild.type==="comment"||x.lastChild.type==="text"&&x.isWhitespaceSensitive&&x.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${d.tabWidth*(l.ancestors.length-1)}}$`,"u").test(x.lastChild.value)?"":yt;return x.children.length===0?Y(x.hasDanglingSpaces&&x.isDanglingSpaceSensitive?gt:""):Y([Ks(x)?Fn:"",q([ae(),Ar(l,d,y)]),we()])}function Ot(l){return l>=9&&l<=32||l==160}function Ao(l){return 48<=l&&l<=57}function cs(l){return l>=97&&l<=122||l>=65&&l<=90}function Fc(l){return l>=97&&l<=102||l>=65&&l<=70||Ao(l)}function ds(l){return l===10||l===13}function fl(l){return 48<=l&&l<=55}function Ca(l){return l===39||l===34||l===96}var mi=/-+([a-z0-9])/g;function Ur(l){return l.replace(mi,(...d)=>d[1].toUpperCase())}var Ea=class yw{constructor(d,y,x,_){this.file=d,this.offset=y,this.line=x,this.col=_}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(d){let y=this.file.content,x=y.length,_=this.offset,I=this.line,Y=this.col;for(;_>0&&d<0;)if(_--,d++,y.charCodeAt(_)==10){I--;let q=y.substring(0,_-1).lastIndexOf(`
|
|
196
|
-
`);Y=q>0?_-q:_}else Y--;for(;_<x&&d>0;){let q=y.charCodeAt(_);_++,d--,q==10?(I++,Y=0):Y++}return new yw(this.file,_,I,Y)}getContext(d,y){let x=this.file.content,_=this.offset;if(_!=null){_>x.length-1&&(_=x.length-1);let I=_,Y=0,q=0;for(;Y<d&&_>0&&(_--,Y++,!(x[_]==`
|
|
197
|
-
`&&++q==y)););for(Y=0,q=0;Y<d&&I<x.length-1&&(I++,Y++,!(x[I]==`
|
|
198
|
-
`&&++q==y)););return{before:x.substring(_,this.offset),after:x.substring(this.offset,I+1)}}return null}},fn=class{constructor(l,d){this.content=l,this.url=d}},Me=class{constructor(l,d,y=l,x=null){this.start=l,this.end=d,this.fullStart=y,this.details=x}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Xn;(function(l){l[l.WARNING=0]="WARNING",l[l.ERROR=1]="ERROR"})(Xn||(Xn={}));var hl=class{constructor(l,d,y=Xn.ERROR,x){this.span=l,this.msg=d,this.level=y,this.relatedError=x}contextualMessage(){let l=this.span.start.getContext(100,3);return l?`${this.msg} ("${l.before}[${Xn[this.level]} ->]${l.after}")`:this.msg}toString(){let l=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${l}`}},mu=[Fa,vu,kc,Rr,hn,hs,rn,bu,Tc,_d];function fs(l,d){for(let y of mu)y(l,d);return l}function Fa(l){l.walk(d=>{if(d.type==="element"&&d.tagDefinition.ignoreFirstLf&&d.children.length>0&&d.children[0].type==="text"&&d.children[0].value[0]===`
|
|
199
|
-
`){let y=d.children[0];y.value.length===1?d.removeChild(y):y.value=y.value.slice(1)}})}function vu(l){let d=y=>{var x,_;return y.type==="element"&&((x=y.prev)==null?void 0:x.type)==="ieConditionalStartComment"&&y.prev.sourceSpan.end.offset===y.startSourceSpan.start.offset&&((_=y.firstChild)==null?void 0:_.type)==="ieConditionalEndComment"&&y.firstChild.sourceSpan.start.offset===y.startSourceSpan.end.offset};l.walk(y=>{if(y.children)for(let x=0;x<y.children.length;x++){let _=y.children[x];if(!d(_))continue;let I=_.prev,Y=_.firstChild;y.removeChild(I),x--;let q=new Me(I.sourceSpan.start,Y.sourceSpan.end),ae=new Me(q.start,_.sourceSpan.end);_.condition=I.condition,_.sourceSpan=ae,_.startSourceSpan=q,_.removeChild(Y)}})}function Sc(l,d,y){l.walk(x=>{if(x.children)for(let _=0;_<x.children.length;_++){let I=x.children[_];if(I.type!=="text"&&!d(I))continue;I.type!=="text"&&(I.type="text",I.value=y(I));let Y=I.prev;!Y||Y.type!=="text"||(Y.value+=I.value,Y.sourceSpan=new Me(Y.sourceSpan.start,I.sourceSpan.end),x.removeChild(I),_--)}})}function kc(l){return Sc(l,d=>d.type==="cdata",d=>`<![CDATA[${d.value}]]>`)}function _d(l){let d=y=>{var x,_;return y.type==="element"&&y.attrs.length===0&&y.children.length===1&&y.firstChild.type==="text"&&!Kr.hasWhitespaceCharacter(y.children[0].value)&&!y.firstChild.hasLeadingSpaces&&!y.firstChild.hasTrailingSpaces&&y.isLeadingSpaceSensitive&&!y.hasLeadingSpaces&&y.isTrailingSpaceSensitive&&!y.hasTrailingSpaces&&((x=y.prev)==null?void 0:x.type)==="text"&&((_=y.next)==null?void 0:_.type)==="text"};l.walk(y=>{if(y.children)for(let x=0;x<y.children.length;x++){let _=y.children[x];if(!d(_))continue;let I=_.prev,Y=_.next;I.value+=`<${_.rawName}>`+_.firstChild.value+`</${_.rawName}>`+Y.value,I.sourceSpan=new Me(I.sourceSpan.start,Y.sourceSpan.end),I.isTrailingSpaceSensitive=Y.isTrailingSpaceSensitive,I.hasTrailingSpaces=Y.hasTrailingSpaces,y.removeChild(_),x--,y.removeChild(Y)}})}function Rr(l,d){if(d.parser==="html")return;let y=/\{\{(.+?)\}\}/su;l.walk(x=>{if(Sd(x,d))for(let _ of x.children){if(_.type!=="text")continue;let I=_.sourceSpan.start,Y=null,q=_.value.split(y);for(let ae=0;ae<q.length;ae++,I=Y){let we=q[ae];if(ae%2===0){Y=I.moveBy(we.length),we.length>0&&x.insertChildBefore(_,{type:"text",value:we,sourceSpan:new Me(I,Y)});continue}Y=I.moveBy(we.length+4),x.insertChildBefore(_,{type:"interpolation",sourceSpan:new Me(I,Y),children:we.length===0?[]:[{type:"text",value:we,sourceSpan:new Me(I.moveBy(2),Y.moveBy(-2))}]})}x.removeChild(_)}})}function hn(l,d){l.walk(y=>{let x=y.$children;if(!x)return;if(x.length===0||x.length===1&&x[0].type==="text"&&Kr.trim(x[0].value).length===0){y.hasDanglingSpaces=x.length>0,y.$children=[];return}let _=ga(y,d),I=ma(y);if(!_)for(let Y=0;Y<x.length;Y++){let q=x[Y];if(q.type!=="text")continue;let{leadingWhitespace:ae,text:we,trailingWhitespace:ce}=Xi(q.value),Xe=q.prev,We=q.next;we?(q.value=we,q.sourceSpan=new Me(q.sourceSpan.start.moveBy(ae.length),q.sourceSpan.end.moveBy(-ce.length)),ae&&(Xe&&(Xe.hasTrailingSpaces=!0),q.hasLeadingSpaces=!0),ce&&(q.hasTrailingSpaces=!0,We&&(We.hasLeadingSpaces=!0))):(y.removeChild(q),Y--,(ae||ce)&&(Xe&&(Xe.hasTrailingSpaces=!0),We&&(We.hasLeadingSpaces=!0)))}y.isWhitespaceSensitive=_,y.isIndentationSensitive=I})}function rn(l){l.walk(d=>{d.isSelfClosing=!d.children||d.type==="element"&&(d.tagDefinition.isVoid||d.endSourceSpan&&d.startSourceSpan.start===d.endSourceSpan.start&&d.startSourceSpan.end===d.endSourceSpan.end)})}function bu(l,d){l.walk(y=>{y.type==="element"&&(y.hasHtmComponentClosingTag=y.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(d.originalText.slice(y.endSourceSpan.start.offset,y.endSourceSpan.end.offset)))})}function hs(l,d){l.walk(y=>{y.cssDisplay=si(y,d)})}function Tc(l,d){l.walk(y=>{let{children:x}=y;if(x){if(x.length===0){y.isDanglingSpaceSensitive=ai(y,d);return}for(let _ of x)_.isLeadingSpaceSensitive=ni(_,d),_.isTrailingSpaceSensitive=qs(_,d);for(let _=0;_<x.length;_++){let I=x[_];I.isLeadingSpaceSensitive=(_===0||I.prev.isTrailingSpaceSensitive)&&I.isLeadingSpaceSensitive,I.isTrailingSpaceSensitive=(_===x.length-1||I.next.isLeadingSpaceSensitive)&&I.isTrailingSpaceSensitive}}})}var Vt=fs;function ps(l,d,y){let{node:x}=l;switch(x.type){case"front-matter":return Ee(x.raw);case"root":return d.__onHtmlRoot&&d.__onHtmlRoot(x),[Ce(Ar(l,d,y)),Ye];case"element":case"ieConditionalComment":return gu(l,d,y);case"angularControlFlowBlock":return Ec(l,d,y);case"angularControlFlowBlockParameters":return dn(l,d,y);case"angularControlFlowBlockParameter":return Kr.trim(x.expression);case"angularLetDeclaration":return Ce(["@let ",Ce([x.id," =",Ce(Be([gt,y("init")]))]),";"]);case"angularLetDeclarationInitializer":return x.value;case"angularIcuExpression":return Wr(l,d,y);case"angularIcuCase":return dl(l,d,y);case"ieConditionalStartComment":case"ieConditionalEndComment":return[os(x),mt(x)];case"interpolation":return[os(x,d),...l.map(y,"children"),mt(x,d)];case"text":{if(x.parent.type==="interpolation"){let q=/\n[^\S\n]*$/u,ae=q.test(x.value),we=ae?x.value.replace(q,""):x.value;return[Ee(we),ae?Ye:""]}let _=Gt(x,d),I=bo(x),Y=Fo(x,d);return I[0]=[_,I[0]],I.push([I.pop(),Y]),la(I)}case"docType":return[Ce([os(x,d)," ",z(!1,x.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),mt(x,d)];case"comment":return[Gt(x,d),Ee(d.originalText.slice(di(x),lr(x))),Fo(x,d)];case"attribute":{if(x.value===null)return x.rawName;let _=el(x.value),I=ic(_,'"');return[x.rawName,"=",I,Ee(I==='"'?z(!1,_,'"',"""):z(!1,_,"'","'")),I]}case"cdata":default:throw new Ed(x,"HTML")}}var Ac={preprocess:Vt,print:ps,insertPragma:ls,massageAstNode:ql,embed:ss,getVisitorKeys:pi},_c=Ac,Rc=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],yu={bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},wu="HTML",Nc={bracketSameLine:yu.bracketSameLine,htmlWhitespaceSensitivity:{category:wu,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:yu.singleAttributePerLine,vueIndentScriptAndStyle:{category:wu,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Pc=Nc,gs={};b(gs,{angular:()=>ks,html:()=>Ss,lwc:()=>_l,mjml:()=>Qn,vue:()=>Ts});var xu;(function(l){l[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom"})(xu||(xu={}));var ms;(function(l){l[l.OnPush=0]="OnPush",l[l.Default=1]="Default"})(ms||(ms={}));var vs;(function(l){l[l.None=0]="None",l[l.SignalBased=1]="SignalBased",l[l.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(vs||(vs={}));var pl={name:"custom-elements"},Oc={name:"no-errors-schema"},_o;(function(l){l[l.NONE=0]="NONE",l[l.HTML=1]="HTML",l[l.STYLE=2]="STYLE",l[l.SCRIPT=3]="SCRIPT",l[l.URL=4]="URL",l[l.RESOURCE_URL=5]="RESOURCE_URL"})(_o||(_o={}));var Bc;(function(l){l[l.Error=0]="Error",l[l.Warning=1]="Warning",l[l.Ignore=2]="Ignore"})(Bc||(Bc={}));var Rn;(function(l){l[l.RAW_TEXT=0]="RAW_TEXT",l[l.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",l[l.PARSABLE_DATA=2]="PARSABLE_DATA"})(Rn||(Rn={}));function vi(l,d=!0){if(l[0]!=":")return[null,l];let y=l.indexOf(":",1);if(y===-1){if(d)throw new Error(`Unsupported format "${l}" expecting ":namespace:name"`);return[null,l]}return[l.slice(1,y),l.slice(y+1)]}function Ic(l){return vi(l)[1]==="ng-container"}function Du(l){return vi(l)[1]==="ng-content"}function gl(l){return l===null?null:vi(l)[0]}function bs(l,d){return l?`:${l}:${d}`:d}var ml;function Lc(){return ml||(ml={},vl(_o.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),vl(_o.STYLE,["*|style"]),vl(_o.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),vl(_o.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),ml}function vl(l,d){for(let y of d)ml[y.toLowerCase()]=l}var Rd=class{},Nd="boolean",Pd="number",bl="string",Od="object",yl=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Mc=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Bd=Array.from(Mc).reduce((l,[d,y])=>(l.set(d,y),l),new Map),Id=class extends Rd{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,yl.forEach(l=>{let d=new Map,y=new Set,[x,_]=l.split("|"),I=_.split(","),[Y,q]=x.split("^");Y.split(",").forEach(we=>{this._schema.set(we.toLowerCase(),d),this._eventSchema.set(we.toLowerCase(),y)});let ae=q&&this._schema.get(q.toLowerCase());if(ae){for(let[we,ce]of ae)d.set(we,ce);for(let we of this._eventSchema.get(q.toLowerCase()))y.add(we)}I.forEach(we=>{if(we.length>0)switch(we[0]){case"*":y.add(we.substring(1));break;case"!":d.set(we.substring(1),Nd);break;case"#":d.set(we.substring(1),Pd);break;case"%":d.set(we.substring(1),Od);break;default:d.set(we,bl)}})})}hasProperty(l,d,y){if(y.some(x=>x.name===Oc.name))return!0;if(l.indexOf("-")>-1){if(Ic(l)||Du(l))return!1;if(y.some(x=>x.name===pl.name))return!0}return(this._schema.get(l.toLowerCase())||this._schema.get("unknown")).has(d)}hasElement(l,d){return d.some(y=>y.name===Oc.name)||l.indexOf("-")>-1&&(Ic(l)||Du(l)||d.some(y=>y.name===pl.name))?!0:this._schema.has(l.toLowerCase())}securityContext(l,d,y){y&&(d=this.getMappedPropName(d)),l=l.toLowerCase(),d=d.toLowerCase();let x=Lc()[l+"|"+d];return x||(x=Lc()["*|"+d],x||_o.NONE)}getMappedPropName(l){return Mc.get(l)??l}getDefaultComponentElementName(){return"ng-component"}validateProperty(l){return l.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${l}' is disallowed for security reasons, please use (${l.slice(2)})=...
|
|
200
|
-
If '${l}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(l){return l.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${l}' is disallowed for security reasons, please use (${l.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(l){let d=this._schema.get(l.toLowerCase())||this._schema.get("unknown");return Array.from(d.keys()).map(y=>Bd.get(y)??y)}allKnownEventsOfElement(l){return Array.from(this._eventSchema.get(l.toLowerCase())??[])}normalizeAnimationStyleProperty(l){return Ur(l)}normalizeAnimationStyleValue(l,d,y){let x="",_=y.toString().trim(),I=null;if(Ld(l)&&y!==0&&y!=="0")if(typeof y=="number")x="px";else{let Y=y.match(/^[+-]?[\d\.]+([a-z]*)$/);Y&&Y[1].length==0&&(I=`Please provide a CSS unit value for ${d}:${y}`)}return{error:I,value:_+x}}};function Ld(l){switch(l){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var Ve=class{constructor({closedByChildren:l,implicitNamespacePrefix:d,contentType:y=Rn.PARSABLE_DATA,closedByParent:x=!1,isVoid:_=!1,ignoreFirstLf:I=!1,preventNamespaceInheritance:Y=!1,canSelfClose:q=!1}={}){this.closedByChildren={},this.closedByParent=!1,l&&l.length>0&&l.forEach(ae=>this.closedByChildren[ae]=!0),this.isVoid=_,this.closedByParent=x||_,this.implicitNamespacePrefix=d||null,this.contentType=y,this.ignoreFirstLf=I,this.preventNamespaceInheritance=Y,this.canSelfClose=q??_}isClosedByChild(l){return this.isVoid||l.toLowerCase()in this.closedByChildren}getContentType(l){return typeof this.contentType=="object"?(l===void 0?void 0:this.contentType[l])??this.contentType.default:this.contentType}},zc,ys;function Cu(l){return ys||(zc=new Ve({canSelfClose:!0}),ys=Object.assign(Object.create(null),{base:new Ve({isVoid:!0}),meta:new Ve({isVoid:!0}),area:new Ve({isVoid:!0}),embed:new Ve({isVoid:!0}),link:new Ve({isVoid:!0}),img:new Ve({isVoid:!0}),input:new Ve({isVoid:!0}),param:new Ve({isVoid:!0}),hr:new Ve({isVoid:!0}),br:new Ve({isVoid:!0}),source:new Ve({isVoid:!0}),track:new Ve({isVoid:!0}),wbr:new Ve({isVoid:!0}),p:new Ve({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Ve({closedByChildren:["tbody","tfoot"]}),tbody:new Ve({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Ve({closedByChildren:["tbody"],closedByParent:!0}),tr:new Ve({closedByChildren:["tr"],closedByParent:!0}),td:new Ve({closedByChildren:["td","th"],closedByParent:!0}),th:new Ve({closedByChildren:["td","th"],closedByParent:!0}),col:new Ve({isVoid:!0}),svg:new Ve({implicitNamespacePrefix:"svg"}),foreignObject:new Ve({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Ve({implicitNamespacePrefix:"math"}),li:new Ve({closedByChildren:["li"],closedByParent:!0}),dt:new Ve({closedByChildren:["dt","dd"]}),dd:new Ve({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Ve({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Ve({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Ve({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Ve({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Ve({closedByChildren:["optgroup"],closedByParent:!0}),option:new Ve({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Ve({ignoreFirstLf:!0}),listing:new Ve({ignoreFirstLf:!0}),style:new Ve({contentType:Rn.RAW_TEXT}),script:new Ve({contentType:Rn.RAW_TEXT}),title:new Ve({contentType:{default:Rn.ESCAPABLE_RAW_TEXT,svg:Rn.PARSABLE_DATA}}),textarea:new Ve({contentType:Rn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Id().allKnownElementNames().forEach(d=>{!ys[d]&&gl(d)===null&&(ys[d]=new Ve({canSelfClose:!1}))})),ys[l]??zc}var bi=class{constructor(l,d){this.sourceSpan=l,this.i18n=d}},Md=class extends bi{constructor(l,d,y,x){super(d,x),this.value=l,this.tokens=y,this.type="text"}visit(l,d){return l.visitText(this,d)}},zd=class extends bi{constructor(l,d,y,x){super(d,x),this.value=l,this.tokens=y,this.type="cdata"}visit(l,d){return l.visitCdata(this,d)}},Hd=class extends bi{constructor(l,d,y,x,_,I){super(x,I),this.switchValue=l,this.type=d,this.cases=y,this.switchValueSourceSpan=_}visit(l,d){return l.visitExpansion(this,d)}},Wd=class{constructor(l,d,y,x,_){this.value=l,this.expression=d,this.sourceSpan=y,this.valueSourceSpan=x,this.expSourceSpan=_,this.type="expansionCase"}visit(l,d){return l.visitExpansionCase(this,d)}},wl=class extends bi{constructor(l,d,y,x,_,I,Y){super(y,Y),this.name=l,this.value=d,this.keySpan=x,this.valueSpan=_,this.valueTokens=I,this.type="attribute"}visit(l,d){return l.visitAttribute(this,d)}get nameSpan(){return this.keySpan}},qa=class extends bi{constructor(l,d,y,x,_,I=null,Y=null,q){super(x,q),this.name=l,this.attrs=d,this.children=y,this.startSourceSpan=_,this.endSourceSpan=I,this.nameSpan=Y,this.type="element"}visit(l,d){return l.visitElement(this,d)}},Ud=class{constructor(l,d){this.value=l,this.sourceSpan=d,this.type="comment"}visit(l,d){return l.visitComment(this,d)}},jd=class{constructor(l,d){this.value=l,this.sourceSpan=d,this.type="docType"}visit(l,d){return l.visitDocType(this,d)}},yi=class extends bi{constructor(l,d,y,x,_,I,Y=null,q){super(x,q),this.name=l,this.parameters=d,this.children=y,this.nameSpan=_,this.startSourceSpan=I,this.endSourceSpan=Y,this.type="block"}visit(l,d){return l.visitBlock(this,d)}},Hc=class{constructor(l,d){this.expression=l,this.sourceSpan=d,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(l,d){return l.visitBlockParameter(this,d)}},Wc=class{constructor(l,d,y,x,_){this.name=l,this.value=d,this.sourceSpan=y,this.nameSpan=x,this.valueSpan=_,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(l,d){return l.visitLetDeclaration(this,d)}};function Uc(l,d,y=null){let x=[],_=l.visit?I=>l.visit(I,y)||I.visit(l,y):I=>I.visit(l,y);return d.forEach(I=>{let Y=_(I);Y&&x.push(Y)}),x}var xl=class{constructor(){}visitElement(l,d){this.visitChildren(d,y=>{y(l.attrs),y(l.children)})}visitAttribute(l,d){}visitText(l,d){}visitCdata(l,d){}visitComment(l,d){}visitDocType(l,d){}visitExpansion(l,d){return this.visitChildren(d,y=>{y(l.cases)})}visitExpansionCase(l,d){}visitBlock(l,d){this.visitChildren(d,y=>{y(l.parameters),y(l.children)})}visitBlockParameter(l,d){}visitLetDeclaration(l,d){}visitChildren(l,d){let y=[],x=this;function _(I){I&&y.push(Uc(x,I,l))}return d(_),Array.prototype.concat.apply([],y)}},wi={AElig:"ร",AMP:"&",amp:"&",Aacute:"ร",Abreve:"ฤ",Acirc:"ร",Acy:"ะ",Afr:"๐",Agrave:"ร",Alpha:"ฮ",Amacr:"ฤ",And:"โฉ",Aogon:"ฤ",Aopf:"๐ธ",ApplyFunction:"โก",af:"โก",Aring:"ร
",angst:"ร
",Ascr:"๐",Assign:"โ",colone:"โ",coloneq:"โ",Atilde:"ร",Auml:"ร",Backslash:"โ",setminus:"โ",setmn:"โ",smallsetminus:"โ",ssetmn:"โ",Barv:"โซง",Barwed:"โ",doublebarwedge:"โ",Bcy:"ะ",Because:"โต",becaus:"โต",because:"โต",Bernoullis:"โฌ",Bscr:"โฌ",bernou:"โฌ",Beta:"ฮ",Bfr:"๐
",Bopf:"๐น",Breve:"ห",breve:"ห",Bumpeq:"โ",HumpDownHump:"โ",bump:"โ",CHcy:"ะง",COPY:"ยฉ",copy:"ยฉ",Cacute:"ฤ",Cap:"โ",CapitalDifferentialD:"โ
",DD:"โ
",Cayleys:"โญ",Cfr:"โญ",Ccaron:"ฤ",Ccedil:"ร",Ccirc:"ฤ",Cconint:"โฐ",Cdot:"ฤ",Cedilla:"ยธ",cedil:"ยธ",CenterDot:"ยท",centerdot:"ยท",middot:"ยท",Chi:"ฮง",CircleDot:"โ",odot:"โ",CircleMinus:"โ",ominus:"โ",CirclePlus:"โ",oplus:"โ",CircleTimes:"โ",otimes:"โ",ClockwiseContourIntegral:"โฒ",cwconint:"โฒ",CloseCurlyDoubleQuote:"โ",rdquo:"โ",rdquor:"โ",CloseCurlyQuote:"โ",rsquo:"โ",rsquor:"โ",Colon:"โท",Proportion:"โท",Colone:"โฉด",Congruent:"โก",equiv:"โก",Conint:"โฏ",DoubleContourIntegral:"โฏ",ContourIntegral:"โฎ",conint:"โฎ",oint:"โฎ",Copf:"โ",complexes:"โ",Coproduct:"โ",coprod:"โ",CounterClockwiseContourIntegral:"โณ",awconint:"โณ",Cross:"โจฏ",Cscr:"๐",Cup:"โ",CupCap:"โ",asympeq:"โ",DDotrahd:"โค",DJcy:"ะ",DScy:"ะ
",DZcy:"ะ",Dagger:"โก",ddagger:"โก",Darr:"โก",Dashv:"โซค",DoubleLeftTee:"โซค",Dcaron:"ฤ",Dcy:"ะ",Del:"โ",nabla:"โ",Delta:"ฮ",Dfr:"๐",DiacriticalAcute:"ยด",acute:"ยด",DiacriticalDot:"ห",dot:"ห",DiacriticalDoubleAcute:"ห",dblac:"ห",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"ห",tilde:"ห",Diamond:"โ",diam:"โ",diamond:"โ",DifferentialD:"โ
",dd:"โ
",Dopf:"๐ป",Dot:"ยจ",DoubleDot:"ยจ",die:"ยจ",uml:"ยจ",DotDot:"โ",DotEqual:"โ",doteq:"โ",esdot:"โ",DoubleDownArrow:"โ",Downarrow:"โ",dArr:"โ",DoubleLeftArrow:"โ",Leftarrow:"โ",lArr:"โ",DoubleLeftRightArrow:"โ",Leftrightarrow:"โ",hArr:"โ",iff:"โ",DoubleLongLeftArrow:"โธ",Longleftarrow:"โธ",xlArr:"โธ",DoubleLongLeftRightArrow:"โบ",Longleftrightarrow:"โบ",xhArr:"โบ",DoubleLongRightArrow:"โน",Longrightarrow:"โน",xrArr:"โน",DoubleRightArrow:"โ",Implies:"โ",Rightarrow:"โ",rArr:"โ",DoubleRightTee:"โจ",vDash:"โจ",DoubleUpArrow:"โ",Uparrow:"โ",uArr:"โ",DoubleUpDownArrow:"โ",Updownarrow:"โ",vArr:"โ",DoubleVerticalBar:"โฅ",par:"โฅ",parallel:"โฅ",shortparallel:"โฅ",spar:"โฅ",DownArrow:"โ",ShortDownArrow:"โ",darr:"โ",downarrow:"โ",DownArrowBar:"โค",DownArrowUpArrow:"โต",duarr:"โต",DownBreve:"ฬ",DownLeftRightVector:"โฅ",DownLeftTeeVector:"โฅ",DownLeftVector:"โฝ",leftharpoondown:"โฝ",lhard:"โฝ",DownLeftVectorBar:"โฅ",DownRightTeeVector:"โฅ",DownRightVector:"โ",rhard:"โ",rightharpoondown:"โ",DownRightVectorBar:"โฅ",DownTee:"โค",top:"โค",DownTeeArrow:"โง",mapstodown:"โง",Dscr:"๐",Dstrok:"ฤ",ENG:"ล",ETH:"ร",Eacute:"ร",Ecaron:"ฤ",Ecirc:"ร",Ecy:"ะญ",Edot:"ฤ",Efr:"๐",Egrave:"ร",Element:"โ",in:"โ",isin:"โ",isinv:"โ",Emacr:"ฤ",EmptySmallSquare:"โป",EmptyVerySmallSquare:"โซ",Eogon:"ฤ",Eopf:"๐ผ",Epsilon:"ฮ",Equal:"โฉต",EqualTilde:"โ",eqsim:"โ",esim:"โ",Equilibrium:"โ",rightleftharpoons:"โ",rlhar:"โ",Escr:"โฐ",expectation:"โฐ",Esim:"โฉณ",Eta:"ฮ",Euml:"ร",Exists:"โ",exist:"โ",ExponentialE:"โ
",ee:"โ
",exponentiale:"โ
",Fcy:"ะค",Ffr:"๐",FilledSmallSquare:"โผ",FilledVerySmallSquare:"โช",blacksquare:"โช",squarf:"โช",squf:"โช",Fopf:"๐ฝ",ForAll:"โ",forall:"โ",Fouriertrf:"โฑ",Fscr:"โฑ",GJcy:"ะ",GT:">",gt:">",Gamma:"ฮ",Gammad:"ฯ",Gbreve:"ฤ",Gcedil:"ฤข",Gcirc:"ฤ",Gcy:"ะ",Gdot:"ฤ ",Gfr:"๐",Gg:"โ",ggg:"โ",Gopf:"๐พ",GreaterEqual:"โฅ",ge:"โฅ",geq:"โฅ",GreaterEqualLess:"โ",gel:"โ",gtreqless:"โ",GreaterFullEqual:"โง",gE:"โง",geqq:"โง",GreaterGreater:"โชข",GreaterLess:"โท",gl:"โท",gtrless:"โท",GreaterSlantEqual:"โฉพ",geqslant:"โฉพ",ges:"โฉพ",GreaterTilde:"โณ",gsim:"โณ",gtrsim:"โณ",Gscr:"๐ข",Gt:"โซ",NestedGreaterGreater:"โซ",gg:"โซ",HARDcy:"ะช",Hacek:"ห",caron:"ห",Hat:"^",Hcirc:"ฤค",Hfr:"โ",Poincareplane:"โ",HilbertSpace:"โ",Hscr:"โ",hamilt:"โ",Hopf:"โ",quaternions:"โ",HorizontalLine:"โ",boxh:"โ",Hstrok:"ฤฆ",HumpEqual:"โ",bumpe:"โ",bumpeq:"โ",IEcy:"ะ",IJlig:"ฤฒ",IOcy:"ะ",Iacute:"ร",Icirc:"ร",Icy:"ะ",Idot:"ฤฐ",Ifr:"โ",Im:"โ",image:"โ",imagpart:"โ",Igrave:"ร",Imacr:"ฤช",ImaginaryI:"โ
",ii:"โ
",Int:"โฌ",Integral:"โซ",int:"โซ",Intersection:"โ",bigcap:"โ",xcap:"โ",InvisibleComma:"โฃ",ic:"โฃ",InvisibleTimes:"โข",it:"โข",Iogon:"ฤฎ",Iopf:"๐",Iota:"ฮ",Iscr:"โ",imagline:"โ",Itilde:"ฤจ",Iukcy:"ะ",Iuml:"ร",Jcirc:"ฤด",Jcy:"ะ",Jfr:"๐",Jopf:"๐",Jscr:"๐ฅ",Jsercy:"ะ",Jukcy:"ะ",KHcy:"ะฅ",KJcy:"ะ",Kappa:"ฮ",Kcedil:"ฤถ",Kcy:"ะ",Kfr:"๐",Kopf:"๐",Kscr:"๐ฆ",LJcy:"ะ",LT:"<",lt:"<",Lacute:"ฤน",Lambda:"ฮ",Lang:"โช",Laplacetrf:"โ",Lscr:"โ",lagran:"โ",Larr:"โ",twoheadleftarrow:"โ",Lcaron:"ฤฝ",Lcedil:"ฤป",Lcy:"ะ",LeftAngleBracket:"โจ",lang:"โจ",langle:"โจ",LeftArrow:"โ",ShortLeftArrow:"โ",larr:"โ",leftarrow:"โ",slarr:"โ",LeftArrowBar:"โค",larrb:"โค",LeftArrowRightArrow:"โ",leftrightarrows:"โ",lrarr:"โ",LeftCeiling:"โ",lceil:"โ",LeftDoubleBracket:"โฆ",lobrk:"โฆ",LeftDownTeeVector:"โฅก",LeftDownVector:"โ",dharl:"โ",downharpoonleft:"โ",LeftDownVectorBar:"โฅ",LeftFloor:"โ",lfloor:"โ",LeftRightArrow:"โ",harr:"โ",leftrightarrow:"โ",LeftRightVector:"โฅ",LeftTee:"โฃ",dashv:"โฃ",LeftTeeArrow:"โค",mapstoleft:"โค",LeftTeeVector:"โฅ",LeftTriangle:"โฒ",vartriangleleft:"โฒ",vltri:"โฒ",LeftTriangleBar:"โง",LeftTriangleEqual:"โด",ltrie:"โด",trianglelefteq:"โด",LeftUpDownVector:"โฅ",LeftUpTeeVector:"โฅ ",LeftUpVector:"โฟ",uharl:"โฟ",upharpoonleft:"โฟ",LeftUpVectorBar:"โฅ",LeftVector:"โผ",leftharpoonup:"โผ",lharu:"โผ",LeftVectorBar:"โฅ",LessEqualGreater:"โ",leg:"โ",lesseqgtr:"โ",LessFullEqual:"โฆ",lE:"โฆ",leqq:"โฆ",LessGreater:"โถ",lessgtr:"โถ",lg:"โถ",LessLess:"โชก",LessSlantEqual:"โฉฝ",leqslant:"โฉฝ",les:"โฉฝ",LessTilde:"โฒ",lesssim:"โฒ",lsim:"โฒ",Lfr:"๐",Ll:"โ",Lleftarrow:"โ",lAarr:"โ",Lmidot:"ฤฟ",LongLeftArrow:"โต",longleftarrow:"โต",xlarr:"โต",LongLeftRightArrow:"โท",longleftrightarrow:"โท",xharr:"โท",LongRightArrow:"โถ",longrightarrow:"โถ",xrarr:"โถ",Lopf:"๐",LowerLeftArrow:"โ",swarr:"โ",swarrow:"โ",LowerRightArrow:"โ",searr:"โ",searrow:"โ",Lsh:"โฐ",lsh:"โฐ",Lstrok:"ล",Lt:"โช",NestedLessLess:"โช",ll:"โช",Map:"โค
",Mcy:"ะ",MediumSpace:"โ",Mellintrf:"โณ",Mscr:"โณ",phmmat:"โณ",Mfr:"๐",MinusPlus:"โ",mnplus:"โ",mp:"โ",Mopf:"๐",Mu:"ฮ",NJcy:"ะ",Nacute:"ล",Ncaron:"ล",Ncedil:"ล
",Ncy:"ะ",NegativeMediumSpace:"โ",NegativeThickSpace:"โ",NegativeThinSpace:"โ",NegativeVeryThinSpace:"โ",ZeroWidthSpace:"โ",NewLine:`
|
|
201
|
-
`,Nfr:"๐",NoBreak:"โ ",NonBreakingSpace:"ย ",nbsp:"ย ",Nopf:"โ",naturals:"โ",Not:"โซฌ",NotCongruent:"โข",nequiv:"โข",NotCupCap:"โญ",NotDoubleVerticalBar:"โฆ",npar:"โฆ",nparallel:"โฆ",nshortparallel:"โฆ",nspar:"โฆ",NotElement:"โ",notin:"โ",notinva:"โ",NotEqual:"โ ",ne:"โ ",NotEqualTilde:"โฬธ",nesim:"โฬธ",NotExists:"โ",nexist:"โ",nexists:"โ",NotGreater:"โฏ",ngt:"โฏ",ngtr:"โฏ",NotGreaterEqual:"โฑ",nge:"โฑ",ngeq:"โฑ",NotGreaterFullEqual:"โงฬธ",ngE:"โงฬธ",ngeqq:"โงฬธ",NotGreaterGreater:"โซฬธ",nGtv:"โซฬธ",NotGreaterLess:"โน",ntgl:"โน",NotGreaterSlantEqual:"โฉพฬธ",ngeqslant:"โฉพฬธ",nges:"โฉพฬธ",NotGreaterTilde:"โต",ngsim:"โต",NotHumpDownHump:"โฬธ",nbump:"โฬธ",NotHumpEqual:"โฬธ",nbumpe:"โฬธ",NotLeftTriangle:"โช",nltri:"โช",ntriangleleft:"โช",NotLeftTriangleBar:"โงฬธ",NotLeftTriangleEqual:"โฌ",nltrie:"โฌ",ntrianglelefteq:"โฌ",NotLess:"โฎ",nless:"โฎ",nlt:"โฎ",NotLessEqual:"โฐ",nle:"โฐ",nleq:"โฐ",NotLessGreater:"โธ",ntlg:"โธ",NotLessLess:"โชฬธ",nLtv:"โชฬธ",NotLessSlantEqual:"โฉฝฬธ",nleqslant:"โฉฝฬธ",nles:"โฉฝฬธ",NotLessTilde:"โด",nlsim:"โด",NotNestedGreaterGreater:"โชขฬธ",NotNestedLessLess:"โชกฬธ",NotPrecedes:"โ",npr:"โ",nprec:"โ",NotPrecedesEqual:"โชฏฬธ",npre:"โชฏฬธ",npreceq:"โชฏฬธ",NotPrecedesSlantEqual:"โ ",nprcue:"โ ",NotReverseElement:"โ",notni:"โ",notniva:"โ",NotRightTriangle:"โซ",nrtri:"โซ",ntriangleright:"โซ",NotRightTriangleBar:"โงฬธ",NotRightTriangleEqual:"โญ",nrtrie:"โญ",ntrianglerighteq:"โญ",NotSquareSubset:"โฬธ",NotSquareSubsetEqual:"โข",nsqsube:"โข",NotSquareSuperset:"โฬธ",NotSquareSupersetEqual:"โฃ",nsqsupe:"โฃ",NotSubset:"โโ",nsubset:"โโ",vnsub:"โโ",NotSubsetEqual:"โ",nsube:"โ",nsubseteq:"โ",NotSucceeds:"โ",nsc:"โ",nsucc:"โ",NotSucceedsEqual:"โชฐฬธ",nsce:"โชฐฬธ",nsucceq:"โชฐฬธ",NotSucceedsSlantEqual:"โก",nsccue:"โก",NotSucceedsTilde:"โฟฬธ",NotSuperset:"โโ",nsupset:"โโ",vnsup:"โโ",NotSupersetEqual:"โ",nsupe:"โ",nsupseteq:"โ",NotTilde:"โ",nsim:"โ",NotTildeEqual:"โ",nsime:"โ",nsimeq:"โ",NotTildeFullEqual:"โ",ncong:"โ",NotTildeTilde:"โ",nap:"โ",napprox:"โ",NotVerticalBar:"โค",nmid:"โค",nshortmid:"โค",nsmid:"โค",Nscr:"๐ฉ",Ntilde:"ร",Nu:"ฮ",OElig:"ล",Oacute:"ร",Ocirc:"ร",Ocy:"ะ",Odblac:"ล",Ofr:"๐",Ograve:"ร",Omacr:"ล",Omega:"ฮฉ",ohm:"ฮฉ",Omicron:"ฮ",Oopf:"๐",OpenCurlyDoubleQuote:"โ",ldquo:"โ",OpenCurlyQuote:"โ",lsquo:"โ",Or:"โฉ",Oscr:"๐ช",Oslash:"ร",Otilde:"ร",Otimes:"โจท",Ouml:"ร",OverBar:"โพ",oline:"โพ",OverBrace:"โ",OverBracket:"โด",tbrk:"โด",OverParenthesis:"โ",PartialD:"โ",part:"โ",Pcy:"ะ",Pfr:"๐",Phi:"ฮฆ",Pi:"ฮ ",PlusMinus:"ยฑ",plusmn:"ยฑ",pm:"ยฑ",Popf:"โ",primes:"โ",Pr:"โชป",Precedes:"โบ",pr:"โบ",prec:"โบ",PrecedesEqual:"โชฏ",pre:"โชฏ",preceq:"โชฏ",PrecedesSlantEqual:"โผ",prcue:"โผ",preccurlyeq:"โผ",PrecedesTilde:"โพ",precsim:"โพ",prsim:"โพ",Prime:"โณ",Product:"โ",prod:"โ",Proportional:"โ",prop:"โ",propto:"โ",varpropto:"โ",vprop:"โ",Pscr:"๐ซ",Psi:"ฮจ",QUOT:'"',quot:'"',Qfr:"๐",Qopf:"โ",rationals:"โ",Qscr:"๐ฌ",RBarr:"โค",drbkarow:"โค",REG:"ยฎ",circledR:"ยฎ",reg:"ยฎ",Racute:"ล",Rang:"โซ",Rarr:"โ ",twoheadrightarrow:"โ ",Rarrtl:"โค",Rcaron:"ล",Rcedil:"ล",Rcy:"ะ ",Re:"โ",Rfr:"โ",real:"โ",realpart:"โ",ReverseElement:"โ",SuchThat:"โ",ni:"โ",niv:"โ",ReverseEquilibrium:"โ",leftrightharpoons:"โ",lrhar:"โ",ReverseUpEquilibrium:"โฅฏ",duhar:"โฅฏ",Rho:"ฮก",RightAngleBracket:"โฉ",rang:"โฉ",rangle:"โฉ",RightArrow:"โ",ShortRightArrow:"โ",rarr:"โ",rightarrow:"โ",srarr:"โ",RightArrowBar:"โฅ",rarrb:"โฅ",RightArrowLeftArrow:"โ",rightleftarrows:"โ",rlarr:"โ",RightCeiling:"โ",rceil:"โ",RightDoubleBracket:"โง",robrk:"โง",RightDownTeeVector:"โฅ",RightDownVector:"โ",dharr:"โ",downharpoonright:"โ",RightDownVectorBar:"โฅ",RightFloor:"โ",rfloor:"โ",RightTee:"โข",vdash:"โข",RightTeeArrow:"โฆ",map:"โฆ",mapsto:"โฆ",RightTeeVector:"โฅ",RightTriangle:"โณ",vartriangleright:"โณ",vrtri:"โณ",RightTriangleBar:"โง",RightTriangleEqual:"โต",rtrie:"โต",trianglerighteq:"โต",RightUpDownVector:"โฅ",RightUpTeeVector:"โฅ",RightUpVector:"โพ",uharr:"โพ",upharpoonright:"โพ",RightUpVectorBar:"โฅ",RightVector:"โ",rharu:"โ",rightharpoonup:"โ",RightVectorBar:"โฅ",Ropf:"โ",reals:"โ",RoundImplies:"โฅฐ",Rrightarrow:"โ",rAarr:"โ",Rscr:"โ",realine:"โ",Rsh:"โฑ",rsh:"โฑ",RuleDelayed:"โงด",SHCHcy:"ะฉ",SHcy:"ะจ",SOFTcy:"ะฌ",Sacute:"ล",Sc:"โชผ",Scaron:"ล ",Scedil:"ล",Scirc:"ล",Scy:"ะก",Sfr:"๐",ShortUpArrow:"โ",UpArrow:"โ",uarr:"โ",uparrow:"โ",Sigma:"ฮฃ",SmallCircle:"โ",compfn:"โ",Sopf:"๐",Sqrt:"โ",radic:"โ",Square:"โก",squ:"โก",square:"โก",SquareIntersection:"โ",sqcap:"โ",SquareSubset:"โ",sqsub:"โ",sqsubset:"โ",SquareSubsetEqual:"โ",sqsube:"โ",sqsubseteq:"โ",SquareSuperset:"โ",sqsup:"โ",sqsupset:"โ",SquareSupersetEqual:"โ",sqsupe:"โ",sqsupseteq:"โ",SquareUnion:"โ",sqcup:"โ",Sscr:"๐ฎ",Star:"โ",sstarf:"โ",Sub:"โ",Subset:"โ",SubsetEqual:"โ",sube:"โ",subseteq:"โ",Succeeds:"โป",sc:"โป",succ:"โป",SucceedsEqual:"โชฐ",sce:"โชฐ",succeq:"โชฐ",SucceedsSlantEqual:"โฝ",sccue:"โฝ",succcurlyeq:"โฝ",SucceedsTilde:"โฟ",scsim:"โฟ",succsim:"โฟ",Sum:"โ",sum:"โ",Sup:"โ",Supset:"โ",Superset:"โ",sup:"โ",supset:"โ",SupersetEqual:"โ",supe:"โ",supseteq:"โ",THORN:"ร",TRADE:"โข",trade:"โข",TSHcy:"ะ",TScy:"ะฆ",Tab:" ",Tau:"ฮค",Tcaron:"ลค",Tcedil:"ลข",Tcy:"ะข",Tfr:"๐",Therefore:"โด",there4:"โด",therefore:"โด",Theta:"ฮ",ThickSpace:"โโ",ThinSpace:"โ",thinsp:"โ",Tilde:"โผ",sim:"โผ",thicksim:"โผ",thksim:"โผ",TildeEqual:"โ",sime:"โ",simeq:"โ",TildeFullEqual:"โ
",cong:"โ
",TildeTilde:"โ",ap:"โ",approx:"โ",asymp:"โ",thickapprox:"โ",thkap:"โ",Topf:"๐",TripleDot:"โ",tdot:"โ",Tscr:"๐ฏ",Tstrok:"ลฆ",Uacute:"ร",Uarr:"โ",Uarrocir:"โฅ",Ubrcy:"ะ",Ubreve:"ลฌ",Ucirc:"ร",Ucy:"ะฃ",Udblac:"ลฐ",Ufr:"๐",Ugrave:"ร",Umacr:"ลช",UnderBar:"_",lowbar:"_",UnderBrace:"โ",UnderBracket:"โต",bbrk:"โต",UnderParenthesis:"โ",Union:"โ",bigcup:"โ",xcup:"โ",UnionPlus:"โ",uplus:"โ",Uogon:"ลฒ",Uopf:"๐",UpArrowBar:"โค",UpArrowDownArrow:"โ
",udarr:"โ
",UpDownArrow:"โ",updownarrow:"โ",varr:"โ",UpEquilibrium:"โฅฎ",udhar:"โฅฎ",UpTee:"โฅ",bot:"โฅ",bottom:"โฅ",perp:"โฅ",UpTeeArrow:"โฅ",mapstoup:"โฅ",UpperLeftArrow:"โ",nwarr:"โ",nwarrow:"โ",UpperRightArrow:"โ",nearr:"โ",nearrow:"โ",Upsi:"ฯ",upsih:"ฯ",Upsilon:"ฮฅ",Uring:"ลฎ",Uscr:"๐ฐ",Utilde:"ลจ",Uuml:"ร",VDash:"โซ",Vbar:"โซซ",Vcy:"ะ",Vdash:"โฉ",Vdashl:"โซฆ",Vee:"โ",bigvee:"โ",xvee:"โ",Verbar:"โ",Vert:"โ",VerticalBar:"โฃ",mid:"โฃ",shortmid:"โฃ",smid:"โฃ",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"โ",VerticalTilde:"โ",wr:"โ",wreath:"โ",VeryThinSpace:"โ",hairsp:"โ",Vfr:"๐",Vopf:"๐",Vscr:"๐ฑ",Vvdash:"โช",Wcirc:"ลด",Wedge:"โ",bigwedge:"โ",xwedge:"โ",Wfr:"๐",Wopf:"๐",Wscr:"๐ฒ",Xfr:"๐",Xi:"ฮ",Xopf:"๐",Xscr:"๐ณ",YAcy:"ะฏ",YIcy:"ะ",YUcy:"ะฎ",Yacute:"ร",Ycirc:"ลถ",Ycy:"ะซ",Yfr:"๐",Yopf:"๐",Yscr:"๐ด",Yuml:"ลธ",ZHcy:"ะ",Zacute:"ลน",Zcaron:"ลฝ",Zcy:"ะ",Zdot:"ลป",Zeta:"ฮ",Zfr:"โจ",zeetrf:"โจ",Zopf:"โค",integers:"โค",Zscr:"๐ต",aacute:"รก",abreve:"ฤ",ac:"โพ",mstpos:"โพ",acE:"โพฬณ",acd:"โฟ",acirc:"รข",acy:"ะฐ",aelig:"รฆ",afr:"๐",agrave:"ร ",alefsym:"โต",aleph:"โต",alpha:"ฮฑ",amacr:"ฤ",amalg:"โจฟ",and:"โง",wedge:"โง",andand:"โฉ",andd:"โฉ",andslope:"โฉ",andv:"โฉ",ang:"โ ",angle:"โ ",ange:"โฆค",angmsd:"โก",measuredangle:"โก",angmsdaa:"โฆจ",angmsdab:"โฆฉ",angmsdac:"โฆช",angmsdad:"โฆซ",angmsdae:"โฆฌ",angmsdaf:"โฆญ",angmsdag:"โฆฎ",angmsdah:"โฆฏ",angrt:"โ",angrtvb:"โพ",angrtvbd:"โฆ",angsph:"โข",angzarr:"โผ",aogon:"ฤ
",aopf:"๐",apE:"โฉฐ",apacir:"โฉฏ",ape:"โ",approxeq:"โ",apid:"โ",apos:"'",aring:"รฅ",ascr:"๐ถ",ast:"*",midast:"*",atilde:"รฃ",auml:"รค",awint:"โจ",bNot:"โซญ",backcong:"โ",bcong:"โ",backepsilon:"ฯถ",bepsi:"ฯถ",backprime:"โต",bprime:"โต",backsim:"โฝ",bsim:"โฝ",backsimeq:"โ",bsime:"โ",barvee:"โฝ",barwed:"โ
",barwedge:"โ
",bbrktbrk:"โถ",bcy:"ะฑ",bdquo:"โ",ldquor:"โ",bemptyv:"โฆฐ",beta:"ฮฒ",beth:"โถ",between:"โฌ",twixt:"โฌ",bfr:"๐",bigcirc:"โฏ",xcirc:"โฏ",bigodot:"โจ",xodot:"โจ",bigoplus:"โจ",xoplus:"โจ",bigotimes:"โจ",xotime:"โจ",bigsqcup:"โจ",xsqcup:"โจ",bigstar:"โ
",starf:"โ
",bigtriangledown:"โฝ",xdtri:"โฝ",bigtriangleup:"โณ",xutri:"โณ",biguplus:"โจ",xuplus:"โจ",bkarow:"โค",rbarr:"โค",blacklozenge:"โงซ",lozf:"โงซ",blacktriangle:"โด",utrif:"โด",blacktriangledown:"โพ",dtrif:"โพ",blacktriangleleft:"โ",ltrif:"โ",blacktriangleright:"โธ",rtrif:"โธ",blank:"โฃ",blk12:"โ",blk14:"โ",blk34:"โ",block:"โ",bne:"=โฅ",bnequiv:"โกโฅ",bnot:"โ",bopf:"๐",bowtie:"โ",boxDL:"โ",boxDR:"โ",boxDl:"โ",boxDr:"โ",boxH:"โ",boxHD:"โฆ",boxHU:"โฉ",boxHd:"โค",boxHu:"โง",boxUL:"โ",boxUR:"โ",boxUl:"โ",boxUr:"โ",boxV:"โ",boxVH:"โฌ",boxVL:"โฃ",boxVR:"โ ",boxVh:"โซ",boxVl:"โข",boxVr:"โ",boxbox:"โง",boxdL:"โ",boxdR:"โ",boxdl:"โ",boxdr:"โ",boxhD:"โฅ",boxhU:"โจ",boxhd:"โฌ",boxhu:"โด",boxminus:"โ",minusb:"โ",boxplus:"โ",plusb:"โ",boxtimes:"โ ",timesb:"โ ",boxuL:"โ",boxuR:"โ",boxul:"โ",boxur:"โ",boxv:"โ",boxvH:"โช",boxvL:"โก",boxvR:"โ",boxvh:"โผ",boxvl:"โค",boxvr:"โ",brvbar:"ยฆ",bscr:"๐ท",bsemi:"โ",bsol:"\\",bsolb:"โง
",bsolhsub:"โ",bull:"โข",bullet:"โข",bumpE:"โชฎ",cacute:"ฤ",cap:"โฉ",capand:"โฉ",capbrcup:"โฉ",capcap:"โฉ",capcup:"โฉ",capdot:"โฉ",caps:"โฉ๏ธ",caret:"โ",ccaps:"โฉ",ccaron:"ฤ",ccedil:"รง",ccirc:"ฤ",ccups:"โฉ",ccupssm:"โฉ",cdot:"ฤ",cemptyv:"โฆฒ",cent:"ยข",cfr:"๐ ",chcy:"ั",check:"โ",checkmark:"โ",chi:"ฯ",cir:"โ",cirE:"โง",circ:"ห",circeq:"โ",cire:"โ",circlearrowleft:"โบ",olarr:"โบ",circlearrowright:"โป",orarr:"โป",circledS:"โ",oS:"โ",circledast:"โ",oast:"โ",circledcirc:"โ",ocir:"โ",circleddash:"โ",odash:"โ",cirfnint:"โจ",cirmid:"โซฏ",cirscir:"โง",clubs:"โฃ",clubsuit:"โฃ",colon:":",comma:",",commat:"@",comp:"โ",complement:"โ",congdot:"โฉญ",copf:"๐",copysr:"โ",crarr:"โต",cross:"โ",cscr:"๐ธ",csub:"โซ",csube:"โซ",csup:"โซ",csupe:"โซ",ctdot:"โฏ",cudarrl:"โคธ",cudarrr:"โคต",cuepr:"โ",curlyeqprec:"โ",cuesc:"โ",curlyeqsucc:"โ",cularr:"โถ",curvearrowleft:"โถ",cularrp:"โคฝ",cup:"โช",cupbrcap:"โฉ",cupcap:"โฉ",cupcup:"โฉ",cupdot:"โ",cupor:"โฉ
",cups:"โช๏ธ",curarr:"โท",curvearrowright:"โท",curarrm:"โคผ",curlyvee:"โ",cuvee:"โ",curlywedge:"โ",cuwed:"โ",curren:"ยค",cwint:"โฑ",cylcty:"โญ",dHar:"โฅฅ",dagger:"โ ",daleth:"โธ",dash:"โ",hyphen:"โ",dbkarow:"โค",rBarr:"โค",dcaron:"ฤ",dcy:"ะด",ddarr:"โ",downdownarrows:"โ",ddotseq:"โฉท",eDDot:"โฉท",deg:"ยฐ",delta:"ฮด",demptyv:"โฆฑ",dfisht:"โฅฟ",dfr:"๐ก",diamondsuit:"โฆ",diams:"โฆ",digamma:"ฯ",gammad:"ฯ",disin:"โฒ",div:"รท",divide:"รท",divideontimes:"โ",divonx:"โ",djcy:"ั",dlcorn:"โ",llcorner:"โ",dlcrop:"โ",dollar:"$",dopf:"๐",doteqdot:"โ",eDot:"โ",dotminus:"โธ",minusd:"โธ",dotplus:"โ",plusdo:"โ",dotsquare:"โก",sdotb:"โก",drcorn:"โ",lrcorner:"โ",drcrop:"โ",dscr:"๐น",dscy:"ั",dsol:"โงถ",dstrok:"ฤ",dtdot:"โฑ",dtri:"โฟ",triangledown:"โฟ",dwangle:"โฆฆ",dzcy:"ั",dzigrarr:"โฟ",eacute:"รฉ",easter:"โฉฎ",ecaron:"ฤ",ecir:"โ",eqcirc:"โ",ecirc:"รช",ecolon:"โ",eqcolon:"โ",ecy:"ั",edot:"ฤ",efDot:"โ",fallingdotseq:"โ",efr:"๐ข",eg:"โช",egrave:"รจ",egs:"โช",eqslantgtr:"โช",egsdot:"โช",el:"โช",elinters:"โง",ell:"โ",els:"โช",eqslantless:"โช",elsdot:"โช",emacr:"ฤ",empty:"โ
",emptyset:"โ
",emptyv:"โ
",varnothing:"โ
",emsp13:"โ",emsp14:"โ
",emsp:"โ",eng:"ล",ensp:"โ",eogon:"ฤ",eopf:"๐",epar:"โ",eparsl:"โงฃ",eplus:"โฉฑ",epsi:"ฮต",epsilon:"ฮต",epsiv:"ฯต",straightepsilon:"ฯต",varepsilon:"ฯต",equals:"=",equest:"โ",questeq:"โ",equivDD:"โฉธ",eqvparsl:"โงฅ",erDot:"โ",risingdotseq:"โ",erarr:"โฅฑ",escr:"โฏ",eta:"ฮท",eth:"รฐ",euml:"รซ",euro:"โฌ",excl:"!",fcy:"ั",female:"โ",ffilig:"๏ฌ",fflig:"๏ฌ",ffllig:"๏ฌ",ffr:"๐ฃ",filig:"๏ฌ",fjlig:"fj",flat:"โญ",fllig:"๏ฌ",fltns:"โฑ",fnof:"ฦ",fopf:"๐",fork:"โ",pitchfork:"โ",forkv:"โซ",fpartint:"โจ",frac12:"ยฝ",half:"ยฝ",frac13:"โ
",frac14:"ยผ",frac15:"โ
",frac16:"โ
",frac18:"โ
",frac23:"โ
",frac25:"โ
",frac34:"ยพ",frac35:"โ
",frac38:"โ
",frac45:"โ
",frac56:"โ
",frac58:"โ
",frac78:"โ
",frasl:"โ",frown:"โข",sfrown:"โข",fscr:"๐ป",gEl:"โช",gtreqqless:"โช",gacute:"วต",gamma:"ฮณ",gap:"โช",gtrapprox:"โช",gbreve:"ฤ",gcirc:"ฤ",gcy:"ะณ",gdot:"ฤก",gescc:"โชฉ",gesdot:"โช",gesdoto:"โช",gesdotol:"โช",gesl:"โ๏ธ",gesles:"โช",gfr:"๐ค",gimel:"โท",gjcy:"ั",glE:"โช",gla:"โชฅ",glj:"โชค",gnE:"โฉ",gneqq:"โฉ",gnap:"โช",gnapprox:"โช",gne:"โช",gneq:"โช",gnsim:"โง",gopf:"๐",gscr:"โ",gsime:"โช",gsiml:"โช",gtcc:"โชง",gtcir:"โฉบ",gtdot:"โ",gtrdot:"โ",gtlPar:"โฆ",gtquest:"โฉผ",gtrarr:"โฅธ",gvertneqq:"โฉ๏ธ",gvnE:"โฉ๏ธ",hardcy:"ั",harrcir:"โฅ",harrw:"โญ",leftrightsquigarrow:"โญ",hbar:"โ",hslash:"โ",planck:"โ",plankv:"โ",hcirc:"ฤฅ",hearts:"โฅ",heartsuit:"โฅ",hellip:"โฆ",mldr:"โฆ",hercon:"โน",hfr:"๐ฅ",hksearow:"โคฅ",searhk:"โคฅ",hkswarow:"โคฆ",swarhk:"โคฆ",hoarr:"โฟ",homtht:"โป",hookleftarrow:"โฉ",larrhk:"โฉ",hookrightarrow:"โช",rarrhk:"โช",hopf:"๐",horbar:"โ",hscr:"๐ฝ",hstrok:"ฤง",hybull:"โ",iacute:"รญ",icirc:"รฎ",icy:"ะธ",iecy:"ะต",iexcl:"ยก",ifr:"๐ฆ",igrave:"รฌ",iiiint:"โจ",qint:"โจ",iiint:"โญ",tint:"โญ",iinfin:"โง",iiota:"โฉ",ijlig:"ฤณ",imacr:"ฤซ",imath:"ฤฑ",inodot:"ฤฑ",imof:"โท",imped:"ฦต",incare:"โ
",infin:"โ",infintie:"โง",intcal:"โบ",intercal:"โบ",intlarhk:"โจ",intprod:"โจผ",iprod:"โจผ",iocy:"ั",iogon:"ฤฏ",iopf:"๐",iota:"ฮน",iquest:"ยฟ",iscr:"๐พ",isinE:"โน",isindot:"โต",isins:"โด",isinsv:"โณ",itilde:"ฤฉ",iukcy:"ั",iuml:"รฏ",jcirc:"ฤต",jcy:"ะน",jfr:"๐ง",jmath:"ศท",jopf:"๐",jscr:"๐ฟ",jsercy:"ั",jukcy:"ั",kappa:"ฮบ",kappav:"ฯฐ",varkappa:"ฯฐ",kcedil:"ฤท",kcy:"ะบ",kfr:"๐จ",kgreen:"ฤธ",khcy:"ั
",kjcy:"ั",kopf:"๐",kscr:"๐",lAtail:"โค",lBarr:"โค",lEg:"โช",lesseqqgtr:"โช",lHar:"โฅข",lacute:"ฤบ",laemptyv:"โฆด",lambda:"ฮป",langd:"โฆ",lap:"โช
",lessapprox:"โช
",laquo:"ยซ",larrbfs:"โค",larrfs:"โค",larrlp:"โซ",looparrowleft:"โซ",larrpl:"โคน",larrsim:"โฅณ",larrtl:"โข",leftarrowtail:"โข",lat:"โชซ",latail:"โค",late:"โชญ",lates:"โชญ๏ธ",lbarr:"โค",lbbrk:"โฒ",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"โฆ",lbrksld:"โฆ",lbrkslu:"โฆ",lcaron:"ฤพ",lcedil:"ฤผ",lcy:"ะป",ldca:"โคถ",ldrdhar:"โฅง",ldrushar:"โฅ",ldsh:"โฒ",le:"โค",leq:"โค",leftleftarrows:"โ",llarr:"โ",leftthreetimes:"โ",lthree:"โ",lescc:"โชจ",lesdot:"โฉฟ",lesdoto:"โช",lesdotor:"โช",lesg:"โ๏ธ",lesges:"โช",lessdot:"โ",ltdot:"โ",lfisht:"โฅผ",lfr:"๐ฉ",lgE:"โช",lharul:"โฅช",lhblk:"โ",ljcy:"ั",llhard:"โฅซ",lltri:"โบ",lmidot:"ล",lmoust:"โฐ",lmoustache:"โฐ",lnE:"โจ",lneqq:"โจ",lnap:"โช",lnapprox:"โช",lne:"โช",lneq:"โช",lnsim:"โฆ",loang:"โฌ",loarr:"โฝ",longmapsto:"โผ",xmap:"โผ",looparrowright:"โฌ",rarrlp:"โฌ",lopar:"โฆ
",lopf:"๐",loplus:"โจญ",lotimes:"โจด",lowast:"โ",loz:"โ",lozenge:"โ",lpar:"(",lparlt:"โฆ",lrhard:"โฅญ",lrm:"โ",lrtri:"โฟ",lsaquo:"โน",lscr:"๐",lsime:"โช",lsimg:"โช",lsquor:"โ",sbquo:"โ",lstrok:"ล",ltcc:"โชฆ",ltcir:"โฉน",ltimes:"โ",ltlarr:"โฅถ",ltquest:"โฉป",ltrPar:"โฆ",ltri:"โ",triangleleft:"โ",lurdshar:"โฅ",luruhar:"โฅฆ",lvertneqq:"โจ๏ธ",lvnE:"โจ๏ธ",mDDot:"โบ",macr:"ยฏ",strns:"ยฏ",male:"โ",malt:"โ ",maltese:"โ ",marker:"โฎ",mcomma:"โจฉ",mcy:"ะผ",mdash:"โ",mfr:"๐ช",mho:"โง",micro:"ยต",midcir:"โซฐ",minus:"โ",minusdu:"โจช",mlcp:"โซ",models:"โง",mopf:"๐",mscr:"๐",mu:"ฮผ",multimap:"โธ",mumap:"โธ",nGg:"โฬธ",nGt:"โซโ",nLeftarrow:"โ",nlArr:"โ",nLeftrightarrow:"โ",nhArr:"โ",nLl:"โฬธ",nLt:"โชโ",nRightarrow:"โ",nrArr:"โ",nVDash:"โฏ",nVdash:"โฎ",nacute:"ล",nang:"โ โ",napE:"โฉฐฬธ",napid:"โฬธ",napos:"ล",natur:"โฎ",natural:"โฎ",ncap:"โฉ",ncaron:"ล",ncedil:"ล",ncongdot:"โฉญฬธ",ncup:"โฉ",ncy:"ะฝ",ndash:"โ",neArr:"โ",nearhk:"โคค",nedot:"โฬธ",nesear:"โคจ",toea:"โคจ",nfr:"๐ซ",nharr:"โฎ",nleftrightarrow:"โฎ",nhpar:"โซฒ",nis:"โผ",nisd:"โบ",njcy:"ั",nlE:"โฆฬธ",nleqq:"โฆฬธ",nlarr:"โ",nleftarrow:"โ",nldr:"โฅ",nopf:"๐",not:"ยฌ",notinE:"โนฬธ",notindot:"โตฬธ",notinvb:"โท",notinvc:"โถ",notnivb:"โพ",notnivc:"โฝ",nparsl:"โซฝโฅ",npart:"โฬธ",npolint:"โจ",nrarr:"โ",nrightarrow:"โ",nrarrc:"โคณฬธ",nrarrw:"โฬธ",nscr:"๐",nsub:"โ",nsubE:"โซ
ฬธ",nsubseteqq:"โซ
ฬธ",nsup:"โ
",nsupE:"โซฬธ",nsupseteqq:"โซฬธ",ntilde:"รฑ",nu:"ฮฝ",num:"#",numero:"โ",numsp:"โ",nvDash:"โญ",nvHarr:"โค",nvap:"โโ",nvdash:"โฌ",nvge:"โฅโ",nvgt:">โ",nvinfin:"โง",nvlArr:"โค",nvle:"โคโ",nvlt:"<โ",nvltrie:"โดโ",nvrArr:"โค",nvrtrie:"โตโ",nvsim:"โผโ",nwArr:"โ",nwarhk:"โคฃ",nwnear:"โคง",oacute:"รณ",ocirc:"รด",ocy:"ะพ",odblac:"ล",odiv:"โจธ",odsold:"โฆผ",oelig:"ล",ofcir:"โฆฟ",ofr:"๐ฌ",ogon:"ห",ograve:"รฒ",ogt:"โง",ohbar:"โฆต",olcir:"โฆพ",olcross:"โฆป",olt:"โง",omacr:"ล",omega:"ฯ",omicron:"ฮฟ",omid:"โฆถ",oopf:"๐ ",opar:"โฆท",operp:"โฆน",or:"โจ",vee:"โจ",ord:"โฉ",order:"โด",orderof:"โด",oscr:"โด",ordf:"ยช",ordm:"ยบ",origof:"โถ",oror:"โฉ",orslope:"โฉ",orv:"โฉ",oslash:"รธ",osol:"โ",otilde:"รต",otimesas:"โจถ",ouml:"รถ",ovbar:"โฝ",para:"ยถ",parsim:"โซณ",parsl:"โซฝ",pcy:"ะฟ",percnt:"%",period:".",permil:"โฐ",pertenk:"โฑ",pfr:"๐ญ",phi:"ฯ",phiv:"ฯ",straightphi:"ฯ",varphi:"ฯ",phone:"โ",pi:"ฯ",piv:"ฯ",varpi:"ฯ",planckh:"โ",plus:"+",plusacir:"โจฃ",pluscir:"โจข",plusdu:"โจฅ",pluse:"โฉฒ",plussim:"โจฆ",plustwo:"โจง",pointint:"โจ",popf:"๐ก",pound:"ยฃ",prE:"โชณ",prap:"โชท",precapprox:"โชท",precnapprox:"โชน",prnap:"โชน",precneqq:"โชต",prnE:"โชต",precnsim:"โจ",prnsim:"โจ",prime:"โฒ",profalar:"โฎ",profline:"โ",profsurf:"โ",prurel:"โฐ",pscr:"๐
",psi:"ฯ",puncsp:"โ",qfr:"๐ฎ",qopf:"๐ข",qprime:"โ",qscr:"๐",quatint:"โจ",quest:"?",rAtail:"โค",rHar:"โฅค",race:"โฝฬฑ",racute:"ล",raemptyv:"โฆณ",rangd:"โฆ",range:"โฆฅ",raquo:"ยป",rarrap:"โฅต",rarrbfs:"โค ",rarrc:"โคณ",rarrfs:"โค",rarrpl:"โฅ
",rarrsim:"โฅด",rarrtl:"โฃ",rightarrowtail:"โฃ",rarrw:"โ",rightsquigarrow:"โ",ratail:"โค",ratio:"โถ",rbbrk:"โณ",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"โฆ",rbrksld:"โฆ",rbrkslu:"โฆ",rcaron:"ล",rcedil:"ล",rcy:"ั",rdca:"โคท",rdldhar:"โฅฉ",rdsh:"โณ",rect:"โญ",rfisht:"โฅฝ",rfr:"๐ฏ",rharul:"โฅฌ",rho:"ฯ",rhov:"ฯฑ",varrho:"ฯฑ",rightrightarrows:"โ",rrarr:"โ",rightthreetimes:"โ",rthree:"โ",ring:"ห",rlm:"โ",rmoust:"โฑ",rmoustache:"โฑ",rnmid:"โซฎ",roang:"โญ",roarr:"โพ",ropar:"โฆ",ropf:"๐ฃ",roplus:"โจฎ",rotimes:"โจต",rpar:")",rpargt:"โฆ",rppolint:"โจ",rsaquo:"โบ",rscr:"๐",rtimes:"โ",rtri:"โน",triangleright:"โน",rtriltri:"โง",ruluhar:"โฅจ",rx:"โ",sacute:"ล",scE:"โชด",scap:"โชธ",succapprox:"โชธ",scaron:"ลก",scedil:"ล",scirc:"ล",scnE:"โชถ",succneqq:"โชถ",scnap:"โชบ",succnapprox:"โชบ",scnsim:"โฉ",succnsim:"โฉ",scpolint:"โจ",scy:"ั",sdot:"โ
",sdote:"โฉฆ",seArr:"โ",sect:"ยง",semi:";",seswar:"โคฉ",tosa:"โคฉ",sext:"โถ",sfr:"๐ฐ",sharp:"โฏ",shchcy:"ั",shcy:"ั",shy:"ยญ",sigma:"ฯ",sigmaf:"ฯ",sigmav:"ฯ",varsigma:"ฯ",simdot:"โฉช",simg:"โช",simgE:"โช ",siml:"โช",simlE:"โช",simne:"โ",simplus:"โจค",simrarr:"โฅฒ",smashp:"โจณ",smeparsl:"โงค",smile:"โฃ",ssmile:"โฃ",smt:"โชช",smte:"โชฌ",smtes:"โชฌ๏ธ",softcy:"ั",sol:"/",solb:"โง",solbar:"โฟ",sopf:"๐ค",spades:"โ ",spadesuit:"โ ",sqcaps:"โ๏ธ",sqcups:"โ๏ธ",sscr:"๐",star:"โ",sub:"โ",subset:"โ",subE:"โซ
",subseteqq:"โซ
",subdot:"โชฝ",subedot:"โซ",submult:"โซ",subnE:"โซ",subsetneqq:"โซ",subne:"โ",subsetneq:"โ",subplus:"โชฟ",subrarr:"โฅน",subsim:"โซ",subsub:"โซ",subsup:"โซ",sung:"โช",sup1:"ยน",sup2:"ยฒ",sup3:"ยณ",supE:"โซ",supseteqq:"โซ",supdot:"โชพ",supdsub:"โซ",supedot:"โซ",suphsol:"โ",suphsub:"โซ",suplarr:"โฅป",supmult:"โซ",supnE:"โซ",supsetneqq:"โซ",supne:"โ",supsetneq:"โ",supplus:"โซ",supsim:"โซ",supsub:"โซ",supsup:"โซ",swArr:"โ",swnwar:"โคช",szlig:"ร",target:"โ",tau:"ฯ",tcaron:"ลฅ",tcedil:"ลฃ",tcy:"ั",telrec:"โ",tfr:"๐ฑ",theta:"ฮธ",thetasym:"ฯ",thetav:"ฯ",vartheta:"ฯ",thorn:"รพ",times:"ร",timesbar:"โจฑ",timesd:"โจฐ",topbot:"โถ",topcir:"โซฑ",topf:"๐ฅ",topfork:"โซ",tprime:"โด",triangle:"โต",utri:"โต",triangleq:"โ",trie:"โ",tridot:"โฌ",triminus:"โจบ",triplus:"โจน",trisb:"โง",tritime:"โจป",trpezium:"โข",tscr:"๐",tscy:"ั",tshcy:"ั",tstrok:"ลง",uHar:"โฅฃ",uacute:"รบ",ubrcy:"ั",ubreve:"ลญ",ucirc:"รป",ucy:"ั",udblac:"ลฑ",ufisht:"โฅพ",ufr:"๐ฒ",ugrave:"รน",uhblk:"โ",ulcorn:"โ",ulcorner:"โ",ulcrop:"โ",ultri:"โธ",umacr:"ลซ",uogon:"ลณ",uopf:"๐ฆ",upsi:"ฯ
",upsilon:"ฯ
",upuparrows:"โ",uuarr:"โ",urcorn:"โ",urcorner:"โ",urcrop:"โ",uring:"ลฏ",urtri:"โน",uscr:"๐",utdot:"โฐ",utilde:"ลฉ",uuml:"รผ",uwangle:"โฆง",vBar:"โซจ",vBarv:"โซฉ",vangrt:"โฆ",varsubsetneq:"โ๏ธ",vsubne:"โ๏ธ",varsubsetneqq:"โซ๏ธ",vsubnE:"โซ๏ธ",varsupsetneq:"โ๏ธ",vsupne:"โ๏ธ",varsupsetneqq:"โซ๏ธ",vsupnE:"โซ๏ธ",vcy:"ะฒ",veebar:"โป",veeeq:"โ",vellip:"โฎ",vfr:"๐ณ",vopf:"๐ง",vscr:"๐",vzigzag:"โฆ",wcirc:"ลต",wedbar:"โฉ",wedgeq:"โ",weierp:"โ",wp:"โ",wfr:"๐ด",wopf:"๐จ",wscr:"๐",xfr:"๐ต",xi:"ฮพ",xnis:"โป",xopf:"๐ฉ",xscr:"๐",yacute:"รฝ",yacy:"ั",ycirc:"ลท",ycy:"ั",yen:"ยฅ",yfr:"๐ถ",yicy:"ั",yopf:"๐ช",yscr:"๐",yucy:"ั",yuml:"รฟ",zacute:"ลบ",zcaron:"ลพ",zcy:"ะท",zdot:"ลผ",zeta:"ฮถ",zfr:"๐ท",zhcy:"ะถ",zigrarr:"โ",zopf:"๐ซ",zscr:"๐",zwj:"โ",zwnj:"โ"},Ka="๎";wi.ngsp=Ka;var Gd=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Yd(l,d){if(d!=null&&!(Array.isArray(d)&&d.length==2))throw new Error(`Expected '${l}' to be an array, [start, end].`);if(d!=null){let y=d[0],x=d[1];Gd.forEach(_=>{if(_.test(y)||_.test(x))throw new Error(`['${y}', '${x}'] contains unusable interpolation symbol.`)})}}var jc=class ww{static fromArray(d){return d?(Yd("interpolation",d),new ww(d[0],d[1])):Gc}constructor(d,y){this.start=d,this.end=y}},Gc=new jc("{{","}}"),Eu=class extends hl{constructor(l,d,y){super(y,l),this.tokenType=d}},Yc=class{constructor(l,d,y){this.tokens=l,this.errors=d,this.nonNormalizedIcuExpressions=y}};function Vc(l,d,y,x={}){let _=new Vd(new fn(l,d),y,x);return _.tokenize(),new Yc(Zc(_.tokens),_.errors,_.nonNormalizedIcuExpressions)}var Fu=/\r\n?/g;function Qa(l){return`Unexpected character "${l===0?"EOF":String.fromCharCode(l)}"`}function Dl(l){return`Unknown entity "${l}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function Su(l,d){return`Unable to parse entity "${d}" - ${l} character reference entities must end with ";"`}var xi;(function(l){l.HEX="hexadecimal",l.DEC="decimal"})(xi||(xi={}));var Cl=class{constructor(l){this.error=l}},Vd=class{constructor(l,d,y){this._getTagContentType=d,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=y.tokenizeExpansionForms||!1,this._interpolationConfig=y.interpolationConfig||Gc,this._leadingTriviaCodePoints=y.leadingTriviaChars&&y.leadingTriviaChars.map(_=>_.codePointAt(0)||0),this._canSelfClose=y.canSelfClose||!1,this._allowHtmComponentClosingTags=y.allowHtmComponentClosingTags||!1;let x=y.range||{endPos:l.content.length,startPos:0,startLine:0,startCol:0};this._cursor=y.escapedString?new Jc(l,x):new _u(l,x),this._preserveLineEndings=y.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=y.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=y.tokenizeBlocks??!0,this._tokenizeLet=y.tokenizeLet??!0;try{this._cursor.init()}catch(_){this.handleError(_)}}_processCarriageReturns(l){return this._preserveLineEndings?l:l.replace(Fu,`
|
|
202
|
-
`)}tokenize(){for(;this._cursor.peek()!==0;){let l=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(l):this._attemptStr("--")?this._consumeComment(l):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(l):this._consumeBogusComment(l);else if(this._attemptCharCode(47))this._consumeTagClose(l);else{let d=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=d,this._consumeBogusComment(l)):this._consumeTagOpen(l)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(l):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(l):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(l):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(d){this.handleError(d)}}this._beginToken(34),this._endToken([])}_getBlockName(){let l=!1,d=this._cursor.clone();return this._attemptCharCodeUntilFn(y=>Ot(y)?!l:Tu(y)?(l=!0,!1):!0),this._cursor.getChars(d).trim()}_consumeBlockStart(l){this._beginToken(25,l);let d=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Bt),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Bt);else{d.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):d.type=29}_consumeBlockEnd(l){this._beginToken(27,l),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Au);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let l=this._cursor.clone(),d=null,y=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||d!==null;){let x=this._cursor.peek();if(x===92)this._cursor.advance();else if(x===d)d=null;else if(d===null&&Ca(x))d=x;else if(x===40&&d===null)y++;else if(x===41&&d===null){if(y===0)break;y>0&&y--}this._cursor.advance()}this._endToken([this._cursor.getChars(l)]),this._attemptCharCodeUntilFn(Au)}}_consumeLetDeclaration(l){if(this._beginToken(30,l),Ot(this._cursor.peek()))this._attemptCharCodeUntilFn(Bt);else{let y=this._endToken([this._cursor.getChars(l)]);y.type=33;return}let d=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Bt),!this._attemptCharCode(61)){d.type=33;return}this._attemptCharCodeUntilFn(y=>Bt(y)&&!ds(y)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(d.type=33,d.sourceSpan=this._cursor.getSpan(l))}_getLetDeclarationName(){let l=this._cursor.clone(),d=!1;return this._attemptCharCodeUntilFn(y=>cs(y)||y===36||y===95||d&&Ao(y)?(d=!0,!1):!0),this._cursor.getChars(l).trim()}_consumeLetDeclarationValue(){let l=this._cursor.clone();for(this._beginToken(31,l);this._cursor.peek()!==0;){let d=this._cursor.peek();if(d===59)break;Ca(d)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(y=>y===92?(this._cursor.advance(),!1):y===d)),this._cursor.advance()}this._endToken([this._cursor.getChars(l)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(El(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(l,d=this._cursor.clone()){this._currentTokenStart=d,this._currentTokenType=l}_endToken(l,d){if(this._currentTokenStart===null)throw new Eu("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(d));if(this._currentTokenType===null)throw new Eu("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let y={type:this._currentTokenType,parts:l,sourceSpan:(d??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(y),this._currentTokenStart=null,this._currentTokenType=null,y}_createError(l,d){this._isInExpansionForm()&&(l+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let y=new Eu(l,this._currentTokenType,d);return this._currentTokenStart=null,this._currentTokenType=null,new Cl(y)}handleError(l){if(l instanceof Fl&&(l=this._createError(l.msg,this._cursor.getSpan(l.cursor))),l instanceof Cl)this.errors.push(l.error);else throw l}_attemptCharCode(l){return this._cursor.peek()===l?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(l){return Jn(this._cursor.peek(),l)?(this._cursor.advance(),!0):!1}_requireCharCode(l){let d=this._cursor.clone();if(!this._attemptCharCode(l))throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(d))}_attemptStr(l){let d=l.length;if(this._cursor.charsLeft()<d)return!1;let y=this._cursor.clone();for(let x=0;x<d;x++)if(!this._attemptCharCode(l.charCodeAt(x)))return this._cursor=y,!1;return!0}_attemptStrCaseInsensitive(l){for(let d=0;d<l.length;d++)if(!this._attemptCharCodeCaseInsensitive(l.charCodeAt(d)))return!1;return!0}_requireStr(l){let d=this._cursor.clone();if(!this._attemptStr(l))throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(d))}_requireStrCaseInsensitive(l){let d=this._cursor.clone();if(!this._attemptStrCaseInsensitive(l))throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(d))}_attemptCharCodeUntilFn(l){for(;!l(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(l,d){let y=this._cursor.clone();if(this._attemptCharCodeUntilFn(l),this._cursor.diff(y)<d)throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(y))}_attemptUntilChar(l){for(;this._cursor.peek()!==l;)this._cursor.advance()}_readChar(){let l=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),l}_consumeEntity(l){this._beginToken(9);let d=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let y=this._attemptCharCode(120)||this._attemptCharCode(88),x=this._cursor.clone();if(this._attemptCharCodeUntilFn(Zd),this._cursor.peek()!=59){this._cursor.advance();let I=y?xi.HEX:xi.DEC;throw this._createError(Su(I,this._cursor.getChars(d)),this._cursor.getSpan())}let _=this._cursor.getChars(x);this._cursor.advance();try{let I=parseInt(_,y?16:10);this._endToken([String.fromCharCode(I),this._cursor.getChars(d)])}catch{throw this._createError(Dl(this._cursor.getChars(d)),this._cursor.getSpan())}}else{let y=this._cursor.clone();if(this._attemptCharCodeUntilFn(Zn),this._cursor.peek()!=59)this._beginToken(l,d),this._cursor=y,this._endToken(["&"]);else{let x=this._cursor.getChars(y);this._cursor.advance();let _=wi[x];if(!_)throw this._createError(Dl(x),this._cursor.getSpan(d));this._endToken([_,`&${x};`])}}}_consumeRawText(l,d){this._beginToken(l?6:7);let y=[];for(;;){let x=this._cursor.clone(),_=d();if(this._cursor=x,_)break;l&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(y.join(""))]),y.length=0,this._consumeEntity(6),this._beginToken(6)):y.push(this._readChar())}this._endToken([this._processCarriageReturns(y.join(""))])}_consumeComment(l){this._beginToken(10,l),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(l){this._beginToken(10,l),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(l){this._beginToken(12,l),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(l){this._beginToken(18,l),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let l=this._cursor.clone(),d="";for(;this._cursor.peek()!==58&&!Xd(this._cursor.peek());)this._cursor.advance();let y;this._cursor.peek()===58?(d=this._cursor.getChars(l),this._cursor.advance(),y=this._cursor.clone()):y=l,this._requireCharCodeUntilFn(Xc,d===""?0:1);let x=this._cursor.getChars(y);return[d,x]}_consumeTagOpen(l){let d,y,x,_=[];try{if(!cs(this._cursor.peek()))throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(l));for(x=this._consumeTagOpenStart(l),y=x.parts[0],d=x.parts[1],this._attemptCharCodeUntilFn(Bt);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[Y,q]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(Bt),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(Bt);let ae=this._consumeAttributeValue();_.push({prefix:Y,name:q,value:ae})}else _.push({prefix:Y,name:q});this._attemptCharCodeUntilFn(Bt)}this._consumeTagOpenEnd()}catch(Y){if(Y instanceof Cl){x?x.type=4:(this._beginToken(5,l),this._endToken(["<"]));return}throw Y}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let I=this._getTagContentType(d,y,this._fullNameStack.length>0,_);this._handleFullNameStackForTagOpen(y,d),I===Rn.RAW_TEXT?this._consumeRawTextWithTagClose(y,d,!1):I===Rn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(y,d,!0)}_consumeRawTextWithTagClose(l,d,y){this._consumeRawText(y,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Bt),!this._attemptStrCaseInsensitive(l?`${l}:${d}`:d))?!1:(this._attemptCharCodeUntilFn(Bt),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(x=>x===62,3),this._cursor.advance(),this._endToken([l,d]),this._handleFullNameStackForTagClose(l,d)}_consumeTagOpenStart(l){this._beginToken(0,l);let d=this._consumePrefixAndName();return this._endToken(d)}_consumeAttributeName(){let l=this._cursor.peek();if(l===39||l===34)throw this._createError(Qa(l),this._cursor.getSpan());this._beginToken(14);let d=this._consumePrefixAndName();return this._endToken(d),d}_consumeAttributeValue(){let l;if(this._cursor.peek()===39||this._cursor.peek()===34){let d=this._cursor.peek();this._consumeQuote(d);let y=()=>this._cursor.peek()===d;l=this._consumeWithInterpolation(16,17,y,y),this._consumeQuote(d)}else{let d=()=>Xc(this._cursor.peek());l=this._consumeWithInterpolation(16,17,d,d)}return l}_consumeQuote(l){this._beginToken(15),this._requireCharCode(l),this._endToken([String.fromCodePoint(l)])}_consumeTagOpenEnd(){let l=this._attemptCharCode(47)?2:1;this._beginToken(l),this._requireCharCode(62),this._endToken([])}_consumeTagClose(l){if(this._beginToken(3,l),this._attemptCharCodeUntilFn(Bt),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Bt),this._requireCharCode(62),this._endToken([]);else{let[d,y]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Bt),this._requireCharCode(62),this._endToken([d,y]),this._handleFullNameStackForTagClose(d,y)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let l=this._readUntil(44),d=this._processCarriageReturns(l);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([d]);else{let x=this._endToken([l]);d!==l&&this.nonNormalizedIcuExpressions.push(x)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Bt),this._beginToken(7);let y=this._readUntil(44);this._endToken([y]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Bt)}_consumeExpansionCaseStart(){this._beginToken(21);let l=this._readUntil(123).trim();this._endToken([l]),this._attemptCharCodeUntilFn(Bt),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Bt),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Bt),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(l,d,y,x){this._beginToken(l);let _=[];for(;!y();){let Y=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(_.join(""))],Y),_.length=0,this._consumeInterpolation(d,Y,x),this._beginToken(l)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(_.join(""))]),_.length=0,this._consumeEntity(l),this._beginToken(l)):_.push(this._readChar())}this._inInterpolation=!1;let I=this._processCarriageReturns(_.join(""));return this._endToken([I]),I}_consumeInterpolation(l,d,y){let x=[];this._beginToken(l,d),x.push(this._interpolationConfig.start);let _=this._cursor.clone(),I=null,Y=!1;for(;this._cursor.peek()!==0&&(y===null||!y());){let q=this._cursor.clone();if(this._isTagStart()){this._cursor=q,x.push(this._getProcessedChars(_,q)),this._endToken(x);return}if(I===null)if(this._attemptStr(this._interpolationConfig.end)){x.push(this._getProcessedChars(_,q)),x.push(this._interpolationConfig.end),this._endToken(x);return}else this._attemptStr("//")&&(Y=!0);let ae=this._cursor.peek();this._cursor.advance(),ae===92?this._cursor.advance():ae===I?I=null:!Y&&I===null&&Ca(ae)&&(I=ae)}x.push(this._getProcessedChars(_,this._cursor)),this._endToken(x)}_getProcessedChars(l,d){return this._processCarriageReturns(d.getChars(l))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let l=this._cursor.clone();l.advance();let d=l.peek();if(97<=d&&d<=122||65<=d&&d<=90||d===47||d===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let l=this._cursor.clone();if(l.advance(),Tu(l.peek()))return!0}return!1}_readUntil(l){let d=this._cursor.clone();return this._attemptUntilChar(l),this._cursor.getChars(d)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let l=this._cursor.clone(),d=this._attemptStr(this._interpolationConfig.start);return this._cursor=l,!d}return!0}_handleFullNameStackForTagOpen(l,d){let y=bs(l,d);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===y)&&this._fullNameStack.push(y)}_handleFullNameStackForTagClose(l,d){let y=bs(l,d);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===y&&this._fullNameStack.pop()}};function Bt(l){return!Ot(l)||l===0}function Xc(l){return Ot(l)||l===62||l===60||l===47||l===39||l===34||l===61||l===0}function Xd(l){return(l<97||122<l)&&(l<65||90<l)&&(l<48||l>57)}function Zd(l){return l===59||l===0||!Fc(l)}function Zn(l){return l===59||l===0||!cs(l)}function El(l){return l!==125}function Jn(l,d){return ku(l)===ku(d)}function ku(l){return l>=97&&l<=122?l-97+65:l}function Tu(l){return cs(l)||Ao(l)||l===95}function Au(l){return l!==59&&Bt(l)}function Zc(l){let d=[],y;for(let x=0;x<l.length;x++){let _=l[x];y&&y.type===5&&_.type===5||y&&y.type===16&&_.type===16?(y.parts[0]+=_.parts[0],y.sourceSpan.end=_.sourceSpan.end):(y=_,d.push(y))}return d}var _u=class pm{constructor(d,y){if(d instanceof pm){this.file=d.file,this.input=d.input,this.end=d.end;let x=d.state;this.state={peek:x.peek,offset:x.offset,line:x.line,column:x.column}}else{if(!y)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=d,this.input=d.content,this.end=y.endPos,this.state={peek:-1,offset:y.startPos,line:y.startLine,column:y.startCol}}}clone(){return new pm(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(d){return this.state.offset-d.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(d,y){d=d||this;let x=d;if(y)for(;this.diff(d)>0&&y.indexOf(d.peek())!==-1;)x===d&&(d=d.clone()),d.advance();let _=this.locationFromCursor(d),I=this.locationFromCursor(this),Y=x!==d?this.locationFromCursor(x):_;return new Me(_,I,Y)}getChars(d){return this.input.substring(d.state.offset,this.state.offset)}charAt(d){return this.input.charCodeAt(d)}advanceState(d){if(d.offset>=this.end)throw this.state=d,new Fl('Unexpected character "EOF"',this);let y=this.charAt(d.offset);y===10?(d.line++,d.column=0):ds(y)||d.column++,d.offset++,this.updatePeek(d)}updatePeek(d){d.peek=d.offset>=this.end?0:this.charAt(d.offset)}locationFromCursor(d){return new Ea(d.file,d.state.offset,d.state.line,d.state.column)}},Jc=class gm extends _u{constructor(d,y){d instanceof gm?(super(d),this.internalState={...d.internalState}):(super(d,y),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new gm(this)}getChars(d){let y=d.clone(),x="";for(;y.internalState.offset<this.internalState.offset;)x+=String.fromCodePoint(y.peek()),y.advance();return x}processEscapeSequence(){let d=()=>this.internalState.peek;if(d()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),d()===110)this.state.peek=10;else if(d()===114)this.state.peek=13;else if(d()===118)this.state.peek=11;else if(d()===116)this.state.peek=9;else if(d()===98)this.state.peek=8;else if(d()===102)this.state.peek=12;else if(d()===117)if(this.advanceState(this.internalState),d()===123){this.advanceState(this.internalState);let y=this.clone(),x=0;for(;d()!==125;)this.advanceState(this.internalState),x++;this.state.peek=this.decodeHexDigits(y,x)}else{let y=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(y,4)}else if(d()===120){this.advanceState(this.internalState);let y=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(y,2)}else if(fl(d())){let y="",x=0,_=this.clone();for(;fl(d())&&x<3;)_=this.clone(),y+=String.fromCodePoint(d()),this.advanceState(this.internalState),x++;this.state.peek=parseInt(y,8),this.internalState=_.internalState}else ds(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(d,y){let x=this.input.slice(d.internalState.offset,d.internalState.offset+y),_=parseInt(x,16);if(isNaN(_))throw d.state=d.internalState,new Fl("Invalid hexadecimal escape sequence",d);return _}},Fl=class{constructor(l,d){this.msg=l,this.cursor=d}},Xt=class xw extends hl{static create(d,y,x){return new xw(d,y,x)}constructor(d,y,x){super(y,x),this.elementName=d}},Sl=class{constructor(l,d){this.rootNodes=l,this.errors=d}},Sa=class{constructor(l){this.getTagDefinition=l}parse(l,d,y,x=!1,_){let I=He=>(Ne,...It)=>He(Ne.toLowerCase(),...It),Y=x?this.getTagDefinition:I(this.getTagDefinition),q=He=>Y(He).getContentType(),ae=x?_:I(_),we=Vc(l,d,_?(He,Ne,It,Ft)=>{let tr=ae(He,Ne,It,Ft);return tr!==void 0?tr:q(He)}:q,y),ce=y&&y.canSelfClose||!1,Xe=y&&y.allowHtmComponentClosingTags||!1,We=new qc(we.tokens,Y,ce,Xe,x);return We.build(),new Sl(We.rootNodes,we.errors.concat(We.errors))}},qc=class Dw{constructor(d,y,x,_,I){this.tokens=d,this.getTagDefinition=y,this.canSelfClose=x,this.allowHtmComponentClosingTags=_,this.isTagNameCaseSensitive=I,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let d of this._containerStack)d instanceof yi&&this.errors.push(Xt.create(d.name,d.sourceSpan,`Unclosed block "${d.name}"`))}_advance(){let d=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],d}_advanceIf(d){return this._peek.type===d?this._advance():null}_consumeCdata(d){let y=this._advance(),x=this._getText(y),_=this._advanceIf(13);this._addToParent(new zd(x,new Me(d.sourceSpan.start,(_||y).sourceSpan.end),[y]))}_consumeComment(d){let y=this._advanceIf(7),x=this._advanceIf(11),_=y!=null?y.parts[0].trim():null,I=x==null?d.sourceSpan:new Me(d.sourceSpan.start,x.sourceSpan.end,d.sourceSpan.fullStart);this._addToParent(new Ud(_,I))}_consumeDocType(d){let y=this._advanceIf(7),x=this._advanceIf(19),_=y!=null?y.parts[0].trim():null,I=new Me(d.sourceSpan.start,(x||y||d).sourceSpan.end);this._addToParent(new jd(_,I))}_consumeExpansion(d){let y=this._advance(),x=this._advance(),_=[];for(;this._peek.type===21;){let Y=this._parseExpansionCase();if(!Y)return;_.push(Y)}if(this._peek.type!==24){this.errors.push(Xt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let I=new Me(d.sourceSpan.start,this._peek.sourceSpan.end,d.sourceSpan.fullStart);this._addToParent(new Hd(y.parts[0],x.parts[0],_,I,y.sourceSpan)),this._advance()}_parseExpansionCase(){let d=this._advance();if(this._peek.type!==22)return this.errors.push(Xt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let y=this._advance(),x=this._collectExpansionExpTokens(y);if(!x)return null;let _=this._advance();x.push({type:34,parts:[],sourceSpan:_.sourceSpan});let I=new Dw(x,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(I.build(),I.errors.length>0)return this.errors=this.errors.concat(I.errors),null;let Y=new Me(d.sourceSpan.start,_.sourceSpan.end,d.sourceSpan.fullStart),q=new Me(y.sourceSpan.start,_.sourceSpan.end,y.sourceSpan.fullStart);return new Wd(d.parts[0],I.rootNodes,Y,d.sourceSpan,q)}_collectExpansionExpTokens(d){let y=[],x=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&x.push(this._peek.type),this._peek.type===23)if(Ru(x,22)){if(x.pop(),x.length===0)return y}else return this.errors.push(Xt.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Ru(x,20))x.pop();else return this.errors.push(Xt.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(Xt.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;y.push(this._advance())}}_getText(d){let y=d.parts[0];if(y.length>0&&y[0]==`
|
|
203
|
-
`){let x=this._getClosestParentElement();x!=null&&x.children.length==0&&this.getTagDefinition(x.name).ignoreFirstLf&&(y=y.substring(1))}return y}_consumeText(d){let y=[d],x=d.sourceSpan,_=d.parts[0];if(_.length>0&&_[0]===`
|
|
204
|
-
`){let I=this._getContainer();I!=null&&I.children.length===0&&this.getTagDefinition(I.name).ignoreFirstLf&&(_=_.substring(1),y[0]={type:d.type,sourceSpan:d.sourceSpan,parts:[_]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)d=this._advance(),y.push(d),d.type===8?_+=d.parts.join("").replace(/&([^;]+);/g,Nu):d.type===9?_+=d.parts[0]:_+=d.parts.join("");if(_.length>0){let I=d.sourceSpan;this._addToParent(new Md(_,new Me(x.start,I.end,x.fullStart,x.details),y))}}_closeVoidElement(){let d=this._getContainer();d instanceof qa&&this.getTagDefinition(d.name).isVoid&&this._containerStack.pop()}_consumeStartTag(d){let[y,x]=d.parts,_=[];for(;this._peek.type===14;)_.push(this._consumeAttr(this._advance()));let I=this._getElementFullName(y,x,this._getClosestParentElement()),Y=!1;if(this._peek.type===2){this._advance(),Y=!0;let He=this.getTagDefinition(I);this.canSelfClose||He.canSelfClose||gl(I)!==null||He.isVoid||this.errors.push(Xt.create(I,d.sourceSpan,`Only void, custom and foreign elements can be self closed "${d.parts[1]}"`))}else this._peek.type===1&&(this._advance(),Y=!1);let q=this._peek.sourceSpan.fullStart,ae=new Me(d.sourceSpan.start,q,d.sourceSpan.fullStart),we=new Me(d.sourceSpan.start,q,d.sourceSpan.fullStart),ce=new Me(d.sourceSpan.start.moveBy(1),d.sourceSpan.end),Xe=new qa(I,_,[],ae,we,void 0,ce),We=this._getContainer();this._pushContainer(Xe,We instanceof qa&&this.getTagDefinition(We.name).isClosedByChild(Xe.name)),Y?this._popContainer(I,qa,ae):d.type===4&&(this._popContainer(I,qa,null),this.errors.push(Xt.create(I,ae,`Opening tag "${I}" not terminated.`)))}_pushContainer(d,y){y&&this._containerStack.pop(),this._addToParent(d),this._containerStack.push(d)}_consumeEndTag(d){let y=this.allowHtmComponentClosingTags&&d.parts.length===0?null:this._getElementFullName(d.parts[0],d.parts[1],this._getClosestParentElement());if(y&&this.getTagDefinition(y).isVoid)this.errors.push(Xt.create(y,d.sourceSpan,`Void elements do not have end tags "${d.parts[1]}"`));else if(!this._popContainer(y,qa,d.sourceSpan)){let x=`Unexpected closing tag "${y}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Xt.create(y,d.sourceSpan,x))}}_popContainer(d,y,x){let _=!1;for(let I=this._containerStack.length-1;I>=0;I--){let Y=this._containerStack[I];if(gl(Y.name)?Y.name===d:(d==null||Y.name.toLowerCase()===d.toLowerCase())&&Y instanceof y)return Y.endSourceSpan=x,Y.sourceSpan.end=x!==null?x.end:Y.sourceSpan.end,this._containerStack.splice(I,this._containerStack.length-I),!_;(Y instanceof yi||Y instanceof qa&&!this.getTagDefinition(Y.name).closedByParent)&&(_=!0)}return!1}_consumeAttr(d){let y=bs(d.parts[0],d.parts[1]),x=d.sourceSpan.end,_;this._peek.type===15&&(_=this._advance());let I="",Y=[],q,ae;if(this._peek.type===16)for(q=this._peek.sourceSpan,ae=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let ce=this._advance();Y.push(ce),ce.type===17?I+=ce.parts.join("").replace(/&([^;]+);/g,Nu):ce.type===9?I+=ce.parts[0]:I+=ce.parts.join(""),ae=x=ce.sourceSpan.end}this._peek.type===15&&(ae=x=this._advance().sourceSpan.end);let we=q&&ae&&new Me(_?.sourceSpan.start??q.start,ae,_?.sourceSpan.fullStart??q.fullStart);return new wl(y,I,new Me(d.sourceSpan.start,x,d.sourceSpan.fullStart),d.sourceSpan,we,Y.length>0?Y:void 0,void 0)}_consumeBlockOpen(d){let y=[];for(;this._peek.type===28;){let q=this._advance();y.push(new Hc(q.parts[0],q.sourceSpan))}this._peek.type===26&&this._advance();let x=this._peek.sourceSpan.fullStart,_=new Me(d.sourceSpan.start,x,d.sourceSpan.fullStart),I=new Me(d.sourceSpan.start,x,d.sourceSpan.fullStart),Y=new yi(d.parts[0],y,[],_,d.sourceSpan,I);this._pushContainer(Y,!1)}_consumeBlockClose(d){this._popContainer(null,yi,d.sourceSpan)||this.errors.push(Xt.create(null,d.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(d){let y=[];for(;this._peek.type===28;){let q=this._advance();y.push(new Hc(q.parts[0],q.sourceSpan))}let x=this._peek.sourceSpan.fullStart,_=new Me(d.sourceSpan.start,x,d.sourceSpan.fullStart),I=new Me(d.sourceSpan.start,x,d.sourceSpan.fullStart),Y=new yi(d.parts[0],y,[],_,d.sourceSpan,I);this._pushContainer(Y,!1),this._popContainer(null,yi,null),this.errors.push(Xt.create(d.parts[0],_,`Incomplete block "${d.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(d){let y=d.parts[0],x,_;if(this._peek.type!==31){this.errors.push(Xt.create(d.parts[0],d.sourceSpan,`Invalid @let declaration "${y}". Declaration must have a value.`));return}else x=this._advance();if(this._peek.type!==32){this.errors.push(Xt.create(d.parts[0],d.sourceSpan,`Unterminated @let declaration "${y}". Declaration must be terminated with a semicolon.`));return}else _=this._advance();let I=_.sourceSpan.fullStart,Y=new Me(d.sourceSpan.start,I,d.sourceSpan.fullStart),q=d.sourceSpan.toString().lastIndexOf(y),ae=d.sourceSpan.start.moveBy(q),we=new Me(ae,d.sourceSpan.end),ce=new Wc(y,x.parts[0],Y,we,x.sourceSpan);this._addToParent(ce)}_consumeIncompleteLet(d){let y=d.parts[0]??"",x=y?` "${y}"`:"";if(y.length>0){let _=d.sourceSpan.toString().lastIndexOf(y),I=d.sourceSpan.start.moveBy(_),Y=new Me(I,d.sourceSpan.end),q=new Me(d.sourceSpan.start,d.sourceSpan.start.moveBy(0)),ae=new Wc(y,"",d.sourceSpan,Y,q);this._addToParent(ae)}this.errors.push(Xt.create(d.parts[0],d.sourceSpan,`Incomplete @let declaration${x}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let d=this._containerStack.length-1;d>-1;d--)if(this._containerStack[d]instanceof qa)return this._containerStack[d];return null}_addToParent(d){let y=this._getContainer();y===null?this.rootNodes.push(d):y.children.push(d)}_getElementFullName(d,y,x){if(d===""&&(d=this.getTagDefinition(y).implicitNamespacePrefix||"",d===""&&x!=null)){let _=vi(x.name)[1];this.getTagDefinition(_).preventNamespaceInheritance||(d=gl(x.name))}return bs(d,y)}};function Ru(l,d){return l.length>0&&l[l.length-1]===d}function Nu(l,d){return wi[d]!==void 0?wi[d]||l:/^#x[a-f0-9]+$/i.test(d)?String.fromCodePoint(parseInt(d.slice(2),16)):/^#\d+$/.test(d)?String.fromCodePoint(parseInt(d.slice(1),10)):l}var kl=class extends Sa{constructor(){super(Cu)}parse(l,d,y,x=!1,_){return super.parse(l,d,y,x,_)}},Pu=null,Kc=()=>(Pu||(Pu=new kl),Pu);function ka(l,d={}){let{canSelfClose:y=!1,allowHtmComponentClosingTags:x=!1,isTagNameCaseSensitive:_=!1,getTagContentType:I,tokenizeAngularBlocks:Y=!1,tokenizeAngularLetDeclaration:q=!1}=d;return Kc().parse(l,"angular-html-parser",{tokenizeExpansionForms:Y,interpolationConfig:void 0,canSelfClose:y,allowHtmComponentClosingTags:x,tokenizeBlocks:Y,tokenizeLet:q},_,I)}function Di(l,d){let y=new SyntaxError(l+" ("+d.loc.start.line+":"+d.loc.start.column+")");return Object.assign(y,d)}var Ou=Di,Nr=3;function ws(l){let d=l.slice(0,Nr);if(d!=="---"&&d!=="+++")return;let y=l.indexOf(`
|
|
205
|
-
`,Nr);if(y===-1)return;let x=l.slice(Nr,y).trim(),_=l.indexOf(`
|
|
206
|
-
${d}`,y),I=x;if(I||(I=d==="+++"?"toml":"yaml"),_===-1&&d==="---"&&I==="yaml"&&(_=l.indexOf(`
|
|
207
|
-
...`,y)),_===-1)return;let Y=_+1+Nr,q=l.charAt(Y+1);if(!/\s?/u.test(q))return;let ae=l.slice(0,Y);return{type:"front-matter",language:I,explicitLanguage:x,value:l.slice(y+1,_),startDelimiter:d,endDelimiter:ae.slice(-Nr),raw:ae}}function xs(l){let d=ws(l);if(!d)return{content:l};let{raw:y}=d;return{frontMatter:d,content:z(!1,y,/[^\n]/gu," ")+l.slice(y.length)}}var Tl=xs,Ro={attrs:!0,children:!0,cases:!0,expression:!0},ct=new Set(["parent"]),qn,Ci,vr,$a=class nf{constructor(d={}){S(this,qn),E(this,"type"),E(this,"parent");for(let y of new Set([...ct,...Object.keys(d)]))this.setProperty(y,d[y])}setProperty(d,y){if(this[d]!==y){if(d in Ro&&(y=y.map(x=>this.createChild(x))),!ct.has(d)){this[d]=y;return}Object.defineProperty(this,d,{value:y,enumerable:!1,configurable:!0})}}map(d){let y;for(let x in Ro){let _=this[x];if(_){let I=Ds(_,Y=>Y.map(d));y!==_&&(y||(y=new nf({parent:this.parent})),y.setProperty(x,I))}}if(y)for(let x in this)x in Ro||(y[x]=this[x]);return d(y||this)}walk(d){for(let y in Ro){let x=this[y];if(x)for(let _=0;_<x.length;_++)x[_].walk(d)}d(this)}createChild(d){let y=d instanceof nf?d.clone():new nf(d);return y.setProperty("parent",this),y}insertChildBefore(d,y){let x=this.$children;x.splice(x.indexOf(d),0,this.createChild(y))}removeChild(d){let y=this.$children;y.splice(y.indexOf(d),1)}replaceChild(d,y){let x=this.$children;x[x.indexOf(d)]=this.createChild(y)}clone(){return new nf(this)}get $children(){return this[F(this,qn,Ci)]}set $children(d){this[F(this,qn,Ci)]=d}get firstChild(){var d;return(d=this.$children)==null?void 0:d[0]}get lastChild(){return j(!0,this.$children,-1)}get prev(){let d=F(this,qn,vr);return d[d.indexOf(this)-1]}get next(){let d=F(this,qn,vr);return d[d.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(d=>[d.fullName,d.value]))}};qn=new WeakSet,Ci=function(){return this.type==="angularIcuCase"?"expression":this.type==="angularIcuExpression"?"cases":"children"},vr=function(){var l;return((l=this.parent)==null?void 0:l.$children)??[]};var Nn=$a;function Ds(l,d){let y=l.map(d);return y.some((x,_)=>x!==l[_])?y:l}var No=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Cs},{regex:/^\[if([^\]]*)\]><!$/u,parse:Pn},{regex:/^<!\s*\[endif\]$/u,parse:Ei}];function Ta(l,d){if(l.value)for(let{regex:y,parse:x}of No){let _=l.value.match(y);if(_)return x(l,d,_)}return null}function Cs(l,d,y){let[,x,_,I]=y,Y=4+x.length,q=l.sourceSpan.start.moveBy(Y),ae=q.moveBy(I.length),[we,ce]=(()=>{try{return[!0,d(I,q).children]}catch{return[!1,[{type:"text",value:I,sourceSpan:new Me(q,ae)}]]}})();return{type:"ieConditionalComment",complete:we,children:ce,condition:z(!1,_.trim(),/\s+/gu," "),sourceSpan:l.sourceSpan,startSourceSpan:new Me(l.sourceSpan.start,q),endSourceSpan:new Me(ae,l.sourceSpan.end)}}function Pn(l,d,y){let[,x]=y;return{type:"ieConditionalStartComment",condition:z(!1,x.trim(),/\s+/gu," "),sourceSpan:l.sourceSpan}}function Ei(l){return{type:"ieConditionalEndComment",sourceSpan:l.sourceSpan}}var Es=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Fs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function pn(l){if(l.type==="block"){if(l.name=z(!1,l.name.toLowerCase(),/\s+/gu," ").trim(),l.type="angularControlFlowBlock",!za(l.parameters)){delete l.parameters;return}for(let d of l.parameters)d.type="angularControlFlowBlockParameter";l.parameters={type:"angularControlFlowBlockParameters",children:l.parameters,sourceSpan:new Me(l.parameters[0].sourceSpan.start,j(!1,l.parameters,-1).sourceSpan.end)}}}function Qc(l){l.type==="letDeclaration"&&(l.type="angularLetDeclaration",l.id=l.name,l.init={type:"angularLetDeclarationInitializer",sourceSpan:new Me(l.valueSpan.start,l.valueSpan.end),value:l.value},delete l.name,delete l.value)}function Fi(l){(l.type==="plural"||l.type==="select")&&(l.clause=l.type,l.type="angularIcuExpression"),l.type==="expansionCase"&&(l.type="angularIcuCase")}function Al(l,d,y){let{name:x,canSelfClose:_=!0,normalizeTagName:I=!1,normalizeAttributeName:Y=!1,allowHtmComponentClosingTags:q=!1,isTagNameCaseSensitive:ae=!1,shouldParseAsRawText:we}=d,{rootNodes:ce,errors:Xe}=ka(l,{canSelfClose:_,allowHtmComponentClosingTags:q,isTagNameCaseSensitive:ae,getTagContentType:we?(...Se)=>we(...Se)?Rn.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:x==="angular"?!0:void 0,tokenizeAngularLetDeclaration:x==="angular"?!0:void 0});if(x==="vue"){if(ce.some(St=>St.type==="docType"&&St.value==="html"||St.type==="element"&&St.name.toLowerCase()==="html"))return Al(l,Kn,y);let Se,Je=()=>Se??(Se=ka(l,{canSelfClose:_,allowHtmComponentClosingTags:q,isTagNameCaseSensitive:ae})),_t=St=>Je().rootNodes.find(({startSourceSpan:o})=>o&&o.start.offset===St.startSourceSpan.start.offset)??St;for(let[St,o]of ce.entries()){let{endSourceSpan:u,startSourceSpan:h}=o;if(u===null)Xe=Je().errors,ce[St]=_t(o);else if($c(o,y)){let C=Je().errors.find(k=>k.span.start.offset>h.start.offset&&k.span.start.offset<u.end.offset);C&&Si(C),ce[St]=_t(o)}}}Xe.length>0&&Si(Xe[0]);let We=Se=>{let Je=Se.name.startsWith(":")?Se.name.slice(1).split(":")[0]:null,_t=Se.nameSpan.toString(),St=Je!==null&&_t.startsWith(`${Je}:`),o=St?_t.slice(Je.length+1):_t;Se.name=o,Se.namespace=Je,Se.hasExplicitNamespace=St},He=Se=>{switch(Se.type){case"element":We(Se);for(let Je of Se.attrs)We(Je),Je.valueSpan?(Je.value=Je.valueSpan.toString(),/["']/u.test(Je.value[0])&&(Je.value=Je.value.slice(1,-1))):Je.value=null;break;case"comment":Se.value=Se.sourceSpan.toString().slice(4,-3);break;case"text":Se.value=Se.sourceSpan.toString();break}},Ne=(Se,Je)=>{let _t=Se.toLowerCase();return Je(_t)?_t:Se},It=Se=>{if(Se.type==="element"&&(I&&(!Se.namespace||Se.namespace===Se.tagDefinition.implicitNamespacePrefix||Vi(Se))&&(Se.name=Ne(Se.name,Je=>Fs.has(Je))),Y))for(let Je of Se.attrs)Je.namespace||(Je.name=Ne(Je.name,_t=>Es.has(Se.name)&&(Es.get("*").has(_t)||Es.get(Se.name).has(_t))))},Ft=Se=>{Se.sourceSpan&&Se.endSourceSpan&&(Se.sourceSpan=new Me(Se.sourceSpan.start,Se.endSourceSpan.end))},tr=Se=>{if(Se.type==="element"){let Je=Cu(ae?Se.name:Se.name.toLowerCase());!Se.namespace||Se.namespace===Je.implicitNamespacePrefix||Vi(Se)?Se.tagDefinition=Je:Se.tagDefinition=Cu("")}};return Uc(new class extends xl{visitExpansionCase(Se,Je){x==="angular"&&this.visitChildren(Je,_t=>{_t(Se.expression)})}visit(Se){He(Se),tr(Se),It(Se),Ft(Se)}},ce),ce}function $c(l,d){var y;if(l.type!=="element"||l.name!=="template")return!1;let x=(y=l.attrs.find(_=>_.name==="lang"))==null?void 0:y.value;return!x||fa(d,{language:x})==="html"}function Si(l){let{msg:d,span:{start:y,end:x}}=l;throw Ou(d,{loc:{start:{line:y.line+1,column:y.col+1},end:{line:x.line+1,column:x.col+1}},cause:l})}function Bu(l,d,y={},x=!0){let{frontMatter:_,content:I}=x?Tl(l):{frontMatter:null,content:l},Y=new fn(l,y.filepath),q=new Ea(Y,0,0,0),ae=q.moveBy(l.length),we={type:"root",sourceSpan:new Me(q,ae),children:Al(I,d,y)};if(_){let We=new Ea(Y,0,0,0),He=We.moveBy(_.raw.length);_.sourceSpan=new Me(We,He),we.children.unshift(_)}let ce=new Nn(we),Xe=(We,He)=>{let{offset:Ne}=He,It=z(!1,l.slice(0,Ne),/[^\n\r]/gu," "),Ft=Bu(It+We,d,y,!1);Ft.sourceSpan=new Me(He,j(!1,Ft.children,-1).sourceSpan.end);let tr=Ft.children[0];return tr.length===Ne?Ft.children.shift():(tr.sourceSpan=new Me(tr.sourceSpan.start.moveBy(Ne),tr.sourceSpan.end),tr.value=tr.value.slice(Ne)),Ft};return ce.walk(We=>{if(We.type==="comment"){let He=Ta(We,Xe);He&&We.parent.replaceChild(We,He)}pn(We),Qc(We),Fi(We)}),ce}function ki(l){return{parse:(d,y)=>Bu(d,l,y),hasPragma:cr,hasIgnorePragma:Vn,astFormat:"html",locStart:di,locEnd:lr}}var Kn={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},Ss=ki(Kn),Iu=new Set(["mj-style","mj-raw"]),Qn=ki({...Kn,name:"mjml",shouldParseAsRawText:l=>Iu.has(l)}),ks=ki({name:"angular"}),Ts=ki({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(l,d,y,x){return l.toLowerCase()!=="html"&&!y&&(l!=="template"||x.some(({name:_,value:I})=>_==="lang"&&I!=="html"&&I!==""&&I!==void 0))}}),_l=ki({name:"lwc",canSelfClose:!1}),Rl={html:_c};return v(O)})})(Fg)),Fg.exports}var Gy=f1();const h1=kw({__proto__:null,default:nd(Gy)},[Gy]);var p1=Object.create,Sg=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,m1=Object.getOwnPropertyNames,v1=Object.getPrototypeOf,b1=Object.prototype.hasOwnProperty,Yy=e=>{throw TypeError(e)},y1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kg=(e,t)=>{for(var r in t)Sg(e,r,{get:t[r],enumerable:!0})},w1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of m1(t))!b1.call(e,i)&&i!==r&&Sg(e,i,{get:()=>t[i],enumerable:!(n=g1(t,i))||n.enumerable});return e},x1=(e,t,r)=>(r=e!=null?p1(v1(e)):{},w1(Sg(r,"default",{value:e,enumerable:!0}),e)),D1=(e,t,r)=>t.has(e)||Yy("Cannot "+r),C1=(e,t,r)=>t.has(e)?Yy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),md=(e,t,r)=>(D1(e,t,"access private method"),r),E1=y1(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(){return new Proxy({},{get:()=>c=>c})}var r=/\r\n|[\n\r\u2028\u2029]/;function n(c,f,g){let b=Object.assign({column:0,line:-1},c.start),m=Object.assign({},b,c.end),{linesAbove:v=2,linesBelow:E=3}=g||{},A=b.line,F=b.column,S=m.line,N=m.column,O=Math.max(A-(v+1),0),B=Math.min(f.length,S+E);A===-1&&(O=0),S===-1&&(B=f.length);let z=S-A,Z={};if(z)for(let V=0;V<=z;V++){let J=V+A;if(!F)Z[J]=!0;else if(V===0){let $=f[J-1].length;Z[J]=[F,$-F+1]}else if(V===z)Z[J]=[0,N];else{let $=f[J-V].length;Z[J]=[0,$]}}else F===N?F?Z[A]=[F,0]:Z[A]=!0:Z[A]=[F,N-F];return{start:O,end:B,markerLines:Z}}function i(c,f,g={}){let b=t(),m=c.split(r),{start:v,end:E,markerLines:A}=n(f,m,g),F=f.start&&typeof f.start.column=="number",S=String(E).length,N=c.split(r,E).slice(v,E).map((O,B)=>{let z=v+1+B,Z=` ${` ${z}`.slice(-S)} |`,V=A[z],J=!A[z+1];if(V){let $="";if(Array.isArray(V)){let K=O.slice(0,Math.max(V[0]-1,0)).replace(/[^\t]/g," "),ve=V[1]||1;$=[`
|
|
208
|
-
`,b.gutter(Z.replace(/\d/g," "))," ",K,b.marker("^").repeat(ve)].join(""),J&&g.message&&($+=" "+b.message(g.message))}return[b.marker(">"),b.gutter(Z),O.length>0?` ${O}`:"",$].join("")}else return` ${b.gutter(Z)}${O.length>0?` ${O}`:""}`}).join(`
|
|
209
|
-
`);return g.message&&!F&&(N=`${" ".repeat(S+1)}${g.message}
|
|
210
|
-
${N}`),N}e.codeFrameColumns=i}),F1={};kg(F1,{__debug:()=>IF,check:()=>OF,doc:()=>nw,format:()=>rm,formatWithCursor:()=>iw,getSupportInfo:()=>BF,util:()=>aw,version:()=>lF});var S1=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},If=S1,k1=class{diff(e,t,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let i=this.castInput(e,r),c=this.castInput(t,r),f=this.removeEmpty(this.tokenize(i,r)),g=this.removeEmpty(this.tokenize(c,r));return this.diffWithOptionsObj(f,g,r,n)}diffWithOptionsObj(e,t,r,n){var i;let c=B=>{if(B=this.postProcess(B,r),n){setTimeout(function(){n(B)},0);return}else return B},f=t.length,g=e.length,b=1,m=f+g;r.maxEditLength!=null&&(m=Math.min(m,r.maxEditLength));let v=(i=r.timeout)!==null&&i!==void 0?i:1/0,E=Date.now()+v,A=[{oldPos:-1,lastComponent:void 0}],F=this.extractCommon(A[0],t,e,0,r);if(A[0].oldPos+1>=g&&F+1>=f)return c(this.buildValues(A[0].lastComponent,t,e));let S=-1/0,N=1/0,O=()=>{for(let B=Math.max(S,-b);B<=Math.min(N,b);B+=2){let z,Z=A[B-1],V=A[B+1];Z&&(A[B-1]=void 0);let J=!1;if(V){let K=V.oldPos-B;J=V&&0<=K&&K<f}let $=Z&&Z.oldPos+1<g;if(!J&&!$){A[B]=void 0;continue}if(!$||J&&Z.oldPos<V.oldPos?z=this.addToPath(V,!0,!1,0,r):z=this.addToPath(Z,!1,!0,1,r),F=this.extractCommon(z,t,e,B,r),z.oldPos+1>=g&&F+1>=f)return c(this.buildValues(z.lastComponent,t,e))||!0;A[B]=z,z.oldPos+1>=g&&(N=Math.min(N,B-1)),F+1>=f&&(S=Math.max(S,B+1))}b++};if(n)(function B(){setTimeout(function(){if(b>m||Date.now()>E)return n(void 0);O()||B()},0)})();else for(;b<=m&&Date.now()<=E;){let B=O();if(B)return B}}addToPath(e,t,r,n,i){let c=e.lastComponent;return c&&!i.oneChangePerToken&&c.added===t&&c.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:c.count+1,added:t,removed:r,previousComponent:c.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:c}}}extractCommon(e,t,r,n,i){let c=t.length,f=r.length,g=e.oldPos,b=g-n,m=0;for(;b+1<c&&g+1<f&&this.equals(r[g+1],t[b+1],i);)b++,g++,m++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return m&&!i.oneChangePerToken&&(e.lastComponent={count:m,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=g,b}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){let n=[],i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();let c=n.length,f=0,g=0,b=0;for(;f<c;f++){let m=n[f];if(m.removed)m.value=this.join(r.slice(b,b+m.count)),b+=m.count;else{if(!m.added&&this.useLongestToken){let v=t.slice(g,g+m.count);v=v.map(function(E,A){let F=r[b+A];return F.length>E.length?F:E}),m.value=this.join(v)}else m.value=this.join(t.slice(g,g+m.count));g+=m.count,m.added||(b+=m.count)}}return n}},T1=class extends k1{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},A1=new T1;function _1(e,t,r){return A1.diff(e,t,r)}function R1(e){let t=e.indexOf("\r");return t!==-1?e.charAt(t+1)===`
|
|
211
|
-
`?"crlf":"cr":"lf"}function Tg(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
212
|
-
`;default:return`
|
|
213
|
-
`}}function Vy(e,t){let r;switch(t){case`
|
|
214
|
-
`:r=/\n/gu;break;case"\r":r=/\r/gu;break;case`\r
|
|
215
|
-
`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function N1(e){return If(!1,e,/\r\n?/gu,`
|
|
216
|
-
`)}var zl="string",Ii="array",Ls="cursor",Li="indent",Mi="align",zi="trim",zn="group",Vo="fill",ia="if-break",Hi="indent-if-break",Wi="line-suffix",Ui="line-suffix-boundary",Jr="line",Xo="label",Ma="break-parent",Xy=new Set([Ls,Li,Mi,zi,zn,Vo,ia,Hi,Wi,Ui,Jr,Xo,Ma]),P1=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Lr=P1;function O1(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
|
|
217
|
-
`);)t--;return t<e.length?e.slice(0,t):e}function B1(e){if(typeof e=="string")return zl;if(Array.isArray(e))return Ii;if(!e)return;let{type:t}=e;if(Xy.has(t))return t}var Hl=B1,I1=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function L1(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
218
|
-
Expected it to be 'string' or 'object'.`;if(Hl(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=I1([...Xy].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
219
|
-
Expected it to be ${n}.`}var M1=class extends Error{constructor(t){super(L1(t));ju(this,"name","InvalidDocError");this.doc=t}},Qu=M1,Zy={};function z1(e,t,r,n){let i=[e];for(;i.length>0;){let c=i.pop();if(c===Zy){r(i.pop());continue}r&&i.push(c,Zy);let f=Hl(c);if(!f)throw new Qu(c);if(t?.(c)!==!1)switch(f){case Ii:case Vo:{let g=f===Ii?c:c.parts;for(let b=g.length,m=b-1;m>=0;--m)i.push(g[m]);break}case ia:i.push(c.flatContents,c.breakContents);break;case zn:if(n&&c.expandedStates)for(let g=c.expandedStates.length,b=g-1;b>=0;--b)i.push(c.expandedStates[b]);else i.push(c.contents);break;case Mi:case Li:case Hi:case Xo:case Wi:i.push(c.contents);break;case zl:case Ls:case zi:case Ui:case Jr:case Ma:break;default:throw new Qu(c)}}}var Ag=z1;function Lf(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(c){if(r.has(c))return r.get(c);let f=i(c);return r.set(c,f),f}function i(c){switch(Hl(c)){case Ii:return t(c.map(n));case Vo:return t({...c,parts:c.parts.map(n)});case ia:return t({...c,breakContents:n(c.breakContents),flatContents:n(c.flatContents)});case zn:{let{expandedStates:f,contents:g}=c;return f?(f=f.map(n),g=f[0]):g=n(g),t({...c,contents:g,expandedStates:f})}case Mi:case Li:case Hi:case Xo:case Wi:return t({...c,contents:n(c.contents)});case zl:case Ls:case zi:case Ui:case Jr:case Ma:return t(c);default:throw new Qu(c)}}}function _g(e,t,r){let n=r,i=!1;function c(f){if(i)return!1;let g=t(f);g!==void 0&&(i=!0,n=g)}return Ag(e,c),n}function H1(e){if(e.type===zn&&e.break||e.type===Jr&&e.hard||e.type===Ma)return!0}function W1(e){return _g(e,H1,!1)}function Jy(e){if(e.length>0){let t=Lr(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function U1(e){let t=new Set,r=[];function n(c){if(c.type===Ma&&Jy(r),c.type===zn){if(r.push(c),t.has(c))return!1;t.add(c)}}function i(c){c.type===zn&&r.pop().break&&Jy(r)}Ag(e,n,i,!0)}function j1(e){return e.type===Jr&&!e.hard?e.soft?"":" ":e.type===ia?e.flatContents:e}function G1(e){return Lf(e,j1)}function qy(e){for(e=[...e];e.length>=2&&Lr(!1,e,-2).type===Jr&&Lr(!1,e,-1).type===Ma;)e.length-=2;if(e.length>0){let t=vd(Lr(!1,e,-1));e[e.length-1]=t}return e}function vd(e){switch(Hl(e)){case Li:case Hi:case zn:case Wi:case Xo:{let t=vd(e.contents);return{...e,contents:t}}case ia:return{...e,breakContents:vd(e.breakContents),flatContents:vd(e.flatContents)};case Vo:return{...e,parts:qy(e.parts)};case Ii:return qy(e);case zl:return O1(e);case Mi:case Ls:case zi:case Ui:case Jr:case Ma:break;default:throw new Qu(e)}return e}function Ky(e){return vd(V1(e))}function Y1(e){switch(Hl(e)){case Vo:if(e.parts.every(t=>t===""))return"";break;case zn:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===zn&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Mi:case Li:case Hi:case Wi:if(!e.contents)return"";break;case ia:if(!e.flatContents&&!e.breakContents)return"";break;case Ii:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Lr(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case zl:case Ls:case zi:case Ui:case Jr:case Xo:case Ma:break;default:throw new Qu(e)}return e}function V1(e){return Lf(e,t=>Y1(t))}function X1(e,t=t0){return Lf(e,r=>typeof r=="string"?r0(t,r.split(`
|
|
220
|
-
`)):r)}function Z1(e){if(e.type===Jr)return!0}function J1(e){return _g(e,Z1,!1)}function Mf(e,t){return e.type===Xo?{...e,contents:t(e.contents)}:t(e)}function zf(e){return{type:Li,contents:e}}function $u(e,t){return{type:Mi,contents:t,n:e}}function Qy(e,t={}){return{type:zn,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function q1(e){return $u(Number.NEGATIVE_INFINITY,e)}function K1(e){return $u({type:"root"},e)}function Q1(e){return $u(-1,e)}function $1(e,t){return Qy(e[0],{...t,expandedStates:e})}function eC(e){return{type:Vo,parts:e}}function tC(e,t="",r={}){return{type:ia,breakContents:e,flatContents:t,groupId:r.groupId}}function rC(e,t){return{type:Hi,contents:e,groupId:t.groupId,negate:t.negate}}function Rg(e){return{type:Wi,contents:e}}var nC={type:Ui},Hf={type:Ma},aC={type:zi},Ng={type:Jr,hard:!0},$y={type:Jr,hard:!0,literal:!0},e0={type:Jr},oC={type:Jr,soft:!0},Wl=[Ng,Hf],t0=[$y,Hf],Ul={type:Ls};function r0(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function n0(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=zf(n);n=$u(t%r,n),n=$u(Number.NEGATIVE_INFINITY,n)}return n}function iC(e,t){return e?{type:Xo,label:e,contents:t}:t}function ji(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...ji(n));else{let i=ji(n);i!==""&&r.push(i)}return r}return e.type===ia?{...e,breakContents:ji(e.breakContents),flatContents:ji(e.flatContents)}:e.type===zn?{...e,contents:ji(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(ji)}:e.type===Vo?{type:"fill",parts:e.parts.map(ji)}:e.contents?{...e,contents:ji(e.contents)}:e}function sC(e){let t=Object.create(null),r=new Set;return n(ji(e));function n(c,f,g){var b,m;if(typeof c=="string")return JSON.stringify(c);if(Array.isArray(c)){let v=c.map(n).filter(Boolean);return v.length===1?v[0]:`[${v.join(", ")}]`}if(c.type===Jr){let v=((b=g?.[f+1])==null?void 0:b.type)===Ma;return c.literal?v?"literalline":"literallineWithoutBreakParent":c.hard?v?"hardline":"hardlineWithoutBreakParent":c.soft?"softline":"line"}if(c.type===Ma)return((m=g?.[f-1])==null?void 0:m.type)===Jr&&g[f-1].hard?void 0:"breakParent";if(c.type===zi)return"trim";if(c.type===Li)return"indent("+n(c.contents)+")";if(c.type===Mi)return c.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(c.contents)+")":c.n<0?"dedent("+n(c.contents)+")":c.n.type==="root"?"markAsRoot("+n(c.contents)+")":"align("+JSON.stringify(c.n)+", "+n(c.contents)+")";if(c.type===ia)return"ifBreak("+n(c.breakContents)+(c.flatContents?", "+n(c.flatContents):"")+(c.groupId?(c.flatContents?"":', ""')+`, { groupId: ${i(c.groupId)} }`:"")+")";if(c.type===Hi){let v=[];c.negate&&v.push("negate: true"),c.groupId&&v.push(`groupId: ${i(c.groupId)}`);let E=v.length>0?`, { ${v.join(", ")} }`:"";return`indentIfBreak(${n(c.contents)}${E})`}if(c.type===zn){let v=[];c.break&&c.break!=="propagated"&&v.push("shouldBreak: true"),c.id&&v.push(`id: ${i(c.id)}`);let E=v.length>0?`, { ${v.join(", ")} }`:"";return c.expandedStates?`conditionalGroup([${c.expandedStates.map(A=>n(A)).join(",")}]${E})`:`group(${n(c.contents)}${E})`}if(c.type===Vo)return`fill([${c.parts.map(v=>n(v)).join(", ")}])`;if(c.type===Wi)return"lineSuffix("+n(c.contents)+")";if(c.type===Ui)return"lineSuffixBoundary";if(c.type===Xo)return`label(${JSON.stringify(c.label)}, ${n(c.contents)})`;if(c.type===Ls)return"cursor";throw new Error("Unknown doc type "+c.type)}function i(c){if(typeof c!="symbol")return JSON.stringify(String(c));if(c in t)return t[c];let f=c.description||"symbol";for(let g=0;;g++){let b=f+(g>0?` #${g}`:"");if(!r.has(b))return r.add(b),t[c]=`Symbol.for(${JSON.stringify(b)})`}}}var lC=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function uC(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function cC(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var dC=e=>!(uC(e)||cC(e)),fC=/[^\x20-\x7F]/u;function hC(e){if(!e)return 0;if(!fC.test(e))return e.length;e=e.replace(lC()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=dC(n)?1:2)}return t}var Pg=hC,Hn=Symbol("MODE_BREAK"),Zo=Symbol("MODE_FLAT"),ec=Symbol("cursor"),Og=Symbol("DOC_FILL_PRINTED_LENGTH");function a0(){return{value:"",length:0,queue:[]}}function pC(e,t){return Bg(e,{type:"indent"},t)}function gC(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||a0():t<0?Bg(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Bg(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Bg(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",c=0,f=0,g=0;for(let S of n)switch(S.type){case"indent":v(),r.useTabs?b(1):m(r.tabWidth);break;case"stringAlign":v(),i+=S.n,c+=S.n.length;break;case"numberAlign":f+=1,g+=S.n;break;default:throw new Error(`Unexpected type '${S.type}'`)}return A(),{...e,value:i,length:c,queue:n};function b(S){i+=" ".repeat(S),c+=r.tabWidth*S}function m(S){i+=" ".repeat(S),c+=S}function v(){r.useTabs?E():A()}function E(){f>0&&b(f),F()}function A(){g>0&&m(g),F()}function F(){f=0,g=0}}function Ig(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===ec){r++;continue}for(let c=i.length-1;c>=0;c--){let f=i[c];if(f===" "||f===" ")t++;else{e[n]=i.slice(0,c+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(ec);return t}function Wf(e,t,r,n,i,c){if(r===Number.POSITIVE_INFINITY)return!0;let f=t.length,g=[e],b=[];for(;r>=0;){if(g.length===0){if(f===0)return!0;g.push(t[--f]);continue}let{mode:m,doc:v}=g.pop(),E=Hl(v);switch(E){case zl:b.push(v),r-=Pg(v);break;case Ii:case Vo:{let A=E===Ii?v:v.parts,F=v[Og]??0;for(let S=A.length-1;S>=F;S--)g.push({mode:m,doc:A[S]});break}case Li:case Mi:case Hi:case Xo:g.push({mode:m,doc:v.contents});break;case zi:r+=Ig(b);break;case zn:{if(c&&v.break)return!1;let A=v.break?Hn:m,F=v.expandedStates&&A===Hn?Lr(!1,v.expandedStates,-1):v.contents;g.push({mode:A,doc:F});break}case ia:{let A=(v.groupId?i[v.groupId]||Zo:m)===Hn?v.breakContents:v.flatContents;A&&g.push({mode:m,doc:A});break}case Jr:if(m===Hn||v.hard)return!0;v.soft||(b.push(" "),r--);break;case Wi:n=!0;break;case Ui:if(n)return!1;break}}return!1}function Uf(e,t){let r={},n=t.printWidth,i=Tg(t.endOfLine),c=0,f=[{ind:a0(),mode:Hn,doc:e}],g=[],b=!1,m=[],v=0;for(U1(e);f.length>0;){let{ind:A,mode:F,doc:S}=f.pop();switch(Hl(S)){case zl:{let N=i!==`
|
|
221
|
-
`?If(!1,S,`
|
|
222
|
-
`,i):S;g.push(N),f.length>0&&(c+=Pg(N));break}case Ii:for(let N=S.length-1;N>=0;N--)f.push({ind:A,mode:F,doc:S[N]});break;case Ls:if(v>=2)throw new Error("There are too many 'cursor' in doc.");g.push(ec),v++;break;case Li:f.push({ind:pC(A,t),mode:F,doc:S.contents});break;case Mi:f.push({ind:gC(A,S.n,t),mode:F,doc:S.contents});break;case zi:c-=Ig(g);break;case zn:switch(F){case Zo:if(!b){f.push({ind:A,mode:S.break?Hn:Zo,doc:S.contents});break}case Hn:{b=!1;let N={ind:A,mode:Zo,doc:S.contents},O=n-c,B=m.length>0;if(!S.break&&Wf(N,f,O,B,r))f.push(N);else if(S.expandedStates){let z=Lr(!1,S.expandedStates,-1);if(S.break){f.push({ind:A,mode:Hn,doc:z});break}else for(let Z=1;Z<S.expandedStates.length+1;Z++)if(Z>=S.expandedStates.length){f.push({ind:A,mode:Hn,doc:z});break}else{let V=S.expandedStates[Z],J={ind:A,mode:Zo,doc:V};if(Wf(J,f,O,B,r)){f.push(J);break}}}else f.push({ind:A,mode:Hn,doc:S.contents});break}}S.id&&(r[S.id]=Lr(!1,f,-1).mode);break;case Vo:{let N=n-c,O=S[Og]??0,{parts:B}=S,z=B.length-O;if(z===0)break;let Z=B[O+0],V=B[O+1],J={ind:A,mode:Zo,doc:Z},$={ind:A,mode:Hn,doc:Z},K=Wf(J,[],N,m.length>0,r,!0);if(z===1){K?f.push(J):f.push($);break}let ve={ind:A,mode:Zo,doc:V},se={ind:A,mode:Hn,doc:V};if(z===2){K?f.push(ve,J):f.push(se,$);break}let me=B[O+2],ge={ind:A,mode:F,doc:{...S,[Og]:O+2}};Wf({ind:A,mode:Zo,doc:[Z,V,me]},[],N,m.length>0,r,!0)?f.push(ge,ve,J):K?f.push(ge,se,J):f.push(ge,se,$);break}case ia:case Hi:{let N=S.groupId?r[S.groupId]:F;if(N===Hn){let O=S.type===ia?S.breakContents:S.negate?S.contents:zf(S.contents);O&&f.push({ind:A,mode:F,doc:O})}if(N===Zo){let O=S.type===ia?S.flatContents:S.negate?zf(S.contents):S.contents;O&&f.push({ind:A,mode:F,doc:O})}break}case Wi:m.push({ind:A,mode:F,doc:S.contents});break;case Ui:m.length>0&&f.push({ind:A,mode:F,doc:Ng});break;case Jr:switch(F){case Zo:if(S.hard)b=!0;else{S.soft||(g.push(" "),c+=1);break}case Hn:if(m.length>0){f.push({ind:A,mode:F,doc:S},...m.reverse()),m.length=0;break}S.literal?A.root?(g.push(i,A.root.value),c=A.root.length):(g.push(i),c=0):(c-=Ig(g),g.push(i+A.value),c=A.length);break}break;case Xo:f.push({ind:A,mode:F,doc:S.contents});break;case Ma:break;default:throw new Qu(S)}f.length===0&&m.length>0&&(f.push(...m.reverse()),m.length=0)}let E=g.indexOf(ec);if(E!==-1){let A=g.indexOf(ec,E+1);if(A===-1)return{formatted:g.filter(O=>O!==ec).join("")};let F=g.slice(0,E).join(""),S=g.slice(E+1,A).join(""),N=g.slice(A+1).join("");return{formatted:F+S+N,cursorNodeStart:F.length,cursorNodeText:S}}return{formatted:g.join("")}}function mC(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}var Lg=mC,jl,Mg,jf,vC=class{constructor(e){C1(this,jl),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Lr(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Lr(!1,this.stack,-2)}get node(){return Lr(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Lr(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...md(this,jl,jf).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Lr(!1,e,-2):null}getValue(){return Lr(!1,this.stack,-1)}getNode(e=0){let t=md(this,jl,Mg).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,i=Lr(!1,r,-1);for(let c of t)i=i[c],r.push(c,i);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=md(this,jl,Mg).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,i=Lr(!1,r,-1);for(let c of t)i=i[c],r.push(c,i);try{for(let c=0;c<i.length;++c)r.push(c,i[c]),e(this,c,i),r.length-=2}finally{r.length=n}}map(e,...t){let r=[];return this.each((n,i,c)=>{r[i]=e(n,i,c)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let i of e){if(n===void 0)return!1;let c=null;if(typeof r=="number"&&(c=r,r=this.stack[t--],n=this.stack[t--]),i&&!i(n,r,c))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of md(this,jl,jf).call(this))if(e(t))return t}hasAncestor(e){for(let t of md(this,jl,jf).call(this))if(e(t))return!0;return!1}};jl=new WeakSet,Mg=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},jf=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var bC=vC,o0=new Proxy(()=>{},{get:()=>o0}),zg=o0;function yC(e){return e!==null&&typeof e=="object"}var wC=yC;function*Gf(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=c=>wC(c)&&n(c);for(let c of r(e)){let f=e[c];if(Array.isArray(f))for(let g of f)i(g)&&(yield g);else i(f)&&(yield f)}}function*xC(e,t){let r=[e];for(let n=0;n<r.length;n++){let i=r[n];for(let c of Gf(i,t))yield c,r.push(c)}}function DC(e,t){return Gf(e,t).next().done}function bd(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:c}=t,f=r;for(;f>=0&&f<c;){let g=t.charAt(f);if(e instanceof RegExp){if(!e.test(g))return f}else if(!e.includes(g))return f;i?f--:f++}return f===-1||f===c?f:!1}}var CC=bd(/\s/u),Ms=bd(" "),i0=bd(",; "),s0=bd(/[^\n\r]/u);function EC(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
|
|
223
|
-
`)return t-2;if(i===`
|
|
224
|
-
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
225
|
-
`)return t+2;if(i===`
|
|
226
|
-
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var Gl=EC;function FC(e,t,r={}){let n=Ms(e,r.backwards?t-1:t,r),i=Gl(e,n,r);return n!==i}var zs=FC;function SC(e){return Array.isArray(e)&&e.length>0}var kC=SC,l0=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),TC=e=>Object.keys(e).filter(t=>!l0.has(t));function AC(e){return e?t=>e(t,l0):TC}var Yf=AC;function _C(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"โฆ"),t+(r?" "+r:"")}function Hg(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=_C(e)}function yd(e,t){t.leading=!0,t.trailing=!1,Hg(e,t)}function Yl(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Hg(e,t)}function wd(e,t){t.leading=!1,t.trailing=!0,Hg(e,t)}var Wg=new WeakMap;function Ug(e,t){if(Wg.has(e))return Wg.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:c,locEnd:f}=t;if(!n)return[];let g=(r?.(e,t)??[...Gf(e,{getVisitorKeys:Yf(i)})]).flatMap(b=>n(b)?[b]:Ug(b,t));return g.sort((b,m)=>c(b)-c(m)||f(b)-f(m)),Wg.set(e,g),g}function u0(e,t,r,n){let{locStart:i,locEnd:c}=r,f=i(t),g=c(t),b=Ug(e,r),m,v,E=0,A=b.length;for(;E<A;){let F=E+A>>1,S=b[F],N=i(S),O=c(S);if(N<=f&&g<=O)return u0(S,t,r,S);if(O<=f){m=S,E=F+1;continue}if(g<=N){v=S,A=F;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:F}=n,S=Gg(F,t,r);m&&Gg(F,m,r)!==S&&(m=null),v&&Gg(F,v,r)!==S&&(v=null)}return{enclosingNode:n,precedingNode:m,followingNode:v}}var jg=()=>!1;function RC(e,t){let{comments:r}=e;if(delete e.comments,!kC(r)||!t.printer.canAttachComment)return;let n=[],{printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:c={}},originalText:f}=t,{ownLine:g=jg,endOfLine:b=jg,remaining:m=jg}=c,v=r.map((E,A)=>({...u0(e,E,t),comment:E,text:f,options:t,ast:e,isLastComment:r.length-1===A}));for(let[E,A]of v.entries()){let{comment:F,precedingNode:S,enclosingNode:N,followingNode:O,text:B,options:z,ast:Z,isLastComment:V}=A,J;if(i?J=[A]:(F.enclosingNode=N,F.precedingNode=S,F.followingNode=O,J=[F,B,z,Z,V]),NC(B,z,v,E))F.placement="ownLine",g(...J)||(O?yd(O,F):S?wd(S,F):Yl(N||Z,F));else if(PC(B,z,v,E))F.placement="endOfLine",b(...J)||(S?wd(S,F):O?yd(O,F):Yl(N||Z,F));else if(F.placement="remaining",!m(...J))if(S&&O){let $=n.length;$>0&&n[$-1].followingNode!==O&&d0(n,z),n.push(A)}else S?wd(S,F):O?yd(O,F):Yl(N||Z,F)}if(d0(n,t),!i)for(let E of r)delete E.precedingNode,delete E.enclosingNode,delete E.followingNode}var c0=e=>!/[\S\n\u2028\u2029]/u.test(e);function NC(e,t,r,n){let{comment:i,precedingNode:c}=r[n],{locStart:f,locEnd:g}=t,b=f(i);if(c)for(let m=n-1;m>=0;m--){let{comment:v,precedingNode:E}=r[m];if(E!==c||!c0(e.slice(g(v),b)))break;b=f(v)}return zs(e,b,{backwards:!0})}function PC(e,t,r,n){let{comment:i,followingNode:c}=r[n],{locStart:f,locEnd:g}=t,b=g(i);if(c)for(let m=n+1;m<r.length;m++){let{comment:v,followingNode:E}=r[m];if(E!==c||!c0(e.slice(b,f(v))))break;b=g(v)}return zs(e,b)}function d0(e,t){var r,n;let i=e.length;if(i===0)return;let{precedingNode:c,followingNode:f}=e[0],g=t.locStart(f),b;for(b=i;b>0;--b){let{comment:m,precedingNode:v,followingNode:E}=e[b-1];zg.strictEqual(v,c),zg.strictEqual(E,f);let A=t.originalText.slice(t.locEnd(m),g);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,A,t))??/^[\s(]*$/u.test(A))g=t.locStart(m);else break}for(let[m,{comment:v}]of e.entries())m<b?wd(c,v):yd(f,v);for(let m of[c,f])m.comments&&m.comments.length>1&&m.comments.sort((v,E)=>t.locStart(v)-t.locStart(E));e.length=0}function Gg(e,t,r){let n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function OC(e,t){let r=t-1;r=Ms(e,r,{backwards:!0}),r=Gl(e,r,{backwards:!0}),r=Ms(e,r,{backwards:!0});let n=Gl(e,r,{backwards:!0});return r!==n}var Yg=OC;function f0(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function BC(e,t){var r;let n=e.node,i=[f0(e,t)],{printer:c,originalText:f,locStart:g,locEnd:b}=t;if((r=c.isBlockComment)!=null&&r.call(c,n)){let v=zs(f,b(n))?zs(f,g(n),{backwards:!0})?Wl:e0:" ";i.push(v)}else i.push(Wl);let m=Gl(f,Ms(f,b(n)));return m!==!1&&zs(f,m)&&i.push(Wl),i}function IC(e,t,r){var n;let i=e.node,c=f0(e,t),{printer:f,originalText:g,locStart:b}=t,m=(n=f.isBlockComment)==null?void 0:n.call(f,i);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||zs(g,b(i),{backwards:!0})){let v=Yg(g,b(i));return{doc:Rg([Wl,v?Wl:"",c]),isBlock:m,hasLineSuffix:!0}}return!m||r!=null&&r.hasLineSuffix?{doc:[Rg([" ",c]),Hf],isBlock:m,hasLineSuffix:!0}:{doc:[" ",c],isBlock:m,hasLineSuffix:!1}}function LC(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(g=>!n.has(g)).length===0)return{leading:"",trailing:""};let i=[],c=[],f;return e.each(()=>{let g=e.node;if(n!=null&&n.has(g))return;let{leading:b,trailing:m}=g;b?i.push(BC(e,t)):m&&(f=IC(e,t,f),c.push(f.doc))},"comments"),{leading:i,trailing:c}}function MC(e,t,r){let{leading:n,trailing:i}=LC(e,r);return!n&&!i?t:Mf(t,c=>[n,c,i])}function zC(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var h0=class extends Error{constructor(){super(...arguments);ju(this,"name","ConfigError")}},p0=class extends Error{constructor(){super(...arguments);ju(this,"name","UndefinedParserError")}},HC={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
227
|
-
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
228
|
-
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
229
|
-
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function g0({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of UC(Object.assign({},...e.map(({options:c})=>c),HC)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(c=>!c.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...WC(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(c=>{var f;return((f=c.defaultOptions)==null?void 0:f[i.name])!==void 0}).map(c=>[c.name,c.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*WC(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let c of i.parsers)if(!n.has(c)){n.add(c);let f=r.find(b=>b.parsers&&Object.prototype.hasOwnProperty.call(b.parsers,c)),g=i.name;f!=null&&f.name&&(g+=` (plugin: ${f.name})`),yield{value:c,description:g}}}}function UC(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=Lr(!1,i.default,-1).value),t.push(i)}return t}var jC=(e,t)=>{if(!(e&&t==null))return t.toReversed||!Array.isArray(t)?t.toReversed():[...t].reverse()},GC=jC,m0,v0,b0,y0,w0,YC=((m0=globalThis.Deno)==null?void 0:m0.build.os)==="windows"||((b0=(v0=globalThis.navigator)==null?void 0:v0.platform)==null?void 0:b0.startsWith("Win"))||((w0=(y0=globalThis.process)==null?void 0:y0.platform)==null?void 0:w0.startsWith("win"))||!1;function x0(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function VC(e){return e=x0(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function XC(e){e=x0(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function ZC(e){return YC?XC(e):VC(e)}var JC=ZC,qC=e=>String(e).split(/[/\\]/u).pop();function D0(e,t){if(!t)return;let r=qC(t).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function KC(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}function C0(e,t){if(t){if(String(t).startsWith("file:"))try{t=JC(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function QC(e,t){let r=GC(!1,e.plugins).flatMap(i=>i.languages??[]),n=KC(r,t.language)??D0(r,t.physicalFile)??D0(r,t.file)??C0(r,t.physicalFile)??C0(r,t.file)??void 0;return n?.parsers[0]}var $C=QC,tc={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>tc.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${tc.key(r)}: ${tc.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>tc.value({[e]:t})},E0=new Proxy(String,{get:()=>E0}),Jo=E0,eE=(e,t,{descriptor:r})=>{let n=[`${Jo.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Jo.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},F0=Symbol.for("vnopts.VALUE_NOT_EXIST"),Vf=Symbol.for("vnopts.VALUE_UNCHANGED"),S0=" ".repeat(2),tE=(e,t,r)=>{let{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),c=[];return n&&c.push(k0(e,t,n,r.descriptor)),i&&c.push([k0(e,t,i.title,r.descriptor)].concat(i.values.map(f=>T0(f,r.loggerPrintWidth))).join(`
|
|
230
|
-
`)),A0(c,r.loggerPrintWidth)};function k0(e,t,r,n){return[`Invalid ${Jo.red(n.key(e))} value.`,`Expected ${Jo.blue(r)},`,`but received ${t===F0?Jo.gray("nothing"):Jo.red(n.value(t))}.`].join(" ")}function T0({text:e,list:t},r){let n=[];return e&&n.push(`- ${Jo.blue(e)}`),t&&n.push([`- ${Jo.blue(t.title)}:`].concat(t.values.map(i=>T0(i,r-S0.length).replace(/^|\n/g,`$&${S0}`))).join(`
|
|
231
|
-
`)),A0(n,r)}function A0(e,t){if(e.length===1)return e[0];let[r,n]=e,[i,c]=e.map(f=>f.split(`
|
|
232
|
-
`,1)[0].length);return i>t&&i>c?n:r}var Vg=[],_0=[];function rE(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let c=0;for(;c<n&&e.charCodeAt(c)===t.charCodeAt(c);)c++;if(n-=c,i-=c,n===0)return i;let f,g,b,m,v=0,E=0;for(;v<n;)_0[v]=e.charCodeAt(c+v),Vg[v]=++v;for(;E<i;)for(f=t.charCodeAt(c+E),b=E++,g=E,v=0;v<n;v++)m=f===_0[v]?b:b+1,b=Vg[v],g=Vg[v]=b>g?m>g?g+1:m:m>b?b+1:m;return g}var R0=(e,t,{descriptor:r,logger:n,schemas:i})=>{let c=[`Ignored unknown option ${Jo.yellow(r.pair({key:e,value:t}))}.`],f=Object.keys(i).sort().find(g=>rE(e,g)<3);f&&c.push(`Did you mean ${Jo.blue(r.key(f))}?`),n.warn(c.join(" "))},nE=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function aE(e,t){let r=new e(t),n=Object.create(r);for(let i of nE)i in t&&(n[i]=oE(t[i],r,Hs.prototype[i].length));return n}var Hs=class{static create(e){return aE(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return Vf}};function oE(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var iE=class extends Hs{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},sE=class extends Hs{expected(){return"anything"}validate(){return!0}},lE=class extends Hs{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let i=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);i!==!0&&r.push(i.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);i!==!1&&r.push(...i.map(({value:c})=>({value:[c]})))}return r}forward(e,t){let r=[];for(let n of e){let i=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...i.map(N0))}return r}redirect(e,t){let r=[],n=[];for(let i of e){let c=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in c&&r.push(c.remain),n.push(...c.redirect.map(N0))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function N0({from:e,to:t}){return{from:[e],to:t}}var uE=class extends Hs{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function cE(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function dE(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function fE(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function hE(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function pE(e){return e===Math.floor(e)}function gE(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function mE(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function P0(e){return e===void 0?{}:e}function O0(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return vE((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(O0)}}:{text:t}}function B0(e,t){return e===!0?!0:e===!1?{value:t}:e}function I0(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function L0(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Xg(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>L0(r,t)):[L0(e,t)]}function M0(e,t){let r=Xg(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function vE(e,t){if(!e)throw new Error(t)}var bE=class extends Hs{constructor(e){super(e),this._choices=dE(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(gE).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},yE=class extends Hs{expected(){return"a number"}validate(e,t){return typeof e=="number"}},wE=class extends yE{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&pE(e)}},z0=class extends Hs{expected(){return"a string"}validate(e){return typeof e=="string"}},xE=tc,DE=R0,CE=tE,EE=eE,FE=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:i=xE,unknown:c=DE,invalid:f=CE,deprecated:g=EE,missing:b=()=>!1,required:m=()=>!1,preprocess:v=A=>A,postprocess:E=()=>Vf}=t||{};this._utils={descriptor:i,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:cE(e,"name"),normalizeDefaultResult:P0,normalizeExpectedResult:O0,normalizeDeprecatedResult:I0,normalizeForwardResult:Xg,normalizeRedirectResult:M0,normalizeValidateResult:B0},this._unknownHandler=c,this._invalidHandler=mE(f),this._deprecatedHandler=g,this._identifyMissing=(A,F)=>!(A in F)||b(A,F),this._identifyRequired=m,this._preprocess=v,this._postprocess=E,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=fE()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let i=r.shift(),c=this._applyNormalization(i,t);r.push(...c)}};n();for(let i of Object.keys(this._utils.schemas)){let c=this._utils.schemas[i];if(!(i in t)){let f=P0(c.default(this._utils));"value"in f&&r.push({[i]:f.value})}}n();for(let i of Object.keys(this._utils.schemas)){if(!(i in t))continue;let c=this._utils.schemas[i],f=t[i],g=c.postprocess(f,this._utils);g!==Vf&&(this._applyValidation(g,i,c),t[i]=g)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(e);for(let c of n){let f=this._utils.schemas[c],g=f.preprocess(e[c],this._utils);this._applyValidation(g,c,f);let b=({from:E,to:A})=>{r.push(typeof A=="string"?{[A]:E}:{[A.key]:A.value})},m=({value:E,redirectTo:A})=>{let F=I0(f.deprecated(E,this._utils),g,!0);if(F!==!1)if(F===!0)this._hasDeprecationWarned(c)||this._utils.logger.warn(this._deprecatedHandler(c,A,this._utils));else for(let{value:S}of F){let N={key:c,value:S};if(!this._hasDeprecationWarned(N)){let O=typeof A=="string"?{key:A,value:S}:A;this._utils.logger.warn(this._deprecatedHandler(N,O,this._utils))}}};Xg(f.forward(g,this._utils),g).forEach(b);let v=M0(f.redirect(g,this._utils),g);if(v.redirect.forEach(b),"remain"in v){let E=v.remain;t[c]=c in t?f.overlap(t[c],E,this._utils):E,m({value:E})}for(let{from:E,to:A}of v.redirect)m({value:E,redirectTo:A})}for(let c of i){let f=e[c];this._applyUnknownHandler(c,f,t,(g,b)=>{r.push({[g]:b})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,F0,this._utils)}_partitionOptionKeys(e){let[t,r]=hE(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=B0(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let i=this._unknownHandler(e,t,this._utils);if(i)for(let c of Object.keys(i)){if(this._identifyMissing(c,i))continue;let f=i[c];c in this._utils.schemas?n(c,f):r[c]=f}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Vf){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let i of r){let c=t.override[i];this._applyValidation(c,i,this._utils.schemas[i]),e[i]=c}for(let i of n){let c=t.override[i];this._applyUnknownHandler(i,c,e,(f,g)=>{let b=this._utils.schemas[f];this._applyValidation(g,f,b),e[f]=g})}}}}},Zg;function SE(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:c,descriptor:f}={}){if(n){if(!c)throw new Error("'FlagSchema' option is required.");if(!f)throw new Error("'descriptor' option is required.")}else f=tc;let g=i?Array.isArray(i)?(A,F)=>i.includes(A)?{[A]:F}:void 0:(A,F)=>({[A]:F}):(A,F,S)=>{let{_:N,...O}=S.schemas;return R0(A,F,{...S,schemas:O})},b=kE(t,{isCLI:n,FlagSchema:c}),m=new FE(b,{logger:r,unknown:g,descriptor:f}),v=r!==!1;v&&Zg&&(m._hasDeprecationWarned=Zg);let E=m.normalize(e);return v&&(Zg=m._hasDeprecationWarned),E}function kE(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(sE.create({name:"_"}));for(let i of e)n.push(TE(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(iE.create({name:i.alias,sourceName:i.name}));return n}function TE(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,c={name:i},f,g={};switch(e.type){case"int":f=wE,t&&(c.preprocess=Number);break;case"string":f=z0;break;case"choice":f=bE,c.choices=e.choices.map(b=>b!=null&&b.redirect?{...b,redirect:{to:{key:e.name,value:b.redirect}}}:b);break;case"boolean":f=uE;break;case"flag":f=n,c.flags=r.flatMap(b=>[b.alias,b.description&&b.name,b.oppositeDescription&&`no-${b.name}`].filter(Boolean));break;case"path":f=z0;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?c.validate=(b,m,v)=>e.exception(b)||m.validate(b,v):c.validate=(b,m,v)=>b===void 0||m.validate(b,v),e.redirect&&(g.redirect=b=>b?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(g.deprecated=!0),t&&!e.array){let b=c.preprocess||(m=>m);c.preprocess=(m,v,E)=>v.preprocess(b(Array.isArray(m)?Lr(!1,m,-1):m),E)}return e.array?lE.create({...t?{preprocess:b=>Array.isArray(b)?b:[b]}:{},...g,valueSchema:f.create(c)}):f.create({...c,...g})}var AE=SE,_E=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let i=t[n];if(r(i,n,t))return i}}},H0=_E;function W0(e,t){if(!t)throw new Error("parserName is required.");let r=H0(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new h0(n)}function RE(e,t){if(!t)throw new Error("astFormat is required.");let r=H0(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new h0(n)}function Jg({plugins:e,parser:t}){let r=W0(e,t);return U0(r,t)}function U0(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function NE(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var j0={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function PE(e,t={}){var r;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=$C(n,{physicalFile:n.filepath}),!n.parser)throw new p0(`No parser could be inferred for file "${n.filepath}".`)}else throw new p0("No parser and no file path given, couldn't infer a parser.");let i=g0({plugins:e.plugins,showDeprecated:!0}).options,c={...j0,...Object.fromEntries(i.filter(A=>A.default!==void 0).map(A=>[A.name,A.default]))},f=W0(n.plugins,n.parser),g=await U0(f,n.parser);n.astFormat=g.astFormat,n.locEnd=g.locEnd,n.locStart=g.locStart;let b=(r=f.printers)!=null&&r[g.astFormat]?f:RE(n.plugins,g.astFormat),m=await NE(b,g.astFormat);n.printer=m;let v=b.defaultOptions?Object.fromEntries(Object.entries(b.defaultOptions).filter(([,A])=>A!==void 0)):{},E={...c,...v};for(let[A,F]of Object.entries(E))(n[A]===null||n[A]===void 0)&&(n[A]=F);return n.parser==="json"&&(n.trailingComma="none"),AE(n,i,{passThrough:Object.keys(j0),...t})}var rc=PE,OE=x1(E1());async function BE(e,t){let r=await Jg(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(c){IE(c,e)}return{text:n,ast:i}}function IE(e,t){let{loc:r}=e;if(r){let n=(0,OE.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
|
|
233
|
-
`+n,e.codeFrame=n,e}throw e}var xd=BE;async function LE(e,t,r,n,i){let{embeddedLanguageFormatting:c,printer:{embed:f,hasPrettierIgnore:g=()=>!1,getVisitorKeys:b}}=r;if(!f||c!=="auto")return;if(f.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let m=Yf(f.getVisitorKeys??b),v=[];F();let E=e.stack;for(let{print:S,node:N,pathStack:O}of v)try{e.stack=O;let B=await S(A,t,e,r);B&&i.set(N,B)}catch(B){if(globalThis.PRETTIER_DEBUG)throw B}e.stack=E;function A(S,N){return ME(S,N,r,n)}function F(){let{node:S}=e;if(S===null||typeof S!="object"||g(e))return;for(let O of m(S))Array.isArray(S[O])?e.each(F,O):e.call(F,O);let N=f(e,r);if(N){if(typeof N=="function"){v.push({print:N,node:S,pathStack:[...e.stack]});return}i.set(S,N)}}}async function ME(e,t,r,n){let i=await rc({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:c}=await xd(e,i),f=await n(c,i);return Ky(f)}function zE(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:c,[Symbol.for("printedComments")]:f}=t,{node:g}=e,b=i(g),m=c(g);for(let v of n)i(v)>=b&&c(v)<=m&&f.add(v);return r.slice(b,m)}var HE=zE;async function Xf(e,t){({ast:e}=await Y0(e,t));let r=new Map,n=new bC(e),i=new Map;await LE(n,f,t,Xf,i);let c=await G0(n,t,f,void 0,i);if(zC(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Ul,c];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[c,Ul]}return c;function f(b,m){return b===void 0||b===n?g(m):Array.isArray(b)?n.call(()=>g(m),...b):n.call(()=>g(m),b)}function g(b){let m=n.node;if(m==null)return"";let v=m&&typeof m=="object"&&b===void 0;if(v&&r.has(m))return r.get(m);let E=G0(n,t,f,b,i);return v&&r.set(m,E),E}}function G0(e,t,r,n,i){var c;let{node:f}=e,{printer:g}=t,b;switch((c=g.hasPrettierIgnore)!=null&&c.call(g,e)?b=HE(e,t):i.has(f)?b=i.get(f):b=g.print(e,t,r,n),f){case t.cursorNode:b=Mf(b,m=>[Ul,m,Ul]);break;case t.nodeBeforeCursor:b=Mf(b,m=>[m,Ul]);break;case t.nodeAfterCursor:b=Mf(b,m=>[Ul,m]);break}return g.printComment&&(!g.willPrintOwnComments||!g.willPrintOwnComments(e,t))&&(b=MC(e,b,t)),b}async function Y0(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,RC(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function WE(e,t){let{cursorOffset:r,locStart:n,locEnd:i}=t,c=Yf(t.printer.getVisitorKeys),f=F=>n(F)<=r&&i(F)>=r,g=e,b=[e];for(let F of xC(e,{getVisitorKeys:c,filter:f}))b.push(F),g=F;if(DC(g,{getVisitorKeys:c}))return{cursorNode:g};let m,v,E=-1,A=Number.POSITIVE_INFINITY;for(;b.length>0&&(m===void 0||v===void 0);){g=b.pop();let F=m!==void 0,S=v!==void 0;for(let N of Gf(g,{getVisitorKeys:c})){if(!F){let O=i(N);O<=r&&O>E&&(m=N,E=O)}if(!S){let O=n(N);O>=r&&O<A&&(v=N,A=O)}}}return{nodeBeforeCursor:m,nodeAfterCursor:v}}var V0=WE;function UE(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=Yf(n),c=r.ignoredProperties??new Set;return f(e);function f(g,b){if(!(g!==null&&typeof g=="object"))return g;if(Array.isArray(g))return g.map(A=>f(A,b)).filter(Boolean);let m={},v=new Set(i(g));for(let A in g)!Object.prototype.hasOwnProperty.call(g,A)||c.has(A)||(v.has(A)?m[A]=f(g[A],g):m[A]=g[A]);let E=r(g,m,b);if(E!==null)return E??m}}var jE=UE,GE=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){let i=t[n];if(r(i,n,t))return n}return-1}},YE=GE,VE=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function XE(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>Z0.has(i.type)&&n.has(i))}function X0(e){let t=YE(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function ZE(e,t,{locStart:r,locEnd:n}){let i=e.node,c=t.node;if(i===c)return{startNode:i,endNode:c};let f=r(e.node);for(let b of X0(t.parentNodes))if(r(b)>=f)c=b;else break;let g=n(t.node);for(let b of X0(e.parentNodes)){if(n(b)<=g)i=b;else break;if(i===c)break}return{startNode:i,endNode:c}}function qg(e,t,r,n,i=[],c){let{locStart:f,locEnd:g}=r,b=f(e),m=g(e);if(!(t>m||t<b||c==="rangeEnd"&&t===b||c==="rangeStart"&&t===m)){for(let v of Ug(e,r)){let E=qg(v,t,r,n,[e,...i],c);if(E)return E}if(!n||n(e,i[0]))return{node:e,parentNodes:i}}}function JE(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var Z0=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),qE=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function J0(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return JE(t.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return Z0.has(t.type);case"graphql":return qE.has(t.kind);case"vue":return t.tag!=="root"}return!1}function KE(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:c,locEnd:f}=t;zg.ok(i>n);let g=e.slice(n,i).search(/\S/u),b=g===-1;if(!b)for(n+=g;i>n&&!/\S/u.test(e[i-1]);--i);let m=qg(r,n,t,(F,S)=>J0(t,F,S),[],"rangeStart"),v=b?m:qg(r,i,t,F=>J0(t,F),[],"rangeEnd");if(!m||!v)return{rangeStart:0,rangeEnd:0};let E,A;if(VE(t)){let F=XE(m,v);E=F,A=F}else({startNode:E,endNode:A}=ZE(m,v,t));return{rangeStart:Math.min(c(E),c(A)),rangeEnd:Math.max(f(E),f(A))}}var q0="\uFEFF",K0=Symbol("cursor");async function Q0(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await xd(e,t);t.cursorOffset>=0&&(t={...t,...V0(n,t)});let c=await Xf(n,t);r>0&&(c=n0([Wl,c],r,t.tabWidth));let f=Uf(c,t);if(r>0){let b=f.formatted.trim();f.cursorNodeStart!==void 0&&(f.cursorNodeStart-=f.formatted.indexOf(b),f.cursorNodeStart<0&&(f.cursorNodeStart=0,f.cursorNodeText=f.cursorNodeText.trimStart()),f.cursorNodeStart+f.cursorNodeText.length>b.length&&(f.cursorNodeText=f.cursorNodeText.trimEnd())),f.formatted=b+Tg(t.endOfLine)}let g=t[Symbol.for("comments")];if(t.cursorOffset>=0){let b,m,v,E;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&f.cursorNodeText)if(v=f.cursorNodeStart,E=f.cursorNodeText,t.cursorNode)b=t.locStart(t.cursorNode),m=i.slice(b,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");b=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let B=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;m=i.slice(b,B)}else b=0,m=i,v=0,E=f.formatted;let A=t.cursorOffset-b;if(m===E)return{formatted:f.formatted,cursorOffset:v+A,comments:g};let F=m.split("");F.splice(A,0,K0);let S=E.split(""),N=_1(F,S),O=v;for(let B of N)if(B.removed){if(B.value.includes(K0))break}else O+=B.count;return{formatted:f.formatted,cursorOffset:O,comments:g}}return{formatted:f.formatted,cursorOffset:-1,comments:g}}async function QE(e,t){let{ast:r,text:n}=await xd(e,t),{rangeStart:i,rangeEnd:c}=KE(n,t,r),f=n.slice(i,c),g=Math.min(i,n.lastIndexOf(`
|
|
234
|
-
`,i)+1),b=n.slice(g,i).match(/^\s*/u)[0],m=Lg(b,t.tabWidth),v=await Q0(f,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=c?t.cursorOffset-i:-1,endOfLine:"lf"},m),E=v.formatted.trimEnd(),{cursorOffset:A}=t;A>c?A+=E.length-f.length:v.cursorOffset>=0&&(A=v.cursorOffset+i);let F=n.slice(0,i)+E+n.slice(c);if(t.endOfLine!=="lf"){let S=Tg(t.endOfLine);A>=0&&S===`\r
|
|
235
|
-
`&&(A+=Vy(F.slice(0,A),`
|
|
236
|
-
`)),F=If(!1,F,`
|
|
237
|
-
`,S)}return{formatted:F,cursorOffset:A,comments:v.comments}}function Kg(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function $0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Kg(e,r,-1),n=Kg(e,n,0),i=Kg(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function ew(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:c}=$0(e,t),f=e.charAt(0)===q0;if(f&&(e=e.slice(1),r--,n--,i--),c==="auto"&&(c=R1(e)),e.includes("\r")){let g=b=>Vy(e.slice(0,Math.max(b,0)),`\r
|
|
238
|
-
`);r-=g(r),n-=g(n),i-=g(i),e=N1(e)}return{hasBOM:f,text:e,options:$0(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:c})}}async function tw(e,t){let r=await Jg(t);return!r.hasPragma||r.hasPragma(e)}async function $E(e,t){var r;let n=await Jg(t);return(r=n.hasIgnorePragma)==null?void 0:r.call(n,e)}async function rw(e,t){let{hasBOM:r,text:n,options:i}=ew(e,await rc(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await tw(n,i)||i.checkIgnorePragma&&await $E(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let c;return i.rangeStart>0||i.rangeEnd<n.length?c=await QE(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await tw(n,i)&&(n=i.printer.insertPragma(n)),c=await Q0(n,i)),r&&(c.formatted=q0+c.formatted,c.cursorOffset>=0&&c.cursorOffset++),c}async function eF(e,t,r){let{text:n,options:i}=ew(e,await rc(t)),c=await xd(n,i);return r&&(r.preprocessForPrint&&(c.ast=await Y0(c.ast,i)),r.massage&&(c.ast=jE(c.ast,i))),c}async function tF(e,t){t=await rc(t);let r=await Xf(e,t);return Uf(r,t)}async function rF(e,t){let r=sC(e),{formatted:n}=await rw(r,{...t,parser:"__js_expression"});return n}async function nF(e,t){t=await rc(t);let{ast:r}=await xd(e,t);return t.cursorOffset>=0&&(t={...t,...V0(r,t)}),Xf(r,t)}async function aF(e,t){return Uf(e,await rc(t))}var nw={};kg(nw,{builders:()=>oF,printer:()=>iF,utils:()=>sF});var oF={join:r0,line:e0,softline:oC,hardline:Wl,literalline:t0,group:Qy,conditionalGroup:$1,fill:eC,lineSuffix:Rg,lineSuffixBoundary:nC,cursor:Ul,breakParent:Hf,ifBreak:tC,trim:aC,indent:zf,indentIfBreak:rC,align:$u,addAlignmentToDoc:n0,markAsRoot:K1,dedentToRoot:q1,dedent:Q1,hardlineWithoutBreakParent:Ng,literallineWithoutBreakParent:$y,label:iC,concat:e=>e},iF={printDocToString:Uf},sF={willBreak:W1,traverseDoc:Ag,findInDoc:_g,mapDoc:Lf,removeLines:G1,stripTrailingHardline:Ky,replaceEndOfLine:X1,canBreak:J1},lF="3.6.2",aw={};kg(aw,{addDanglingComment:()=>Yl,addLeadingComment:()=>yd,addTrailingComment:()=>wd,getAlignmentSize:()=>Lg,getIndentSize:()=>pF,getMaxContinuousCount:()=>vF,getNextNonSpaceNonCommentCharacter:()=>yF,getNextNonSpaceNonCommentCharacterIndex:()=>AF,getPreferredQuote:()=>xF,getStringWidth:()=>Pg,hasNewline:()=>zs,hasNewlineInRange:()=>CF,hasSpaces:()=>FF,isNextLineEmpty:()=>PF,isNextLineEmptyAfterIndex:()=>tm,isPreviousLineEmpty:()=>RF,makeString:()=>kF,skip:()=>bd,skipEverythingButNewLine:()=>s0,skipInlineComment:()=>Qg,skipNewline:()=>Gl,skipSpaces:()=>Ms,skipToLineEnd:()=>i0,skipTrailingComment:()=>$g,skipWhitespace:()=>CC});function uF(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var Qg=uF;function cF(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?s0(e,t):t}var $g=cF;function dF(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ms(e,n),n=Qg(e,n),n=$g(e,n),n=Gl(e,n);return n}var em=dF;function fF(e,t){let r=null,n=t;for(;n!==r;)r=n,n=i0(e,n),n=Qg(e,n),n=Ms(e,n);return n=$g(e,n),n=Gl(e,n),n!==!1&&zs(e,n)}var tm=fF;function hF(e,t){let r=e.lastIndexOf(`
|
|
239
|
-
`);return r===-1?0:Lg(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var pF=hF;function gF(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function mF(e,t){let r=e.match(new RegExp(`(${gF(t)})+`,"gu"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)}var vF=mF;function bF(e,t){let r=em(e,t);return r===!1?"":e.charAt(r)}var yF=bF,Zf="'",ow='"';function wF(e,t){let r=t===!0||t===Zf?Zf:ow,n=r===Zf?ow:Zf,i=0,c=0;for(let f of e)f===r?i++:f===n&&c++;return i>c?n:r}var xF=wF;function DF(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
240
|
-
`)return!0;return!1}var CF=DF;function EF(e,t,r={}){return Ms(e,r.backwards?t-1:t,r)!==t}var FF=EF;function SF(e,t,r){let n=t==='"'?"'":'"',i=If(!1,e,/\\(.)|(["'])/gsu,(c,f,g)=>f===n?f:g===t?"\\"+g:g||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(f)?f:"\\"+f));return t+i+t}var kF=SF;function TF(e,t,r){return em(e,r(t))}function AF(e,t){return arguments.length===2||typeof t=="number"?em(e,t):TF(...arguments)}function _F(e,t,r){return Yg(e,r(t))}function RF(e,t){return arguments.length===2||typeof t=="number"?Yg(e,t):_F(...arguments)}function NF(e,t,r){return tm(e,r(t))}function PF(e,t){return arguments.length===2||typeof t=="number"?tm(e,t):NF(...arguments)}function Vl(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var iw=Vl(rw);async function rm(e,t){let{formatted:r}=await iw(e,{...t,cursorOffset:-1});return r}async function OF(e,t){return await rm(e,t)===e}var BF=Vl(g0,0),IF={parse:Vl(eF),formatAST:Vl(tF),formatDoc:Vl(rF),printToDoc:Vl(nF),printDocToString:Vl(aF)};function LF(e=""){const{actions:t,query:r}=La(),{getHtml:n}=gd(),[i,c]=L.useState(e),[f,g]=L.useState(e),[b,m]=L.useState("idle"),[v,E]=L.useState(""),[A,F]=L.useState(!1),S=L.useCallback(async()=>{if(i.trim()){F(!0);try{const K=await rm(i,{parser:"html",plugins:[h1],printWidth:80,tabWidth:2,useTabs:!1,semi:!0,singleQuote:!1,trailingComma:"none",bracketSpacing:!0,htmlWhitespaceSensitivity:"css"});c(K)}catch(K){console.error("Error formatting HTML:",K);const ve=i.replace(/>\s*</g,"><").replace(/\n\s*\n/g,`
|
|
241
|
-
`).split(`
|
|
242
|
-
`).map(se=>se.trim()).filter(se=>se).join(`
|
|
243
|
-
`);c(ve)}finally{F(!1)}}},[i]),N=L.useRef(null),O=L.useRef(!1),B=i!==f;L.useEffect(()=>{if(!O.current&&t&&r)try{const K=n();K&&K.trim()&&(c(K),g(K)),O.current=!0}catch(K){console.warn("Could not initialize code from canvas:",K)}},[t,r,n]);const z=L.useCallback(async()=>{if(!(!t||!i.trim())){m("processing"),E("");try{await new Promise(K=>setTimeout(K,500)),m("success")}catch(K){console.error("Error applying code to canvas:",K),m("error"),E(K instanceof Error?K.message:"Unknown error occurred")}}},[t,i]),Z=L.useCallback(K=>{c(K),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{K.trim()?z():m("idle")},1e3)},[z]),V=L.useCallback(()=>{g(i),m("success");try{localStorage.setItem("editor_saved_code",i)}catch(K){console.warn("Could not save to localStorage:",K)}},[i]),J=L.useCallback(()=>{c(f),m("idle"),E(""),N.current&&clearTimeout(N.current)},[f]),$=L.useCallback(()=>{N.current&&clearTimeout(N.current),m("idle"),E("")},[]);return L.useEffect(()=>()=>{N.current&&clearTimeout(N.current)},[]),{codeValue:i,savedCodeValue:f,conversionStatus:b,hasUnsavedChanges:B,errorMessage:v,isFormattingCode:A,handleCodeChange:Z,handleSave:V,handleRevert:J,handleClose:$,applyCodeToCanvas:z,formatCode:S}}const MF=({onClose:e,onFormat:t,onSave:r,isFormattingCode:n,codeValue:i,hasUnsavedChanges:c,conversionStatus:f})=>w.jsxs("div",{className:"flex items-center justify-between border-b border-gray-700 bg-[#23272f] px-4 py-2",children:[w.jsxs("div",{className:"flex items-center space-x-3",children:[w.jsx("div",{className:"group relative",children:w.jsx("button",{className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white",onClick:e,"aria-label":"Close Code Panel",children:w.jsx(Te.FiX,{size:18})})}),w.jsx("span",{className:"text-base font-semibold text-white",children:"Code Editor"}),w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx("div",{className:`h-2 w-2 rounded-full ${c?"bg-yellow-500":"bg-green-500"}`}),w.jsx("span",{className:`text-xs font-medium ${c?"text-yellow-400":"text-green-400"}`,children:c?"Unsaved":"Saved"})]})]}),w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsxs("div",{className:"group relative",children:[w.jsx("button",{onClick:t,disabled:n||!i.trim(),className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white disabled:cursor-not-allowed disabled:text-gray-600","aria-label":"Format HTML",children:n?w.jsx(Te.FiLoader,{size:18,className:"animate-spin"}):w.jsx(Te.FiFileText,{size:18})}),w.jsx("span",{className:"absolute bottom-full left-1/2 z-10 mb-2 -translate-x-1/2 transform whitespace-nowrap rounded bg-gray-900 px-2 py-1 text-xs text-white opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:n?"Formatting HTML...":"Format HTML"})]}),w.jsxs("div",{className:"group relative",children:[w.jsx("button",{onClick:r,disabled:f==="processing"||!c,className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white disabled:cursor-not-allowed disabled:text-gray-600","aria-label":"Save HTML",children:w.jsx(Te.FiSave,{size:18})}),w.jsx("span",{className:"absolute bottom-full left-1/2 z-10 mb-2 -translate-x-1/2 transform whitespace-nowrap rounded bg-gray-900 px-2 py-1 text-xs text-white opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:"Save"})]})]})]});function zF({onClose:e}){const{codeValue:t,conversionStatus:r,hasUnsavedChanges:n,handleCodeChange:i,handleSave:c,handleClose:f,formatCode:g,isFormattingCode:b}=LF();return w.jsxs("div",{className:"flex h-full w-1/2 flex-col border-r border-gray-200 bg-[#181c24]",children:[w.jsx(MF,{onClose:()=>{f(),e()},onFormat:g,onSave:c,isFormattingCode:b,codeValue:t,hasUnsavedChanges:n,conversionStatus:r}),w.jsx("div",{className:"flex-1 p-0",children:w.jsx(Cw,{height:"100%",defaultLanguage:"html",theme:"vs-dark",value:t,onChange:m=>i(m||""),options:{fontSize:16,padding:{top:10},minimap:{enabled:!1},wordWrap:"on",scrollBeyondLastLine:!1,formatOnPaste:!0,formatOnType:!0,autoIndent:"full",tabSize:2,insertSpaces:!0,automaticLayout:!0,folding:!0,lineNumbers:"on",renderWhitespace:"selection",bracketPairColorization:{enabled:!0},guides:{bracketPairs:!0,indentation:!0},suggest:{showKeywords:!0,showSnippets:!0}}})})]})}const HF={DELETE_NODE:{keys:["Backspace","Delete"],description:"Remove o bloco selecionado"},COPY:{keys:["Meta+c","Ctrl+c"],description:"Copiar conteรบdo"},PASTE:{keys:["Meta+v","Ctrl+v"],description:"Colar conteรบdo"},UNDO:{keys:["Meta+z","Ctrl+z"],description:"Desfazer aรงรฃo"},REDO:{keys:["Meta+Shift+Z","Ctrl+Shift+Z"],description:"Refazer aรงรฃo"},SAVE:{keys:["Meta+S","Ctrl+S"],description:"Salvar template"}},WF=(e,t)=>({onDeleteNode:()=>{const r=t.getEvent("selected").last();r&&e.delete(r)},onCopy:()=>{const r=t.getEvent("selected").last();if(!r){console.warn("[Copy] No node selected");return}try{const n=t.node(r).toNodeTree();console.log("[Copy] Node tree:",n);const i={type:"craftjs-copy",nodeTree:n,selectedId:r,timestamp:Date.now()};console.log("[Copy] Copy data:",i);const c=JSON.stringify(i,(f,g)=>{if(!["dom","rules","_hydrationTimestamp","events"].includes(f))return f==="type"&&typeof g=="function"?{resolvedName:g.name||g.displayName||"Unknown"}:g});navigator.clipboard.writeText(c),console.log("[Copy] Successfully copied to clipboard")}catch(n){console.error("[Copy] Failed to copy node:",n)}},onPaste:async()=>{console.log("[Paste] Starting paste operation...");try{const r=await navigator.clipboard.readText();if(console.log("[Paste] Clipboard text:",r),!r){console.warn("[Paste] Clipboard is empty");return}let n;try{n=JSON.parse(r),console.log("[Paste] Parsed clipboard data:",n)}catch(E){console.warn("[Paste] Invalid clipboard data:",E);return}if(!n||n.type!=="craftjs-copy"||!n.nodeTree){console.warn("[Paste] Clipboard does not contain valid node data");return}const i=n.nodeTree;console.log("[Paste] Node tree to paste:",i);const f=(E=>{const A={...E},F={},S=()=>Math.random().toString(36).substring(2,15);if(A.nodes&&(Object.keys(A.nodes).forEach(N=>{F[N]=S()}),A.rootNodeId&&F[A.rootNodeId]&&(A.rootNodeId=F[A.rootNodeId])),A.nodes){const N={};Object.keys(A.nodes).forEach(O=>{const B={...A.nodes[O]},z=F[O];if(B.id=z,B.events=B.events||{selected:!1,dragged:!1,hovered:!1},B.dom=null,B.rules=B.rules||{canDrag:()=>!0,canDrop:()=>!0,canMoveIn:()=>!0,canMoveOut:()=>!0},B.data){if(B.data.props=B.data.props||{},B.data.custom=B.data.custom||{},B.data.hidden=B.data.hidden||!1,B.data.isCanvas=B.data.isCanvas||!1,B.data.nodes=B.data.nodes||[],B.data.linkedNodes=B.data.linkedNodes||{},B.data.displayName=B.data.displayName||B.data.type?.displayName||"Component",B.data.parent&&F[B.data.parent]&&(B.data.parent=F[B.data.parent]),B.data.nodes&&Array.isArray(B.data.nodes)&&(B.data.nodes=B.data.nodes.map(Z=>F[Z]||Z)),B.data.linkedNodes){const Z={};Object.keys(B.data.linkedNodes).forEach(V=>{const J=B.data.linkedNodes[V];Z[V]=F[J]||J}),B.data.linkedNodes=Z}if(B.data.type&&typeof B.data.type=="object"&&B.data.type.resolvedName){const Z=pd.find(V=>{const J=typeof V.component=="function"?V.component.name||V.component.displayName:"";return V.id===B.data.type.resolvedName||J===B.data.type.resolvedName});Z?(B.data.type=Z.component,console.log("[Paste] Resolved component:",B.data.type.resolvedName,"to",Z.component)):console.warn("[Paste] Could not resolve component:",B.data.type.resolvedName)}}N[z]=B}),A.nodes=N}return A})(i);console.log("[Paste] Reconstructed node tree:",f);const g=t.getEvent("selected").last();let b="ROOT",m;if(g){const E=t.node(g).get();if(console.log("[Paste] Selected node data:",E),E.data.isCanvas)b=g,m=(E.data.nodes||[]).length,console.log("[Paste] Inserting as child of canvas node:",g,"at index:",m);else{const A=E.data.parent;A?(b=A,m=t.node(b).get().data.nodes.indexOf(g)+1,console.log("[Paste] Inserting after selected node in parent:",b,"at index:",m)):(b="ROOT",m=t.node("ROOT").get().data.nodes.indexOf(g)+1,console.log("[Paste] Inserting after selected node in ROOT at index:",m))}}else m=t.node("ROOT").get().data.nodes.length,console.log("[Paste] No selection, adding to end of ROOT at index:",m);console.log("[Paste] Will insert at parent:",b,"index:",m),console.log("[Paste] Using addNodeTree with reconstructed nodeTree:",f),e.addNodeTree(f,b,m);const v=f.rootNodeId;v&&(console.log("[Paste] Selecting newly pasted node:",v),e.selectNode(v)),console.log("[Paste] Node pasted successfully")}catch(r){console.error("[Paste] Failed to paste:",r),r instanceof Error&&console.error("[Paste] Error stack:",r.stack)}},onUndo:()=>e.history.undo(),onRedo:()=>e.history.redo(),onSave:()=>{const r=t.serialize();console.log("Saving JSON:",r)}});function UF(){const{actions:e,query:t}=La(),r=i=>i.toLowerCase().charAt(0).toUpperCase()+i.toLowerCase().slice(1),n=i=>i.includes("_")?`on${i.split("_").map(r).join("")}`:`on${r(i)}`;L.useEffect(()=>{const i=WF(e,t),c=f=>{const g=navigator.platform.includes("Mac"),b=[];(g&&f.metaKey||!g&&f.ctrlKey)&&b.push(g?"Meta":"Ctrl"),f.shiftKey&&b.push("Shift"),b.push(f.key);const m=b.join("+");Object.entries(HF).forEach(([v,E])=>{if(E.keys.includes(m)){f.preventDefault();const A=i[n(v)];console.log("Executing shortcut:",v,n(v)),A?.()}})};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[e,t])}function jF({hasSelectedComponent:e}){return w.jsx("div",{className:"border-b border-[#e8e7ee] bg-white p-4",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("h2",{className:"font-semibent text-lg text-[#170f4f]",children:"Properties"}),e&&w.jsx("button",{className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-gray-50 hover:text-gray-600",children:w.jsx(Te.FiX,{size:18})})]})})}const GF=({name:e})=>w.jsx("div",{className:"border-b border-[#e8e7ee] bg-gray-50 p-4",children:w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded bg-[#170f4f]",children:w.jsx("span",{className:"text-xs font-medium text-white",children:e.charAt(0).toUpperCase()})}),w.jsx("div",{className:"flex-1",children:w.jsx("h3",{className:"text-sm font-medium text-[#170f4f]",children:e})})]})});function YF(){const{selected:e,actions:t,query:r}=La(m=>({selected:m.events.selected})),n=()=>{if(e&&e.size>0){const m=Array.from(e)[0];t.delete(m)}},i=()=>{if(e&&e.size>0){const m=Array.from(e)[0];console.log("Clone component:",m)}},c=()=>{if(e&&e.size>0){const m=Array.from(e)[0];console.log("Move up component:",m)}},f=()=>{if(e&&e.size>0){const m=Array.from(e)[0];console.log("Move down component:",m)}};L.useEffect(()=>{const m=v=>{if(e&&e.size>0){const E=v.target;!(E.tagName==="INPUT"||E.tagName==="TEXTAREA"||E.contentEditable==="true")&&(v.key==="Backspace"||v.key==="Delete")&&(v.preventDefault(),n())}};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[e]);const b=(()=>{if(!e||e.size===0)return null;const m=Array.from(e)[0],v=r.node(m).get();return v?{id:m,type:v.data.type,displayName:v.data.displayName||String(v.data.type),props:v.data.props,isCanvas:v.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:v.data.parent}:null})();return b?w.jsxs("div",{className:"space-y-3 p-4",children:[w.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxs("button",{onClick:i,disabled:!b.isDuplicateable,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50",children:[w.jsx(Te.FiCopy,{size:14}),"Duplicate"]}),w.jsxs("button",{onClick:n,disabled:!b.isDeletable,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:border-red-300 hover:bg-red-50 hover:text-red-600 disabled:cursor-not-allowed disabled:opacity-50",children:[w.jsx(Te.FiTrash2,{size:14}),"Delete"]})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxs("button",{onClick:c,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[w.jsx(Te.FiArrowUp,{size:14}),"Move Up"]}),w.jsxs("button",{onClick:f,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[w.jsx(Te.FiArrowDown,{size:14}),"Move Down"]})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxs("button",{className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[w.jsx(Te.FiLock,{size:14}),"Lock"]}),w.jsxs("button",{className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[w.jsx(Te.FiEyeOff,{size:14}),"Hide"]})]})]}):null}function VF(){const{selected:e,query:t}=La(m=>({selected:m.events.selected})),[r,n]=L.useState(""),i=L.useRef(null),c=()=>{if(i.current){const m=i.current.textContent||"";navigator.clipboard.writeText(m).then(()=>{console.log("HTML copied to clipboard")})}},f=m=>{try{const v=t.node(m).get();return v&&v.dom?v.dom.outerHTML.replace(/data-cy="[^"]*"/g,"").replace(/data-craft-id="[^"]*"/g,"").replace(/data-node-id="[^"]*"/g,"").replace(/class="[^"]*craft[^"]*"/g,'class=""').replace(/class="[^"]*ring-[^"]*"/g,'class=""').replace(/class="[^"]*hover:[^"]*"/g,'class=""').replace(/class="[^"]*transition-[^"]*"/g,'class=""').replace(/class="[^"]*duration-[^"]*"/g,'class=""').replace(/class="[^"]*opacity-[^"]*"/g,'class=""').replace(/class="[^"]*cursor-[^"]*"/g,'class=""').replace(/class="[^"]*min-h-screen[^"]*"/g,'class=""').replace(/class="[^"]*bg-white[^"]*"/g,'class=""').replace(/class=""/g,"").replace(/\s+/g," ").trim()||"<!-- No HTML available -->":"<!-- Component not found in DOM -->"}catch(v){return console.error("Error getting component HTML:",v),"<!-- Error getting component HTML -->"}};L.useEffect(()=>{if(e&&e.size>0){const m=Array.from(e)[0];if(t.node(m).get()){const E=f(m);n(E)}}else n("")},[e,t]);const b=(()=>{if(!e||e.size===0)return null;const m=Array.from(e)[0],v=t.node(m).get();return v?{id:m,type:v.data.type,displayName:v.data.displayName||String(v.data.type),props:v.data.props,isCanvas:v.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:v.data.parent}:null})();return b?w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Component ID"}),w.jsx("input",{type:"text",value:b.id,readOnly:!0,className:"w-full rounded-none border border-[#e8e7ee] bg-gray-50 px-3 py-2 text-xs focus:outline-none"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Component Parent"}),w.jsx("input",{type:"text",value:String(b.parent),readOnly:!0,className:"w-full rounded-none border border-[#e8e7ee] bg-gray-50 px-3 py-2 text-xs focus:outline-none"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Properties"}),w.jsx("div",{className:"rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:w.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-600",children:JSON.stringify(b?.props,null,2)})})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[w.jsx("label",{className:"block text-xs font-medium text-gray-700",children:"Component HTML"}),w.jsx("button",{onClick:c,className:"rounded-none p-1 text-gray-400 transition-colors duration-200 hover:bg-gray-100 hover:text-gray-600",title:"Copy HTML to clipboard",children:w.jsx(Te.FiClipboard,{size:14})})]}),w.jsx("div",{className:"rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:w.jsx("pre",{ref:i,className:"whitespace-pre-wrap font-mono text-xs text-gray-600",children:r||"<!-- No HTML available -->"})})]}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("span",{className:"inline-flex items-center rounded bg-blue-100 px-2 py-1 text-xs font-medium text-blue-800",children:b.isCanvas?"Canvas":"Component"}),b.isDeletable&&w.jsx("span",{className:"inline-flex items-center rounded bg-green-100 px-2 py-1 text-xs font-medium text-green-800",children:"Deletable"}),b.isDuplicateable&&w.jsx("span",{className:"inline-flex items-center rounded bg-purple-100 px-2 py-1 text-xs font-medium text-purple-800",children:"Duplicatable"})]})]}):null}const nc=({title:e,icon:t,children:r,defaultOpen:n=!1,className:i=""})=>{const c=L.useRef(null),[f,g]=L.useState(n),[b,m]=L.useState(n?void 0:0),v=L.useRef(null);L.useEffect(()=>{c.current&&c.current.parentElement&&c.current.parentElement.firstElementChild===c.current&&!n&&(g(!0),m(void 0))},[n]),L.useEffect(()=>{if(v.current)if(f){const A=v.current.scrollHeight;m(A)}else m(0)},[f]);const E=()=>{g(!f)};return w.jsxs("div",{ref:c,className:`overflow-hidden border border-[#E8E7EE] ${i}`,children:[w.jsxs("button",{onClick:E,className:"flex w-full items-center justify-between border-b border-[#E8E7EE] bg-white px-4 py-3 transition-colors hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[#170F4F]",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[t,w.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:e})]}),w.jsx(Te.FiChevronDown,{size:16,className:`text-[#A29FB9] transition-transform duration-200 ${f?"rotate-0":"-rotate-90"}`})]}),w.jsx("div",{ref:v,style:{height:b,overflow:"hidden",transition:"height 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},"data-testid":`collapse-content-${e.replace(/\s+/g,"-").toLowerCase()}`,children:f&&w.jsx("div",{className:"bg-white p-4",children:r})})]})};function XF(){const{actions:{setProp:e},style:{backgroundColor:t="#ffffff",padding:r=16,margin:n=8,columns:i=1,columnSpacing:c=16,alignment:f="left",minHeight:g=100,border:b="",borderRadius:m="",width:v="",height:E=""}={}}=ln(S=>({style:S.data.props.style||{}})),A=()=>{i<6&&e(S=>S.style.columns=i+1)},F=()=>{i>1&&e(S=>S.style.columns=i-1)};return w.jsxs(w.Fragment,{children:[w.jsx(nc,{title:"Background",icon:w.jsx(Te.FiEdit3,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("input",{type:"color",value:t,onChange:S=>e(N=>N.style.backgroundColor=S.target.value),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Background color"}),w.jsx("input",{type:"text",value:t,onChange:S=>e(N=>N.style.backgroundColor=S.target.value),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#ffffff"})]})}),w.jsx(nc,{title:"Spacing",icon:w.jsx(Te.FiMove,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Padding"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[r,"px"]})]}),w.jsx("input",{type:"range",min:"0",max:"80",step:"4",value:r,onChange:S=>e(N=>N.style.padding=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${r/80*100}%, #E8E7EE ${r/80*100}%, #E8E7EE 100%)`}})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Margin"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[n,"px"]})]}),w.jsx("input",{type:"range",min:"0",max:"60",step:"4",value:n,onChange:S=>e(N=>N.style.margin=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${n/60*100}%, #E8E7EE ${n/60*100}%, #E8E7EE 100%)`}})]})]})}),w.jsx(nc,{title:"Layout",icon:w.jsx(Te.FiLayout,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Columns"}),w.jsx("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:i})]}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("button",{onClick:F,disabled:i<=1,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:w.jsx(Te.FiMinus,{size:14})}),w.jsx("div",{className:"flex flex-1 justify-center py-1",children:w.jsx("div",{className:"flex gap-1",children:Array.from({length:i},(S,N)=>w.jsx("div",{className:"h-8 w-4 border border-[#170F4F] bg-[#170F4F]"},N))})}),w.jsx("button",{onClick:A,disabled:i>=6,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:w.jsx(Te.FiPlus,{size:14})})]})]}),i>1&&w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Column Gap"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[c,"px"]})]}),w.jsx("input",{type:"range",min:"0",max:"40",step:"2",value:c,onChange:S=>e(N=>N.style.columnSpacing=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${c/40*100}%, #E8E7EE ${c/40*100}%, #E8E7EE 100%)`}})]}),w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Alignment"}),w.jsx("div",{className:"grid grid-cols-3 gap-1",children:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}].map(S=>w.jsx("button",{onClick:()=>e(N=>N.style.alignment=S.value),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${f===S.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:S.label},S.value))})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Min Height"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[g,"px"]})]}),w.jsx("input",{type:"range",min:"50",max:"400",step:"25",value:g,onChange:S=>e(N=>N.style.minHeight=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${(g-50)/350*100}%, #E8E7EE ${(g-50)/350*100}%, #E8E7EE 100%)`}})]})]})}),w.jsx(nc,{title:"Border & Size",icon:w.jsx(Te.FiSquare,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border Radius"}),w.jsx("div",{className:"grid grid-cols-4 gap-1",children:[{value:"",label:"0"},{value:"4px",label:"4px"},{value:"8px",label:"8px"},{value:"16px",label:"16px"}].map(S=>w.jsx("button",{onClick:()=>e(N=>N.style.borderRadius=S.value),className:`border border-[#E8E7EE] px-2 py-2 text-xs transition-all ${m===S.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:S.label},S.value))})]}),w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border"}),w.jsxs("div",{className:"mb-2 grid grid-cols-2 gap-2",children:[w.jsx("button",{onClick:()=>e(S=>S.style.border=""),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${b?"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]":"border-[#170F4F] bg-[#170F4F] text-white"}`,children:"None"}),w.jsx("button",{onClick:()=>e(S=>S.style.border="1px solid #E8E7EE"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${b?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"Light"})]}),w.jsx("input",{type:"text",value:b,onChange:S=>e(N=>N.style.border=S.target.value),placeholder:"Custom (e.g., 2px solid #170F4F)",className:"w-full border border-[#E8E7EE] px-3 py-2 text-xs transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]"})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Width"}),w.jsxs("select",{value:v||"100%",onChange:S=>e(N=>N.style.width=S.target.value),className:"w-full border border-[#E8E7EE] px-2 py-2 text-xs transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",children:[w.jsx("option",{value:"100%",children:"Full"}),w.jsx("option",{value:"75%",children:"3/4"}),w.jsx("option",{value:"50%",children:"1/2"}),w.jsx("option",{value:"25%",children:"1/4"}),w.jsx("option",{value:"auto",children:"Auto"})]})]}),w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Height"}),w.jsxs("select",{value:E||"auto",onChange:S=>e(N=>N.style.height=S.target.value),className:"w-full border border-[#E8E7EE] px-2 py-2 text-xs transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",children:[w.jsx("option",{value:"auto",children:"Auto"}),w.jsx("option",{value:"200px",children:"Small"}),w.jsx("option",{value:"400px",children:"Medium"}),w.jsx("option",{value:"600px",children:"Large"}),w.jsx("option",{value:"100vh",children:"Full"})]})]})]})]})}),w.jsx(nc,{title:"Layout",icon:w.jsx(Te.FiLayout,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Columns"}),w.jsx("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:i})]}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("button",{onClick:F,disabled:i<=1,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:w.jsx(Te.FiMinus,{size:14})}),w.jsx("div",{className:"flex flex-1 justify-center py-1",children:w.jsx("div",{className:"flex gap-1",children:Array.from({length:i},(S,N)=>w.jsx("div",{className:"h-8 w-4 border border-[#170F4F] bg-[#170F4F]"},N))})}),w.jsx("button",{onClick:A,disabled:i>=6,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:w.jsx(Te.FiPlus,{size:14})})]})]}),i>1&&w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Column Gap"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[c,"px"]})]}),w.jsx("input",{type:"range",min:"0",max:"40",step:"2",value:c,onChange:S=>e(N=>N.style.columnSpacing=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${c/40*100}%, #E8E7EE ${c/40*100}%, #E8E7EE 100%)`}})]}),w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Alignment"}),w.jsx("div",{className:"grid grid-cols-3 gap-1",children:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}].map(S=>w.jsx("button",{onClick:()=>e(N=>N.style.alignment=S.value),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${f===S.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:S.label},S.value))})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Min Height"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[g,"px"]})]}),w.jsx("input",{type:"range",min:"50",max:"400",step:"25",value:g,onChange:S=>e(N=>N.style.minHeight=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${(g-50)/350*100}%, #E8E7EE ${(g-50)/350*100}%, #E8E7EE 100%)`}})]})]})})]})}function ZF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"},child:[]}]})(e)}function JF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",x2:"10",y1:"4",y2:"4"},child:[]},{tag:"line",attr:{x1:"14",x2:"5",y1:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"15",x2:"9",y1:"4",y2:"20"},child:[]}]})(e)}function qF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 7V4h16v3"},child:[]},{tag:"path",attr:{d:"M5 20h6"},child:[]},{tag:"path",attr:{d:"M13 4 8 20"},child:[]},{tag:"path",attr:{d:"m15 15 5 5"},child:[]},{tag:"path",attr:{d:"m20 15-5 5"},child:[]}]})(e)}function KF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"4 7 4 4 20 4 20 7"},child:[]},{tag:"line",attr:{x1:"9",x2:"15",y1:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"4",y2:"20"},child:[]}]})(e)}function QF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 4v6a6 6 0 0 0 12 0V4"},child:[]},{tag:"line",attr:{x1:"4",x2:"20",y1:"20",y2:"20"},child:[]}]})(e)}const $F=["Inter","Roboto","Arial","Georgia","Times New Roman","Montserrat","Lato","Oswald","Poppins"],eS=[{label:"Lighter",value:"lighter"},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Bolder",value:"bolder"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}];function tS(){const{actions:{setProp:e},style:t={}}=ln(n=>({style:n.data.props.style})),r=L.useCallback(n=>{e(i=>{i.style={...i.style,...n}})},[e]);return w.jsx(nc,{title:"Typography",icon:w.jsx(KF,{size:14,className:"text-[#170F4F]"}),defaultOpen:!0,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Font"}),w.jsx("select",{value:t.fontFamily||"Inter",onChange:n=>r({fontFamily:n.target.value}),className:"w-full border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",children:$F.map(n=>w.jsx("option",{value:n,style:{fontFamily:n},children:n},n))})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Size"}),w.jsx("input",{type:"number",min:8,max:96,value:t.fontSize||20,onChange:n=>r({fontSize:Number(n.target.value)}),className:"w-full border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Weight"}),w.jsx("select",{value:t.fontWeight||"normal",onChange:n=>r({fontWeight:n.target.value}),className:"w-full border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",children:eS.map(({label:n,value:i})=>w.jsx("option",{value:i,children:n},i))})]})]})]}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Te.FiMove,{size:14,className:"text-[#170F4F]"}),w.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Alignment"})]}),w.jsx("div",{className:"flex gap-2",children:["left","center","right","justify"].map(n=>w.jsx("button",{className:`rounded border px-3 py-2 text-xs font-medium transition-all focus:outline-none focus:ring-2 focus:ring-[#170F4F] ${t.textAlign===n?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({textAlign:n}),children:n.charAt(0).toUpperCase()+n.slice(1)},n))})]}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(qF,{size:14,className:"text-[#170F4F]"}),w.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Formatting"})]}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("button",{className:`rounded border px-3 py-2 text-xs font-bold ${t?.fontWeight==="bold"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({fontWeight:t?.fontWeight==="bold"?"normal":"bold"}),children:w.jsx(ZF,{size:14,className:"text-[#170F4F]"})}),w.jsx("button",{className:`rounded border px-3 py-2 text-xs italic ${t?.fontStyle==="italic"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({fontStyle:t?.fontStyle==="italic"?"normal":"italic"}),children:w.jsx(JF,{size:14,className:"text-[#170F4F]"})}),w.jsx("button",{className:`rounded border px-3 py-2 text-xs underline ${t?.textDecoration==="underline"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({textDecoration:t?.textDecoration==="underline"?"none":"underline"}),children:w.jsx(QF,{size:14,className:"text-[#170F4F]"})})]})]}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Te.FiEdit3,{size:14,className:"text-[#170F4F]"}),w.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Text Color"})]}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("input",{type:"color",value:t.color||"#000000",onChange:n=>r({color:n.target.value}),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Text color"}),w.jsx("input",{type:"text",value:t.color||"#000000",onChange:n=>r({color:n.target.value}),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#000000"})]})]})]})})}const rS=[{id:"typography",component:tS},{id:"default",component:XF}];function nS(){const{selected:e,query:t}=La(i=>({selected:i.events.selected}));if(!e||e.size===0)return w.jsx("div",{className:"flex h-full items-center justify-center text-gray-500",children:w.jsxs("div",{className:"text-center",children:[w.jsx(Te.FiSettings,{size:48,className:"mx-auto mb-4 text-gray-300"}),w.jsx("p",{className:"text-sm",children:"Select a component to see its settings"})]})});const r=Array.from(e)[0],n=t.node(r).get();if(!n)return null;if(n&&n.data.custom&&n.data.custom.settings){const i=n.data.custom.settings,f=(Array.isArray(i)?i:[i]).map(g=>rS.find(b=>b.id===g)).filter(Boolean);if(f.length>0)return w.jsx(w.Fragment,{children:f.map(g=>{const b=g.component;return L.createElement(lg,{id:r,related:!0},w.jsx(b,{}))})})}return w.jsx("div",{className:"p-4",children:w.jsx("p",{className:"text-sm text-gray-500",children:"No custom settings available for this component."})})}const aS=[{id:"settings",label:"Settings",icon:Te.FiSettings},{id:"info",label:"Info",icon:Te.FiInfo},{id:"actions",label:"Actions",icon:Te.FiEye}];function oS(){const{selected:e,query:t}=La(f=>({selected:f.events.selected})),[r,n]=L.useState("settings"),i=L.useMemo(()=>({settings:w.jsx(nS,{}),info:w.jsx(VF,{}),actions:w.jsx(YF,{})}),[]),c=L.useMemo(()=>{if(!e||e.size===0)return null;const f=Array.from(e)[0],g=t.node(f).get();return g?{id:f,type:g.data.type,displayName:g.data.displayName||String(g.data.type),props:g.data.props,isCanvas:g.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:g.data.parent}:null},[e,t]);return w.jsxs("div",{className:"flex h-full w-80 flex-col border-l border-[#e8e7ee] bg-white",children:[w.jsx(jF,{hasSelectedComponent:e&&e.size>0}),c&&w.jsx(GF,{name:String(c.displayName)}),c&&w.jsx("div",{className:"flex border-b border-[#e8e7ee]",children:aS.map(f=>{const g=f.icon;return w.jsxs("button",{onClick:()=>n(f.id),className:`flex flex-1 items-center justify-center gap-2 px-3 py-2 text-xs font-medium transition-colors duration-200 ${r===f.id?"border-b-2 border-[#170f4f] bg-white text-[#170f4f]":"text-gray-500 hover:bg-gray-50 hover:text-[#170f4f]"}`,children:[w.jsx(g,{size:14}),f.label]},f.id)})}),w.jsx("div",{className:"flex-1 overflow-y-auto",children:i[r]})]})}var sa=(e=>(e.CONTAINER="Container",e.TEXT="Text",e.BUTTON="Button",e))(sa||{});const nm={[sa.TEXT]:{tags:["p","h1","h2","h3","h4","h5","h6","span","label","small","strong","em","b","i","u"],defaultTag:"span"},[sa.CONTAINER]:{tags:["div","section","article"],defaultTag:"div"},[sa.BUTTON]:{tags:["button","a"],defaultTag:"button"}};function iS(e){if(console.log("Minifying HTML:",e),!e)return"";let t=e;return t=t.replace(/<!--([\s\S]*?)-->/g,""),t=t.replace(/>\s+</g,"><"),t=t.replace(/\s{2,}/g," "),t=t.trim(),t=t.replace(/\s+(\w+)=""/g,""),t=t.replace(/\s+(\w+)="\1"/g,""),t=t.replace(/<(?!img|br|hr|input|meta|link|div)([a-zA-Z0-9]+)(\s*)><\/\1>/g,""),t=t.replace(/\s+>/g,">"),t=t.replace(/<\s+/g,"<"),t=t.replace(/ /g," "),t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,'"'),t=t.replace(/'/g,"'"),t=t.replace(/^\s*\n/gm,""),t=t.replace(/>([^<]*)</g,(r,n)=>n.trim().length===0?"><":`>${n.replace(/^\s+|\s+$/g,"")}<`),console.log("Minified HTML:",t),t}function sS(e){for(const t in nm)if(nm[t].tags.includes(e))return t;return null}function lS(e,t){const n={[sa.CONTAINER]:"box",[sa.TEXT]:"text",[sa.BUTTON]:"button"}[e];return t.find(i=>i.id===n)}function uS(e,t){console.log("ImportHtml input:",e);const r=Object.values(nm).flatMap(S=>S.tags),n=Fw(e,{allowedTags:r,allowedAttributes:{"*":["style","class","src","alt"]},allowedSchemes:["http","https","data"]});console.log("Sanitized HTML:",n);const i=iS(n),c=Ew.parseDocument(i);console.log("Parsed DOM:",c);const f={};let g=1;function b(){return`node-${g++}`}function m(S,N=null){if(S.type==="text"){const O=S?.data?.trim();if(!O)return null;if(N&&f[N]&&f[N].__componentKey===sa.TEXT)return f[N].props.text=(f[N].props.text||"")+O,null;const B=b();return f[B]={id:B,type:sa.TEXT,props:{text:O},parent:N,isCanvas:!1,displayName:sa.TEXT,custom:{},hidden:!1,nodes:[],linkedNodes:{},__componentKey:sa.TEXT},B}if(S.type==="tag"){const O=S,B=O.name?.toLowerCase();console.log("Processing tag:",B);let z=sS(B);console.log("Component key found:",z),z||(z=sa.CONTAINER),console.log("Final component key:",z);const Z=lS(z,t);if(console.log("Config found:",Z),!Z)return console.log("No config found, returning null"),null;const V=b();console.log("Generated ID:",V);const J=[];let $="";const K=z===sa.TEXT;if(O.children&&O.children.length>0)for(const me of O.children)if(me.type==="text"&&K){const ge=me?.data?.trim();ge&&($+=ge)}else{const ge=m(me,V);ge&&J.push(ge)}const ve=Object.fromEntries(Object.entries(O.attribs??{}));if(ve.style&&typeof ve.style=="string"){const me={};ve.style.split(";").filter(Boolean).forEach(ge=>{const[Qe,pe]=ge.split(":").map(tt=>tt&&tt.trim());if(!Qe||!pe)return;const Ie=Qe.replace(/-([a-z])/g,tt=>tt[1].toUpperCase());me[Ie]=pe}),Object.keys(me).length>0?ve.style=me:delete ve.style}else typeof ve.style!="object"&&delete ve.style;K&&$&&(ve.text=$);const se=Z.id;return f[V]={id:V,type:se,props:ve,nodes:J,parent:N,displayName:se,isCanvas:Z.isCanvas??!0,custom:{},hidden:!1,linkedNodes:{},__componentKey:z},V}return null}const v=c.children.filter(S=>S.type==="tag"||S.type==="text");console.log("Root elements found:",v);const E="ROOT",A=[];for(const S of v){console.log("Processing root element:",S);const N=m(S,E);console.log("Child ID returned:",N),N&&A.push(N)}console.log("Root child IDs:",A),f[E]={id:E,type:"div",props:{"data-cy":"canvas",className:"bg-white h-full",style:{overflow:"visible",position:"relative",minHeight:"100%",zIndex:1,maxWidth:1200,width:"100%"}},nodes:A,isCanvas:!0,displayName:"div",custom:{},hidden:!1,linkedNodes:{},__componentKey:"ROOT"},console.log("Final nodesMap:",f);const F={};return Object.entries(f).forEach(([S,N])=>{console.log(`Processing node ${S}:`,N);const{...O}=N;S==="ROOT"?F[S]={type:O.type,isCanvas:O.isCanvas,props:O.props||{},displayName:O.displayName||O.type,custom:O.custom||{},hidden:O.hidden||!1,nodes:O.nodes||[],linkedNodes:O.linkedNodes||{}}:F[S]={type:{resolvedName:O.type},isCanvas:O.isCanvas,props:O.props||{},displayName:O.displayName||O.type,custom:O.custom||{},hidden:O.hidden||!1,nodes:O.nodes||[],linkedNodes:O.linkedNodes||{},parent:O.parent||"ROOT"},console.log(`Serialized node ${S}:`,F[S])}),console.log("Final craftSerialized:",F),F}const cS=({isOpen:e,onClose:t,onImport:r})=>{const[n,i]=L.useState(""),c=()=>{const f=uS(n,pd);r(f),i(""),t()};return e?w.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",children:w.jsxs("div",{className:"flex w-full max-w-lg flex-col rounded-lg bg-white p-6 shadow-xl",children:[w.jsx("h2",{className:"mb-4 text-xl font-semibold text-gray-900",children:"Importar HTML"}),w.jsx("textarea",{className:"mb-4 h-40 w-full rounded border border-gray-300 p-2 font-mono text-sm",placeholder:"Cole seu HTML aqui...",value:n,onChange:f=>i(f.target.value)}),w.jsxs("div",{className:"flex justify-end gap-2",children:[w.jsx("button",{onClick:t,className:"rounded bg-gray-100 px-4 py-2 text-gray-700 hover:bg-gray-200",children:"Cancelar"}),w.jsx("button",{onClick:c,className:"bg-primary-600 hover:bg-primary-700 rounded px-4 py-2 text-white",children:"Importar"})]})]})}):null};function dS({blocks:e}){const{connectors:t}=La(),[r,n]=L.useState(""),[i,c]=L.useState(new Set),f=L.useMemo(()=>r.trim()?e.filter(E=>E.label.toLowerCase().includes(r.toLowerCase())||E.category?.toLowerCase().includes(r.toLowerCase())):e,[e,r]),g=E=>{c(A=>{const F=new Set(A);return F.has(E)?F.delete(E):F.add(E),F})},b=E=>w.jsxs("div",{ref:A=>{A&&t.create(A,L.createElement(E.component,{}),{})},className:"group flex cursor-move flex-col items-center gap-2 border border-[#E8E7EE] bg-white p-3 text-center transition-all duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",draggable:!0,onDragStart:A=>{A.currentTarget.style.opacity="0.5"},onDragEnd:A=>{A.currentTarget.style.opacity="1"},title:`Drag to add ${E.label} component`,children:[w.jsx("div",{className:"flex h-10 w-10 items-center justify-center bg-[#E8E7EE] text-lg font-medium text-[#170F4F] transition-all duration-200 group-hover:bg-[#00BAC7] group-hover:text-white",children:E.icon}),w.jsx("span",{className:"text-xs font-medium leading-tight text-[#170F4F] transition-colors duration-200",children:E.label})]},E.id),m=f.reduce((E,A)=>{const F=A.category||"other";return E[F]||(E[F]=[]),E[F].push(A),E},{}),v={layout:"Layout",content:"Content",interactive:"Interactive",media:"Media",dynamic:"Dynamic",other:"Other"};return w.jsxs("div",{className:"flex h-full flex-col",children:[w.jsx("div",{className:"border-b border-[#E8E7EE] bg-[#F5F5F7] p-3",children:w.jsxs("div",{className:"relative",children:[w.jsx("input",{type:"text",placeholder:"Search components...",value:r,onChange:E=>n(E.target.value),className:"w-full border border-[#E8E7EE] bg-white px-3 py-2 pl-10 text-sm text-[#170F4F] placeholder-[#A29FB9] transition-all duration-200 focus:border-[#00BAC7] focus:bg-[#CCF1F4] focus:outline-none"}),w.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 transform text-sm text-[#A29FB9]",children:"๐"}),r&&w.jsx("button",{onClick:()=>n(""),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-[#A29FB9] transition-colors duration-200 hover:text-[#170F4F]",children:"โ"})]})}),w.jsxs("div",{className:"flex-1 overflow-y-auto p-3",children:[Object.entries(m).map(([E,A])=>{const F=i.has(E);return w.jsxs("div",{className:"mb-5 last:mb-0",children:[w.jsxs("button",{onClick:()=>g(E),className:"mb-3 flex w-full items-center gap-3 border border-[#E8E7EE] bg-[#F5F5F7] p-2 text-[#170F4F] transition-all duration-200 hover:bg-[#E8E7EE]",children:[w.jsx("div",{className:"flex h-4 w-4 items-center justify-center text-current",children:w.jsx("span",{className:`transition-transform duration-200 ${F?"rotate-0":"rotate-90"}`,children:"โถ"})}),w.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wide",children:v[E]||E}),w.jsx("div",{className:"h-px flex-1 bg-current opacity-30"}),w.jsx("span",{className:"text-xs font-medium",children:A.length})]}),!F&&w.jsx("div",{className:"grid grid-cols-2 gap-2",children:A.map(b)})]},E)}),Object.entries(m).length===0&&w.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[w.jsx("div",{className:"mb-3 flex h-12 w-12 items-center justify-center border border-[#170F4F] bg-[#E8E7EE]",children:w.jsx("span",{className:"text-lg text-[#170F4F]",children:"๐ฆ"})}),w.jsx("h3",{className:"mb-1 text-sm font-medium text-[#170F4F]",children:r?"No components found":"No blocks available"}),w.jsx("p",{className:"text-xs text-[#A29FB9]",children:r?"Try different search terms":"Add components to get started"})]})]})]})}const fS=e=>pd.find(r=>{const n=r.label.toLowerCase(),i=r.id.toLowerCase(),c=e.toLowerCase();return n===c||i===c})?.icon||w.jsx(Te.FiMousePointer,{size:16});function hS(){const[e,t]=L.useState(new Set),{nodes:r,actions:n,selected:i}=La(m=>({nodes:m.nodes,selected:m.events.selected})),c=m=>{const v=new Set(e);v.has(m)?v.delete(m):v.add(m),t(v)},f=(m,v=0)=>{const E=r[m];if(!E)return null;const A=E.data.isCanvas,F=E.data.nodes||[],S=E.data.displayName||(typeof E.data.type=="string"?E.data.type:E.data.type?.displayName)||m,N=i&&i.has(m),O=typeof E.data.name=="string"?E.data.name:E.data?.displayName||"",B=F.length>0,z=e.has(m);return w.jsxs("div",{className:"flex flex-col",children:[w.jsxs("div",{className:"flex w-full items-center",children:[B&&w.jsx("button",{onClick:()=>c(m),className:"mr-1 flex h-5 w-5 items-center justify-center rounded transition-colors hover:bg-gray-100",style:{marginLeft:v*8},children:z?w.jsx(Te.FiChevronRight,{size:12,className:"text-gray-400"}):w.jsx(Te.FiChevronDown,{size:12,className:"text-gray-400"})}),w.jsxs("button",{style:{marginLeft:B?0:v*8+20},className:`group flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-left transition-all duration-200 ${N?"bg-[#170f4f] text-white shadow-sm":"text-gray-700 hover:bg-gray-50 hover:text-[#170f4f]"} `,onClick:()=>n.selectNode(m),children:[w.jsx("div",{className:`flex h-5 w-5 items-center justify-center rounded transition-all duration-200 ${N?"text-white":"text-[#170f4f] group-hover:text-[#170f4f]"}`,children:fS(O)}),w.jsx("span",{className:"truncate text-xs font-medium",children:S}),B&&w.jsx("span",{className:`ml-auto rounded px-1 py-0.5 text-xs ${N?"bg-white/20 text-white":"bg-gray-200 text-gray-500 group-hover:bg-[#170f4f]/20 group-hover:text-[#170f4f]"}`,children:F.length})]})]}),A&&B&&!z&&w.jsx("div",{className:"ml-2",children:F.map(Z=>f(Z,v+1))})]},m)},b=r.ROOT?.data?.nodes||[];return w.jsxs("div",{className:"flex h-full flex-col",children:[w.jsxs("div",{className:"flex items-center gap-2 border-b border-gray-100 p-3",children:[w.jsx(Te.FiLayers,{size:14,className:"text-[#170f4f]"}),w.jsx("h3",{className:"text-sm font-medium text-gray-900",children:"Layers"}),w.jsx("div",{className:"h-px flex-1 bg-gray-200"})]}),w.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:b.length===0?w.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[w.jsx("div",{className:"mb-2 flex h-10 w-10 items-center justify-center rounded-lg bg-gray-100",children:w.jsx(Te.FiLayers,{size:16,className:"text-gray-400"})}),w.jsx("p",{className:"mb-1 text-xs text-gray-500",children:"No layers yet"}),w.jsx("p",{className:"text-xs text-gray-400",children:"Add components to see them here"})]}):w.jsx("div",{className:"space-y-0.5",children:b.map(m=>f(m,0))})})]})}const pS=({onExportHTML:e,onDataSource:t,blocks:r=pd})=>{const{actions:n}=La(),[i,c]=L.useState("blocks"),[f,g]=L.useState(!1);return w.jsxs("div",{className:"flex h-full w-64 flex-col overflow-hidden border-r border-[#E8E7EE] bg-white",children:[w.jsxs("div",{className:"flex-shrink-0 border-gray-200",children:[w.jsx("h2",{className:"border-b border-[#E8E7EE] p-3 text-sm font-semibold text-[#170F4F]",children:"Actions"}),w.jsxs("div",{className:"space-y-1 border-b border-[#E8E7EE] p-3",children:[w.jsxs("button",{onClick:e,className:"flex w-full items-center gap-2 border border-[#E8E7EE] px-3 py-2 text-sm text-[#170F4F] transition-colors duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",children:[w.jsx(Te.FiDownload,{size:14}),"Export HTML"]}),w.jsxs("button",{onClick:t,className:"flex w-full items-center gap-2 border border-[#E8E7EE] px-3 py-2 text-sm text-[#170F4F] transition-colors duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",children:[w.jsx(Te.FiDatabase,{size:14}),"DataSource"]})]}),w.jsxs("div",{className:"flex border-b border-[#E8E7EE]",children:[w.jsx("button",{className:`flex-1 border-b py-2 text-sm font-medium transition-colors duration-200 ${i==="blocks"?"border-[#170F4F] text-[#170F4F]":"border-transparent text-[#A29FB9] hover:text-[#00BAC7]"}`,onClick:()=>c("blocks"),children:"Blocks"}),w.jsx("button",{className:`flex-1 border-b py-2 text-sm font-medium transition-colors duration-200 ${i==="layers"?"border-[#170F4F] text-[#170F4F]":"border-transparent text-[#A29FB9] hover:text-[#00BAC7]"}`,onClick:()=>c("layers"),children:"Layers"})]})]}),w.jsx("div",{className:"flex-1 overflow-hidden",children:i==="blocks"?w.jsx(dS,{blocks:r}):w.jsx(hS,{})}),w.jsx(cS,{isOpen:f,onClose:()=>g(!1),onImport:b=>n.deserialize(b)})]})};function sw(e){let t=`<!DOCTYPE html>
|
|
244
|
-
<html lang="en">
|
|
245
|
-
<head>
|
|
246
|
-
<meta charset="UTF-8">
|
|
247
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
248
|
-
<title>Bolttech Page</title>
|
|
249
|
-
<style>
|
|
250
|
-
* {
|
|
251
|
-
margin: 0;
|
|
252
|
-
padding: 0;
|
|
253
|
-
box-sizing: border-box;
|
|
254
|
-
}
|
|
255
|
-
body {
|
|
256
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
257
|
-
line-height: 1.5;
|
|
258
|
-
color: #333;
|
|
259
|
-
}
|
|
260
|
-
.page-container {
|
|
261
|
-
max-width: 1200px;
|
|
262
|
-
margin: 0 auto;
|
|
263
|
-
padding: 20px;
|
|
264
|
-
}
|
|
265
|
-
</style>
|
|
266
|
-
</head>
|
|
267
|
-
<body>
|
|
268
|
-
<div class="page-container">
|
|
269
|
-
${e}
|
|
270
|
-
</div>
|
|
271
|
-
</body>
|
|
272
|
-
</html>`;t=t.replace(/\s+/g," ").replace(/>\s+</g,"><").trim();const r=new Blob([t],{type:"text/html"}),n=URL.createObjectURL(r),i=document.createElement("a");i.href=n,i.download="bolttech-page.html",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n)}const gS=({hasChildren:e})=>{const{device:t}=gd();return e?null:w.jsx("div",{className:`pointer-events-none absolute inset-0 left-auto right-auto z-10 flex items-center justify-center ${t==="mobile"?"w-[10%]":"w-[20%]"}`,children:w.jsxs("div",{className:"mx-auto p-6 text-center",children:[w.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center border border-[#170F4F] bg-[#E8E7EE]",children:w.jsx("span",{className:"text-2xl text-[#170F4F]",children:"๐"})}),w.jsx("h3",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"Start building your page"}),w.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Drag components from the sidebar to create your page layout."})]})})},mS=({hasCanvasContent:e,showCodePanel:t})=>w.jsxs("div",{className:`${t?"w-1/2":"w-full"} mx-auto flex h-full flex-1 items-start justify-center overflow-scroll bg-gradient-to-br from-gray-100 to-gray-200 p-6 transition-all duration-300`,style:{maxHeight:"calc(100vh - 72px)"},children:[w.jsx(gS,{hasChildren:e}),w.jsx(gD,{children:w.jsx(kf,{canvas:!0,id:"canvas",is:"div","data-cy":"canvas",className:"relative flex-1 border border-gray-300 bg-white shadow-lg",style:{zIndex:1,minHeight:"85vh",height:"min-content",maxWidth:Uy.desktop.width,transition:"max-width 0.2s"}})})]}),vS=({canvasSize:e,showCodePanel:t,onPreviewModeToggle:r,onCanvasSizeChange:n,onCodePanelToggle:i,templateName:c,setTemplateName:f})=>{const[g,b]=L.useState(!1),m=L.useRef(null);L.useEffect(()=>{g&&m.current&&(m.current.focus(),m.current.select())},[g]);const v=()=>b(!1),E=A=>{A.key==="Enter"&&b(!1)};return w.jsx("div",{className:"max-h-[72px] border-b border-[#E8E7EE] bg-white px-6 py-3",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("div",{className:"flex min-w-0 items-center gap-3",children:w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("div",{className:"flex h-8 w-8 items-center justify-center bg-[#170F4F]",children:w.jsx("span",{className:"text-sm font-bold text-white",children:"B"})}),w.jsxs("div",{className:"",children:[g?w.jsx("input",{ref:m,className:"truncate border-none bg-transparent px-1 text-lg font-semibold text-[#170F4F] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",style:{minWidth:80,maxWidth:300},value:c,onChange:A=>f(A.target.value),onBlur:v,onKeyDown:E,placeholder:"Untitled","aria-label":"Template name"}):w.jsx("h1",{className:"cursor-pointer truncate text-lg font-semibold text-[#170F4F]",style:{minWidth:80,maxWidth:300},title:"Double click to edit",onDoubleClick:()=>b(!0),children:c||"Untitled"}),w.jsxs("p",{className:`flex items-center gap-2 truncate text-xs text-[#A29FB9] ${g?"pt-2":""}`,children:[w.jsx("span",{className:"rounded bg-[#F3F2F7] px-2 py-0.5 text-[10px] text-[#A29FB9]",title:"Template ID",children:"ID: 2af28e2c-e81a-4dde-bfd4-7d7567574b6d"}),w.jsx("span",{className:"ml-1",children:"โข unsaved"})]})]})]})}),w.jsx("div",{className:"flex flex-1 justify-center",children:w.jsxs("div",{className:"flex items-center gap-1",children:[w.jsx("button",{className:`border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium transition-all duration-200 ${e==="desktop"?"bg-[#170F4F] text-white":"text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,onClick:()=>n("desktop"),children:"Desktop"}),w.jsx("button",{className:`border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium transition-all duration-200 ${e==="tablet"?"bg-[#170F4F] text-white":"text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,onClick:()=>n("tablet"),children:"Tablet"}),w.jsx("button",{className:`border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium transition-all duration-200 ${e==="mobile"?"bg-[#170F4F] text-white":"text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,onClick:()=>n("mobile"),children:"Mobile"})]})}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsxs("button",{className:`flex items-center gap-2 border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium transition-all duration-200 ${t?"bg-[#170F4F] text-white":"text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,onClick:i,title:"Toggle Code Editor",children:[w.jsx(Te.FiCode,{size:14}),"Code"]}),w.jsx("button",{onClick:r,className:"border border-[#E8E7EE] bg-[#170F4F] px-4 py-1.5 text-sm font-medium text-white transition-all duration-200 hover:border-[#00BAC7] hover:bg-[#00BAC7]",children:"Preview"})]})]})})},bS=L.lazy(()=>Promise.resolve().then(()=>NS).then(e=>({default:e.DataSourceModal}))),yS=({showCodePanel:e=!1,onPreviewToggle:t,onCodePanelToggle:r,codePanelChildren:n})=>{UF();const i=gd(),[c,f]=L.useState(!1),[g,b]=L.useState(""),m=()=>{r?.()},v=()=>{const F=i.getHtml();sw(F)},E=()=>{f(!0)},A=()=>{};return w.jsxs("div",{className:"flex h-screen",children:[!e&&w.jsx(pS,{onPreviewMode:t||(()=>{}),onExportHTML:v,onViewCode:m,onDataSource:E}),w.jsxs("div",{className:"flex flex-1 flex-col",children:[w.jsx(vS,{canvasSize:i.device,showCodePanel:e,onPreviewModeToggle:t||(()=>{}),onCanvasSizeChange:i.setDevice,onCodePanelToggle:r||(()=>{}),templateName:g,setTemplateName:b}),w.jsxs("div",{className:`flex w-full flex-1 overflow-visible ${e?"flex-row":"flex-col"}`,children:[e?n:null,w.jsx(mS,{canvasSize:i.device,hasCanvasContent:i.isEmpty,showCodePanel:e})]})]}),!e&&w.jsx(oS,{}),c&&w.jsx(L.Suspense,{fallback:w.jsx("div",{children:"Loading..."}),children:w.jsx(bS,{isOpen:c,onClose:()=>f(!1),onDataImport:A})})]})},wS=({render:e})=>{const{id:t,isHover:r,isActive:n,name:i,isResizable:c,nodeWidth:f,nodeHeight:g}=ln(v=>({isHover:v.events.hovered,isActive:v.events.selected,name:v.data.custom?.displayName||v.data.displayName,isResizable:v.data.custom.resizable===!0,nodeWidth:v.data.props.style?.width||v.data.props.width||"min-content",nodeHeight:v.data.props.style?.height||v.data.props.height||"min-content"})),{canvasMaxWidth:b}=La(v=>({canvasMaxWidth:(v.nodes.ROOT?.data?.props?.style||{}).maxWidth}));return t===Go?w.jsx(w.Fragment,{children:e}):c?w.jsx(By,{maxWidth:b,children:e}):w.jsx(Py,{isHover:r,isSelected:n,name:i,width:f,height:g,children:e})},lw={desktop:{width:1200,height:800,name:"Desktop"},tablet:{width:768,height:1024,name:"Tablet"},mobile:{width:375,height:667,name:"Mobile"}},xS=({canvasSize:e,hasCanvasContent:t,onZoomChange:r,placeholderData:n={}})=>{console.log(n);const[i,c]=L.useState(100),[f,g]=L.useState(""),b=lw[e]||lw.desktop,{getHtml:m}=gd(),{renderTemplate:v}=d1();return L.useEffect(()=>{const E=()=>{const A=window.innerWidth-100,F=window.innerHeight-200,S=A/b.width,N=F/b.height,O=Math.min(S,N,1)*100,B=Math.max(25,Math.min(100,O));c(B),r&&r(B)};return E(),window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[e,b.width,b.height,r]),L.useEffect(()=>{if(!t){g("");return}let E=m();if(Object.keys(n).length>0)try{E=v(E,n)}catch(A){console.error("Erro ao processar template:",A)}g(E)},[t,n]),w.jsx("div",{className:"force-cursor-default relative flex flex-1 items-center justify-center overflow-auto bg-[#F5F5F7] p-8",children:w.jsx("div",{className:"flex h-full w-full items-center justify-center",children:w.jsxs("div",{className:"relative overflow-hidden rounded-lg border border-[#E8E7EE] bg-white shadow-lg",style:{width:b.width*(i/100),height:b.height*(i/100),maxWidth:"100%",maxHeight:"100%"},children:[e==="mobile"&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"absolute inset-x-0 top-0 z-10 flex h-6 items-center justify-center rounded-t-lg bg-black",children:w.jsx("div",{className:"h-1 w-12 rounded-full bg-gray-600"})}),w.jsx("div",{className:"absolute inset-x-0 bottom-1 z-10 flex justify-center",children:w.jsx("div",{className:"h-1 w-16 rounded-full bg-black opacity-30"})})]}),w.jsxs("div",{className:"h-full w-full overflow-hidden",style:{transform:`scale(${i/100})`,transformOrigin:"top left",width:`${100/(i/100)}%`,height:`${100/(i/100)}%`},children:[!t&&w.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50",children:w.jsxs("div",{className:"p-8 text-center",children:[w.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-lg border-2 border-dashed border-[#E8E7EE] bg-[#F5F5F7]",children:w.jsx("span",{className:"text-2xl text-[#A29FB9]",children:"๐"})}),w.jsx("h3",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"No content to preview"}),w.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Add components to see the preview"})]})}),w.jsx("div",{className:"h-full min-h-screen bg-white",style:{overflow:"visible",position:"relative",minHeight:"100%"},dangerouslySetInnerHTML:{__html:f}})]})]})})})},uw={desktop:{width:1200,height:800,name:"Desktop",icon:Te.FiMonitor},tablet:{width:768,height:1024,name:"Tablet",icon:Te.FiTablet},mobile:{width:375,height:667,name:"Mobile",icon:Te.FiSmartphone}},DS=({canvasSize:e,onCanvasSizeChange:t,onExitPreview:r,onDownloadHTML:n,onOpenInNewTab:i,showPlayground:c=!1,onTogglePlayground:f})=>{const[g,b]=L.useState(!1),[m,v]=L.useState(100);return w.jsx("div",{className:"border-b border-[#E8E7EE] bg-white px-6 py-3",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsxs("button",{onClick:r,className:"flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-[#170F4F] transition-colors hover:bg-[#F5F5F7]",children:[w.jsx(Te.FiX,{className:"h-4 w-4"}),"Exit Preview"]}),w.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Te.FiEye,{className:"h-4 w-4 text-[#00BAC7]"}),w.jsx("span",{className:"text-sm font-medium text-[#170F4F]",children:"Preview Mode"})]})]}),w.jsx("div",{className:"flex items-center gap-2",children:Object.keys(uw).map(E=>{const A=uw[E],F=A.icon,S=e===E;return w.jsxs("button",{onClick:()=>t(E),className:`flex items-center gap-2 px-3 py-1.5 text-sm font-medium transition-all duration-200 ${S?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:A.name,children:[w.jsx(F,{className:"h-4 w-4"}),w.jsx("span",{className:"hidden sm:inline",children:A.name})]},E)})}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsxs("div",{className:"flex items-center overflow-hidden border border-[#E8E7EE]",children:[w.jsx("button",{onClick:()=>v(Math.max(25,m-25)),className:"px-3 py-1.5 text-[#170F4F] transition-colors hover:bg-[#F5F5F7] disabled:cursor-not-allowed disabled:opacity-50",disabled:m<=25,children:"โ"}),w.jsxs("div",{className:"min-w-[60px] border-x border-[#E8E7EE] bg-[#F5F5F7] px-3 py-1.5 text-center text-sm font-medium text-[#170F4F]",children:[m,"%"]}),w.jsx("button",{onClick:()=>v(Math.min(200,m+25)),className:"px-3 py-1.5 text-[#170F4F] transition-colors hover:bg-[#F5F5F7] disabled:cursor-not-allowed disabled:opacity-50",disabled:m>=200,children:"+"})]}),w.jsx("button",{onClick:()=>b(!g),className:`p-1.5 transition-all duration-200 ${g?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:"Toggle Rulers",children:w.jsx(Te.FiEyeOff,{className:"h-4 w-4"})}),w.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),f&&w.jsxs("button",{onClick:f,className:`flex items-center gap-2 px-3 py-1.5 text-sm font-medium transition-all duration-200 ${c?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:"Toggle Data Playground",children:[w.jsx(Te.FiDatabase,{className:"h-4 w-4"}),w.jsx("span",{className:"hidden sm:inline",children:"Data"})]}),w.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),w.jsxs("button",{onClick:n,className:"flex items-center gap-2 border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium text-[#170F4F] transition-colors hover:bg-[#F5F5F7]",title:"Download HTML",children:[w.jsx(Te.FiDownload,{className:"h-4 w-4"}),w.jsx("span",{className:"hidden sm:inline",children:"Download"})]}),w.jsxs("button",{onClick:i,className:"flex items-center gap-2 bg-[#170F4F] px-3 py-1.5 text-sm font-medium text-white transition-colors hover:bg-[#00BAC7]",title:"Open in New Tab",children:[w.jsx(Te.FiExternalLink,{className:"h-4 w-4"}),w.jsx("span",{className:"hidden sm:inline",children:"Open"})]})]})]})})},CS=350,ES=700,FS=450,SS=({placeholders:e,placeholderSchema:t,onPlaceholdersChange:r,onSchemaChange:n,width:i=FS,onWidthChange:c})=>{const[f,g]=L.useState({type:"text"}),[b,m]=L.useState(!1),[v,E]=L.useState(!1),A=L.useRef(null),F=L.useRef(0),S=L.useRef(0),N=L.useCallback(K=>{E(!0),F.current=K.clientX,S.current=i,K.preventDefault()},[i]),O=L.useCallback(K=>{if(!v)return;const ve=F.current-K.clientX,se=Math.min(ES,Math.max(CS,S.current+ve));c&&c(se)},[v,c]),B=L.useCallback(()=>{E(!1)},[]);L.useEffect(()=>{if(v)return document.addEventListener("mousemove",O),document.addEventListener("mouseup",B),document.body.style.cursor="col-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",B),document.body.style.cursor="",document.body.style.userSelect=""}},[v,O,B]);const z=(K,ve)=>{r({...e,[K]:ve})},Z=()=>{if(!f.key||!f.label||!f.type)return;const K={key:f.key,label:f.label,type:f.type,value:f.value||V(f.type),options:f.options};n([...t,K]),r({...e,[K.key]:K.value||""}),g({type:"text"}),m(!1)},V=K=>{switch(K){case"text":return"Sample text";case"number":return 0;case"boolean":return!1;case"date":return new Date().toISOString().split("T")[0];case"enum":return"";default:return""}},J=K=>{n(t.filter(se=>se.key!==K));const ve={...e};delete ve[K],r(ve)},$=K=>{const ve=e[K.key]||K.value||"";switch(K.type){case"text":return w.jsx("input",{type:"text",value:String(ve),onChange:se=>z(K.key,se.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",placeholder:"Enter text here..."});case"number":return w.jsx("input",{type:"number",value:Number(ve),onChange:se=>z(K.key,parseFloat(se.target.value)||0),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",placeholder:"Enter a number..."});case"boolean":return w.jsxs("div",{className:"flex items-center gap-4 rounded-none border border-[#E8E7EE] bg-white p-3",children:[w.jsxs("label",{className:"flex cursor-pointer items-center",children:[w.jsx("input",{type:"radio",name:`${K.key}-bool`,checked:!!ve,onChange:()=>z(K.key,!0),className:"h-4 w-4 border-[#E8E7EE] text-[#170F4F] focus:ring-2 focus:ring-[#170F4F]"}),w.jsx("span",{className:"ml-2 text-sm font-medium text-[#170F4F]",children:"Yes"})]}),w.jsxs("label",{className:"flex cursor-pointer items-center",children:[w.jsx("input",{type:"radio",name:`${K.key}-bool`,checked:!ve,onChange:()=>z(K.key,!1),className:"h-4 w-4 border-[#E8E7EE] text-[#170F4F] focus:ring-2 focus:ring-[#170F4F]"}),w.jsx("span",{className:"ml-2 text-sm font-medium text-[#170F4F]",children:"No"})]})]});case"enum":return w.jsxs("select",{value:String(ve),onChange:se=>z(K.key,se.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",children:[w.jsx("option",{value:"",children:"Choose an option..."}),K.options?.map((se,me)=>typeof se=="string"?w.jsx("option",{value:se,children:se},me):w.jsx("option",{value:String(se.value),children:se.label},me))]});case"date":return w.jsx("input",{type:"date",value:String(ve),onChange:se=>z(K.key,se.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]"});default:return null}};return w.jsxs("div",{className:"relative flex animate-slide-in-right flex-col border-l border-[#E8E7EE] bg-white transition-all duration-300 ease-in-out",style:{width:`${i}px`},children:[w.jsx("div",{ref:A,className:`absolute bottom-0 left-0 top-0 w-1 cursor-col-resize transition-colors duration-200 hover:bg-[#00BAC7] ${v?"bg-[#00BAC7]":"bg-transparent"} group`,onMouseDown:N,children:w.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform opacity-0 transition-opacity group-hover:opacity-100",children:w.jsx(Te.FiMoreVertical,{className:"h-3 w-3 text-[#A29FB9]"})})}),w.jsxs("div",{className:"border-b border-[#E8E7EE] bg-gradient-to-r from-[#F9F8FE] to-white p-6",children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{children:[w.jsx("h3",{className:"mb-1 text-lg font-semibold text-[#170F4F]",children:"Placeholders"}),w.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Customize the content that appears in your template"})]}),w.jsxs("button",{onClick:()=>m(!0),className:"flex items-center gap-2 rounded-none bg-[#170F4F] px-4 py-2 text-sm font-medium text-white shadow-sm transition-all duration-200 hover:bg-[#00BAC7] hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-[#170F4F] disabled:hover:shadow-sm",disabled:b,children:[w.jsx(Te.FiPlus,{className:"h-4 w-4"}),"Add"]})]}),b&&w.jsxs("div",{className:"mt-4 animate-fade-in rounded-none border border-[#E8E7EE] bg-white p-4 shadow-sm",children:[w.jsx("h4",{className:"mb-4 text-sm font-semibold text-[#170F4F]",children:"Add New Placeholder"}),w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-xs font-medium text-[#170F4F]",children:"Field Name"}),w.jsx("input",{type:"text",placeholder:"e.g., Customer Name",value:f.label||"",onChange:K=>{const ve=K.target.value,se=ve.replace(/[^a-zA-Z0-9\s]/g,"").replace(/\s+/g,"_").replace(/^_+|_+$/g,"");g({...f,label:ve,key:se})},className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-xs font-medium text-[#170F4F]",children:"Data Type"}),w.jsxs("select",{value:f.type||"text",onChange:K=>g({...f,type:K.target.value}),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",children:[w.jsx("option",{value:"text",children:"Text"}),w.jsx("option",{value:"number",children:"Number"}),w.jsx("option",{value:"boolean",children:"True/False"}),w.jsx("option",{value:"enum",children:"Multiple Choice"}),w.jsx("option",{value:"date",children:"Date"})]})]})]}),w.jsxs("div",{className:"mt-6 flex gap-2 border-t border-[#E8E7EE] pt-4",children:[w.jsx("button",{onClick:Z,disabled:!f.key||!f.label,className:"rounded-none bg-[#170F4F] px-4 py-2 text-sm font-medium text-white shadow-sm transition-colors duration-200 hover:bg-[#00BAC7] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-[#170F4F]",children:"Confirm"}),w.jsx("button",{onClick:()=>m(!1),className:"rounded-none border border-[#E8E7EE] px-4 py-2 text-sm font-medium text-[#A29FB9] transition-colors duration-200 hover:bg-[#F9F8FE] hover:text-[#170F4F]",children:"Cancel"})]})]})]}),w.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:t.length===0?w.jsxs("div",{className:"py-12 text-center text-[#A29FB9]",children:[w.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-none border border-[#E8E7EE] bg-[#F9F8FE]",children:w.jsx(Te.FiPlus,{className:"h-8 w-8 text-[#170F4F]"})}),w.jsx("h4",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"No data fields yet"}),w.jsx("p",{className:"mb-4 text-sm",children:"Add data fields to make your template dynamic"}),w.jsx("button",{onClick:()=>m(!0),className:"text-sm font-medium text-[#170F4F] transition-colors duration-200 hover:text-[#00BAC7]",children:"Add your first field"})]}):w.jsx("div",{className:"space-y-4",children:t.map(K=>w.jsxs("div",{className:"rounded-none border border-[#E8E7EE] bg-white p-4 transition-all duration-200 hover:border-[#170F4F] hover:shadow-sm",children:[w.jsxs("div",{className:"mb-3 flex items-start justify-between",children:[w.jsxs("div",{className:"flex-1",children:[w.jsx("h4",{className:"mb-1 text-sm font-semibold text-[#170F4F]",children:K.label}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"inline-flex items-center rounded-none border border-[#E8E7EE] bg-[#F9F8FE] px-2 py-1 text-xs font-medium text-[#170F4F]",children:K.type==="boolean"?"True/False":K.type==="enum"?"Multiple Choice":K.type.charAt(0).toUpperCase()+K.type.slice(1)}),w.jsx("span",{className:"font-mono text-xs text-[#A29FB9]",children:K.key})]})]}),w.jsx("button",{onClick:()=>J(K.key),className:"rounded-none p-1 text-[#A29FB9] transition-colors duration-200 hover:bg-red-50 hover:text-red-500",title:"Remove field",children:w.jsx(Te.FiTrash2,{className:"h-4 w-4"})})]}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("label",{className:"block text-xs font-medium text-[#170F4F]",children:"Current Value:"}),w.jsx("div",{className:"w-full",children:$(K)})]})]},K.key))})})]})},am={desktop:{width:1200,height:800,name:"Desktop"},tablet:{width:768,height:1024,name:"Tablet"},mobile:{width:375,height:667,name:"Mobile"}},kS=({isPreviewMode:e,onExitPreview:t,initialPlaceholders:r={},initialPlaceholderSchema:n=[]})=>{const{getHtml:i,device:c,setDevice:f,isEmpty:g}=gd(),[b,m]=L.useState(!1),[v,E]=L.useState(100),[A,F]=L.useState(!0),[S,N]=L.useState(450),[O,B]=L.useState(r),[z,Z]=L.useState(n),V=()=>{m(!0),setTimeout(()=>{t(),m(!1)},300)},J=()=>{const K=i();sw(K)},$=()=>{F(!A)};return e?w.jsxs("div",{className:`fixed inset-0 z-50 bg-[#F5F5F7] ${b?"animate-fade-out":"animate-fade-in"}`,children:[w.jsx("div",{className:b?"animate-slide-up-out":"animate-slide-down",children:w.jsx(DS,{canvasSize:c,onCanvasSizeChange:f,onExitPreview:V,onDownloadHTML:J,onOpenInNewTab:()=>{const K=i();window.open()?.document.write(K)},showPlayground:A,onTogglePlayground:$})}),w.jsxs("div",{className:"flex h-full",children:[w.jsx("div",{className:b?"animate-slide-down-out":"animate-slide-up",style:{flex:1},children:w.jsx(xS,{canvasSize:c,hasCanvasContent:g,onZoomChange:E,placeholderData:O})}),A&&w.jsx(SS,{placeholders:O,placeholderSchema:z,onPlaceholdersChange:B,onSchemaChange:Z,width:S,onWidthChange:N})]}),w.jsxs("div",{className:"fixed bottom-4 left-4 z-[60] rounded bg-[#170F4F] px-3 py-2 text-sm text-white shadow-md",children:[am[c].name," โข ",am[c].width,"ร",am[c].height,"px โข ",v.toFixed(3),"%"]})]}):null},TS=pd.reduce((e,t)=>(e[t.id]=t.component,e),{}),AS=({placeholders:e={},placeholderSchema:t=[]})=>{const r=Wy();return w.jsxs(TD,{resolver:TS,onRender:wS,enabled:r.isEditorEnabled,children:[w.jsx(yS,{onPreviewToggle:r.togglePreview,showCodePanel:r.showCodePanel,onCodePanelToggle:r.toggleCodePanel,codePanelChildren:w.jsx(zF,{onClose:r.closeCodePanel})}),w.jsx(kS,{isPreviewMode:r.showPreview,onExitPreview:()=>r.togglePreview(),initialPlaceholders:e,initialPlaceholderSchema:t})]})},_S='@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Arial,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.force-cursor-default{cursor:default!important}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.left-3{left:.75rem}.left-4{left:1rem}.left-auto{left:auto}.right-3{right:.75rem}.right-auto{right:auto}.top-0{top:0}.top-1\\/2{top:50%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[90vh\\]{height:90vh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\[42vh\\]{max-height:42vh}.max-h-\\[72px\\]{max-height:72px}.min-h-screen{min-height:100vh}.w-1{width:.25rem}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-\\[10\\%\\]{width:10%}.w-\\[20\\%\\]{width:20%}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\\[120px\\]{min-width:120px}.min-w-\\[140px\\]{min-width:140px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[60px\\]{min-width:60px}.max-w-6xl{max-width:72rem}.max-w-\\[40vw\\]{max-width:40vw}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-fade-in{animation:fadeIn .4s ease-out}.animate-fade-out{animation:fadeOut .3s ease-in}.animate-slide-down{animation:slideDown .5s ease-out .1s both}.animate-slide-down-out{animation:slideDownOut .3s ease-in both}.animate-slide-in-right{animation:slideInRight .3s ease-out}.animate-slide-up{animation:slideUp .5s ease-out .2s both}.animate-slide-up-out{animation:slideUpOut .3s ease-in both}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:4px}.rounded-none{border-radius:0}.rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.\\!border{border-width:1px!important}.border{border-width:1px}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\\[\\#00BAC7\\]{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.border-\\[\\#170F4F\\],.border-\\[\\#170f4f\\]{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.border-\\[\\#30aab3\\]{--tw-border-opacity: 1;border-color:rgb(48 170 179 / var(--tw-border-opacity, 1))}.border-\\[\\#E8E7EE\\],.border-\\[\\#e8e7ee\\]{--tw-border-opacity: 1;border-color:rgb(232 231 238 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-\\[\\#00BAC7\\]{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.bg-\\[\\#170F4F\\],.bg-\\[\\#170f4f\\]{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.bg-\\[\\#181c24\\]{--tw-bg-opacity: 1;background-color:rgb(24 28 36 / var(--tw-bg-opacity, 1))}.bg-\\[\\#23272f\\]{--tw-bg-opacity: 1;background-color:rgb(35 39 47 / var(--tw-bg-opacity, 1))}.bg-\\[\\#CCF1F4\\]{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E8E7EE\\]{--tw-bg-opacity: 1;background-color:rgb(232 231 238 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F3F2F7\\]{--tw-bg-opacity: 1;background-color:rgb(243 242 247 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F5F5F7\\]{--tw-bg-opacity: 1;background-color:rgb(245 245 247 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F9F8FE\\]{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-current{background-color:currentColor}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/20{background-color:#fff3}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-opacity-40{--tw-bg-opacity: .4}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#F9F8FE\\]{--tw-gradient-from: #F9F8FE var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 248 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-100{--tw-gradient-from: #f3f4f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(243 244 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-gray-200{--tw-gradient-to: #e5e7eb var(--tw-gradient-to-position)}.to-white{--tw-gradient-to: #fff var(--tw-gradient-to-position)}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-8{padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[10px\\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:2px}.text-\\[\\#00BAC7\\]{--tw-text-opacity: 1;color:rgb(0 186 199 / var(--tw-text-opacity, 1))}.text-\\[\\#170F4F\\],.text-\\[\\#170f4f\\]{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.text-\\[\\#A29FB9\\]{--tw-text-opacity: 1;color:rgb(162 159 185 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-current{color:currentColor}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.placeholder-\\[\\#A29FB9\\]::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(162 159 185 / var(--tw-placeholder-opacity, 1))}.placeholder-\\[\\#A29FB9\\]::placeholder{--tw-placeholder-opacity: 1;color:rgb(162 159 185 / var(--tw-placeholder-opacity, 1))}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px rgba(0, 0, 0, .15);--tw-shadow-colored: 0 10px 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 4px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-yellow-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.ring-opacity-50{--tw-ring-opacity: .5}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUpOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}@keyframes slideDownOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(20px)}}@keyframes slideInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes slideOutRight{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(100%)}}.last\\:mb-0:last-child{margin-bottom:0}.hover\\:border-\\[\\#00BAC7\\]:hover{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.hover\\:border-\\[\\#170F4F\\]:hover{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.hover\\:border-\\[\\#30aab3\\]:hover{--tw-border-opacity: 1;border-color:rgb(48 170 179 / var(--tw-border-opacity, 1))}.hover\\:border-red-300:hover{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.hover\\:bg-\\[\\#00BAC7\\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#30aab3\\]:hover{--tw-bg-opacity: 1;background-color:rgb(48 170 179 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#CCF1F4\\]:hover{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#E8E7EE\\]:hover{--tw-bg-opacity: 1;background-color:rgb(232 231 238 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#F5F5F7\\]:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 247 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#F9F8FE\\]:hover{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\\:text-\\[\\#00BAC7\\]:hover{--tw-text-opacity: 1;color:rgb(0 186 199 / var(--tw-text-opacity, 1))}.hover\\:text-\\[\\#170F4F\\]:hover,.hover\\:text-\\[\\#170f4f\\]:hover{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.hover\\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:shadow-md:hover{--tw-shadow: 0 4px 6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 4px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:shadow-sm:hover{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:ring-2:hover{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\\:ring-gray-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.hover\\:ring-yellow-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 224 71 / var(--tw-ring-opacity, 1))}.hover\\:ring-opacity-50:hover{--tw-ring-opacity: .5}.focus\\:border-\\[\\#00BAC7\\]:focus{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.focus\\:border-\\[\\#170F4F\\]:focus{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.focus\\:bg-\\[\\#CCF1F4\\]:focus{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.focus\\:bg-\\[\\#F9F8FE\\]:focus{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-\\[\\#170F4F\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(23 15 79 / var(--tw-ring-opacity, 1))}.focus\\:ring-\\[\\#30aab3\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(48 170 179 / var(--tw-ring-opacity, 1))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-gray-600:disabled{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-\\[\\#170F4F\\]:hover:disabled{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.disabled\\:hover\\:shadow-sm:hover:disabled{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\\:bg-\\[\\#00BAC7\\]{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.group:hover .group-hover\\:bg-\\[\\#170f4f\\]\\/20{background-color:#170f4f33}.group:hover .group-hover\\:text-\\[\\#170f4f\\]{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.group:hover .group-hover\\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 768px){.sm\\:inline{display:inline}}';function RS({placeholders:e={},placeholderSchema:t=[]}){return w.jsxs(Kw.div,{className:"bolttech-template-editor",children:[w.jsx("style",{type:"text/css",children:_S}),w.jsx(AS,{placeholders:e,placeholderSchema:t})]})}const om=({name:e,value:t,path:r,onSelect:n,isSelected:i})=>{const c=typeof t=="object"&&t!==null&&!Array.isArray(t),f=Array.isArray(t),g=()=>t===null?"null":t===void 0?"undefined":typeof t=="string"?`"${t}"`:typeof t=="number"||typeof t=="boolean"?String(t):f?`Array(${t.length})`:c?`Object(${Object.keys(t).length})`:String(t),b=()=>t===null?"null":t===void 0?"undefined":typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":f?"array":c?"object":typeof t;return w.jsxs("button",{onClick:()=>n(r,t),className:`flex min-w-[120px] flex-col items-center gap-1 rounded-none border border-[#e8e7ee] p-3 transition-all duration-200 ${i?"border-[#30aab3] bg-[#170f4f] text-white":"bg-white text-[#170f4f] hover:border-[#30aab3] hover:bg-gray-50"}`,children:[w.jsx("div",{className:"text-xs font-medium",children:e}),w.jsx("div",{className:`text-xs ${b()==="string"?"text-green-600":b()==="number"?"text-blue-600":b()==="boolean"?"text-purple-600":b()==="null"?"text-gray-500":"text-orange-600"} ${i?"text-white":""}`,children:g()}),w.jsxs("div",{className:`text-xs ${i?"text-gray-300":"text-gray-400"}`,children:["(",b(),")"]})]})},cw=({data:e,onPathSelect:t})=>{const[r,n]=L.useState([]),[i,c]=L.useState(null),[f,g]=L.useState(!1),b=(S,N)=>N.reduce((O,B)=>{if(O!=null){if(B.startsWith("[")&&B.endsWith("]")){const z=parseInt(B.slice(1,-1),10);return O[z]}return O[B]}},S),v=(()=>{const S=[];let N=[],O=e;S.push({path:[],value:e,isRoot:!0});for(const B of r)N=[...N,B],O=b(e,N),O!=null&&typeof O=="object"&&S.push({path:[...N],value:O,isRoot:!1});return S})(),E=(S,N,O)=>{if(typeof O=="object"&&O!==null&&(n(B=>[...B.slice(0,S),N]),t)){const B=[...v[S].path,N];t(B.join("."))}},A=(S,N,O)=>{if(typeof O!="object"||O===null){if(c({path:[...v[S].path,N],value:O}),t){const B=[...v[S].path,N];t(B.join("."))}}else c(null)},F=(S,N)=>{const O=S.value;return S.isRoot?w.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:Object.entries(e).map(([B,z])=>w.jsx(om,{name:B,value:z,path:B,onSelect:(Z,V)=>typeof V=="object"&&V!==null?E(0,B,V):A(0,B,V),isSelected:r.length===0},B))},N):Array.isArray(O)?w.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:O.map((B,z)=>w.jsx(om,{name:`[${z}]`,value:B,path:`[${z}]`,onSelect:(Z,V)=>typeof V=="object"&&V!==null?E(N,`[${z}]`,V):A(N,`[${z}]`,V),isSelected:!1},z))},N):typeof O=="object"&&O!==null?w.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:Object.entries(O).map(([B,z])=>w.jsx(om,{name:B,value:z,path:B,onSelect:(Z,V)=>typeof V=="object"&&V!==null?E(N,B,V):A(N,B,V),isSelected:!1},B))},N):null};return w.jsxs("div",{className:"overflow-x-auto rounded-none border border-[#e8e7ee] bg-white",children:[w.jsx("div",{className:"border-b border-[#e8e7ee] bg-gray-50 px-4 py-2",children:w.jsx("h3",{className:"text-sm font-medium text-[#170f4f]",children:"Data Structure"})}),w.jsxs("div",{className:"flex gap-6 overflow-x-auto p-4",children:[v.map((S,N)=>F(S,N)),i&&w.jsx("div",{className:"flex min-w-[180px] flex-col gap-2",children:w.jsxs("div",{className:"mt-2 rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:[w.jsx("h4",{className:"mb-1 text-xs font-medium text-gray-600",children:"Selected Value"}),w.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[w.jsx("span",{className:"font-medium",children:"Path:"})," ",i.path.join("."),w.jsx("button",{className:"ml-1 text-gray-400 hover:text-gray-600",onClick:()=>{navigator.clipboard.writeText(i.path.join(".")),g(!0),setTimeout(()=>g(!1),2e3)},title:"Copy path",children:f?w.jsx(Te.FiCheck,{size:14}):w.jsx(Te.FiCopy,{size:14})})]}),w.jsxs("div",{className:"text-sm",children:[w.jsx("span",{className:"font-medium",children:"Value:"})," ",String(i.value)]}),w.jsxs("div",{className:"text-sm",children:[w.jsx("span",{className:"font-medium",children:"Type:"})," ",typeof i.value]})]})})]})]})},NS=Object.freeze(Object.defineProperty({__proto__:null,DataSourceModal:({isOpen:e,onClose:t,onDataImport:r})=>{const[n,i]=L.useState("url"),[c,f]=L.useState(""),[g,b]=L.useState(""),[m,v]=L.useState(""),[E,A]=L.useState(!1),[F,S]=L.useState(""),[N,O]=L.useState(!1),[B,z]=L.useState(null);L.useEffect(()=>{if(e){const se=localStorage.getItem("bolttech_datasource");if(se)try{const me=JSON.parse(se);me&&typeof me=="object"&&me.data&&(z(me.data),me.url&&b(me.url))}catch{}}},[e]);const Z=se=>{const me=se.target.files?.[0];if(!me)return;if(!me.name.endsWith(".json")){S("Please select a JSON file");return}const ge=new FileReader;ge.onload=Qe=>{try{const pe=Qe.target?.result,Ie=JSON.parse(pe);f(pe),z(Ie),S("")}catch{S("Invalid JSON file"),f(""),z(null)}},ge.readAsText(me)},V=async()=>{if(!g.trim()){S("Please enter a URL");return}A(!0),S("");try{const se=await fetch(g);if(!se.ok)throw new Error("Failed to fetch data");const me=await se.json();v(JSON.stringify(me,null,2)),z(me),S("")}catch{S("Failed to fetch data from URL")}finally{A(!1)}},J=se=>{v(se),S("");try{if(se.trim()){const me=JSON.parse(se);z(me)}else z(null)}catch{S("Invalid JSON format"),z(null)}},$=()=>{let se;try{switch(n){case"file":if(!c){S("Please select a file");return}se=JSON.parse(c);break;case"url":if(!m){S("Please fetch data from URL first");return}se=JSON.parse(m);break;case"code":if(!m.trim()){S("Please enter JSON data");return}se=JSON.parse(m);break}n==="url"?localStorage.setItem("bolttech_datasource",JSON.stringify({from:n,data:se,url:g})):localStorage.setItem("bolttech_datasource",JSON.stringify({from:n,data:se})),r(se),t()}catch{S("Invalid JSON data")}},K=()=>{navigator.clipboard.writeText(m),O(!0),setTimeout(()=>O(!1),2e3)},ve=()=>{try{return m.trim()?(JSON.parse(m),!0):!1}catch{return!1}};return e?w.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:se=>{se.target===se.currentTarget&&t()},children:w.jsxs("div",{className:"flex h-[90vh] w-full max-w-6xl flex-col rounded-none bg-white shadow-xl",children:[w.jsxs("div",{className:"flex items-center justify-between border-b border-[#e8e7ee] bg-white p-6",children:[w.jsx("h2",{className:"text-lg font-bold tracking-wide text-[#170f4f]",children:"DataSource"}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("button",{onClick:()=>{localStorage.removeItem("bolttech_datasource"),z(null),f(""),b(""),v("")},className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-red-50 hover:text-red-600",title:"Clean Data",children:"๐งน"}),w.jsx("button",{onClick:t,className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-gray-50 hover:text-gray-600",children:w.jsx(Te.FiX,{size:18})})]})]}),w.jsx("div",{className:"max-h-[42vh] overflow-y-auto border-b border-[#e8e7ee] px-6 py-4",children:w.jsx(cw,{data:{root:B||{}}})}),w.jsxs("div",{className:"flex border-b border-[#e8e7ee]",children:[w.jsxs("button",{onClick:()=>i("url"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="url"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[w.jsx(Te.FiLink,{size:16}),"URL"]}),w.jsxs("button",{onClick:()=>i("file"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="file"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[w.jsx(Te.FiUpload,{size:16}),"Import File"]}),w.jsxs("button",{onClick:()=>i("code"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="code"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[w.jsx(Te.FiCode,{size:16}),"Custom Code"]})]}),w.jsxs("div",{className:"flex-1 overflow-hidden p-6",children:[n==="code"&&w.jsxs("div",{className:"flex h-full flex-col",children:[w.jsx("div",{className:"mb-4",children:w.jsx("p",{className:"mb-1 text-sm text-gray-500",children:"Enter your JSON data below"})}),w.jsxs("div",{className:"flex-1 overflow-hidden rounded-none bg-gray-900",children:[w.jsxs("div",{className:"flex items-center justify-between border-b border-gray-700 bg-gray-800 px-4 py-2",children:[w.jsx("span",{className:"text-sm font-medium text-gray-300",children:"JSON Editor"}),m&&w.jsxs("button",{onClick:K,className:"flex items-center gap-1 text-xs text-gray-400 hover:text-gray-300",children:[N?w.jsx(Te.FiCheck,{size:12}):w.jsx(Te.FiCopy,{size:12}),N?"Copied!":"Copy"]})]}),w.jsx("div",{className:"h-full overflow-auto pb-8",children:w.jsx("textarea",{value:m,onChange:se=>J(se.target.value),placeholder:'{"name": "John", "age": 30, "city": "New York"}',className:"h-full w-full resize-none border-none bg-transparent p-4 font-mono text-sm text-gray-300 outline-none"})})]})]}),n==="url"&&w.jsx("div",{className:"bte:flex bte:h-full bte:flex-col",children:w.jsxs("div",{className:"bte:mb-4",children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"JSON URL"}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("input",{type:"url",value:g,onChange:se=>b(se.target.value),placeholder:"https://api.example.com/data.json",className:"flex-1 rounded-none border border-[#e8e7ee] px-3 py-2 focus:outline-none focus:ring-2 focus:ring-[#30aab3]"}),w.jsx("button",{onClick:V,disabled:E||!g.trim(),className:"rounded-none bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3] disabled:cursor-not-allowed disabled:opacity-50",children:E?"Loading...":"Fetch"})]})]})}),n==="file"&&w.jsxs("div",{className:"bte:flex bte:h-full bte:flex-col",children:[w.jsxs("div",{className:"bte:mb-4",children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Select JSON File"}),w.jsxs("div",{className:"rounded-none border-2 border-dashed border-[#e8e7ee] p-8 text-center transition-colors duration-200 hover:border-[#30aab3]",children:[w.jsx("input",{type:"file",accept:".json",onChange:Z,className:"hidden",id:"file-upload"}),w.jsxs("label",{htmlFor:"file-upload",className:"flex cursor-pointer flex-col items-center",children:[w.jsx(Te.FiUpload,{size:48,className:"mb-4 text-gray-400"}),w.jsx(Te.FiUpload,{size:48,className:"mb-4 text-gray-400"}),w.jsx("span",{className:"text-lg font-medium text-gray-700",children:"Click to upload JSON file"}),w.jsx("span",{className:"mt-1 text-sm text-gray-500",children:"or drag and drop"})]})]})]}),c&&w.jsxs("div",{className:"flex-1 overflow-hidden rounded-none bg-gray-900",children:[w.jsx("div",{className:"flex items-center justify-between border-b border-gray-700 bg-gray-800 px-4 py-2",children:w.jsx("span",{className:"text-sm font-medium text-gray-300",children:"File Preview"})}),w.jsx("div",{className:"h-32 overflow-auto",children:w.jsx("pre",{className:"whitespace-pre-wrap p-4 font-mono text-sm text-gray-300",children:w.jsx("code",{children:c})})})]})]}),F&&w.jsx("div",{className:"mt-4 rounded-none border border-red-200 bg-red-50 p-3",children:w.jsx("p",{className:"text-sm text-red-600",children:F})})]}),w.jsxs("div",{className:"flex items-center justify-end gap-3 border-t border-[#e8e7ee] p-6",children:[w.jsx("button",{onClick:t,className:"rounded-none bg-gray-100 px-4 py-2 text-gray-700 transition-colors duration-200 hover:bg-gray-200",children:"Cancel"}),w.jsx("button",{onClick:$,disabled:n==="file"&&!c||n==="url"&&!m||n==="code"&&!m||!ve(),className:"rounded-none bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3] disabled:cursor-not-allowed disabled:opacity-50",children:"Import Data"})]})]})}):null},HorizontalDataView:cw},Symbol.toStringTag,{value:"Module"}));Dr.TemplateEditor=RS,Object.defineProperty(Dr,Symbol.toStringTag,{value:"Module"})}));
|