@stlite/desktop 0.91.1 → 0.92.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.
- package/CHANGELOG.md +12 -0
- package/bin/dump_artifacts.js +1 -1
- package/build/assets/{ErrorOutline.esm-BLjkDUgO-BiXylF9Q.js → ErrorOutline.esm-Cq78Z69r-C4NqF_Dy.js} +1 -1
- package/build/assets/{FileDownload.esm-BP6Yw6Mo-BauI2spi.js → FileDownload.esm-CK4kq1fm-rUa3b6xk.js} +1 -1
- package/build/assets/{FileHelper-BCkX4r3T-DFMmrw88.js → FileHelper-SZ_yiD2z-B6mYMaXP.js} +1 -1
- package/build/assets/{FormClearHelper-Dgu5Halt-BxICjxpW.js → FormClearHelper-FCPJEFCb-8WTdS9Fc.js} +1 -1
- package/build/assets/{Hooks-BLb3umpI-9FUxV5o-.js → Hooks-BLb3umpI-2VYJiKlE.js} +1 -1
- package/build/assets/{InputInstructions-yTnPUqJo-CoOBrVL7.js → InputInstructions-C9-W08mI-ZHhoQkfd.js} +1 -1
- package/build/assets/{Particles-Dlshfcc8-CNq_pZlo.js → Particles-BOhWNEfk-Dwf6AovX.js} +1 -1
- package/build/assets/{ProgressBar-bzD0ionS-CaMxdV67.js → ProgressBar-BiR12xMF-C3tqN3I7.js} +1 -1
- package/build/assets/{Toolbar-Ba82LOXi-C-TMlOex.js → Toolbar-DmNTasId-CQXwCpBc.js} +1 -1
- package/build/assets/{base-input-DjjpNP8Y-DtsTHlXD.js → base-input-CrN3cmkk-CZot_VyG.js} +1 -1
- package/build/assets/{checkbox-i_07yegq-B7N8fYE1.js → checkbox-gyt_OEZr-DUZ4Njwr.js} +1 -1
- package/build/assets/{createSuper-Bj1hzAgo-DTBN9Cdm.js → createSuper-XjH7KYVR-huv_3l0M.js} +1 -1
- package/build/assets/data-grid-overlay-editor-DCBtdsKu-B2V4v_R4.js +1 -0
- package/build/assets/{downloader-DcCTL3Wz-szZSaHY-.js → downloader-DcCTL3Wz-DFslBafZ.js} +1 -1
- package/build/assets/{es6--XPcqeHG-B7r8Rb2B.js → es6--XPcqeHG-DCoiAwz4.js} +2 -2
- package/build/assets/{iframeResizer.contentWindow-D_iySM1B-C8GQUol2.js → iframeResizer.contentWindow-DCqlq0RN-CJu19_xt.js} +1 -1
- package/build/assets/{index-BB-Jchwk-Bom7C4Yg.js → index-86FKY3SR-GAsovcTH.js} +1 -1
- package/build/assets/{index-CATwv37T-B7vouX3Y.js → index-B1GzS8wP-BVHWU3EN.js} +1 -1
- package/build/assets/{index-B_WoYQrI-DzwQulx6.js → index-B4dU8RRL-QuTU7dp3.js} +1 -1
- package/build/assets/{index-B-TfdrsK-M9kXXCZC.js → index-B8kWnRO8-DdaQzYiC.js} +1 -1
- package/build/assets/{index-CSKWQlNk-CT5sDNrq.js → index-B8qxfFCx-B29C_PY3.js} +1 -1
- package/build/assets/{index-vYM99bZC-_qzTrUih.js → index-BDBGy17s-C8ZIrWop.js} +1 -1
- package/build/assets/{index-DOzur6Jw-BNtjcqTY.js → index-BHzjdNgW-BhgR3SHQ.js} +1 -1
- package/build/assets/{index-DUaAy90Q-XjKFsjy5.js → index-BMMzkW3e-BZqEtXz_.js} +1 -1
- package/build/assets/{index-EaQvJARH-BtsSVy_Q.js → index-BZG3RZnU-DmEQbf_P.js} +1 -1
- package/build/assets/{index-DhLLbarZ-JEJ3GjGo.js → index-BitC4Xgz-B1kdgnmM.js} +1 -1
- package/build/assets/{index-D3uELfdo.js → index-Bs9zibyE.js} +10 -10
- package/build/assets/{index-B-p8cwea-D1OIlg5n.js → index-BwEfMSwG-CvQYoItt.js} +1 -1
- package/build/assets/{index-X1p_3J78-Vt5ccOoW.js → index-C5hOYK-b-CDfEUvDR.js} +1 -1
- package/build/assets/{index-CTwTw5ms-DakzaYYn.js → index-C9u8J5la-oadhV8vp.js} +1 -1
- package/build/assets/{index-D0GcWpyX--juTltdu.js → index-CGDCEBHp-ighEw3vp.js} +1 -1
- package/build/assets/{index-CugHuPaw-BlbAJDrs.js → index-CJcifvpp-CqixlSHI.js} +1 -1
- package/build/assets/index-CNntS3OC-D1QLB5uC.js +198 -0
- package/build/assets/{index-Ct4am237-CcMxDLpd.js → index-CZIwCRD7-DBIOlrRp.js} +1 -1
- package/build/assets/{index-DDqIvyop-CtB9mW2T.js → index-CbyG2v0j-Bk1EJlZY.js} +1 -1
- package/build/assets/{index-DU9g9Sd6-Daa3488f.js → index-ChdNP8aj-ecf7J23U.js} +1 -1
- package/build/assets/{index-DMjPNVEr-D5adQnea.js → index-ClhODq1M-DUfGDbEi.js} +1 -1
- package/build/assets/{index-CvM3pTat-B8q07d1y.js → index-CrabjEa7-DFujXtro.js} +1 -1
- package/build/assets/{index-CAzavyuT-BhYS_U-d.js → index-D6yR1pA8-C0-kJ6Bz.js} +1 -1
- package/build/assets/{index-NlD3wxQH-BRnDRGJG.js → index-DE-Rg3QE-eG0zJJn8.js} +1 -1
- package/build/assets/{index-Bo7cn_f6-DkJNz7_c.js → index-DedW9Ks6-M0WgASrb.js} +1 -1
- package/build/assets/{index-BhasphER-CtCV9cV8.js → index-Dj2NFIKD-B_r24aHL.js} +1 -1
- package/build/assets/{index-C_q9gQa7-DDnyjQrF.js → index-Dk05MMVQ-ZROGl5dG.js} +1 -1
- package/build/assets/{index-kYeUTGL3-OTlUcjkG.js → index-DmuMAiWB-BGkOpKfb.js} +1 -1
- package/build/assets/{index-D5JbiLwX-CJBgVo_3.js → index-DtqQ0QT_-CymByJbd.js} +1 -1
- package/build/assets/{index-p-pTZlQx-8zFcur2d.js → index-Dvp-SyXX-qvRtm5BZ.js} +1 -1
- package/build/assets/{index-B3KILbqX-BzOz8wK5.js → index-Dx_Ep62U-DaqDcI-n.js} +1 -1
- package/build/assets/{index-BxHa0gYF-QN3i1uRA.js → index-IdwmhHqO-gZocvOjV.js} +1 -1
- package/build/assets/{index-Fts1z9_x-20UUj5MC.js → index-Q6g9NCof-Cpxw6WZY.js} +1 -1
- package/build/assets/{index-0Kn1AVK2-CFHLqZQv.js → index-WybFjBpB-BX8U2u7x.js} +1 -1
- package/build/assets/{index-GJmmE3rK-9unNgOON.js → index-jhfsAAJw-CHbJB1wk.js} +1 -1
- package/build/assets/{index-DmB3SAP2-X6jwpSIv.js → index-tZy2wPj--B6SS_c-g.js} +1 -1
- package/build/assets/{index-BPtHoAnG-Bw2wANqW.js → index-wXdUq_7J--4XuNFfI.js} +1 -1
- package/build/assets/{inherits-Rx5YJbse-DVYurFFp.js → inherits-CHhCwN_k-BN2PGj6j.js} +1 -1
- package/build/assets/{input-BDVeiWWL-DMiIFeVV.js → input-DjbrZONF-D-7fuXI2.js} +1 -1
- package/build/assets/{memory-B3L1Fctl-Bm8c-YGK.js → memory-B3L1Fctl-DdOaGvHF.js} +1 -1
- package/build/assets/{number-overlay-editor-BGJ9OD_Z-DIBxtO2v.js → number-overlay-editor-jbR6fFWZ-C4ZPxc4R.js} +1 -1
- package/build/assets/{sandbox-ChAzL-i--D3ngLCsZ.js → sandbox-ChAzL-i--D-scXFSF.js} +1 -1
- package/build/assets/{slicedToArray-DCtO1hP1-DNgLFFIn.js → slicedToArray-Bh3FRcm_-BQG060Uv.js} +1 -1
- package/build/assets/{timepicker-BTEFSiul-BiCu9n-C.js → timepicker-Zb-gfcls-BvLvhDNx.js} +1 -1
- package/build/assets/{uniqueId-DFKpdKNq-BgvPpMK3.js → uniqueId-zIZf20F6-D11mfTaK.js} +1 -1
- package/build/assets/{useBasicWidgetState-DqA4I-I_-DtgK63iS.js → useBasicWidgetState-BrKZEJpK-CxwkzeKG.js} +1 -1
- package/build/assets/{useTextInputAutoExpand-Di5cdshf-IDsnD2RC.js → useTextInputAutoExpand-NGyMMcIL-u7iGmO95.js} +1 -1
- package/build/assets/{useUpdateUiValue-09I2_X1f-DW6jbCsf.js → useUpdateUiValue-BHPP0ppl-jFtPQcBG.js} +1 -1
- package/build/assets/{withFullScreenWrapper-WW0e_nhm-CAjrnrPK.js → withFullScreenWrapper-66pmUMIV-CT4beZ0m.js} +1 -1
- package/build/assets/worker-B65uO5d3-CuVvmm9s.js +106 -0
- package/build/electron/worker.js +9 -9
- package/build/index.html +1 -1
- package/package.json +12 -11
- package/wheels/stlite_lib-0.1.0-py3-none-any.whl +0 -0
- package/wheels/streamlit-1.50.0-cp313-none-any.whl +0 -0
- package/build/assets/data-grid-overlay-editor-BiH9JogL-SwK5dD6O.js +0 -1
- package/build/assets/index-GLEJ4uEg-Df22L041.js +0 -188
- package/build/assets/worker-BOuMG9lT-DqkGm1hg.js +0 -106
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as U,bd as ce,v as J,m as de,j as L,aI as pe,aJ as fe,b0 as ge,aK as be,ap as ye,bl as me,c as ie,bZ as ve,b_ as he,b$ as Se,bJ as Oe,c0 as je,bm as Pe,aX as Ce,bI as Ie,c1 as we,c2 as Te,c3 as Ee,c4 as xe,c5 as De,br as $e,aC as Y,c6 as Re}from"./index-
|
|
1
|
+
import{r as U,bd as ce,v as J,m as de,j as L,aI as pe,aJ as fe,b0 as ge,aK as be,ap as ye,bl as me,c as ie,bZ as ve,b_ as he,b$ as Se,bJ as Oe,c0 as je,bm as Pe,aX as Ce,bI as Ie,c1 as we,c2 as Te,c3 as Ee,c4 as xe,c5 as De,br as $e,aC as Y,c6 as Re}from"./index-Bs9zibyE.js";import{S as _e}from"./useBasicWidgetState-BrKZEJpK-CxwkzeKG.js";import{w as Be}from"./timepicker-Zb-gfcls-BvLvhDNx.js";import"./FormClearHelper-FCPJEFCb-8WTdS9Fc.js";import"./inherits-CHhCwN_k-BN2PGj6j.js";import"./createSuper-XjH7KYVR-huv_3l0M.js";var ke=$e.Consumer;const Ne=Object.freeze(Object.defineProperty({__proto__:null,ThemeConsumer:ke,ThemeProvider:De,createThemedStyled:xe,createThemedUseStyletron:Ee,createThemedWithStyle:Te,expandBorderStyles:we,hexToRgb:Ie,styled:Ce,useStyletron:Pe,withStyle:je,withWrapper:Oe},Symbol.toStringTag,{value:"Module"}));var P={};const G=Se(Ne);var x={},q;function ze(){if(q)return x;q=1,Object.defineProperty(x,"__esModule",{value:!0}),x.STATE_CHANGE_TYPE=x.SIZE=x.ENHANCER_POSITION=x.CUSTOM_INPUT_TYPE=x.ADJOINED=void 0;var f={change:"change"};x.STATE_CHANGE_TYPE=f;var d={textarea:"textarea"};x.CUSTOM_INPUT_TYPE=d;var h={none:"none",left:"left",right:"right",both:"both"};x.ADJOINED=h;var y={mini:"mini",default:"default",compact:"compact",large:"large"};x.SIZE=y;var v={start:"start",end:"end"};return x.ENHANCER_POSITION=v,x}var F={},R={},H={},K;function Me(){if(K)return H;K=1,Object.defineProperty(H,"__esModule",{value:!0}),H.default=d;function f(y){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},f(y)}function d(y){y=y||{};for(var v=arguments.length<=1?0:arguments.length-1,m,b,O=0;O<v;O++){m=(O+1<1||arguments.length<=O+1?void 0:arguments[O+1])||{};for(var g in m)f(m[g])!==void 0&&(b=m[g],h(b)?y[g]=d(y[g]||Array.isArray(b)&&[]||{},b):y[g]=b)}return y}function h(y){return Array.isArray(y)||{}.toString.call(y)=="[object Object]"}return H}var Q;function ae(){if(Q)return R;Q=1,Object.defineProperty(R,"__esModule",{value:!0}),R.getOverride=E,R.getOverrideProps=w,R.getOverrides=z,R.mergeConfigurationOverrides=k,R.mergeOverride=$,R.mergeOverrides=B,R.toObjectOverride=D,R.useOverrides=M;var f=m(Y),d=Re(),h=y(Me());function y(i){return i&&i.__esModule?i:{default:i}}function v(i){if(typeof WeakMap!="function")return null;var r=new WeakMap,u=new WeakMap;return(v=function(s){return s?u:r})(i)}function m(i,r){if(i&&i.__esModule)return i;if(i===null||C(i)!=="object"&&typeof i!="function")return{default:i};var u=v(r);if(u&&u.has(i))return u.get(i);var s={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in i)if(a!=="default"&&Object.prototype.hasOwnProperty.call(i,a)){var l=t?Object.getOwnPropertyDescriptor(i,a):null;l&&(l.get||l.set)?Object.defineProperty(s,a,l):s[a]=i[a]}return s.default=i,u&&u.set(i,s),s}function b(){return b=Object.assign?Object.assign.bind():function(i){for(var r=1;r<arguments.length;r++){var u=arguments[r];for(var s in u)Object.prototype.hasOwnProperty.call(u,s)&&(i[s]=u[s])}return i},b.apply(this,arguments)}function O(i,r){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);r&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),u.push.apply(u,s)}return u}function g(i){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?arguments[r]:{};r%2?O(Object(u),!0).forEach(function(s){I(i,s,u[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):O(Object(u)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(u,s))})}return i}function I(i,r,u){return r in i?Object.defineProperty(i,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[r]=u,i}function C(i){"@babel/helpers - typeof";return C=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},C(i)}function E(i){return(0,d.isValidElementType)(i)?i:i&&C(i)==="object"?i.component:i}function w(i){return i&&C(i)==="object"?C(i.props)==="object"?g(g({},i.props),{},{$style:i.style}):{$style:i.style}:{}}function D(i){return(0,d.isValidElementType)(i)?{component:i}:i||{}}function z(i,r){var u=E(i)||r;if(i&&C(i)==="object"&&typeof i.props=="function"){var s=f.forwardRef(function(a,l){var e=i.props(a),n=w(g(g({},i),{},{props:e}));return f.createElement(u,b({ref:l},n))});return s.displayName=u.displayName,[s,{}]}var t=w(i);return[u,t]}function B(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=Object.assign({},i,r),s=Object.keys(u);return s.reduce(function(t,a){return t[a]=$(D(i[a]),D(r[a])),t},{})}function $(i,r){var u=g(g({},i),r);return i.props&&r.props&&(u.props=k(i.props,r.props)),i.style&&r.style&&(u.style=k(i.style,r.style)),u}function k(i,r){return C(i)==="object"&&C(r)==="object"?(0,h.default)({},i,r):function(){return(0,h.default)({},typeof i=="function"?i.apply(void 0,arguments):i,typeof r=="function"?r.apply(void 0,arguments):r)}}function M(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return f.useMemo(function(){return Object.keys(i).reduce(function(u,s){return u[s]=z(r[s],i[s]),u},{})},[r])}return R}var Z={},A={},ee;function Le(){if(ee)return A;ee=1,Object.defineProperty(A,"__esModule",{value:!0}),A.Svg=void 0,A.getSvgStyles=d;var f=G;function d(y){var v=y.$theme,m=y.$size,b=y.$color,O=v.sizing.scale600;m&&(v.sizing[m]?O=v.sizing[m]:typeof m=="number"?O="".concat(m,"px"):O=m);var g="currentColor";return b&&(v.colors[b]?g=v.colors[b]:g=b),{display:"inline-block",fill:g,color:g,height:O,width:O}}var h=(0,f.styled)("svg",d);return A.Svg=h,h.displayName="Svg",h.displayName="Svg",A}var V={},te;function We(){if(te)return V;te=1,Object.defineProperty(V,"__esModule",{value:!0}),V.default=f;function f(d){var h={};for(var y in d)y[0]!=="$"&&(h[y]=d[y]);return h}return V}var re;function Ae(){if(re)return Z;re=1;function f(t){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f(t)}Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var d=g(Y),h=ae(),y=Le(),v=b(We()),m=["children","title","size","color","overrides"];function b(t){return t&&t.__esModule?t:{default:t}}function O(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,l=new WeakMap;return(O=function(e){return e?l:a})(t)}function g(t,a){if(t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var l=O(a);if(l&&l.has(t))return l.get(t);var e={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var p=n?Object.getOwnPropertyDescriptor(t,o):null;p&&(p.get||p.set)?Object.defineProperty(e,o,p):e[o]=t[o]}return e.default=t,l&&l.set(t,e),e}function I(){return I=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&(t[e]=l[e])}return t},I.apply(this,arguments)}function C(t,a){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);a&&(e=e.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),l.push.apply(l,e)}return l}function E(t){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?C(Object(l),!0).forEach(function(e){w(t,e,l[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):C(Object(l)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))})}return t}function w(t,a,l){return a in t?Object.defineProperty(t,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[a]=l,t}function D(t,a){return M(t)||k(t,a)||B(t,a)||z()}function z(){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 B(t,a){if(t){if(typeof t=="string")return $(t,a);var l=Object.prototype.toString.call(t).slice(8,-1);if(l==="Object"&&t.constructor&&(l=t.constructor.name),l==="Map"||l==="Set")return Array.from(t);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return $(t,a)}}function $(t,a){(a==null||a>t.length)&&(a=t.length);for(var l=0,e=new Array(a);l<a;l++)e[l]=t[l];return e}function k(t,a){var l=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(l!=null){var e=[],n=!0,o=!1,p,c;try{for(l=l.call(t);!(n=(p=l.next()).done)&&(e.push(p.value),!(a&&e.length===a));n=!0);}catch(S){o=!0,c=S}finally{try{!n&&l.return!=null&&l.return()}finally{if(o)throw c}}return e}}function M(t){if(Array.isArray(t))return t}function i(t,a){if(t==null)return{};var l=r(t,a),e,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],!(a.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(l[e]=t[e])}return l}function r(t,a){if(t==null)return{};var l={},e=Object.keys(t),n,o;for(o=0;o<e.length;o++)n=e[o],!(a.indexOf(n)>=0)&&(l[n]=t[n]);return l}var u=function(t,a){var l=t.children,e=t.title,n=t.size,o=t.color,p=t.overrides,c=p===void 0?{}:p,S=i(t,m),j=(0,h.getOverrides)(c.Svg,y.Svg),_=D(j,2),T=_[0],N=_[1],W=T.__STYLETRON__?E(E({title:e,$color:o,$size:n},S),N):E(E({title:e,color:o,size:n},(0,v.default)(S)),(0,v.default)(N));return d.createElement(T,I({"data-baseweb":"icon",ref:a},W),e?d.createElement("title",null,e):null,l)},s=d.forwardRef(u);return Z.default=s,Z}var ne;function Fe(){if(ne)return F;ne=1;function f(r){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},f(r)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var d=g(Y),h=G,y=ae(),v=b(Ae()),m=["title","size","color","overrides"];function b(r){return r&&r.__esModule?r:{default:r}}function O(r){if(typeof WeakMap!="function")return null;var u=new WeakMap,s=new WeakMap;return(O=function(t){return t?s:u})(r)}function g(r,u){if(r&&r.__esModule)return r;if(r===null||f(r)!=="object"&&typeof r!="function")return{default:r};var s=O(u);if(s&&s.has(r))return s.get(r);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in r)if(l!=="default"&&Object.prototype.hasOwnProperty.call(r,l)){var e=a?Object.getOwnPropertyDescriptor(r,l):null;e&&(e.get||e.set)?Object.defineProperty(t,l,e):t[l]=r[l]}return t.default=r,s&&s.set(r,t),t}function I(){return I=Object.assign?Object.assign.bind():function(r){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(r[t]=s[t])}return r},I.apply(this,arguments)}function C(r,u){if(r==null)return{};var s=E(r,u),t,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(a=0;a<l.length;a++)t=l[a],!(u.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(s[t]=r[t])}return s}function E(r,u){if(r==null)return{};var s={},t=Object.keys(r),a,l;for(l=0;l<t.length;l++)a=t[l],!(u.indexOf(a)>=0)&&(s[a]=r[a]);return s}function w(r,u){return k(r)||$(r,u)||z(r,u)||D()}function D(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(r,u){if(r){if(typeof r=="string")return B(r,u);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return B(r,u)}}function B(r,u){(u==null||u>r.length)&&(u=r.length);for(var s=0,t=new Array(u);s<u;s++)t[s]=r[s];return t}function $(r,u){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var t=[],a=!0,l=!1,e,n;try{for(s=s.call(r);!(a=(e=s.next()).done)&&(t.push(e.value),!(u&&t.length===u));a=!0);}catch(o){l=!0,n=o}finally{try{!a&&s.return!=null&&s.return()}finally{if(l)throw n}}return t}}function k(r){if(Array.isArray(r))return r}function M(r,u){var s=(0,h.useStyletron)(),t=w(s,2),a=t[1],l=r.title,e=l===void 0?"Delete Alt":l,n=r.size,o=r.color,p=r.overrides,c=p===void 0?{}:p,S=C(r,m),j=(0,y.mergeOverride)({component:a.icons&&a.icons.DeleteAlt?a.icons.DeleteAlt:null},c&&c.Svg?(0,y.toObjectOverride)(c.Svg):{});return d.createElement(v.default,I({viewBox:"0 0 24 24",ref:u,title:e,size:n,color:o,overrides:{Svg:j}},S),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}var i=d.forwardRef(M);return F.default=i,F}var oe;function Ze(){if(oe)return P;oe=1,Object.defineProperty(P,"__esModule",{value:!0}),P.getRootStyles=P.getInputStyles=P.getInputContainerStyles=P.StyledMaskToggleButton=P.StyledClearIconContainer=P.StyledClearIcon=P.Root=P.InputEnhancer=P.InputContainer=P.Input=void 0;var f=G,d=ze(),h=y(Fe());function y(e){return e&&e.__esModule?e:{default:e}}function v(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);n&&(p=p.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),o.push.apply(o,p)}return o}function m(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?v(Object(o),!0).forEach(function(p){b(e,p,o[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach(function(p){Object.defineProperty(e,p,Object.getOwnPropertyDescriptor(o,p))})}return e}function b(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var O=(0,f.styled)("button",function(e){var n,o=e.$theme,p=e.$size,c=e.$isFocusVisible,S=(n={},b(n,d.SIZE.mini,o.sizing.scale400),b(n,d.SIZE.compact,o.sizing.scale400),b(n,d.SIZE.default,o.sizing.scale300),b(n,d.SIZE.large,o.sizing.scale200),n)[p];return{display:"flex",alignItems:"center",borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",background:"none",paddingLeft:S,paddingRight:S,outline:c?"solid 3px ".concat(o.colors.accent):"none",color:o.colors.contentPrimary}});P.StyledMaskToggleButton=O,O.displayName="StyledMaskToggleButton",O.displayName="StyledMaskToggleButton";var g=(0,f.styled)("div",function(e){var n,o=e.$alignTop,p=o===void 0?!1:o,c=e.$size,S=e.$theme,j=(n={},b(n,d.SIZE.mini,S.sizing.scale200),b(n,d.SIZE.compact,S.sizing.scale200),b(n,d.SIZE.default,S.sizing.scale100),b(n,d.SIZE.large,S.sizing.scale0),n)[c];return{display:"flex",alignItems:p?"flex-start":"center",paddingLeft:j,paddingRight:j,paddingTop:p?S.sizing.scale500:"0px",color:S.colors.contentPrimary}});P.StyledClearIconContainer=g,g.displayName="StyledClearIconContainer",g.displayName="StyledClearIconContainer";var I=(0,f.styled)(h.default,function(e){var n=e.$theme,o=e.$isFocusVisible;return{cursor:"pointer",outline:o?"solid 3px ".concat(n.colors.accent):"none"}});P.StyledClearIcon=I,I.displayName="StyledClearIcon",I.displayName="StyledClearIcon";function C(e,n){var o;return(o={},b(o,d.SIZE.mini,{paddingTop:n.scale100,paddingBottom:n.scale100,paddingLeft:n.scale550,paddingRight:n.scale550}),b(o,d.SIZE.compact,{paddingTop:n.scale200,paddingBottom:n.scale200,paddingLeft:n.scale550,paddingRight:n.scale550}),b(o,d.SIZE.default,{paddingTop:n.scale400,paddingBottom:n.scale400,paddingLeft:n.scale550,paddingRight:n.scale550}),b(o,d.SIZE.large,{paddingTop:n.scale550,paddingBottom:n.scale550,paddingLeft:n.scale550,paddingRight:n.scale550}),o)[e]}function E(e,n,o,p,c){var S=e===d.ADJOINED.both||e===d.ADJOINED.left&&p!=="rtl"||e===d.ADJOINED.right&&p==="rtl"||c&&p==="rtl",j=e===d.ADJOINED.both||e===d.ADJOINED.right&&p!=="rtl"||e===d.ADJOINED.left&&p==="rtl"||c&&p!=="rtl";return{paddingLeft:S?o.scale550:"0px",paddingRight:j?o.scale550:"0px"}}function w(e,n){var o;return(o={},b(o,d.SIZE.mini,n.font100),b(o,d.SIZE.compact,n.font200),b(o,d.SIZE.default,n.font300),b(o,d.SIZE.large,n.font400),o)[e]}function D(e,n,o){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,c=arguments.length>4?arguments[4]:void 0;return e?{borderLeftColor:c.inputFillDisabled,borderRightColor:c.inputFillDisabled,borderTopColor:c.inputFillDisabled,borderBottomColor:c.inputFillDisabled,backgroundColor:c.inputFillDisabled}:n?{borderLeftColor:c.borderSelected,borderRightColor:c.borderSelected,borderTopColor:c.borderSelected,borderBottomColor:c.borderSelected,backgroundColor:c.inputFillActive}:o?{borderLeftColor:c.inputBorderError,borderRightColor:c.inputBorderError,borderTopColor:c.inputBorderError,borderBottomColor:c.inputBorderError,backgroundColor:c.inputFillError}:p?{borderLeftColor:c.inputBorderPositive,borderRightColor:c.inputBorderPositive,borderTopColor:c.inputBorderPositive,borderBottomColor:c.inputBorderPositive,backgroundColor:c.inputFillPositive}:{borderLeftColor:c.inputBorder,borderRightColor:c.inputBorder,borderTopColor:c.inputBorder,borderBottomColor:c.inputBorder,backgroundColor:c.inputFill}}function z(e,n){var o=n.inputBorderRadius;return e===d.SIZE.mini&&(o=n.inputBorderRadiusMini),{borderTopLeftRadius:o,borderBottomLeftRadius:o,borderTopRightRadius:o,borderBottomRightRadius:o}}var B=function(e){var n=e.$isFocused,o=e.$adjoined,p=e.$error,c=e.$disabled,S=e.$positive,j=e.$size,_=e.$theme,T=e.$theme,N=T.borders,W=T.colors,le=T.sizing,ue=T.typography,X=T.animation,se=e.$hasIconTrailing;return m(m(m(m({boxSizing:"border-box",display:"flex",overflow:"hidden",width:"100%",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border",transitionDuration:X.timing200,transitionTimingFunction:X.easeOutCurve},z(j,N)),w(j,ue)),D(c,n,p,S,W)),E(o,j,le,_.direction,se))};P.getRootStyles=B;var $=(0,f.styled)("div",B);P.Root=$,$.displayName="Root",$.displayName="Root";function k(e,n){var o;return(o={},b(o,d.SIZE.mini,{paddingRight:n.scale400,paddingLeft:n.scale400}),b(o,d.SIZE.compact,{paddingRight:n.scale400,paddingLeft:n.scale400}),b(o,d.SIZE.default,{paddingRight:n.scale300,paddingLeft:n.scale300}),b(o,d.SIZE.large,{paddingRight:n.scale200,paddingLeft:n.scale200}),o)[e]}function M(e,n,o,p,c){return e?{color:c.inputEnhancerTextDisabled,backgroundColor:c.inputFillDisabled}:n?{color:c.contentPrimary,backgroundColor:c.inputFillActive}:o?{color:c.contentPrimary,backgroundColor:c.inputFillError}:p?{color:c.contentPrimary,backgroundColor:c.inputFillPositive}:{color:c.contentPrimary,backgroundColor:c.inputFill}}var i=(0,f.styled)("div",function(e){var n=e.$size,o=e.$disabled,p=e.$isFocused,c=e.$error,S=e.$positive,j=e.$theme,_=j.colors,T=j.sizing,N=j.typography,W=j.animation;return m(m(m({display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"color, background-color",transitionDuration:W.timing200,transitionTimingFunction:W.easeOutCurve},w(n,N)),k(n,T)),M(o,p,c,S,_))});P.InputEnhancer=i,i.displayName="InputEnhancer",i.displayName="InputEnhancer";function r(e,n,o,p,c){return e?{color:c.inputTextDisabled,backgroundColor:c.inputFillDisabled}:n?{color:c.contentPrimary,backgroundColor:c.inputFillActive}:o?{color:c.contentPrimary,backgroundColor:c.inputFillError}:p?{color:c.contentPrimary,backgroundColor:c.inputFillPositive}:{color:c.contentPrimary,backgroundColor:c.inputFill}}var u=function(e){var n=e.$isFocused,o=e.$error,p=e.$disabled,c=e.$positive,S=e.$size,j=e.$theme,_=j.colors,T=j.typography,N=j.animation;return m(m({display:"flex",width:"100%",transitionProperty:"background-color",transitionDuration:N.timing200,transitionTimingFunction:N.easeOutCurve},w(S,T)),r(p,n,o,c,_))};P.getInputContainerStyles=u;var s=(0,f.styled)("div",u);P.InputContainer=s,s.displayName="InputContainer",s.displayName="InputContainer";function t(e,n,o,p){return e?{color:p.inputTextDisabled,"-webkit-text-fill-color":p.inputTextDisabled,caretColor:p.contentPrimary,"::placeholder":{color:p.inputPlaceholderDisabled}}:{color:p.contentPrimary,caretColor:p.contentPrimary,"::placeholder":{color:p.inputPlaceholder}}}var a=function(e){var n=e.$disabled,o=e.$isFocused,p=e.$error,c=e.$size,S=e.$theme,j=S.colors,_=S.sizing,T=S.typography;return m(m(m({boxSizing:"border-box",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderRightStyle:"none",borderTopStyle:"none",borderBottomStyle:"none",outline:"none",width:"100%",minWidth:0,maxWidth:"100%",cursor:n?"not-allowed":"text",margin:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"},w(c,T)),C(c,_)),t(n,o,p,j))};P.getInputStyles=a;var l=(0,f.styled)("input",a);return P.Input=l,l.displayName="Input",l.displayName="Input",P}var He=Ze();const Ve=ie("div",{target:"e1ipygm11"})({name:"1ucqwki",styles:"position:absolute;top:50%;right:2.05em"}),Ue=ie(he,{shouldForwardProp:ve,target:"e1ipygm10"})(({theme:f,$isHighlighted:d})=>({paddingRight:f.spacing.lg,paddingLeft:f.spacing.lg,paddingTop:f.spacing.sm,paddingBottom:f.spacing.sm,background:d?f.colors.darkenedBgMix15:void 0,"&:hover, &:active, &:focus-visible":{background:f.colors.darkenedBgMix15}}),"");function Je({disabled:f,element:d,widgetMgr:h,fragmentId:y}){const[v,m]=_e({getStateFromWidgetMgr:Ye,getDefaultStateFromProto:Ge,getCurrStateFromProto:Xe,updateWidgetMgrState:qe,element:d,widgetMgr:h,fragmentId:y}),b=U.useContext(ce),O=J(d.default)&&!f,g=de(),I={Select:{props:{disabled:f,overrides:{ControlContainer:{style:{height:g.sizes.minElementHeight,borderLeftWidth:g.sizes.borderWidth,borderRightWidth:g.sizes.borderWidth,borderTopWidth:g.sizes.borderWidth,borderBottomWidth:g.sizes.borderWidth}},IconsContainer:{style:()=>({paddingRight:g.spacing.sm})},ValueContainer:{style:()=>({lineHeight:g.lineHeights.inputWidget,paddingRight:g.spacing.sm,paddingLeft:g.spacing.md,paddingBottom:g.spacing.sm,paddingTop:g.spacing.sm})},SingleValue:{style:{fontWeight:g.fontWeights.normal},props:{"data-testid":"stTimeInputTimeDisplay"}},Dropdown:{style:()=>({paddingTop:g.spacing.none,paddingBottom:g.spacing.none,boxShadow:"none",maxHeight:g.sizes.maxDropdownHeight})},DropdownListItem:{component:Ue},Popover:{props:{ignoreBoundary:b,overrides:{Body:{style:()=>({marginTop:g.spacing.px})}}}},Placeholder:{style:()=>({color:g.colors.fadedText60})},SelectArrow:{component:me,props:{overrides:{Svg:{style:()=>({width:g.iconSizes.xl,height:g.iconSizes.xl})}}}}}}}},C=U.useCallback(w=>{const D=w===null?null:Ke(w);m({value:D,fromUi:!0})},[m]),E=U.useCallback(()=>{C(null)},[C]);return L.jsxs("div",{className:"stTimeInput","data-testid":"stTimeInput",children:[L.jsx(pe,{label:d.label,disabled:f,labelVisibility:fe(d.labelVisibility?.value),children:d.help&&L.jsx(ge,{children:L.jsx(be,{content:d.help,placement:ye.TOP_RIGHT})})}),L.jsx(Be,{format:"24",step:d.step?Number(d.step):900,value:J(v)?void 0:Qe(v),onChange:C,overrides:I,nullable:O,creatable:!0,"aria-label":d.label}),O&&!J(v)&&L.jsx(Ve,{onClick:E,"data-testid":"stTimeInputClearButton",children:L.jsx(He.StyledClearIcon,{overrides:{Svg:{style:{color:g.colors.grayTextColor,padding:g.spacing.threeXS,height:g.sizes.clearIconSize,width:g.sizes.clearIconSize,":hover":{fill:g.colors.bodyText}}}},$isFocusVisible:!1})})]})}function Ye(f,d){return f.getStringValue(d)??null}function Ge(f){return f.default??null}function Xe(f){return f.value??null}function qe(f,d,h,y){d.setStringValue(f,h.value,{fromUi:h.fromUi},y)}function Ke(f){const d=f.getHours().toString().padStart(2,"0"),h=f.getMinutes().toString().padStart(2,"0");return`${d}:${h}`}function Qe(f){if(f===null)return null;const[d,h]=f.split(":").map(Number),y=new Date;return y.setHours(d),y.setMinutes(h),y}const at=U.memo(Je);export{at as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as Tt,j as we,c as Xt}from"./index-D3uELfdo.js";const{entries:yt,setPrototypeOf:ct,isFrozen:$t,getPrototypeOf:Kt,getOwnPropertyDescriptor:Vt}=Object;let{freeze:A,seal:b,create:xe}=Object,{apply:Ie,construct:Me}=typeof Reflect<"u"&&Reflect;A||(A=function(o){return o});b||(b=function(o){return o});Ie||(Ie=function(o,r){for(var i=arguments.length,a=new Array(i>2?i-2:0),m=2;m<i;m++)a[m-2]=arguments[m];return o.apply(r,a)});Me||(Me=function(o){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return new o(...i)});const le=_(Array.prototype.forEach),Zt=_(Array.prototype.lastIndexOf),ut=_(Array.prototype.pop),X=_(Array.prototype.push),Qt=_(Array.prototype.splice),ce=_(String.prototype.toLowerCase),Ce=_(String.prototype.toString),De=_(String.prototype.match),$=_(String.prototype.replace),Jt=_(String.prototype.indexOf),en=_(String.prototype.trim),R=_(Object.prototype.hasOwnProperty),E=_(RegExp.prototype.test),K=tn(TypeError);function _(o){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var i=arguments.length,a=new Array(i>1?i-1:0),m=1;m<i;m++)a[m-1]=arguments[m];return Ie(o,r,a)}}function tn(o){return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Me(o,i)}}function l(o,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce;ct&&ct(o,null);let a=r.length;for(;a--;){let m=r[a];if(typeof m=="string"){const w=i(m);w!==m&&($t(r)||(r[a]=w),m=w)}o[m]=!0}return o}function nn(o){for(let r=0;r<o.length;r++)R(o,r)||(o[r]=null);return o}function v(o){const r=xe(null);for(const[i,a]of yt(o))R(o,i)&&(Array.isArray(a)?r[i]=nn(a):a&&typeof a=="object"&&a.constructor===Object?r[i]=v(a):r[i]=a);return r}function V(o,r){for(;o!==null;){const a=Vt(o,r);if(a){if(a.get)return _(a.get);if(typeof a.value=="function")return _(a.value)}o=Kt(o)}function i(){return null}return i}const mt=A(["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","search","section","select","shadow","slot","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"]),ke=A(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ve=A(["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"]),rn=A(["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"]),Le=A(["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=A(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ft=A(["#text"]),pt=A(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Oe=A(["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","mask-type","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"]),dt=A(["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"]),se=A(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),an=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ln=b(/<%[\w\W]*|[\w\W]*%>/gm),sn=b(/\$\{[\w\W]*/gm),cn=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),un=b(/^aria-[\-\w]+$/),Et=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mn=b(/^(?:\w+script|data):/i),fn=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),At=b(/^html$/i),pn=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var gt=Object.freeze({__proto__:null,ARIA_ATTR:un,ATTR_WHITESPACE:fn,CUSTOM_ELEMENT:pn,DATA_ATTR:cn,DOCTYPE_NAME:At,ERB_EXPR:ln,IS_ALLOWED_URI:Et,IS_SCRIPT_OR_DATA:mn,MUSTACHE_EXPR:an,TMPLIT_EXPR:sn});const Z={element:1,text:3,progressingInstruction:7,comment:8,document:9},dn=function(){return typeof window>"u"?null:window},gn=function(o,r){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let i=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(i=r.getAttribute(a));const m="dompurify"+(i?"#"+i:"");try{return o.createPolicy(m,{createHTML(w){return w},createScriptURL(w){return w}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},ht=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _t(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dn();const r=e=>_t(e);if(r.version="3.3.0",r.removed=[],!o||!o.document||o.document.nodeType!==Z.document||!o.Element)return r.isSupported=!1,r;let{document:i}=o;const a=i,m=a.currentScript,{DocumentFragment:w,HTMLTemplateElement:bt,Node:ue,Element:He,NodeFilter:G,NamedNodeMap:St=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:Nt,DOMParser:Rt,trustedTypes:Q}=o,W=He.prototype,wt=V(W,"cloneNode"),Ct=V(W,"remove"),Dt=V(W,"nextSibling"),kt=V(W,"childNodes"),J=V(W,"parentNode");if(typeof bt=="function"){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let T,B="";const{implementation:me,createNodeIterator:vt,createDocumentFragment:Lt,getElementsByTagName:Ot}=i,{importNode:xt}=a;let y=ht();r.isSupported=typeof yt=="function"&&typeof J=="function"&&me&&me.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:fe,ERB_EXPR:pe,TMPLIT_EXPR:de,DATA_ATTR:It,ARIA_ATTR:Mt,IS_SCRIPT_OR_DATA:Ut,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:Pt}=gt;let{IS_ALLOWED_URI:Fe}=gt,f=null;const Ge=l({},[...mt,...ke,...ve,...Le,...ft]);let d=null;const We=l({},[...pt,...Oe,...dt,...se]);let u=Object.seal(xe(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}})),Y=null,ge=null;const I=Object.seal(xe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Be=!0,he=!0,Ye=!1,je=!0,M=!1,ee=!0,L=!1,Te=!1,ye=!1,U=!1,te=!1,ne=!1,qe=!0,Xe=!1;const Ht="user-content-";let Ee=!0,j=!1,P={},H=null;const $e=l({},["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 Ke=null;const Ve=l({},["audio","video","img","source","image","track"]);let Ae=null;const Ze=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml";let z=C,_e=!1,be=null;const zt=l({},[re,oe,C],Ce);let ae=l({},["mi","mo","mn","ms","mtext"]),ie=l({},["annotation-xml"]);const Ft=l({},["title","style","font","a","script"]);let q=null;const Gt=["application/xhtml+xml","text/html"],Wt="text/html";let p=null,F=null;const Bt=i.createElement("form"),Qe=function(e){return e instanceof RegExp||e instanceof Function},Se=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(F&&F===e)){if((!e||typeof e!="object")&&(e={}),e=v(e),q=Gt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Wt:e.PARSER_MEDIA_TYPE,p=q==="application/xhtml+xml"?Ce:ce,f=R(e,"ALLOWED_TAGS")?l({},e.ALLOWED_TAGS,p):Ge,d=R(e,"ALLOWED_ATTR")?l({},e.ALLOWED_ATTR,p):We,be=R(e,"ALLOWED_NAMESPACES")?l({},e.ALLOWED_NAMESPACES,Ce):zt,Ae=R(e,"ADD_URI_SAFE_ATTR")?l(v(Ze),e.ADD_URI_SAFE_ATTR,p):Ze,Ke=R(e,"ADD_DATA_URI_TAGS")?l(v(Ve),e.ADD_DATA_URI_TAGS,p):Ve,H=R(e,"FORBID_CONTENTS")?l({},e.FORBID_CONTENTS,p):$e,Y=R(e,"FORBID_TAGS")?l({},e.FORBID_TAGS,p):v({}),ge=R(e,"FORBID_ATTR")?l({},e.FORBID_ATTR,p):v({}),P=R(e,"USE_PROFILES")?e.USE_PROFILES:!1,Be=e.ALLOW_ARIA_ATTR!==!1,he=e.ALLOW_DATA_ATTR!==!1,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,M=e.SAFE_FOR_TEMPLATES||!1,ee=e.SAFE_FOR_XML!==!1,L=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,ye=e.FORCE_BODY||!1,qe=e.SANITIZE_DOM!==!1,Xe=e.SANITIZE_NAMED_PROPS||!1,Ee=e.KEEP_CONTENT!==!1,j=e.IN_PLACE||!1,Fe=e.ALLOWED_URI_REGEXP||Et,z=e.NAMESPACE||C,ae=e.MATHML_TEXT_INTEGRATION_POINTS||ae,ie=e.HTML_INTEGRATION_POINTS||ie,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),M&&(he=!1),te&&(U=!0),P&&(f=l({},ft),d=[],P.html===!0&&(l(f,mt),l(d,pt)),P.svg===!0&&(l(f,ke),l(d,Oe),l(d,se)),P.svgFilters===!0&&(l(f,ve),l(d,Oe),l(d,se)),P.mathMl===!0&&(l(f,Le),l(d,dt),l(d,se))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?I.tagCheck=e.ADD_TAGS:(f===Ge&&(f=v(f)),l(f,e.ADD_TAGS,p))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?I.attributeCheck=e.ADD_ATTR:(d===We&&(d=v(d)),l(d,e.ADD_ATTR,p))),e.ADD_URI_SAFE_ATTR&&l(Ae,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(H===$e&&(H=v(H)),l(H,e.FORBID_CONTENTS,p)),Ee&&(f["#text"]=!0),L&&l(f,["html","head","body"]),f.table&&(l(f,["tbody"]),delete Y.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=e.TRUSTED_TYPES_POLICY,B=T.createHTML("")}else T===void 0&&(T=gn(Q,m)),T!==null&&typeof B=="string"&&(B=T.createHTML(""));A&&A(e),F=e}},Je=l({},[...ke,...ve,...rn]),et=l({},[...Le,...on]),Yt=function(e){let n=J(e);(!n||!n.tagName)&&(n={namespaceURI:z,tagName:"template"});const t=ce(e.tagName),s=ce(n.tagName);return be[e.namespaceURI]?e.namespaceURI===oe?n.namespaceURI===C?t==="svg":n.namespaceURI===re?t==="svg"&&(s==="annotation-xml"||ae[s]):!!Je[t]:e.namespaceURI===re?n.namespaceURI===C?t==="math":n.namespaceURI===oe?t==="math"&&ie[s]:!!et[t]:e.namespaceURI===C?n.namespaceURI===oe&&!ie[s]||n.namespaceURI===re&&!ae[s]?!1:!et[t]&&(Ft[t]||!Je[t]):!!(q==="application/xhtml+xml"&&be[e.namespaceURI]):!1},O=function(e){X(r.removed,{element:e});try{J(e).removeChild(e)}catch{Ct(e)}},x=function(e,n){try{X(r.removed,{attribute:n.getAttributeNode(e),from:n})}catch{X(r.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is")if(U||te)try{O(n)}catch{}else try{n.setAttribute(e,"")}catch{}},tt=function(e){let n=null,t=null;if(ye)e="<remove></remove>"+e;else{const c=De(e,/^[\r\n\t ]+/);t=c&&c[0]}q==="application/xhtml+xml"&&z===C&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=T?T.createHTML(e):e;if(z===C)try{n=new Rt().parseFromString(s,q)}catch{}if(!n||!n.documentElement){n=me.createDocument(z,"template",null);try{n.documentElement.innerHTML=_e?B:s}catch{}}const g=n.body||n.documentElement;return e&&t&&g.insertBefore(i.createTextNode(t),g.childNodes[0]||null),z===C?Ot.call(n,L?"html":"body")[0]:L?n.documentElement:g},nt=function(e){return vt.call(e.ownerDocument||e,e,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},Ne=function(e){return e instanceof Nt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof St)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},rt=function(e){return typeof ue=="function"&&e instanceof ue};function D(e,n,t){le(e,s=>{s.call(r,n,t,F)})}const ot=function(e){let n=null;if(D(y.beforeSanitizeElements,e,null),Ne(e))return O(e),!0;const t=p(e.nodeName);if(D(y.uponSanitizeElement,e,{tagName:t,allowedTags:f}),ee&&e.hasChildNodes()&&!rt(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent)||e.nodeType===Z.progressingInstruction||ee&&e.nodeType===Z.comment&&E(/<[/\w]/g,e.data))return O(e),!0;if(!(I.tagCheck instanceof Function&&I.tagCheck(t))&&(!f[t]||Y[t])){if(!Y[t]&&it(t)&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t)))return!1;if(Ee&&!H[t]){const s=J(e)||e.parentNode,g=kt(e)||e.childNodes;if(g&&s){const c=g.length;for(let k=c-1;k>=0;--k){const S=wt(g[k],!0);S.__removalCount=(e.__removalCount||0)+1,s.insertBefore(S,Dt(e))}}}return O(e),!0}return e instanceof He&&!Yt(e)||(t==="noscript"||t==="noembed"||t==="noframes")&&E(/<\/no(script|embed|frames)/i,e.innerHTML)?(O(e),!0):(M&&e.nodeType===Z.text&&(n=e.textContent,le([fe,pe,de],s=>{n=$(n,s," ")}),e.textContent!==n&&(X(r.removed,{element:e.cloneNode()}),e.textContent=n)),D(y.afterSanitizeElements,e,null),!1)},at=function(e,n,t){if(qe&&(n==="id"||n==="name")&&(t in i||t in Bt))return!1;if(!(he&&!ge[n]&&E(It,n))&&!(Be&&E(Mt,n))&&!(I.attributeCheck instanceof Function&&I.attributeCheck(n,e))){if(!d[n]||ge[n]){if(!(it(e)&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&E(u.attributeNameCheck,n)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(n,e))||n==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t))))return!1}else if(!Ae[n]&&!E(Fe,$(t,ze,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&Jt(t,"data:")===0&&Ke[e])&&!(Ye&&!E(Ut,$(t,ze,"")))&&t)return!1}return!0},it=function(e){return e!=="annotation-xml"&&De(e,Pt)},lt=function(e){D(y.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||Ne(e))return;const t={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let s=n.length;for(;s--;){const g=n[s],{name:c,namespaceURI:k,value:S}=g,N=p(c),Re=S;let h=c==="value"?Re:en(Re);if(t.attrName=N,t.attrValue=h,t.keepAttr=!0,t.forceKeepAttr=void 0,D(y.uponSanitizeAttribute,e,t),h=t.attrValue,Xe&&(N==="id"||N==="name")&&(x(c,e),h=Ht+h),ee&&E(/((--!?|])>)|<\/(style|title|textarea)/i,h)){x(c,e);continue}if(N==="attributename"&&De(h,"href")){x(c,e);continue}if(t.forceKeepAttr)continue;if(!t.keepAttr){x(c,e);continue}if(!je&&E(/\/>/i,h)){x(c,e);continue}M&&le([fe,pe,de],qt=>{h=$(h,qt," ")});const st=p(e.nodeName);if(!at(st,N,h)){x(c,e);continue}if(T&&typeof Q=="object"&&typeof Q.getAttributeType=="function"&&!k)switch(Q.getAttributeType(st,N)){case"TrustedHTML":{h=T.createHTML(h);break}case"TrustedScriptURL":{h=T.createScriptURL(h);break}}if(h!==Re)try{k?e.setAttributeNS(k,c,h):e.setAttribute(c,h),Ne(e)?O(e):ut(r.removed)}catch{x(c,e)}}D(y.afterSanitizeAttributes,e,null)},jt=function e(n){let t=null;const s=nt(n);for(D(y.beforeSanitizeShadowDOM,n,null);t=s.nextNode();)D(y.uponSanitizeShadowNode,t,null),ot(t),lt(t),t.content instanceof w&&e(t.content);D(y.afterSanitizeShadowDOM,n,null)};return r.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,s=null,g=null,c=null;if(_e=!e,_e&&(e="<!-->"),typeof e!="string"&&!rt(e))if(typeof e.toString=="function"){if(e=e.toString(),typeof e!="string")throw K("dirty is not a string, aborting")}else throw K("toString is not a function");if(!r.isSupported)return e;if(Te||Se(n),r.removed=[],typeof e=="string"&&(j=!1),j){if(e.nodeName){const N=p(e.nodeName);if(!f[N]||Y[N])throw K("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof ue)t=tt("<!---->"),s=t.ownerDocument.importNode(e,!0),s.nodeType===Z.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?t=s:t.appendChild(s);else{if(!U&&!M&&!L&&e.indexOf("<")===-1)return T&&ne?T.createHTML(e):e;if(t=tt(e),!t)return U?null:ne?B:""}t&&ye&&O(t.firstChild);const k=nt(j?e:t);for(;g=k.nextNode();)ot(g),lt(g),g.content instanceof w&&jt(g.content);if(j)return e;if(U){if(te)for(c=Lt.call(t.ownerDocument);t.firstChild;)c.appendChild(t.firstChild);else c=t;return(d.shadowroot||d.shadowrootmode)&&(c=xt.call(a,c,!0)),c}let S=L?t.outerHTML:t.innerHTML;return L&&f["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&E(At,t.ownerDocument.doctype.name)&&(S="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
1
|
+
import{r as Tt,j as we,c as Xt}from"./index-Bs9zibyE.js";const{entries:yt,setPrototypeOf:ct,isFrozen:$t,getPrototypeOf:Kt,getOwnPropertyDescriptor:Vt}=Object;let{freeze:A,seal:b,create:xe}=Object,{apply:Ie,construct:Me}=typeof Reflect<"u"&&Reflect;A||(A=function(o){return o});b||(b=function(o){return o});Ie||(Ie=function(o,r){for(var i=arguments.length,a=new Array(i>2?i-2:0),m=2;m<i;m++)a[m-2]=arguments[m];return o.apply(r,a)});Me||(Me=function(o){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return new o(...i)});const le=_(Array.prototype.forEach),Zt=_(Array.prototype.lastIndexOf),ut=_(Array.prototype.pop),X=_(Array.prototype.push),Qt=_(Array.prototype.splice),ce=_(String.prototype.toLowerCase),Ce=_(String.prototype.toString),De=_(String.prototype.match),$=_(String.prototype.replace),Jt=_(String.prototype.indexOf),en=_(String.prototype.trim),R=_(Object.prototype.hasOwnProperty),E=_(RegExp.prototype.test),K=tn(TypeError);function _(o){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var i=arguments.length,a=new Array(i>1?i-1:0),m=1;m<i;m++)a[m-1]=arguments[m];return Ie(o,r,a)}}function tn(o){return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Me(o,i)}}function l(o,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce;ct&&ct(o,null);let a=r.length;for(;a--;){let m=r[a];if(typeof m=="string"){const w=i(m);w!==m&&($t(r)||(r[a]=w),m=w)}o[m]=!0}return o}function nn(o){for(let r=0;r<o.length;r++)R(o,r)||(o[r]=null);return o}function v(o){const r=xe(null);for(const[i,a]of yt(o))R(o,i)&&(Array.isArray(a)?r[i]=nn(a):a&&typeof a=="object"&&a.constructor===Object?r[i]=v(a):r[i]=a);return r}function V(o,r){for(;o!==null;){const a=Vt(o,r);if(a){if(a.get)return _(a.get);if(typeof a.value=="function")return _(a.value)}o=Kt(o)}function i(){return null}return i}const mt=A(["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","search","section","select","shadow","slot","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"]),ke=A(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ve=A(["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"]),rn=A(["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"]),Le=A(["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=A(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ft=A(["#text"]),pt=A(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Oe=A(["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","mask-type","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"]),dt=A(["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"]),se=A(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),an=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ln=b(/<%[\w\W]*|[\w\W]*%>/gm),sn=b(/\$\{[\w\W]*/gm),cn=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),un=b(/^aria-[\-\w]+$/),Et=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mn=b(/^(?:\w+script|data):/i),fn=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),At=b(/^html$/i),pn=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var gt=Object.freeze({__proto__:null,ARIA_ATTR:un,ATTR_WHITESPACE:fn,CUSTOM_ELEMENT:pn,DATA_ATTR:cn,DOCTYPE_NAME:At,ERB_EXPR:ln,IS_ALLOWED_URI:Et,IS_SCRIPT_OR_DATA:mn,MUSTACHE_EXPR:an,TMPLIT_EXPR:sn});const Z={element:1,text:3,progressingInstruction:7,comment:8,document:9},dn=function(){return typeof window>"u"?null:window},gn=function(o,r){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let i=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(i=r.getAttribute(a));const m="dompurify"+(i?"#"+i:"");try{return o.createPolicy(m,{createHTML(w){return w},createScriptURL(w){return w}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},ht=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _t(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dn();const r=e=>_t(e);if(r.version="3.3.0",r.removed=[],!o||!o.document||o.document.nodeType!==Z.document||!o.Element)return r.isSupported=!1,r;let{document:i}=o;const a=i,m=a.currentScript,{DocumentFragment:w,HTMLTemplateElement:bt,Node:ue,Element:He,NodeFilter:G,NamedNodeMap:St=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:Nt,DOMParser:Rt,trustedTypes:Q}=o,W=He.prototype,wt=V(W,"cloneNode"),Ct=V(W,"remove"),Dt=V(W,"nextSibling"),kt=V(W,"childNodes"),J=V(W,"parentNode");if(typeof bt=="function"){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let T,B="";const{implementation:me,createNodeIterator:vt,createDocumentFragment:Lt,getElementsByTagName:Ot}=i,{importNode:xt}=a;let y=ht();r.isSupported=typeof yt=="function"&&typeof J=="function"&&me&&me.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:fe,ERB_EXPR:pe,TMPLIT_EXPR:de,DATA_ATTR:It,ARIA_ATTR:Mt,IS_SCRIPT_OR_DATA:Ut,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:Pt}=gt;let{IS_ALLOWED_URI:Fe}=gt,f=null;const Ge=l({},[...mt,...ke,...ve,...Le,...ft]);let d=null;const We=l({},[...pt,...Oe,...dt,...se]);let u=Object.seal(xe(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}})),Y=null,ge=null;const I=Object.seal(xe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Be=!0,he=!0,Ye=!1,je=!0,M=!1,ee=!0,L=!1,Te=!1,ye=!1,U=!1,te=!1,ne=!1,qe=!0,Xe=!1;const Ht="user-content-";let Ee=!0,j=!1,P={},H=null;const $e=l({},["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 Ke=null;const Ve=l({},["audio","video","img","source","image","track"]);let Ae=null;const Ze=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml";let z=C,_e=!1,be=null;const zt=l({},[re,oe,C],Ce);let ae=l({},["mi","mo","mn","ms","mtext"]),ie=l({},["annotation-xml"]);const Ft=l({},["title","style","font","a","script"]);let q=null;const Gt=["application/xhtml+xml","text/html"],Wt="text/html";let p=null,F=null;const Bt=i.createElement("form"),Qe=function(e){return e instanceof RegExp||e instanceof Function},Se=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(F&&F===e)){if((!e||typeof e!="object")&&(e={}),e=v(e),q=Gt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Wt:e.PARSER_MEDIA_TYPE,p=q==="application/xhtml+xml"?Ce:ce,f=R(e,"ALLOWED_TAGS")?l({},e.ALLOWED_TAGS,p):Ge,d=R(e,"ALLOWED_ATTR")?l({},e.ALLOWED_ATTR,p):We,be=R(e,"ALLOWED_NAMESPACES")?l({},e.ALLOWED_NAMESPACES,Ce):zt,Ae=R(e,"ADD_URI_SAFE_ATTR")?l(v(Ze),e.ADD_URI_SAFE_ATTR,p):Ze,Ke=R(e,"ADD_DATA_URI_TAGS")?l(v(Ve),e.ADD_DATA_URI_TAGS,p):Ve,H=R(e,"FORBID_CONTENTS")?l({},e.FORBID_CONTENTS,p):$e,Y=R(e,"FORBID_TAGS")?l({},e.FORBID_TAGS,p):v({}),ge=R(e,"FORBID_ATTR")?l({},e.FORBID_ATTR,p):v({}),P=R(e,"USE_PROFILES")?e.USE_PROFILES:!1,Be=e.ALLOW_ARIA_ATTR!==!1,he=e.ALLOW_DATA_ATTR!==!1,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,M=e.SAFE_FOR_TEMPLATES||!1,ee=e.SAFE_FOR_XML!==!1,L=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,ye=e.FORCE_BODY||!1,qe=e.SANITIZE_DOM!==!1,Xe=e.SANITIZE_NAMED_PROPS||!1,Ee=e.KEEP_CONTENT!==!1,j=e.IN_PLACE||!1,Fe=e.ALLOWED_URI_REGEXP||Et,z=e.NAMESPACE||C,ae=e.MATHML_TEXT_INTEGRATION_POINTS||ae,ie=e.HTML_INTEGRATION_POINTS||ie,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),M&&(he=!1),te&&(U=!0),P&&(f=l({},ft),d=[],P.html===!0&&(l(f,mt),l(d,pt)),P.svg===!0&&(l(f,ke),l(d,Oe),l(d,se)),P.svgFilters===!0&&(l(f,ve),l(d,Oe),l(d,se)),P.mathMl===!0&&(l(f,Le),l(d,dt),l(d,se))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?I.tagCheck=e.ADD_TAGS:(f===Ge&&(f=v(f)),l(f,e.ADD_TAGS,p))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?I.attributeCheck=e.ADD_ATTR:(d===We&&(d=v(d)),l(d,e.ADD_ATTR,p))),e.ADD_URI_SAFE_ATTR&&l(Ae,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(H===$e&&(H=v(H)),l(H,e.FORBID_CONTENTS,p)),Ee&&(f["#text"]=!0),L&&l(f,["html","head","body"]),f.table&&(l(f,["tbody"]),delete Y.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=e.TRUSTED_TYPES_POLICY,B=T.createHTML("")}else T===void 0&&(T=gn(Q,m)),T!==null&&typeof B=="string"&&(B=T.createHTML(""));A&&A(e),F=e}},Je=l({},[...ke,...ve,...rn]),et=l({},[...Le,...on]),Yt=function(e){let n=J(e);(!n||!n.tagName)&&(n={namespaceURI:z,tagName:"template"});const t=ce(e.tagName),s=ce(n.tagName);return be[e.namespaceURI]?e.namespaceURI===oe?n.namespaceURI===C?t==="svg":n.namespaceURI===re?t==="svg"&&(s==="annotation-xml"||ae[s]):!!Je[t]:e.namespaceURI===re?n.namespaceURI===C?t==="math":n.namespaceURI===oe?t==="math"&&ie[s]:!!et[t]:e.namespaceURI===C?n.namespaceURI===oe&&!ie[s]||n.namespaceURI===re&&!ae[s]?!1:!et[t]&&(Ft[t]||!Je[t]):!!(q==="application/xhtml+xml"&&be[e.namespaceURI]):!1},O=function(e){X(r.removed,{element:e});try{J(e).removeChild(e)}catch{Ct(e)}},x=function(e,n){try{X(r.removed,{attribute:n.getAttributeNode(e),from:n})}catch{X(r.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is")if(U||te)try{O(n)}catch{}else try{n.setAttribute(e,"")}catch{}},tt=function(e){let n=null,t=null;if(ye)e="<remove></remove>"+e;else{const c=De(e,/^[\r\n\t ]+/);t=c&&c[0]}q==="application/xhtml+xml"&&z===C&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=T?T.createHTML(e):e;if(z===C)try{n=new Rt().parseFromString(s,q)}catch{}if(!n||!n.documentElement){n=me.createDocument(z,"template",null);try{n.documentElement.innerHTML=_e?B:s}catch{}}const g=n.body||n.documentElement;return e&&t&&g.insertBefore(i.createTextNode(t),g.childNodes[0]||null),z===C?Ot.call(n,L?"html":"body")[0]:L?n.documentElement:g},nt=function(e){return vt.call(e.ownerDocument||e,e,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},Ne=function(e){return e instanceof Nt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof St)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},rt=function(e){return typeof ue=="function"&&e instanceof ue};function D(e,n,t){le(e,s=>{s.call(r,n,t,F)})}const ot=function(e){let n=null;if(D(y.beforeSanitizeElements,e,null),Ne(e))return O(e),!0;const t=p(e.nodeName);if(D(y.uponSanitizeElement,e,{tagName:t,allowedTags:f}),ee&&e.hasChildNodes()&&!rt(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent)||e.nodeType===Z.progressingInstruction||ee&&e.nodeType===Z.comment&&E(/<[/\w]/g,e.data))return O(e),!0;if(!(I.tagCheck instanceof Function&&I.tagCheck(t))&&(!f[t]||Y[t])){if(!Y[t]&&it(t)&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t)))return!1;if(Ee&&!H[t]){const s=J(e)||e.parentNode,g=kt(e)||e.childNodes;if(g&&s){const c=g.length;for(let k=c-1;k>=0;--k){const S=wt(g[k],!0);S.__removalCount=(e.__removalCount||0)+1,s.insertBefore(S,Dt(e))}}}return O(e),!0}return e instanceof He&&!Yt(e)||(t==="noscript"||t==="noembed"||t==="noframes")&&E(/<\/no(script|embed|frames)/i,e.innerHTML)?(O(e),!0):(M&&e.nodeType===Z.text&&(n=e.textContent,le([fe,pe,de],s=>{n=$(n,s," ")}),e.textContent!==n&&(X(r.removed,{element:e.cloneNode()}),e.textContent=n)),D(y.afterSanitizeElements,e,null),!1)},at=function(e,n,t){if(qe&&(n==="id"||n==="name")&&(t in i||t in Bt))return!1;if(!(he&&!ge[n]&&E(It,n))&&!(Be&&E(Mt,n))&&!(I.attributeCheck instanceof Function&&I.attributeCheck(n,e))){if(!d[n]||ge[n]){if(!(it(e)&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&E(u.attributeNameCheck,n)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(n,e))||n==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t))))return!1}else if(!Ae[n]&&!E(Fe,$(t,ze,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&Jt(t,"data:")===0&&Ke[e])&&!(Ye&&!E(Ut,$(t,ze,"")))&&t)return!1}return!0},it=function(e){return e!=="annotation-xml"&&De(e,Pt)},lt=function(e){D(y.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||Ne(e))return;const t={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let s=n.length;for(;s--;){const g=n[s],{name:c,namespaceURI:k,value:S}=g,N=p(c),Re=S;let h=c==="value"?Re:en(Re);if(t.attrName=N,t.attrValue=h,t.keepAttr=!0,t.forceKeepAttr=void 0,D(y.uponSanitizeAttribute,e,t),h=t.attrValue,Xe&&(N==="id"||N==="name")&&(x(c,e),h=Ht+h),ee&&E(/((--!?|])>)|<\/(style|title|textarea)/i,h)){x(c,e);continue}if(N==="attributename"&&De(h,"href")){x(c,e);continue}if(t.forceKeepAttr)continue;if(!t.keepAttr){x(c,e);continue}if(!je&&E(/\/>/i,h)){x(c,e);continue}M&&le([fe,pe,de],qt=>{h=$(h,qt," ")});const st=p(e.nodeName);if(!at(st,N,h)){x(c,e);continue}if(T&&typeof Q=="object"&&typeof Q.getAttributeType=="function"&&!k)switch(Q.getAttributeType(st,N)){case"TrustedHTML":{h=T.createHTML(h);break}case"TrustedScriptURL":{h=T.createScriptURL(h);break}}if(h!==Re)try{k?e.setAttributeNS(k,c,h):e.setAttribute(c,h),Ne(e)?O(e):ut(r.removed)}catch{x(c,e)}}D(y.afterSanitizeAttributes,e,null)},jt=function e(n){let t=null;const s=nt(n);for(D(y.beforeSanitizeShadowDOM,n,null);t=s.nextNode();)D(y.uponSanitizeShadowNode,t,null),ot(t),lt(t),t.content instanceof w&&e(t.content);D(y.afterSanitizeShadowDOM,n,null)};return r.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,s=null,g=null,c=null;if(_e=!e,_e&&(e="<!-->"),typeof e!="string"&&!rt(e))if(typeof e.toString=="function"){if(e=e.toString(),typeof e!="string")throw K("dirty is not a string, aborting")}else throw K("toString is not a function");if(!r.isSupported)return e;if(Te||Se(n),r.removed=[],typeof e=="string"&&(j=!1),j){if(e.nodeName){const N=p(e.nodeName);if(!f[N]||Y[N])throw K("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof ue)t=tt("<!---->"),s=t.ownerDocument.importNode(e,!0),s.nodeType===Z.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?t=s:t.appendChild(s);else{if(!U&&!M&&!L&&e.indexOf("<")===-1)return T&&ne?T.createHTML(e):e;if(t=tt(e),!t)return U?null:ne?B:""}t&&ye&&O(t.firstChild);const k=nt(j?e:t);for(;g=k.nextNode();)ot(g),lt(g),g.content instanceof w&&jt(g.content);if(j)return e;if(U){if(te)for(c=Lt.call(t.ownerDocument);t.firstChild;)c.appendChild(t.firstChild);else c=t;return(d.shadowroot||d.shadowrootmode)&&(c=xt.call(a,c,!0)),c}let S=L?t.outerHTML:t.innerHTML;return L&&f["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&E(At,t.ownerDocument.doctype.name)&&(S="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
2
2
|
`+S),M&&le([fe,pe,de],N=>{S=$(S,N," ")}),T&&ne?T.createHTML(S):S},r.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Se(e),Te=!0},r.clearConfig=function(){F=null,Te=!1},r.isValidAttribute=function(e,n,t){F||Se({});const s=p(e),g=p(n);return at(s,g,t)},r.addHook=function(e,n){typeof n=="function"&&X(y[e],n)},r.removeHook=function(e,n){if(n!==void 0){const t=Zt(y[e],n);return t===-1?void 0:Qt(y[e],t,1)[0]}return ut(y[e])},r.removeHooks=function(e){y[e]=[]},r.removeAllHooks=function(){y=ht()},r}var Pe=_t();const hn=Xt("div",{target:"e18540fl0"})({name:"1d3w5wq",styles:"width:100%"}),Ue="data-temp-href-target";Pe.addHook("beforeSanitizeAttributes",function(o){o instanceof HTMLElement&&o.hasAttribute("target")&&o.getAttribute("target")==="_blank"&&o.setAttribute(Ue,"_blank")});Pe.addHook("afterSanitizeAttributes",function(o){o instanceof HTMLElement&&o.hasAttribute(Ue)&&(o.setAttribute("target","_blank"),o.setAttribute("rel","noopener noreferrer"),o.removeAttribute(Ue))});const Tn=o=>{const r={USE_PROFILES:{html:!0},FORCE_BODY:!0};return Pe.sanitize(o,r)};function yn({element:o}){const{body:r}=o,i=Tt.useMemo(()=>Tn(r),[r]);return we.jsx(we.Fragment,{children:i&&we.jsx(hn,{className:"stHtml","data-testid":"stHtml",dangerouslySetInnerHTML:{__html:i}})})}const An=Tt.memo(yn);export{An as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as f,m as H,s as J,aT as u,j as g,aU as Q,aI as Y,aJ as Z,aV as q,aK as ee,ap as te,aW as re,aQ as ne,ai as k,al as $,am as oe,aX as ie,aY as ae,aZ as le}from"./index-
|
|
1
|
+
import{r as f,m as H,s as J,aT as u,j as g,aU as Q,aI as Y,aJ as Z,aV as q,aK as ee,ap as te,aW as re,aQ as ne,ai as k,al as $,am as oe,aX as ie,aY as ae,aZ as le}from"./index-Bs9zibyE.js";import{S as ce}from"./useBasicWidgetState-BrKZEJpK-CxwkzeKG.js";import"./FormClearHelper-FCPJEFCb-8WTdS9Fc.js";var ue={secondary:"secondary"},z={default:"default"},se={default:"default"},P=Object.freeze({radio:"radio",checkbox:"checkbox"}),N=ie("div",function(e){var t=e.$shape,r=e.$length,n=e.$theme,o=r===1?void 0:t!==z.default?"-".concat(n.sizing.scale100):"-0.5px";return{display:"flex",marginLeft:o,marginRight:o}});N.displayName="StyledRoot";N.displayName="StyledRoot";function D(e){"@babel/helpers - typeof";return D=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},D(e)}function A(){return A=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},A.apply(this,arguments)}function U(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 fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U(Object(r),!0).forEach(function(n){V(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pe(e,t){return me(e)||be(e,t)||ye(e,t)||de()}function de(){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 ye(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 be(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,a=!1,i,p;try{for(r=r.call(e);!(o=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));o=!0);}catch(b){a=!0,p=b}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw p}}return n}}function me(e){if(Array.isArray(e))return e}function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(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 Se(e,t,r){return t&&ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ve(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 Oe(e){var t=we();return function(){var r=I(e),n;if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ee(this,n)}}function Ee(e,t){if(t&&(D(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X(e)}function X(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function we(){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 I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(e)}function V(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Le(e,t){return!Array.isArray(e)&&typeof e!="number"?!1:Array.isArray(e)?e.includes(t):e===t}var F=(function(e){ve(r,e);var t=Oe(r);function r(){var n;he(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),V(X(n),"childRefs",{}),n}return Se(r,[{key:"render",value:function(){var n=this,o=this.props,a=o.overrides,i=a===void 0?{}:a,p=o.mode,b=p===void 0?P.checkbox:p,c=o.children,m=o.selected,w=o.disabled,d=o.onClick,O=o.kind,y=o.shape,L=o.size,S=ae(i.Root,N),x=pe(S,2),j=x[0],T=x[1],R=this.props["aria-label"]||this.props.ariaLabel,s=b===P.radio,E=f.Children.count(c);return f.createElement(le.Consumer,null,function(K){return f.createElement(j,A({"aria-label":R||K.buttongroup.ariaLabel,"data-baseweb":"button-group",role:s?"radiogroup":"group",$shape:y,$length:c.length},T),f.Children.map(c,function(h,C){if(!f.isValidElement(h))return null;var M=h.props.isSelected?h.props.isSelected:Le(m,C);return s&&(n.childRefs[C]=f.createRef()),f.cloneElement(h,{disabled:w||h.props.disabled,isSelected:M,ref:s?n.childRefs[C]:void 0,tabIndex:!s||M||s&&(!m||m===-1)&&C===0?0:-1,onKeyDown:function(l){if(s){var v=Number(m)?Number(m):0;if(l.key==="ArrowUp"||l.key==="ArrowLeft"){l.preventDefault&&l.preventDefault();var _=v-1<0?E-1:v-1;d&&d(l,_),n.childRefs[_].current&&n.childRefs[_].current.focus()}if(l.key==="ArrowDown"||l.key==="ArrowRight"){l.preventDefault&&l.preventDefault();var B=v+1>E-1?0:v+1;d&&d(l,B),n.childRefs[B].current&&n.childRefs[B].current.focus()}}},kind:O,onClick:function(l){w||(h.props.onClick&&h.props.onClick(l),d&&d(l,C))},shape:y,size:L,overrides:fe({BaseButton:{style:function(l){var v=l.$theme;return c.length===1?{}:y!==z.default?{marginLeft:v.sizing.scale100,marginRight:v.sizing.scale100}:{marginLeft:"0.5px",marginRight:"0.5px"}},props:{"aria-checked":M,role:s?"radio":"checkbox"}}},h.props.overrides)})}))})}}]),r})(f.Component);V(F,"defaultProps",{disabled:!1,onClick:function(){},shape:z.default,size:se.default,kind:ue.secondary});function je(e,t){return t.includes(e)?t.filter(r=>r!==e):[...t,e]}function Re(e,t,r){return e==u.ClickMode.MULTI_SELECT?je(t,r??[]):r?.includes(t)?[]:[t]}function Ce(e){return e.length===0?-1:e[0]}function ke(e,t,r,n){t.setIntArrayValue(e,r.value,{fromUi:r.fromUi},n)}function xe(e,t,r){const n=r===u.Style.PILLS?k.PILLS:r===u.Style.BORDERLESS?k.BORDERLESS_ICON:k.SEGMENTED_CONTROL,o=r===u.Style.BORDERLESS?$.XSMALL:$.MEDIUM,a=n===k.PILLS||n===k.SEGMENTED_CONTROL,i=r===u.Style.BORDERLESS?"lg":"base";return{element:g.jsx(oe,{icon:t,label:e,iconSize:i,useSmallerFont:a}),kind:n,size:o}}function Pe(e,t,r,n){return r.indexOf(n)>-1?!0:t!==u.ClickMode.SINGLE_SELECT||e!==u.SelectionVisualization.ALL_UP_TO_SELECTED?!1:r.length>0&&n<r[0]}function Ie(e,t){return e&&(t=`${t}Active`),t}function Te(e,t,r){const n={flexWrap:"wrap",maxWidth:"100%",margin:"0 0"},o=r?"100%":"auto",a=r?{}:{content:"''",flex:1e4};switch(e){case u.Style.BORDERLESS:return{...n,columnGap:t.threeXS,rowGap:t.threeXS};case u.Style.PILLS:return{...n,columnGap:t.twoXS,rowGap:t.twoXS,width:o};case u.Style.SEGMENTED_CONTROL:return{...n,columnGap:t.none,rowGap:t.twoXS,"::after":a,width:o};default:return n}}function Me(e,t,r,n,o,a,i){const p=Pe(r,n,o,t);let b=e.content,c=e.contentIcon;return p&&(b=e.selectedContent?e.selectedContent:b,c=e.selectedContentIcon?e.selectedContentIcon:c),f.forwardRef(function(m,w){const{element:d,kind:O,size:y}=xe(b??"",c??void 0,a),L=Ie(!!(p&&!e.selectedContent&&!e.selectedContentIcon),O);return g.jsx(ne,{...m,size:y,kind:L,containerWidth:i,children:d})})}function _e(e,t){return e.getIntArrayValue(t)}function Be(e){return e.default??null}function De(e){return e.value??null}function Ae(e){const{disabled:t,element:r,fragmentId:n,widgetMgr:o,widthConfig:a}=e,{clickMode:i,options:p,selectionVisualization:b,style:c,label:m,labelVisibility:w,help:d}=r,O=H(),[y,L]=ce({getStateFromWidgetMgr:_e,getDefaultStateFromProto:Be,getCurrStateFromProto:De,updateWidgetMgrState:ke,element:r,widgetMgr:o,fragmentId:n}),S=J(a),x=(R,s)=>{const E=Re(i,s,y);L({value:E,fromUi:!0})};let j;i===u.ClickMode.SINGLE_SELECT?j=P.radio:i===u.ClickMode.MULTI_SELECT&&(j=P.checkbox);const T=f.useMemo(()=>p.map((R,s)=>{const E=Me(R,s,b,i,y,c,S);return g.jsx(E,{},`${R.content}-${s}`)}),[i,p,b,c,y,S]);return g.jsxs(Q,{className:"stButtonGroup","data-testid":"stButtonGroup",containerWidth:S,children:[g.jsx(Y,{label:m,disabled:t,labelVisibility:Z(w?.value??re.LabelVisibilityOptions.COLLAPSED),children:d&&g.jsx(q,{children:g.jsx(ee,{content:d,placement:te.TOP})})}),g.jsx(F,{disabled:t,mode:j,onClick:x,selected:i===u.ClickMode.MULTI_SELECT?y:Ce(y),overrides:{Root:{style:f.useCallback(()=>Te(c,O.spacing,S),[c,O.spacing,S])}},children:T})]})}const Ve=f.memo(Ae);export{Ve as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,f as U,m as B,bV as S,j as s,c as _,aI as G,aJ as y,b0 as J,aK as K,ap as N,bW as O}from"./index-
|
|
1
|
+
import{r as a,f as U,m as B,bV as S,j as s,c as _,aI as G,aJ as y,b0 as J,aK as K,ap as N,bW as O}from"./index-Bs9zibyE.js";import{I as X}from"./uniqueId-zIZf20F6-D11mfTaK.js";import{e as Z}from"./InputInstructions-C9-W08mI-ZHhoQkfd.js";import{S as q}from"./useBasicWidgetState-BrKZEJpK-CxwkzeKG.js";import{v as Q,a as Y,c as $}from"./useUpdateUiValue-BHPP0ppl-jFtPQcBG.js";import{p as ee,r as te}from"./useTextInputAutoExpand-NGyMMcIL-u7iGmO95.js";import"./FormClearHelper-FCPJEFCb-8WTdS9Fc.js";import"./inputUtils-DCYiajnz-DsrlAoKH.js";import"./base-input-CrN3cmkk-CZot_VyG.js";const ie=(t,e)=>{let l="auto";if(t.heightConfig?.useStretch)l="100%";else if(t.heightConfig?.pixelHeight&&t.heightConfig.pixelHeight>0){const r=y(e.labelVisibility?.value)===O.Collapsed?2:30;l=`${t.heightConfig.pixelHeight-r}px`}return l},le=_("div",{target:"ezh4s2r0"})({name:"kdbhus",styles:"height:100%;display:flex;flex-direction:column"}),W=(t,e)=>t.getStringValue(e)??e.default??null,ae=t=>t.default??null,re=t=>t.value??null,oe=(t,e,l,r)=>{e.setStringValue(t,l.value,{fromUi:l.fromUi},r)},se=({disabled:t,element:e,widgetMgr:l,fragmentId:r,outerElement:m})=>{const c=a.useRef(X("text_area_")).current,{width:I,elementRef:T}=U(),[o,u]=a.useState(!1),[v,b]=a.useState(!1),d=m.heightConfig?.useContent??!1,H=m.heightConfig?.useStretch??!1,R=ie(m,e),x=a.useRef(null),[n,h]=a.useState(()=>W(l,e)??null),V=a.useCallback(()=>{h(e.default??null),u(!0)},[e]),[E,g]=q({getStateFromWidgetMgr:W,getDefaultStateFromProto:ae,getCurrStateFromProto:re,updateWidgetMgrState:oe,element:e,widgetMgr:l,fragmentId:r,onFormCleared:V});Q(E,n,h,o);const i=B(),{height:F,maxHeight:j,updateScrollHeight:C}=ee({textareaRef:x,dependencies:[e.placeholder]}),f=a.useCallback(()=>{u(!1),g({value:n,fromUi:!0})},[n,g]),z=a.useCallback(()=>{o&&f(),b(!1)},[o,f]),k=a.useCallback(()=>{b(!0)},[]),w=a.useCallback(()=>{d&&C()},[d,C]),L=Y({formId:e.formId,maxChars:e.maxChars,setDirty:u,setUiValue:h,setValueWithSource:g,additionalAction:w}),A=$(e.formId,f,o,l,r,!0),{placeholder:D,formId:p}=e,M=S({formId:p})?l.allowFormEnterToSubmit(p):o,P=v&&I>i.breakpoints.hideWidgetDetails;return s.jsxs(le,{className:"stTextArea","data-testid":"stTextArea",ref:T,children:[s.jsx(G,{label:e.label,disabled:t,labelVisibility:y(e.labelVisibility?.value),htmlFor:c,children:e.help&&s.jsx(J,{children:s.jsx(K,{content:e.help,placement:N.TOP_RIGHT})})}),s.jsx(te,{inputRef:d?x:void 0,value:n??"",placeholder:D,onBlur:z,onFocus:k,onChange:L,onKeyDown:A,"aria-label":e.label,disabled:t,id:c,overrides:{Input:{style:{fontWeight:i.fontWeights.normal,lineHeight:i.lineHeights.inputWidget,height:d?F:R,maxHeight:d?j:"",minHeight:i.sizes.largestElementHeight,resize:H?"none":"vertical",paddingRight:i.spacing.md,paddingLeft:i.spacing.md,paddingBottom:i.spacing.md,paddingTop:i.spacing.md,"::placeholder":{color:i.colors.fadedText60}}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:i.sizes.borderWidth,borderRightWidth:i.sizes.borderWidth,borderTopWidth:i.sizes.borderWidth,borderBottomWidth:i.sizes.borderWidth,flexGrow:1}}}}),P&&s.jsx(Z,{dirty:o,value:n??"",maxLength:e.maxChars,type:"multiline",inForm:S({formId:p}),allowEnterToSubmit:M})]})},be=a.memo(se);export{be as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bF as f,bG as u,bH as a,Z as c}from"./index-
|
|
1
|
+
import{bF as f,bG as u,bH as a,Z as c}from"./index-Bs9zibyE.js";function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function l(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function y(t,e){if(e&&(a(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(t)}function s(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}export{i as a,s as b,l,b as p,y};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{aY as m,r as f,bP as z,bU as S,bS as p}from"./index-
|
|
1
|
+
import{aY as m,r as f,bP as z,bU as S,bS as p}from"./index-Bs9zibyE.js";import{s as H,u as P,e as Y,t as Z}from"./base-input-CrN3cmkk-CZot_VyG.js";function O(t){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(t)}var G=["Root","StartEnhancer","EndEnhancer"],J=["startEnhancer","endEnhancer","overrides"];function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function v(t,e){return V(t)||Q(t,e)||M(t,e)||K()}function K(){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 M(t,e){if(t){if(typeof t=="string")return F(t,e);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,e)}}function F(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Q(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],o=!0,u=!1,a,i;try{for(n=n.call(t);!(o=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));o=!0);}catch(d){u=!0,i=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(u)throw i}}return r}}function V(t){if(Array.isArray(t))return t}function A(t,e){if(t==null)return{};var n=W(t,e),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(o=0;o<u.length;o++)r=u[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function W(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,u;for(u=0;u<r.length;u++)o=r[u],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function X(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tt(t,e,n){return e&&L(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function et(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},g(t,e)}function rt(t){var e=ot();return function(){var n=h(t),r;if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return nt(this,r)}}function nt(t,e){if(e&&(O(e)==="object"||typeof e=="function"))return e;if(e!==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 ot(){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 h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(t)}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ut=(function(t){et(n,t);var e=rt(n);function n(){var r;X(this,n);for(var o=arguments.length,u=new Array(o),a=0;a<o;a++)u[a]=arguments[a];return r=e.call.apply(e,[this].concat(u)),b(y(r),"state",{isFocused:r.props.autoFocus||!1}),b(y(r),"onFocus",function(i){r.setState({isFocused:!0}),r.props.onFocus(i)}),b(y(r),"onBlur",function(i){r.setState({isFocused:!1}),r.props.onBlur(i)}),r}return tt(n,[{key:"render",value:function(){var r=this.props,o=r.startEnhancer,u=r.endEnhancer,a=r.overrides,i=a.Root,d=a.StartEnhancer,R=a.EndEnhancer,_=A(a,G),x=A(r,J),B=m(i,H),E=v(B,2),$=E[0],T=E[1],C=m(d,P),j=v(C,2),N=j[0],k=j[1],D=m(R,P),w=v(D,2),U=w[0],q=w[1],l=Y(this.props,this.state);return f.createElement($,c({"data-baseweb":"input"},l,T,{$adjoined:I(o,u),$hasIconTrailing:this.props.clearable||this.props.type=="password"}),s(o)&&f.createElement(N,c({},l,k,{$position:S.start}),typeof o=="function"?o(l):o),f.createElement(Z,c({},x,{overrides:_,adjoined:I(o,u),onFocus:this.onFocus,onBlur:this.onBlur})),s(u)&&f.createElement(U,c({},l,q,{$position:S.end}),typeof u=="function"?u(l):u))}}]),n})(f.Component);b(ut,"defaultProps",{autoComplete:"on",autoFocus:!1,disabled:!1,name:"",onBlur:function(){},onFocus:function(){},overrides:{},required:!1,size:z.default,startEnhancer:null,endEnhancer:null,clearable:!1,type:"text",readOnly:!1});function I(t,e){return s(t)&&s(e)?p.both:s(t)?p.left:s(e)?p.right:p.none}function s(t){return!!(t||t===0)}export{ut as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,e as p}from"./es6--XPcqeHG-
|
|
1
|
+
import{c as u,e as p}from"./es6--XPcqeHG-DCoiAwz4.js";import"./index-Bs9zibyE.js";const{File:r,Blob:y,DOMException:s}=u,{INVALID:_,GONE:n,MISMATCH:w,MOD_ERR:z,SYNTAX:l,SECURITY:I,DISALLOWED:m}=p;class b{constructor(e,i){this.fileHandle=e,this.file=i,this.size=i.size,this.position=0}write(e){let i=this.file;if(typeof e=="object"){if(e.type==="write"){if(Number.isInteger(e.position)&&e.position>=0&&(this.position=e.position,this.size<e.position&&(this.file=new r([this.file,new ArrayBuffer(e.position-this.size)],this.file.name,this.file))),!("data"in e))throw new s(...l("write requires a data argument"));e=e.data}else if(e.type==="seek")if(Number.isInteger(e.position)&&e.position>=0){if(this.size<e.position)throw new s(..._);this.position=e.position;return}else throw new s(...l("seek requires a position argument"));else if(e.type==="truncate")if(Number.isInteger(e.size)&&e.size>=0){i=e.size<this.size?new r([i.slice(0,e.size)],i.name,i):new r([i,new Uint8Array(e.size-this.size)],i.name),this.size=i.size,this.position>i.size&&(this.position=i.size),this.file=i;return}else throw new s(...l("truncate requires a size argument"))}e=new y([e]);let t=this.file;const o=t.slice(0,this.position),d=t.slice(this.position+e.size);let h=this.position-o.size;h<0&&(h=0),t=new r([o,new Uint8Array(h),e,d],t.name),this.size=t.size,this.position+=e.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 a{constructor(e="",i=new r([],e),t=!0){this._file=i,this.name=e,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(e){if(!this.writable)throw new s(...m);if(this._deleted)throw new s(...n);const i=e.keepExistingData?await this.getFile():new r([],this.name);return new b(this,i)}async isSameEntry(e){return this===e}async _destroy(){this._deleted=!0,this._file=null}}class f{constructor(e,i=!0){this.name=e,this.kind="directory",this._deleted=!1,this._entries={},this.writable=i,this.readable=!0}async*entries(){if(this._deleted)throw new s(...n);yield*Object.entries(this._entries)}async isSameEntry(e){return this===e}async getDirectoryHandle(e,i){if(this._deleted)throw new s(...n);const t=this._entries[e];if(t){if(t instanceof a)throw new s(...w);return t}else{if(i.create)return this._entries[e]=new f(e);throw new s(...n)}}async getFileHandle(e,i){const t=this._entries[e],o=t instanceof a;if(t&&o)return t;if(t&&!o)throw new s(...w);if(!t&&!i.create)throw new s(...n);if(!t&&i.create)return this._entries[e]=new a(e)}async removeEntry(e,i){const t=this._entries[e];if(!t)throw new s(...n);await t._destroy(i.recursive),delete this._entries[e]}async _destroy(e){for(let i of Object.values(this._entries)){if(!e)throw new s(...z);await i._destroy(e)}this._entries={},this._deleted=!0}}const g=new f(""),A=()=>g;export{a as FileHandle,f as FolderHandle,b as Sink,A as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as I,aC as Y}from"./index-D3uELfdo.js";import{a as Ie}from"./index-GLEJ4uEg-Df22L041.js";import"./withFullScreenWrapper-WW0e_nhm-CAjrnrPK.js";import"./Toolbar-Ba82LOXi-C-TMlOex.js";import"./FormClearHelper-Dgu5Halt-BxICjxpW.js";import"./sprintf-D5E86llw-6tzWM3a-.js";import"./checkbox-i_07yegq-B7N8fYE1.js";import"./createDownloadLinkElement-CbRjLJ8e-NbV49OP9.js";import"./slicedToArray-DCtO1hP1-DNgLFFIn.js";import"./inherits-Rx5YJbse-DVYurFFp.js";import"./createSuper-Bj1hzAgo-DTBN9Cdm.js";import"./FileDownload.esm-BP6Yw6Mo-BauI2spi.js";const je=Ie("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function he(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 re;(function(e){e.event="event",e.props="prop"})(re||(re={}));function H(){}function Be(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 ae(e){return!!(e||"").match(/\d/)}function X(e){return e==null}function Fe(e){return typeof e=="number"&&isNaN(e)}function Se(e){return X(e)||Fe(e)||typeof e=="number"&&!isFinite(e)}function be(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Me(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 ke(e,t,r){var n=Me(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 We(e){var t=I.useRef(e);t.current=e;var r=I.useRef(function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t.current.apply(t,n)});return r.current}function fe(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 Ke(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 ye(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 Ve(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 me(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,a=fe(e),u=a.beforeDecimal,l=a.afterDecimal,g=a.hasNegation,h=parseFloat("0."+(l||"0")),S=l.length<=t?"0."+l:h.toFixed(t),p=S.split("."),v=u;u&&Number(p[0])&&(v=u.split("").reverse().reduce(function(O,E,m){return O.length>m?(Number(O[0])+Number(E)).toString()+O.substring(1,O.length):E+O},p[0]));var V=ye(p[1]||"",t,r),b=g?"-":"",c=n?".":"";return""+b+v+c+V}function $(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 we=Be(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}}}),Le=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function Pe(e,t,r){return Math.min(Math.max(e,t),r)}function ce(e){return Math.max(e.selectionStart,e.selectionEnd)}function Ue(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function _e(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function qe(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,a=e.formattedValueIndex;return t[n]===r[a]}function Ge(e,t,r,n,a,u,l){l===void 0&&(l=qe);var g=a.findIndex(function(K){return K}),h=e.slice(0,g);!t&&!r.startsWith(h)&&(t=h,r=h+r,n=n+h.length);for(var S=r.length,p=e.length,v={},V=new Array(S),b=0;b<S;b++){V[b]=-1;for(var c=0,O=p;c<O;c++){var E=l({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:b,formattedValueIndex:c});if(E&&v[c]!==!0){V[b]=c,v[c]=!0;break}}}for(var m=n;m<S&&(V[m]===-1||!u(r[m]));)m++;var j=m===S||V[m]===-1?p:V[m];for(m=n-1;m>0&&V[m]===-1;)m--;var B=m===-1||V[m]===-1?0:V[m]+1;return B>j?j:n-B<j-n?B:j}function ge(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 He(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(ae(e[r])||ae(e[r-1]));return t}function xe(e,t,r,n,a,u){u===void 0&&(u=H);var l=We(function(c,O){var E,m;return Se(c)?(m="",E=""):typeof c=="number"||O?(m=typeof c=="number"?Ve(c):c,E=n(m)):(m=a(c,void 0),E=n(m)),{formattedValue:E,numAsString:m}}),g=I.useState(function(){return l(X(e)?t:e,r)}),h=g[0],S=g[1],p=function(c,O){c.formattedValue!==h.formattedValue&&S({formattedValue:c.formattedValue,numAsString:c.value}),u(c,O)},v=e,V=r;X(e)&&(v=h.numAsString,V=!0);var b=l(v,V);return I.useMemo(function(){S(b)},[b.formattedValue]),[h,p]}function Ze(e){return e.replace(/[^0-9]/g,"")}function Je(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=Je);var g=e.removeFormatting;g===void 0&&(g=Ze);var h=e.defaultValue,S=e.valueIsNumericString,p=e.onValueChange,v=e.isAllowed,V=e.onChange;V===void 0&&(V=H);var b=e.onKeyDown;b===void 0&&(b=H);var c=e.onMouseUp;c===void 0&&(c=H);var O=e.onFocus;O===void 0&&(O=H);var E=e.onBlur;E===void 0&&(E=H);var m=e.value,j=e.getCaretBoundary;j===void 0&&(j=He);var B=e.isValidInputCharacter;B===void 0&&(B=ae);var K=e.isCharacterSame,M=he(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),Z=xe(m,h,!!S,l,g,p),L=Z[0],w=L.formattedValue,k=L.numAsString,J=Z[1],W=I.useRef(),U=I.useRef({formattedValue:w,numAsString:k}),_=function(o,i){U.current={formattedValue:o.formattedValue,numAsString:o.value},J(o,i)},z=I.useState(!1),ee=z[0],d=z[1],s=I.useRef(null),x=I.useRef({setCaretTimeout:null,focusTimeout:null});I.useEffect(function(){return d(!0),function(){clearTimeout(x.current.setCaretTimeout),clearTimeout(x.current.focusTimeout)}},[]);var C=l,A=function(o,i){var f=parseFloat(i);return{formattedValue:o,value:i,floatValue:isNaN(f)?void 0:f}},T=function(o,i,f){o.selectionStart===0&&o.selectionEnd===o.value.length||($(o,i),x.current.setCaretTimeout=setTimeout(function(){o.value===f&&o.selectionStart!==i&&$(o,i)},0))},R=function(o,i,f){return ge(o,i,j(o),f)},Q=function(o,i,f){var D=j(i),F=Ge(i,w,o,f,D,B,K);return F=ge(i,F,D),F},oe=function(o){var i=o.formattedValue;i===void 0&&(i="");var f=o.input,D=o.source,F=o.event,N=o.numAsString,y;if(f){var P=o.inputValue||f.value,q=ce(f);f.value=i,y=Q(P,i,q),y!==void 0&&T(f,y,i)}i!==w&&_(A(i,N),{event:F,source:D})};I.useEffect(function(){var o=U.current,i=o.formattedValue,f=o.numAsString;(w!==i||k!==f)&&_(A(w,k),{event:void 0,source:re.props})},[w,k]);var te=s.current?ce(s.current):void 0,ne=typeof window<"u"?I.useLayoutEffect:I.useEffect;ne(function(){var o=s.current;if(w!==U.current.formattedValue&&o){var i=Q(U.current.formattedValue,w,te);o.value=w,T(o,i,w)}},[w]);var ie=function(o,i,f){var D=i.target,F=W.current?Le(W.current,D.selectionEnd):we(w,o),N=Object.assign(Object.assign({},F),{lastValue:w}),y=g(o,N),P=C(y);if(y=g(P,void 0),v&&!v(A(P,y))){var q=i.target,G=ce(q),se=Q(o,w,G);return q.value=w,T(q,se,w),!1}return oe({formattedValue:P,numAsString:y,inputValue:o,event:i,source:f,input:i.target}),!0},le=function(o,i){i===void 0&&(i=0);var f=o.selectionStart,D=o.selectionEnd;W.current={selectionStart:f,selectionEnd:D+i}},Ne=function(o){var i=o.target,f=i.value,D=ie(f,o,re.event);D&&V(o),W.current=void 0},Oe=function(o){var i=o.target,f=o.key,D=i.selectionStart,F=i.selectionEnd,N=i.value;N===void 0&&(N="");var y;f==="ArrowLeft"||f==="Backspace"?y=Math.max(D-1,0):f==="ArrowRight"?y=Math.min(D+1,N.length):f==="Delete"&&(y=D);var P=0;f==="Delete"&&D===F&&(P=1);var q=f==="ArrowLeft"||f==="ArrowRight";if(y===void 0||D!==F&&!q){b(o),le(i,P);return}var G=y;if(q){var se=f==="ArrowLeft"?"left":"right";G=R(N,y,se),G!==y&&o.preventDefault()}else f==="Delete"&&!B(N[y])?G=R(N,y,"right"):f==="Backspace"&&!B(N[y])&&(G=R(N,y,"left"));G!==y&&T(i,G,N),b(o),le(i,P)},Ee=function(o){var i=o.target,f=function(){var D=i.selectionStart,F=i.selectionEnd,N=i.value;if(N===void 0&&(N=""),D===F){var y=R(N,D);y!==D&&T(i,y,N)}};f(),requestAnimationFrame(function(){f()}),c(o),le(i)},Te=function(o){o.persist&&o.persist();var i=o.target,f=o.currentTarget;s.current=i,x.current.focusTimeout=setTimeout(function(){var D=i.selectionStart,F=i.selectionEnd,N=i.value;N===void 0&&(N="");var y=R(N,D);y!==D&&!(D===0&&F===N.length)&&T(i,y,N),O(Object.assign(Object.assign({},o),{currentTarget:f}))},0)},Ce=function(o){s.current=null,clearTimeout(x.current.focusTimeout),clearTimeout(x.current.setCaretTimeout),E(o)},Ae=ee&&Ue()?"numeric":void 0,ve=Object.assign({inputMode:Ae},M,{type:t,value:w,onChange:Ne,onKeyDown:Oe,onMouseUp:Ee,onFocus:Te,onBlur:Ce});if(r==="text")return a?Y.createElement(Y.Fragment,null,a(w,M)||null):Y.createElement("span",Object.assign({},M,{ref:u}),w);if(n){var Re=n;return Y.createElement(Re,Object.assign({},ve,{ref:u}))}return Y.createElement("input",Object.assign({},ve,{ref:u}))}function pe(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 h=ue(t),S=h.thousandSeparator,p=h.decimalSeparator,v=r!==0&&e.indexOf(".")!==-1||r&&n,V=fe(e,l),b=V.beforeDecimal,c=V.afterDecimal,O=V.addNegation;return r!==void 0&&(c=ye(c,r,!!n)),S&&(b=ke(b,S,g)),a&&(b=a+b),u&&(c=c+u),O&&(b="-"+b),e=b+(v&&p||"")+c,e}function ue(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 Qe(e,t){return new RegExp("(^-)|[0-9]|"+be(e),"g")}function Ye(e,t,r){return e===""?!0:!t?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function Xe(e,t,r){var n;t===void 0&&(t=_e(e));var a=r.allowNegative,u=r.prefix;u===void 0&&(u="");var l=r.suffix;l===void 0&&(l="");var g=r.decimalScale,h=t.from,S=t.to,p=S.start,v=S.end,V=ue(r),b=V.allowedDecimalSeparators,c=V.decimalSeparator,O=e[v]===c;if(ae(e)&&(e===u||e===l)&&t.lastValue==="")return e;if(v-p===1&&b.indexOf(e[p])!==-1){var E=g===0?"":c;e=e.substring(0,p)+E+e.substring(p+1,e.length)}var m=function(s,x,C){var A=!1,T=!1;u.startsWith("-")?A=!1:s.startsWith("--")?(A=!1,T=!0):l.startsWith("-")&&s.length===l.length?A=!1:s[0]==="-"&&(A=!0);var R=A?1:0;return T&&(R=2),R&&(s=s.substring(R),x-=R,C-=R),{value:s,start:x,end:C,hasNegation:A}},j=m(e,p,v),B=j.hasNegation;n=j,e=n.value,p=n.start,v=n.end;var K=m(t.lastValue,h.start,h.end),M=K.start,Z=K.end,L=K.value,w=e.substring(p,v);e.length&&L.length&&(M>L.length-l.length||Z<u.length)&&!(w&&l.startsWith(w))&&(e=L);var k=0;e.startsWith(u)?k+=u.length:p<u.length&&(k=p),e=e.substring(k),v-=k;var J=e.length,W=e.length-l.length;e.endsWith(l)?J=W:(v>W||v>e.length-l.length)&&(J=v),e=e.substring(0,J),e=ze(B?"-"+e:e,a),e=(e.match(Qe(c))||[]).join("");var U=e.indexOf(c);e=e.replace(new RegExp(be(c),"g"),function(s,x){return x===U?".":""});var _=fe(e,a),z=_.beforeDecimal,ee=_.afterDecimal,d=_.addNegation;return S.end-S.start<h.end-h.start&&z===""&&O&&!parseFloat(ee)&&(e=d?"-":""),e}function et(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 tt(e){var t=ue(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 I,aC as Y}from"./index-Bs9zibyE.js";import{h as Ie}from"./index-CNntS3OC-D1QLB5uC.js";import"./withFullScreenWrapper-66pmUMIV-CT4beZ0m.js";import"./Toolbar-DmNTasId-CQXwCpBc.js";import"./FormClearHelper-FCPJEFCb-8WTdS9Fc.js";import"./sprintf-D5E86llw-6tzWM3a-.js";import"./checkbox-gyt_OEZr-DUZ4Njwr.js";import"./createDownloadLinkElement-CbRjLJ8e-NbV49OP9.js";import"./slicedToArray-Bh3FRcm_-BQG060Uv.js";import"./inherits-CHhCwN_k-BN2PGj6j.js";import"./createSuper-XjH7KYVR-huv_3l0M.js";import"./FileDownload.esm-CK4kq1fm-rUa3b6xk.js";const je=Ie("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function he(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 re;(function(e){e.event="event",e.props="prop"})(re||(re={}));function H(){}function Be(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 ae(e){return!!(e||"").match(/\d/)}function X(e){return e==null}function Fe(e){return typeof e=="number"&&isNaN(e)}function Se(e){return X(e)||Fe(e)||typeof e=="number"&&!isFinite(e)}function be(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Me(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 ke(e,t,r){var n=Me(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 We(e){var t=I.useRef(e);t.current=e;var r=I.useRef(function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t.current.apply(t,n)});return r.current}function fe(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 Ke(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 ye(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 Ve(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 me(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,a=fe(e),u=a.beforeDecimal,l=a.afterDecimal,g=a.hasNegation,h=parseFloat("0."+(l||"0")),S=l.length<=t?"0."+l:h.toFixed(t),p=S.split("."),v=u;u&&Number(p[0])&&(v=u.split("").reverse().reduce(function(O,E,m){return O.length>m?(Number(O[0])+Number(E)).toString()+O.substring(1,O.length):E+O},p[0]));var V=ye(p[1]||"",t,r),b=g?"-":"",c=n?".":"";return""+b+v+c+V}function $(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 we=Be(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}}}),Le=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function Pe(e,t,r){return Math.min(Math.max(e,t),r)}function ce(e){return Math.max(e.selectionStart,e.selectionEnd)}function Ue(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function _e(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function qe(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,a=e.formattedValueIndex;return t[n]===r[a]}function Ge(e,t,r,n,a,u,l){l===void 0&&(l=qe);var g=a.findIndex(function(K){return K}),h=e.slice(0,g);!t&&!r.startsWith(h)&&(t=h,r=h+r,n=n+h.length);for(var S=r.length,p=e.length,v={},V=new Array(S),b=0;b<S;b++){V[b]=-1;for(var c=0,O=p;c<O;c++){var E=l({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:b,formattedValueIndex:c});if(E&&v[c]!==!0){V[b]=c,v[c]=!0;break}}}for(var m=n;m<S&&(V[m]===-1||!u(r[m]));)m++;var j=m===S||V[m]===-1?p:V[m];for(m=n-1;m>0&&V[m]===-1;)m--;var B=m===-1||V[m]===-1?0:V[m]+1;return B>j?j:n-B<j-n?B:j}function ge(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 He(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(ae(e[r])||ae(e[r-1]));return t}function xe(e,t,r,n,a,u){u===void 0&&(u=H);var l=We(function(c,O){var E,m;return Se(c)?(m="",E=""):typeof c=="number"||O?(m=typeof c=="number"?Ve(c):c,E=n(m)):(m=a(c,void 0),E=n(m)),{formattedValue:E,numAsString:m}}),g=I.useState(function(){return l(X(e)?t:e,r)}),h=g[0],S=g[1],p=function(c,O){c.formattedValue!==h.formattedValue&&S({formattedValue:c.formattedValue,numAsString:c.value}),u(c,O)},v=e,V=r;X(e)&&(v=h.numAsString,V=!0);var b=l(v,V);return I.useMemo(function(){S(b)},[b.formattedValue]),[h,p]}function Ze(e){return e.replace(/[^0-9]/g,"")}function Je(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=Je);var g=e.removeFormatting;g===void 0&&(g=Ze);var h=e.defaultValue,S=e.valueIsNumericString,p=e.onValueChange,v=e.isAllowed,V=e.onChange;V===void 0&&(V=H);var b=e.onKeyDown;b===void 0&&(b=H);var c=e.onMouseUp;c===void 0&&(c=H);var O=e.onFocus;O===void 0&&(O=H);var E=e.onBlur;E===void 0&&(E=H);var m=e.value,j=e.getCaretBoundary;j===void 0&&(j=He);var B=e.isValidInputCharacter;B===void 0&&(B=ae);var K=e.isCharacterSame,M=he(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),Z=xe(m,h,!!S,l,g,p),L=Z[0],w=L.formattedValue,k=L.numAsString,J=Z[1],W=I.useRef(),U=I.useRef({formattedValue:w,numAsString:k}),_=function(o,i){U.current={formattedValue:o.formattedValue,numAsString:o.value},J(o,i)},z=I.useState(!1),ee=z[0],d=z[1],s=I.useRef(null),x=I.useRef({setCaretTimeout:null,focusTimeout:null});I.useEffect(function(){return d(!0),function(){clearTimeout(x.current.setCaretTimeout),clearTimeout(x.current.focusTimeout)}},[]);var C=l,A=function(o,i){var f=parseFloat(i);return{formattedValue:o,value:i,floatValue:isNaN(f)?void 0:f}},T=function(o,i,f){o.selectionStart===0&&o.selectionEnd===o.value.length||($(o,i),x.current.setCaretTimeout=setTimeout(function(){o.value===f&&o.selectionStart!==i&&$(o,i)},0))},R=function(o,i,f){return ge(o,i,j(o),f)},Q=function(o,i,f){var D=j(i),F=Ge(i,w,o,f,D,B,K);return F=ge(i,F,D),F},oe=function(o){var i=o.formattedValue;i===void 0&&(i="");var f=o.input,D=o.source,F=o.event,N=o.numAsString,y;if(f){var P=o.inputValue||f.value,q=ce(f);f.value=i,y=Q(P,i,q),y!==void 0&&T(f,y,i)}i!==w&&_(A(i,N),{event:F,source:D})};I.useEffect(function(){var o=U.current,i=o.formattedValue,f=o.numAsString;(w!==i||k!==f)&&_(A(w,k),{event:void 0,source:re.props})},[w,k]);var te=s.current?ce(s.current):void 0,ne=typeof window<"u"?I.useLayoutEffect:I.useEffect;ne(function(){var o=s.current;if(w!==U.current.formattedValue&&o){var i=Q(U.current.formattedValue,w,te);o.value=w,T(o,i,w)}},[w]);var ie=function(o,i,f){var D=i.target,F=W.current?Le(W.current,D.selectionEnd):we(w,o),N=Object.assign(Object.assign({},F),{lastValue:w}),y=g(o,N),P=C(y);if(y=g(P,void 0),v&&!v(A(P,y))){var q=i.target,G=ce(q),se=Q(o,w,G);return q.value=w,T(q,se,w),!1}return oe({formattedValue:P,numAsString:y,inputValue:o,event:i,source:f,input:i.target}),!0},le=function(o,i){i===void 0&&(i=0);var f=o.selectionStart,D=o.selectionEnd;W.current={selectionStart:f,selectionEnd:D+i}},Ne=function(o){var i=o.target,f=i.value,D=ie(f,o,re.event);D&&V(o),W.current=void 0},Oe=function(o){var i=o.target,f=o.key,D=i.selectionStart,F=i.selectionEnd,N=i.value;N===void 0&&(N="");var y;f==="ArrowLeft"||f==="Backspace"?y=Math.max(D-1,0):f==="ArrowRight"?y=Math.min(D+1,N.length):f==="Delete"&&(y=D);var P=0;f==="Delete"&&D===F&&(P=1);var q=f==="ArrowLeft"||f==="ArrowRight";if(y===void 0||D!==F&&!q){b(o),le(i,P);return}var G=y;if(q){var se=f==="ArrowLeft"?"left":"right";G=R(N,y,se),G!==y&&o.preventDefault()}else f==="Delete"&&!B(N[y])?G=R(N,y,"right"):f==="Backspace"&&!B(N[y])&&(G=R(N,y,"left"));G!==y&&T(i,G,N),b(o),le(i,P)},Ee=function(o){var i=o.target,f=function(){var D=i.selectionStart,F=i.selectionEnd,N=i.value;if(N===void 0&&(N=""),D===F){var y=R(N,D);y!==D&&T(i,y,N)}};f(),requestAnimationFrame(function(){f()}),c(o),le(i)},Te=function(o){o.persist&&o.persist();var i=o.target,f=o.currentTarget;s.current=i,x.current.focusTimeout=setTimeout(function(){var D=i.selectionStart,F=i.selectionEnd,N=i.value;N===void 0&&(N="");var y=R(N,D);y!==D&&!(D===0&&F===N.length)&&T(i,y,N),O(Object.assign(Object.assign({},o),{currentTarget:f}))},0)},Ce=function(o){s.current=null,clearTimeout(x.current.focusTimeout),clearTimeout(x.current.setCaretTimeout),E(o)},Ae=ee&&Ue()?"numeric":void 0,ve=Object.assign({inputMode:Ae},M,{type:t,value:w,onChange:Ne,onKeyDown:Oe,onMouseUp:Ee,onFocus:Te,onBlur:Ce});if(r==="text")return a?Y.createElement(Y.Fragment,null,a(w,M)||null):Y.createElement("span",Object.assign({},M,{ref:u}),w);if(n){var Re=n;return Y.createElement(Re,Object.assign({},ve,{ref:u}))}return Y.createElement("input",Object.assign({},ve,{ref:u}))}function pe(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 h=ue(t),S=h.thousandSeparator,p=h.decimalSeparator,v=r!==0&&e.indexOf(".")!==-1||r&&n,V=fe(e,l),b=V.beforeDecimal,c=V.afterDecimal,O=V.addNegation;return r!==void 0&&(c=ye(c,r,!!n)),S&&(b=ke(b,S,g)),a&&(b=a+b),u&&(c=c+u),O&&(b="-"+b),e=b+(v&&p||"")+c,e}function ue(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 Qe(e,t){return new RegExp("(^-)|[0-9]|"+be(e),"g")}function Ye(e,t,r){return e===""?!0:!t?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function Xe(e,t,r){var n;t===void 0&&(t=_e(e));var a=r.allowNegative,u=r.prefix;u===void 0&&(u="");var l=r.suffix;l===void 0&&(l="");var g=r.decimalScale,h=t.from,S=t.to,p=S.start,v=S.end,V=ue(r),b=V.allowedDecimalSeparators,c=V.decimalSeparator,O=e[v]===c;if(ae(e)&&(e===u||e===l)&&t.lastValue==="")return e;if(v-p===1&&b.indexOf(e[p])!==-1){var E=g===0?"":c;e=e.substring(0,p)+E+e.substring(p+1,e.length)}var m=function(s,x,C){var A=!1,T=!1;u.startsWith("-")?A=!1:s.startsWith("--")?(A=!1,T=!0):l.startsWith("-")&&s.length===l.length?A=!1:s[0]==="-"&&(A=!0);var R=A?1:0;return T&&(R=2),R&&(s=s.substring(R),x-=R,C-=R),{value:s,start:x,end:C,hasNegation:A}},j=m(e,p,v),B=j.hasNegation;n=j,e=n.value,p=n.start,v=n.end;var K=m(t.lastValue,h.start,h.end),M=K.start,Z=K.end,L=K.value,w=e.substring(p,v);e.length&&L.length&&(M>L.length-l.length||Z<u.length)&&!(w&&l.startsWith(w))&&(e=L);var k=0;e.startsWith(u)?k+=u.length:p<u.length&&(k=p),e=e.substring(k),v-=k;var J=e.length,W=e.length-l.length;e.endsWith(l)?J=W:(v>W||v>e.length-l.length)&&(J=v),e=e.substring(0,J),e=ze(B?"-"+e:e,a),e=(e.match(Qe(c))||[]).join("");var U=e.indexOf(c);e=e.replace(new RegExp(be(c),"g"),function(s,x){return x===U?".":""});var _=fe(e,a),z=_.beforeDecimal,ee=_.afterDecimal,d=_.addNegation;return S.end-S.start<h.end-h.start&&z===""&&O&&!parseFloat(ee)&&(e=d?"-":""),e}function et(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 tt(e){var t=ue(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 w}from"./es6--XPcqeHG-
|
|
1
|
+
import{e as w}from"./es6--XPcqeHG-DCoiAwz4.js";import"./index-Bs9zibyE.js";const{DISALLOWED:h}=w;class a{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 l{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=s=>t(new a(r,this.file)),r.truncate(0)):t(new a(r,this.file))},i))}}class n{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 l(i,this.writable):new n(i,this.writable)]}getDirectoryHandle(e,t){return new Promise((i,r)=>{this.dir.getDirectory(e,t,s=>{i(new n(s))},r)})}getFileHandle(e,t){return new Promise((i,r)=>this.dir.getFile(e,t,s=>i(new l(s)),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,s)=>{i instanceof n?t.recursive?i.dir.removeRecursively(()=>r(),s):i.dir.remove(()=>r(),s):i.file&&i.file.remove(()=>r(),s)})}}const u=(o={})=>new Promise((e,t)=>window.webkitRequestFileSystem(o._persistent,0,i=>e(new n(i.root)),t));export{l as FileHandle,n as FolderHandle,u as default};
|
package/build/assets/{slicedToArray-DCtO1hP1-DNgLFFIn.js → slicedToArray-Bh3FRcm_-BQG060Uv.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as a,E as m,_ as p,a0 as y}from"./index-
|
|
1
|
+
import{r as a,E as m,_ as p,a0 as y}from"./index-Bs9zibyE.js";var d=a.forwardRef(function(r,e){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(m,p({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"}))});d.displayName="Close";function h(r){if(Array.isArray(r))return r}function b(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,u,c,o,l=[],n=!0,f=!1;try{if(c=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;n=!1}else for(;!(n=(i=c.call(t)).done)&&(l.push(i.value),l.length!==e);n=!0);}catch(s){f=!0,u=s}finally{try{if(!n&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(f)throw u}}return l}}function v(){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 E(r,e){return h(r)||b(r,e)||y(r,e)||v()}export{E as _,d as p};
|