@stlite/desktop 0.81.6 → 0.82.0

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.
Files changed (74) hide show
  1. package/build/assets/{FileDownload.esm-Bpf_IJaz.js → FileDownload.esm-Bzb3HjS9.js} +1 -1
  2. package/build/assets/{FileHelper-BEtUZCB8.js → FileHelper-BNpeYRlH.js} +1 -1
  3. package/build/assets/{FormClearHelper--a7FEpt-.js → FormClearHelper-DxeY-rII.js} +1 -1
  4. package/build/assets/{Hooks-2PqJRMDp.js → Hooks-BOkao1bO.js} +1 -1
  5. package/build/assets/{InputInstructions-GAhfSEnF.js → InputInstructions-DuxSO2sS.js} +1 -1
  6. package/build/assets/{ProgressBar-Col3VLE4.js → ProgressBar-xr2SnNK1.js} +1 -1
  7. package/build/assets/{RenderInPortalIfExists-qnP8SYNG.js → RenderInPortalIfExists-D-C7LcEp.js} +1 -1
  8. package/build/assets/{Toolbar-Ce_uRMJw.js → Toolbar-CJ0mD5An.js} +1 -1
  9. package/build/assets/{base-input-BHEia47e.js → base-input-NsRtpzFx.js} +1 -1
  10. package/build/assets/{checkbox-Cddx6i3F.js → checkbox-Dj0lswiB.js} +1 -1
  11. package/build/assets/{createSuper-RDzkTe3c.js → createSuper-Ipqc67nc.js} +1 -1
  12. package/build/assets/{data-grid-overlay-editor-D6T-ER_q.js → data-grid-overlay-editor-BDv7jlce.js} +1 -1
  13. package/build/assets/{downloader-DaEpMxPx.js → downloader-CaOAUbUF.js} +1 -1
  14. package/build/assets/{es6-CcuZyssh.js → es6-BZHzmZtr.js} +2 -2
  15. package/build/assets/{iframeResizer.contentWindow-DHS7Pu0i.js → iframeResizer.contentWindow-CHGlD-N9.js} +1 -1
  16. package/build/assets/{index-CyYl-5F4.js → index-7fVMC6lw.js} +1 -1
  17. package/build/assets/{index-DW287fpb.js → index-B-LSEdUZ.js} +1 -1
  18. package/build/assets/{index-C-2rT3oM.js → index-B-ykjfbX.js} +1 -1
  19. package/build/assets/{index-DHl89CCF.js → index-B4X2D_eW.js} +1 -1
  20. package/build/assets/{index-D07bwkWY.js → index-BTv0oYZW.js} +1 -1
  21. package/build/assets/{index-BXlqmLSw.js → index-BfXMsSNA.js} +5 -5
  22. package/build/assets/{index-7eIEqW6S.js → index-BtnOdn6v.js} +1 -1
  23. package/build/assets/{index-CreZOv_n.js → index-BwTtx5nh.js} +1 -1
  24. package/build/assets/{index-DpOOTQ4a.js → index-By6Q65Pf.js} +1 -1
  25. package/build/assets/{index-C7q_Bsxr.js → index-C7CxGGAJ.js} +1 -1
  26. package/build/assets/{index-LZMzKd6i.js → index-CA7xtrC9.js} +1 -1
  27. package/build/assets/{index-qnESYKH3.js → index-CHhIqZol.js} +1 -1
  28. package/build/assets/{index-qZBF_Zup.js → index-CRx6-P3W.js} +1 -1
  29. package/build/assets/{index-BWOzAKM3.js → index-CTC0h65f.js} +1 -1
  30. package/build/assets/{index-85lABG_-.js → index-CUa9G_2w.js} +1 -1
  31. package/build/assets/{index-LZAWp2JT.js → index-Ck_7L8T4.js} +1 -1
  32. package/build/assets/{index-BSeIgN9k.js → index-Cns8y39_.js} +1 -1
  33. package/build/assets/{index-vdtOYA7b.js → index-CnyprtY_.js} +1 -1
  34. package/build/assets/{index-DN8Z5yj8.js → index-CoJDuQ5Y.js} +1 -1
  35. package/build/assets/{index-Pc9U3GV3.js → index-Cp10Db30.js} +1 -1
  36. package/build/assets/{index-qBaGcpp3.js → index-Cyc3gr_v.js} +1 -1
  37. package/build/assets/{index-YQk3COsD.js → index-D1dbR74e.js} +1 -1
  38. package/build/assets/{index-C4IBAvYi.js → index-D9Fv1oGe.js} +1 -1
  39. package/build/assets/{index-BQjJjeMH.js → index-D9ZJ5ysG.js} +1 -1
  40. package/build/assets/{index-Oz9-OY6E.js → index-DJZ72tug.js} +1 -1
  41. package/build/assets/{index-C2JTCZRI.js → index-DMVOLuV0.js} +1 -1
  42. package/build/assets/{index-VB1U8aCl.js → index-DX_vgtQT.js} +1 -1
  43. package/build/assets/{index-CZyeXUIr.js → index-DbTxB5ik.js} +1 -1
  44. package/build/assets/{index-DF2Bv2Iu.js → index-DeRs-vXN.js} +1 -1
  45. package/build/assets/{index-ma8H1oet.js → index-DhYvQko1.js} +1 -1
  46. package/build/assets/{index-CngYL5q1.js → index-Dk-OPVLJ.js} +1 -1
  47. package/build/assets/{index-CunpKDCO.js → index-DrIrAYez.js} +1 -1
  48. package/build/assets/{index-CvsR1I3L.js → index-DvUGK7b6.js} +1 -1
  49. package/build/assets/{index-DcrwU5E6.js → index-GJHR2pBi.js} +1 -1
  50. package/build/assets/{index-NYCOzVlX.js → index-OxGwEg3m.js} +12 -12
  51. package/build/assets/{index-BimHN13b.js → index-SCb8nZ6H.js} +1 -1
  52. package/build/assets/{index-DDA7JyBJ.js → index-zPhSbuEH.js} +1 -1
  53. package/build/assets/{inherits-DMADb7u9.js → inherits-BbfuKc-R.js} +1 -1
  54. package/build/assets/{input-DdxVQNZ7.js → input-CkptI290.js} +1 -1
  55. package/build/assets/{memory-_2PWlQG6.js → memory-BDEJOdDh.js} +1 -1
  56. package/build/assets/{mergeWith-THRzgcPq.js → mergeWith-D2cULMN8.js} +1 -1
  57. package/build/assets/{number-overlay-editor-D5Yhw2y2.js → number-overlay-editor-cmVGLaYJ.js} +1 -1
  58. package/build/assets/{sandbox-D8Np0x1K.js → sandbox-VVt-VWM8.js} +1 -1
  59. package/build/assets/{slicedToArray-CiQSSrYz.js → slicedToArray-HZKHLTaA.js} +1 -1
  60. package/build/assets/{textarea-r4-zB_B9.js → textarea-Cy6EVtfz.js} +1 -1
  61. package/build/assets/{timepicker-Dz1EXIQj.js → timepicker-DQlSkM-Q.js} +1 -1
  62. package/build/assets/{uniqueId-C8rYCZew.js → uniqueId-Dka3DuQQ.js} +1 -1
  63. package/build/assets/{useBasicWidgetState-vUy8Wspy.js → useBasicWidgetState-Bm5AJWX7.js} +1 -1
  64. package/build/assets/{useOnInputChange-Cl7V3cFN.js → useOnInputChange-C3lvbUNp.js} +1 -1
  65. package/build/assets/{withFullScreenWrapper-D7Ouz6kJ.js → withFullScreenWrapper-CEJUxUJC.js} +1 -1
  66. package/build/assets/{worker-BlovaCIP.js → worker-eTai8nRu.js} +1 -1
  67. package/build/index.html +1 -1
  68. package/build/pyodide/pyodide-lock.json +1 -1
  69. package/build/pyodide/pyodide.asm.js +1 -1
  70. package/build/pyodide/pyodide.asm.wasm +0 -0
  71. package/build/pyodide/pyodide.mjs +3 -3
  72. package/build/pyodide/python_stdlib.zip +0 -0
  73. package/package.json +6 -6
  74. package/wheels/streamlit-1.44.1-cp312-none-any.whl +0 -0
@@ -1,2 +1,2 @@
1
- import{c as je,r as Rt,bO as Xe,j as wt}from"./index-NYCOzVlX.js";/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:le,setPrototypeOf:se,isFrozen:qe,getPrototypeOf:$e,getOwnPropertyDescriptor:Ke}=Object;let{freeze:y,seal:S,create:ce}=Object,{apply:Ot,construct:Lt}=typeof Reflect<"u"&&Reflect;y||(y=function(r){return r}),S||(S=function(r){return r}),Ot||(Ot=function(r,o,l){return r.apply(o,l)}),Lt||(Lt=function(r,o){return new r(...o)});const it=_(Array.prototype.forEach),Ve=_(Array.prototype.lastIndexOf),ue=_(Array.prototype.pop),j=_(Array.prototype.push),Ze=_(Array.prototype.splice),lt=_(String.prototype.toLowerCase),vt=_(String.prototype.toString),me=_(String.prototype.match),X=_(String.prototype.replace),Je=_(String.prototype.indexOf),Qe=_(String.prototype.trim),R=_(Object.prototype.hasOwnProperty),A=_(RegExp.prototype.test),q=tn(TypeError);function _(r){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),m=1;m<l;m++)a[m-1]=arguments[m];return Ot(r,o,a)}}function tn(r){return function(){for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return Lt(r,l)}}function i(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;se&&se(r,null);let a=o.length;for(;a--;){let m=o[a];if(typeof m=="string"){const b=l(m);b!==m&&(qe(o)||(o[a]=b),m=b)}r[m]=!0}return r}function en(r){for(let o=0;o<r.length;o++)R(r,o)||(r[o]=null);return r}function k(r){const o=ce(null);for(const[l,a]of le(r))R(r,l)&&(Array.isArray(a)?o[l]=en(a):a&&typeof a=="object"&&a.constructor===Object?o[l]=k(a):o[l]=a);return o}function $(r,o){for(;r!==null;){const a=Ke(r,o);if(a){if(a.get)return _(a.get);if(typeof a.value=="function")return _(a.value)}r=$e(r)}function l(){return null}return l}const pe=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dt=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ct=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),nn=y(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),kt=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),on=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fe=y(["#text"]),de=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xt=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ge=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),st=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rn=S(/\{\{[\w\W]*|[\w\W]*\}\}/gm),an=S(/<%[\w\W]*|[\w\W]*%>/gm),ln=S(/\$\{[\w\W]*/gm),sn=S(/^data-[\-\w.\u00B7-\uFFFF]+$/),cn=S(/^aria-[\-\w]+$/),he=S(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),un=S(/^(?:\w+script|data):/i),mn=S(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Te=S(/^html$/i),pn=S(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ee=Object.freeze({__proto__:null,ARIA_ATTR:cn,ATTR_WHITESPACE:mn,CUSTOM_ELEMENT:pn,DATA_ATTR:sn,DOCTYPE_NAME:Te,ERB_EXPR:an,IS_ALLOWED_URI:he,IS_SCRIPT_OR_DATA:un,MUSTACHE_EXPR:rn,TMPLIT_EXPR:ln});const K={element:1,text:3,progressingInstruction:7,comment:8,document:9},fn=function(){return typeof window>"u"?null:window},dn=function(r,o){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let l=null;const a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(l=o.getAttribute(a));const m="dompurify"+(l?"#"+l:"");try{return r.createPolicy(m,{createHTML(b){return b},createScriptURL(b){return b}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},ye=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ae(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn();const o=t=>Ae(t);if(o.version="3.2.5",o.removed=[],!r||!r.document||r.document.nodeType!==K.document||!r.Element)return o.isSupported=!1,o;let{document:l}=r;const a=l,m=a.currentScript,{DocumentFragment:b,HTMLTemplateElement:V,Node:ct,Element:Ut,NodeFilter:z,NamedNodeMap:_e=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:be,DOMParser:Ne,trustedTypes:Z}=r,F=Ut.prototype,Se=$(F,"cloneNode"),Re=$(F,"remove"),we=$(F,"nextSibling"),Oe=$(F,"childNodes"),J=$(F,"parentNode");if(typeof V=="function"){const t=l.createElement("template");t.content&&t.content.ownerDocument&&(l=t.content.ownerDocument)}let h,W="";const{implementation:ut,createNodeIterator:Le,createDocumentFragment:ve,getElementsByTagName:De}=l,{importNode:Ce}=a;let T=ye();o.isSupported=typeof le=="function"&&typeof J=="function"&&ut&&ut.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:mt,ERB_EXPR:pt,TMPLIT_EXPR:ft,DATA_ATTR:ke,ARIA_ATTR:xe,IS_SCRIPT_OR_DATA:Ie,ATTR_WHITESPACE:Pt,CUSTOM_ELEMENT:Me}=Ee;let{IS_ALLOWED_URI:Ht}=Ee,p=null;const zt=i({},[...pe,...Dt,...Ct,...kt,...fe]);let d=null;const Ft=i({},[...de,...xt,...ge,...st]);let c=Object.seal(ce(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,dt=null,Wt=!0,gt=!0,Bt=!1,Gt=!0,x=!1,ht=!0,D=!1,Tt=!1,Et=!1,I=!1,Q=!1,tt=!1,Yt=!0,jt=!1;const Ue="user-content-";let yt=!0,G=!1,M={},U=null;const Xt=i({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qt=null;const $t=i({},["audio","video","img","source","image","track"]);let At=null;const Kt=i({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",O="http://www.w3.org/1999/xhtml";let P=O,_t=!1,bt=null;const Pe=i({},[et,nt,O],vt);let ot=i({},["mi","mo","mn","ms","mtext"]),rt=i({},["annotation-xml"]);const He=i({},["title","style","font","a","script"]);let Y=null;const ze=["application/xhtml+xml","text/html"],Fe="text/html";let f=null,H=null;const We=l.createElement("form"),Vt=function(t){return t instanceof RegExp||t instanceof Function},Nt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===t)){if((!t||typeof t!="object")&&(t={}),t=k(t),Y=ze.indexOf(t.PARSER_MEDIA_TYPE)===-1?Fe:t.PARSER_MEDIA_TYPE,f=Y==="application/xhtml+xml"?vt:lt,p=R(t,"ALLOWED_TAGS")?i({},t.ALLOWED_TAGS,f):zt,d=R(t,"ALLOWED_ATTR")?i({},t.ALLOWED_ATTR,f):Ft,bt=R(t,"ALLOWED_NAMESPACES")?i({},t.ALLOWED_NAMESPACES,vt):Pe,At=R(t,"ADD_URI_SAFE_ATTR")?i(k(Kt),t.ADD_URI_SAFE_ATTR,f):Kt,qt=R(t,"ADD_DATA_URI_TAGS")?i(k($t),t.ADD_DATA_URI_TAGS,f):$t,U=R(t,"FORBID_CONTENTS")?i({},t.FORBID_CONTENTS,f):Xt,B=R(t,"FORBID_TAGS")?i({},t.FORBID_TAGS,f):{},dt=R(t,"FORBID_ATTR")?i({},t.FORBID_ATTR,f):{},M=R(t,"USE_PROFILES")?t.USE_PROFILES:!1,Wt=t.ALLOW_ARIA_ATTR!==!1,gt=t.ALLOW_DATA_ATTR!==!1,Bt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Gt=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,x=t.SAFE_FOR_TEMPLATES||!1,ht=t.SAFE_FOR_XML!==!1,D=t.WHOLE_DOCUMENT||!1,I=t.RETURN_DOM||!1,Q=t.RETURN_DOM_FRAGMENT||!1,tt=t.RETURN_TRUSTED_TYPE||!1,Et=t.FORCE_BODY||!1,Yt=t.SANITIZE_DOM!==!1,jt=t.SANITIZE_NAMED_PROPS||!1,yt=t.KEEP_CONTENT!==!1,G=t.IN_PLACE||!1,Ht=t.ALLOWED_URI_REGEXP||he,P=t.NAMESPACE||O,ot=t.MATHML_TEXT_INTEGRATION_POINTS||ot,rt=t.HTML_INTEGRATION_POINTS||rt,c=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Vt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(c.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Vt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(c.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(c.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),x&&(gt=!1),Q&&(I=!0),M&&(p=i({},fe),d=[],M.html===!0&&(i(p,pe),i(d,de)),M.svg===!0&&(i(p,Dt),i(d,xt),i(d,st)),M.svgFilters===!0&&(i(p,Ct),i(d,xt),i(d,st)),M.mathMl===!0&&(i(p,kt),i(d,ge),i(d,st))),t.ADD_TAGS&&(p===zt&&(p=k(p)),i(p,t.ADD_TAGS,f)),t.ADD_ATTR&&(d===Ft&&(d=k(d)),i(d,t.ADD_ATTR,f)),t.ADD_URI_SAFE_ATTR&&i(At,t.ADD_URI_SAFE_ATTR,f),t.FORBID_CONTENTS&&(U===Xt&&(U=k(U)),i(U,t.FORBID_CONTENTS,f)),yt&&(p["#text"]=!0),D&&i(p,["html","head","body"]),p.table&&(i(p,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');h=t.TRUSTED_TYPES_POLICY,W=h.createHTML("")}else h===void 0&&(h=dn(Z,m)),h!==null&&typeof W=="string"&&(W=h.createHTML(""));y&&y(t),H=t}},Zt=i({},[...Dt,...Ct,...nn]),Jt=i({},[...kt,...on]),Be=function(t){let n=J(t);(!n||!n.tagName)&&(n={namespaceURI:P,tagName:"template"});const e=lt(t.tagName),s=lt(n.tagName);return bt[t.namespaceURI]?t.namespaceURI===nt?n.namespaceURI===O?e==="svg":n.namespaceURI===et?e==="svg"&&(s==="annotation-xml"||ot[s]):!!Zt[e]:t.namespaceURI===et?n.namespaceURI===O?e==="math":n.namespaceURI===nt?e==="math"&&rt[s]:!!Jt[e]:t.namespaceURI===O?n.namespaceURI===nt&&!rt[s]||n.namespaceURI===et&&!ot[s]?!1:!Jt[e]&&(He[e]||!Zt[e]):!!(Y==="application/xhtml+xml"&&bt[t.namespaceURI]):!1},C=function(t){j(o.removed,{element:t});try{J(t).removeChild(t)}catch{Re(t)}},at=function(t,n){try{j(o.removed,{attribute:n.getAttributeNode(t),from:n})}catch{j(o.removed,{attribute:null,from:n})}if(n.removeAttribute(t),t==="is")if(I||Q)try{C(n)}catch{}else try{n.setAttribute(t,"")}catch{}},Qt=function(t){let n=null,e=null;if(Et)t="<remove></remove>"+t;else{const u=me(t,/^[\r\n\t ]+/);e=u&&u[0]}Y==="application/xhtml+xml"&&P===O&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const s=h?h.createHTML(t):t;if(P===O)try{n=new Ne().parseFromString(s,Y)}catch{}if(!n||!n.documentElement){n=ut.createDocument(P,"template",null);try{n.documentElement.innerHTML=_t?W:s}catch{}}const g=n.body||n.documentElement;return t&&e&&g.insertBefore(l.createTextNode(e),g.childNodes[0]||null),P===O?De.call(n,D?"html":"body")[0]:D?n.documentElement:g},te=function(t){return Le.call(t.ownerDocument||t,t,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},St=function(t){return t instanceof be&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof _e)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},ee=function(t){return typeof ct=="function"&&t instanceof ct};function L(t,n,e){it(t,s=>{s.call(o,n,e,H)})}const ne=function(t){let n=null;if(L(T.beforeSanitizeElements,t,null),St(t))return C(t),!0;const e=f(t.nodeName);if(L(T.uponSanitizeElement,t,{tagName:e,allowedTags:p}),t.hasChildNodes()&&!ee(t.firstElementChild)&&A(/<[/\w!]/g,t.innerHTML)&&A(/<[/\w!]/g,t.textContent)||t.nodeType===K.progressingInstruction||ht&&t.nodeType===K.comment&&A(/<[/\w]/g,t.data))return C(t),!0;if(!p[e]||B[e]){if(!B[e]&&re(e)&&(c.tagNameCheck instanceof RegExp&&A(c.tagNameCheck,e)||c.tagNameCheck instanceof Function&&c.tagNameCheck(e)))return!1;if(yt&&!U[e]){const s=J(t)||t.parentNode,g=Oe(t)||t.childNodes;if(g&&s){const u=g.length;for(let v=u-1;v>=0;--v){const N=Se(g[v],!0);N.__removalCount=(t.__removalCount||0)+1,s.insertBefore(N,we(t))}}}return C(t),!0}return t instanceof Ut&&!Be(t)||(e==="noscript"||e==="noembed"||e==="noframes")&&A(/<\/no(script|embed|frames)/i,t.innerHTML)?(C(t),!0):(x&&t.nodeType===K.text&&(n=t.textContent,it([mt,pt,ft],s=>{n=X(n,s," ")}),t.textContent!==n&&(j(o.removed,{element:t.cloneNode()}),t.textContent=n)),L(T.afterSanitizeElements,t,null),!1)},oe=function(t,n,e){if(Yt&&(n==="id"||n==="name")&&(e in l||e in We))return!1;if(!(gt&&!dt[n]&&A(ke,n))&&!(Wt&&A(xe,n))){if(!d[n]||dt[n]){if(!(re(t)&&(c.tagNameCheck instanceof RegExp&&A(c.tagNameCheck,t)||c.tagNameCheck instanceof Function&&c.tagNameCheck(t))&&(c.attributeNameCheck instanceof RegExp&&A(c.attributeNameCheck,n)||c.attributeNameCheck instanceof Function&&c.attributeNameCheck(n))||n==="is"&&c.allowCustomizedBuiltInElements&&(c.tagNameCheck instanceof RegExp&&A(c.tagNameCheck,e)||c.tagNameCheck instanceof Function&&c.tagNameCheck(e))))return!1}else if(!At[n]&&!A(Ht,X(e,Pt,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&Je(e,"data:")===0&&qt[t])&&!(Bt&&!A(Ie,X(e,Pt,"")))&&e)return!1}return!0},re=function(t){return t!=="annotation-xml"&&me(t,Me)},ae=function(t){L(T.beforeSanitizeAttributes,t,null);const{attributes:n}=t;if(!n||St(t))return;const e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let s=n.length;for(;s--;){const g=n[s],{name:u,namespaceURI:v,value:N}=g,w=f(u);let E=u==="value"?N:Qe(N);if(e.attrName=w,e.attrValue=E,e.keepAttr=!0,e.forceKeepAttr=void 0,L(T.uponSanitizeAttribute,t,e),E=e.attrValue,jt&&(w==="id"||w==="name")&&(at(u,t),E=Ue+E),ht&&A(/((--!?|])>)|<\/(style|title)/i,E)){at(u,t);continue}if(e.forceKeepAttr||(at(u,t),!e.keepAttr))continue;if(!Gt&&A(/\/>/i,E)){at(u,t);continue}x&&it([mt,pt,ft],Ye=>{E=X(E,Ye," ")});const ie=f(t.nodeName);if(oe(ie,w,E)){if(h&&typeof Z=="object"&&typeof Z.getAttributeType=="function"&&!v)switch(Z.getAttributeType(ie,w)){case"TrustedHTML":{E=h.createHTML(E);break}case"TrustedScriptURL":{E=h.createScriptURL(E);break}}try{v?t.setAttributeNS(v,u,E):t.setAttribute(u,E),St(t)?C(t):ue(o.removed)}catch{}}}L(T.afterSanitizeAttributes,t,null)},Ge=function t(n){let e=null;const s=te(n);for(L(T.beforeSanitizeShadowDOM,n,null);e=s.nextNode();)L(T.uponSanitizeShadowNode,e,null),ne(e),ae(e),e.content instanceof b&&t(e.content);L(T.afterSanitizeShadowDOM,n,null)};return o.sanitize=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,s=null,g=null,u=null;if(_t=!t,_t&&(t="<!-->"),typeof t!="string"&&!ee(t))if(typeof t.toString=="function"){if(t=t.toString(),typeof t!="string")throw q("dirty is not a string, aborting")}else throw q("toString is not a function");if(!o.isSupported)return t;if(Tt||Nt(n),o.removed=[],typeof t=="string"&&(G=!1),G){if(t.nodeName){const w=f(t.nodeName);if(!p[w]||B[w])throw q("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof ct)e=Qt("<!---->"),s=e.ownerDocument.importNode(t,!0),s.nodeType===K.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?e=s:e.appendChild(s);else{if(!I&&!x&&!D&&t.indexOf("<")===-1)return h&&tt?h.createHTML(t):t;if(e=Qt(t),!e)return I?null:tt?W:""}e&&Et&&C(e.firstChild);const v=te(G?t:e);for(;g=v.nextNode();)ne(g),ae(g),g.content instanceof b&&Ge(g.content);if(G)return t;if(I){if(Q)for(u=ve.call(e.ownerDocument);e.firstChild;)u.appendChild(e.firstChild);else u=e;return(d.shadowroot||d.shadowrootmode)&&(u=Ce.call(a,u,!0)),u}let N=D?e.outerHTML:e.innerHTML;return D&&p["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&A(Te,e.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
1
+ import{c as je,r as Rt,bO as Xe,j as wt}from"./index-OxGwEg3m.js";/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:le,setPrototypeOf:se,isFrozen:qe,getPrototypeOf:$e,getOwnPropertyDescriptor:Ke}=Object;let{freeze:y,seal:S,create:ce}=Object,{apply:Ot,construct:Lt}=typeof Reflect<"u"&&Reflect;y||(y=function(r){return r}),S||(S=function(r){return r}),Ot||(Ot=function(r,o,l){return r.apply(o,l)}),Lt||(Lt=function(r,o){return new r(...o)});const it=_(Array.prototype.forEach),Ve=_(Array.prototype.lastIndexOf),ue=_(Array.prototype.pop),j=_(Array.prototype.push),Ze=_(Array.prototype.splice),lt=_(String.prototype.toLowerCase),vt=_(String.prototype.toString),me=_(String.prototype.match),X=_(String.prototype.replace),Je=_(String.prototype.indexOf),Qe=_(String.prototype.trim),R=_(Object.prototype.hasOwnProperty),A=_(RegExp.prototype.test),q=tn(TypeError);function _(r){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),m=1;m<l;m++)a[m-1]=arguments[m];return Ot(r,o,a)}}function tn(r){return function(){for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return Lt(r,l)}}function i(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;se&&se(r,null);let a=o.length;for(;a--;){let m=o[a];if(typeof m=="string"){const b=l(m);b!==m&&(qe(o)||(o[a]=b),m=b)}r[m]=!0}return r}function en(r){for(let o=0;o<r.length;o++)R(r,o)||(r[o]=null);return r}function k(r){const o=ce(null);for(const[l,a]of le(r))R(r,l)&&(Array.isArray(a)?o[l]=en(a):a&&typeof a=="object"&&a.constructor===Object?o[l]=k(a):o[l]=a);return o}function $(r,o){for(;r!==null;){const a=Ke(r,o);if(a){if(a.get)return _(a.get);if(typeof a.value=="function")return _(a.value)}r=$e(r)}function l(){return null}return l}const pe=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dt=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ct=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),nn=y(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),kt=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),on=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fe=y(["#text"]),de=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xt=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ge=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),st=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rn=S(/\{\{[\w\W]*|[\w\W]*\}\}/gm),an=S(/<%[\w\W]*|[\w\W]*%>/gm),ln=S(/\$\{[\w\W]*/gm),sn=S(/^data-[\-\w.\u00B7-\uFFFF]+$/),cn=S(/^aria-[\-\w]+$/),he=S(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),un=S(/^(?:\w+script|data):/i),mn=S(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Te=S(/^html$/i),pn=S(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ee=Object.freeze({__proto__:null,ARIA_ATTR:cn,ATTR_WHITESPACE:mn,CUSTOM_ELEMENT:pn,DATA_ATTR:sn,DOCTYPE_NAME:Te,ERB_EXPR:an,IS_ALLOWED_URI:he,IS_SCRIPT_OR_DATA:un,MUSTACHE_EXPR:rn,TMPLIT_EXPR:ln});const K={element:1,text:3,progressingInstruction:7,comment:8,document:9},fn=function(){return typeof window>"u"?null:window},dn=function(r,o){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let l=null;const a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(l=o.getAttribute(a));const m="dompurify"+(l?"#"+l:"");try{return r.createPolicy(m,{createHTML(b){return b},createScriptURL(b){return b}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},ye=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ae(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn();const o=t=>Ae(t);if(o.version="3.2.5",o.removed=[],!r||!r.document||r.document.nodeType!==K.document||!r.Element)return o.isSupported=!1,o;let{document:l}=r;const a=l,m=a.currentScript,{DocumentFragment:b,HTMLTemplateElement:V,Node:ct,Element:Ut,NodeFilter:z,NamedNodeMap:_e=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:be,DOMParser:Ne,trustedTypes:Z}=r,F=Ut.prototype,Se=$(F,"cloneNode"),Re=$(F,"remove"),we=$(F,"nextSibling"),Oe=$(F,"childNodes"),J=$(F,"parentNode");if(typeof V=="function"){const t=l.createElement("template");t.content&&t.content.ownerDocument&&(l=t.content.ownerDocument)}let h,W="";const{implementation:ut,createNodeIterator:Le,createDocumentFragment:ve,getElementsByTagName:De}=l,{importNode:Ce}=a;let T=ye();o.isSupported=typeof le=="function"&&typeof J=="function"&&ut&&ut.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:mt,ERB_EXPR:pt,TMPLIT_EXPR:ft,DATA_ATTR:ke,ARIA_ATTR:xe,IS_SCRIPT_OR_DATA:Ie,ATTR_WHITESPACE:Pt,CUSTOM_ELEMENT:Me}=Ee;let{IS_ALLOWED_URI:Ht}=Ee,p=null;const zt=i({},[...pe,...Dt,...Ct,...kt,...fe]);let d=null;const Ft=i({},[...de,...xt,...ge,...st]);let c=Object.seal(ce(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,dt=null,Wt=!0,gt=!0,Bt=!1,Gt=!0,x=!1,ht=!0,D=!1,Tt=!1,Et=!1,I=!1,Q=!1,tt=!1,Yt=!0,jt=!1;const Ue="user-content-";let yt=!0,G=!1,M={},U=null;const Xt=i({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qt=null;const $t=i({},["audio","video","img","source","image","track"]);let At=null;const Kt=i({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",O="http://www.w3.org/1999/xhtml";let P=O,_t=!1,bt=null;const Pe=i({},[et,nt,O],vt);let ot=i({},["mi","mo","mn","ms","mtext"]),rt=i({},["annotation-xml"]);const He=i({},["title","style","font","a","script"]);let Y=null;const ze=["application/xhtml+xml","text/html"],Fe="text/html";let f=null,H=null;const We=l.createElement("form"),Vt=function(t){return t instanceof RegExp||t instanceof Function},Nt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===t)){if((!t||typeof t!="object")&&(t={}),t=k(t),Y=ze.indexOf(t.PARSER_MEDIA_TYPE)===-1?Fe:t.PARSER_MEDIA_TYPE,f=Y==="application/xhtml+xml"?vt:lt,p=R(t,"ALLOWED_TAGS")?i({},t.ALLOWED_TAGS,f):zt,d=R(t,"ALLOWED_ATTR")?i({},t.ALLOWED_ATTR,f):Ft,bt=R(t,"ALLOWED_NAMESPACES")?i({},t.ALLOWED_NAMESPACES,vt):Pe,At=R(t,"ADD_URI_SAFE_ATTR")?i(k(Kt),t.ADD_URI_SAFE_ATTR,f):Kt,qt=R(t,"ADD_DATA_URI_TAGS")?i(k($t),t.ADD_DATA_URI_TAGS,f):$t,U=R(t,"FORBID_CONTENTS")?i({},t.FORBID_CONTENTS,f):Xt,B=R(t,"FORBID_TAGS")?i({},t.FORBID_TAGS,f):{},dt=R(t,"FORBID_ATTR")?i({},t.FORBID_ATTR,f):{},M=R(t,"USE_PROFILES")?t.USE_PROFILES:!1,Wt=t.ALLOW_ARIA_ATTR!==!1,gt=t.ALLOW_DATA_ATTR!==!1,Bt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Gt=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,x=t.SAFE_FOR_TEMPLATES||!1,ht=t.SAFE_FOR_XML!==!1,D=t.WHOLE_DOCUMENT||!1,I=t.RETURN_DOM||!1,Q=t.RETURN_DOM_FRAGMENT||!1,tt=t.RETURN_TRUSTED_TYPE||!1,Et=t.FORCE_BODY||!1,Yt=t.SANITIZE_DOM!==!1,jt=t.SANITIZE_NAMED_PROPS||!1,yt=t.KEEP_CONTENT!==!1,G=t.IN_PLACE||!1,Ht=t.ALLOWED_URI_REGEXP||he,P=t.NAMESPACE||O,ot=t.MATHML_TEXT_INTEGRATION_POINTS||ot,rt=t.HTML_INTEGRATION_POINTS||rt,c=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Vt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(c.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Vt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(c.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(c.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),x&&(gt=!1),Q&&(I=!0),M&&(p=i({},fe),d=[],M.html===!0&&(i(p,pe),i(d,de)),M.svg===!0&&(i(p,Dt),i(d,xt),i(d,st)),M.svgFilters===!0&&(i(p,Ct),i(d,xt),i(d,st)),M.mathMl===!0&&(i(p,kt),i(d,ge),i(d,st))),t.ADD_TAGS&&(p===zt&&(p=k(p)),i(p,t.ADD_TAGS,f)),t.ADD_ATTR&&(d===Ft&&(d=k(d)),i(d,t.ADD_ATTR,f)),t.ADD_URI_SAFE_ATTR&&i(At,t.ADD_URI_SAFE_ATTR,f),t.FORBID_CONTENTS&&(U===Xt&&(U=k(U)),i(U,t.FORBID_CONTENTS,f)),yt&&(p["#text"]=!0),D&&i(p,["html","head","body"]),p.table&&(i(p,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');h=t.TRUSTED_TYPES_POLICY,W=h.createHTML("")}else h===void 0&&(h=dn(Z,m)),h!==null&&typeof W=="string"&&(W=h.createHTML(""));y&&y(t),H=t}},Zt=i({},[...Dt,...Ct,...nn]),Jt=i({},[...kt,...on]),Be=function(t){let n=J(t);(!n||!n.tagName)&&(n={namespaceURI:P,tagName:"template"});const e=lt(t.tagName),s=lt(n.tagName);return bt[t.namespaceURI]?t.namespaceURI===nt?n.namespaceURI===O?e==="svg":n.namespaceURI===et?e==="svg"&&(s==="annotation-xml"||ot[s]):!!Zt[e]:t.namespaceURI===et?n.namespaceURI===O?e==="math":n.namespaceURI===nt?e==="math"&&rt[s]:!!Jt[e]:t.namespaceURI===O?n.namespaceURI===nt&&!rt[s]||n.namespaceURI===et&&!ot[s]?!1:!Jt[e]&&(He[e]||!Zt[e]):!!(Y==="application/xhtml+xml"&&bt[t.namespaceURI]):!1},C=function(t){j(o.removed,{element:t});try{J(t).removeChild(t)}catch{Re(t)}},at=function(t,n){try{j(o.removed,{attribute:n.getAttributeNode(t),from:n})}catch{j(o.removed,{attribute:null,from:n})}if(n.removeAttribute(t),t==="is")if(I||Q)try{C(n)}catch{}else try{n.setAttribute(t,"")}catch{}},Qt=function(t){let n=null,e=null;if(Et)t="<remove></remove>"+t;else{const u=me(t,/^[\r\n\t ]+/);e=u&&u[0]}Y==="application/xhtml+xml"&&P===O&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const s=h?h.createHTML(t):t;if(P===O)try{n=new Ne().parseFromString(s,Y)}catch{}if(!n||!n.documentElement){n=ut.createDocument(P,"template",null);try{n.documentElement.innerHTML=_t?W:s}catch{}}const g=n.body||n.documentElement;return t&&e&&g.insertBefore(l.createTextNode(e),g.childNodes[0]||null),P===O?De.call(n,D?"html":"body")[0]:D?n.documentElement:g},te=function(t){return Le.call(t.ownerDocument||t,t,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},St=function(t){return t instanceof be&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof _e)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},ee=function(t){return typeof ct=="function"&&t instanceof ct};function L(t,n,e){it(t,s=>{s.call(o,n,e,H)})}const ne=function(t){let n=null;if(L(T.beforeSanitizeElements,t,null),St(t))return C(t),!0;const e=f(t.nodeName);if(L(T.uponSanitizeElement,t,{tagName:e,allowedTags:p}),t.hasChildNodes()&&!ee(t.firstElementChild)&&A(/<[/\w!]/g,t.innerHTML)&&A(/<[/\w!]/g,t.textContent)||t.nodeType===K.progressingInstruction||ht&&t.nodeType===K.comment&&A(/<[/\w]/g,t.data))return C(t),!0;if(!p[e]||B[e]){if(!B[e]&&re(e)&&(c.tagNameCheck instanceof RegExp&&A(c.tagNameCheck,e)||c.tagNameCheck instanceof Function&&c.tagNameCheck(e)))return!1;if(yt&&!U[e]){const s=J(t)||t.parentNode,g=Oe(t)||t.childNodes;if(g&&s){const u=g.length;for(let v=u-1;v>=0;--v){const N=Se(g[v],!0);N.__removalCount=(t.__removalCount||0)+1,s.insertBefore(N,we(t))}}}return C(t),!0}return t instanceof Ut&&!Be(t)||(e==="noscript"||e==="noembed"||e==="noframes")&&A(/<\/no(script|embed|frames)/i,t.innerHTML)?(C(t),!0):(x&&t.nodeType===K.text&&(n=t.textContent,it([mt,pt,ft],s=>{n=X(n,s," ")}),t.textContent!==n&&(j(o.removed,{element:t.cloneNode()}),t.textContent=n)),L(T.afterSanitizeElements,t,null),!1)},oe=function(t,n,e){if(Yt&&(n==="id"||n==="name")&&(e in l||e in We))return!1;if(!(gt&&!dt[n]&&A(ke,n))&&!(Wt&&A(xe,n))){if(!d[n]||dt[n]){if(!(re(t)&&(c.tagNameCheck instanceof RegExp&&A(c.tagNameCheck,t)||c.tagNameCheck instanceof Function&&c.tagNameCheck(t))&&(c.attributeNameCheck instanceof RegExp&&A(c.attributeNameCheck,n)||c.attributeNameCheck instanceof Function&&c.attributeNameCheck(n))||n==="is"&&c.allowCustomizedBuiltInElements&&(c.tagNameCheck instanceof RegExp&&A(c.tagNameCheck,e)||c.tagNameCheck instanceof Function&&c.tagNameCheck(e))))return!1}else if(!At[n]&&!A(Ht,X(e,Pt,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&Je(e,"data:")===0&&qt[t])&&!(Bt&&!A(Ie,X(e,Pt,"")))&&e)return!1}return!0},re=function(t){return t!=="annotation-xml"&&me(t,Me)},ae=function(t){L(T.beforeSanitizeAttributes,t,null);const{attributes:n}=t;if(!n||St(t))return;const e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let s=n.length;for(;s--;){const g=n[s],{name:u,namespaceURI:v,value:N}=g,w=f(u);let E=u==="value"?N:Qe(N);if(e.attrName=w,e.attrValue=E,e.keepAttr=!0,e.forceKeepAttr=void 0,L(T.uponSanitizeAttribute,t,e),E=e.attrValue,jt&&(w==="id"||w==="name")&&(at(u,t),E=Ue+E),ht&&A(/((--!?|])>)|<\/(style|title)/i,E)){at(u,t);continue}if(e.forceKeepAttr||(at(u,t),!e.keepAttr))continue;if(!Gt&&A(/\/>/i,E)){at(u,t);continue}x&&it([mt,pt,ft],Ye=>{E=X(E,Ye," ")});const ie=f(t.nodeName);if(oe(ie,w,E)){if(h&&typeof Z=="object"&&typeof Z.getAttributeType=="function"&&!v)switch(Z.getAttributeType(ie,w)){case"TrustedHTML":{E=h.createHTML(E);break}case"TrustedScriptURL":{E=h.createScriptURL(E);break}}try{v?t.setAttributeNS(v,u,E):t.setAttribute(u,E),St(t)?C(t):ue(o.removed)}catch{}}}L(T.afterSanitizeAttributes,t,null)},Ge=function t(n){let e=null;const s=te(n);for(L(T.beforeSanitizeShadowDOM,n,null);e=s.nextNode();)L(T.uponSanitizeShadowNode,e,null),ne(e),ae(e),e.content instanceof b&&t(e.content);L(T.afterSanitizeShadowDOM,n,null)};return o.sanitize=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,s=null,g=null,u=null;if(_t=!t,_t&&(t="<!-->"),typeof t!="string"&&!ee(t))if(typeof t.toString=="function"){if(t=t.toString(),typeof t!="string")throw q("dirty is not a string, aborting")}else throw q("toString is not a function");if(!o.isSupported)return t;if(Tt||Nt(n),o.removed=[],typeof t=="string"&&(G=!1),G){if(t.nodeName){const w=f(t.nodeName);if(!p[w]||B[w])throw q("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof ct)e=Qt("<!---->"),s=e.ownerDocument.importNode(t,!0),s.nodeType===K.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?e=s:e.appendChild(s);else{if(!I&&!x&&!D&&t.indexOf("<")===-1)return h&&tt?h.createHTML(t):t;if(e=Qt(t),!e)return I?null:tt?W:""}e&&Et&&C(e.firstChild);const v=te(G?t:e);for(;g=v.nextNode();)ne(g),ae(g),g.content instanceof b&&Ge(g.content);if(G)return t;if(I){if(Q)for(u=ve.call(e.ownerDocument);e.firstChild;)u.appendChild(e.firstChild);else u=e;return(d.shadowroot||d.shadowrootmode)&&(u=Ce.call(a,u,!0)),u}let N=D?e.outerHTML:e.innerHTML;return D&&p["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&A(Te,e.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
2
2
  `+N),x&&it([mt,pt,ft],w=>{N=X(N,w," ")}),h&&tt?h.createHTML(N):N},o.setConfig=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(t),Tt=!0},o.clearConfig=function(){H=null,Tt=!1},o.isValidAttribute=function(t,n,e){H||Nt({});const s=f(t),g=f(n);return oe(s,g,e)},o.addHook=function(t,n){typeof n=="function"&&j(T[t],n)},o.removeHook=function(t,n){if(n!==void 0){const e=Ve(T[t],n);return e===-1?void 0:Ze(T[t],e,1)[0]}return ue(T[t])},o.removeHooks=function(t){T[t]=[]},o.removeAllHooks=function(){T=ye()},o}var It=Ae();const gn=je("div",{target:"e18540fl0"})({name:"1d3w5wq",styles:"width:100%"}),Mt="data-temp-href-target";It.addHook("beforeSanitizeAttributes",function(r){r instanceof HTMLElement&&r.hasAttribute("target")&&r.getAttribute("target")==="_blank"&&r.setAttribute(Mt,"_blank")}),It.addHook("afterSanitizeAttributes",function(r){r instanceof HTMLElement&&r.hasAttribute(Mt)&&(r.setAttribute("target","_blank"),r.setAttribute("rel","noopener noreferrer"),r.removeAttribute(Mt))});const hn=r=>{const o={USE_PROFILES:{html:!0},FORCE_BODY:!0};return It.sanitize(r,o)};function Tn({element:r}){const{body:o}=r,[l,a]=Xe(),m=Rt.useMemo(()=>hn(o),[o]);return Rt.useEffect(()=>{var b,V;((b=a.current)==null?void 0:b.clientHeight)===0&&l>=0&&((V=a.current.parentElement)==null?void 0:V.childElementCount)===1&&a.current.parentElement.classList.add("stHtml-empty")}),wt.jsx(wt.Fragment,{children:m&&wt.jsx(gn,{className:"stHtml","data-testid":"stHtml",ref:a,dangerouslySetInnerHTML:{__html:m}})})}const En=Rt.memo(Tn);export{En as default};
@@ -1 +1 @@
1
- import{r,bO as k,A as w,cY as x,j as s,bY as D,bZ as E,cb as U,b_ as _,bH as A}from"./index-NYCOzVlX.js";import{u as B}from"./uniqueId-C8rYCZew.js";import{u as L,a as M,b as P}from"./useOnInputChange-Cl7V3cFN.js";import{I as O}from"./InputInstructions-GAhfSEnF.js";import{a as Y}from"./useBasicWidgetState-vUy8Wspy.js";import{T as G}from"./textarea-r4-zB_B9.js";import"./inputUtils-CQWz5UKz.js";import"./FormClearHelper--a7FEpt-.js";import"./base-input-BHEia47e.js";const W=(a,e)=>a.getStringValue(e)??e.default??null,K=a=>a.default??null,N=a=>a.value??null,Z=(a,e,i,d)=>{e.setStringValue(a,i.value,{fromUi:i.fromUi},d)},$=({disabled:a,element:e,widgetMgr:i,fragmentId:d})=>{var h;const b=r.useRef(B("text_area_")).current,[S,v]=k(),[l,m]=r.useState(!1),[I,c]=r.useState(!1),[o,n]=r.useState(()=>W(i,e)??null),C=r.useCallback(()=>{n(e.default??null),m(!0)},[e]),[T,u]=Y({getStateFromWidgetMgr:W,getDefaultStateFromProto:K,getCurrStateFromProto:N,updateWidgetMgrState:Z,element:e,widgetMgr:i,fragmentId:d,onFormCleared:C});L(T,o,n,l);const t=w(),g=r.useCallback(()=>{m(!1),u({value:o,fromUi:!0})},[o,u]),y=r.useCallback(()=>{l&&g(),c(!1)},[l,g]),F=r.useCallback(()=>{c(!0)},[]),j=M({formId:e.formId,maxChars:e.maxChars,setDirty:m,setUiValue:n,setValueWithSource:u}),z=P(e.formId,g,l,i,d,!0),{height:f,placeholder:H,formId:p}=e,R=x({formId:p})?i.allowFormEnterToSubmit(p):l,V=I&&S>t.breakpoints.hideWidgetDetails;return s.jsxs("div",{className:"stTextArea","data-testid":"stTextArea",ref:v,children:[s.jsx(D,{label:e.label,disabled:a,labelVisibility:E((h=e.labelVisibility)==null?void 0:h.value),htmlFor:b,children:e.help&&s.jsx(U,{children:s.jsx(_,{content:e.help,placement:A.TOP_RIGHT})})}),s.jsx(G,{value:o??"",placeholder:H,onBlur:y,onFocus:F,onChange:j,onKeyDown:z,"aria-label":e.label,disabled:a,id:b,overrides:{Input:{style:{lineHeight:t.lineHeights.inputWidget,height:f?`${f}px`:"",minHeight:t.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:t.spacing.md,paddingLeft:t.spacing.md,paddingBottom:t.spacing.md,paddingTop:t.spacing.md}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:t.sizes.borderWidth,borderRightWidth:t.sizes.borderWidth,borderTopWidth:t.sizes.borderWidth,borderBottomWidth:t.sizes.borderWidth}}}}),V&&s.jsx(O,{dirty:l,value:o??"",maxLength:e.maxChars,type:"multiline",inForm:x({formId:p}),allowEnterToSubmit:R})]})},q=r.memo($);export{q as default};
1
+ import{r,bO as k,A as w,cY as x,j as s,bY as D,bZ as E,cb as U,b_ as _,bH as A}from"./index-OxGwEg3m.js";import{u as B}from"./uniqueId-Dka3DuQQ.js";import{u as L,a as M,b as P}from"./useOnInputChange-C3lvbUNp.js";import{I as O}from"./InputInstructions-DuxSO2sS.js";import{a as Y}from"./useBasicWidgetState-Bm5AJWX7.js";import{T as G}from"./textarea-Cy6EVtfz.js";import"./inputUtils-CQWz5UKz.js";import"./FormClearHelper-DxeY-rII.js";import"./base-input-NsRtpzFx.js";const W=(a,e)=>a.getStringValue(e)??e.default??null,K=a=>a.default??null,N=a=>a.value??null,Z=(a,e,i,d)=>{e.setStringValue(a,i.value,{fromUi:i.fromUi},d)},$=({disabled:a,element:e,widgetMgr:i,fragmentId:d})=>{var h;const b=r.useRef(B("text_area_")).current,[S,v]=k(),[l,m]=r.useState(!1),[I,c]=r.useState(!1),[o,n]=r.useState(()=>W(i,e)??null),C=r.useCallback(()=>{n(e.default??null),m(!0)},[e]),[T,u]=Y({getStateFromWidgetMgr:W,getDefaultStateFromProto:K,getCurrStateFromProto:N,updateWidgetMgrState:Z,element:e,widgetMgr:i,fragmentId:d,onFormCleared:C});L(T,o,n,l);const t=w(),g=r.useCallback(()=>{m(!1),u({value:o,fromUi:!0})},[o,u]),y=r.useCallback(()=>{l&&g(),c(!1)},[l,g]),F=r.useCallback(()=>{c(!0)},[]),j=M({formId:e.formId,maxChars:e.maxChars,setDirty:m,setUiValue:n,setValueWithSource:u}),z=P(e.formId,g,l,i,d,!0),{height:f,placeholder:H,formId:p}=e,R=x({formId:p})?i.allowFormEnterToSubmit(p):l,V=I&&S>t.breakpoints.hideWidgetDetails;return s.jsxs("div",{className:"stTextArea","data-testid":"stTextArea",ref:v,children:[s.jsx(D,{label:e.label,disabled:a,labelVisibility:E((h=e.labelVisibility)==null?void 0:h.value),htmlFor:b,children:e.help&&s.jsx(U,{children:s.jsx(_,{content:e.help,placement:A.TOP_RIGHT})})}),s.jsx(G,{value:o??"",placeholder:H,onBlur:y,onFocus:F,onChange:j,onKeyDown:z,"aria-label":e.label,disabled:a,id:b,overrides:{Input:{style:{lineHeight:t.lineHeights.inputWidget,height:f?`${f}px`:"",minHeight:t.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:t.spacing.md,paddingLeft:t.spacing.md,paddingBottom:t.spacing.md,paddingTop:t.spacing.md}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:t.sizes.borderWidth,borderRightWidth:t.sizes.borderWidth,borderTopWidth:t.sizes.borderWidth,borderBottomWidth:t.sizes.borderWidth}}}}),V&&s.jsx(O,{dirty:l,value:o??"",maxLength:e.maxChars,type:"multiline",inForm:x({formId:p}),allowEnterToSubmit:R})]})},q=r.memo($);export{q as default};
@@ -1 +1 @@
1
- import{cG as c,a$ as i,bm as f,cH as u}from"./index-NYCOzVlX.js";function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function b(e,t,o){return t&&a(e.prototype,t),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){if(t&&(i(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}function l(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&&u(e,t)}export{l as _,b as a,p as b,n as c,s as d};
1
+ import{cG as c,a$ as i,bm as f,cH as u}from"./index-OxGwEg3m.js";function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function b(e,t,o){return t&&a(e.prototype,t),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){if(t&&(i(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}function l(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&&u(e,t)}export{l as _,b as a,p as b,n as c,s as d};
@@ -1,2 +1,2 @@
1
- import{c1 as m,r as f,cO as U,cT as S,cQ as p}from"./index-NYCOzVlX.js";import{R as G,c as P,d as H,B as J}from"./base-input-BHEia47e.js";function v(t){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(t)}var K=["Root","StartEnhancer","EndEnhancer"],L=["startEnhancer","endEnhancer","overrides"];function i(){return i=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},i.apply(this,arguments)}function O(t,r){return X(t)||W(t,r)||V(t,r)||N()}function N(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{c1 as m,r as f,cO as U,cT as S,cQ as p}from"./index-OxGwEg3m.js";import{R as G,c as P,d as H,B as J}from"./base-input-NsRtpzFx.js";function v(t){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(t)}var K=["Root","StartEnhancer","EndEnhancer"],L=["startEnhancer","endEnhancer","overrides"];function i(){return i=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},i.apply(this,arguments)}function O(t,r){return X(t)||W(t,r)||V(t,r)||N()}function N(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V(t,r){if(t){if(typeof t=="string")return F(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(t,r)}}function F(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}function W(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var e=[],o=!0,u=!1,a,c;try{for(n=n.call(t);!(o=(a=n.next()).done)&&(e.push(a.value),!(r&&e.length===r));o=!0);}catch(d){u=!0,c=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(u)throw c}}return e}}function X(t){if(Array.isArray(t))return t}function R(t,r){if(t==null)return{};var n=Y(t,r),e,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(o=0;o<u.length;o++)e=u[o],!(r.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(n[e]=t[e])}return n}function Y(t,r){if(t==null)return{};var n={},e=Object.keys(t),o,u;for(u=0;u<e.length;u++)o=e[u],!(r.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Z(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function tt(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function rt(t,r,n){return r&&tt(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function et(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&g(t,r)}function g(t,r){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},g(t,r)}function nt(t){var r=ut();return function(){var n=b(t),e;if(r){var o=b(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ot(this,e)}}function ot(t,r){if(r&&(v(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ut(){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 b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},b(t)}function h(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var B=function(t){et(n,t);var r=nt(n);function n(){var e;Z(this,n);for(var o=arguments.length,u=new Array(o),a=0;a<o;a++)u[a]=arguments[a];return e=r.call.apply(r,[this].concat(u)),h(y(e),"state",{isFocused:e.props.autoFocus||!1}),h(y(e),"onFocus",function(c){e.setState({isFocused:!0}),e.props.onFocus(c)}),h(y(e),"onBlur",function(c){e.setState({isFocused:!1}),e.props.onBlur(c)}),e}return rt(n,[{key:"render",value:function(){var e=this.props,o=e.startEnhancer,u=e.endEnhancer,a=e.overrides,c=a.Root,d=a.StartEnhancer,x=a.EndEnhancer,A=R(a,K),I=R(e,L),T=m(c,G),j=O(T,2),$=j[0],C=j[1],k=m(d,P),w=O(k,2),q=w[0],z=w[1],D=m(x,P),E=O(D,2),M=E[0],Q=E[1],s=H(this.props,this.state);return f.createElement($,i({"data-baseweb":"input"},s,C,{$adjoined:_(o,u),$hasIconTrailing:this.props.clearable||this.props.type=="password"}),l(o)&&f.createElement(q,i({},s,z,{$position:S.start}),typeof o=="function"?o(s):o),f.createElement(J,i({},I,{overrides:A,adjoined:_(o,u),onFocus:this.onFocus,onBlur:this.onBlur})),l(u)&&f.createElement(M,i({},s,Q,{$position:S.end}),typeof u=="function"?u(s):u))}}]),n}(f.Component);h(B,"defaultProps",{autoComplete:"on",autoFocus:!1,disabled:!1,name:"",onBlur:function(){},onFocus:function(){},overrides:{},required:!1,size:U.default,startEnhancer:null,endEnhancer:null,clearable:!1,type:"text",readOnly:!1});function _(t,r){return l(t)&&l(r)?p.both:l(t)?p.left:l(r)?p.right:p.none}function l(t){return!!(t||t===0)}export{B as I};
@@ -1 +1 @@
1
- import{c as p,e as y}from"./es6-CcuZyssh.js";import"./index-NYCOzVlX.js";const{File:r,Blob:_,DOMException:s}=p,{INVALID:z,GONE:n,MISMATCH:f,MOD_ERR:m,SYNTAX:w,SECURITY:A,DISALLOWED:b}=y;class c{constructor(i,e){this.fileHandle=i,this.file=e,this.size=e.size,this.position=0}write(i){let e=this.file;if(typeof i=="object"){if(i.type==="write"){if(Number.isInteger(i.position)&&i.position>=0&&(this.position=i.position,this.size<i.position&&(this.file=new r([this.file,new ArrayBuffer(i.position-this.size)],this.file.name,this.file))),!("data"in i))throw new s(...w("write requires a data argument"));i=i.data}else if(i.type==="seek")if(Number.isInteger(i.position)&&i.position>=0){if(this.size<i.position)throw new s(...z);this.position=i.position;return}else throw new s(...w("seek requires a position argument"));else if(i.type==="truncate")if(Number.isInteger(i.size)&&i.size>=0){e=i.size<this.size?new r([e.slice(0,i.size)],e.name,e):new r([e,new Uint8Array(i.size-this.size)],e.name),this.size=e.size,this.position>e.size&&(this.position=e.size),this.file=e;return}else throw new s(...w("truncate requires a size argument"))}i=new _([i]);let t=this.file;const o=t.slice(0,this.position),u=t.slice(this.position+i.size);let a=this.position-o.size;a<0&&(a=0),t=new r([o,new Uint8Array(a),i,u],t.name),this.size=t.size,this.position+=i.size,this.file=t}close(){if(this.fileHandle._deleted)throw new s(...n);this.fileHandle._file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}}class h{constructor(i="",e=new r([],i),t=!0){this._file=e,this.name=i,this.kind="file",this._deleted=!1,this.writable=t,this.readable=!0}async getFile(){if(this._deleted)throw new s(...n);return this._file}async createWritable(i){if(!this.writable)throw new s(...b);if(this._deleted)throw new s(...n);const e=i.keepExistingData?await this.getFile():new r([],this.name);return new c(this,e)}async isSameEntry(i){return this===i}async _destroy(){this._deleted=!0,this._file=null}}class l{constructor(i,e=!0){this.name=i,this.kind="directory",this._deleted=!1,this._entries={},this.writable=e,this.readable=!0}async*entries(){if(this._deleted)throw new s(...n);yield*Object.entries(this._entries)}async isSameEntry(i){return this===i}async getDirectoryHandle(i,e){if(this._deleted)throw new s(...n);const t=this._entries[i];if(t){if(t instanceof h)throw new s(...f);return t}else{if(e.create)return this._entries[i]=new l(i);throw new s(...n)}}async getFileHandle(i,e){const t=this._entries[i],o=t instanceof h;if(t&&o)return t;if(t&&!o)throw new s(...f);if(!t&&!e.create)throw new s(...n);if(!t&&e.create)return this._entries[i]=new h(i)}async removeEntry(i,e){const t=this._entries[i];if(!t)throw new s(...n);await t._destroy(e.recursive),delete this._entries[i]}async _destroy(i){for(let e of Object.values(this._entries)){if(!i)throw new s(...m);await e._destroy(i)}this._entries={},this._deleted=!0}}const g=new l(""),H=()=>g;export{h as FileHandle,l as FolderHandle,c as Sink,H as default};
1
+ import{c as p,e as y}from"./es6-BZHzmZtr.js";import"./index-OxGwEg3m.js";const{File:r,Blob:_,DOMException:s}=p,{INVALID:z,GONE:n,MISMATCH:f,MOD_ERR:m,SYNTAX:w,SECURITY:A,DISALLOWED:b}=y;class c{constructor(i,e){this.fileHandle=i,this.file=e,this.size=e.size,this.position=0}write(i){let e=this.file;if(typeof i=="object"){if(i.type==="write"){if(Number.isInteger(i.position)&&i.position>=0&&(this.position=i.position,this.size<i.position&&(this.file=new r([this.file,new ArrayBuffer(i.position-this.size)],this.file.name,this.file))),!("data"in i))throw new s(...w("write requires a data argument"));i=i.data}else if(i.type==="seek")if(Number.isInteger(i.position)&&i.position>=0){if(this.size<i.position)throw new s(...z);this.position=i.position;return}else throw new s(...w("seek requires a position argument"));else if(i.type==="truncate")if(Number.isInteger(i.size)&&i.size>=0){e=i.size<this.size?new r([e.slice(0,i.size)],e.name,e):new r([e,new Uint8Array(i.size-this.size)],e.name),this.size=e.size,this.position>e.size&&(this.position=e.size),this.file=e;return}else throw new s(...w("truncate requires a size argument"))}i=new _([i]);let t=this.file;const o=t.slice(0,this.position),u=t.slice(this.position+i.size);let a=this.position-o.size;a<0&&(a=0),t=new r([o,new Uint8Array(a),i,u],t.name),this.size=t.size,this.position+=i.size,this.file=t}close(){if(this.fileHandle._deleted)throw new s(...n);this.fileHandle._file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}}class h{constructor(i="",e=new r([],i),t=!0){this._file=e,this.name=i,this.kind="file",this._deleted=!1,this.writable=t,this.readable=!0}async getFile(){if(this._deleted)throw new s(...n);return this._file}async createWritable(i){if(!this.writable)throw new s(...b);if(this._deleted)throw new s(...n);const e=i.keepExistingData?await this.getFile():new r([],this.name);return new c(this,e)}async isSameEntry(i){return this===i}async _destroy(){this._deleted=!0,this._file=null}}class l{constructor(i,e=!0){this.name=i,this.kind="directory",this._deleted=!1,this._entries={},this.writable=e,this.readable=!0}async*entries(){if(this._deleted)throw new s(...n);yield*Object.entries(this._entries)}async isSameEntry(i){return this===i}async getDirectoryHandle(i,e){if(this._deleted)throw new s(...n);const t=this._entries[i];if(t){if(t instanceof h)throw new s(...f);return t}else{if(e.create)return this._entries[i]=new l(i);throw new s(...n)}}async getFileHandle(i,e){const t=this._entries[i],o=t instanceof h;if(t&&o)return t;if(t&&!o)throw new s(...f);if(!t&&!e.create)throw new s(...n);if(!t&&e.create)return this._entries[i]=new h(i)}async removeEntry(i,e){const t=this._entries[i];if(!t)throw new s(...n);await t._destroy(e.recursive),delete this._entries[i]}async _destroy(i){for(let e of Object.values(this._entries)){if(!i)throw new s(...m);await e._destroy(i)}this._entries={},this._deleted=!0}}const g=new l(""),H=()=>g;export{h as FileHandle,l as FolderHandle,c as Sink,H as default};
@@ -1 +1 @@
1
- import{bg as e,bh as f,g as m}from"./index-NYCOzVlX.js";var r,a;function v(){if(a)return r;a=1;var t=e(),n=f(),o=n(function(i,s,u,c){t(i,s,u,c)});return r=o,r}var b=v();const g=m(b);export{g as m};
1
+ import{bg as e,bh as f,g as m}from"./index-OxGwEg3m.js";var r,a;function v(){if(a)return r;a=1;var t=e(),n=f(),o=n(function(i,s,u,c){t(i,s,u,c)});return r=o,r}var b=v();const g=m(b);export{g as m};
@@ -1,4 +1,4 @@
1
- import{R as Q,r as T}from"./index-NYCOzVlX.js";import{s as Ie}from"./index-BXlqmLSw.js";import"./FormClearHelper--a7FEpt-.js";import"./withFullScreenWrapper-D7Ouz6kJ.js";import"./Toolbar-Ce_uRMJw.js";import"./checkbox-Cddx6i3F.js";import"./mergeWith-THRzgcPq.js";import"./sprintf-D7DtBTRn.js";import"./createDownloadLinkElement-DZMwyjvU.js";import"./slicedToArray-CiQSSrYz.js";import"./inherits-DMADb7u9.js";import"./createSuper-RDzkTe3c.js";import"./FileDownload.esm-Bpf_IJaz.js";const Re=Ie("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function se(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var X;(function(e){e.event="event",e.props="prop"})(X||(X={}));function G(){}function Ae(e){var t,r=void 0;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t&&n.length===t.length&&n.every(function(u,l){return u===t[l]})||(t=n,r=e.apply(void 0,n)),r}}function ee(e){return!!(e||"").match(/\d/)}function Z(e){return e==null}function je(e){return typeof e=="number"&&isNaN(e)}function ce(e){return Z(e)||je(e)||typeof e=="number"&&!isFinite(e)}function fe(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Te(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Fe(e,t,r){var n=Te(r),a=e.search(/[1-9]/);return a=a===-1?e.length:a,e.substring(0,a)+e.substring(a,e.length).replace(n,"$1"+t)}function Be(e){var t=T.useRef(e);t.current=e;var r=T.useRef(function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t.current.apply(t,n)});return r.current}function oe(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var a=e.split("."),u=a[0],l=a[1]||"";return{beforeDecimal:u,afterDecimal:l,hasNegation:r,addNegation:n}}function Me(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",a=r[1]||"";return(t?"-":"")+n+(a?"."+a:"")}function ve(e,t,r){for(var n="",a=r?"0":"",u=0;u<=t-1;u++)n+=e[u]||a;return n}function de(e,t){return Array(t+1).join(e)}function me(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),a=n[0],u=n[1];if(u=Number(u),!u)return r+a;a=a.replace(".","");var l=1+u,g=a.length;return l<0?a="0."+de("0",Math.abs(l))+a:l>=g?a=a+de("0",l-g):a=(a.substring(0,l)||"0")+"."+a.substring(l),r+a}function ge(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,a=oe(e),u=a.beforeDecimal,l=a.afterDecimal,g=a.hasNegation,S=parseFloat("0."+(l||"0")),y=l.length<=t?"0."+l:S.toFixed(t),p=y.split("."),d=u.split("").reverse().reduce(function(w,O,m){return w.length>m?(Number(w[0])+Number(O)).toString()+w.substring(1,w.length):O+w},p[0]),h=ve(p[1]||"",t,r),b=g?"-":"",v=n?".":"";return""+b+d+v+h}function z(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var pe=Ae(function(e,t){for(var r=0,n=0,a=e.length,u=t.length;e[r]===t[r]&&r<a;)r++;for(;e[a-1-n]===t[u-1-n]&&u-n>r&&a-n>r;)n++;return{from:{start:r,end:a-n},to:{start:r,end:u-n}}});function Pe(e,t,r){return Math.min(Math.max(e,t),r)}function ie(e){return Math.max(e.selectionStart,e.selectionEnd)}function ke(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Le(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function We(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,a=e.formattedValueIndex;return t[n]===r[a]}function Ke(e,t,r,n,a,u,l){l===void 0&&(l=We);var g=a.findIndex(function(W){return W}),S=e.slice(0,g);!t&&!r.startsWith(S)&&(t=S,r=S+r,n=n+S.length);for(var y=r.length,p=e.length,d={},h=new Array(y),b=0;b<y;b++){h[b]=-1;for(var v=0,w=p;v<w;v++){var O=l({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:b,formattedValueIndex:v});if(O&&d[v]!==!0){h[b]=v,d[v]=!0;break}}}for(var m=n;m<y&&(h[m]===-1||!u(r[m]));)m++;var F=m===y||h[m]===-1?p:h[m];for(m=n-1;m>0&&h[m]===-1;)m--;var M=m===-1||h[m]===-1?0:h[m]+1;return M>F?F:n-M<F-n?M:F}function he(e,t,r,n){var a=e.length;if(t=Pe(t,0,a),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=a&&!r[t];)t++;t>a&&(t=r.lastIndexOf(!0))}return t===-1&&(t=a),t}function Ue(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(ee(e[r])||ee(e[r-1]));return t}function Se(e,t,r,n,a,u){u===void 0&&(u=G);var l=Be(function(v,w){var O,m;return ce(v)?(m="",O=""):typeof v=="number"||w?(m=typeof v=="number"?me(v):v,O=n(m)):(m=a(v,void 0),O=n(m)),{formattedValue:O,numAsString:m}}),g=T.useState(function(){return l(Z(e)?t:e,r)}),S=g[0],y=g[1],p=function(v,w){v.formattedValue!==S.formattedValue&&y({formattedValue:v.formattedValue,numAsString:v.value}),u(v,w)},d=e,h=r;Z(e)&&(d=S.numAsString,h=!0);var b=l(d,h);return T.useMemo(function(){y(b)},[b.formattedValue]),[S,p]}function Ge(e){return e.replace(/[^0-9]/g,"")}function _e(e){return e}function $e(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,a=e.renderText,u=e.getInputRef,l=e.format;l===void 0&&(l=_e);var g=e.removeFormatting;g===void 0&&(g=Ge);var S=e.defaultValue,y=e.valueIsNumericString,p=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=G);var b=e.onKeyDown;b===void 0&&(b=G);var v=e.onMouseUp;v===void 0&&(v=G);var w=e.onFocus;w===void 0&&(w=G);var O=e.onBlur;O===void 0&&(O=G);var m=e.value,F=e.getCaretBoundary;F===void 0&&(F=Ue);var M=e.isValidInputCharacter;M===void 0&&(M=ee);var W=e.isCharacterSame,P=se(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),_=Se(m,S,!!y,l,g,p),K=_[0],V=K.formattedValue,k=K.numAsString,$=_[1],L=T.useRef({formattedValue:V,numAsString:k}),J=function(o,i){L.current={formattedValue:o.formattedValue,numAsString:o.value},$(o,i)},U=T.useState(!1),q=U[0],H=U[1],s=T.useRef(null),c=T.useRef({setCaretTimeout:null,focusTimeout:null});T.useEffect(function(){return H(!0),function(){clearTimeout(c.current.setCaretTimeout),clearTimeout(c.current.focusTimeout)}},[]);var R=l,N=function(o,i){var f=parseFloat(i);return{formattedValue:o,value:i,floatValue:isNaN(f)?void 0:f}},D=function(o,i,f){o.selectionStart===0&&o.selectionEnd===o.value.length||(z(o,i),c.current.setCaretTimeout=setTimeout(function(){o.value===f&&o.selectionStart!==o.selectionEnd&&z(o,i)},0))},E=function(o,i,f){return he(o,i,F(o),f)},B=function(o,i,f){var A=F(i),C=Ke(i,V,o,f,A,M,W);return C=he(i,C,A),C},te=function(o){var i=o.formattedValue;i===void 0&&(i="");var f=o.input,A=o.setCaretPosition,C=o.source,x=o.event,I=o.numAsString,j=o.caretPos;if(f){if(j===void 0&&A){var Y=o.inputValue||f.value,ue=ie(f);f.value=i,j=B(Y,i,ue)}f.value=i,j!==void 0&&D(f,j,i)}i!==V&&J(N(i,I),{event:x,source:C})};T.useEffect(function(){var o=L.current,i=o.formattedValue,f=o.numAsString;V!==i&&(V!==k||i!==f)&&J(N(V,k),{event:void 0,source:X.props})},[V,k]);var ne=s.current?ie(s.current):void 0,re=typeof window<"u"?T.useLayoutEffect:T.useEffect;re(function(){var o=s.current;if(V!==L.current.formattedValue&&o){var i=B(L.current.formattedValue,V,ne);o.value=V,D(o,i,V)}},[V]);var Ve=function(o,i,f){var A=pe(V,o),C=Object.assign(Object.assign({},A),{lastValue:V}),x=g(o,C),I=R(x);if(x=g(I,void 0),d&&!d(N(I,x))){var j=i.target,Y=ie(j),ue=B(o,V,Y);return j.value=V,D(j,ue,V),!1}return te({formattedValue:I,numAsString:x,inputValue:o,event:i,source:f,setCaretPosition:!0,input:i.target}),!0},xe=function(o){var i=o.target,f=i.value,A=Ve(f,o,X.event);A&&h(o)},we=function(o){var i=o.target,f=o.key,A=i.selectionStart,C=i.selectionEnd,x=i.value;x===void 0&&(x="");var I;if(f==="ArrowLeft"||f==="Backspace"?I=Math.max(A-1,0):f==="ArrowRight"?I=Math.min(A+1,x.length):f==="Delete"&&(I=A),I===void 0||A!==C){b(o);return}var j=I;if(f==="ArrowLeft"||f==="ArrowRight"){var Y=f==="ArrowLeft"?"left":"right";j=E(x,I,Y),j!==I&&o.preventDefault()}else f==="Delete"&&!M(x[I])?j=E(x,I,"right"):f==="Backspace"&&!M(x[I])&&(j=E(x,I,"left"));j!==I&&D(i,j,x),o.isUnitTestRun&&D(i,j,x),b(o)},Oe=function(o){var i=o.target,f=i.selectionStart,A=i.selectionEnd,C=i.value;if(C===void 0&&(C=""),f===A){var x=E(C,f);x!==f&&D(i,x,C)}v(o)},Ne=function(o){o.persist&&o.persist();var i=o.target;s.current=i,c.current.focusTimeout=setTimeout(function(){var f=i.selectionStart,A=i.selectionEnd,C=i.value;C===void 0&&(C="");var x=E(C,f);x!==f&&!(f===0&&A===C.length)&&D(i,x,C),w(o)},0)},De=function(o){s.current=null,clearTimeout(c.current.focusTimeout),clearTimeout(c.current.setCaretTimeout),O(o)},Ce=q&&ke()?"numeric":void 0,le=Object.assign({inputMode:Ce},P,{type:t,value:V,onChange:xe,onKeyDown:we,onMouseUp:Oe,onFocus:Ne,onBlur:De});if(r==="text")return a?Q.createElement(Q.Fragment,null,a(V,P)||null):Q.createElement("span",Object.assign({},P,{ref:u}),V);if(n){var Ee=n;return Q.createElement(Ee,Object.assign({},le,{ref:u}))}return Q.createElement("input",Object.assign({},le,{ref:u}))}function be(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,a=t.prefix;a===void 0&&(a="");var u=t.suffix;u===void 0&&(u="");var l=t.allowNegative,g=t.thousandsGroupStyle;if(g===void 0&&(g="thousand"),e===""||e==="-")return e;var S=ae(t),y=S.thousandSeparator,p=S.decimalSeparator,d=r!==0&&e.indexOf(".")!==-1||r&&n,h=oe(e,l),b=h.beforeDecimal,v=h.afterDecimal,w=h.addNegation;return r!==void 0&&(v=ve(v,r,!!n)),y&&(b=Fe(b,y,g)),a&&(b=a+b),u&&(v=v+u),w&&(b="-"+b),e=b+(d&&p||"")+v,e}function ae(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function ze(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),a=r.test(e),u=n.test(e);return e=e.replace(/-/g,""),a&&!u&&t&&(e="-"+e),e}function Je(e,t){return new RegExp("(^-)|[0-9]|"+fe(e),"g")}function Qe(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Ze(e,t,r){var n;t===void 0&&(t=Le(e));var a=r.allowNegative,u=r.prefix;u===void 0&&(u="");var l=r.suffix;l===void 0&&(l="");var g=r.decimalScale,S=t.from,y=t.to,p=y.start,d=y.end,h=ae(r),b=h.allowedDecimalSeparators,v=h.decimalSeparator,w=e[d]===v;if(ee(e)&&(e===u||e===l)&&t.lastValue==="")return e;if(d-p===1&&b.indexOf(e[p])!==-1){var O=g===0?"":v;e=e.substring(0,p)+O+e.substring(p+1,e.length)}var m=function(c,R,N){var D=!1,E=!1;u.startsWith("-")?D=!1:c.startsWith("--")?(D=!1,E=!0):l.startsWith("-")&&c.length===l.length?D=!1:c[0]==="-"&&(D=!0);var B=D?1:0;return E&&(B=2),B&&(c=c.substring(B),R-=B,N-=B),{value:c,start:R,end:N,hasNegation:D}},F=m(e,p,d),M=F.hasNegation;n=F,e=n.value,p=n.start,d=n.end;var W=m(t.lastValue,S.start,S.end),P=W.start,_=W.end,K=W.value,V=e.substring(p,d);e.length&&K.length&&(P>K.length-l.length||_<u.length)&&!(V&&l.startsWith(V))&&(e=K);var k=0;e.startsWith(u)?k+=u.length:p<u.length&&(k=p),e=e.substring(k),d-=k;var $=e.length,L=e.length-l.length;e.endsWith(l)?$=L:(d>L||d>e.length-l.length)&&($=d),e=e.substring(0,$),e=ze(M?"-"+e:e,a),e=(e.match(Je(v))||[]).join("");var J=e.indexOf(v);e=e.replace(new RegExp(fe(v),"g"),function(c,R){return R===J?".":""});var U=oe(e,a),q=U.beforeDecimal,H=U.afterDecimal,s=U.addNegation;return y.end-y.start<S.end-S.start&&q===""&&w&&!parseFloat(H)&&(e=s?"-":""),e}function qe(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var a=Array.from({length:e.length+1}).map(function(){return!0}),u=e[0]==="-";a.fill(!1,0,r.length+(u?1:0));var l=e.length;return a.fill(!1,l-n.length+1,l+1),a}function He(e){var t=ae(e),r=t.thousandSeparator,n=t.decimalSeparator,a=e.prefix;a===void 0&&(a="");var u=e.allowNegative;if(u===void 0&&(u=!0),r===n)throw new Error(`
1
+ import{R as Q,r as T}from"./index-OxGwEg3m.js";import{s as Ie}from"./index-BfXMsSNA.js";import"./FormClearHelper-DxeY-rII.js";import"./withFullScreenWrapper-CEJUxUJC.js";import"./Toolbar-CJ0mD5An.js";import"./checkbox-Dj0lswiB.js";import"./mergeWith-D2cULMN8.js";import"./sprintf-D7DtBTRn.js";import"./createDownloadLinkElement-DZMwyjvU.js";import"./slicedToArray-HZKHLTaA.js";import"./inherits-BbfuKc-R.js";import"./createSuper-Ipqc67nc.js";import"./FileDownload.esm-Bzb3HjS9.js";const Re=Ie("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function se(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var X;(function(e){e.event="event",e.props="prop"})(X||(X={}));function G(){}function Ae(e){var t,r=void 0;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t&&n.length===t.length&&n.every(function(u,l){return u===t[l]})||(t=n,r=e.apply(void 0,n)),r}}function ee(e){return!!(e||"").match(/\d/)}function Z(e){return e==null}function je(e){return typeof e=="number"&&isNaN(e)}function ce(e){return Z(e)||je(e)||typeof e=="number"&&!isFinite(e)}function fe(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Te(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Fe(e,t,r){var n=Te(r),a=e.search(/[1-9]/);return a=a===-1?e.length:a,e.substring(0,a)+e.substring(a,e.length).replace(n,"$1"+t)}function Be(e){var t=T.useRef(e);t.current=e;var r=T.useRef(function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t.current.apply(t,n)});return r.current}function oe(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var a=e.split("."),u=a[0],l=a[1]||"";return{beforeDecimal:u,afterDecimal:l,hasNegation:r,addNegation:n}}function Me(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",a=r[1]||"";return(t?"-":"")+n+(a?"."+a:"")}function ve(e,t,r){for(var n="",a=r?"0":"",u=0;u<=t-1;u++)n+=e[u]||a;return n}function de(e,t){return Array(t+1).join(e)}function me(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),a=n[0],u=n[1];if(u=Number(u),!u)return r+a;a=a.replace(".","");var l=1+u,g=a.length;return l<0?a="0."+de("0",Math.abs(l))+a:l>=g?a=a+de("0",l-g):a=(a.substring(0,l)||"0")+"."+a.substring(l),r+a}function ge(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,a=oe(e),u=a.beforeDecimal,l=a.afterDecimal,g=a.hasNegation,S=parseFloat("0."+(l||"0")),y=l.length<=t?"0."+l:S.toFixed(t),p=y.split("."),d=u.split("").reverse().reduce(function(w,O,m){return w.length>m?(Number(w[0])+Number(O)).toString()+w.substring(1,w.length):O+w},p[0]),h=ve(p[1]||"",t,r),b=g?"-":"",v=n?".":"";return""+b+d+v+h}function z(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var pe=Ae(function(e,t){for(var r=0,n=0,a=e.length,u=t.length;e[r]===t[r]&&r<a;)r++;for(;e[a-1-n]===t[u-1-n]&&u-n>r&&a-n>r;)n++;return{from:{start:r,end:a-n},to:{start:r,end:u-n}}});function Pe(e,t,r){return Math.min(Math.max(e,t),r)}function ie(e){return Math.max(e.selectionStart,e.selectionEnd)}function ke(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Le(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function We(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,a=e.formattedValueIndex;return t[n]===r[a]}function Ke(e,t,r,n,a,u,l){l===void 0&&(l=We);var g=a.findIndex(function(W){return W}),S=e.slice(0,g);!t&&!r.startsWith(S)&&(t=S,r=S+r,n=n+S.length);for(var y=r.length,p=e.length,d={},h=new Array(y),b=0;b<y;b++){h[b]=-1;for(var v=0,w=p;v<w;v++){var O=l({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:b,formattedValueIndex:v});if(O&&d[v]!==!0){h[b]=v,d[v]=!0;break}}}for(var m=n;m<y&&(h[m]===-1||!u(r[m]));)m++;var F=m===y||h[m]===-1?p:h[m];for(m=n-1;m>0&&h[m]===-1;)m--;var M=m===-1||h[m]===-1?0:h[m]+1;return M>F?F:n-M<F-n?M:F}function he(e,t,r,n){var a=e.length;if(t=Pe(t,0,a),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=a&&!r[t];)t++;t>a&&(t=r.lastIndexOf(!0))}return t===-1&&(t=a),t}function Ue(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(ee(e[r])||ee(e[r-1]));return t}function Se(e,t,r,n,a,u){u===void 0&&(u=G);var l=Be(function(v,w){var O,m;return ce(v)?(m="",O=""):typeof v=="number"||w?(m=typeof v=="number"?me(v):v,O=n(m)):(m=a(v,void 0),O=n(m)),{formattedValue:O,numAsString:m}}),g=T.useState(function(){return l(Z(e)?t:e,r)}),S=g[0],y=g[1],p=function(v,w){v.formattedValue!==S.formattedValue&&y({formattedValue:v.formattedValue,numAsString:v.value}),u(v,w)},d=e,h=r;Z(e)&&(d=S.numAsString,h=!0);var b=l(d,h);return T.useMemo(function(){y(b)},[b.formattedValue]),[S,p]}function Ge(e){return e.replace(/[^0-9]/g,"")}function _e(e){return e}function $e(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,a=e.renderText,u=e.getInputRef,l=e.format;l===void 0&&(l=_e);var g=e.removeFormatting;g===void 0&&(g=Ge);var S=e.defaultValue,y=e.valueIsNumericString,p=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=G);var b=e.onKeyDown;b===void 0&&(b=G);var v=e.onMouseUp;v===void 0&&(v=G);var w=e.onFocus;w===void 0&&(w=G);var O=e.onBlur;O===void 0&&(O=G);var m=e.value,F=e.getCaretBoundary;F===void 0&&(F=Ue);var M=e.isValidInputCharacter;M===void 0&&(M=ee);var W=e.isCharacterSame,P=se(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),_=Se(m,S,!!y,l,g,p),K=_[0],V=K.formattedValue,k=K.numAsString,$=_[1],L=T.useRef({formattedValue:V,numAsString:k}),J=function(o,i){L.current={formattedValue:o.formattedValue,numAsString:o.value},$(o,i)},U=T.useState(!1),q=U[0],H=U[1],s=T.useRef(null),c=T.useRef({setCaretTimeout:null,focusTimeout:null});T.useEffect(function(){return H(!0),function(){clearTimeout(c.current.setCaretTimeout),clearTimeout(c.current.focusTimeout)}},[]);var R=l,N=function(o,i){var f=parseFloat(i);return{formattedValue:o,value:i,floatValue:isNaN(f)?void 0:f}},D=function(o,i,f){o.selectionStart===0&&o.selectionEnd===o.value.length||(z(o,i),c.current.setCaretTimeout=setTimeout(function(){o.value===f&&o.selectionStart!==o.selectionEnd&&z(o,i)},0))},E=function(o,i,f){return he(o,i,F(o),f)},B=function(o,i,f){var A=F(i),C=Ke(i,V,o,f,A,M,W);return C=he(i,C,A),C},te=function(o){var i=o.formattedValue;i===void 0&&(i="");var f=o.input,A=o.setCaretPosition,C=o.source,x=o.event,I=o.numAsString,j=o.caretPos;if(f){if(j===void 0&&A){var Y=o.inputValue||f.value,ue=ie(f);f.value=i,j=B(Y,i,ue)}f.value=i,j!==void 0&&D(f,j,i)}i!==V&&J(N(i,I),{event:x,source:C})};T.useEffect(function(){var o=L.current,i=o.formattedValue,f=o.numAsString;V!==i&&(V!==k||i!==f)&&J(N(V,k),{event:void 0,source:X.props})},[V,k]);var ne=s.current?ie(s.current):void 0,re=typeof window<"u"?T.useLayoutEffect:T.useEffect;re(function(){var o=s.current;if(V!==L.current.formattedValue&&o){var i=B(L.current.formattedValue,V,ne);o.value=V,D(o,i,V)}},[V]);var Ve=function(o,i,f){var A=pe(V,o),C=Object.assign(Object.assign({},A),{lastValue:V}),x=g(o,C),I=R(x);if(x=g(I,void 0),d&&!d(N(I,x))){var j=i.target,Y=ie(j),ue=B(o,V,Y);return j.value=V,D(j,ue,V),!1}return te({formattedValue:I,numAsString:x,inputValue:o,event:i,source:f,setCaretPosition:!0,input:i.target}),!0},xe=function(o){var i=o.target,f=i.value,A=Ve(f,o,X.event);A&&h(o)},we=function(o){var i=o.target,f=o.key,A=i.selectionStart,C=i.selectionEnd,x=i.value;x===void 0&&(x="");var I;if(f==="ArrowLeft"||f==="Backspace"?I=Math.max(A-1,0):f==="ArrowRight"?I=Math.min(A+1,x.length):f==="Delete"&&(I=A),I===void 0||A!==C){b(o);return}var j=I;if(f==="ArrowLeft"||f==="ArrowRight"){var Y=f==="ArrowLeft"?"left":"right";j=E(x,I,Y),j!==I&&o.preventDefault()}else f==="Delete"&&!M(x[I])?j=E(x,I,"right"):f==="Backspace"&&!M(x[I])&&(j=E(x,I,"left"));j!==I&&D(i,j,x),o.isUnitTestRun&&D(i,j,x),b(o)},Oe=function(o){var i=o.target,f=i.selectionStart,A=i.selectionEnd,C=i.value;if(C===void 0&&(C=""),f===A){var x=E(C,f);x!==f&&D(i,x,C)}v(o)},Ne=function(o){o.persist&&o.persist();var i=o.target;s.current=i,c.current.focusTimeout=setTimeout(function(){var f=i.selectionStart,A=i.selectionEnd,C=i.value;C===void 0&&(C="");var x=E(C,f);x!==f&&!(f===0&&A===C.length)&&D(i,x,C),w(o)},0)},De=function(o){s.current=null,clearTimeout(c.current.focusTimeout),clearTimeout(c.current.setCaretTimeout),O(o)},Ce=q&&ke()?"numeric":void 0,le=Object.assign({inputMode:Ce},P,{type:t,value:V,onChange:xe,onKeyDown:we,onMouseUp:Oe,onFocus:Ne,onBlur:De});if(r==="text")return a?Q.createElement(Q.Fragment,null,a(V,P)||null):Q.createElement("span",Object.assign({},P,{ref:u}),V);if(n){var Ee=n;return Q.createElement(Ee,Object.assign({},le,{ref:u}))}return Q.createElement("input",Object.assign({},le,{ref:u}))}function be(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,a=t.prefix;a===void 0&&(a="");var u=t.suffix;u===void 0&&(u="");var l=t.allowNegative,g=t.thousandsGroupStyle;if(g===void 0&&(g="thousand"),e===""||e==="-")return e;var S=ae(t),y=S.thousandSeparator,p=S.decimalSeparator,d=r!==0&&e.indexOf(".")!==-1||r&&n,h=oe(e,l),b=h.beforeDecimal,v=h.afterDecimal,w=h.addNegation;return r!==void 0&&(v=ve(v,r,!!n)),y&&(b=Fe(b,y,g)),a&&(b=a+b),u&&(v=v+u),w&&(b="-"+b),e=b+(d&&p||"")+v,e}function ae(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function ze(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),a=r.test(e),u=n.test(e);return e=e.replace(/-/g,""),a&&!u&&t&&(e="-"+e),e}function Je(e,t){return new RegExp("(^-)|[0-9]|"+fe(e),"g")}function Qe(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Ze(e,t,r){var n;t===void 0&&(t=Le(e));var a=r.allowNegative,u=r.prefix;u===void 0&&(u="");var l=r.suffix;l===void 0&&(l="");var g=r.decimalScale,S=t.from,y=t.to,p=y.start,d=y.end,h=ae(r),b=h.allowedDecimalSeparators,v=h.decimalSeparator,w=e[d]===v;if(ee(e)&&(e===u||e===l)&&t.lastValue==="")return e;if(d-p===1&&b.indexOf(e[p])!==-1){var O=g===0?"":v;e=e.substring(0,p)+O+e.substring(p+1,e.length)}var m=function(c,R,N){var D=!1,E=!1;u.startsWith("-")?D=!1:c.startsWith("--")?(D=!1,E=!0):l.startsWith("-")&&c.length===l.length?D=!1:c[0]==="-"&&(D=!0);var B=D?1:0;return E&&(B=2),B&&(c=c.substring(B),R-=B,N-=B),{value:c,start:R,end:N,hasNegation:D}},F=m(e,p,d),M=F.hasNegation;n=F,e=n.value,p=n.start,d=n.end;var W=m(t.lastValue,S.start,S.end),P=W.start,_=W.end,K=W.value,V=e.substring(p,d);e.length&&K.length&&(P>K.length-l.length||_<u.length)&&!(V&&l.startsWith(V))&&(e=K);var k=0;e.startsWith(u)?k+=u.length:p<u.length&&(k=p),e=e.substring(k),d-=k;var $=e.length,L=e.length-l.length;e.endsWith(l)?$=L:(d>L||d>e.length-l.length)&&($=d),e=e.substring(0,$),e=ze(M?"-"+e:e,a),e=(e.match(Je(v))||[]).join("");var J=e.indexOf(v);e=e.replace(new RegExp(fe(v),"g"),function(c,R){return R===J?".":""});var U=oe(e,a),q=U.beforeDecimal,H=U.afterDecimal,s=U.addNegation;return y.end-y.start<S.end-S.start&&q===""&&w&&!parseFloat(H)&&(e=s?"-":""),e}function qe(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var a=Array.from({length:e.length+1}).map(function(){return!0}),u=e[0]==="-";a.fill(!1,0,r.length+(u?1:0));var l=e.length;return a.fill(!1,l-n.length+1,l+1),a}function He(e){var t=ae(e),r=t.thousandSeparator,n=t.decimalSeparator,a=e.prefix;a===void 0&&(a="");var u=e.allowNegative;if(u===void 0&&(u=!0),r===n)throw new Error(`
2
2
  Decimal separator can't be same as thousand separator.
3
3
  thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
4
  decimalSeparator: `+n+` (default value for decimalSeparator is .)
@@ -1 +1 @@
1
- import{e as l}from"./es6-CcuZyssh.js";import"./index-NYCOzVlX.js";const{DISALLOWED:h}=l;class w{constructor(e,t){this.writer=e,this.fileEntry=t}async write(e){if(typeof e=="object"){if(e.type==="write"){if(Number.isInteger(e.position)&&e.position>=0&&(this.writer.seek(e.position),this.writer.position!==e.position&&(await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.truncate(e.position)}),this.writer.seek(e.position))),!("data"in e))throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. write requires a data argument","SyntaxError");e=e.data}else if(e.type==="seek")if(Number.isInteger(e.position)&&e.position>=0){if(this.writer.seek(e.position),this.writer.position!==e.position)throw new DOMException("seeking position failed","InvalidStateError");return}else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. seek requires a position argument","SyntaxError");else if(e.type==="truncate")return new Promise(t=>{if(Number.isInteger(e.size)&&e.size>=0)this.writer.onwriteend=i=>t(),this.writer.truncate(e.size);else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. truncate requires a size argument","SyntaxError")})}await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.write(new Blob([e]))})}close(){return new Promise(this.fileEntry.file.bind(this.fileEntry))}}class a{constructor(e,t=!0){this.file=e,this.kind="file",this.writable=t,this.readable=!0}get name(){return this.file.name}isSameEntry(e){return this.file.toURL()===e.file.toURL()}getFile(){return new Promise(this.file.file.bind(this.file))}createWritable(e){if(!this.writable)throw new DOMException(...h);return new Promise((t,i)=>this.file.createWriter(r=>{e.keepExistingData===!1?(r.onwriteend=n=>t(new w(r,this.file)),r.truncate(0)):t(new w(r,this.file))},i))}}class s{constructor(e,t=!0){this.dir=e,this.writable=t,this.readable=!0,this.kind="directory",this.name=e.name}isSameEntry(e){return this.dir.fullPath===e.dir.fullPath}async*entries(){const e=this.dir.createReader(),t=await new Promise(e.readEntries.bind(e));for(const i of t)yield[i.name,i.isFile?new a(i,this.writable):new s(i,this.writable)]}getDirectoryHandle(e,t){return new Promise((i,r)=>{this.dir.getDirectory(e,t,n=>{i(new s(n))},r)})}getFileHandle(e,t){return new Promise((i,r)=>this.dir.getFile(e,t,n=>i(new a(n)),r))}async removeEntry(e,t){const i=await this.getDirectoryHandle(e,{create:!1}).catch(r=>r.name==="TypeMismatchError"?this.getFileHandle(e,{create:!1}):r);if(i instanceof Error)throw i;return new Promise((r,n)=>{i instanceof s?t.recursive?i.dir.removeRecursively(()=>r(),n):i.dir.remove(()=>r(),n):i.file&&i.file.remove(()=>r(),n)})}}const d=(o={})=>new Promise((e,t)=>window.webkitRequestFileSystem(o._persistent,0,i=>e(new s(i.root)),t));export{a as FileHandle,s as FolderHandle,d as default};
1
+ import{e as l}from"./es6-BZHzmZtr.js";import"./index-OxGwEg3m.js";const{DISALLOWED:h}=l;class w{constructor(e,t){this.writer=e,this.fileEntry=t}async write(e){if(typeof e=="object"){if(e.type==="write"){if(Number.isInteger(e.position)&&e.position>=0&&(this.writer.seek(e.position),this.writer.position!==e.position&&(await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.truncate(e.position)}),this.writer.seek(e.position))),!("data"in e))throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. write requires a data argument","SyntaxError");e=e.data}else if(e.type==="seek")if(Number.isInteger(e.position)&&e.position>=0){if(this.writer.seek(e.position),this.writer.position!==e.position)throw new DOMException("seeking position failed","InvalidStateError");return}else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. seek requires a position argument","SyntaxError");else if(e.type==="truncate")return new Promise(t=>{if(Number.isInteger(e.size)&&e.size>=0)this.writer.onwriteend=i=>t(),this.writer.truncate(e.size);else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. truncate requires a size argument","SyntaxError")})}await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.write(new Blob([e]))})}close(){return new Promise(this.fileEntry.file.bind(this.fileEntry))}}class a{constructor(e,t=!0){this.file=e,this.kind="file",this.writable=t,this.readable=!0}get name(){return this.file.name}isSameEntry(e){return this.file.toURL()===e.file.toURL()}getFile(){return new Promise(this.file.file.bind(this.file))}createWritable(e){if(!this.writable)throw new DOMException(...h);return new Promise((t,i)=>this.file.createWriter(r=>{e.keepExistingData===!1?(r.onwriteend=n=>t(new w(r,this.file)),r.truncate(0)):t(new w(r,this.file))},i))}}class s{constructor(e,t=!0){this.dir=e,this.writable=t,this.readable=!0,this.kind="directory",this.name=e.name}isSameEntry(e){return this.dir.fullPath===e.dir.fullPath}async*entries(){const e=this.dir.createReader(),t=await new Promise(e.readEntries.bind(e));for(const i of t)yield[i.name,i.isFile?new a(i,this.writable):new s(i,this.writable)]}getDirectoryHandle(e,t){return new Promise((i,r)=>{this.dir.getDirectory(e,t,n=>{i(new s(n))},r)})}getFileHandle(e,t){return new Promise((i,r)=>this.dir.getFile(e,t,n=>i(new a(n)),r))}async removeEntry(e,t){const i=await this.getDirectoryHandle(e,{create:!1}).catch(r=>r.name==="TypeMismatchError"?this.getFileHandle(e,{create:!1}):r);if(i instanceof Error)throw i;return new Promise((r,n)=>{i instanceof s?t.recursive?i.dir.removeRecursively(()=>r(),n):i.dir.remove(()=>r(),n):i.file&&i.file.remove(()=>r(),n)})}}const d=(o={})=>new Promise((e,t)=>window.webkitRequestFileSystem(o._persistent,0,i=>e(new s(i.root)),t));export{a as FileHandle,s as FolderHandle,d as default};
@@ -1,2 +1,2 @@
1
- import{r as a,E as y,_ as d,bw as h}from"./index-NYCOzVlX.js";var s=a.forwardRef(function(r,e){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(y,d({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},r,{ref:e}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))});s.displayName="Close";function b(r){if(Array.isArray(r))return r}function p(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,u,f,l,o=[],n=!0,c=!1;try{if(f=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;n=!1}else for(;!(n=(i=f.call(t)).done)&&(o.push(i.value),o.length!==e);n=!0);}catch(m){c=!0,u=m}finally{try{if(!n&&t.return!=null&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw u}}return o}}function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as a,E as y,_ as d,bw as h}from"./index-OxGwEg3m.js";var s=a.forwardRef(function(r,e){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(y,d({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},r,{ref:e}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))});s.displayName="Close";function b(r){if(Array.isArray(r))return r}function p(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,u,f,l,o=[],n=!0,c=!1;try{if(f=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;n=!1}else for(;!(n=(i=f.call(t)).done)&&(o.push(i.value),o.length!==e);n=!0);}catch(m){c=!0,u=m}finally{try{if(!n&&t.return!=null&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw u}}return o}}function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(r,e){return b(r)||p(r,e)||h(r,e)||w()}export{s as C,v as _};
@@ -1,2 +1,2 @@
1
- import{c0 as b,c1 as x,ct as $,r as d,cO as F,cP as T}from"./index-NYCOzVlX.js";import{g as R,a as A,b as E,B as z}from"./base-input-BHEia47e.js";function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(n){B(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=b("div",function(e){return c(c({},R(c(c({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})});m.displayName="StyledTextAreaRoot",m.displayName="StyledTextAreaRoot";var h=b("div",function(e){return A(c({$positive:!1},e))});h.displayName="StyledTextareaContainer",h.displayName="StyledTextareaContainer";var v=b("textarea",function(e){return c(c({},E(e)),{},{resize:e.$resize||"none"})});v.displayName="StyledTextarea",v.displayName="StyledTextarea";function O(e){"@babel/helpers - typeof";return O=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},O(e)}function s(){return s=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},s.apply(this,arguments)}function _(e,t){return N(e)||I(e,t)||D(e,t)||C()}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{c0 as b,c1 as x,ct as $,r as d,cO as F,cP as T}from"./index-OxGwEg3m.js";import{g as R,a as A,b as E,B as z}from"./base-input-NsRtpzFx.js";function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(n){B(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=b("div",function(e){return c(c({},R(c(c({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})});m.displayName="StyledTextAreaRoot",m.displayName="StyledTextAreaRoot";var h=b("div",function(e){return A(c({$positive:!1},e))});h.displayName="StyledTextareaContainer",h.displayName="StyledTextareaContainer";var v=b("textarea",function(e){return c(c({},E(e)),{},{resize:e.$resize||"none"})});v.displayName="StyledTextarea",v.displayName="StyledTextarea";function O(e){"@babel/helpers - typeof";return O=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},O(e)}function s(){return s=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},s.apply(this,arguments)}function _(e,t){return N(e)||I(e,t)||D(e,t)||C()}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(e,t){if(e){if(typeof e=="string")return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}}function w(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 I(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,u=!1,i,a;try{for(r=r.call(e);!(o=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));o=!0);}catch(y){u=!0,a=y}finally{try{!o&&r.return!=null&&r.return()}finally{if(u)throw a}}return n}}function N(e){if(Array.isArray(e))return e}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t,r){return t&&K(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U(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&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},g(e,t)}function M(e){var t=L();return function(){var r=f(e),n;if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}function H(e,t){if(t&&(O(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(){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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(e)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var P=function(e){U(r,e);var t=M(r);function r(){var n;q(this,r);for(var o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];return n=t.call.apply(t,[this].concat(u)),p(l(n),"state",{isFocused:n.props.autoFocus||!1}),p(l(n),"onFocus",function(a){n.setState({isFocused:!0}),n.props.onFocus(a)}),p(l(n),"onBlur",function(a){n.setState({isFocused:!1}),n.props.onBlur(a)}),n}return k(r,[{key:"render",value:function(){var n=this.props.overrides,o=n===void 0?{}:n,u=x(o.Root,m),i=_(u,2),a=i[0],y=i[1],S=$({Input:{component:v},InputContainer:{component:h}},o);return d.createElement(a,s({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},y),d.createElement(z,s({},this.props,{type:T.textarea,overrides:S,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}]),r}(d.Component);p(P,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:F.default});export{P as T};