hisonvue 1.1.21 → 1.1.23
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/LICENSE +21 -21
- package/README.md +260 -260
- package/dist/{HAccordion-Djhoj_2Q.mjs → HAccordion-BFl1mLFn.mjs} +2 -2
- package/dist/{HAccordion-a5UZil7t.js → HAccordion-D4VuY7dP.js} +1 -1
- package/dist/{HBaggie-CD26mD1p.js → HBaggie-B2-hUbeO.js} +1 -1
- package/dist/{HBaggie-YMHv54ny.mjs → HBaggie-Cu0cqy_0.mjs} +2 -2
- package/dist/{HBanner-DEcDBbAa.js → HBanner-Bbp_22he.js} +1 -1
- package/dist/{HBanner-Glkj36dA.mjs → HBanner-CJhgh8Av.mjs} +2 -2
- package/dist/{HButton-DlOQpSFM.mjs → HButton-BJy7qJxO.mjs} +2 -2
- package/dist/{HButton-zN47uq3g.js → HButton-CnI66WaY.js} +1 -1
- package/dist/{HCalendar-PxP8M1kE.js → HCalendar-Birc716P.js} +2 -2
- package/dist/{HCalendar-Cr2oVDTO.mjs → HCalendar-CkzhtP-a.mjs} +2 -2
- package/dist/{HCaption-BbrgZlbJ.mjs → HCaption-CvfOGjLH.mjs} +1 -1
- package/dist/{HCaption-DxOZcWcP.js → HCaption-o7zHNPFi.js} +1 -1
- package/dist/{HChart-BcslvuI8.mjs → HChart-9HpLcSAF.mjs} +1 -1
- package/dist/{HChart-D217Yxxq.js → HChart-CRNhurrL.js} +1 -1
- package/dist/HDrawer-C4C1soyr.js +1 -0
- package/dist/{HDrawer-DlMTX7M_.mjs → HDrawer-_GV5YZAt.mjs} +163 -163
- package/dist/{HDropdown-BhJOYbaN.js → HDropdown-CZOjJzGI.js} +1 -1
- package/dist/{HDropdown-CvV8k1qQ.mjs → HDropdown-rOSEF1le.mjs} +2 -2
- package/dist/{HFileset-C6dqnLa8.js → HFileset-BWdpsZxK.js} +1 -1
- package/dist/{HFileset-x00ZXjyE.mjs → HFileset-DEtMGoeG.mjs} +1 -1
- package/dist/{HGap-Do40sUXA.mjs → HGap-Bu7F233f.mjs} +1 -1
- package/dist/{HGap-BgzODoWp.js → HGap-DzddYH3m.js} +1 -1
- package/dist/{HGrid-Dp7v84g5.mjs → HGrid--_YRxc-I.mjs} +1 -1
- package/dist/{HGrid-CAU32_zq.js → HGrid-Bt_iy9Kt.js} +1 -1
- package/dist/{HImagebox-FYftlSK2.mjs → HImagebox-BOE4P4WI.mjs} +1 -1
- package/dist/{HImagebox-XTSKnoBD.js → HImagebox-BSjnoCEL.js} +1 -1
- package/dist/HInput-BPqc5Yki.js +1 -0
- package/dist/{HInput-CInEGmfe.mjs → HInput-WrTJ-7Za.mjs} +364 -451
- package/dist/HInputGroup-B9TLmdJA.mjs +320 -0
- package/dist/HInputGroup-CmYq67bE.js +1 -0
- package/dist/{HLabel-uSniKpDF.js → HLabel-BOD2RCZp.js} +1 -1
- package/dist/{HLabel-B4n5-mtx.mjs → HLabel-D5wM-IkN.mjs} +2 -2
- package/dist/{HLayout-BsPro3dN.mjs → HLayout-B5lrXA5M.mjs} +1 -1
- package/dist/{HLayout-wEq-lzHN.js → HLayout-ddBZkvt_.js} +1 -1
- package/dist/{HList-DcV0Ssb3.js → HList-CAsiBzwq.js} +1 -1
- package/dist/{HList-Dko7kLGO.mjs → HList-qvvMg1GY.mjs} +2 -2
- package/dist/{HModal-BkjH2wMJ.js → HModal-CK9wkc73.js} +1 -1
- package/dist/{HModal-D_vWZ5My.mjs → HModal-DxuxiUAp.mjs} +1 -1
- package/dist/{HNote-CbfXDxO2.mjs → HNote-8-eRuRxV.mjs} +2 -2
- package/dist/HNote-DAiqR0NK.js +1 -0
- package/dist/{HPagination-HDTloKdH.js → HPagination-D2EbHt09.js} +1 -1
- package/dist/{HPagination-Cq2OV1tY.mjs → HPagination-DSfxM1dp.mjs} +2 -2
- package/dist/{HParagraph-BUGeL78g.mjs → HParagraph-BwXjwyuQ.mjs} +1 -1
- package/dist/{HParagraph-Bg2lZxZR.js → HParagraph-CBsf7TXw.js} +1 -1
- package/dist/{HPopup-Lqxe1H-e.mjs → HPopup-CFt35psB.mjs} +1 -1
- package/dist/{HPopup-3KITyE24.js → HPopup-DF9ffRS8.js} +1 -1
- package/dist/{HSpinner-BqVl4t2n.js → HSpinner-CUBK5bDY.js} +1 -1
- package/dist/{HSpinner-VJJNUuXg.mjs → HSpinner-DYOnQbZ_.mjs} +1 -1
- package/dist/{HTable-6O4rYicc.mjs → HTable-CTqwvXER.mjs} +1 -1
- package/dist/{HTable-DzbCLDIn.js → HTable-Y-8ga-98.js} +1 -1
- package/dist/hisonvue.cjs.js +1 -1
- package/dist/hisonvue.css +1 -1
- package/dist/hisonvue.d.ts +97 -64
- package/dist/hisonvue.es.js +2 -2
- package/dist/{index-5k-aAQlJ.js → index-B6cKtmm6.js} +3 -3
- package/dist/{index-Cvhi7T4w.mjs → index-HfC1PNxb.mjs} +5 -7
- package/dist/{setButtonCssEvent-BScAn_gY.mjs → setButtonCssEvent-DKQg_9AF.mjs} +1 -1
- package/dist/{setButtonCssEvent-BI-R9EJt.js → setButtonCssEvent-fK8lE3Ve.js} +1 -1
- package/nuxt/module.mjs +40 -40
- package/nuxt/plugin.mjs +21 -21
- package/nuxt/warn-filter.mjs +41 -41
- package/package.json +56 -56
- package/dist/HDrawer-CtMgceI2.js +0 -1
- package/dist/HInput-DxhtO9q3.js +0 -1
- package/dist/HInputGroup-Cou5-12U.mjs +0 -281
- package/dist/HInputGroup-DrjZO_7J.js +0 -1
- package/dist/HNote-DQr6iUu0.js +0 -1
|
@@ -26,7 +26,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26
26
|
=>`.concat(JSON.stringify(p)));var S=new Date(x.y,x.M,1);return S.setDate(0),S.getDate()},getSysYear:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.yearFormat,x=new Date;return p.toLowerCase()==="yy"?x.getFullYear().toString().substring(2):x.getFullYear().toString()},getSysMonth:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.monthFormat,x=new Date().getMonth()+1;switch(p.toLowerCase()){case"mm":return x.toString().padStart(2,"0");case"mmmm":return ne.utils.getMonthName(x);case"mmm":return ne.utils.getMonthName(x,!1);default:return x.toString()}},getSysYearMonth:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.yearMonthFormat,x=new Date;return ne.utils.getDateWithFormat({y:x.getFullYear(),M:x.getMonth()+1,d:1},p)},getSysDay:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.dayFormat,x=new Date;return p.toLowerCase()==="dd"?x.getDate().toString().padStart(2,"0"):x.getDate().toString()},getSysDayOfWeek:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.dayOfWeekFormat,x=new Date;return ne.utils.getDayOfWeek({y:x.getFullYear(),M:x.getMonth()+1,d:x.getDate()},p)},getSysHour:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.hourFormat,x=new Date;return p.toLowerCase()==="hh"?x.getHours().toString().padStart(2,"0"):x.getHours().toString()},getSysHourMinute:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.hourMinuteFormat,x=new Date;return p.toLowerCase()==="hhmm"?x.getHours().toString().padStart(2,"0")+""+x.getMinutes().toString().padStart(2,"0"):x.getHours().toString().padStart(2,"0")+":"+x.getMinutes().toString().padStart(2,"0")},getSysMinute:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.minuteFormat,x=new Date;return p.toLowerCase()==="mm"?x.getMinutes().toString().padStart(2,"0"):x.getMinutes().toString()},getSysSecond:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.secondFormat,x=new Date;return p.toLowerCase()==="ss"?x.getSeconds().toString().padStart(2,"0"):x.getSeconds().toString()},getSysTime:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.timeFormat,x=new Date;return p.toLowerCase()==="hhmmss"?x.getHours().toString().padStart(2,"0")+x.getMinutes().toString().padStart(2,"0")+x.getSeconds().toString().padStart(2,"0"):x.getHours().toString().padStart(2,"0")+":"+x.getMinutes().toString().padStart(2,"0")+":"+x.getSeconds().toString().padStart(2,"0")},getSysDate:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.utils.datetimeFormat,x=new Date;return ne.utils.getDateWithFormat({y:x.getFullYear(),M:x.getMonth()+1,d:x.getDate(),h:x.getHours(),m:x.getMinutes(),s:x.getSeconds()},p)},getCeil:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;p=ne.utils.getToNumber(p),x=Math.trunc(ne.utils.getToNumber(x));var S=Math.pow(10,x);return Math.ceil(p*S)/S},getFloor:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;p=ne.utils.getToNumber(p),x=Math.trunc(ne.utils.getToNumber(x));var S=Math.pow(10,x);return Math.floor(p*S)/S},getRound:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;p=ne.utils.getToNumber(p),x=Math.trunc(ne.utils.getToNumber(x));var S=Math.pow(10,x);return Math.round(p*S)/S},getTrunc:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;p=ne.utils.getToNumber(p),x=Math.trunc(ne.utils.getToNumber(x));var S=Math.pow(10,x);return Math.trunc(p*S)/S},getByteLength:function(p){p=ne.utils.getToString(p);for(var x=0,S=0;S<p.length;S++){var N=p.charCodeAt(S);x+=N<=127?1:N<=2047?le.utils.LESSOREQ_0X7FF_BYTE:N<=65535?le.utils.LESSOREQ_0XFFFF_BYTE:le.utils.GREATER_0XFFFF_BYTE}return x},getCutByteLength:function(p,x){p=ne.utils.getToString(p),x=ne.utils.getToNumber(x);for(var S=0,N=p.length,O=0;O<p.length;O++){var T=p.charCodeAt(O);if((S+=T<=127?1:T<=2047?le.utils.LESSOREQ_0X7FF_BYTE:T<=65535?le.utils.LESSOREQ_0XFFFF_BYTE:le.utils.GREATER_0XFFFF_BYTE)>x){N=O;break}}return p.substring(0,N)},getStringLenForm:function(p,x){p=ne.utils.getToString(p),x=ne.utils.getToNumber(x);var S=p.length;if(S>=x)return p;for(var N=x-S,O=S-1,T=Math.floor(N/O),G=N%O,V="",Z=0;Z<O;Z++)V+=p[Z],V+=" ".repeat(T+(Z<G?1:0));return V+p[S-1]},getLpad:function(p,x,S){return p=ne.utils.getToString(p),x=ne.utils.getToString(x),S=ne.utils.getToNumber(S),p.length>=S?p.slice(-S):x.repeat((S-p.length)/x.length)+p},getRpad:function(p,x,S){return p=ne.utils.getToString(p),x=ne.utils.getToString(x),S=ne.utils.getToNumber(S),p.length>=S?p.substring(0,S):p+x.repeat((S-p.length)/x.length)},getTrim:function(p){return(p=ne.utils.getToString(p)).trim()},getReplaceAll:function(p,x){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return p=ne.utils.getToString(p),x=ne.utils.getToString(x),S=ne.utils.getToString(S),p.split(x).join(S)},getNumberFormat:function(p,x){p=ne.utils.getToNumber(p),x=ne.utils.getToString(x);var S=p;if(!ne.utils.isNumeric(p))throw new Error(`ER0021 Invalid number
|
|
27
27
|
=>`.concat(JSON.stringify(S)));var N=(x=x||le.utils.numberFormat).match(/^(.*?)([#0,.]+)(.*?)$/);if(!N)throw new Error(`ER0022 Invalid format
|
|
28
28
|
=>`.concat(JSON.stringify(x)));var O=N[1],T=N[2],G=N[3],V=T.split(".")[0],Z=T.split(".").length>1?T.split(".")[1]:"";G!=="%"&&G!==" %"||(p*=100);var oe,Y=ne.utils.getToString(p),se=Y[0]==="-",qe=(Y=se?Y.substring(1):Y).split(".")[0],_t=Y.split(".").length>1?Y.split(".")[1]:"";switch(_t=(_t=ne.utils.getToFloat("0."+_t).toLocaleString("en",{minimumFractionDigits:Z.lastIndexOf("0")+1,maximumFractionDigits:Z.length}))==="0"?"":_t.substring(1),V){case"#,###":oe=ne.utils.getToNumber(qe)===0?_t:(qe=ne.utils.getToFloat(qe).toLocaleString("en"))+_t;break;case"#,##0":oe=(qe=ne.utils.getToFloat(qe).toLocaleString("en"))+_t;break;case"#":oe=ne.utils.getToNumber(qe)===0?_t:qe+_t;break;case"0":oe=qe+_t;break;default:throw new Error(`ER0023 Invalid format
|
|
29
|
-
=>`.concat(JSON.stringify(x)))}return O+(oe=se?"-"+oe:oe)+G},getRemoveExceptNumbers:function(p){return(p=ne.utils.getToString(p)).replace(/[^0-9]/g,"")},getRemoveNumbers:function(p){return(p=ne.utils.getToString(p)).replace(/[0-9]/g,"")},getReverse:function(p){return(p=ne.utils.getToString(p)).split("").reverse().join("")},getToBoolean:function(p){return ne.utils.isNumeric(p)?Number(p)!=0:typeof p=="boolean"?p:typeof p=="string"&&["t","true","y","yes","check","c","checked","selected","참"].indexOf(p.toLowerCase())>=0},getToNumber:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ne.utils.getToFloat(p,x)},getToFloat:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ne.utils.isNumeric(p)?parseFloat(p):x},getToInteger:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ne.utils.isNumeric(p)?Math.trunc(parseInt(p,10)):Math.trunc(x)},getToString:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof p=="string"||(p=typeof p=="number"||typeof p=="boolean"||typeof p=="bigint"?String(p):rt(p)==="symbol"?p.description:x),p},nvl:function(p,x){return p??x},getFileExtension:function(p){var x=(p=ne.utils.getToString(p)).split(".").pop();return x===p?"":x||""},getFileName:function(p){var x=(p=ne.utils.getToString(p)).split("/").pop();if(!x)return"";var S=x.lastIndexOf(".");return S===-1?x:x.substring(0,S)},getDecodeBase64:function(p){return p=ne.utils.getToString(p),decodeURIComponent(Array.prototype.map.call(atob(p),function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))},getEncodeBase64:function(p){return p=ne.utils.getToString(p),btoa(encodeURIComponent(p).replace(/%([0-9A-F]{2})/g,function(x,S){return String.fromCharCode(parseInt(S,16))}))},deepCopyObject:function(p,x){if(p===null||rt(p)!=="object")return p;if(p instanceof Response)return p.clone();if(p.constructor!==Object&&p.constructor!==Array)return p&&p.getIsDataWrapper&&p.getIsDataWrapper()||p&&p.getIsDataModel&&p.getIsDataModel()?p.clone():p;x||(x=[]);for(var S=0;S<x.length;S++)if(x[S].source===p)return x[S].copy;var N;if(Array.isArray(p)){N=[],x.push({source:p,copy:N});for(var O=0;O<p.length;O++)N[O]=ne.utils.deepCopyObject(p[O],x)}else for(var T in N={},x.push({source:p,copy:N}),p)p.hasOwnProperty(T)&&(N[T]=ne.utils.deepCopyObject(p[T],x));return N}}),Pe(this,"shield",{isHison:!0,execute:function(p){if(!p)throw new Error("Invalid argument: 'hison' is required.");if(!p.shield.isHison)throw new Error("Invalid argument: 'hison' must be an instance of Hison.");var x,S,N=function(O){return Object.getOwnPropertyNames(O).forEach(function(T){var G=O[T];je(G)=="object"&&G!==null&&N(G)}),Object.freeze(O)};if(le.shield.isFreeze&&N(p),location.href.indexOf("localhost")<0){if(le.shield.shieldURL&&location.href.indexOf(le.shield.shieldURL)<0)return;x=function(O){var T=O&&O.ip?O.ip:"";T&&le.shield.exposeIpList.indexOf(T)>=0||(le.shield.isPossibleGoBack||(history.pushState(null,document.title,location.href),window.addEventListener("popstate",function(){history.pushState(null,document.title,location.href)})),le.shield.isPossibleOpenDevTool||function(){var G="Developer mode is not available.";function V(Z){isNaN(+Z)&&(Z=100);var oe=+new Date;le.shield.doDetectDevTool();var Y=+new Date;(isNaN(oe)||isNaN(Y)||Y-oe>Z)&&(alert(G),document.write(G))}document.onkeydown=function(Z){if(Z.key==="F12")return alert(G),Z.preventDefault(),!1},window.addEventListener("load",V),window.addEventListener("resize",V),window.addEventListener("mousemove",V),window.addEventListener("focus",V),window.addEventListener("blur",V)}())},(S=new XMLHttpRequest).onreadystatechange=function(){if(S.readyState===XMLHttpRequest.DONE)if(S.status===200){var O=S.response;x(O)}else x(null)},S.open("get","/ajax/getIp"),S.responseType="json",S.send()}}}),Pe(this,"data",{DataWrapper:en,DataModel:rn}),Pe(this,"link",{CachingModule:k,ApiGet:xt,ApiPost:M,ApiPut:re,ApiPatch:b,ApiDelete:Se,ApiGetUrl:Rt,ApiPostUrl:g,ApiPutUrl:de,ApiPatchUrl:_,ApiDeleteUrl:ze})})),ht=function(){return{setDateFormat:function(d){le.utils.dateFormat=d},setTimeFormat:function(d){le.utils.timeFormat=d},setDatetimeFormat:function(d){le.utils.datetimeFormat=d},setYearFormat:function(d){le.utils.yearFormat=d},setMonthFormat:function(d){le.utils.monthFormat=d},setYearMonthFormat:function(d){le.utils.yearMonthFormat=d},setDayFormat:function(d){le.utils.dayFormat=d},setDayOfWeekFormat:function(d){le.utils.dayOfWeekFormat=d},setHourFormat:function(d){le.utils.hourFormat=d},setHourMinuteFormat:function(d){le.utils.hourMinuteFormat=d},setMinuteFormat:function(d){le.utils.minuteFormat=d},setSecondFormat:function(d){le.utils.secondFormat=d},setNumberFormat:function(d){le.utils.numberFormat=d},setCharByteLess2047:function(d){le.utils.LESSOREQ_0X7FF_BYTE=d},setCharByteLess65535:function(d){le.utils.LESSOREQ_0XFFFF_BYTE=d},setCharByteGreater65535:function(d){le.utils.GREATER_0XFFFF_BYTE=d},getDateFormat:function(){return le.utils.dateFormat},getTimeFormat:function(){return le.utils.timeFormat},getDatetimeFormat:function(){return le.utils.datetimeFormat},getYearFormat:function(){return le.utils.yearFormat},getMonthFormat:function(){return le.utils.monthFormat},getYearMonthFormat:function(){return le.utils.yearMonthFormat},getDayFormat:function(){return le.utils.dayFormat},getDayOfWeekFormat:function(){return le.utils.dayOfWeekFormat},getHourFormat:function(){return le.utils.hourFormat},getHourMinuteFormat:function(){return le.utils.hourMinuteFormat},getMinuteFormat:function(){return le.utils.minuteFormat},getSecondFormat:function(){return le.utils.secondFormat},getNumberFormat:function(){return le.utils.numberFormat},getCharByteLess2047:function(){return le.utils.LESSOREQ_0X7FF_BYTE},getCharByteLess65535:function(){return le.utils.LESSOREQ_0XFFFF_BYTE},getCharByteGreater65535:function(){return le.utils.GREATER_0XFFFF_BYTE},setShieldURL:function(d){le.shield.shieldURL=d},setExposeIpList:function(d){le.shield.exposeIpList=d},setIsFreeze:function(d){le.shield.isFreeze=d},setIsPossibleGoBack:function(d){le.shield.isPossibleGoBack=d},setIsPossibleOpenDevTool:function(d){le.shield.isPossibleOpenDevTool=d},setDoDetectDevTool:function(d){le.shield.doDetectDevTool=d},getShieldURL:function(){return le.shield.shieldURL},getExposeIpList:function(){return le.shield.exposeIpList},getIsFreeze:function(){return le.shield.isFreeze},getIsPossibleGoBack:function(){return le.shield.isPossibleGoBack},getIsPossibleOpenDevTool:function(){return le.shield.isPossibleOpenDevTool},setConvertValue:function(d){le.data.convertValue=d},setProtocol:function(d){le.link.protocol=d},setDomain:function(d){le.link.domain=d},setControllerPath:function(d){le.link.controllerPath=d},setTimeout:function(d){le.link.timeout=d},setWebSocketProtocol:function(d){le.link.webSocketProtocol=d},setWebSocketEndPoint:function(d){le.link.webSocketEndPoint=d},setCachingLimit:function(d){le.link.cachingLimit=d},getProtocol:function(){return le.link.protocol},getDomain:function(){return le.link.domain},getControllerPath:function(){return le.link.controllerPath},getTimeout:function(){return le.link.timeout},getWebSocketProtocol:function(){return le.link.webSocketProtocol},getWebSocketEndPoint:function(){return le.link.webSocketEndPoint},getCachingLimit:function(){return le.link.cachingLimit},setBeforeGetRequest:function(d){le.link.beforeGetRequest=d},setBeforePostRequest:function(d){le.link.beforePostRequest=d},setBeforePutRequest:function(d){le.link.beforePutRequest=d},setBeforePatchRequest:function(d){le.link.beforePatchRequest=d},setBeforeDeleteRequest:function(d){le.link.beforeDeleteRequest=d},setAfterGetRequest:function(d){le.link.afterGetRequest=d},setAfterPostRequest:function(d){le.link.afterPostRequest=d},setAfterPutRequest:function(d){le.link.afterPutRequest=d},setAfterPatchRequest:function(d){le.link.afterPatchRequest=d},setAfterDeleteRequest:function(d){le.link.afterDeleteRequest=d},setBeforeGetUrlRequest:function(d){le.link.beforeGetUrlRequest=d},setBeforePostUrlRequest:function(d){le.link.beforePostUrlRequest=d},setBeforePutUrlRequest:function(d){le.link.beforePutUrlRequest=d},setBeforePatchUrlRequest:function(d){le.link.beforePatchUrlRequest=d},setBeforeDeleteUrlRequest:function(d){le.link.beforeDeleteUrlRequest=d},setAfterGetUrlRequest:function(d){le.link.afterGetUrlRequest=d},setAfterPostUrlRequest:function(d){le.link.afterPostUrlRequest=d},setAfterPutUrlRequest:function(d){le.link.afterPutUrlRequest=d},setAfterPatchUrlRequest:function(d){le.link.afterPatchUrlRequest=d},setAfterDeleteUrlRequest:function(d){le.link.afterDeleteUrlRequest=d},setInterceptApiResult:function(d){le.link.interceptApiResult=d},setInterceptApiError:function(d){le.link.interceptApiError=d},utils:{isAlpha:function(d){return ne.utils.isAlpha(d)},isAlphaNumber:function(d){return ne.utils.isAlphaNumber(d)},isNumber:function(d){return ne.utils.isNumber(d)},isNumberSymbols:function(d){return ne.utils.isNumberSymbols(d)},isIncludeSymbols:function(d){return ne.utils.isIncludeSymbols(d)},isLowerAlpha:function(d){return ne.utils.isLowerAlpha(d)},isLowerAlphaAndNumber:function(d){return ne.utils.isLowerAlphaAndNumber(d)},isUpperAlpha:function(d){return ne.utils.isUpperAlpha(d)},isUpperAlphaNumber:function(d){return ne.utils.isUpperAlphaNumber(d)},isNumeric:function(d){return ne.utils.isNumeric(d)},isInteger:function(d){return ne.utils.isInteger(d)},isPositiveInteger:function(d){return ne.utils.isPositiveInteger(d)},isNegativeInteger:function(d){return ne.utils.isNegativeInteger(d)},isArray:function(d){return ne.utils.isArray(d)},isObject:function(d){return ne.utils.isObject(d)},isDate:function(d){return ne.utils.isDate(d)},isTime:function(d){return ne.utils.isTime(d)},isDatetime:function(d){return ne.utils.isDatetime(d)},isEmail:function(d){return ne.utils.isEmail(d)},isURL:function(d){return ne.utils.isURL(d)},isValidMask:function(d,p){return ne.utils.isValidMask(d,p)},getFormatDateDash:function(d){return ne.utils.getFormatDateDash(d)},getFormatDateCompact:function(d){return ne.utils.getFormatDateCompact(d)},getDateObject:function(d){return ne.utils.getDateObject(d)},getTimeObject:function(d){return ne.utils.getTimeObject(d)},getDatetimeObject:function(d){return ne.utils.getDatetimeObject(d)},getJSDateObject:function(d){return ne.utils.getJSDateObject(d)},addDate:function(d,p,x,S){return ne.utils.addDate(d,p,x,S)},getDateDiff:function(d,p,x){return ne.utils.getDateDiff(d,p,x)},getMonthName:function(d,p){return ne.utils.getMonthName(d,p)},getDateWithFormat:function(d,p){return ne.utils.getDateWithFormat(d,p)},getDayOfWeek:function(d,p){return ne.utils.getDayOfWeek(d,p)},getLastDay:function(d){return ne.utils.getLastDay(d)},getSysYear:function(d){return ne.utils.getSysYear(d)},getSysMonth:function(d){return ne.utils.getSysMonth(d)},getSysYearMonth:function(d){return ne.utils.getSysYearMonth(d)},getSysDay:function(d){return ne.utils.getSysDay(d)},getSysDayOfWeek:function(d){return ne.utils.getSysDayOfWeek(d)},getSysHour:function(d){return ne.utils.getSysHour(d)},getSysHourMinute:function(d){return ne.utils.getSysHourMinute(d)},getSysMinute:function(d){return ne.utils.getSysMinute(d)},getSysSecond:function(d){return ne.utils.getSysSecond(d)},getSysTime:function(d){return ne.utils.getSysTime(d)},getSysDate:function(d){return ne.utils.getSysDate(d)},getCeil:function(d,p){return ne.utils.getCeil(d,p)},getFloor:function(d,p){return ne.utils.getFloor(d,p)},getRound:function(d,p){return ne.utils.getRound(d,p)},getTrunc:function(d,p){return ne.utils.getTrunc(d,p)},getByteLength:function(d){return ne.utils.getByteLength(d)},getCutByteLength:function(d,p){return ne.utils.getCutByteLength(d,p)},getStringLenForm:function(d,p){return ne.utils.getStringLenForm(d,p)},getLpad:function(d,p,x){return ne.utils.getLpad(d,p,x)},getRpad:function(d,p,x){return ne.utils.getRpad(d,p,x)},getTrim:function(d){return ne.utils.getTrim(d)},getReplaceAll:function(d,p,x){return ne.utils.getReplaceAll(d,p,x)},getNumberFormat:function(d,p){return ne.utils.getNumberFormat(d,p)},getRemoveExceptNumbers:function(d){return ne.utils.getRemoveExceptNumbers(d)},getRemoveNumbers:function(d){return ne.utils.getRemoveNumbers(d)},getReverse:function(d){return ne.utils.getReverse(d)},getToBoolean:function(d){return ne.utils.getToBoolean(d)},getToNumber:function(d,p){return ne.utils.getToNumber(d,p)},getToFloat:function(d,p){return ne.utils.getToFloat(d,p)},getToInteger:function(d,p){return ne.utils.getToInteger(d,p)},getToString:function(d,p){return ne.utils.getToString(d,p)},nvl:function(d,p){return ne.utils.nvl(d,p)},getFileExtension:function(d){return ne.utils.getFileExtension(d)},getFileName:function(d){return ne.utils.getFileName(d)},getDecodeBase64:function(d){return ne.utils.getDecodeBase64(d)},getEncodeBase64:function(d){return ne.utils.getEncodeBase64(d)},deepCopyObject:function(d,p){return ne.utils.deepCopyObject(d,p)}},shield:{isHison:!0,execute:function(d){ne.shield.execute(d)}},data:ne.data,link:ne.link}};return ht(),o})())}(ui)),ui.exports}var nn=Xd();const Jd=(t,e)=>{e.dateFormat&&t.setDateFormat(e.dateFormat),e.timeFormat&&t.setTimeFormat(e.timeFormat),e.datetimeFormat&&t.setDatetimeFormat(e.datetimeFormat),e.yearFormat&&t.setYearFormat(e.yearFormat),e.monthFormat&&t.setMonthFormat(e.monthFormat),e.yearMonthFormat&&t.setYearMonthFormat(e.yearMonthFormat),e.dayFormat&&t.setDayFormat(e.dayFormat),e.dayOfWeekFormat&&t.setDayOfWeekFormat(e.dayOfWeekFormat),e.hourFormat&&t.setHourFormat(e.hourFormat),e.hourMinuteFormat&&t.setHourMinuteFormat(e.hourMinuteFormat),e.minuteFormat&&t.setMinuteFormat(e.minuteFormat),e.secondFormat&&t.setSecondFormat(e.secondFormat),e.numberFormat&&t.setNumberFormat(e.numberFormat),e.LESSOREQ_0X7FF_BYTE&&t.setCharByteLess2047(e.LESSOREQ_0X7FF_BYTE),e.LESSOREQ_0XFFFF_BYTE&&t.setCharByteLess65535(e.LESSOREQ_0XFFFF_BYTE),e.GREATER_0XFFFF_BYTE&&t.setCharByteGreater65535(e.GREATER_0XFFFF_BYTE),e.shieldURL&&t.setShieldURL(e.shieldURL),e.exposeIpList&&t.setExposeIpList(e.exposeIpList),e.isFreeze&&t.setIsFreeze(e.isFreeze),e.isPossibleGoBack&&t.setIsPossibleGoBack(e.isPossibleGoBack),e.isPossibleOpenDevTool&&t.setIsPossibleOpenDevTool(e.isPossibleOpenDevTool),e.doDetectDevTool&&t.setDoDetectDevTool(e.doDetectDevTool),e.convertValue&&t.setConvertValue(e.convertValue),e.protocol&&t.setProtocol(e.protocol),e.domain&&t.setDomain(e.domain),e.controllerPath&&t.setControllerPath(e.controllerPath),e.timeout&&t.setTimeout(e.timeout),e.webSocketProtocol&&t.setWebSocketProtocol(e.webSocketProtocol),e.webSocketEndPoint&&t.setWebSocketEndPoint(e.webSocketEndPoint),e.cachingLimit&&t.setCachingLimit(e.cachingLimit),e.beforeGetRequest&&t.setBeforeGetRequest(e.beforeGetRequest),e.beforePostRequest&&t.setBeforePostRequest(e.beforePostRequest),e.beforePutRequest&&t.setBeforePutRequest(e.beforePutRequest),e.beforePatchRequest&&t.setBeforePatchRequest(e.beforePatchRequest),e.beforeDeleteRequest&&t.setBeforeDeleteRequest(e.beforeDeleteRequest),e.afterGetRequest&&t.setAfterGetRequest(e.afterGetRequest),e.afterPostRequest&&t.setAfterPostRequest(e.afterPostRequest),e.afterPutRequest&&t.setAfterPutRequest(e.afterPutRequest),e.afterPatchRequest&&t.setAfterPatchRequest(e.afterPatchRequest),e.afterDeleteRequest&&t.setAfterDeleteRequest(e.afterDeleteRequest),e.beforeGetUrlRequest&&t.setBeforeGetUrlRequest(e.beforeGetUrlRequest),e.beforePostUrlRequest&&t.setBeforePostUrlRequest(e.beforePostUrlRequest),e.beforePutUrlRequest&&t.setBeforePutUrlRequest(e.beforePutUrlRequest),e.beforePatchUrlRequest&&t.setBeforePatchUrlRequest(e.beforePatchUrlRequest),e.beforeDeleteUrlRequest&&t.setBeforeDeleteUrlRequest(e.beforeDeleteUrlRequest),e.afterGetUrlRequest&&t.setAfterGetUrlRequest(e.afterGetUrlRequest),e.afterPostUrlRequest&&t.setAfterPostUrlRequest(e.afterPostUrlRequest),e.afterPutUrlRequest&&t.setAfterPutUrlRequest(e.afterPutUrlRequest),e.afterPatchUrlRequest&&t.setAfterPatchUrlRequest(e.afterPatchUrlRequest),e.afterDeleteUrlRequest&&t.setAfterDeleteUrlRequest(e.afterDeleteUrlRequest),e.interceptApiResult&&t.setInterceptApiResult(e.interceptApiResult),e.interceptApiError&&t.setInterceptApiError(e.interceptApiError)};var fi={exports:{}},Zd=fi.exports,Ml;function Qd(){return Ml||(Ml=1,function(t,e){(function(n,o){t.exports=o()})(typeof self<"u"?self:typeof So<"u"?So:Zd,()=>(()=>{var n={d:(v,w)=>{for(var A in w)n.o(w,A)&&!n.o(v,A)&&Object.defineProperty(v,A,{enumerable:!0,get:w[A]})},o:(v,w)=>Object.prototype.hasOwnProperty.call(v,w),r:v=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})}},o={};n.r(o),n.d(o,{Align:()=>r,BasicDataType:()=>L,ColorSet:()=>c,DateFormat:()=>m,MonthFormat:()=>C,RowStatus:()=>P,SelectionPolicy:()=>a,VerticalAlign:()=>i,getVanillagrid:()=>xt,getVanillagridConfig:()=>Rt});var r=function(v){return v.left="left",v.center="center",v.right="right",v}({}),i=function(v){return v.top="top",v.center="center",v.bottom="bottom",v}({}),a=function(v){return v.single="single",v.range="range",v.none="none",v}({}),c=function(v){return v.skyblue="skyblue",v.blue="blue",v.light_red="light-red",v.red="red",v.light_green="light-green",v.green="green",v.orange="orange",v.yellow="yellow",v.purple="purple",v.brown="brown",v.black="black",v}({}),m=function(v){return v["yyyy-mm-dd"]="yyyy-mm-dd",v["yyyy/mm/dd"]="yyyy/mm/dd",v["yyyy. mm. dd"]="yyyy. mm. dd",v.yyyymmdd="yyyymmdd",v["mm-dd-yyyy"]="mm-dd-yyyy",v["mm/dd/yyyy"]="mm/dd/yyyy",v["mm. dd. yyyy"]="mm. dd. yyyy",v.mmddyyyy="mmddyyyy",v["dd-mm-yyyy"]="dd-mm-yyyy",v["dd/mm/yyyy"]="dd/mm/yyyy",v["dd. mm. yyyy"]="dd. mm. yyyy",v.ddmmyyyy="ddmmyyyy",v}({}),C=function(v){return v.yyyymm="yyyymm",v["yyyy-mm"]="yyyy-mm",v["yyyy/mm"]="yyyy/mm",v["yyyy. mm"]="yyyy. mm",v.mmyyyy="mmyyyy",v["mm-yyyy"]="mm-yyyy",v["mm/yyyy"]="mm/yyyy",v["mm. yyyy"]="mm. yyyy",v}({}),L=function(v){return v.text="text",v.number="number",v.date="date",v.month="month",v.mask="mask",v.select="select",v.checkbox="checkbox",v.button="button",v.link="link",v.code="code",v}({}),P=function(v){return v.create="C",v.update="U",v.delete="D",v}({}),W=Object.freeze({text:"text",number:"number",date:"date",month:"month",mask:"mask",select:"select",checkbox:"checkbox",button:"button",link:"link",code:"code"}),K=Object.freeze({pixel:"px",percent:"%"}),X=Object.freeze({left:"left",center:"center",right:"right"}),ee=Object.freeze({top:"top",center:"center",bottom:"bottom"}),ie=Object.freeze({max:"$$MAX",min:"$$MIN",sum:"$$SUM",avg:"$$AVG"}),fe=Object.freeze({create:"C",update:"U",delete:"D"}),pe=Object.freeze({single:"single",range:"range",none:"none"});function Me(v,w){(w==null||w>v.length)&&(w=v.length);for(var A=0,M=Array(w);A<w;A++)M[A]=v[A];return M}function Ie(v){return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},Ie(v)}var ve=function(v){var w=Number(v);if(isNaN(w))throw new Error("The provided parameter is not a number.");return w},Ee=function(v){var w=Number(v);if(isNaN(w))throw new Error("The provided parameter is not a number.");if(!Number.isInteger(w))throw new Error("The provided number is not an integer.");return w},xe=function(v){var w=Number(v);if(isNaN(w))throw new Error("The provided parameter is not a number.");if(!Number.isInteger(w))throw new Error("The provided number is not an integer.");if(w<0)throw new Error("The provided number is not a positive integer.");return w},ke=function(v){if(v==null)return{number:0,unit:""};v=v.trim();var w=/^([+-]?\d*\.?\d+)([a-zA-Z%]+)$/;if(w.test(v)){var A=v.match(w);return{number:parseFloat(A[1]),unit:A[2]}}return/^[+-]?\d*\.?\d+$/.test(v)?{number:parseFloat(v),unit:""}:/^[a-zA-Z%]+$/.test(v)?{number:0,unit:v}:{number:0,unit:""}},Te=function(v){return v&&typeof v=="string"?v.toLowerCase():""},We=function(v,w){return Object.values(v).includes(w)},nt=function(v,w,A){var M=Number(v),g=Number(w),y=Number(A),B=new Date(M,g-1,y);return B.getFullYear()==M&&B.getMonth()+1==g&&B.getDate()==y},De=function(v,w,A){if(v==null)return null;for(var M=0,g=(v=String(v)).length,y=0;y<v.length;y++){var B=v.charCodeAt(y);if((M+=B<=127?1:B<=2047?A.lessoreq0x7ffByte:B<=65535?A.lessoreq0xffffByte:A.greater0xffffByte)>w){g=y;break}}return v.substring(0,g)},ot=function(v,w){if(v===null||Ie(v)!=="object"||v.constructor!==Object&&v.constructor!==Array)return v;w||(w=[]);for(var A=0;A<w.length;A++)if(w[A].source===v)return w[A].copy;var M;if(Array.isArray(v)){M=[],w.push({source:v,copy:M});for(var g=0;g<v.length;g++)M[g]=ot(v[g],w)}else for(var y in M={},w.push({source:v,copy:M}),v)v.hasOwnProperty(y)&&(M[y]=ot(v[y],w));return M},mt=function(v,w){if((w=Et(w))==null)throw new Error("Please enter the correct index.");if(w<0||w>=v.length)throw new Error("Index is out of range. Please enter the correct index.");return v[w]},Qe=function(v){for(;v.firstChild;)v.removeChild(v.firstChild)},ut=function(v){if(/^#[0-9a-fA-F]{6}$/.test(v))return v;var w=document.createElement("div");w.style.color=v,document.body.appendChild(w);var A=window.getComputedStyle(w).color;document.body.removeChild(w);var M=A.match(/\d+/g);return"#"+((1<<24)+(+M[0]<<16)+(+M[1]<<8)+ +M[2]).toString(16).slice(1)},Ye=function(v,w){v.startsWith("#")&&(v=v.slice(1));var A=parseInt(w,16);w.startsWith("-")&&(A=-parseInt(w.slice(1),16));var M=parseInt(v.slice(0,2),16),g=parseInt(v.slice(2,4),16),y=parseInt(v.slice(4,6),16);return M=parseInt(String(M+A)),g=parseInt(String(g+A)),y=parseInt(String(y+A)),"#"+(M<0?0:M>255?255:M).toString(16).padStart(2,"0")+(g<0?0:g>255?255:g).toString(16).padStart(2,"0")+(y<0?0:y>255?255:y).toString(16).padStart(2,"0")},Je=function(v){if(!v)return null;v.startsWith("#")&&(v=v.slice(1));var w=255-parseInt(v.slice(0,2),16),A=255-parseInt(v.slice(2,4),16),M=255-parseInt(v.slice(4,6),16);return A=A<127.5?A+16:A-16,M=M<127.5?M+16:M-16,"#"+((w=w<127.5?w+16:w-16)<0?0:w>255?255:w).toString(16).padStart(2,"0")+(A<0?0:A>255?255:A).toString(16).padStart(2,"0")+(M<0?0:M>255?255:M).toString(16).padStart(2,"0")},dt=function(v){var w="";if(!v||v.constructor!==Object||Object.keys(v).length===0)return w;for(var A=Object.entries(v),M=0;M<A.length;M++)A[M].length<2||(w+=A[M][0].trim()+":"+A[M][1].trim()+";");return w},Pt=function(v,w){var A=w.getAttribute(v);if(A==null||A==="")return null;var M=Number(A);return Number.isInteger(M)&&M>=0?M:null},Re=function(v,w){var A=w.getAttribute(v);if(A==null||A==="")return null;var M=Number(A);return isNaN(M)?null:M},ft=function(v,w){var A=w.getAttribute(v);return A==null||A===""?null:Te(A)==="true"},rn=function(v){var w=Number(v);return isNaN(w)?0:w},Et=function(v){var w=Number(v);return isNaN(w)?null:w},_e=function(v,w){return v==null||v===""?w:v},bt=function(v){var w,A=null,M=function(y,B){var H=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(!H){if(Array.isArray(y)||(H=function(ce,me){if(ce){if(typeof ce=="string")return Me(ce,me);var Q={}.toString.call(ce).slice(8,-1);return Q==="Object"&&ce.constructor&&(Q=ce.constructor.name),Q==="Map"||Q==="Set"?Array.from(ce):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?Me(ce,me):void 0}}(y))||B){H&&(y=H);var U=0,q=function(){};return{s:q,n:function(){return U>=y.length?{done:!0}:{done:!1,value:y[U++]}},e:function(ce){throw ce},f:q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
29
|
+
=>`.concat(JSON.stringify(x)))}return O+(oe=se?"-"+oe:oe)+G},getRemoveExceptNumbers:function(p){return(p=ne.utils.getToString(p)).replace(/[^0-9]/g,"")},getRemoveNumbers:function(p){return(p=ne.utils.getToString(p)).replace(/[0-9]/g,"")},getReverse:function(p){return(p=ne.utils.getToString(p)).split("").reverse().join("")},getToBoolean:function(p){return ne.utils.isNumeric(p)?Number(p)!=0:typeof p=="boolean"?p:typeof p=="string"&&["t","true","y","yes","check","c","checked","selected","참"].indexOf(p.toLowerCase())>=0},getToNumber:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ne.utils.getToFloat(p,x)},getToFloat:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ne.utils.isNumeric(p)?parseFloat(p):x},getToInteger:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ne.utils.isNumeric(p)?Math.trunc(parseInt(p,10)):Math.trunc(x)},getToString:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof p=="string"||(p=typeof p=="number"||typeof p=="boolean"||typeof p=="bigint"?String(p):rt(p)==="symbol"?p.description:x),p},nvl:function(p,x){return p??x},getFileExtension:function(p){var x=(p=ne.utils.getToString(p)).split(".").pop();return x===p?"":x||""},getFileName:function(p){var x=(p=ne.utils.getToString(p)).split("/").pop();if(!x)return"";var S=x.lastIndexOf(".");return S===-1?x:x.substring(0,S)},getDecodeBase64:function(p){return p=ne.utils.getToString(p),decodeURIComponent(Array.prototype.map.call(atob(p),function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))},getEncodeBase64:function(p){return p=ne.utils.getToString(p),btoa(encodeURIComponent(p).replace(/%([0-9A-F]{2})/g,function(x,S){return String.fromCharCode(parseInt(S,16))}))},deepCopyObject:function(p,x){if(p===null||rt(p)!=="object")return p;if(p instanceof Response)return p.clone();if(p.constructor!==Object&&p.constructor!==Array)return p&&p.getIsDataWrapper&&p.getIsDataWrapper()||p&&p.getIsDataModel&&p.getIsDataModel()?p.clone():p;x||(x=[]);for(var S=0;S<x.length;S++)if(x[S].source===p)return x[S].copy;var N;if(Array.isArray(p)){N=[],x.push({source:p,copy:N});for(var O=0;O<p.length;O++)N[O]=ne.utils.deepCopyObject(p[O],x)}else for(var T in N={},x.push({source:p,copy:N}),p)p.hasOwnProperty(T)&&(N[T]=ne.utils.deepCopyObject(p[T],x));return N}}),Pe(this,"shield",{isHison:!0,excute:function(p){if(!p)throw new Error("Invalid argument: 'hison' is required.");if(!p.shield.isHison)throw new Error("Invalid argument: 'hison' must be an instance of Hison.");var x,S,N=function(O){return Object.getOwnPropertyNames(O).forEach(function(T){var G=O[T];je(G)=="object"&&G!==null&&N(G)}),Object.freeze(O)};if(le.shield.isFreeze&&N(p),location.href.indexOf("localhost")<0){if(le.shield.shieldURL&&location.href.indexOf(le.shield.shieldURL)<0)return;x=function(O){var T=O&&O.ip?O.ip:"";T&&le.shield.exposeIpList.indexOf(T)>=0||(le.shield.isPossibleGoBack||(history.pushState(null,document.title,location.href),window.addEventListener("popstate",function(){history.pushState(null,document.title,location.href)})),le.shield.isPossibleOpenDevTool||function(){var G="Developer mode is not available.";function V(Z){isNaN(+Z)&&(Z=100);var oe=+new Date;le.shield.doDetectDevTool();var Y=+new Date;(isNaN(oe)||isNaN(Y)||Y-oe>Z)&&(alert(G),document.write(G))}document.onkeydown=function(Z){if(Z.key==="F12")return alert(G),Z.preventDefault(),!1},window.addEventListener("load",V),window.addEventListener("resize",V),window.addEventListener("mousemove",V),window.addEventListener("focus",V),window.addEventListener("blur",V)}())},(S=new XMLHttpRequest).onreadystatechange=function(){if(S.readyState===XMLHttpRequest.DONE)if(S.status===200){var O=S.response;x(O)}else x(null)},S.open("get","/ajax/getIp"),S.responseType="json",S.send()}}}),Pe(this,"data",{DataWrapper:en,DataModel:rn}),Pe(this,"link",{CachingModule:k,ApiGet:xt,ApiPost:M,ApiPut:re,ApiPatch:b,ApiDelete:Se,ApiGetUrl:Rt,ApiPostUrl:g,ApiPutUrl:de,ApiPatchUrl:_,ApiDeleteUrl:ze})})),ht=function(){return{setDateFormat:function(d){le.utils.dateFormat=d},setTimeFormat:function(d){le.utils.timeFormat=d},setDatetimeFormat:function(d){le.utils.datetimeFormat=d},setYearFormat:function(d){le.utils.yearFormat=d},setMonthFormat:function(d){le.utils.monthFormat=d},setYearMonthFormat:function(d){le.utils.yearMonthFormat=d},setDayFormat:function(d){le.utils.dayFormat=d},setDayOfWeekFormat:function(d){le.utils.dayOfWeekFormat=d},setHourFormat:function(d){le.utils.hourFormat=d},setHourMinuteFormat:function(d){le.utils.hourMinuteFormat=d},setMinuteFormat:function(d){le.utils.minuteFormat=d},setSecondFormat:function(d){le.utils.secondFormat=d},setNumberFormat:function(d){le.utils.numberFormat=d},setCharByteLess2047:function(d){le.utils.LESSOREQ_0X7FF_BYTE=d},setCharByteLess65535:function(d){le.utils.LESSOREQ_0XFFFF_BYTE=d},setCharByteGreater65535:function(d){le.utils.GREATER_0XFFFF_BYTE=d},getDateFormat:function(){return le.utils.dateFormat},getTimeFormat:function(){return le.utils.timeFormat},getDatetimeFormat:function(){return le.utils.datetimeFormat},getYearFormat:function(){return le.utils.yearFormat},getMonthFormat:function(){return le.utils.monthFormat},getYearMonthFormat:function(){return le.utils.yearMonthFormat},getDayFormat:function(){return le.utils.dayFormat},getDayOfWeekFormat:function(){return le.utils.dayOfWeekFormat},getHourFormat:function(){return le.utils.hourFormat},getHourMinuteFormat:function(){return le.utils.hourMinuteFormat},getMinuteFormat:function(){return le.utils.minuteFormat},getSecondFormat:function(){return le.utils.secondFormat},getNumberFormat:function(){return le.utils.numberFormat},getCharByteLess2047:function(){return le.utils.LESSOREQ_0X7FF_BYTE},getCharByteLess65535:function(){return le.utils.LESSOREQ_0XFFFF_BYTE},getCharByteGreater65535:function(){return le.utils.GREATER_0XFFFF_BYTE},setShieldURL:function(d){le.shield.shieldURL=d},setExposeIpList:function(d){le.shield.exposeIpList=d},setIsFreeze:function(d){le.shield.isFreeze=d},setIsPossibleGoBack:function(d){le.shield.isPossibleGoBack=d},setIsPossibleOpenDevTool:function(d){le.shield.isPossibleOpenDevTool=d},setDoDetectDevTool:function(d){le.shield.doDetectDevTool=d},getShieldURL:function(){return le.shield.shieldURL},getExposeIpList:function(){return le.shield.exposeIpList},getIsFreeze:function(){return le.shield.isFreeze},getIsPossibleGoBack:function(){return le.shield.isPossibleGoBack},getIsPossibleOpenDevTool:function(){return le.shield.isPossibleOpenDevTool},setConvertValue:function(d){le.data.convertValue=d},setProtocol:function(d){le.link.protocol=d},setDomain:function(d){le.link.domain=d},setControllerPath:function(d){le.link.controllerPath=d},setTimeout:function(d){le.link.timeout=d},setWebSocketProtocol:function(d){le.link.webSocketProtocol=d},setWebSocketEndPoint:function(d){le.link.webSocketEndPoint=d},setCachingLimit:function(d){le.link.cachingLimit=d},getProtocol:function(){return le.link.protocol},getDomain:function(){return le.link.domain},getControllerPath:function(){return le.link.controllerPath},getTimeout:function(){return le.link.timeout},getWebSocketProtocol:function(){return le.link.webSocketProtocol},getWebSocketEndPoint:function(){return le.link.webSocketEndPoint},getCachingLimit:function(){return le.link.cachingLimit},setBeforeGetRequest:function(d){le.link.beforeGetRequest=d},setBeforePostRequest:function(d){le.link.beforePostRequest=d},setBeforePutRequest:function(d){le.link.beforePutRequest=d},setBeforePatchRequest:function(d){le.link.beforePatchRequest=d},setBeforeDeleteRequest:function(d){le.link.beforeDeleteRequest=d},setAfterGetRequest:function(d){le.link.afterGetRequest=d},setAfterPostRequest:function(d){le.link.afterPostRequest=d},setAfterPutRequest:function(d){le.link.afterPutRequest=d},setAfterPatchRequest:function(d){le.link.afterPatchRequest=d},setAfterDeleteRequest:function(d){le.link.afterDeleteRequest=d},setBeforeGetUrlRequest:function(d){le.link.beforeGetUrlRequest=d},setBeforePostUrlRequest:function(d){le.link.beforePostUrlRequest=d},setBeforePutUrlRequest:function(d){le.link.beforePutUrlRequest=d},setBeforePatchUrlRequest:function(d){le.link.beforePatchUrlRequest=d},setBeforeDeleteUrlRequest:function(d){le.link.beforeDeleteUrlRequest=d},setAfterGetUrlRequest:function(d){le.link.afterGetUrlRequest=d},setAfterPostUrlRequest:function(d){le.link.afterPostUrlRequest=d},setAfterPutUrlRequest:function(d){le.link.afterPutUrlRequest=d},setAfterPatchUrlRequest:function(d){le.link.afterPatchUrlRequest=d},setAfterDeleteUrlRequest:function(d){le.link.afterDeleteUrlRequest=d},setInterceptApiResult:function(d){le.link.interceptApiResult=d},setInterceptApiError:function(d){le.link.interceptApiError=d},utils:{isAlpha:function(d){return ne.utils.isAlpha(d)},isAlphaNumber:function(d){return ne.utils.isAlphaNumber(d)},isNumber:function(d){return ne.utils.isNumber(d)},isNumberSymbols:function(d){return ne.utils.isNumberSymbols(d)},isIncludeSymbols:function(d){return ne.utils.isIncludeSymbols(d)},isLowerAlpha:function(d){return ne.utils.isLowerAlpha(d)},isLowerAlphaAndNumber:function(d){return ne.utils.isLowerAlphaAndNumber(d)},isUpperAlpha:function(d){return ne.utils.isUpperAlpha(d)},isUpperAlphaNumber:function(d){return ne.utils.isUpperAlphaNumber(d)},isNumeric:function(d){return ne.utils.isNumeric(d)},isInteger:function(d){return ne.utils.isInteger(d)},isPositiveInteger:function(d){return ne.utils.isPositiveInteger(d)},isNegativeInteger:function(d){return ne.utils.isNegativeInteger(d)},isArray:function(d){return ne.utils.isArray(d)},isObject:function(d){return ne.utils.isObject(d)},isDate:function(d){return ne.utils.isDate(d)},isTime:function(d){return ne.utils.isTime(d)},isDatetime:function(d){return ne.utils.isDatetime(d)},isEmail:function(d){return ne.utils.isEmail(d)},isURL:function(d){return ne.utils.isURL(d)},isValidMask:function(d,p){return ne.utils.isValidMask(d,p)},getFormatDateDash:function(d){return ne.utils.getFormatDateDash(d)},getFormatDateCompact:function(d){return ne.utils.getFormatDateCompact(d)},getDateObject:function(d){return ne.utils.getDateObject(d)},getTimeObject:function(d){return ne.utils.getTimeObject(d)},getDatetimeObject:function(d){return ne.utils.getDatetimeObject(d)},getJSDateObject:function(d){return ne.utils.getJSDateObject(d)},addDate:function(d,p,x,S){return ne.utils.addDate(d,p,x,S)},getDateDiff:function(d,p,x){return ne.utils.getDateDiff(d,p,x)},getMonthName:function(d,p){return ne.utils.getMonthName(d,p)},getDateWithFormat:function(d,p){return ne.utils.getDateWithFormat(d,p)},getDayOfWeek:function(d,p){return ne.utils.getDayOfWeek(d,p)},getLastDay:function(d){return ne.utils.getLastDay(d)},getSysYear:function(d){return ne.utils.getSysYear(d)},getSysMonth:function(d){return ne.utils.getSysMonth(d)},getSysYearMonth:function(d){return ne.utils.getSysYearMonth(d)},getSysDay:function(d){return ne.utils.getSysDay(d)},getSysDayOfWeek:function(d){return ne.utils.getSysDayOfWeek(d)},getSysHour:function(d){return ne.utils.getSysHour(d)},getSysHourMinute:function(d){return ne.utils.getSysHourMinute(d)},getSysMinute:function(d){return ne.utils.getSysMinute(d)},getSysSecond:function(d){return ne.utils.getSysSecond(d)},getSysTime:function(d){return ne.utils.getSysTime(d)},getSysDate:function(d){return ne.utils.getSysDate(d)},getCeil:function(d,p){return ne.utils.getCeil(d,p)},getFloor:function(d,p){return ne.utils.getFloor(d,p)},getRound:function(d,p){return ne.utils.getRound(d,p)},getTrunc:function(d,p){return ne.utils.getTrunc(d,p)},getByteLength:function(d){return ne.utils.getByteLength(d)},getCutByteLength:function(d,p){return ne.utils.getCutByteLength(d,p)},getStringLenForm:function(d,p){return ne.utils.getStringLenForm(d,p)},getLpad:function(d,p,x){return ne.utils.getLpad(d,p,x)},getRpad:function(d,p,x){return ne.utils.getRpad(d,p,x)},getTrim:function(d){return ne.utils.getTrim(d)},getReplaceAll:function(d,p,x){return ne.utils.getReplaceAll(d,p,x)},getNumberFormat:function(d,p){return ne.utils.getNumberFormat(d,p)},getRemoveExceptNumbers:function(d){return ne.utils.getRemoveExceptNumbers(d)},getRemoveNumbers:function(d){return ne.utils.getRemoveNumbers(d)},getReverse:function(d){return ne.utils.getReverse(d)},getToBoolean:function(d){return ne.utils.getToBoolean(d)},getToNumber:function(d,p){return ne.utils.getToNumber(d,p)},getToFloat:function(d,p){return ne.utils.getToFloat(d,p)},getToInteger:function(d,p){return ne.utils.getToInteger(d,p)},getToString:function(d,p){return ne.utils.getToString(d,p)},nvl:function(d,p){return ne.utils.nvl(d,p)},getFileExtension:function(d){return ne.utils.getFileExtension(d)},getFileName:function(d){return ne.utils.getFileName(d)},getDecodeBase64:function(d){return ne.utils.getDecodeBase64(d)},getEncodeBase64:function(d){return ne.utils.getEncodeBase64(d)},deepCopyObject:function(d,p){return ne.utils.deepCopyObject(d,p)}},shield:{isHison:!0,excute:function(d){ne.shield.excute(d)}},data:ne.data,link:ne.link}};return ht(),o})())}(ui)),ui.exports}var nn=Xd();const Jd=(t,e)=>{e.dateFormat&&t.setDateFormat(e.dateFormat),e.timeFormat&&t.setTimeFormat(e.timeFormat),e.datetimeFormat&&t.setDatetimeFormat(e.datetimeFormat),e.yearFormat&&t.setYearFormat(e.yearFormat),e.monthFormat&&t.setMonthFormat(e.monthFormat),e.yearMonthFormat&&t.setYearMonthFormat(e.yearMonthFormat),e.dayFormat&&t.setDayFormat(e.dayFormat),e.dayOfWeekFormat&&t.setDayOfWeekFormat(e.dayOfWeekFormat),e.hourFormat&&t.setHourFormat(e.hourFormat),e.hourMinuteFormat&&t.setHourMinuteFormat(e.hourMinuteFormat),e.minuteFormat&&t.setMinuteFormat(e.minuteFormat),e.secondFormat&&t.setSecondFormat(e.secondFormat),e.numberFormat&&t.setNumberFormat(e.numberFormat),e.LESSOREQ_0X7FF_BYTE&&t.setCharByteLess2047(e.LESSOREQ_0X7FF_BYTE),e.LESSOREQ_0XFFFF_BYTE&&t.setCharByteLess65535(e.LESSOREQ_0XFFFF_BYTE),e.GREATER_0XFFFF_BYTE&&t.setCharByteGreater65535(e.GREATER_0XFFFF_BYTE),e.shieldURL&&t.setShieldURL(e.shieldURL),e.exposeIpList&&t.setExposeIpList(e.exposeIpList),e.isFreeze&&t.setIsFreeze(e.isFreeze),e.isPossibleGoBack&&t.setIsPossibleGoBack(e.isPossibleGoBack),e.isPossibleOpenDevTool&&t.setIsPossibleOpenDevTool(e.isPossibleOpenDevTool),e.doDetectDevTool&&t.setDoDetectDevTool(e.doDetectDevTool),e.convertValue&&t.setConvertValue(e.convertValue),e.protocol&&t.setProtocol(e.protocol),e.domain&&t.setDomain(e.domain),e.controllerPath&&t.setControllerPath(e.controllerPath),e.timeout&&t.setTimeout(e.timeout),e.webSocketProtocol&&t.setWebSocketProtocol(e.webSocketProtocol),e.webSocketEndPoint&&t.setWebSocketEndPoint(e.webSocketEndPoint),e.cachingLimit&&t.setCachingLimit(e.cachingLimit),e.beforeGetRequest&&t.setBeforeGetRequest(e.beforeGetRequest),e.beforePostRequest&&t.setBeforePostRequest(e.beforePostRequest),e.beforePutRequest&&t.setBeforePutRequest(e.beforePutRequest),e.beforePatchRequest&&t.setBeforePatchRequest(e.beforePatchRequest),e.beforeDeleteRequest&&t.setBeforeDeleteRequest(e.beforeDeleteRequest),e.afterGetRequest&&t.setAfterGetRequest(e.afterGetRequest),e.afterPostRequest&&t.setAfterPostRequest(e.afterPostRequest),e.afterPutRequest&&t.setAfterPutRequest(e.afterPutRequest),e.afterPatchRequest&&t.setAfterPatchRequest(e.afterPatchRequest),e.afterDeleteRequest&&t.setAfterDeleteRequest(e.afterDeleteRequest),e.beforeGetUrlRequest&&t.setBeforeGetUrlRequest(e.beforeGetUrlRequest),e.beforePostUrlRequest&&t.setBeforePostUrlRequest(e.beforePostUrlRequest),e.beforePutUrlRequest&&t.setBeforePutUrlRequest(e.beforePutUrlRequest),e.beforePatchUrlRequest&&t.setBeforePatchUrlRequest(e.beforePatchUrlRequest),e.beforeDeleteUrlRequest&&t.setBeforeDeleteUrlRequest(e.beforeDeleteUrlRequest),e.afterGetUrlRequest&&t.setAfterGetUrlRequest(e.afterGetUrlRequest),e.afterPostUrlRequest&&t.setAfterPostUrlRequest(e.afterPostUrlRequest),e.afterPutUrlRequest&&t.setAfterPutUrlRequest(e.afterPutUrlRequest),e.afterPatchUrlRequest&&t.setAfterPatchUrlRequest(e.afterPatchUrlRequest),e.afterDeleteUrlRequest&&t.setAfterDeleteUrlRequest(e.afterDeleteUrlRequest),e.interceptApiResult&&t.setInterceptApiResult(e.interceptApiResult),e.interceptApiError&&t.setInterceptApiError(e.interceptApiError)};var fi={exports:{}},Zd=fi.exports,Ml;function Qd(){return Ml||(Ml=1,function(t,e){(function(n,o){t.exports=o()})(typeof self<"u"?self:typeof So<"u"?So:Zd,()=>(()=>{var n={d:(v,w)=>{for(var A in w)n.o(w,A)&&!n.o(v,A)&&Object.defineProperty(v,A,{enumerable:!0,get:w[A]})},o:(v,w)=>Object.prototype.hasOwnProperty.call(v,w),r:v=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})}},o={};n.r(o),n.d(o,{Align:()=>r,BasicDataType:()=>L,ColorSet:()=>c,DateFormat:()=>m,MonthFormat:()=>C,RowStatus:()=>P,SelectionPolicy:()=>a,VerticalAlign:()=>i,getVanillagrid:()=>xt,getVanillagridConfig:()=>Rt});var r=function(v){return v.left="left",v.center="center",v.right="right",v}({}),i=function(v){return v.top="top",v.center="center",v.bottom="bottom",v}({}),a=function(v){return v.single="single",v.range="range",v.none="none",v}({}),c=function(v){return v.skyblue="skyblue",v.blue="blue",v.light_red="light-red",v.red="red",v.light_green="light-green",v.green="green",v.orange="orange",v.yellow="yellow",v.purple="purple",v.brown="brown",v.black="black",v}({}),m=function(v){return v["yyyy-mm-dd"]="yyyy-mm-dd",v["yyyy/mm/dd"]="yyyy/mm/dd",v["yyyy. mm. dd"]="yyyy. mm. dd",v.yyyymmdd="yyyymmdd",v["mm-dd-yyyy"]="mm-dd-yyyy",v["mm/dd/yyyy"]="mm/dd/yyyy",v["mm. dd. yyyy"]="mm. dd. yyyy",v.mmddyyyy="mmddyyyy",v["dd-mm-yyyy"]="dd-mm-yyyy",v["dd/mm/yyyy"]="dd/mm/yyyy",v["dd. mm. yyyy"]="dd. mm. yyyy",v.ddmmyyyy="ddmmyyyy",v}({}),C=function(v){return v.yyyymm="yyyymm",v["yyyy-mm"]="yyyy-mm",v["yyyy/mm"]="yyyy/mm",v["yyyy. mm"]="yyyy. mm",v.mmyyyy="mmyyyy",v["mm-yyyy"]="mm-yyyy",v["mm/yyyy"]="mm/yyyy",v["mm. yyyy"]="mm. yyyy",v}({}),L=function(v){return v.text="text",v.number="number",v.date="date",v.month="month",v.mask="mask",v.select="select",v.checkbox="checkbox",v.button="button",v.link="link",v.code="code",v}({}),P=function(v){return v.create="C",v.update="U",v.delete="D",v}({}),W=Object.freeze({text:"text",number:"number",date:"date",month:"month",mask:"mask",select:"select",checkbox:"checkbox",button:"button",link:"link",code:"code"}),K=Object.freeze({pixel:"px",percent:"%"}),X=Object.freeze({left:"left",center:"center",right:"right"}),ee=Object.freeze({top:"top",center:"center",bottom:"bottom"}),ie=Object.freeze({max:"$$MAX",min:"$$MIN",sum:"$$SUM",avg:"$$AVG"}),fe=Object.freeze({create:"C",update:"U",delete:"D"}),pe=Object.freeze({single:"single",range:"range",none:"none"});function Me(v,w){(w==null||w>v.length)&&(w=v.length);for(var A=0,M=Array(w);A<w;A++)M[A]=v[A];return M}function Ie(v){return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},Ie(v)}var ve=function(v){var w=Number(v);if(isNaN(w))throw new Error("The provided parameter is not a number.");return w},Ee=function(v){var w=Number(v);if(isNaN(w))throw new Error("The provided parameter is not a number.");if(!Number.isInteger(w))throw new Error("The provided number is not an integer.");return w},xe=function(v){var w=Number(v);if(isNaN(w))throw new Error("The provided parameter is not a number.");if(!Number.isInteger(w))throw new Error("The provided number is not an integer.");if(w<0)throw new Error("The provided number is not a positive integer.");return w},ke=function(v){if(v==null)return{number:0,unit:""};v=v.trim();var w=/^([+-]?\d*\.?\d+)([a-zA-Z%]+)$/;if(w.test(v)){var A=v.match(w);return{number:parseFloat(A[1]),unit:A[2]}}return/^[+-]?\d*\.?\d+$/.test(v)?{number:parseFloat(v),unit:""}:/^[a-zA-Z%]+$/.test(v)?{number:0,unit:v}:{number:0,unit:""}},Te=function(v){return v&&typeof v=="string"?v.toLowerCase():""},We=function(v,w){return Object.values(v).includes(w)},nt=function(v,w,A){var M=Number(v),g=Number(w),y=Number(A),B=new Date(M,g-1,y);return B.getFullYear()==M&&B.getMonth()+1==g&&B.getDate()==y},De=function(v,w,A){if(v==null)return null;for(var M=0,g=(v=String(v)).length,y=0;y<v.length;y++){var B=v.charCodeAt(y);if((M+=B<=127?1:B<=2047?A.lessoreq0x7ffByte:B<=65535?A.lessoreq0xffffByte:A.greater0xffffByte)>w){g=y;break}}return v.substring(0,g)},ot=function(v,w){if(v===null||Ie(v)!=="object"||v.constructor!==Object&&v.constructor!==Array)return v;w||(w=[]);for(var A=0;A<w.length;A++)if(w[A].source===v)return w[A].copy;var M;if(Array.isArray(v)){M=[],w.push({source:v,copy:M});for(var g=0;g<v.length;g++)M[g]=ot(v[g],w)}else for(var y in M={},w.push({source:v,copy:M}),v)v.hasOwnProperty(y)&&(M[y]=ot(v[y],w));return M},mt=function(v,w){if((w=Et(w))==null)throw new Error("Please enter the correct index.");if(w<0||w>=v.length)throw new Error("Index is out of range. Please enter the correct index.");return v[w]},Qe=function(v){for(;v.firstChild;)v.removeChild(v.firstChild)},ut=function(v){if(/^#[0-9a-fA-F]{6}$/.test(v))return v;var w=document.createElement("div");w.style.color=v,document.body.appendChild(w);var A=window.getComputedStyle(w).color;document.body.removeChild(w);var M=A.match(/\d+/g);return"#"+((1<<24)+(+M[0]<<16)+(+M[1]<<8)+ +M[2]).toString(16).slice(1)},Ye=function(v,w){v.startsWith("#")&&(v=v.slice(1));var A=parseInt(w,16);w.startsWith("-")&&(A=-parseInt(w.slice(1),16));var M=parseInt(v.slice(0,2),16),g=parseInt(v.slice(2,4),16),y=parseInt(v.slice(4,6),16);return M=parseInt(String(M+A)),g=parseInt(String(g+A)),y=parseInt(String(y+A)),"#"+(M<0?0:M>255?255:M).toString(16).padStart(2,"0")+(g<0?0:g>255?255:g).toString(16).padStart(2,"0")+(y<0?0:y>255?255:y).toString(16).padStart(2,"0")},Je=function(v){if(!v)return null;v.startsWith("#")&&(v=v.slice(1));var w=255-parseInt(v.slice(0,2),16),A=255-parseInt(v.slice(2,4),16),M=255-parseInt(v.slice(4,6),16);return A=A<127.5?A+16:A-16,M=M<127.5?M+16:M-16,"#"+((w=w<127.5?w+16:w-16)<0?0:w>255?255:w).toString(16).padStart(2,"0")+(A<0?0:A>255?255:A).toString(16).padStart(2,"0")+(M<0?0:M>255?255:M).toString(16).padStart(2,"0")},dt=function(v){var w="";if(!v||v.constructor!==Object||Object.keys(v).length===0)return w;for(var A=Object.entries(v),M=0;M<A.length;M++)A[M].length<2||(w+=A[M][0].trim()+":"+A[M][1].trim()+";");return w},Pt=function(v,w){var A=w.getAttribute(v);if(A==null||A==="")return null;var M=Number(A);return Number.isInteger(M)&&M>=0?M:null},Re=function(v,w){var A=w.getAttribute(v);if(A==null||A==="")return null;var M=Number(A);return isNaN(M)?null:M},ft=function(v,w){var A=w.getAttribute(v);return A==null||A===""?null:Te(A)==="true"},rn=function(v){var w=Number(v);return isNaN(w)?0:w},Et=function(v){var w=Number(v);return isNaN(w)?null:w},_e=function(v,w){return v==null||v===""?w:v},bt=function(v){var w,A=null,M=function(y,B){var H=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(!H){if(Array.isArray(y)||(H=function(ce,me){if(ce){if(typeof ce=="string")return Me(ce,me);var Q={}.toString.call(ce).slice(8,-1);return Q==="Object"&&ce.constructor&&(Q=ce.constructor.name),Q==="Map"||Q==="Set"?Array.from(ce):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?Me(ce,me):void 0}}(y))||B){H&&(y=H);var U=0,q=function(){};return{s:q,n:function(){return U>=y.length?{done:!0}:{done:!1,value:y[U++]}},e:function(ce){throw ce},f:q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
30
30
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var re,de=!0,he=!1;return{s:function(){H=H.call(y)},n:function(){var ce=H.next();return de=ce.done,ce},e:function(ce){he=!0,re=ce},f:function(){try{de||H.return==null||H.return()}finally{if(he)throw re}}}}(v);try{for(M.s();!(w=M.n()).done;){var g=w.value;if(g.constructor===Object){if(A!==null&&A===!1)throw new Error("Please insert valid datas.");A=!0}else{if(!Array.isArray(g))throw new Error("Please insert valid datas.");if(g[0]&&g[0].constructor!==Object)throw new Error("Please insert valid datas.");if(A!==null&&A===!0)throw new Error("Please insert valid datas.");A=!1}}}catch(y){M.e(y)}finally{M.f()}return A},Xn=function(v){switch(v){case"skyblue":return"#91c8e4";case"blue":return"#4682a9";case"light-red":return"#fdd2bf";case"red":return"#b61919";case"light-green":return"#a4be7b";case"green":return"#217346";case"orange":return"#f79327";case"yellow":return"#ffe569";case"purple":return"#804674";case"brown":return"#675d50";case"black":return"#272829";default:throw new Error("Please enter the correct colorSet.")}},en=function(v,w){var A=w.split(";");if(v>A.length)for(var M=0;M<=v-A.length;M++)A.push("");return A.join(";")},Lt=function(v){for(var w=v.data.id,A="",M=function(H){var U=H.data.id,q={};return q["."+U+"_vanillagrid"]={width:H.data.gridCssInfo.width,height:H.data.gridCssInfo.height,display:H.data.gridInfo.visible?"block":"none",border:"1px solid "+H.data.gridCssInfo.gridBorderColor,overflow:"auto","background-color":"#fff",margin:H.data.gridCssInfo.margin,padding:H.data.gridCssInfo.padding,"font-family":H.data.gridCssInfo.gridFontFamily},q["."+U+"_v-g"]={"background-color":H.data.gridCssInfo.bodyBackColor,display:"flex",position:"relative","flex-direction":"column",height:"100%","overflow-x":"auto","overflow-y":"auto","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},q["."+U+"_v-g-h"]={position:"sticky",top:"0","z-index":"250",display:H.data.gridInfo.headerVisible?"grid":"none"},q["."+U+"_v-g-b"]={"margin-bottom":"22px",display:"grid",position:"relative"},q["."+U+"_v-g-f"]={position:"sticky",bottom:"0","z-index":"250",display:"grid","margin-top":"auto"},q["."+U+"_h-v-g-d"]={"background-color":H.data.gridCssInfo.headerCellBackColor,"justify-content":"center","text-align":"center","align-items":H.data.gridCssInfo.verticalAlign,"border-bottom":H.data.gridCssInfo.horizenBorderSize+"px solid "+H.data.gridCssInfo.headerCellBorderColor,"border-right":H.data.gridCssInfo.verticalBorderSize+"px solid "+H.data.gridCssInfo.headerCellBorderColor,color:H.data.gridCssInfo.headerCellFontColor},q["."+U+"_h-v-g-d select"]={color:"#333"},q["."+U+"_h-v-g-d option"]={color:"#333"},q["."+U+"_b-v-g-d"]={"align-items":H.data.gridCssInfo.verticalAlign,"background-color":H.data.gridCssInfo.bodyCellBackColor,"border-bottom":H.data.gridCssInfo.horizenBorderSize+"px solid "+H.data.gridCssInfo.bodyCellBorderColor,"border-right":H.data.gridCssInfo.verticalBorderSize+"px solid "+H.data.gridCssInfo.bodyCellBorderColor,color:H.data.gridCssInfo.bodyCellFontColor},q["."+U+"_f-v-g-d"]={"justify-content":"center","text-align":"center","align-items":H.data.gridCssInfo.verticalAlign,"background-color":H.data.gridCssInfo.footerCellBackColor,"border-top":H.data.gridCssInfo.horizenBorderSize+"px solid "+H.data.gridCssInfo.footerCellBorderColor,color:H.data.gridCssInfo.footerCellFontColor},q["."+U+"_f-v-g-d-value"]={"border-right":H.data.gridCssInfo.verticalBorderSize+"px solid "+H.data.gridCssInfo.bodyCellBorderColor},q["."+U+"_b-v-g-d-alter"]={"align-items":H.data.gridCssInfo.verticalAlign,"background-color":H.data.gridCssInfo.alterRowBackColor,"border-bottom":H.data.gridCssInfo.horizenBorderSize+"px solid "+H.data.gridCssInfo.bodyCellBorderColor,"border-right":H.data.gridCssInfo.verticalBorderSize+"px solid "+H.data.gridCssInfo.bodyCellBorderColor,color:H.data.gridCssInfo.alterRowFontColor},q["."+U+"_b-v-g-d-locked"]={"background-color":H.data.gridCssInfo.lockCellBackColor,"border-bottom":H.data.gridCssInfo.horizenBorderSize+"px solid "+H.data.gridCssInfo.bodyCellBorderColor,"border-right":H.data.gridCssInfo.verticalBorderSize+"px solid "+H.data.gridCssInfo.bodyCellBorderColor,color:H.data.gridCssInfo.lockCellFontColor},q["."+U+"_v-g-d"]={"font-size":H.data.gridCssInfo.cellFontSize,display:"flex","min-height":H.data.gridCssInfo.cellMinHeight,overflow:"hidden","white-space":"nowrap","padding-left":"5px","padding-right":"5px"},H.data.gridCssInfo.overflowWrap&&(q["."+U+"_v-g-d"]["overflow-wrap"]=H.data.gridCssInfo.overflowWrap),H.data.gridCssInfo.wordBreak&&(q["."+U+"_v-g-d"]["word-break"]=H.data.gridCssInfo.wordBreak),H.data.gridCssInfo.whiteSpace&&(q["."+U+"_v-g-d"]["white-space"]=H.data.gridCssInfo.whiteSpace),q["."+U+"_editor"]={"font-size":H.data.gridCssInfo.cellFontSize,"background-color":H.data.gridCssInfo.editorBackColor,border:"none",color:H.data.gridCssInfo.editorFontColor,overflow:"hidden",resize:"none","box-sizing":"border-box","font-family":H.data.gridCssInfo.gridFontFamily,"text-align":"inherit"},q["."+U+"_editor:focus"]={outline:"none"},q["."+U+"_mouseover-cell"]={"background-color":H.data.gridCssInfo.mouseoverCellBackColor+" !important",color:H.data.gridCssInfo.mouseoverCellFontColor+" !important"},q["."+U+"_selected-cell"]={"background-color":H.data.gridCssInfo.selectCellBackColor+" !important",color:H.data.gridCssInfo.selectCellFontColor+" !important"},q["."+U+"_selected-col"]={"background-color":H.data.gridCssInfo.selectColBackColor,color:H.data.gridCssInfo.selectColFontColor},q["."+U+"_selected-row"]={"background-color":H.data.gridCssInfo.selectRowBackColor,color:H.data.gridCssInfo.selectRowFontColor},q["."+U+"_filterSpan"]={display:"block","font-size":"0.8em","padding-right":"8px",cursor:"pointer"},q["."+U+"_filterSelect"]={position:"absolute","z-index":"300",margin:"5px"},q["."+U+"_data-value-select"]={"font-size":H.data.gridCssInfo.cellFontSize,cursor:"pointer",border:"none",background:"none",color:"inherit"},q["."+U+"_data-value-select:focus"]={outline:"none"},q["."+U+"_data-value-checkbox"]={cursor:"pointer"},q["."+U+"_data-value-button"]={"min-width":"95%",height:.85*ke(H.data.gridCssInfo.cellMinHeight).number+"px","line-height":.85*ke(H.data.gridCssInfo.cellMinHeight).number+"px","font-size":H.data.gridCssInfo.cellFontSize,cursor:"pointer",border:"none",color:H.data.gridCssInfo.buttonFontColor,"background-color":H.data.gridCssInfo.buttonBackColor,"box-shadow":"0.75px 0.75px 1px 0.25px "+H.data.gridCssInfo.buttonBorderColor},q["."+U+"_data-value-button:hover"]={color:H.data.gridCssInfo.buttonHoverFontColor,"background-color":H.data.gridCssInfo.buttonHoverBackColor},q["."+U+"_data-value-button:active"]={color:H.data.gridCssInfo.buttonActiveFontColor,"background-color":H.data.gridCssInfo.buttonActiveBackColor,"box-shadow":"0px 0px 0.5px 0.25px "+H.data.gridCssInfo.buttonBorderColor},q["."+U+"_data-value-button:focus"]={outline:"none"},q["."+U+"_data-value-button:disabled"]={opacity:"0.7"},q["."+U+"_data-value-link"]={color:H.data.gridCssInfo.linkFontColor,"text-decoration":H.data.gridCssInfo.linkHasUnderLine?"underline":"none"},q["."+U+"_data-value-link:visited"]={color:H.data.gridCssInfo.linkVisitedFontColor},q["."+U+"_data-value-link:hover"]={color:H.data.gridCssInfo.linkHoverFontColor+" !important"},q["."+U+"_data-value-link:active"]={color:H.data.gridCssInfo.linkActiveFontColor+" !important"},q["."+U+"_data-value-link:focus"]={color:H.data.gridCssInfo.linkFocusFontColor+" !important"},q}(v),g=Object.keys(M),y=0;y<g.length;y++)A=A+g[y]+" {"+dt(M[g[y]])+`}
|
|
31
31
|
`;var B=document.getElementById(w+"_styles-sheet");B?(Qe(B),B.appendChild(document.createTextNode(A))):((B=document.createElement("style")).setAttribute("id",w+"_styles-sheet"),B.styleSheet?B.styleSheet.cssText=A:B.appendChild(document.createTextNode(A)),document.getElementsByTagName("head")[0].appendChild(B))},Xe=function(v){var w=v.color;if(w||(w="#f3f3f3"),w!=="black"&&w!=="#000"&&w!=="#000000"&&ut(w)==="#000000")throw new Error("Please enter the correct color.");var A=function(y){if(!/^#([0-9a-fA-F]{6})$/.test(y))throw new Error("Invalid HEX color format: ".concat(y));return parseInt(y.slice(1,3),16)+parseInt(y.slice(3,5),16)+parseInt(y.slice(5,7),16)>385?"light":"dark"}(w=ut(w))==="light",M=A?"#333333":"#ffffff",g=function(y){y.startsWith("#")&&(y=y.slice(1));var B=parseInt(y.slice(0,2),16),H=parseInt(y.slice(2,4),16),U=parseInt(y.slice(4,6),16);return B=parseInt(String(210+B/255*50)),H=parseInt(String(210+H/255*50)),U=parseInt(String(210+U/255*50)),"#"+(B<0?0:B>255?248:B).toString(16).padStart(2,"0")+(H<0?0:H>255?248:H).toString(16).padStart(2,"0")+(U<0?0:U>255?248:U).toString(16).padStart(2,"0")}(w);v.gridBorderColor=Ye(w,"-4f"),v.bodyBackColor="#ffffff",v.headerCellBackColor=w,v.headerCellBorderColor=Ye(w,"-4f"),v.headerCellFontColor=M,v.footerCellBackColor=w,v.footerCellBorderColor=Ye(w,"-4f"),v.footerCellFontColor=M,v.bodyCellBackColor="#ffffff",v.bodyCellBorderColor=Ye(w,"-f"),v.bodyCellFontColor="#333333",v.editorBackColor="#fefefe",v.editorFontColor="#333333",v.selectCellBackColor=Ye(w,"-2f"),v.selectCellFontColor=M,v.selectColBackColor=Ye(w,"-2f"),v.selectColFontColor=M,v.selectRowBackColor=Ye(g,A?"-f":"-2f"),v.selectRowFontColor="#333333",v.mouseoverCellBackColor=w,v.mouseoverCellFontColor=M,v.lockCellBackColor=Ye(g,A?"-6":"-1f"),v.lockCellFontColor="#666666",v.alterRowBackColor=g,v.alterRowFontColor="#333333",v.buttonFontColor=M,v.buttonBackColor=w,v.buttonBorderColor=Ye(w,A?"-cf":"-4f"),v.buttonHoverFontColor=M,v.buttonHoverBackColor=Ye(w,"-f"),v.buttonActiveFontColor=M,v.buttonActiveBackColor=Ye(w,"-2f"),v.linkFontColor=Ye(w,A?"-cf":"0"),v.linkHoverFontColor=Ye(w,A?"-4f":"af"),v.linkActiveFontColor=Ye(w,A?"-cf":"0"),v.linkVisitedFontColor=Ye(w,A?"-5f":"2f"),v.linkFocusFontColor=Ye(w,A?"-4f":"bf")},Ut=function(v){v.gridBorderColor=Je(v.gridBorderColor),v.headerCellBackColor=Je(v.headerCellBackColor),v.headerCellBorderColor=Je(v.headerCellBorderColor),v.headerCellFontColor=Je(v.headerCellFontColor),v.footerCellBackColor=Je(v.footerCellBackColor),v.footerCellBorderColor=Je(v.footerCellBorderColor),v.footerCellFontColor=Je(v.footerCellFontColor),v.bodyBackColor=Je(v.bodyBackColor),v.bodyCellBackColor=Je(v.bodyCellBackColor),v.bodyCellBorderColor=Je(v.bodyCellBorderColor),v.bodyCellFontColor=Je(v.bodyCellFontColor),v.editorBackColor=Je(v.editorBackColor),v.editorFontColor=Je(v.editorFontColor),v.selectCellBackColor=Je(v.selectCellBackColor),v.selectCellFontColor=Je(v.selectCellFontColor),v.selectColBackColor=Je(v.selectColBackColor),v.selectColFontColor=Je(v.selectColFontColor),v.selectRowBackColor=Je(v.selectRowBackColor),v.selectRowFontColor=Je(v.selectRowFontColor),v.mouseoverCellBackColor=Je(v.mouseoverCellBackColor),v.mouseoverCellFontColor=Je(v.mouseoverCellFontColor),v.lockCellBackColor=Je(v.lockCellBackColor),v.lockCellFontColor=Je(v.lockCellFontColor),v.alterRowBackColor=Je(v.alterRowBackColor),v.alterRowFontColor=Je(v.alterRowFontColor),v.buttonFontColor=Je(v.buttonFontColor),v.buttonBorderColor=Je(v.buttonBorderColor),v.buttonBackColor=Je(v.buttonBackColor),v.buttonHoverFontColor=Je(v.buttonHoverFontColor),v.buttonHoverBackColor=Je(v.buttonHoverBackColor),v.buttonActiveFontColor=Je(v.buttonActiveFontColor),v.buttonActiveBackColor=Je(v.buttonActiveBackColor),v.linkFontColor=Je(v.linkFontColor),v.linkHoverFontColor=Je(v.linkHoverFontColor),v.linkActiveFontColor=Je(v.linkActiveFontColor),v.linkVisitedFontColor=Je(v.linkVisitedFontColor),v.linkFocusFontColor=Je(v.linkFocusFontColor)};function yn(v){return function(w){if(Array.isArray(w))return Fn(w)}(v)||function(w){if(typeof Symbol<"u"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}(v)||_n(v)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
32
32
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function gt(v,w){var A=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!A){if(Array.isArray(v)||(A=_n(v))||w){A&&(v=A);var M=0,g=function(){};return{s:g,n:function(){return M>=v.length?{done:!0}:{done:!1,value:v[M++]}},e:function(U){throw U},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
@@ -45,7 +45,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45
45
|
`&&(me!=="\r"||Q!==`
|
|
46
46
|
`)?de+=me:(q.push(de),de="",me==="\r"&&Q===`
|
|
47
47
|
`&&ce++)}de&&q.push(de);for(var u=H.rowIndex,b=H.colIndex,_=A[y].methods.getRowCount(),R=A[y].methods.getColCount(),F=0,D=0,z=0;z<q.length;z++){var ye=u+D+F;if(ye>_)return;var Se=M._getRow(y,ye);if(Se[0].rowVisible&&!Se[0].filter){for(var ze=0,je=0,Ue=q[D].split(" "),it=function(){var Pe=b+je-1+ze;if(Pe>=R)return 0;var lt=Se[Pe];if(!lt.colVisible){ze++;for(var le=1,ne=Se[Pe+le];ne&&!ne.colVisible;)ze++,le++,ne=Se[Pe+le];return 1}var ht=Ue[je];if(["select","checkbox","button","link"].indexOf(lt.dataType)<0&&!lt.untarget&&!lt.locked){ht=ht.replaceAll('"',"");var d=!0;Object.keys(w.dataType).forEach(function(p){if(lt.dataType===p)if(w.dataType[p].getPasteValue){if(typeof w.dataType[p].getPasteValue!="function")throw new Error("getPasteValue must be a function.");ht=w.dataType[p].getPasteValue(lt._gridId,M.__getData(lt),ht)}else d=!1}),d&&re.push.apply(re,Ge(M.getRecordsWithModifyValue(lt,ht)))}je++},rt=0;rt<Ue.length&&it()!==0;rt++);D++}else{F++;for(var ct=1,Ne=M._getCell(y,Se[0].rowIndex+ct,1);Ne&&(!Ne.rowVisible||Ne.filter);)F++,ct++,Ne=M._getCell(y,Se[0].rowIndex+ct,1)}}re.length>0&&M.recordGridModify(y,re)}},M.getRecordsWithModifyValue=function(g,y){var B=arguments.length>2&&arguments[2]!==void 0&&arguments[2],H=[];return M.modifyCellValue(g,y,H,B),H},M.getTabCell=function(g,y){if(!g)return null;for(var B,H=g._gridId,U=g.rowIndex,q=y?g.colIndex-1:g.colIndex+1;!B&&U>=1&&U<=A[H].methods.getRowCount();){for(;!B&&q>=1&&q<=A[H].methods.getColCount();)(B=M._getCell(H,U,q))&&(B.isRowMerge||B.isColMerge||B.untarget?B=null:M.isCellVisible(B)||(B=null)),q=y?q-1:q+1;U=y?U-1:U+1,q=y?A[H].methods.getColCount():1}return B||(B=g),B},M.getMoveRowCell=function(g,y){if(!g)return null;var B,H=g._gridId,U=g.rowIndex,q=g.colIndex;if(!y)return g;for(;!B&&!((U+=y)<1||U>A[H].methods.getRowCount());)(B=M._getCell(H,U,q))&&(B.isRowMerge||B.isColMerge||B.untarget?B=null:M.isCellVisible(B)||(B=null));return B||(B=g),B},M.getMoveColCell=function(g,y){if(!g)return null;var B,H=g._gridId,U=g.rowIndex,q=g.colIndex;if(!y)return g;for(;!B&&!((q+=y)<1||q>A[H].methods.getColCount());)(B=M._getCell(H,U,q))&&(B.isRowMerge||B.isColMerge||B.untarget?B=null:M.isCellVisible(B)||(B=null));return B||(B=g),B},M.recordGridModify=function(g,y){y.length<=0||(A[g].data.variables.recordseq<A[g].data.variables.records.length&&A[g].data.variables.records.splice(A[g].data.variables.recordseq),A[g].data.variables.records.push(y),A[g].data.variables.recordseq=A[g].data.variables.recordseq+1,A[g].data.variables.recordseq>A[g].data.gridInfo.redoCount&&(A[g].data.variables.records.shift(),A[g].data.variables.recordseq=A[g].data.variables.recordseq-1))},M.redoundo=function(g,y){if(!A[g].data.gridInfo.redoable)return!1;var B=y!==!1;if(B&&A[g].data.variables.recordseq<=0||!B&&A[g].data.variables.recordseq+1>A[g].data.variables.records.length)return!1;A[g].data.variables.recordseq=B?A[g].data.variables.recordseq-1:A[g].data.variables.recordseq+1;var H=B?A[g].data.variables.records[A[g].data.variables.recordseq]:A[g].data.variables.records[A[g].data.variables.recordseq-1];if(!H||!Array.isArray(H))return!1;M.selectCell(H[0].cell);var U,q=j(H);try{for(q.s();!(U=q.n()).done;){var re=U.value;re.cell.value=B?re.oldValue:re.newValue,M.reConnectedCallbackElement(re.cell),M.reloadGridWithModifyCell(g,re.cell.colIndex)}}catch(de){q.e(de)}finally{q.f()}return!0},M.selectAndCheckboxOnChange=function(g){if(g.nType){var y=g.parentNode,B=y._gridId,H=!0;if(g.nType==="select"?w._status.editNewValue=g.value:g.nType==="checkbox"&&(w._status.editNewValue=g.checked?A[B].data.gridInfo.checkedValue:A[B].data.gridInfo.uncheckedValue),A[B].events.onBeforeChange(y.rowIndex,y.colId,w._status.editOldValue,w._status.editNewValue)===!1&&(H=!1),!H||y.untarget||y.locked){switch(g.nType){case"select":g.value=w._status.editOldValue;break;case"checkbox":g.checked=!g.checked}return w._status.editOldValue=null,!1}switch(g.nType){case"select":M.recordGridModify(B,M.getRecordsWithModifyValue(y,M.getSelectOptions(g)));break;case"checkbox":M.recordGridModify(B,M.getRecordsWithModifyValue(y,w._status.editNewValue))}A[B].events.onAfterChange(y.rowIndex,y.colId,w._status.editOldValue,w._status.editNewValue)}}}(v,et,Ve),function(w,A,M){M.modifyColSize=function(g,y){if(g&&g.resizable&&g.colId!=="v-g-rownum"&&g.colId!=="v-g-status"){var B=A[g._gridId];if(B.events.onResize(g.colId)!==!1){var H=B.elements.gridHeader.style.gridTemplateColumns.split(" "),U=H[g.colIndex-1];ke(U).unit==="%"&&(y=y>0?1:y<0?-1:0);var q=ke(U).number+y+ke(U).unit;H[g.colIndex-1]=q;var re=H.join(" ");B.elements.gridHeader.style.gridTemplateColumns=re,B.elements.gridBody.style.gridTemplateColumns=re,B.elements.gridFooter.style.gridTemplateColumns=re}}},M.changeColSize=function(g,y,B){if(typeof B!="number"||B<0)throw new Error("The format of size is only zero or positive integers.");var H=A[g];if(!M._getHeaderCell(g,1,y)._frozenCol){for(var U=B!==0,q=1;q<=H.methods.getHeaderRowCount();q++){var re=M._getHeaderCell(g,q,y);re.colVisible=U,M.reConnectedCallbackElement(re)}for(var de=1;de<=H.methods.getRowCount();de++)M._getCell(g,de,y).colVisible=U;for(var he=1;he<=H.methods.getFooterRowCount();he++){var ce=M._getFooterCell(g,he,y);ce.colVisible=U,M.reConnectedCallbackElement(ce)}var me=H.elements.gridHeader,Q=H.elements.gridBody,u=H.elements.gridFooter,b=me.style.gridTemplateColumns.split(" "),_=b[y-1],R=B+ke(_).unit;b[y-1]=R;var F=b.join(" ");me.style.gridTemplateColumns=F,Q.style.gridTemplateColumns=F,u.style.gridTemplateColumns=F}},M.modifyCellValue=function(g,y,B){if(!(!(arguments.length>3&&arguments[3]!==void 0&&arguments[3])&&(!M.isCellVisible(g)||g.untarget||g.locked))&&(y=M.getValidValue(g,y),g.value!==y)){var H=g.value,U=y;B&&Array.isArray(B)&&B.push({cell:g,oldValue:H,newValue:U}),A[g._gridId].methods.getRowStatus(g.rowIndex)||A[g._gridId].methods.setRowStatus(g.rowIndex,"U"),g.value=y,M.reConnectedCallbackElement(g),M.reloadGridWithModifyCell(g._gridId,g.colIndex)}},M.modifyCell=function(g){if(g._status.activeGridEditor){var y=g._status.activeGridEditor.parentNode;if(!y.untarget&&!y.locked&&(g._status.editNewValue=g._status.activeGridEditor.value,Object.keys(g.dataType).forEach(function(U){if(y.dataType===U)if(g.dataType[U].getEditedValue){if(typeof g.dataType[U].getEditedValue!="function")throw new Error("getEditedValue must be a function.");g._status.editNewValue=g.dataType[U].getEditedValue(g._status.activeGridEditor,y._gridId,M.__getData(y))}else g._status.editNewValue=g._status.editOldValue}),M.removeGridEditor(),A[y._gridId].events.onBeforeChange(y.rowIndex,y.colId,g._status.editOldValue,g._status.editNewValue)!==!1)){var B=g._status.editNewValue,H=M.getRecordsWithModifyValue(y,B);M.recordGridModify(y._gridId,H),A[y._gridId].events.onAfterChange(y.rowIndex,y.colId,g._status.editOldValue,g._status.editNewValue)}}},M.sort=function(g,y,B){var H=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],U=arguments.length>4&&arguments[4]!==void 0&&arguments[4],q=ot(y),re=A[g];return q.sort(function(de,he){var ce=de.find(function(Se){return Se.colId===B}),me=he.find(function(Se){return Se.colId===B}),Q=ce?ce.value:null,u=ce?ce.dataType:null,b=me?me.value:null,_=me?me.dataType:null,R=U;if(typeof Q!="number"&&typeof b!="number"||(R=!0),Q===re.data.gridInfo.nullValue&&(Q=null),b===re.data.gridInfo.nullValue&&(b=null),u==="select"&&Q!==null&&Array.isArray(Q)){var F=Q.find(function(Se){return Se.selected});Q=F?F.text:Q.length>0&&Q[0].text!==void 0?Q[0].text:null}else u==="link"&&Q!==null&&Q.constructor===Object&&(Q=Q.text);if(_==="select"&&b!==null&&Array.isArray(b)){var D=b.find(function(Se){return Se.selected});b=D?D.text:b.length>0&&b[0].text!==void 0?b[0].text:null}else _==="link"&&b!==null&&b.constructor===Object&&(b=b.text);if(w.dataType&&Object.keys(w.dataType).forEach(function(Se){if(u===Se)if(w.dataType[Se].getSortValue){if(typeof w.dataType[Se].getSortValue!="function")throw new Error("getSortValue must be a function.");Q=w.dataType[Se].getSortValue(g,Q)}else Q=ce.text;if(_===Se)if(w.dataType[Se].getSortValue){if(typeof w.dataType[Se].getSortValue!="function")throw new Error("getSortValue must be a function.");b=w.dataType[Se].getSortValue(g,b)}else b=me.text}),R){var z=Q===null?NaN:Number(Q),ye=b===null?NaN:Number(b);if(!isNaN(z)&&!isNaN(ye))return H!==!1?z-ye:ye-z;isNaN(z)&&(Q=null),isNaN(ye)&&(b=null)}return Q===null&&b===null?0:Q===null?H!==!1?1:-1:b===null?H!==!1?-1:1:Q.localeCompare||b.localeCompare?Q.localeCompare?b.localeCompare?R?H!==!1?Q.localeCompare(b,void 0,{numeric:!0}):b.localeCompare(Q,void 0,{numeric:!0}):H!==!1?Q.localeCompare(b):b.localeCompare(Q):H!==!1?-1:1:H!==!1?1:-1:0}),re.data.variables.sortToggle={},re.data.variables.sortToggle[B]=H,q},M.setFilterOptions=function(g,y){var B=g.value;Qe(g),y.forEach(function(H){var U=document.createElement("option");U.value=H.value,U.textContent=H.text,g.appendChild(U)}),B&&(g.value=B)},M.reloadColFilterValue=function(g,y){var B=A[g];if(B&&B.data.gridInfo.filterable){var H=M.__getColInfo(g,y);if(H.filterable){H.filterValues=new Set;for(var U=function(){var re,de=M._getCell(g,q,H.colIndex);if(!de||!de.rowVisible||!de.colVisible)return 1;re=M.getTextFromCell(de),Object.keys(w.dataType).forEach(function(he){if(de.dataType===he&&w.dataType[he].getFilterValue){if(typeof w.dataType[he].getFilterValue!="function")throw new Error("getFilterValue must be a function.");re=w.dataType[he].getFilterValue(g,de.value)}}),re!==""&&re!=null&&re!==B.data.gridInfo.nullValue||(re="$$NULL"),H.filterValues.add(re)},q=1;q<=B.methods.getRowCount();q++)U();M.reloadFilter(g,y)}}},M.reloadFilter=function(g,y){var B=M.__getHeaderFilter(g,y);if(B){var H=M.__getColInfo(g,y),U=H.filterValues,q=H.dataType;if(U){var re=[];re.push({value:"$$ALL",text:"*"});var de=A[g];U.forEach(function(ce){var me={value:ce,text:ce};ce==="$$NULL"&&(me.text=de.data.gridInfo.nullValue),q==="checkbox"&&(me.text=ce===de.data.gridInfo.checkedValue?"☑":"☐"),re.push(me)});var he=B.value;Qe(B),re.forEach(function(ce){var me=document.createElement("option");me.value=ce.value,me.textContent=ce.text,B.appendChild(me)}),he&&(B.value=he,H.filterValue=he)}}},M.getDatasWithClearFilterValue=function(g,y){return y.forEach(function(B){B.forEach(function(H){H.filter=!1})}),A[g].data.variables.filters=[],y},M.reloadColForMerge=function(g,y){var B=M.__getColInfo(g,y);if(B){var H,U,q,re,de=A[g];if(B.rowMerge){for(re=B.colIndex,q=1;q<=de.methods.getRowCount();q++)delete(U=M._getCell(g,q,re)).rowSpan,delete U.isRowMerge,delete U.colSpan,delete U.isColMerge;for(q=2;q<=de.methods.getRowCount();q++)if(H=M._getCell(g,q-1,re),U=M._getCell(g,q,re),H&&M.isCellVisible(H)&&H.dataType===U.dataType&&M.getTextFromCell(H)===M.getTextFromCell(U)){for(var he=H.rowIndex-1;he>0;he--)if((H=M._getCell(g,he,re)).isRowMerge!==!0){H.rowSpan=_e(H.rowSpan,1)+1;break}U.isRowMerge=!0}for(q=1;q<=de.methods.getRowCount();q++)U=M._getCell(g,q,re),M.reConnectedCallbackElement(U)}if(B.colMerge&&!M.__getColInfo(g,y-1).rowMerge){var ce=M._getCells(g);for(q=1;q<=de.methods.getRowCount();q++)for(re=B.colIndex-1;re<=B.colIndex;re++)delete(U=M._getCell(g,q,re)).rowSpan,delete U.isRowMerge,delete U.colSpan,delete U.isColMerge;for(re=B.colIndex,q=1;q<=de.methods.getRowCount();q++)if(H=ce[q-1][re-2],U=ce[q-1][re-1],H&&M.isCellVisible(H)&&H.dataType===U.dataType&&M.getTextFromCell(H)===M.getTextFromCell(U)){for(var me=H.colIndex-1;me>2;me--)if((H=ce[q-1][me]).isColMerge!==!0){H.colSpan=_e(H.colSpan,1)+1;break}U.isColMerge=!0}for(q=1;q<=de.methods.getRowCount();q++)for(re=B.colIndex-1;re<=B.colIndex;re++)U=M._getCell(g,q,re),M.reConnectedCallbackElement(U)}}},M.reloadGridWithModifyCell=function(g,y){M.reloadFooterValue(g),M.reloadColFilterValue(g,y);var B=M.__getColInfo(g,y+1);B&&B.colMerge?M.reloadColForMerge(g,y+1):M.reloadColForMerge(g,y)},M.reloadGridForMerge=function(g){for(var y=A[g],B=3;B<=y.methods.getColCount();B++)M.reloadColForMerge(g,B)},M.reloadFooterValue=function(g){var y,B=I(M._getFooterCells(g));try{for(B.s();!(y=B.n()).done;){var H,U=I(y.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;A[g].data.colInfos[q.colIndex-1]!=null&&M.reConnectedCallbackElement(q)}}catch(re){U.e(re)}finally{U.f()}}}catch(re){B.e(re)}finally{B.f()}},M.setGridDataRowCol=function(g,y,B){g.rowIndex=y,g.colIndex=B,M.setGridDataPosition(g)},M.setGridDataPosition=function(g){var y=g.rowIndex,B=g.colIndex;g.style.gridRowStart=String(y),g.style.gridRowEnd=String(y+1),g.style.gridColumnStart=String(B),g.style.gridColumnEnd=String(B+1)},M.getGridCell=function(g,y,B,H,U){var q;if(B&&B.constructor===Object)q={value:B[y.colId]};else if(B&&Array.isArray(B)){var re,de=I(B);try{for(de.s();!(re=de.n()).done;){var he=re.value;if(he.colId===y.colId){q=he;break}}}catch(me){de.e(me)}finally{de.f()}}q||(q={value:null});var ce=document.createElement("div");if(ce._gridId=g,ce._type="gbd",M.setCellDataFromColInfo(ce,y),ce.rowVisible=q.rowVisible===void 0||q.rowVisible,ce.filter=q.filter!==void 0&&q.filter,q.colId!==void 0&&(ce.colId=q.colId),q.colIndex!==void 0&&(ce.colIndex=q.colIndex),q.name!==void 0&&(ce.name=q.name),q.untarget!==void 0&&(ce.untarget=q.untarget),q.rowMerge!==void 0&&(ce.rowMerge=q.rowMerge),q.colMerge!==void 0&&(ce.colMerge=q.colMerge),q.colVisible!==void 0&&(ce.colVisible=q.colVisible),q.required!==void 0&&(ce.required=q.required),q.resizable!==void 0&&(ce.resizable=q.resizable),q.sortable!==void 0&&(ce.sortable=q.sortable),q.filterable!==void 0&&(ce.filterable=q.filterable),q.originWidth!==void 0&&(ce.originWidth=q.originWidth),q.dataType!==void 0&&(ce.dataType=q.dataType,![].concat(l(Object.keys(W)),l(Object.keys(w.dataType))).includes(ce.dataType)))throw new Error("Please insert a valid dataType.");switch(q.selectSize!==void 0&&(ce.selectSize=q.selectSize),q.locked!==void 0&&(ce.locked=q.locked),q.lockedColor!==void 0&&(ce.lockedColor=q.lockedColor),q.format!==void 0&&(ce.format=q.format),q.codes!==void 0&&(ce.codes=ot(q.codes)),q.defaultCode!==void 0&&(ce.defaultCode=q.defaultCode),q.maxLength!==void 0&&(ce.maxLength=q.maxLength),q.maxByte!==void 0&&(ce.maxByte=q.maxByte),q.maxNumber!==void 0&&(ce.maxNumber=q.maxNumber),q.minNumber!==void 0&&(ce.minNumber=q.minNumber),q.roundNumber!==void 0&&(ce.roundNumber=q.roundNumber),q.align!==void 0&&(ce.align=q.align),q.verticalAlign!==void 0&&(ce.verticalAlign=q.verticalAlign),q.overflowWrap!==void 0&&(ce.overflowWrap=q.overflowWrap),q.wordBreak!==void 0&&(ce.wordBreak=q.wordBreak),q.whiteSpace!==void 0&&(ce.whiteSpace=q.whiteSpace),q.backColor!==void 0&&(ce.backColor=q.backColor),q.fontColor!==void 0&&(ce.fontColor=q.fontColor),q.fontBold!==void 0&&(ce.fontBold=q.fontBold),q.fontItalic!==void 0&&(ce.fontItalic=q.fontItalic),q.fontThruline!==void 0&&(ce.fontThruline=q.fontThruline),q.fontUnderline!==void 0&&(ce.fontUnderline=q.fontUnderline),ce.colId){case"v-g-rownum":ce.value=H;break;case"v-g-status":ce.value=M.getCodeValue(["C","U","D"],null,q.value);break;default:ce.value=M.getValidValue(ce,q.value)}return y.filterable&&ce.colVisible&&y.filterValues.add(ce.textContent),M.setGridDataRowCol(ce,H,U),ce},M.setCellDataFromColInfo=function(g,y){if(g.colId=y.colId,g.colIndex=y.colIndex,g.name=y.name,g.untarget=y.untarget,g.rowMerge=y.rowMerge,g.colMerge=y.colMerge,g.colVisible=y.colVisible,g.required=y.required,g.resizable=y.resizable,g.sortable=y.sortable,g.filterable=y.filterable,g.originWidth=y.originWidth,g.dataType=y.dataType,![].concat(l(Object.keys(W)),l(Object.keys(w.dataType))).includes(g.dataType))throw new Error("Please insert a valid dataType.");g.selectSize=y.selectSize,g.locked=y.locked,g.lockedColor=y.lockedColor,g.format=y.format,g.codes=ot(y.codes),g.defaultCode=y.defaultCode,g.maxLength=y.maxLength,g.maxByte=y.maxByte,g.maxNumber=y.maxNumber,g.minNumber=y.minNumber,g.roundNumber=y.roundNumber,g.align=y.align,g.verticalAlign=y.verticalAlign,g.overflowWrap=y.overflowWrap,g.wordBreak=y.wordBreak,g.whiteSpace=y.whiteSpace,g.backColor=y.backColor,g.fontColor=y.fontColor,g.fontBold=y.fontBold,g.fontItalic=y.fontItalic,g.fontThruline=y.fontThruline,g.fontUnderline=y.fontUnderline},M.getSortSpan=function(g,y){var B;return A[g].data.variables.sortToggle[y]?w.elements.sortAscSpan&&w.elements.sortAscSpan instanceof HTMLElement&&w.elements.sortAscSpan.nodeType===1?B=w.elements.sortAscSpan.cloneNode(!0):((B=document.createElement("span")).style.fontSize="0.5em",B.style.paddingLeft="5px",B.innerText="▲"):w.elements.sortDescSpan&&w.elements.sortDescSpan instanceof HTMLElement&&w.elements.sortDescSpan.nodeType===1?B=w.elements.sortDescSpan.cloneNode(!0):((B=document.createElement("span")).style.fontSize="0.5em",B.style.paddingLeft="5px",B.innerText="▼"),B._gridId=g,B.isChild=!0,B._type="sort",B.classList.add(g+"_sortSpan"),B.classList.add(A[g].data.variables.sortToggle[y]?g+"_ascSpan":g+"_descSpan"),B}}(v,et,Ve),function(w,A,M){M.__getDefaultColInfo=function(g,y){var B=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(!y||!y.colId)throw new Error("Column ID is required. (colId)");var H=A[g];if(B){var U,q=ge(H.data.colInfos);try{for(q.s();!(U=q.n()).done;){var re=U.value;if(y.colId===re.colId)throw new Error("Column ID is primary key. (colId)")}}catch(ce){q.e(ce)}finally{q.f()}}var de=M._getColDefaultAlign(y.dataType?y.dataType:w.attributes.defaultColInfo.dataType),he={colId:y.colId,name:y.name?y.name:y.colId,colIndex:0,header:y.header?en(H.methods.getHeaderRowCount(),y.header):en(H.methods.getHeaderRowCount(),y.colId),footer:y.footer?y.footer:null,untarget:y.untarget?y.untarget:H.data.gridInfo.selectionPolicy==="none",rowMerge:y.rowMerge?y.rowMerge:w.attributes.defaultColInfo.rowMerge,colMerge:y.colMerge?y.colMerge:w.attributes.defaultColInfo.colMerge,colVisible:y.colVisible?y.colVisible:w.attributes.defaultColInfo.colVisible,required:y.required?y.required:w.attributes.defaultColInfo.required,resizable:y.resizable?y.resizable:w.attributes.defaultColInfo.resizable,sortable:y.sortable?y.sortable:w.attributes.defaultColInfo.sortable,filterable:y.filterable?y.filterable:w.attributes.defaultColInfo.filterable,originWidth:y.originWidth?y.originWidth:w.attributes.defaultColInfo.originWidth,dataType:y.dataType?y.dataType:w.attributes.defaultColInfo.dataType,selectSize:y.selectSize?y.selectSize:w.attributes.defaultColInfo.selectSize,locked:y.locked?y.locked:H.data.gridInfo.locked,lockedColor:y.lockedColor?y.lockedColor:H.data.gridInfo.lockedColor,format:y.format?y.format:w.attributes.defaultColInfo.format,codes:y.codes?y.codes:w.attributes.defaultColInfo.codes,defaultCode:y.defaultCode?y.defaultCode:w.attributes.defaultColInfo.defaultCode,maxLength:y.maxLength?y.maxLength:w.attributes.defaultColInfo.maxLength,maxByte:y.maxByte?y.maxByte:w.attributes.defaultColInfo.maxByte,maxNumber:y.maxNumber?y.maxNumber:w.attributes.defaultColInfo.maxNumber,minNumber:y.minNumber?y.minNumber:w.attributes.defaultColInfo.minNumber,roundNumber:y.roundNumber?y.roundNumber:w.attributes.defaultColInfo.roundNumber,align:y.align?y.align:de,verticalAlign:y.verticalAlign?y.verticalAlign:w.attributes.defaultColInfo.verticalAlign,overflowWrap:y.overflowWrap?y.overflowWrap:w.attributes.defaultColInfo.overflowWrap,wordBreak:y.wordBreak?y.wordBreak:w.attributes.defaultColInfo.wordBreak,whiteSpace:y.whiteSpace?y.whiteSpace:w.attributes.defaultColInfo.whiteSpace,backColor:y.backColor?y.backColor:w.attributes.defaultColInfo.backColor,fontColor:y.fontColor?y.fontColor:w.attributes.defaultColInfo.fontColor,fontBold:y.fontBold?y.fontBold:w.attributes.defaultColInfo.fontBold,fontItalic:y.fontItalic?y.fontItalic:w.attributes.defaultColInfo.fontItalic,fontThruline:y.fontThruline?y.fontThruline:w.attributes.defaultColInfo.fontThruline,fontUnderline:y.fontUnderline?y.fontUnderline:w.attributes.defaultColInfo.fontUnderline,filterValues:new Set,filterValue:null};return he.filterValue=he.filterable?"$$ALL":null,he},M.__getColInfo=function(g,y){var B,H=arguments.length>2&&arguments[2]!==void 0&&arguments[2],U=A[g];if(typeof y=="number")B=U.data.colInfos[y-1];else{var q,re=ge(U.data.colInfos);try{for(re.s();!(q=re.n()).done;){var de=q.value;de.colId===y&&(B=de)}}catch(he){re.e(he)}finally{re.f()}}if(!B){if(H)throw new Error("There is no "+(typeof y=="number"?y+"th":y)+" colunm.");return null}return B},M.__getColIndex=function(g,y){var B=arguments.length>2&&arguments[2]!==void 0&&arguments[2],H=A[g];if(typeof y=="number")return B&&M.__checkColIndex(g,y),y;var U,q=ge(H.data.colInfos);try{for(q.s();!(U=q.n()).done;){var re=U.value;if(re.colId===y)return re.colIndex}}catch(de){q.e(de)}finally{q.f()}if(B)throw new Error("There is no "+(typeof y=="number"?y+"th":y)+" colunm.");return null},M.__setGridColSize=function(g){var y,B=[],H=A[g],U=ge(H.data.colInfos);try{for(U.s();!(y=U.n()).done;){var q=y.value;B.push(q.colVisible?q.originWidth:"0px")}}catch(de){U.e(de)}finally{U.f()}var re=B.join(" ");if(re.includes("%")&&H.data.gridInfo.frozenColCount!==0)throw new Error(g+" has error. If you set the horizontal size to a percentage, property A is not available.");H.elements.gridHeader.style.gridTemplateColumns=re,H.elements.gridBody.style.gridTemplateColumns=re,H.elements.gridFooter.style.gridTemplateColumns=re},M._getCellChildNode=function(g){if(!g)return null;var y,B=g._gridId,H=A[B];switch(g.dataType){case"text":(y=document.createElement("span")).classList.add(B+"_data-value-text"),y.innerText=g.value,y.nType="text";break;case"number":(y=document.createElement("span")).classList.add(B+"_data-value-number"),g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?y.innerText=H.data.gridInfo.nullValue:y.innerText=M.getFormatNumberFromCell(g),y.nType="number";break;case"mask":(y=document.createElement("span")).classList.add(B+"_data-value-mask"),y.innerText=g.value,y.nType="mask";break;case"date":(y=document.createElement("span")).classList.add(B+"_data-value-date"),g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?y.innerText=H.data.gridInfo.nullValue:y.innerText=M.getDateWithGridDateFormat(g),y.nType="date";break;case"month":(y=document.createElement("span")).classList.add(B+"_data-value-month"),g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?y.innerText=H.data.gridInfo.nullValue:y.innerText=M.getDateWithGridMonthFormat(g),y.nType="month";break;case"select":Array.isArray(g.value)&&g.value.length>0?((y=document.createElement("select")).classList.add(B+"_data-value-select"),y.addEventListener("change",function(U){M.selectAndCheckboxOnChange(U.target)}),M.setSelectOptions(y,g.value),y.nType="select",g.selectSize&&(y.style.width=g.selectSize)):((y=document.createElement("span")).classList.add(B+"_data-value-text"),y.innerText=H.data.gridInfo.nullValue,y.nType="text");break;case"checkbox":(y=document.createElement("input")).classList.add(B+"_data-value-checkbox"),y.addEventListener("change",function(U){M.selectAndCheckboxOnChange(U.target)}),y.type="checkbox",y.nType="checkbox",M.getCheckboxCellTrueOrFalse(g)&&y.setAttribute("checked","");break;case"button":g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?((y=document.createElement("span")).classList.add(B+"_data-value-text"),y.innerText=H.data.gridInfo.nullValue,y.nType="text"):((y=document.createElement("button")).classList.add(B+"_data-value-button"),y.innerText=g.value,y.nType="button",y.addEventListener("touchstart",function(){y.classList.add("active")}),y.addEventListener("touchend",function(){y.classList.remove("active")}));break;case"link":g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?((y=document.createElement("span")).classList.add(B+"_data-value-text"),y.innerText=H.data.gridInfo.nullValue,y.nType="text"):((y=document.createElement("a")).classList.add(B+"_data-value-link"),y.innerText=g.value.text,y.setAttribute("href",g.value.value),y.setAttribute("target",g.value.target?g.value.target:"_blank"),y.nType="link");break;case"code":(y=document.createElement("span")).classList.add(B+"_data-value-code"),y.innerText=g.value,y.nType="code";break;default:w.dataType&&Object.keys(w.dataType).forEach(function(U){if(U===g.dataType){if(w.dataType[U].getChildNode){if(typeof w.dataType[U].getChildNode!="function")throw new Error("getChildNode must be a function.");if(y=w.dataType[U].getChildNode(B,M.__getData(g))){if(!(y instanceof HTMLElement)||y.nodeType!==1)throw new Error("getChildNode must return an html element.")}else(y=document.createElement("span")).innerText=g.value}else(y=document.createElement("span")).innerText=g.value;y.classList.add(B+"_data-value-"+U),y.nType=U}})}return y.classList.add(B+"_data-value"),y._type="gbdv",y},M.__loadHeader=function(g){var y=A[g];M.__setGridColSize(g),Qe(y.elements.gridHeader),y.elements.gridHeader._gridHeaderCells.length=0;for(var B=y.methods.getHeaderRowCount(),H=1;H<=B;H++){var U,q=[],re=1,de=ge(y.data.colInfos);try{for(de.s();!(U=de.n()).done;){var he=U.value,ce=document.createElement("div");ce._gridId=g,ce._type="ghd",ce.rowVisible=!0,ce.filter=!1,M.setCellDataFromColInfo(ce,he);var me=he.header.split(";");if(ce.value=me[H-1]?me[H-1].replaceAll("\\n",`
|
|
48
|
-
`):"",M.setGridDataRowCol(ce,H,re),re!==1){if(!me[H-1]){for(var Q=H-2;Q>=0;Q--)me[Q]&&(ce.isRowMerge=!0);if(!ce.isRowMerge)for(var u=re-2;u>=0;u--)y.data.colInfos[u].header.split(";")[H-1]&&(ce.isColMerge=!0)}}else H!==1&&(ce.isRowMerge=!0);ce.addEventListener("mousemove",function(ye){var Se=ye.target,ze=Se._gridId;if(ze){var je=A[ze];if(je&&(Se.style.cursor&&Se.style.removeProperty("cursor"),je.data.gridInfo.resizable&&Se._type==="ghd")){var Ue,it,rt=Se.getBoundingClientRect(),ct=rt.left,Ne=rt.right,Pe=ye.clientX;if(Pe-ct<20){if(Se.colIndex<=3||Se._frozenCol)return;for(var lt=Se.colIndex-1;lt>1&&(it=M._getHeaderCell(ze,1,lt)).colVisible!==!0;lt--);if(!it.resizable)return;Se.style.cursor="ew-resize",w._status.onHeaderDragging=!0,w._status.isHeaderDragging&&(Ue=Pe-w._status.mouseX,M.modifyColSize(it,Ue),w._status.mouseX=Pe)}else if(Ne-Pe<20){if(Se.colIndex<3||Se._frozenCol)return;for(var le=Se.colIndex;le>1&&(it=M._getHeaderCell(ze,1,le)).colVisible!==!0;le--);if(!it.resizable)return;Se.style.cursor="ew-resize",w._status.onHeaderDragging=!0,w._status.isHeaderDragging&&(Ue=Pe-w._status.mouseX,M.modifyColSize(it,Ue),w._status.mouseX=Pe)}else Se.style.cursor="",w._status.onHeaderDragging=!1}}}),ce.addEventListener("mousedown",function(ye){w._status.mouseX=ye.clientX,w._status.onHeaderDragging&&(w._status.isHeaderDragging=!0)}),q.push(ce),re++}}catch(ye){de.e(ye)}finally{de.f()}y.elements.gridHeader._gridHeaderCells.push(q)}var b,_=ge(y.elements.gridHeader._gridHeaderCells);try{for(_.s();!(b=_.n()).done;){var R,F=ge(b.value);try{for(F.s();!(R=F.n()).done;){var D=R.value;y.elements.gridHeader.append(D),M.connectedGridData(D)}}catch(ye){F.e(ye)}finally{F.f()}}}catch(ye){_.e(ye)}finally{_.f()}var z=y.elements.gridHeader._gridHeaderCells;z.forEach(function(ye){ye.forEach(function(Se,ze){if(y.data.gridInfo.sortable&&Object.keys(y.data.variables.sortToggle).length>0&&B===Se.rowIndex)for(var je=B;je>0;je--){var Ue=z[je-1][ze];if(!Ue.isRowMerge&&!Ue.isColMerge&&y.data.variables.sortToggle[Ue.colId]!==void 0){var it=M.getSortSpan(y.data.id,Ue.colId);Ue.append(it);break}}y.data.gridInfo.filterable&&y.data.variables.filters.length>0&&Se.filterable&&Se._filterSelector&&y.data.variables.filters.forEach(function(rt){Se.colId===rt.colId&&(Se._filterSelector.style.display="block",requestAnimationFrame(function(){Array.from(Se._filterSelector.options).some(function(ct){return ct.value===rt.value})&&(Se._filterSelector.value=rt.value)}))})})})},M._getHeaderRow=function(g,y){return mt(A[g].elements.gridHeader._gridHeaderCells,y-1)},M._getHeaderCell=function(g,y,B){if(typeof B=="number")return mt(M._getHeaderRow(g,y),B-1);var H,U=ge(M._getHeaderRow(g,y));try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(re){U.e(re)}finally{U.f()}throw new Error("There is no "+(typeof B=="number"?B+"th":B)+" colunm.")},M._getHeaderCells=function(g){return A[g].elements.gridHeader._gridHeaderCells},M.__getHeaderFilter=function(g,y){var B,H,U=M.__getColIndex(g,y),q=A[g];if(!q.data.colInfos[U-1].filterable)return null;for(var re=1;re<=q.methods.getHeaderRowCount();re++)if((B=M._getHeaderCell(g,re,U))&&(H=B.querySelectorAll("."+g+"_filterSelect"))[0])return H[0];return null},M.__loadFooter=function(g){var y=A[g];Qe(y.elements.gridFooter),y.elements.gridFooter._gridFooterCells.length=0;for(var B=1;B<=y.methods.getFooterRowCount();B++){var H,U=[],q=1,re=ge(y.data.colInfos);try{for(re.s();!(H=re.n()).done;){var de=H.value,he=document.createElement("div");he._gridId=g,he._type="gfd",he.rowVisible=!0,he.filter=!1,M.setCellDataFromColInfo(he,de),M.setGridDataRowCol(he,B,q),U.push(he),q++}}catch(_){re.e(_)}finally{re.f()}y.elements.gridFooter._gridFooterCells.push(U)}var ce,me=ge(y.elements.gridFooter._gridFooterCells);try{for(me.s();!(ce=me.n()).done;){var Q,u=ge(ce.value);try{for(u.s();!(Q=u.n()).done;){var b=Q.value;y.elements.gridFooter.append(b),M.connectedGridData(b)}}catch(_){u.e(_)}finally{u.f()}}}catch(_){me.e(_)}finally{me.f()}},M._getFooterRow=function(g,y){var B=A[g];return mt(B.elements.gridFooter._gridFooterCells,y-1)},M._getFooterCell=function(g,y,B){if(typeof B=="number")return mt(M._getFooterRow(g,y),B-1);var H,U=ge(M._getFooterRow(g,y));try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(re){U.e(re)}finally{U.f()}throw new Error("There is no "+(typeof B=="number"?B+"th":B)+" colunm.")},M._getFooterCells=function(g){return A[g].elements.gridFooter._gridFooterCells},M._getRow=function(g,y){return A[g].elements.gridBody._gridBodyCells[y-1]},M._getCell=function(g,y,B){try{if(typeof B=="number")return A[g].elements.gridBody._gridBodyCells[y-1][B-1];var H,U=ge(A[g].elements.gridBody._gridBodyCells[y-1]);try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(re){U.e(re)}finally{U.f()}}catch{return null}return null},M._getCells=function(g){return A[g].elements.gridBody._gridBodyCells},M.__gridBodyCellsReConnected=function(g){if(A[g].data.variables.isDrawable){var y,B=ge(A[g].elements.gridBody._gridBodyCells);try{for(B.s();!(y=B.n()).done;){var H,U=ge(y.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;M.reConnectedCallbackElement(q)}}catch(re){U.e(re)}finally{U.f()}}}catch(re){B.e(re)}finally{B.f()}}},M.__mountGridBodyCell=function(g){var y=A[g];if(y.data.variables.isDrawable){Qe(y.elements.gridBody);var B,H=ge(y.elements.gridBody._gridBodyCells);try{for(H.s();!(B=H.n()).done;){var U,q=ge(B.value);try{for(q.s();!(U=q.n()).done;){var re=U.value;y.elements.gridBody.append(re),M.connectedGridData(re)}}catch(de){q.e(de)}finally{q.f()}}}catch(de){H.e(de)}finally{H.f()}M.reloadGridForMerge(g),y.methods.reloadFilterValue(),y.methods.reloadFooterValue()}},M.__clear=function(g){var y=A[g];y.elements.gridBody._gridBodyCells.length=0,y.data.variables.activeRows=[],y.data.variables.activeCols=[],y.data.variables.activeCells=[],y.data.variables.targetCell=null,y.data.variables.records=[],y.data.variables.recordseq=0},M.__checkRowIndex=function(g,y){if(!(y=xe(y))||y<1||y>A[g].methods.getRowCount())throw new Error("Please insert a row of valid range.")},M.__checkColRownumOrStatus=function(g){if(typeof g=="number"){if(g<=2)throw new Error("The row number or status columns info cannot be modified.")}else if(g==="v-g-rownum"||g==="v-g-status")throw new Error("The row number or status columns info cannot be modified.")},M.__checkColIndex=function(g,y){if(!(y=xe(y))||y<1||y>A[g].methods.getColCount())throw new Error("Please insert a col of valid range.")},M.___getDatasWithoutExceptedProperty=function(g){var y,B,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=[],q=ge(A[g].elements.gridBody._gridBodyCells);try{for(q.s();!(B=q.n()).done;){var re=B.value;y=[];var de,he=ge(re);try{for(he.s();!(de=he.n()).done;){var ce=de.value,me=M.__getData(ce,H);y.push(me)}}catch(Q){he.e(Q)}finally{he.f()}U.push(y)}}catch(Q){q.e(Q)}finally{q.f()}return U},M._doFilter=function(g){var y,B=A[g];if(B.data.variables.filters=[],B.elements.gridHeader.querySelectorAll("."+g+"_filterSelect").forEach(function(U){U.value!=="$$ALL"&&(y={colId:U.colId,value:U.value},M.__getColInfo(g,U.parentNode.parentNode.colIndex).filterValue=U.value,y.value!=="$$NULL"&&y.value!==null&&y.value!==void 0&&y.value!==""||(y.value=B.data.gridInfo.nullValue),B.data.variables.filters.push(y))}),B.data.variables.filters.length===0)M._getCells(g).forEach(function(U){U.forEach(function(q){q.filter=!1})});else{var H=1;M._getCells(g).forEach(function(U){var q=!1;U.forEach(function(re){B.data.variables.filters.forEach(function(de){if(re.colId===de.colId){var he=M.getTextFromCell(re);Object.keys(w.dataType).forEach(function(ce){if(re.dataType===ce&&w.dataType[ce].getFilterValue){if(typeof w.dataType[ce].getFilterValue!="function")throw new Error("getFilterValue must be a function.");he=w.dataType[ce].getFilterValue(g,re.value)}}),he!=de.value&&(q=!0)}})}),M._getRow(g,H).forEach(function(re){re.filter=q}),H++})}B.methods.load(B.methods.getDatas())},M.__gridCellReConnectedWithControlSpan=function(g){if(M.reConnectedCallbackElement(g),g.rowSpan)for(var y=g.rowIndex+1;y<g.rowIndex+g.rowSpan;y++)M.__gridCellReConnectedWithControlSpan(M._getCell(g._gridId,y,g.colIndex));if(g.colSpan)for(var B=g.colIndex+1;B<g.colIndex+g.colSpan;B++)M.__gridCellReConnectedWithControlSpan(M._getCell(g._gridId,g.rowIndex,B))},M.__getCellData=function(g,y){var B={};return M.setCellDataFromColInfo(B,g),B.value=null,B.rowIndex=y,B.filter=!1,B.rowVisible=!0,B},M.__getData=function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B={value:ot(g.value),colId:g.colId,rowIndex:g.rowIndex,colIndex:g.colIndex,name:g.name,untarget:g.untarget,rowMerge:g.rowMerge,colMerge:g.colMerge,colVisible:g.colVisible,required:g.required,resizable:g.resizable,sortable:g.sortable,filterable:g.filterable,originWidth:g.originWidth,dataType:g.dataType,selectSize:g.selectSize,locked:g.locked,lockedColor:g.lockedColor,format:g.format,codes:ot(g.codes),defaultCode:g.defaultCode,maxLength:g.maxLength,maxByte:g.maxByte,maxNumber:g.maxNumber,minNumber:g.minNumber,roundNumber:g.roundNumber,align:g.align,verticalAlign:g.verticalAlign,overflowWrap:g.overflowWrap,wordBreak:g.wordBreak,whiteSpace:g.whiteSpace,backColor:g.backColor,fontColor:g.fontColor,fontBold:g.fontBold,fontItalic:g.fontItalic,fontThruline:g.fontThruline,fontUnderline:g.fontUnderline,filter:g.filter};return B.text=M.getTextFromCell(g),g.rowSpan&&(B.rowSpan=g.rowSpan),g.colSpan&&(B.colSpan=g.colSpan),g.isRowMerge&&(B.isRowMerge=g.isRowMerge),g.isColMerge&&(B.isColMerge=g.isColMerge),g.rowVisible&&(B.rowVisible=g.rowVisible),y&&(y.indexOf("untarget")>=0&&(B.untarget=null),y.indexOf("colVisible")>=0&&(B.colVisible=null),y.indexOf("rowVisible")>=0&&(B.rowVisible=null),y.indexOf("required")>=0&&(B.required=null),y.indexOf("resizable")>=0&&(B.resizable=null),y.indexOf("originWidth")>=0&&(B.originWidth=null),y.indexOf("dataType")>=0&&(B.dataType=null),y.indexOf("selectSize")>=0&&(B.selectSize=null),y.indexOf("locked")>=0&&(B.locked=null),y.indexOf("lockedColor")>=0&&(B.lockedColor=null),y.indexOf("format")>=0&&(B.format=null),y.indexOf("codes")>=0&&(B.codes=null),y.indexOf("defaultCode")>=0&&(B.defaultCode=null),y.indexOf("maxLength")>=0&&(B.maxLength=null),y.indexOf("maxByte")>=0&&(B.maxByte=null),y.indexOf("maxNumber")>=0&&(B.maxNumber=null),y.indexOf("minNumber")>=0&&(B.minNumber=null),y.indexOf("roundNumber")>=0&&(B.roundNumber=null),y.indexOf("align")>=0&&(B.align=null),y.indexOf("verticalAlign")>=0&&(B.verticalAlign=null),y.indexOf("backColor")>=0&&(B.backColor=null),y.indexOf("fontColor")>=0&&(B.fontColor=null),y.indexOf("fontBold")>=0&&(B.fontBold=null),y.indexOf("fontItalic")>=0&&(B.fontItalic=null),y.indexOf("fontThruline")>=0&&(B.fontThruline=null),y.indexOf("fontUnderline")>=0&&(B.fontUnderline=null),y.indexOf("filter")>=0&&(B.filter=null),y.indexOf("value")>=0&&(B.value=null)),B},M.__setCellData=function(g,y,B,H){var U=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];M.__checkRowIndex(g,y);var q=M.__getColIndex(g,B,!0);if(q<=2){if(U)throw new Error("The row number or status columns are immutable.");return!1}var re=M._getCell(g,y,q);if(H.untarget&&(re.untarget=H.untarget),H.dataType){if(![].concat(ae(Object.keys(W)),ae(Object.keys(w.dataType))).includes(H.dataType))throw new Error("Please insert a valid dataType.");re.dataType=H.dataType}return H.selectSize&&(re.selectSize=H.selectSize),H.locked&&(re.locked=H.locked),H.lockedColor&&(re.lockedColor=H.lockedColor),H.format&&(re.format=H.format),H.codes&&(re.codes=H.codes),H.defaultCode&&(re.defaultCode=H.defaultCode),H.maxLength&&(re.maxLength=H.maxLength),H.maxByte&&(re.maxByte=H.maxByte),H.maxNumber&&(re.maxNumber=H.maxNumber),H.minNumber&&(re.minNumber=H.minNumber),H.roundNumber&&(re.roundNumber=H.roundNumber),H.align&&(re.align=H.align),H.verticalAlign&&(re.verticalAlign=H.verticalAlign),H.overflowWrap&&(re.overflowWrap=H.overflowWrap),H.wordBreak&&(re.wordBreak=H.wordBreak),H.whiteSpace&&(re.whiteSpace=H.whiteSpace),H.backColor&&(re.backColor=H.backColor),H.fontColor&&(re.fontColor=H.fontColor),H.fontBold&&(re.fontBold=H.fontBold),H.fontItalic&&(re.fontItalic=H.fontItalic),H.fontThruline&&(re.fontThruline=H.fontThruline),H.fontUnderline&&(re.fontUnderline=H.fontUnderline),H.value&&(re.value=H.value),M.reConnectedCallbackElement(re),M.reloadGridWithModifyCell(g,re.colIndex),!0},M._getDataTypeStyle=function(){var g={};return Object.keys(w.dataType).forEach(function(y){w.dataType[y].cellStyle&&(g[y]=w.dataType[y].cellStyle)}),g},M._getFilterSpan=function(){return w.elements.filterSpan},M._getFooterFormula=function(){return ot(w.footerFormula)},M._getColDefaultAlign=function(g){switch(g){case"text":case"mask":return r.left;case"number":return r.right;case"date":case"month":case"select":case"checkbox":case"button":case"link":case"code":return r.center;default:return w.attributes.defaultColInfo.align}}}(v,et,Ve),function(w,A,M){M.isCellVisible=function(g){return!!g&&!(g.colVisible===!1||g.rowVisible===!1||g.filter===!0)},M.getFirstCellValidNumber=function(g){for(var y,B,H=g._gridId,U=1;U<A[H].methods.getRowCount();U++)if(B=M._getCell(H,U,g.colIndex),M.isCellVisible(B)&&(y=Et(B.value)))return y;return null},M.removeGridEditor=function(){if(!w._status.activeGridEditor)return!1;var g=w._status.activeGridEditor.targetCell,y=g._gridId;return A[y].events.onEditEnding(g.rowIndex,g.colId,w._status.editOldValue,w._status.editNewValue),g.style.padding="",g.style.fontSize="",w._status.activeGridEditor.parentNode.removeChild(w._status.activeGridEditor),w._status.activeGridEditor=null,!0},M.addBagicEventListenerToGridEditor=function(g){g.addEventListener("keydown",function(y){var B,H=w._status.activeGrid,U=H.data.variables.targetCell;if(H.events.onKeydownEditor(y)===!1)return y.stopPropagation(),void y.preventDefault();switch(y.key){case"Enter":y.shiftKey||(M.modifyCell(w),B=M.getMoveRowCell(U,1),M.selectCell(B),y.stopPropagation(),y.preventDefault());break;case"Escape":w._status.editNewValue=w._status.editOldValue,M.removeGridEditor(),y.stopPropagation(),y.preventDefault();break;case"Tab":M.modifyCell(w),B=M.getTabCell(U,y.shiftKey),M.selectCell(B),y.stopPropagation(),y.preventDefault();break;case"F2":M.modifyCell(w),y.stopPropagation(),y.preventDefault()}}),g.addEventListener("input",function(y){w._status.activeGrid.events.onInputEditor(y)})},M.setBagicAttributesToGridEditor=function(g,y){g._gridId=y._gridId,g.targetCell=y,g.style.width=y.offsetWidth+"px",g.style.height=y.scrollHeight+g.offsetHeight-g.clientHeight+"px",g.classList.add(g._gridId+"_editor")},M.createGridEditorTextarea=function(g){var y=document.createElement("textarea");M.setBagicAttributesToGridEditor(y,g),y.placeholder,y.classList.add(y._gridId+"_editor_textarea");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,y.value=w._status.editOldValue,y.addEventListener("input",function(H){H.target.style.height=H.target.scrollHeight+y.offsetHeight-y.clientHeight+"px"},!1),y.addEventListener("keyup",function(H){H.target.value&&H.target.parentNode&&H.target.parentNode.maxLength&&(H.target.value=H.target.value.substring(0,H.target.parentNode.maxLength)),H.target.value&&H.target.parentNode&&H.target.parentNode.maxByte&&(H.target.value=De(H.target.value,H.target.parentNode.maxByte,w.checkByte))},!1),M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorNumber=function(g){var y=document.createElement("input");M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_number"),y.setAttribute("type","number");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,y.value=w._status.editOldValue,M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorDate=function(g){var y=document.createElement("input");return M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_date"),y.setAttribute("type","date"),w._status.editOldValue=M.getDateWithInputDateFormat(g.value),y.value=w._status.editOldValue,M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorMonth=function(g){var y=document.createElement("input");return M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_month"),y.setAttribute("type","month"),w._status.editOldValue=M.getDateWithInputMonthFormat(g.value),y.value=w._status.editOldValue,M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorMask=function(g){var y=document.createElement("input");M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_mask"),y.setAttribute("type","text");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,y.value=w._status.editOldValue,y.addEventListener("keyup",function(H){H.target.value=M.getMaskValue(H.target.targetCell.format,H.target.value)}),M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorCode=function(g){var y=document.createElement("input");M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_code"),y.setAttribute("type","text");var B=g.value;return w._status.editOldValue=B,y.value=w._status.editOldValue,M.addBagicEventListenerToGridEditor(y),y},M.createGridEditor=function(g){var y=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!(g.locked||g.untarget||["select","checkbox","button","link"].indexOf(g.dataType)>=0)){var B;switch(M.removeGridEditor(),g.dataType){case"text":B=M.createGridEditorTextarea(g);break;case"number":B=M.createGridEditorNumber(g);break;case"date":B=M.createGridEditorDate(g);break;case"month":B=M.createGridEditorMonth(g);break;case"mask":B=M.createGridEditorMask(g);break;case"code":B=M.createGridEditorCode(g);break;default:Object.keys(w.dataType).forEach(function(H){if(g.dataType===H&&w.dataType[H].getEditor){if(typeof w.dataType[H].getEditor!="function")throw new Error("getEditor must be a function.");if(B=w.dataType[H].getEditor(g,g._gridId,M.__getData(g),function(){M.modifyCell(w)},function(){w._status.editNewValue=w._status.editOldValue,M.removeGridEditor()})){if(!(B instanceof HTMLElement)||B.nodeType!==1)throw new Error("getEditor must return an html element.");B._gridId=g._gridId,B.targetCell=g,B.classList.add(B._gridId+"_editor_"+H),B.classList.add(B._gridId+"_editor"),w._status.editOldValue=g.value}}})}A[g._gridId].events.onBeforeEditEnter(g.rowIndex,g.colId,B)!==!1&&B&&(g.style.padding="0",g.style.fontSize="0px",g.appendChild(B),B.focus(),y&&B.select(),w._status.activeGridEditor=B,A[g._gridId].events.onAfterEditEnter(g.rowIndex,g.colId,B))}},M.getValidValue=function(g,y){var B=_e(A[g._gridId].data.gridInfo.nullValue,null);if(!g)return null;if(g.dataType!=="code"&&(y==null||y===""||y===B))return B;switch(g.dataType){case"text":return g.maxLength&&(y=y.substring(0,g.maxLength)),g.maxByte&&(y=De(y,g.maxByte,w.checkByte)),y;case"mask":return _e(M.getMaskValue(g.format,y),B);case"date":return _e(M.getDateWithValueDateFormat(y),B);case"month":return _e(M.getDateWithValueMonthFormat(y),B);case"number":if((y=Et(y))===null)return B;var H=g.maxNumber,U=g.minNumber,q=g.roundNumber;H!=null&&typeof H=="number"&&y>H&&(y=H),U!=null&&typeof U=="number"&&y<U&&(y=U);var re=parseFloat(y);if(q==null||typeof q!="number")return Number(y);if(q>=0){var de=re.toFixed(q);return de=(de=de.replace(/(\.[0-9]*?)0+$/,"$1")).replace(/\.$/,""),Number(de)}var he=Math.pow(10,-q);return Number((Math.round(re/he)*he).toFixed(-q));case"select":case"button":case"link":return y;case"checkbox":return typeof y=="boolean"?y:A[g._gridId].data.gridInfo.checkedValue===y;case"code":return M.getCodeValue(g.codes,g.defaultCode,y);default:return w.dataType&&Object.keys(w.dataType).forEach(function(ce){if(g.dataType===ce&&w.dataType[ce].getValue){if(typeof w.dataType[ce].getValue!="function")throw new Error("getValue must be a function.");y=w.dataType[ce].getValue(g._gridId,y)}}),y}},M.getTextFromCell=function(g){if(!g)return"";var y="",B=_e(g.value,A[g._gridId].data.gridInfo.nullValue);switch(g.dataType){case"number":y=B===A[g._gridId].data.gridInfo.nullValue?B:_e(M.getFormatNumberFromCell(g),A[g._gridId].data.gridInfo.nullValue);break;case"date":y=B===A[g._gridId].data.gridInfo.nullValue?B:_e(M.getDateWithGridDateFormat(g),A[g._gridId].data.gridInfo.nullValue);break;case"month":y=B===A[g._gridId].data.gridInfo.nullValue?B:_e(M.getDateWithGridMonthFormat(g),A[g._gridId].data.gridInfo.nullValue);break;case"select":if(Array.isArray(g.value)&&g.value.length>0){y=g.value[0].text;var H,U=Le(g.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;q.selected&&(y=q.text)}}catch(re){U.e(re)}finally{U.f()}y==null&&(y=A[g._gridId].data.gridInfo.nullValue)}break;case"link":y=g.value&&g.value.text?g.value.text:B;break;default:y=B,w.dataType?Object.keys(w.dataType).forEach(function(re){if(g.dataType===re&&w.dataType[re].getText){if(typeof w.dataType[re].getText!="function")throw new Error("getText must be a function.");y=w.dataType[re].getText(g._gridId,y)}}):y=String(B)}return y},M.getFormatNumber=function(g,y){if(!g||y==null)return Number(y);var B=g.match(/^(.*?)([#0,.]+)(.*?)$/);if(!B)return Number(y);var H=function(R){return isNaN(R)||!isFinite(R)?0:Number(R)},U=function(R){return isNaN(R)||!isFinite(R)?0:parseFloat(R)},q=B[1],re=B[2],de=B[3],he=re.split(".")[0],ce=re.split(".").length>1?re.split(".")[1]:"";de!=="%"&&de!==" %"||(y*=100);var me,Q=String(y),u=Q[0]==="-",b=(Q=u?Q.substring(1):Q).split(".")[0],_=Q.split(".").length>1?Q.split(".")[1]:"";switch(_=(_=U("0."+_).toLocaleString("en",{minimumFractionDigits:ce.lastIndexOf("0")+1,maximumFractionDigits:ce.length}))==="0"?"":_.substring(1),he){case"#,###":me=H(b)===0?_:(b=U(b).toLocaleString("en"))+_;break;case"#,##0":me=(b=U(b).toLocaleString("en"))+_;break;case"#":me=H(b)===0?_:b+_;break;case"0":me=b+_;break;default:return y}return q+(me=u?"-"+me:me)+de},M.getFormatNumberFromCell=function(g){return g.format?g.value===null||g.value===void 0?null:M.getFormatNumber(g.format,g.value):g.value},M.getDateWithValueDateFormat=function(g){if(!g||typeof g!="string")return null;var y=/^(\d{4})[-/.]? ?(\d{2})[-/.]? ?(\d{2})$/.exec(g.replace(/\s+/g,""));if(!y)return null;var B=y[1],H=y[2],U=y[3];return nt(B,H,U)?"".concat(B).concat(H).concat(U):null},M.getDateWithValueMonthFormat=function(g){if(!g||typeof g!="string")return null;g=g.replace(/\s+/g,"");var y,B,H=/^(\d{4})[-/.]? ?(\d{2})[-/.]? ?(\d{2})?$/.exec(g),U=/^(\d{4})[-/.]? ?(\d{2})$/.exec(g);if(H)y=H[1],B=H[2];else{if(!U)return null;y=U[1],B=U[2]}return nt(y,B,"01")?"".concat(y).concat(B):null},M.getDateWithInputDateFormat=function(g){if(!g||typeof g!="string")return null;var y=/^(\d{4})[-/.]?(\d{2})[-/.]?(\d{2})$/.exec(g);if(!y)return null;var B=y[1],H=y[2],U=y[3];return nt(B,H,U)?"".concat(B,"-").concat(H,"-").concat(U):null},M.getDateWithInputMonthFormat=function(g){if(!g||typeof g!="string")return null;var y=/^(\d{4})[-/.]?(\d{2})$/.exec(g);if(!y)return null;var B=y[1],H=y[2];return nt(B,H,"01")?"".concat(B,"-").concat(H):null},M.getDateWithGridDateFormat=function(g){var y=/^(\d{4})[-/.]?(\d{2})[-/.]?(\d{2})$/.exec(g.value);if(!y)return null;var B=y[1],H=y[2],U=y[3];if(!nt(B,H,U))return null;switch(A[g._gridId].data.gridInfo.dateFormat){case"yyyy-mm-dd":default:return"".concat(B,"-").concat(H,"-").concat(U);case"yyyy/mm/dd":return"".concat(B,"/").concat(H,"/").concat(U);case"yyyy. mm. dd":return"".concat(B,". ").concat(H,". ").concat(U);case"yyyymmdd":return"".concat(B).concat(H).concat(U);case"mm-dd-yyyy":return"".concat(H,"-").concat(U,"-").concat(B);case"mm/dd/yyyy":return"".concat(H,"/").concat(U,"/").concat(B);case"mm. dd. yyyy":return"".concat(H,". ").concat(U,". ").concat(B);case"mmddyyyy":return"".concat(H).concat(U).concat(B);case"dd-mm-yyyy":return"".concat(U,"-").concat(H,"-").concat(B);case"dd/mm/yyyy":return"".concat(U,"/").concat(H,"/").concat(B);case"dd. mm. yyyy":return"".concat(U,". ").concat(H,". ").concat(B);case"ddmmyyyy":return"".concat(U).concat(H).concat(B)}},M.getDateWithGridMonthFormat=function(g){var y=/^(\d{4})[-/.]?(\d{2})$/.exec(g.value);if(!y)return null;var B=y[1],H=y[2];if(!nt(B,H,"01"))return null;switch(A[g._gridId].data.gridInfo.monthFormat){case"yyyy-mm":default:return"".concat(B,"-").concat(H);case"yyyy/mm":return"".concat(B,"/").concat(H);case"yyyy. mm":return"".concat(B,". ").concat(H);case"yyyymm":return"".concat(B).concat(H);case"mm-yyyy":return"".concat(H,"-").concat(B);case"mm/yyyy":return"".concat(H,"/").concat(B);case"mm. yyyy":return"".concat(H,". ").concat(B);case"mmyyyy":return"".concat(H).concat(B)}},M.getCheckboxCellTrueOrFalse=function(g){var y=g.value,B=A[g._gridId].data.gridInfo.checkedValue,H=A[g._gridId].data.gridInfo.uncheckedValue;return typeof y=="boolean"?(g.value=y?B:H,y):y===B||(g.value=H,!1)},M.getCodeValue=function(g,y,B){return g&&Array.isArray(g)&&g.indexOf(B)>=0?B:y},M.getMaskValue=function(g,y){if(typeof g!="string"||typeof y!="string")return null;var B,H=g.split(""),U=y.split(""),q="";return H.every(function(re,de){switch(B=!1,re){case"A":/^[A-Z]$/.test(U[de])?(q+=U[de],B=!0):/^[a-z]$/.test(U[de])&&(q+=(he=U[de])&&typeof he=="string"?he.toUpperCase():"",B=!0);break;case"a":/^[a-z]$/.test(U[de])?(q+=U[de],B=!0):/^[A-Z]$/.test(U[de])&&(q+=Te(U[de]),B=!0);break;case"9":/^[0-9]$/.test(U[de])&&(q+=U[de],B=!0);break;default:re===U[de]&&(q+=U[de],B=!0)}var he;return B}),q},M.setSelectOptions=function(g,y){Array.isArray(y)&&(Qe(g),y.forEach(function(B){var H=document.createElement("option");H.value=B.value,H.textContent=B.text,B.selected&&H.setAttribute("selected",""),B.disabled&&H.setAttribute("disabled",""),B.label&&H.setAttribute("label",B.label),g.appendChild(H)}))},M.getSelectOptions=function(g){if(!g)return null;var y=g.options;if(!y)return null;var B,H=[],U=Le(y);try{for(U.s();!(B=U.n()).done;){var q=B.value,re={value:q.value,text:q.textContent};q.selected&&(re.selected=!0),q.disabled&&(re.disabled=!0),q.label&&(re.label=q.label),H.push(re)}}catch(de){U.e(de)}finally{U.f()}return H.length===0?null:H}}(v,et,Ve),function(w,A){A.connectedGridHeader=function(M){var g=w[M];if(g){var y=w[M].elements.gridHeader;if(!y.style.gridTemplateColumns.includes("%")){for(var B=0,H=1;H<g.methods.getColCount();H++)B+=ke(g.methods.getColOriginWidth(H)).number;y.style.width=B+"px"}}},A.connectedGridBody=function(M){var g=w[M];if(g){var y=w[M].elements.gridBody;if(!y.style.gridTemplateColumns.includes("%")){for(var B=0,H=1;H<g.methods.getColCount();H++)B+=ke(g.methods.getColOriginWidth(H)).number;y.style.width=B+"px"}}},A.connectedGridFooter=function(M){var g=w[M];if(g){var y=w[M].elements.gridFooter;if(!y.style.gridTemplateColumns.includes("%")){var B=0;if(!A._getFooterCells(M)||A._getFooterCells(M).length<=0)return;for(var H=1;H<g.methods.getColCount();H++)B+=ke(g.methods.getColOriginWidth(H)).number;y.style.width=B+"px"}}},A.connectedGridData=function(M){var g=M._gridId,y=w[g],B=y.methods.getGridInfo();switch(M.style.removeProperty("display"),M.style.removeProperty("align-items"),M.style.removeProperty("justify-content"),M.style.removeProperty("text-align"),M.style.removeProperty("z-index"),M._type){case"ghd":if(M.innerText=M.value,B.frozenRowCount<=0&&M.colIndex<=B.frozenColCount){for(var H,U=0,q=M.colIndex-1;q>0;q--)if(H=A._getHeaderCell(g,M.rowIndex,q))if(H.isRowMerge){for(var re=M.rowIndex-1,de=A._getHeaderCell(g,re,q);de&&!(re<0)&&de.isRowMerge;)re--,de=A._getHeaderCell(g,re,q);U+=de.offsetWidth}else U+=A._getHeaderCell(g,M.rowIndex,q).offsetWidth;else U+=0;M.style.position="sticky",M.style.zIndex=String(300+y.methods.getColCount()-M.colIndex),M.style.left=U+"px",M._frozenCol=!0}if(M.isRowMerge){for(var he=M.rowIndex-1,ce=A._getHeaderCell(g,he,M.colIndex);ce&&!(he<0);){if(!ce.isRowMerge){ce.style.gridRowEnd=M.style.gridRowEnd,ce.rowSpan=ce.rowSpan?ce.rowSpan+1:1,ce.style.zIndex=ce.style.zIndex?ce.style.zIndex:"250";break}he--,ce=A._getHeaderCell(g,he,M.colIndex)}M.style.display="none"}if(M.isColMerge){for(var me=M.colIndex-1,Q=A._getHeaderCell(g,M.rowIndex,me);Q&&!(me<0);){if(!Q.isColMerge){if(Q.colId==="v-g-rownum"||Q.colId==="v-g-status")break;Q.style.gridColumnEnd=M.style.gridColumnEnd,Q.colSpan=Q.colSpan?Q.colSpan+1:1,Q.style.zIndex=Q.style.zIndex?Q.style.zIndex:"250";break}me--,Q=A._getHeaderCell(g,M.rowIndex,me)}M.style.display="none"}if(M.colVisible&&M.rowVisible||(M.style.display="none"),y.methods.getHeaderRowCount()===M.rowIndex){var u=M;if(M.isRowMerge)for(var b=M.rowIndex-1;b>0&&!(u=A._getHeaderCell(g,b,M.colIndex)).rowSpan;b--);u&&(u._isLastCell=!0)}if(B.filterable===!0&&y.methods.getColInfo(M.colId).filterable&&y.methods.getHeaderRowCount()===M.rowIndex&&M.colId!=="v-g-rownum"&&M.colId!=="v-g-status"){var _,R=A._getFilterSpan();R&&R instanceof HTMLElement&&R.nodeType===1?_=R.cloneNode(!0):(_=document.createElement("span")).innerText="σ",_._gridId=M._gridId,_.isChild=!0,_._type="filter",_.classList.add(M._gridId+"_filterSpan");var F=document.createElement("select");F.classList.add(M._gridId+"_filterSelect"),F.style.display="none",F._gridId=M._gridId,F.colId=M.colId,F.addEventListener("mousedown",function(Ct){Ct.target.filterOldValue=Ct.target.value}),F.addEventListener("change",function(Ct){var jt=Ct.target.value,ln=Ct.target._gridId;if(w[ln].events.onChooseFilter(Ct.target.parentNode.parentNode.rowIndex,Ct.target.parentNode.parentNode.colId,Ct.target.filterOldValue,jt)===!1)return Ct.stopPropagation(),void Ct.preventDefault();A._doFilter(ln),jt==="$$ALL"&&(Ct.target.style.display="none")}),_.append(F);var D=M;if(M.isRowMerge)for(var z=M.rowIndex-1;z>0&&!(D=A._getHeaderCell(g,z,M.colIndex)).rowSpan;z--);D&&(D.insertBefore(_,D.firstChild),D._filterSelector=F)}M.classList.add(M._gridId+"_h-v-g-d");break;case"gfd":if(B.frozenRowCount<=0&&M.colIndex<=B.frozenColCount){for(var ye,Se=0,ze=M.colIndex-1;ze>0;ze--)if(ye=A._getFooterCell(g,M.rowIndex,ze))if(ye.isRowMerge){for(var je=M.rowIndex-1,Ue=A._getFooterCell(g,je,ze);Ue&&!(je<0)&&Ue.isRowMerge;)je--,Ue=A._getFooterCell(g,je,ze);Se+=Ue.offsetWidth}else Se+=A._getFooterCell(g,M.rowIndex,ze).offsetWidth;else Se+=0;M.style.position="-webkit-sticky",M.style.zIndex="300",M.style.left=Se+"px",M._frozenCol=!0}var it=y.data.colInfos[M.colIndex-1].footer;Array.isArray(it)||(it=null);var rt=it&&it.length>=M.rowIndex-1?it[M.rowIndex-1]:null;if(rt){var ct;M.classList.add(M._gridId+"_f-v-g-d-value");try{ct=A._getFooterCell(g,M.rowIndex,M.colIndex-1)}catch{ct=null}if(ct&&ct.classList.add(M._gridId+"_f-v-g-d-value"),Object.values(ie).includes(rt)){var Ne,Pe,lt;switch(rt){case"$$MAX":if(M.style.justifyContent="right",M.style.textAlign="right",y.methods.getRowCount()>0){Ne=Pe=A.getFirstCellValidNumber(M);for(var le=2;le<=y.methods.getRowCount();le++)lt=A._getCell(g,le,M.colIndex),A.isCellVisible(lt)&&(Pe=Et(lt.value))!==null&&Pe>Ne&&(Ne=Pe)}break;case"$$MIN":if(M.style.justifyContent="right",M.style.textAlign="right",y.methods.getRowCount()>0){Ne=Pe=A.getFirstCellValidNumber(M);for(var ne=2;ne<=y.methods.getRowCount();ne++)lt=A._getCell(g,ne,M.colIndex),A.isCellVisible(lt)&&(Pe=Et(lt.value))!==null&&Pe<Ne&&(Ne=Pe)}break;case"$$SUM":if(M.style.justifyContent="right",M.style.textAlign="right",y.methods.getRowCount()>0){Ne=0;for(var ht=1;ht<=y.methods.getRowCount();ht++)lt=A._getCell(g,ht,M.colIndex),A.isCellVisible(lt)&&(Ne=Math.round(1e5*(Ne+rn(lt.value)))/1e5)}break;case"$$AVG":if(M.style.justifyContent="right",M.style.textAlign="right",y.methods.getRowCount()>0){Ne=0,Pe=0;for(var d=0,p=1;p<=y.methods.getRowCount();p++)lt=A._getCell(g,p,M.colIndex),A.isCellVisible(lt)&&(Ne=Math.round(1e5*(Ne+rn(lt.value)))/1e5,lt.value===null||lt.value===void 0||isNaN(lt.value)||d++);Ne=d===0?null:(Ne/d).toFixed(2)}}Ne=Ne==null?"-":A.getFormatNumber(y.methods.getColFormat(M.colIndex),Ne),M.innerText=Ne,M.value=Ne}else if(typeof rt=="function"){var x=rt(y.methods.getValues());M.innerText=x,M.value=x}else{M.innerText=rt,M.value=rt;var S=A._getFooterFormula();S&&S.constructor===Object&&Object.keys(S).forEach(function(Ct){if(rt===Ct){var jt=S[Ct](y.methods.getColValues(M.colIndex));M.innerText=jt,M.value=jt}})}}M.align&&(M.style.justifyContent=M.align,M.style.textAlign=M.align),M.colIndex===y.methods.getColCount()&&M.classList.add(M._gridId+"_f-v-g-d-value"),M.colVisible&&M.rowVisible||(M.style.display="none"),M.classList.add(M._gridId+"_f-v-g-d");break;case"gbd":switch(M.dataType){case"text":case"mask":M.style.justifyContent="left",M.style.textAlign="left";break;case"number":M.style.justifyContent="right",M.style.textAlign="right";break;case"date":case"month":case"code":case"select":case"checkbox":case"button":case"link":M.style.justifyContent="center",M.style.textAlign="center";break;default:M.style.justifyContent="center",M.style.textAlign="center";var N=A._getDataTypeStyle();Object.keys(N).forEach(function(Ct){if(M.dataType===Ct){if(N[Ct].constructor!==Object)throw new Error("Cellstyle can only be inserted in object type.");Object.keys(N[Ct]).forEach(function(jt){M.style[jt]=N[Ct][jt]})}})}for(;M.firstChild;)M.removeChild(M.firstChild);if(M.append(A._getCellChildNode(M)),M.rowIndex<=B.frozenRowCount){for(var O,T=y.elements.gridHeader.offsetHeight,G=0,V=M.rowIndex-1;V>0;V--)if(O=A._getCell(g,V,M.colIndex))if(O.isColMerge){for(var Z=M.colIndex-1,oe=A._getCell(g,V,Z);oe&&!(Z<0)&&oe.isColMerge;)Z--,oe=A._getCell(g,V,Z);G+=oe.offsetHeight}else G+=A._getCell(g,V,M.colIndex).offsetHeight;else G+=0;M.style.position="sticky",M.style.zIndex="200",M.style.top=T+G+"px",M.rowIndex===B.frozenRowCount&&(M.style.borderBottom=B.cssInfo.verticalBorderSize+"px solid "+B.cssInfo.headerCellBorderColor),M._frozenCol=!0}if(B.frozenRowCount<=0&&M.colIndex<=B.frozenColCount){for(var Y,se=0,qe=M.colIndex-1;qe>0;qe--)if(Y=A._getCell(g,M.rowIndex,qe))if(Y.isRowMerge){for(var _t=M.rowIndex-1,an=A._getCell(g,_t,qe);an&&!(_t<0)&&an.isRowMerge;)_t--,an=A._getCell(g,_t,qe);se+=an.offsetWidth}else se+=A._getCell(g,M.rowIndex,qe).offsetWidth;else se+=0;M.style.position="sticky",M.style.zIndex="200",M.colIndex===B.frozenColCount&&(M.style.borderRight=B.cssInfo.verticalBorderSize+"px solid "+B.cssInfo.headerCellBorderColor),M.style.left=se+"px",M._frozenRow=!0}if(M.isRowMerge){for(var Ft=M.rowIndex-1,Gt=A._getCell(g,Ft,M.colIndex);Gt&&!(Ft<0);){if(!Gt.isRowMerge){Gt.style.gridRowEnd=M.style.gridRowEnd,Gt.verticalAlign||(Gt.style.alignItems="center"),Gt.style.zIndex=Gt.style.zIndex?Gt.style.zIndex:"50";break}Ft--,Gt=A._getCell(g,Ft,M.colIndex)}A.isCellVisible(Gt)&&(M.style.display="none")}if(M.isColMerge){for(var St=M.colIndex-1,At=A._getCell(g,M.rowIndex,St);At&&!(St<0);){if(!At.isColMerge){At.style.gridColumnEnd=M.style.gridColumnEnd,At.align||(At.style.justifyContent="center"),At.align||(At.style.textAlign="center"),At.verticalAlign||(At.style.alignItems="center"),At.style.zIndex=At.style.zIndex?At.style.zIndex:"50";break}St--,At=A._getCell(g,M.rowIndex,St)}M.style.display="none"}if(M.align&&(M.style.justifyContent=M.align,M.style.textAlign=M.align),M.verticalAlign)switch(M.verticalAlign.toLowerCase()){case"top":M.style.alignItems="flex-start";break;case"bottom":M.style.alignItems="flex-end";break;default:M.style.alignItems="center"}M.overflowWrap&&(M.style.overflowWrap=M.overflowWrap),M.wordBreak&&(M.style.wordBreak=M.wordBreak),M.whiteSpace&&(M.style.whiteSpace=M.whiteSpace),M.backColor&&(M.style.backgroundColor=M.backColor),M.fontColor&&(M.firstChild.style.color=M.fontColor),M.fontBold&&(M.firstChild.style.fontWeight="bold"),M.fontItalic&&(M.firstChild.style.fontStyle="italic"),M.fontThruline&&(M.firstChild.style.textDecoration="line-through"),M.fontUnderline&&(M.firstChild.style.textDecoration="underline"),M.colVisible&&M.rowVisible||(M.style.display="none"),M.filter&&(M.style.display="none"),B.alterRow&&M.rowIndex%2==0?(M.classList.add(M._gridId+"_b-v-g-d-alter"),M.classList.remove(M._gridId+"_b-v-g-d")):(M.classList.add(M._gridId+"_b-v-g-d"),M.classList.remove(M._gridId+"_b-v-g-d-alter")),M.locked&&M.lockedColor?M.classList.add(M._gridId+"_b-v-g-d-locked"):M.classList.remove(M._gridId+"_b-v-g-d-locked"),M.locked&&(M.dataType==="select"&&M.firstChild&&M.firstChild.nType=="select"||M.dataType==="checkbox"&&M.firstChild&&M.firstChild.nType=="checkbox")&&(M.firstChild.disabled=!0,M.firstChild.style.pointerEvents="none"),M.untarget&&(M.dataType==="button"&&M.firstChild&&M.firstChild.nType=="button"?(M.firstChild.disabled=!0,M.firstChild.style.pointerEvents="none"):M.dataType==="link"&&M.firstChild&&M.firstChild.nType=="link"&&(M.firstChild.style.opacity="0.8",M.firstChild.style.pointerEvents="none"))}M.classList.add(M._gridId+"_v-g-d"),M.addEventListener("mouseover",function(Ct){M.untarget||M._type!=="gbd"||(M.classList.add(M._gridId+"_mouseover-cell"),M.dataType==="link"&&M.querySelectorAll("*").forEach(function(jt){jt.classList.add(M._gridId+"_mouseover-cell")}))}),M.addEventListener("mouseout",function(Ct){M.untarget||M._type!=="gbd"||(M.classList.remove(M._gridId+"_mouseover-cell"),M.dataType==="link"&&M.querySelectorAll("*").forEach(function(jt){jt.classList.remove(M._gridId+"_mouseover-cell")}))})}}(et,Ve),v.documentEvent.mousedown=function(w){v._status.activeGridEditor&&v._status.activeGridEditor!==w.target&&Ve.modifyCell(v),v._status.activeGrid&&!v._status.activeGrid.elements.grid.contains(w.target)&&(v._status.activeGrid=null)},document.removeEventListener("mousedown",v.documentEvent.mousedown),document.addEventListener("mousedown",v.documentEvent.mousedown),v.documentEvent.mouseup=function(w){v._status.mouseX=0,v._status.mouseY=0,Ve.stopScrolling(v),v._status.isDragging&&(v._status.isDragging=!1),v._status.isHeaderDragging&&(v._status.isHeaderDragging=!1)},document.removeEventListener("mouseup",v.documentEvent.mouseup),document.addEventListener("mouseup",v.documentEvent.mouseup),v.documentEvent.keydown=function(w){if(v._status.activeGrid&&!v._status.activeGridEditor){var A=v._status.activeGrid;if(!A)return;var M=A.data.id;if(A.events.onKeydownGrid(w)===!1)return w.stopPropagation(),void w.preventDefault();if(w.ctrlKey||w.metaKey)switch(w.key){case"z":case"Z":Ve.redoundo(M),w.preventDefault();break;case"y":case"Y":Ve.redoundo(M,!1),w.preventDefault();break;case"a":case"A":A.data.variables.targetCell=Ve._getCell(M,1,3),Ve.selectCells(Ve._getCell(M,1,1),Ve._getCell(M,A.methods.getRowCount(),A.methods.getColCount())),w.preventDefault()}if(A.data.gridInfo.selectionPolicy==="none"||A.data.variables.activeCells.length<=0)return;var g,y=A.data.variables.activeCells[0],B=A.data.variables.activeCells[A.data.variables.activeCells.length-1];switch(Object.keys(v.dataType).forEach(function(H){if(A.data.variables.targetCell.dataType===H&&v.dataType[H].onSelectedAndKeyDown){if(typeof v.dataType[H].onSelectedAndKeyDown!="function")throw new Error("onSelectedAndKeyDown must be a function.");if(v.dataType[H].onSelectedAndKeyDown(w,A.data.id,Ve.__getData(A.data.variables.targetCell))===!1)return}}),w.key){case"Tab":g=Ve.getTabCell(A.data.variables.targetCell,w.shiftKey),Ve.selectCell(g),w.preventDefault();break;case"F2":Ve.createGridEditor(A.data.variables.targetCell),w.preventDefault();break;case"Enter":A.data.variables.targetCell.dataType==="select"?(v._status.editOldValue=A.data.variables.targetCell.firstChild.value,A.data.variables.targetCell.firstChild.focus()):A.data.variables.targetCell.dataType==="checkbox"?(v._status.editOldValue=A.data.variables.targetCell.value,A.data.variables.targetCell.firstChild.checked=!A.data.variables.targetCell.firstChild.checked,Ve.selectAndCheckboxOnChange(A.data.variables.targetCell.firstChild),g=Ve.getMoveRowCell(A.data.variables.targetCell,1),Ve.selectCell(g),w.preventDefault()):["text","number","date","month","mask","code"].indexOf(A.data.variables.targetCell.dataType)>=0&&(Ve.createGridEditor(A.data.variables.targetCell,!0),w.preventDefault());break;case" ":if(A.data.variables.targetCell.dataType==="select"){if(A.data.variables.targetCell.untarget||A.data.variables.targetCell.locked)return void w.preventDefault();v._status.editOldValue=A.data.variables.targetCell.firstChild.value,A.data.variables.targetCell.firstChild.focus()}else if(A.data.variables.targetCell.dataType==="button")A.data.variables.targetCell.firstChild.focus();else if(A.data.variables.targetCell.dataType==="checkbox"){if(A.data.variables.targetCell.untarget||A.data.variables.targetCell.locked)return void w.preventDefault();v._status.editOldValue=A.data.variables.targetCell.value,A.data.variables.targetCell.firstChild.checked=!A.data.variables.targetCell.firstChild.checked,Ve.selectAndCheckboxOnChange(A.data.variables.targetCell.firstChild),w.preventDefault()}else["text","number","date","month","mask","code"].indexOf(A.data.variables.targetCell.dataType)>=0&&(Ve.createGridEditor(A.data.variables.targetCell),w.preventDefault());break;case"ArrowUp":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(M),A.data.variables.targetCell.rowIndex>=B.rowIndex?(g=Ve.getMoveRowCell(y,-1),Ve.selectCells(g,B,g)):(g=Ve.getMoveRowCell(B,-1),Ve.selectCells(y,g))):(g=Ve.getMoveRowCell(A.data.variables.targetCell,-1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowDown":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(M),A.data.variables.targetCell.rowIndex<=y.rowIndex?(g=Ve.getMoveRowCell(B,1),Ve.selectCells(y,g)):(g=Ve.getMoveRowCell(y,1),Ve.selectCells(g,B,g))):(g=Ve.getMoveRowCell(A.data.variables.targetCell,1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowLeft":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(M),A.data.variables.targetCell.colIndex>=B.colIndex?(g=Ve.getMoveColCell(y,-1),Ve.selectCells(g,B,g)):(g=Ve.getMoveColCell(B,-1),Ve.selectCells(y,g))):(g=Ve.getMoveColCell(A.data.variables.targetCell,-1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowRight":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(M),A.data.variables.targetCell.colIndex<=y.colIndex?(g=Ve.getMoveColCell(B,1),Ve.selectCells(y,g)):(g=Ve.getMoveColCell(y,1),Ve.selectCells(g,B,g))):(g=Ve.getMoveColCell(A.data.variables.targetCell,1),Ve.selectCell(g)),w.preventDefault()}}},document.removeEventListener("keydown",v.documentEvent.keydown),document.addEventListener("keydown",v.documentEvent.keydown),v.documentEvent.copy=function(w){if(v._status.activeGrid&&!v._status.activeGridEditor){var A=v._status.activeGrid.data.variables.activeCells;A.length>0&&(w.preventDefault(),Ve.copyGrid(A))}},document.removeEventListener("copy",v.documentEvent.copy),document.addEventListener("copy",v.documentEvent.copy),v.documentEvent.paste=function(w){v._status.activeGrid&&!v._status.activeGridEditor&&v._status.activeGrid.data.variables.activeCells.length>0&&(w.preventDefault(),Ve.pasteGrid(w,v._status.activeGrid.data.id))},document.removeEventListener("paste",v.documentEvent.paste),document.addEventListener("paste",v.documentEvent.paste),v._initialized=!0)},Ht=function(){Ze&&(Object.values(et).forEach(function(v){var w=document.getElementById(v.data.id),A=document.getElementById(v.data.id+"_styles-sheet");w&&w.parentNode.removeChild(w),A&&A.parentNode.removeChild(A),delete et[v.data.id],v=null}),document.removeEventListener("mousedown",Ze.documentEvent.mousedown),document.removeEventListener("mouseup",Ze.documentEvent.mouseup),document.removeEventListener("keydown",Ze.documentEvent.keydown),document.removeEventListener("copy",Ze.documentEvent.copy),document.removeEventListener("paste",Ze.documentEvent.paste),Ze.unmountGrid(),Ze=null)};return o})())}(fi)),fi.exports}var Na=Qd();const eu=t=>t==null,tu=()=>{let t=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e==="x"?n:n&3|8).toString(16)})},nu=t=>!t||typeof t!="string"?"":t.toLowerCase(),ou=t=>!t||typeof t!="string"?"":t.toUpperCase(),ru=(t,e)=>{if(typeof e!="string"||typeof t!="string")return null;const n=e.split(""),o=t.split("");let r="",i;return n.every((a,c)=>{switch(i=!1,a){case"A":/^[A-Z]$/.test(o[c])?(r+=o[c],i=!0):/^[a-z]$/.test(o[c])&&(r+=ou(o[c]),i=!0);break;case"a":/^[a-z]$/.test(o[c])?(r+=o[c],i=!0):/^[A-Z]$/.test(o[c])&&(r+=nu(o[c]),i=!0);break;case"9":/^[0-9]$/.test(o[c])&&(r+=o[c],i=!0);break;default:a===o[c]&&(r+=o[c],i=!0);break}return i}),r},iu=t=>(t=String(t),t.replace(/[^0-9]/g,"")),au=t=>t<768?"mb":t<1200?"tb":t<1980?"pc":"wd",lu=(t,e)=>Array.from(t).find(n=>n.startsWith(`hison-${e}-`)),su=(t,e)=>{const n=lu(t,e);if(n){const o=n.split("-");if(o.length>=3)return o[2]}return null},js=(t,e)=>t.findIndex(n=>n.startsWith(`hison-${e}-`)),Ws=t=>t?typeof t=="string"?t:Array.isArray(t)?t.map(Ws).filter(Boolean).join(" "):typeof t=="object"?Object.keys(t).filter(e=>!!t[e]).join(" "):"":"",cu=(t,e)=>{const n=t.trim().split(/\s+/),o={},r=[];for(const a of n){const c=a.match(/^(hison-(color|size|col|pos|layout-vertical-align)-[\w]+?)(?:-(mb|tb|pc|wd))?$/);if(c){const m=c[1],C=c[2],L=c[3];o[C]||(o[C]={}),L?o[C][L]=m:o[C].default=m}else r.push(a)}const i=[];for(const a of Object.values(o)){const c=a[e]||(e==="mb"?a.tb:void 0)||(e==="tb"?a.mb:void 0)||(e==="pc"?a.wd:void 0)||(e==="wd"?a.pc:void 0)||a.default;c&&i.push(c)}return[...r,...i].filter(Boolean)},du=(t,e,n)=>{const o=js(t,e);o!==-1?t[o]=t[o]:t.push(`hison-${e}-${n}`)},uu=(t,e)=>{if(!t||!e)return[];const n=`hison-${e}-`;return t.trim().split(/\s+/).filter(o=>o.startsWith(n))},Li=t=>/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t),qs=t=>/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(\s*,\s*(0|1|0?\.\d+))?\s*\)$/.test(t),Sl=t=>typeof t=="number"&&isFinite(t),te={event:{cssEvent:{}}},fu=t=>{let e,n,o;if(t.length===4)e=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),o=parseInt(t[3]+t[3],16);else if(t.length===7)e=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);else throw new Error(`Invalid hex color format: ${t}`);return`rgba(${e}, ${n}, ${o}, 1)`},hu=t=>{const e=t.replace(/\s+/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?.*\)$/i);if(!e)throw new Error(`Invalid rgba color format: ${t}`);const n=parseInt(e[1],10),o=parseInt(e[2],10),r=parseInt(e[3],10),i=a=>{const c=a.toString(16);return c.length===1?"0"+c:c};return`#${i(n)}${i(o)}${i(r)}`},cn=t=>{if(Li(t))return t.replace(/\s+/g,"");if(qs(t))return hu(t);throw new Error(`Invalid color format: ${t}`)},$t=t=>{if(Li(t))return fu(t);if(qs(t))return t.replace(/\s+/g,"");throw new Error(`Invalid color format: ${t}`)},vo=(t,e,n)=>{if(!Sl(e))throw new Error("add must be valid numbers");if(n&&!Sl(n))throw new Error("newOpacity must be valid numbers");const o=(K,X,ee)=>Math.min(Math.max(K,X),ee),r=t.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/i);if(!r)throw new Error("Invalid rgba color format");let[,i,a,c,m]=r;n||(n=Number(m));const C=o(parseInt(i)+e,0,255),L=o(parseInt(a)+e,0,255),P=o(parseInt(c)+e,0,255),W=o(n,0,1);return`rgba(${C},${L},${P},${W})`},Kt=t=>{const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)\)$/);if(!e)throw new Error("Invalid RGBA format.");const[,n,o,r,i]=e.map(Number),a=255-n,c=255-o,m=255-r;return`rgba(${a}, ${c}, ${m}, ${i})`},$s=t=>{const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)\)$/);if(!e)throw new Error("Invalid RGBA format.");const[,n,o,r,i]=e.map(Number);return i<=.5?!1:n+o+r>385},mu=t=>{switch(t){case"primary":return cn(te.componentStyle.primaryColor);case"muted":return cn(te.componentStyle.mutedColor);case"info":return cn(te.componentStyle.infoColor);case"success":return cn(te.componentStyle.successColor);case"danger":return cn(te.componentStyle.dangerColor);case"warning":return cn(te.componentStyle.warningColor);case"custom1":return cn(te.componentStyle.custom1Color);case"custom2":return cn(te.componentStyle.custom2Color);case"custom3":return cn(te.componentStyle.custom3Color);case"custom4":return cn(te.componentStyle.custom4Color);case"custom5":return cn(te.componentStyle.custom5Color)}return null},gu=t=>{switch(t){case"primary":return te.componentStyle.primaryColor;case"muted":return te.componentStyle.mutedColor;case"info":return te.componentStyle.infoColor;case"success":return te.componentStyle.successColor;case"danger":return te.componentStyle.dangerColor;case"warning":return te.componentStyle.warningColor;case"custom1":return te.componentStyle.custom1Color;case"custom2":return te.componentStyle.custom2Color;case"custom3":return te.componentStyle.custom3Color;case"custom4":return te.componentStyle.custom4Color;case"custom5":return te.componentStyle.custom5Color}return""},pu=t=>$s(t)?Ja:Za,gn=(t,e)=>{t.buttonColor=e,t.borderColor=vo(e,-31),t.shadowColor=vo(e,-47),t.hoverColor=vo(e,-24),t.activeColor=vo(e,-24),t.rowHoverColor=vo(e,64,.2),t.stripeColor=vo(e,64,.1),t.emptyTextColor=e,t.filledTextColor=pu(e)},yu=(t,e)=>t.replace(/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([0-9.]+)\s*\)/i,(n,o,r,i)=>`rgba(${o},${r},${i},${e})`),Ni=new Map,_u=(t,e)=>{Ni.set(t,e)},vu=t=>{Ni.delete(t)},bu=()=>{for(const t of Ni.values())t()},Cu=t=>{const e=Ni.get(t);e&&e()};var Pn=(t=>(t.xs="xs",t.s="s",t.m="m",t.l="l",t.xl="xl",t))(Pn||{}),Ys=(t=>(t.primary="primary",t.muted="muted",t.info="info",t.success="success",t.danger="danger",t.warning="warning",t.custom1="custom1",t.custom2="custom2",t.custom3="custom3",t.custom4="custom4",t.custom5="custom5",t))(Ys||{}),hi={exports:{}},xu=hi.exports,Il;function Mu(){return Il||(Il=1,function(t,e){(function(n,o){t.exports=o()})(typeof self<"u"?self:typeof So<"u"?So:xu,()=>(()=>{var n={d:(f,h)=>{for(var k in h)n.o(h,k)&&!n.o(f,k)&&Object.defineProperty(f,k,{enumerable:!0,get:h[k]})},o:(f,h)=>Object.prototype.hasOwnProperty.call(f,h),r:f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}},o={};n.r(o),n.d(o,{NoteModeByDevice:()=>i,ToolPosition:()=>r,getVanillanote:()=>yn,getVanillanoteConfig:()=>Fn});var r=function(f){return f.top="TOP",f.bottom="BOTTOM",f}({}),i=function(f){return f.adaptive="ADAPTIVE",f.mobile="MOBILE",f.desktop="DESKTOP",f}({}),a=function(f){for(var h=f;!(h instanceof Element);)h=h.parentNode;return h.closest?h.closest("[data-vanillanote]"):null},c=function(f,h,k){return f+"_"+h+"_"+k},m=function(f,h,k){return f+"_"+h+"_"+k},C=function(f){return f+"_eventChildren"},L=function(f){return f+"_eventOnOverCssElement"},P=function(f){return f+"_eventClickCssElement"},W=function(){var f=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(f+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(h){var k=(f+16*Math.random())%16|0;return f=Math.floor(f/16),(h==="x"?k:3&k|8).toString(16)})},K=function(f){if(!f)return null;for(var h,k=f instanceof Element?f:f.parentNode;!k.hasAttribute("data-note-id")&&(k=k.parentNode)&&k.hasAttribute;);return k&&k.hasAttribute&&k.hasAttribute("data-note-id")&&(h=k.getAttribute("data-note-id")),h},X=function(){var f,h=navigator;if(((f=h.userAgentData)===null||f===void 0?void 0:f.mobile)!==void 0)return h.userAgentData.mobile;var k=navigator.userAgent;return/iPhone|iPad|iPod|Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(k)},ee=function(f){return/^[0-9]+$/.test(f)},ie=function(f){return f==="-"||!isNaN(f)},fe=function(f){return/^[0-9A-Fa-f]*$/.test(f)},pe=function(f){var h=f.match(/-?\d+\.?\d*/);return h?Number(parseFloat(h[0])):null},Me=function(f,h){var k=Object.keys(f),be=Object.keys(h);if(k.length!==be.length)return!1;for(var Be=0;Be<k.length;Be++)if(!be.includes(k[Be])||f[k[Be]]!==h[k[Be]])return!1;return!0},Ie=function(f,h){var k={};for(var be in f)f.hasOwnProperty(be)&&(k[be]=f[be]);for(var Be in h)h.hasOwnProperty(Be)&&(k[Be]=h[Be]);return k},ve=function(f){var h,k,be=new Object;if(!f)return be;h=f.trim().split(";");for(var Be=0;Be<h.length;Be++)h[Be]&&((k=h[Be].split(":")).length<2||(be[k[0].trim()]=k[1].trim()));return be},Ee=function(f){var h="";if(!f||f.constructor!==Object||Object.keys(f).length===0)return h;for(var k=Object.entries(f),be=0;be<k.length;be++)k[be].length<2||(h+=k[be][0].trim()+":"+k[be][1].trim()+";");return h},xe=function(f,h){if(!h||h.constructor!==Object)return f;for(var k=Object.keys(h),be=0;be<k.length;be++)f.setAttribute(k[be],h[k[be]]);return f},ke=function(f,h){if(!f||!h||(h=h.toUpperCase(),f[0]!=="#"&&(f="#"+f),!/^#([0-9A-Fa-f]{6})$/.test(f)))return"33";var k=h==="R"?1:h==="G"?3:5;return f.substring(k,k+2)},Te=function(f,h){return"rgba("+parseInt(ke(f,"R"),16)+","+parseInt(ke(f,"G"),16)+","+parseInt(ke(f,"B"),16)+","+h+")"},We=function(f){if(f.startsWith("#"))return f;if(!f.startsWith("rgba"))return null;var h=f.match(/\d+/g).map(Number),k=h[0].toString(16),be=h[1].toString(16),Be=h[2].toString(16);return k.length==1&&(k="0"+k),be.length==1&&(be="0"+be),Be.length==1&&(Be="0"+Be),"#"+k+be+Be},nt=function(f){if(!f||f.startsWith("#"))return null;var h=f.match(/\d+/g);if(!h)return null;var k=h.map(Number);return k.length<4?"1":k[3].toString()},De=function(f){if(/^#[0-9a-fA-F]{6}$/.test(f))return f;var h=document.createElement("div");h.style.color=f,document.body.appendChild(h);var k=window.getComputedStyle(h).color;document.body.removeChild(h);var be=k.match(/\d+/g);return"#"+((1<<24)+(+be[0]<<16)+(+be[1]<<8)+ +be[2]).toString(16).slice(1)},ot=function(f,h){f.startsWith("#")&&(f=f.slice(1));var k=parseInt(h,16);h.startsWith("-")&&(k=-parseInt(h.slice(1),16));var be=parseInt(f.slice(0,2),16)+k,Be=parseInt(f.slice(2,4),16)+k,tt=parseInt(f.slice(4,6),16)+k;return"#"+(be=(be<0?0:be>255?255:be).toString(16).padStart(2,"0"))+(Be=(Be<0?0:Be>255?255:Be).toString(16).padStart(2,"0"))+(tt<0?0:tt>255?255:tt).toString(16).padStart(2,"0")},mt=function(f){f.startsWith("#")&&(f=f.slice(1));var h=255-parseInt(f.slice(0,2),16),k=255-parseInt(f.slice(2,4),16),be=255-parseInt(f.slice(4,6),16);return k=k<127.5?k+16:k-16,be=be<127.5?be+16:be-16,"#"+(h=((h=h<127.5?h+16:h-16)<0?0:h>255?255:h).toString(16).padStart(2,"0"))+(k=(k<0?0:k>255?255:k).toString(16).padStart(2,"0"))+(be<0?0:be>255?255:be).toString(16).padStart(2,"0")},Qe=function(f){var h={color1:"",color2:"",color3:"",color4:"",color5:"",color6:"",color7:"",color8:"",color9:"",color10:"",color11:"",color12:"",color13:"",color14:"",color15:"",color16:"",color17:"",color18:"",color19:"",color20:""};return function(k){if(!/^#([0-9a-fA-F]{6})$/.test(k))throw new Error("Invalid HEX color format: ".concat(k));return parseInt(k.slice(1,3),16)+parseInt(k.slice(3,5),16)+parseInt(k.slice(5,7),16)>385?"light":"dark"}(f=De(f))==="light"?(h.color1="#333333",h.color2="#ffffff",h.color3=ot(f,"18"),h.color4=f,h.color5=ot(f,"-18"),h.color6=ot(f,"-1f"),h.color7=ot(f,"-2f"),h.color8="#609966",h.color9="#df2e38",h.color10="#333333",h.color11="#666666",h.color12="#333333",h.color13="#ffffff",h.color14="#ff7f7f",h.color15="#ffad66",h.color16="#ffff66",h.color17="#99ff99",h.color18="#99ccff",h.color19="#6699cc",h.color20="#cc99cc"):(h.color1="#ffffff",h.color2="#ffffff",h.color3=ot(f,"18"),h.color4=f,h.color5=ot(f,"-18"),h.color6=ot(f,"-1f"),h.color7=ot(f,"-2f"),h.color8="#609966",h.color9="#df2e38",h.color10="#333333",h.color11="#666666",h.color12="#333333",h.color13="#ffffff",h.color14="#b70404",h.color15="#e55807",h.color16="#f1c93b",h.color17="#1a5d1a",h.color18="#068fff",h.color19="#0c134f",h.color20="#5c469c"),h};function ut(f){return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},ut(f)}function Ye(f,h){return function(k){if(Array.isArray(k))return k}(f)||function(k,be){var Be=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(Be!=null){var tt,Ge,j,E,s=[],l=!0,I=!1;try{if(j=(Be=Be.call(k)).next,be!==0)for(;!(l=(tt=j.call(Be)).done)&&(s.push(tt.value),s.length!==be);l=!0);}catch($){I=!0,Ge=$}finally{try{if(!l&&Be.return!=null&&(E=Be.return(),Object(E)!==E))return}finally{if(I)throw Ge}}return s}}(f,h)||function(k,be){if(k){if(typeof k=="string")return Je(k,be);var Be={}.toString.call(k).slice(8,-1);return Be==="Object"&&k.constructor&&(Be=k.constructor.name),Be==="Map"||Be==="Set"?Array.from(k):Be==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Be)?Je(k,be):void 0}}(f,h)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
48
|
+
`):"",M.setGridDataRowCol(ce,H,re),re!==1){if(!me[H-1]){for(var Q=H-2;Q>=0;Q--)me[Q]&&(ce.isRowMerge=!0);if(!ce.isRowMerge)for(var u=re-2;u>=0;u--)y.data.colInfos[u].header.split(";")[H-1]&&(ce.isColMerge=!0)}}else H!==1&&(ce.isRowMerge=!0);ce.addEventListener("mousemove",function(ye){var Se=ye.target,ze=Se._gridId;if(ze){var je=A[ze];if(je&&(Se.style.cursor&&Se.style.removeProperty("cursor"),je.data.gridInfo.resizable&&Se._type==="ghd")){var Ue,it,rt=Se.getBoundingClientRect(),ct=rt.left,Ne=rt.right,Pe=ye.clientX;if(Pe-ct<20){if(Se.colIndex<=3||Se._frozenCol)return;for(var lt=Se.colIndex-1;lt>1&&(it=M._getHeaderCell(ze,1,lt)).colVisible!==!0;lt--);if(!it.resizable)return;Se.style.cursor="ew-resize",w._status.onHeaderDragging=!0,w._status.isHeaderDragging&&(Ue=Pe-w._status.mouseX,M.modifyColSize(it,Ue),w._status.mouseX=Pe)}else if(Ne-Pe<20){if(Se.colIndex<3||Se._frozenCol)return;for(var le=Se.colIndex;le>1&&(it=M._getHeaderCell(ze,1,le)).colVisible!==!0;le--);if(!it.resizable)return;Se.style.cursor="ew-resize",w._status.onHeaderDragging=!0,w._status.isHeaderDragging&&(Ue=Pe-w._status.mouseX,M.modifyColSize(it,Ue),w._status.mouseX=Pe)}else Se.style.cursor="",w._status.onHeaderDragging=!1}}}),ce.addEventListener("mousedown",function(ye){w._status.mouseX=ye.clientX,w._status.onHeaderDragging&&(w._status.isHeaderDragging=!0)}),q.push(ce),re++}}catch(ye){de.e(ye)}finally{de.f()}y.elements.gridHeader._gridHeaderCells.push(q)}var b,_=ge(y.elements.gridHeader._gridHeaderCells);try{for(_.s();!(b=_.n()).done;){var R,F=ge(b.value);try{for(F.s();!(R=F.n()).done;){var D=R.value;y.elements.gridHeader.append(D),M.connectedGridData(D)}}catch(ye){F.e(ye)}finally{F.f()}}}catch(ye){_.e(ye)}finally{_.f()}var z=y.elements.gridHeader._gridHeaderCells;z.forEach(function(ye){ye.forEach(function(Se,ze){if(y.data.gridInfo.sortable&&Object.keys(y.data.variables.sortToggle).length>0&&B===Se.rowIndex)for(var je=B;je>0;je--){var Ue=z[je-1][ze];if(!Ue.isRowMerge&&!Ue.isColMerge&&y.data.variables.sortToggle[Ue.colId]!==void 0){var it=M.getSortSpan(y.data.id,Ue.colId);Ue.append(it);break}}y.data.gridInfo.filterable&&y.data.variables.filters.length>0&&Se.filterable&&Se._filterSelector&&y.data.variables.filters.forEach(function(rt){Se.colId===rt.colId&&(Se._filterSelector.style.display="block",requestAnimationFrame(function(){Array.from(Se._filterSelector.options).some(function(ct){return ct.value===rt.value})&&(Se._filterSelector.value=rt.value)}))})})})},M._getHeaderRow=function(g,y){return mt(A[g].elements.gridHeader._gridHeaderCells,y-1)},M._getHeaderCell=function(g,y,B){if(typeof B=="number")return mt(M._getHeaderRow(g,y),B-1);var H,U=ge(M._getHeaderRow(g,y));try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(re){U.e(re)}finally{U.f()}throw new Error("There is no "+(typeof B=="number"?B+"th":B)+" colunm.")},M._getHeaderCells=function(g){return A[g].elements.gridHeader._gridHeaderCells},M.__getHeaderFilter=function(g,y){var B,H,U=M.__getColIndex(g,y),q=A[g];if(!q.data.colInfos[U-1].filterable)return null;for(var re=1;re<=q.methods.getHeaderRowCount();re++)if((B=M._getHeaderCell(g,re,U))&&(H=B.querySelectorAll("."+g+"_filterSelect"))[0])return H[0];return null},M.__loadFooter=function(g){var y=A[g];Qe(y.elements.gridFooter),y.elements.gridFooter._gridFooterCells.length=0;for(var B=1;B<=y.methods.getFooterRowCount();B++){var H,U=[],q=1,re=ge(y.data.colInfos);try{for(re.s();!(H=re.n()).done;){var de=H.value,he=document.createElement("div");he._gridId=g,he._type="gfd",he.rowVisible=!0,he.filter=!1,M.setCellDataFromColInfo(he,de),M.setGridDataRowCol(he,B,q),U.push(he),q++}}catch(_){re.e(_)}finally{re.f()}y.elements.gridFooter._gridFooterCells.push(U)}var ce,me=ge(y.elements.gridFooter._gridFooterCells);try{for(me.s();!(ce=me.n()).done;){var Q,u=ge(ce.value);try{for(u.s();!(Q=u.n()).done;){var b=Q.value;y.elements.gridFooter.append(b),M.connectedGridData(b)}}catch(_){u.e(_)}finally{u.f()}}}catch(_){me.e(_)}finally{me.f()}},M._getFooterRow=function(g,y){var B=A[g];return mt(B.elements.gridFooter._gridFooterCells,y-1)},M._getFooterCell=function(g,y,B){if(typeof B=="number")return mt(M._getFooterRow(g,y),B-1);var H,U=ge(M._getFooterRow(g,y));try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(re){U.e(re)}finally{U.f()}throw new Error("There is no "+(typeof B=="number"?B+"th":B)+" colunm.")},M._getFooterCells=function(g){return A[g].elements.gridFooter._gridFooterCells},M._getRow=function(g,y){return A[g].elements.gridBody._gridBodyCells[y-1]},M._getCell=function(g,y,B){try{if(typeof B=="number")return A[g].elements.gridBody._gridBodyCells[y-1][B-1];var H,U=ge(A[g].elements.gridBody._gridBodyCells[y-1]);try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(re){U.e(re)}finally{U.f()}}catch{return null}return null},M._getCells=function(g){return A[g].elements.gridBody._gridBodyCells},M.__gridBodyCellsReConnected=function(g){if(A[g].data.variables.isDrawable){var y,B=ge(A[g].elements.gridBody._gridBodyCells);try{for(B.s();!(y=B.n()).done;){var H,U=ge(y.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;M.reConnectedCallbackElement(q)}}catch(re){U.e(re)}finally{U.f()}}}catch(re){B.e(re)}finally{B.f()}}},M.__mountGridBodyCell=function(g){var y=A[g];if(y.data.variables.isDrawable){Qe(y.elements.gridBody);var B,H=ge(y.elements.gridBody._gridBodyCells);try{for(H.s();!(B=H.n()).done;){var U,q=ge(B.value);try{for(q.s();!(U=q.n()).done;){var re=U.value;y.elements.gridBody.append(re),M.connectedGridData(re)}}catch(de){q.e(de)}finally{q.f()}}}catch(de){H.e(de)}finally{H.f()}M.reloadGridForMerge(g),y.methods.reloadFilterValue(),y.methods.reloadFooterValue()}},M.__clear=function(g){var y=A[g];y.elements.gridBody._gridBodyCells.length=0,y.data.variables.activeRows=[],y.data.variables.activeCols=[],y.data.variables.activeCells=[],y.data.variables.targetCell=null,y.data.variables.records=[],y.data.variables.recordseq=0},M.__checkRowIndex=function(g,y){if(!(y=xe(y))||y<1||y>A[g].methods.getRowCount())throw new Error("Please insert a row of valid range.")},M.__checkColRownumOrStatus=function(g){if(typeof g=="number"){if(g<=2)throw new Error("The row number or status columns info cannot be modified.")}else if(g==="v-g-rownum"||g==="v-g-status")throw new Error("The row number or status columns info cannot be modified.")},M.__checkColIndex=function(g,y){if(!(y=xe(y))||y<1||y>A[g].methods.getColCount())throw new Error("Please insert a col of valid range.")},M.___getDatasWithoutExceptedProperty=function(g){var y,B,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=[],q=ge(A[g].elements.gridBody._gridBodyCells);try{for(q.s();!(B=q.n()).done;){var re=B.value;y=[];var de,he=ge(re);try{for(he.s();!(de=he.n()).done;){var ce=de.value,me=M.__getData(ce,H);y.push(me)}}catch(Q){he.e(Q)}finally{he.f()}U.push(y)}}catch(Q){q.e(Q)}finally{q.f()}return U},M._doFilter=function(g){var y,B=A[g];if(B.data.variables.filters=[],B.elements.gridHeader.querySelectorAll("."+g+"_filterSelect").forEach(function(U){U.value!=="$$ALL"&&(y={colId:U.colId,value:U.value},M.__getColInfo(g,U.parentNode.parentNode.colIndex).filterValue=U.value,y.value!=="$$NULL"&&y.value!==null&&y.value!==void 0&&y.value!==""||(y.value=B.data.gridInfo.nullValue),B.data.variables.filters.push(y))}),B.data.variables.filters.length===0)M._getCells(g).forEach(function(U){U.forEach(function(q){q.filter=!1})});else{var H=1;M._getCells(g).forEach(function(U){var q=!1;U.forEach(function(re){B.data.variables.filters.forEach(function(de){if(re.colId===de.colId){var he=M.getTextFromCell(re);Object.keys(w.dataType).forEach(function(ce){if(re.dataType===ce&&w.dataType[ce].getFilterValue){if(typeof w.dataType[ce].getFilterValue!="function")throw new Error("getFilterValue must be a function.");he=w.dataType[ce].getFilterValue(g,re.value)}}),he!=de.value&&(q=!0)}})}),M._getRow(g,H).forEach(function(re){re.filter=q}),H++})}B.methods.load(B.methods.getDatas())},M.__gridCellReConnectedWithControlSpan=function(g){if(M.reConnectedCallbackElement(g),g.rowSpan)for(var y=g.rowIndex+1;y<g.rowIndex+g.rowSpan;y++)M.__gridCellReConnectedWithControlSpan(M._getCell(g._gridId,y,g.colIndex));if(g.colSpan)for(var B=g.colIndex+1;B<g.colIndex+g.colSpan;B++)M.__gridCellReConnectedWithControlSpan(M._getCell(g._gridId,g.rowIndex,B))},M.__getCellData=function(g,y){var B={};return M.setCellDataFromColInfo(B,g),B.value=null,B.rowIndex=y,B.filter=!1,B.rowVisible=!0,B},M.__getData=function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B={value:ot(g.value),colId:g.colId,rowIndex:g.rowIndex,colIndex:g.colIndex,name:g.name,untarget:g.untarget,rowMerge:g.rowMerge,colMerge:g.colMerge,colVisible:g.colVisible,required:g.required,resizable:g.resizable,sortable:g.sortable,filterable:g.filterable,originWidth:g.originWidth,dataType:g.dataType,selectSize:g.selectSize,locked:g.locked,lockedColor:g.lockedColor,format:g.format,codes:ot(g.codes),defaultCode:g.defaultCode,maxLength:g.maxLength,maxByte:g.maxByte,maxNumber:g.maxNumber,minNumber:g.minNumber,roundNumber:g.roundNumber,align:g.align,verticalAlign:g.verticalAlign,overflowWrap:g.overflowWrap,wordBreak:g.wordBreak,whiteSpace:g.whiteSpace,backColor:g.backColor,fontColor:g.fontColor,fontBold:g.fontBold,fontItalic:g.fontItalic,fontThruline:g.fontThruline,fontUnderline:g.fontUnderline,filter:g.filter};return B.text=M.getTextFromCell(g),g.rowSpan&&(B.rowSpan=g.rowSpan),g.colSpan&&(B.colSpan=g.colSpan),g.isRowMerge&&(B.isRowMerge=g.isRowMerge),g.isColMerge&&(B.isColMerge=g.isColMerge),g.rowVisible&&(B.rowVisible=g.rowVisible),y&&(y.indexOf("untarget")>=0&&(B.untarget=null),y.indexOf("colVisible")>=0&&(B.colVisible=null),y.indexOf("rowVisible")>=0&&(B.rowVisible=null),y.indexOf("required")>=0&&(B.required=null),y.indexOf("resizable")>=0&&(B.resizable=null),y.indexOf("originWidth")>=0&&(B.originWidth=null),y.indexOf("dataType")>=0&&(B.dataType=null),y.indexOf("selectSize")>=0&&(B.selectSize=null),y.indexOf("locked")>=0&&(B.locked=null),y.indexOf("lockedColor")>=0&&(B.lockedColor=null),y.indexOf("format")>=0&&(B.format=null),y.indexOf("codes")>=0&&(B.codes=null),y.indexOf("defaultCode")>=0&&(B.defaultCode=null),y.indexOf("maxLength")>=0&&(B.maxLength=null),y.indexOf("maxByte")>=0&&(B.maxByte=null),y.indexOf("maxNumber")>=0&&(B.maxNumber=null),y.indexOf("minNumber")>=0&&(B.minNumber=null),y.indexOf("roundNumber")>=0&&(B.roundNumber=null),y.indexOf("align")>=0&&(B.align=null),y.indexOf("verticalAlign")>=0&&(B.verticalAlign=null),y.indexOf("backColor")>=0&&(B.backColor=null),y.indexOf("fontColor")>=0&&(B.fontColor=null),y.indexOf("fontBold")>=0&&(B.fontBold=null),y.indexOf("fontItalic")>=0&&(B.fontItalic=null),y.indexOf("fontThruline")>=0&&(B.fontThruline=null),y.indexOf("fontUnderline")>=0&&(B.fontUnderline=null),y.indexOf("filter")>=0&&(B.filter=null),y.indexOf("value")>=0&&(B.value=null)),B},M.__setCellData=function(g,y,B,H){var U=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];M.__checkRowIndex(g,y);var q=M.__getColIndex(g,B,!0);if(q<=2){if(U)throw new Error("The row number or status columns are immutable.");return!1}var re=M._getCell(g,y,q);if(H.untarget&&(re.untarget=H.untarget),H.dataType){if(![].concat(ae(Object.keys(W)),ae(Object.keys(w.dataType))).includes(H.dataType))throw new Error("Please insert a valid dataType.");re.dataType=H.dataType}return H.selectSize&&(re.selectSize=H.selectSize),H.locked&&(re.locked=H.locked),H.lockedColor&&(re.lockedColor=H.lockedColor),H.format&&(re.format=H.format),H.codes&&(re.codes=H.codes),H.defaultCode&&(re.defaultCode=H.defaultCode),H.maxLength&&(re.maxLength=H.maxLength),H.maxByte&&(re.maxByte=H.maxByte),H.maxNumber&&(re.maxNumber=H.maxNumber),H.minNumber&&(re.minNumber=H.minNumber),H.roundNumber&&(re.roundNumber=H.roundNumber),H.align&&(re.align=H.align),H.verticalAlign&&(re.verticalAlign=H.verticalAlign),H.overflowWrap&&(re.overflowWrap=H.overflowWrap),H.wordBreak&&(re.wordBreak=H.wordBreak),H.whiteSpace&&(re.whiteSpace=H.whiteSpace),H.backColor&&(re.backColor=H.backColor),H.fontColor&&(re.fontColor=H.fontColor),H.fontBold&&(re.fontBold=H.fontBold),H.fontItalic&&(re.fontItalic=H.fontItalic),H.fontThruline&&(re.fontThruline=H.fontThruline),H.fontUnderline&&(re.fontUnderline=H.fontUnderline),H.value&&(re.value=H.value),M.reConnectedCallbackElement(re),M.reloadGridWithModifyCell(g,re.colIndex),!0},M._getDataTypeStyle=function(){var g={};return Object.keys(w.dataType).forEach(function(y){w.dataType[y].cellStyle&&(g[y]=w.dataType[y].cellStyle)}),g},M._getFilterSpan=function(){return w.elements.filterSpan},M._getFooterFormula=function(){return ot(w.footerFormula)},M._getColDefaultAlign=function(g){switch(g){case"text":case"mask":return r.left;case"number":return r.right;case"date":case"month":case"select":case"checkbox":case"button":case"link":case"code":return r.center;default:return w.attributes.defaultColInfo.align}}}(v,et,Ve),function(w,A,M){M.isCellVisible=function(g){return!!g&&!(g.colVisible===!1||g.rowVisible===!1||g.filter===!0)},M.getFirstCellValidNumber=function(g){for(var y,B,H=g._gridId,U=1;U<A[H].methods.getRowCount();U++)if(B=M._getCell(H,U,g.colIndex),M.isCellVisible(B)&&(y=Et(B.value)))return y;return null},M.removeGridEditor=function(){if(!w._status.activeGridEditor)return!1;var g=w._status.activeGridEditor.targetCell,y=g._gridId;return A[y].events.onEditEnding(g.rowIndex,g.colId,w._status.editOldValue,w._status.editNewValue),g.style.padding="",g.style.fontSize="",w._status.activeGridEditor.parentNode.removeChild(w._status.activeGridEditor),w._status.activeGridEditor=null,!0},M.addBagicEventListenerToGridEditor=function(g){g.addEventListener("keydown",function(y){var B,H=w._status.activeGrid,U=H.data.variables.targetCell;if(H.events.onKeydownEditor(y)===!1)return y.stopPropagation(),void y.preventDefault();switch(y.key){case"Enter":y.shiftKey||(M.modifyCell(w),B=M.getMoveRowCell(U,1),M.selectCell(B),y.stopPropagation(),y.preventDefault());break;case"Escape":w._status.editNewValue=w._status.editOldValue,M.removeGridEditor(),y.stopPropagation(),y.preventDefault();break;case"Tab":M.modifyCell(w),B=M.getTabCell(U,y.shiftKey),M.selectCell(B),y.stopPropagation(),y.preventDefault();break;case"F2":M.modifyCell(w),y.stopPropagation(),y.preventDefault()}}),g.addEventListener("input",function(y){w._status.activeGrid.events.onInputEditor(y)})},M.setBagicAttributesToGridEditor=function(g,y){g._gridId=y._gridId,g.targetCell=y,g.style.width=y.offsetWidth+"px",g.style.height=y.scrollHeight+g.offsetHeight-g.clientHeight+"px",g.classList.add(g._gridId+"_editor")},M.createGridEditorTextarea=function(g){var y=document.createElement("textarea");M.setBagicAttributesToGridEditor(y,g),y.placeholder,y.classList.add(y._gridId+"_editor_textarea");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,y.value=w._status.editOldValue,y.addEventListener("input",function(H){H.target.style.height=H.target.scrollHeight+y.offsetHeight-y.clientHeight+"px"},!1),y.addEventListener("keyup",function(H){H.target.value&&H.target.parentNode&&H.target.parentNode.maxLength&&(H.target.value=H.target.value.substring(0,H.target.parentNode.maxLength)),H.target.value&&H.target.parentNode&&H.target.parentNode.maxByte&&(H.target.value=De(H.target.value,H.target.parentNode.maxByte,w.checkByte))},!1),M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorNumber=function(g){var y=document.createElement("input");M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_number"),y.setAttribute("type","number");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,y.value=w._status.editOldValue,M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorDate=function(g){var y=document.createElement("input");return M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_date"),y.setAttribute("type","date"),w._status.editOldValue=M.getDateWithInputDateFormat(g.value),y.value=w._status.editOldValue,M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorMonth=function(g){var y=document.createElement("input");return M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_month"),y.setAttribute("type","month"),w._status.editOldValue=M.getDateWithInputMonthFormat(g.value),y.value=w._status.editOldValue,M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorMask=function(g){var y=document.createElement("input");M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_mask"),y.setAttribute("type","text");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,y.value=w._status.editOldValue,y.addEventListener("keyup",function(H){H.target.value=M.getMaskValue(H.target.targetCell.format,H.target.value)}),M.addBagicEventListenerToGridEditor(y),y},M.createGridEditorCode=function(g){var y=document.createElement("input");M.setBagicAttributesToGridEditor(y,g),y.classList.add(y._gridId+"_editor_code"),y.setAttribute("type","text");var B=g.value;return w._status.editOldValue=B,y.value=w._status.editOldValue,M.addBagicEventListenerToGridEditor(y),y},M.createGridEditor=function(g){var y=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!(g.locked||g.untarget||["select","checkbox","button","link"].indexOf(g.dataType)>=0)){var B;switch(M.removeGridEditor(),g.dataType){case"text":B=M.createGridEditorTextarea(g);break;case"number":B=M.createGridEditorNumber(g);break;case"date":B=M.createGridEditorDate(g);break;case"month":B=M.createGridEditorMonth(g);break;case"mask":B=M.createGridEditorMask(g);break;case"code":B=M.createGridEditorCode(g);break;default:Object.keys(w.dataType).forEach(function(H){if(g.dataType===H&&w.dataType[H].getEditor){if(typeof w.dataType[H].getEditor!="function")throw new Error("getEditor must be a function.");if(B=w.dataType[H].getEditor(g,g._gridId,M.__getData(g),function(){M.modifyCell(w)},function(){w._status.editNewValue=w._status.editOldValue,M.removeGridEditor()})){if(!(B instanceof HTMLElement)||B.nodeType!==1)throw new Error("getEditor must return an html element.");B._gridId=g._gridId,B.targetCell=g,B.classList.add(B._gridId+"_editor_"+H),B.classList.add(B._gridId+"_editor"),w._status.editOldValue=g.value}}})}A[g._gridId].events.onBeforeEditEnter(g.rowIndex,g.colId,B)!==!1&&B&&(g.style.padding="0",g.style.fontSize="0px",g.appendChild(B),B.focus(),y&&B.select(),w._status.activeGridEditor=B,A[g._gridId].events.onAfterEditEnter(g.rowIndex,g.colId,B))}},M.getValidValue=function(g,y){var B=_e(A[g._gridId].data.gridInfo.nullValue,null);if(!g)return null;if(g.dataType!=="code"&&(y==null||y===""||y===B))return B;switch(g.dataType){case"text":return g.maxLength&&(y=y.substring(0,g.maxLength)),g.maxByte&&(y=De(y,g.maxByte,w.checkByte)),y;case"mask":return _e(M.getMaskValue(g.format,y),B);case"date":return _e(M.getDateWithValueDateFormat(y),B);case"month":return _e(M.getDateWithValueMonthFormat(y),B);case"number":if((y=Et(y))===null)return B;var H=g.maxNumber,U=g.minNumber,q=g.roundNumber;H!=null&&typeof H=="number"&&y>H&&(y=H),U!=null&&typeof U=="number"&&y<U&&(y=U);var re=parseFloat(y);if(q==null||typeof q!="number")return Number(y);if(q>=0){var de=re.toFixed(q);return de=(de=de.replace(/(\.[0-9]*?)0+$/,"$1")).replace(/\.$/,""),Number(de)}var he=Math.pow(10,-q);return Number((Math.round(re/he)*he).toFixed(-q));case"select":case"button":case"link":return y;case"checkbox":return typeof y=="boolean"?y:A[g._gridId].data.gridInfo.checkedValue===y;case"code":return M.getCodeValue(g.codes,g.defaultCode,y);default:return w.dataType&&Object.keys(w.dataType).forEach(function(ce){if(g.dataType===ce&&w.dataType[ce].getValue){if(typeof w.dataType[ce].getValue!="function")throw new Error("getValue must be a function.");y=w.dataType[ce].getValue(g._gridId,y)}}),y}},M.getTextFromCell=function(g){if(!g)return"";var y="",B=_e(g.value,A[g._gridId].data.gridInfo.nullValue);switch(g.dataType){case"number":y=B===A[g._gridId].data.gridInfo.nullValue?B:_e(M.getFormatNumberFromCell(g),A[g._gridId].data.gridInfo.nullValue);break;case"date":y=B===A[g._gridId].data.gridInfo.nullValue?B:_e(M.getDateWithGridDateFormat(g),A[g._gridId].data.gridInfo.nullValue);break;case"month":y=B===A[g._gridId].data.gridInfo.nullValue?B:_e(M.getDateWithGridMonthFormat(g),A[g._gridId].data.gridInfo.nullValue);break;case"select":if(Array.isArray(g.value)&&g.value.length>0){y=g.value[0].text;var H,U=Le(g.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;q.selected&&(y=q.text)}}catch(re){U.e(re)}finally{U.f()}y==null&&(y=A[g._gridId].data.gridInfo.nullValue)}break;case"link":y=g.value&&g.value.text?g.value.text:B;break;default:y=B,w.dataType?Object.keys(w.dataType).forEach(function(re){if(g.dataType===re&&w.dataType[re].getText){if(typeof w.dataType[re].getText!="function")throw new Error("getText must be a function.");y=w.dataType[re].getText(g._gridId,y)}}):y=String(B)}return y},M.getFormatNumber=function(g,y){if(!g||y==null)return Number(y);var B=g.match(/^(.*?)([#0,.]+)(.*?)$/);if(!B)return Number(y);var H=function(R){return isNaN(R)||!isFinite(R)?0:Number(R)},U=function(R){return isNaN(R)||!isFinite(R)?0:parseFloat(R)},q=B[1],re=B[2],de=B[3],he=re.split(".")[0],ce=re.split(".").length>1?re.split(".")[1]:"";de!=="%"&&de!==" %"||(y*=100);var me,Q=String(y),u=Q[0]==="-",b=(Q=u?Q.substring(1):Q).split(".")[0],_=Q.split(".").length>1?Q.split(".")[1]:"";switch(_=(_=U("0."+_).toLocaleString("en",{minimumFractionDigits:ce.lastIndexOf("0")+1,maximumFractionDigits:ce.length}))==="0"?"":_.substring(1),he){case"#,###":me=H(b)===0?_:(b=U(b).toLocaleString("en"))+_;break;case"#,##0":me=(b=U(b).toLocaleString("en"))+_;break;case"#":me=H(b)===0?_:b+_;break;case"0":me=b+_;break;default:return y}return q+(me=u?"-"+me:me)+de},M.getFormatNumberFromCell=function(g){return g.format?g.value===null||g.value===void 0?null:M.getFormatNumber(g.format,g.value):g.value},M.getDateWithValueDateFormat=function(g){if(!g||typeof g!="string")return null;var y=/^(\d{4})[-/.]? ?(\d{2})[-/.]? ?(\d{2})$/.exec(g.replace(/\s+/g,""));if(!y)return null;var B=y[1],H=y[2],U=y[3];return nt(B,H,U)?"".concat(B).concat(H).concat(U):null},M.getDateWithValueMonthFormat=function(g){if(!g||typeof g!="string")return null;g=g.replace(/\s+/g,"");var y,B,H=/^(\d{4})[-/.]? ?(\d{2})[-/.]? ?(\d{2})?$/.exec(g),U=/^(\d{4})[-/.]? ?(\d{2})$/.exec(g);if(H)y=H[1],B=H[2];else{if(!U)return null;y=U[1],B=U[2]}return nt(y,B,"01")?"".concat(y).concat(B):null},M.getDateWithInputDateFormat=function(g){if(!g||typeof g!="string")return null;var y=/^(\d{4})[-/.]?(\d{2})[-/.]?(\d{2})$/.exec(g);if(!y)return null;var B=y[1],H=y[2],U=y[3];return nt(B,H,U)?"".concat(B,"-").concat(H,"-").concat(U):null},M.getDateWithInputMonthFormat=function(g){if(!g||typeof g!="string")return null;var y=/^(\d{4})[-/.]?(\d{2})$/.exec(g);if(!y)return null;var B=y[1],H=y[2];return nt(B,H,"01")?"".concat(B,"-").concat(H):null},M.getDateWithGridDateFormat=function(g){var y=/^(\d{4})[-/.]?(\d{2})[-/.]?(\d{2})$/.exec(g.value);if(!y)return null;var B=y[1],H=y[2],U=y[3];if(!nt(B,H,U))return null;switch(A[g._gridId].data.gridInfo.dateFormat){case"yyyy-mm-dd":default:return"".concat(B,"-").concat(H,"-").concat(U);case"yyyy/mm/dd":return"".concat(B,"/").concat(H,"/").concat(U);case"yyyy. mm. dd":return"".concat(B,". ").concat(H,". ").concat(U);case"yyyymmdd":return"".concat(B).concat(H).concat(U);case"mm-dd-yyyy":return"".concat(H,"-").concat(U,"-").concat(B);case"mm/dd/yyyy":return"".concat(H,"/").concat(U,"/").concat(B);case"mm. dd. yyyy":return"".concat(H,". ").concat(U,". ").concat(B);case"mmddyyyy":return"".concat(H).concat(U).concat(B);case"dd-mm-yyyy":return"".concat(U,"-").concat(H,"-").concat(B);case"dd/mm/yyyy":return"".concat(U,"/").concat(H,"/").concat(B);case"dd. mm. yyyy":return"".concat(U,". ").concat(H,". ").concat(B);case"ddmmyyyy":return"".concat(U).concat(H).concat(B)}},M.getDateWithGridMonthFormat=function(g){var y=/^(\d{4})[-/.]?(\d{2})$/.exec(g.value);if(!y)return null;var B=y[1],H=y[2];if(!nt(B,H,"01"))return null;switch(A[g._gridId].data.gridInfo.monthFormat){case"yyyy-mm":default:return"".concat(B,"-").concat(H);case"yyyy/mm":return"".concat(B,"/").concat(H);case"yyyy. mm":return"".concat(B,". ").concat(H);case"yyyymm":return"".concat(B).concat(H);case"mm-yyyy":return"".concat(H,"-").concat(B);case"mm/yyyy":return"".concat(H,"/").concat(B);case"mm. yyyy":return"".concat(H,". ").concat(B);case"mmyyyy":return"".concat(H).concat(B)}},M.getCheckboxCellTrueOrFalse=function(g){var y=g.value,B=A[g._gridId].data.gridInfo.checkedValue,H=A[g._gridId].data.gridInfo.uncheckedValue;return typeof y=="boolean"?(g.value=y?B:H,y):y===B||(g.value=H,!1)},M.getCodeValue=function(g,y,B){return g&&Array.isArray(g)&&g.indexOf(B)>=0?B:y},M.getMaskValue=function(g,y){if(typeof g!="string"||typeof y!="string")return null;var B,H=g.split(""),U=y.split(""),q="";return H.every(function(re,de){switch(B=!1,re){case"A":/^[A-Z]$/.test(U[de])?(q+=U[de],B=!0):/^[a-z]$/.test(U[de])&&(q+=(he=U[de])&&typeof he=="string"?he.toUpperCase():"",B=!0);break;case"a":/^[a-z]$/.test(U[de])?(q+=U[de],B=!0):/^[A-Z]$/.test(U[de])&&(q+=Te(U[de]),B=!0);break;case"9":/^[0-9]$/.test(U[de])&&(q+=U[de],B=!0);break;default:re===U[de]&&(q+=U[de],B=!0)}var he;return B}),q},M.setSelectOptions=function(g,y){Array.isArray(y)&&(Qe(g),y.forEach(function(B){var H=document.createElement("option");H.value=B.value,H.textContent=B.text,B.selected&&H.setAttribute("selected",""),B.disabled&&H.setAttribute("disabled",""),B.label&&H.setAttribute("label",B.label),g.appendChild(H)}))},M.getSelectOptions=function(g){if(!g)return null;var y=g.options;if(!y)return null;var B,H=[],U=Le(y);try{for(U.s();!(B=U.n()).done;){var q=B.value,re={value:q.value,text:q.textContent};q.selected&&(re.selected=!0),q.disabled&&(re.disabled=!0),q.label&&(re.label=q.label),H.push(re)}}catch(de){U.e(de)}finally{U.f()}return H.length===0?null:H}}(v,et,Ve),function(w,A){A.connectedGridHeader=function(M){var g=w[M];if(g){var y=w[M].elements.gridHeader;if(!y.style.gridTemplateColumns.includes("%")){for(var B=0,H=1;H<g.methods.getColCount();H++)B+=ke(g.methods.getColOriginWidth(H)).number;y.style.width=B+"px"}}},A.connectedGridBody=function(M){var g=w[M];if(g){var y=w[M].elements.gridBody;if(!y.style.gridTemplateColumns.includes("%")){for(var B=0,H=1;H<g.methods.getColCount();H++)B+=ke(g.methods.getColOriginWidth(H)).number;y.style.width=B+"px"}}},A.connectedGridFooter=function(M){var g=w[M];if(g){var y=w[M].elements.gridFooter;if(!y.style.gridTemplateColumns.includes("%")){var B=0;if(!A._getFooterCells(M)||A._getFooterCells(M).length<=0)return;for(var H=1;H<g.methods.getColCount();H++)B+=ke(g.methods.getColOriginWidth(H)).number;y.style.width=B+"px"}}},A.connectedGridData=function(M){var g=M._gridId,y=w[g],B=y.methods.getGridInfo();switch(M.style.removeProperty("display"),M.style.removeProperty("align-items"),M.style.removeProperty("justify-content"),M.style.removeProperty("text-align"),M.style.removeProperty("z-index"),M._type){case"ghd":if(M.innerText=M.value,B.frozenRowCount<=0&&M.colIndex<=B.frozenColCount){for(var H,U=0,q=M.colIndex-1;q>0;q--)if(H=A._getHeaderCell(g,M.rowIndex,q))if(H.isRowMerge){for(var re=M.rowIndex-1,de=A._getHeaderCell(g,re,q);de&&!(re<0)&&de.isRowMerge;)re--,de=A._getHeaderCell(g,re,q);U+=de.offsetWidth}else U+=A._getHeaderCell(g,M.rowIndex,q).offsetWidth;else U+=0;M.style.position="sticky",M.style.zIndex=String(300+y.methods.getColCount()-M.colIndex),M.style.left=U+"px",M._frozenCol=!0}if(M.isRowMerge){for(var he=M.rowIndex-1,ce=A._getHeaderCell(g,he,M.colIndex);ce&&!(he<0);){if(!ce.isRowMerge){ce.style.gridRowEnd=M.style.gridRowEnd,ce.rowSpan=ce.rowSpan?ce.rowSpan+1:1,ce.style.zIndex=ce.style.zIndex?ce.style.zIndex:"250";break}he--,ce=A._getHeaderCell(g,he,M.colIndex)}M.style.display="none"}if(M.isColMerge){for(var me=M.colIndex-1,Q=A._getHeaderCell(g,M.rowIndex,me);Q&&!(me<0);){if(!Q.isColMerge){if(Q.colId==="v-g-rownum"||Q.colId==="v-g-status")break;Q.style.gridColumnEnd=M.style.gridColumnEnd,Q.colSpan=Q.colSpan?Q.colSpan+1:1,Q.style.zIndex=Q.style.zIndex?Q.style.zIndex:"250";break}me--,Q=A._getHeaderCell(g,M.rowIndex,me)}M.style.display="none"}if(M.colVisible&&M.rowVisible||(M.style.display="none"),y.methods.getHeaderRowCount()===M.rowIndex){var u=M;if(M.isRowMerge)for(var b=M.rowIndex-1;b>0&&!(u=A._getHeaderCell(g,b,M.colIndex)).rowSpan;b--);u&&(u._isLastCell=!0)}if(B.filterable===!0&&y.methods.getColInfo(M.colId).filterable&&y.methods.getHeaderRowCount()===M.rowIndex&&M.colId!=="v-g-rownum"&&M.colId!=="v-g-status"){var _,R=A._getFilterSpan();R&&R instanceof HTMLElement&&R.nodeType===1?_=R.cloneNode(!0):(_=document.createElement("span")).innerText="σ",_._gridId=M._gridId,_.isChild=!0,_._type="filter",_.classList.add(M._gridId+"_filterSpan");var F=document.createElement("select");F.classList.add(M._gridId+"_filterSelect"),F.style.display="none",F._gridId=M._gridId,F.colId=M.colId,F.addEventListener("mousedown",function(Ct){Ct.target.filterOldValue=Ct.target.value}),F.addEventListener("change",function(Ct){var jt=Ct.target.value,ln=Ct.target._gridId;if(w[ln].events.onChooseFilter(Ct.target.parentNode.parentNode.rowIndex,Ct.target.parentNode.parentNode.colId,Ct.target.filterOldValue,jt)===!1)return Ct.stopPropagation(),void Ct.preventDefault();A._doFilter(ln),jt==="$$ALL"&&(Ct.target.style.display="none")}),_.append(F);var D=M;if(M.isRowMerge)for(var z=M.rowIndex-1;z>0&&!(D=A._getHeaderCell(g,z,M.colIndex)).rowSpan;z--);D&&(D.insertBefore(_,D.firstChild),D._filterSelector=F)}M.classList.add(M._gridId+"_h-v-g-d");break;case"gfd":if(B.frozenRowCount<=0&&M.colIndex<=B.frozenColCount){for(var ye,Se=0,ze=M.colIndex-1;ze>0;ze--)if(ye=A._getFooterCell(g,M.rowIndex,ze))if(ye.isRowMerge){for(var je=M.rowIndex-1,Ue=A._getFooterCell(g,je,ze);Ue&&!(je<0)&&Ue.isRowMerge;)je--,Ue=A._getFooterCell(g,je,ze);Se+=Ue.offsetWidth}else Se+=A._getFooterCell(g,M.rowIndex,ze).offsetWidth;else Se+=0;M.style.position="-webkit-sticky",M.style.zIndex="300",M.style.left=Se+"px",M._frozenCol=!0}var it=y.data.colInfos[M.colIndex-1].footer;Array.isArray(it)||(it=null);var rt=it&&it.length>=M.rowIndex-1?it[M.rowIndex-1]:null;if(rt){var ct;M.classList.add(M._gridId+"_f-v-g-d-value");try{ct=A._getFooterCell(g,M.rowIndex,M.colIndex-1)}catch{ct=null}if(ct&&ct.classList.add(M._gridId+"_f-v-g-d-value"),Object.values(ie).includes(rt)){var Ne,Pe,lt;switch(rt){case"$$MAX":if(M.style.justifyContent="right",M.style.textAlign="right",y.methods.getRowCount()>0){Ne=Pe=A.getFirstCellValidNumber(M);for(var le=2;le<=y.methods.getRowCount();le++)lt=A._getCell(g,le,M.colIndex),A.isCellVisible(lt)&&(Pe=Et(lt.value))!==null&&Pe>Ne&&(Ne=Pe)}break;case"$$MIN":if(M.style.justifyContent="right",M.style.textAlign="right",y.methods.getRowCount()>0){Ne=Pe=A.getFirstCellValidNumber(M);for(var ne=2;ne<=y.methods.getRowCount();ne++)lt=A._getCell(g,ne,M.colIndex),A.isCellVisible(lt)&&(Pe=Et(lt.value))!==null&&Pe<Ne&&(Ne=Pe)}break;case"$$SUM":if(M.style.justifyContent="right",M.style.textAlign="right",y.methods.getRowCount()>0){Ne=0;for(var ht=1;ht<=y.methods.getRowCount();ht++)lt=A._getCell(g,ht,M.colIndex),A.isCellVisible(lt)&&(Ne=Math.round(1e5*(Ne+rn(lt.value)))/1e5)}break;case"$$AVG":if(M.style.justifyContent="right",M.style.textAlign="right",y.methods.getRowCount()>0){Ne=0,Pe=0;for(var d=0,p=1;p<=y.methods.getRowCount();p++)lt=A._getCell(g,p,M.colIndex),A.isCellVisible(lt)&&(Ne=Math.round(1e5*(Ne+rn(lt.value)))/1e5,lt.value===null||lt.value===void 0||isNaN(lt.value)||d++);Ne=d===0?null:(Ne/d).toFixed(2)}}Ne=Ne==null?"-":A.getFormatNumber(y.methods.getColFormat(M.colIndex),Ne),M.innerText=Ne,M.value=Ne}else if(typeof rt=="function"){var x=rt(y.methods.getValues());M.innerText=x,M.value=x}else{M.innerText=rt,M.value=rt;var S=A._getFooterFormula();S&&S.constructor===Object&&Object.keys(S).forEach(function(Ct){if(rt===Ct){var jt=S[Ct](y.methods.getColValues(M.colIndex));M.innerText=jt,M.value=jt}})}}M.align&&(M.style.justifyContent=M.align,M.style.textAlign=M.align),M.colIndex===y.methods.getColCount()&&M.classList.add(M._gridId+"_f-v-g-d-value"),M.colVisible&&M.rowVisible||(M.style.display="none"),M.classList.add(M._gridId+"_f-v-g-d");break;case"gbd":switch(M.dataType){case"text":case"mask":M.style.justifyContent="left",M.style.textAlign="left";break;case"number":M.style.justifyContent="right",M.style.textAlign="right";break;case"date":case"month":case"code":case"select":case"checkbox":case"button":case"link":M.style.justifyContent="center",M.style.textAlign="center";break;default:M.style.justifyContent="center",M.style.textAlign="center";var N=A._getDataTypeStyle();Object.keys(N).forEach(function(Ct){if(M.dataType===Ct){if(N[Ct].constructor!==Object)throw new Error("Cellstyle can only be inserted in object type.");Object.keys(N[Ct]).forEach(function(jt){M.style[jt]=N[Ct][jt]})}})}for(;M.firstChild;)M.removeChild(M.firstChild);if(M.append(A._getCellChildNode(M)),M.rowIndex<=B.frozenRowCount){for(var O,T=y.elements.gridHeader.offsetHeight,G=0,V=M.rowIndex-1;V>0;V--)if(O=A._getCell(g,V,M.colIndex))if(O.isColMerge){for(var Z=M.colIndex-1,oe=A._getCell(g,V,Z);oe&&!(Z<0)&&oe.isColMerge;)Z--,oe=A._getCell(g,V,Z);G+=oe.offsetHeight}else G+=A._getCell(g,V,M.colIndex).offsetHeight;else G+=0;M.style.position="sticky",M.style.zIndex="200",M.style.top=T+G+"px",M.rowIndex===B.frozenRowCount&&(M.style.borderBottom=B.cssInfo.verticalBorderSize+"px solid "+B.cssInfo.headerCellBorderColor),M._frozenCol=!0}if(B.frozenRowCount<=0&&M.colIndex<=B.frozenColCount){for(var Y,se=0,qe=M.colIndex-1;qe>0;qe--)if(Y=A._getCell(g,M.rowIndex,qe))if(Y.isRowMerge){for(var _t=M.rowIndex-1,an=A._getCell(g,_t,qe);an&&!(_t<0)&&an.isRowMerge;)_t--,an=A._getCell(g,_t,qe);se+=an.offsetWidth}else se+=A._getCell(g,M.rowIndex,qe).offsetWidth;else se+=0;M.style.position="sticky",M.style.zIndex="200",M.colIndex===B.frozenColCount&&(M.style.borderRight=B.cssInfo.verticalBorderSize+"px solid "+B.cssInfo.headerCellBorderColor),M.style.left=se+"px",M._frozenRow=!0}if(M.isRowMerge){for(var Ft=M.rowIndex-1,Gt=A._getCell(g,Ft,M.colIndex);Gt&&!(Ft<0);){if(!Gt.isRowMerge){Gt.style.gridRowEnd=M.style.gridRowEnd,Gt.verticalAlign||(Gt.style.alignItems="center"),Gt.style.zIndex=Gt.style.zIndex?Gt.style.zIndex:"50";break}Ft--,Gt=A._getCell(g,Ft,M.colIndex)}A.isCellVisible(Gt)&&(M.style.display="none")}if(M.isColMerge){for(var St=M.colIndex-1,At=A._getCell(g,M.rowIndex,St);At&&!(St<0);){if(!At.isColMerge){At.style.gridColumnEnd=M.style.gridColumnEnd,At.align||(At.style.justifyContent="center"),At.align||(At.style.textAlign="center"),At.verticalAlign||(At.style.alignItems="center"),At.style.zIndex=At.style.zIndex?At.style.zIndex:"50";break}St--,At=A._getCell(g,M.rowIndex,St)}M.style.display="none"}if(M.align&&(M.style.justifyContent=M.align,M.style.textAlign=M.align),M.verticalAlign)switch(M.verticalAlign.toLowerCase()){case"top":M.style.alignItems="flex-start";break;case"bottom":M.style.alignItems="flex-end";break;default:M.style.alignItems="center"}M.overflowWrap&&(M.style.overflowWrap=M.overflowWrap),M.wordBreak&&(M.style.wordBreak=M.wordBreak),M.whiteSpace&&(M.style.whiteSpace=M.whiteSpace),M.backColor&&(M.style.backgroundColor=M.backColor),M.fontColor&&(M.firstChild.style.color=M.fontColor),M.fontBold&&(M.firstChild.style.fontWeight="bold"),M.fontItalic&&(M.firstChild.style.fontStyle="italic"),M.fontThruline&&(M.firstChild.style.textDecoration="line-through"),M.fontUnderline&&(M.firstChild.style.textDecoration="underline"),M.colVisible&&M.rowVisible||(M.style.display="none"),M.filter&&(M.style.display="none"),B.alterRow&&M.rowIndex%2==0?(M.classList.add(M._gridId+"_b-v-g-d-alter"),M.classList.remove(M._gridId+"_b-v-g-d")):(M.classList.add(M._gridId+"_b-v-g-d"),M.classList.remove(M._gridId+"_b-v-g-d-alter")),M.locked&&M.lockedColor?M.classList.add(M._gridId+"_b-v-g-d-locked"):M.classList.remove(M._gridId+"_b-v-g-d-locked"),M.locked&&(M.dataType==="select"&&M.firstChild&&M.firstChild.nType=="select"||M.dataType==="checkbox"&&M.firstChild&&M.firstChild.nType=="checkbox")&&(M.firstChild.disabled=!0,M.firstChild.style.pointerEvents="none"),M.untarget&&(M.dataType==="button"&&M.firstChild&&M.firstChild.nType=="button"?(M.firstChild.disabled=!0,M.firstChild.style.pointerEvents="none"):M.dataType==="link"&&M.firstChild&&M.firstChild.nType=="link"&&(M.firstChild.style.opacity="0.8",M.firstChild.style.pointerEvents="none"))}M.classList.add(M._gridId+"_v-g-d"),M.addEventListener("mouseover",function(Ct){M.untarget||M._type!=="gbd"||(M.classList.add(M._gridId+"_mouseover-cell"),M.dataType==="link"&&M.querySelectorAll("*").forEach(function(jt){jt.classList.add(M._gridId+"_mouseover-cell")}))}),M.addEventListener("mouseout",function(Ct){M.untarget||M._type!=="gbd"||(M.classList.remove(M._gridId+"_mouseover-cell"),M.dataType==="link"&&M.querySelectorAll("*").forEach(function(jt){jt.classList.remove(M._gridId+"_mouseover-cell")}))})}}(et,Ve),v.documentEvent.mousedown=function(w){v._status.activeGridEditor&&v._status.activeGridEditor!==w.target&&Ve.modifyCell(v),v._status.activeGrid&&!v._status.activeGrid.elements.grid.contains(w.target)&&(v._status.activeGrid=null)},document.removeEventListener("mousedown",v.documentEvent.mousedown),document.addEventListener("mousedown",v.documentEvent.mousedown),v.documentEvent.mouseup=function(w){v._status.mouseX=0,v._status.mouseY=0,Ve.stopScrolling(v),v._status.isDragging&&(v._status.isDragging=!1),v._status.isHeaderDragging&&(v._status.isHeaderDragging=!1)},document.removeEventListener("mouseup",v.documentEvent.mouseup),document.addEventListener("mouseup",v.documentEvent.mouseup),v.documentEvent.keydown=function(w){if(v._status.activeGrid&&!v._status.activeGridEditor){var A=v._status.activeGrid,M=A.data.id;if(A.events.onKeydownGrid(w)===!1)return w.stopPropagation(),void w.preventDefault();if(w.ctrlKey||w.metaKey)switch(w.key){case"z":case"Z":Ve.redoundo(M),w.preventDefault();break;case"y":case"Y":Ve.redoundo(M,!1),w.preventDefault();break;case"a":case"A":A.data.variables.targetCell=Ve._getCell(M,1,3),Ve.selectCells(Ve._getCell(M,1,1),Ve._getCell(M,A.methods.getRowCount(),A.methods.getColCount())),w.preventDefault()}if(A.data.gridInfo.selectionPolicy==="none"||A.data.variables.activeCells.length<=0)return;var g,y=A.data.variables.activeCells[0],B=A.data.variables.activeCells[A.data.variables.activeCells.length-1];switch(Object.keys(v.dataType).forEach(function(H){if(A.data.variables.targetCell.dataType===H&&v.dataType[H].onSelectedAndKeyDown){if(typeof v.dataType[H].onSelectedAndKeyDown!="function")throw new Error("onSelectedAndKeyDown must be a function.");if(v.dataType[H].onSelectedAndKeyDown(w,A.data.id,Ve.__getData(A.data.variables.targetCell))===!1)return}}),w.key){case"Tab":g=Ve.getTabCell(A.data.variables.targetCell,w.shiftKey),Ve.selectCell(g),w.preventDefault();break;case"F2":Ve.createGridEditor(A.data.variables.targetCell),w.preventDefault();break;case"Enter":A.data.variables.targetCell.dataType==="select"?(v._status.editOldValue=A.data.variables.targetCell.firstChild.value,A.data.variables.targetCell.firstChild.focus()):A.data.variables.targetCell.dataType==="checkbox"?(v._status.editOldValue=A.data.variables.targetCell.value,A.data.variables.targetCell.firstChild.checked=!A.data.variables.targetCell.firstChild.checked,Ve.selectAndCheckboxOnChange(A.data.variables.targetCell.firstChild),g=Ve.getMoveRowCell(A.data.variables.targetCell,1),Ve.selectCell(g),w.preventDefault()):["text","number","date","month","mask","code"].indexOf(A.data.variables.targetCell.dataType)>=0&&(Ve.createGridEditor(A.data.variables.targetCell,!0),w.preventDefault());break;case" ":if(A.data.variables.targetCell.dataType==="select"){if(A.data.variables.targetCell.untarget||A.data.variables.targetCell.locked)return void w.preventDefault();v._status.editOldValue=A.data.variables.targetCell.firstChild.value,A.data.variables.targetCell.firstChild.focus()}else if(A.data.variables.targetCell.dataType==="button")A.data.variables.targetCell.firstChild.focus();else if(A.data.variables.targetCell.dataType==="checkbox"){if(A.data.variables.targetCell.untarget||A.data.variables.targetCell.locked)return void w.preventDefault();v._status.editOldValue=A.data.variables.targetCell.value,A.data.variables.targetCell.firstChild.checked=!A.data.variables.targetCell.firstChild.checked,Ve.selectAndCheckboxOnChange(A.data.variables.targetCell.firstChild),w.preventDefault()}else["text","number","date","month","mask","code"].indexOf(A.data.variables.targetCell.dataType)>=0&&(Ve.createGridEditor(A.data.variables.targetCell),w.preventDefault());break;case"ArrowUp":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(M),A.data.variables.targetCell.rowIndex>=B.rowIndex?(g=Ve.getMoveRowCell(y,-1),Ve.selectCells(g,B,g)):(g=Ve.getMoveRowCell(B,-1),Ve.selectCells(y,g))):(g=Ve.getMoveRowCell(A.data.variables.targetCell,-1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowDown":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(M),A.data.variables.targetCell.rowIndex<=y.rowIndex?(g=Ve.getMoveRowCell(B,1),Ve.selectCells(y,g)):(g=Ve.getMoveRowCell(y,1),Ve.selectCells(g,B,g))):(g=Ve.getMoveRowCell(A.data.variables.targetCell,1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowLeft":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(M),A.data.variables.targetCell.colIndex>=B.colIndex?(g=Ve.getMoveColCell(y,-1),Ve.selectCells(g,B,g)):(g=Ve.getMoveColCell(B,-1),Ve.selectCells(y,g))):(g=Ve.getMoveColCell(A.data.variables.targetCell,-1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowRight":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(M),A.data.variables.targetCell.colIndex<=y.colIndex?(g=Ve.getMoveColCell(B,1),Ve.selectCells(y,g)):(g=Ve.getMoveColCell(y,1),Ve.selectCells(g,B,g))):(g=Ve.getMoveColCell(A.data.variables.targetCell,1),Ve.selectCell(g)),w.preventDefault()}}},document.removeEventListener("keydown",v.documentEvent.keydown),document.addEventListener("keydown",v.documentEvent.keydown),v.documentEvent.copy=function(w){if(v._status.activeGrid&&!v._status.activeGridEditor){var A=v._status.activeGrid.data.variables.activeCells;A.length>0&&(w.preventDefault(),Ve.copyGrid(A))}},document.removeEventListener("copy",v.documentEvent.copy),document.addEventListener("copy",v.documentEvent.copy),v.documentEvent.paste=function(w){v._status.activeGrid&&!v._status.activeGridEditor&&v._status.activeGrid.data.variables.activeCells.length>0&&(w.preventDefault(),Ve.pasteGrid(w,v._status.activeGrid.data.id))},document.removeEventListener("paste",v.documentEvent.paste),document.addEventListener("paste",v.documentEvent.paste),v._initialized=!0)},Ht=function(){Ze&&(Object.values(et).forEach(function(v){var w=document.getElementById(v.data.id),A=document.getElementById(v.data.id+"_styles-sheet");w&&w.parentNode.removeChild(w),A&&A.parentNode.removeChild(A),delete et[v.data.id],v=null}),document.removeEventListener("mousedown",Ze.documentEvent.mousedown),document.removeEventListener("mouseup",Ze.documentEvent.mouseup),document.removeEventListener("keydown",Ze.documentEvent.keydown),document.removeEventListener("copy",Ze.documentEvent.copy),document.removeEventListener("paste",Ze.documentEvent.paste),Ze.unmountGrid(),Ze=null)};return o})())}(fi)),fi.exports}var Na=Qd();const eu=t=>t==null,tu=()=>{let t=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e==="x"?n:n&3|8).toString(16)})},nu=t=>!t||typeof t!="string"?"":t.toLowerCase(),ou=t=>!t||typeof t!="string"?"":t.toUpperCase(),ru=(t,e)=>{if(typeof e!="string"||typeof t!="string")return null;const n=e.split(""),o=t.split("");let r="",i;return n.every((a,c)=>{switch(i=!1,a){case"A":/^[A-Z]$/.test(o[c])?(r+=o[c],i=!0):/^[a-z]$/.test(o[c])&&(r+=ou(o[c]),i=!0);break;case"a":/^[a-z]$/.test(o[c])?(r+=o[c],i=!0):/^[A-Z]$/.test(o[c])&&(r+=nu(o[c]),i=!0);break;case"9":/^[0-9]$/.test(o[c])&&(r+=o[c],i=!0);break;default:a===o[c]&&(r+=o[c],i=!0);break}return i}),r},iu=t=>(t=String(t),t.replace(/[^0-9]/g,"")),au=t=>t<768?"mb":t<1200?"tb":t<1980?"pc":"wd",lu=(t,e)=>Array.from(t).find(n=>n.startsWith(`hison-${e}-`)),su=(t,e)=>{const n=lu(t,e);if(n){const o=n.split("-");if(o.length>=3)return o[2]}return null},js=(t,e)=>t.findIndex(n=>n.startsWith(`hison-${e}-`)),Ws=t=>t?typeof t=="string"?t:Array.isArray(t)?t.map(Ws).filter(Boolean).join(" "):typeof t=="object"?Object.keys(t).filter(e=>!!t[e]).join(" "):"":"",cu=(t,e)=>{const n=t.trim().split(/\s+/),o={},r=[];for(const a of n){const c=a.match(/^(hison-(color|size|col|pos|layout-vertical-align)-[\w]+?)(?:-(mb|tb|pc|wd))?$/);if(c){const m=c[1],C=c[2],L=c[3];o[C]||(o[C]={}),L?o[C][L]=m:o[C].default=m}else r.push(a)}const i=[];for(const a of Object.values(o)){const c=a[e]||(e==="mb"?a.tb:void 0)||(e==="tb"?a.mb:void 0)||(e==="pc"?a.wd:void 0)||(e==="wd"?a.pc:void 0)||a.default;c&&i.push(c)}return[...r,...i].filter(Boolean)},du=(t,e,n)=>{const o=js(t,e);o!==-1?t[o]=t[o]:t.push(`hison-${e}-${n}`)},uu=(t,e)=>{if(!t||!e)return[];const n=`hison-${e}-`;return t.trim().split(/\s+/).filter(o=>o.startsWith(n))},Li=t=>/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t),qs=t=>/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(\s*,\s*(0|1|0?\.\d+))?\s*\)$/.test(t),Sl=t=>typeof t=="number"&&isFinite(t),te={event:{cssEvent:{}}},fu=t=>{let e,n,o;if(t.length===4)e=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),o=parseInt(t[3]+t[3],16);else if(t.length===7)e=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);else throw new Error(`Invalid hex color format: ${t}`);return`rgba(${e}, ${n}, ${o}, 1)`},hu=t=>{const e=t.replace(/\s+/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?.*\)$/i);if(!e)throw new Error(`Invalid rgba color format: ${t}`);const n=parseInt(e[1],10),o=parseInt(e[2],10),r=parseInt(e[3],10),i=a=>{const c=a.toString(16);return c.length===1?"0"+c:c};return`#${i(n)}${i(o)}${i(r)}`},cn=t=>{if(Li(t))return t.replace(/\s+/g,"");if(qs(t))return hu(t);throw new Error(`Invalid color format: ${t}`)},$t=t=>{if(Li(t))return fu(t);if(qs(t))return t.replace(/\s+/g,"");throw new Error(`Invalid color format: ${t}`)},vo=(t,e,n)=>{if(!Sl(e))throw new Error("add must be valid numbers");if(n&&!Sl(n))throw new Error("newOpacity must be valid numbers");const o=(K,X,ee)=>Math.min(Math.max(K,X),ee),r=t.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/i);if(!r)throw new Error("Invalid rgba color format");let[,i,a,c,m]=r;n||(n=Number(m));const C=o(parseInt(i)+e,0,255),L=o(parseInt(a)+e,0,255),P=o(parseInt(c)+e,0,255),W=o(n,0,1);return`rgba(${C},${L},${P},${W})`},Kt=t=>{const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)\)$/);if(!e)throw new Error("Invalid RGBA format.");const[,n,o,r,i]=e.map(Number),a=255-n,c=255-o,m=255-r;return`rgba(${a}, ${c}, ${m}, ${i})`},$s=t=>{const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)\)$/);if(!e)throw new Error("Invalid RGBA format.");const[,n,o,r,i]=e.map(Number);return i<=.5?!1:n+o+r>385},mu=t=>{switch(t){case"primary":return cn(te.componentStyle.primaryColor);case"muted":return cn(te.componentStyle.mutedColor);case"info":return cn(te.componentStyle.infoColor);case"success":return cn(te.componentStyle.successColor);case"danger":return cn(te.componentStyle.dangerColor);case"warning":return cn(te.componentStyle.warningColor);case"custom1":return cn(te.componentStyle.custom1Color);case"custom2":return cn(te.componentStyle.custom2Color);case"custom3":return cn(te.componentStyle.custom3Color);case"custom4":return cn(te.componentStyle.custom4Color);case"custom5":return cn(te.componentStyle.custom5Color)}return null},gu=t=>{switch(t){case"primary":return te.componentStyle.primaryColor;case"muted":return te.componentStyle.mutedColor;case"info":return te.componentStyle.infoColor;case"success":return te.componentStyle.successColor;case"danger":return te.componentStyle.dangerColor;case"warning":return te.componentStyle.warningColor;case"custom1":return te.componentStyle.custom1Color;case"custom2":return te.componentStyle.custom2Color;case"custom3":return te.componentStyle.custom3Color;case"custom4":return te.componentStyle.custom4Color;case"custom5":return te.componentStyle.custom5Color}return""},pu=t=>$s(t)?Ja:Za,gn=(t,e)=>{t.buttonColor=e,t.borderColor=vo(e,-31),t.shadowColor=vo(e,-47),t.hoverColor=vo(e,-24),t.activeColor=vo(e,-24),t.rowHoverColor=vo(e,64,.2),t.stripeColor=vo(e,64,.1),t.emptyTextColor=e,t.filledTextColor=pu(e)},yu=(t,e)=>t.replace(/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([0-9.]+)\s*\)/i,(n,o,r,i)=>`rgba(${o},${r},${i},${e})`),Ni=new Map,_u=(t,e)=>{Ni.set(t,e)},vu=t=>{Ni.delete(t)},bu=()=>{for(const t of Ni.values())t()},Cu=t=>{const e=Ni.get(t);e&&e()};var Pn=(t=>(t.xs="xs",t.s="s",t.m="m",t.l="l",t.xl="xl",t))(Pn||{}),Ys=(t=>(t.primary="primary",t.muted="muted",t.info="info",t.success="success",t.danger="danger",t.warning="warning",t.custom1="custom1",t.custom2="custom2",t.custom3="custom3",t.custom4="custom4",t.custom5="custom5",t))(Ys||{}),hi={exports:{}},xu=hi.exports,Il;function Mu(){return Il||(Il=1,function(t,e){(function(n,o){t.exports=o()})(typeof self<"u"?self:typeof So<"u"?So:xu,()=>(()=>{var n={d:(f,h)=>{for(var k in h)n.o(h,k)&&!n.o(f,k)&&Object.defineProperty(f,k,{enumerable:!0,get:h[k]})},o:(f,h)=>Object.prototype.hasOwnProperty.call(f,h),r:f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}},o={};n.r(o),n.d(o,{NoteModeByDevice:()=>i,ToolPosition:()=>r,getVanillanote:()=>yn,getVanillanoteConfig:()=>Fn});var r=function(f){return f.top="TOP",f.bottom="BOTTOM",f}({}),i=function(f){return f.adaptive="ADAPTIVE",f.mobile="MOBILE",f.desktop="DESKTOP",f}({}),a=function(f){for(var h=f;!(h instanceof Element);)h=h.parentNode;return h.closest?h.closest("[data-vanillanote]"):null},c=function(f,h,k){return f+"_"+h+"_"+k},m=function(f,h,k){return f+"_"+h+"_"+k},C=function(f){return f+"_eventChildren"},L=function(f){return f+"_eventOnOverCssElement"},P=function(f){return f+"_eventClickCssElement"},W=function(){var f=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(f+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(h){var k=(f+16*Math.random())%16|0;return f=Math.floor(f/16),(h==="x"?k:3&k|8).toString(16)})},K=function(f){if(!f)return null;for(var h,k=f instanceof Element?f:f.parentNode;!k.hasAttribute("data-note-id")&&(k=k.parentNode)&&k.hasAttribute;);return k&&k.hasAttribute&&k.hasAttribute("data-note-id")&&(h=k.getAttribute("data-note-id")),h},X=function(){var f,h=navigator;if(((f=h.userAgentData)===null||f===void 0?void 0:f.mobile)!==void 0)return h.userAgentData.mobile;var k=navigator.userAgent;return/iPhone|iPad|iPod|Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(k)},ee=function(f){return/^[0-9]+$/.test(f)},ie=function(f){return f==="-"||!isNaN(f)},fe=function(f){return/^[0-9A-Fa-f]*$/.test(f)},pe=function(f){var h=f.match(/-?\d+\.?\d*/);return h?Number(parseFloat(h[0])):null},Me=function(f,h){var k=Object.keys(f),be=Object.keys(h);if(k.length!==be.length)return!1;for(var Be=0;Be<k.length;Be++)if(!be.includes(k[Be])||f[k[Be]]!==h[k[Be]])return!1;return!0},Ie=function(f,h){var k={};for(var be in f)f.hasOwnProperty(be)&&(k[be]=f[be]);for(var Be in h)h.hasOwnProperty(Be)&&(k[Be]=h[Be]);return k},ve=function(f){var h,k,be=new Object;if(!f)return be;h=f.trim().split(";");for(var Be=0;Be<h.length;Be++)h[Be]&&((k=h[Be].split(":")).length<2||(be[k[0].trim()]=k[1].trim()));return be},Ee=function(f){var h="";if(!f||f.constructor!==Object||Object.keys(f).length===0)return h;for(var k=Object.entries(f),be=0;be<k.length;be++)k[be].length<2||(h+=k[be][0].trim()+":"+k[be][1].trim()+";");return h},xe=function(f,h){if(!h||h.constructor!==Object)return f;for(var k=Object.keys(h),be=0;be<k.length;be++)f.setAttribute(k[be],h[k[be]]);return f},ke=function(f,h){if(!f||!h||(h=h.toUpperCase(),f[0]!=="#"&&(f="#"+f),!/^#([0-9A-Fa-f]{6})$/.test(f)))return"33";var k=h==="R"?1:h==="G"?3:5;return f.substring(k,k+2)},Te=function(f,h){return"rgba("+parseInt(ke(f,"R"),16)+","+parseInt(ke(f,"G"),16)+","+parseInt(ke(f,"B"),16)+","+h+")"},We=function(f){if(f.startsWith("#"))return f;if(!f.startsWith("rgba"))return null;var h=f.match(/\d+/g).map(Number),k=h[0].toString(16),be=h[1].toString(16),Be=h[2].toString(16);return k.length==1&&(k="0"+k),be.length==1&&(be="0"+be),Be.length==1&&(Be="0"+Be),"#"+k+be+Be},nt=function(f){if(!f||f.startsWith("#"))return null;var h=f.match(/\d+/g);if(!h)return null;var k=h.map(Number);return k.length<4?"1":k[3].toString()},De=function(f){if(/^#[0-9a-fA-F]{6}$/.test(f))return f;var h=document.createElement("div");h.style.color=f,document.body.appendChild(h);var k=window.getComputedStyle(h).color;document.body.removeChild(h);var be=k.match(/\d+/g);return"#"+((1<<24)+(+be[0]<<16)+(+be[1]<<8)+ +be[2]).toString(16).slice(1)},ot=function(f,h){f.startsWith("#")&&(f=f.slice(1));var k=parseInt(h,16);h.startsWith("-")&&(k=-parseInt(h.slice(1),16));var be=parseInt(f.slice(0,2),16)+k,Be=parseInt(f.slice(2,4),16)+k,tt=parseInt(f.slice(4,6),16)+k;return"#"+(be=(be<0?0:be>255?255:be).toString(16).padStart(2,"0"))+(Be=(Be<0?0:Be>255?255:Be).toString(16).padStart(2,"0"))+(tt<0?0:tt>255?255:tt).toString(16).padStart(2,"0")},mt=function(f){f.startsWith("#")&&(f=f.slice(1));var h=255-parseInt(f.slice(0,2),16),k=255-parseInt(f.slice(2,4),16),be=255-parseInt(f.slice(4,6),16);return k=k<127.5?k+16:k-16,be=be<127.5?be+16:be-16,"#"+(h=((h=h<127.5?h+16:h-16)<0?0:h>255?255:h).toString(16).padStart(2,"0"))+(k=(k<0?0:k>255?255:k).toString(16).padStart(2,"0"))+(be<0?0:be>255?255:be).toString(16).padStart(2,"0")},Qe=function(f){var h={color1:"",color2:"",color3:"",color4:"",color5:"",color6:"",color7:"",color8:"",color9:"",color10:"",color11:"",color12:"",color13:"",color14:"",color15:"",color16:"",color17:"",color18:"",color19:"",color20:""};return function(k){if(!/^#([0-9a-fA-F]{6})$/.test(k))throw new Error("Invalid HEX color format: ".concat(k));return parseInt(k.slice(1,3),16)+parseInt(k.slice(3,5),16)+parseInt(k.slice(5,7),16)>385?"light":"dark"}(f=De(f))==="light"?(h.color1="#333333",h.color2="#ffffff",h.color3=ot(f,"18"),h.color4=f,h.color5=ot(f,"-18"),h.color6=ot(f,"-1f"),h.color7=ot(f,"-2f"),h.color8="#609966",h.color9="#df2e38",h.color10="#333333",h.color11="#666666",h.color12="#333333",h.color13="#ffffff",h.color14="#ff7f7f",h.color15="#ffad66",h.color16="#ffff66",h.color17="#99ff99",h.color18="#99ccff",h.color19="#6699cc",h.color20="#cc99cc"):(h.color1="#ffffff",h.color2="#ffffff",h.color3=ot(f,"18"),h.color4=f,h.color5=ot(f,"-18"),h.color6=ot(f,"-1f"),h.color7=ot(f,"-2f"),h.color8="#609966",h.color9="#df2e38",h.color10="#333333",h.color11="#666666",h.color12="#333333",h.color13="#ffffff",h.color14="#b70404",h.color15="#e55807",h.color16="#f1c93b",h.color17="#1a5d1a",h.color18="#068fff",h.color19="#0c134f",h.color20="#5c469c"),h};function ut(f){return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},ut(f)}function Ye(f,h){return function(k){if(Array.isArray(k))return k}(f)||function(k,be){var Be=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(Be!=null){var tt,Ge,j,E,s=[],l=!0,I=!1;try{if(j=(Be=Be.call(k)).next,be!==0)for(;!(l=(tt=j.call(Be)).done)&&(s.push(tt.value),s.length!==be);l=!0);}catch($){I=!0,Ge=$}finally{try{if(!l&&Be.return!=null&&(E=Be.return(),Object(E)!==E))return}finally{if(I)throw Ge}}return s}}(f,h)||function(k,be){if(k){if(typeof k=="string")return Je(k,be);var Be={}.toString.call(k).slice(8,-1);return Be==="Object"&&k.constructor&&(Be=k.constructor.name),Be==="Map"||Be==="Set"?Array.from(k):Be==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Be)?Je(k,be):void 0}}(f,h)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
49
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Je(f,h){(h==null||h>f.length)&&(h=f.length);for(var k=0,be=Array(h);k<h;k++)be[k]=f[k];return be}function dt(f,h){var k=Object.keys(f);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(f);h&&(be=be.filter(function(Be){return Object.getOwnPropertyDescriptor(f,Be).enumerable})),k.push.apply(k,be)}return k}function Pt(f){for(var h=1;h<arguments.length;h++){var k=arguments[h]!=null?arguments[h]:{};h%2?dt(Object(k),!0).forEach(function(be){Re(f,be,k[be])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(k)):dt(Object(k)).forEach(function(be){Object.defineProperty(f,be,Object.getOwnPropertyDescriptor(k,be))})}return f}function Re(f,h,k){return(h=function(be){var Be=function(tt){if(ut(tt)!="object"||!tt)return tt;var Ge=tt[Symbol.toPrimitive];if(Ge!==void 0){var j=Ge.call(tt,"string");if(ut(j)!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(tt)}(be);return ut(Be)=="symbol"?Be:Be+""}(h))in f?Object.defineProperty(f,h,{value:k,enumerable:!0,configurable:!0,writable:!0}):f[h]=k,f}var ft=function(f,h,k,be){var Be=null,tt=h.createElement("div",k,f.consts.CLASS_NAMES.template.id,f.consts.CLASS_NAMES.template.className);tt.style.display="none";var Ge=h.createElementBasic(k._noteName+"-textarea",k,f.consts.CLASS_NAMES.textarea.id,f.consts.CLASS_NAMES.textarea.className);Ge.setAttribute("contenteditable","true"),Ge.setAttribute("role","textbox"),Ge.setAttribute("aria-multiline","true"),Ge.setAttribute("spellcheck","true"),Ge.setAttribute("autocorrect","true"),Ge.setAttribute("name",c(k._noteName,k._id,f.consts.CLASS_NAMES.textarea.id)),Ge.setAttribute("title",f.languageSet[k._attributes.language].textareaTooltip),Ge.addEventListener("focus",function(ue){k._elementEvents.textarea_onBeforeFocus(ue)&&(f.events.elementEvents.textarea_onFocus(ue),k._elementEvents.textarea_onAfterFocus(ue),ue.stopImmediatePropagation())}),Ge.addEventListener(typeof navigator<"u"&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?"mouseout":"blur",function(ue){k._elementEvents.textarea_onBeforeBlur(ue)&&(f.events.elementEvents.textarea_onBlur(ue),k._elementEvents.textarea_onAfterBlur(ue),ue.stopImmediatePropagation())}),Ge.addEventListener("keydown",function(ue){f.events.elementEvents.textarea_onKeydown(ue),ue.stopImmediatePropagation()}),Ge.addEventListener("keyup",function(ue){f.events.elementEvents.textarea_onKeyup(ue),ue.stopImmediatePropagation()}),Ge.addEventListener("beforeinput",function(ue){f.events.elementEvents.textarea_onBeforeinput(ue),ue.stopImmediatePropagation()}),f.events.documentEvents.noteObserver.observe(Ge,f.variables.observerOptions),h.initTextarea(Ge);var j=[C(k._noteName),P(k._noteName),L(k._noteName),c(k._noteName,k._id,"icon")],E=h.createElement("div",k,f.consts.CLASS_NAMES.tool.id,f.consts.CLASS_NAMES.tool.className),s=h.createElementButton("span",k,f.consts.CLASS_NAMES.toolToggleButton.id,f.consts.CLASS_NAMES.toolToggleButton.className,{isIcon:!0,text:"arrow_drop_down"});if(f.iconSpanElement.toolToggleButtonIcon&&f.iconSpanElement.toolToggleButtonIcon instanceof HTMLSpanElement){var l=f.iconSpanElement.toolToggleButtonIcon.cloneNode(!0);l.setAttribute("data-note-id",k._id),j.forEach(function(ue){l.classList.contains(ue)||l.classList.add(ue)}),s.replaceChild(l,s.firstChild)}var I=h.createElementSelect("span",k,f.consts.CLASS_NAMES.paragraphStyleSelect.id,f.consts.CLASS_NAMES.paragraphStyleSelect.className,{isIcon:!0,text:"auto_fix_high"});if(I.setAttribute("title",f.languageSet[k._attributes.language].styleTooltip),f.iconSpanElement.paragraphStyleSelectIcon&&f.iconSpanElement.paragraphStyleSelectIcon instanceof HTMLSpanElement){var $=f.iconSpanElement.paragraphStyleSelectIcon.cloneNode(!0);$.setAttribute("data-note-id",k._id),j.forEach(function(ue){$.classList.contains(ue)||$.classList.add(ue)}),I.replaceChild($,I.firstChild)}var J=h.createElement("div",k,f.consts.CLASS_NAMES.paragraphStyleSelectBox.id,f.consts.CLASS_NAMES.paragraphStyleSelectBox.className);I.appendChild(J);var ae=h.createElementButton("div",k,f.consts.CLASS_NAMES.styleNomal.id,f.consts.CLASS_NAMES.styleNomal.className,{isIcon:!1,text:"Normal"});ae.setAttribute("data-tag-name","p"),J.appendChild(ae);var ge=h.createElementButton("h1",k,f.consts.CLASS_NAMES.styleHeader1.id,f.consts.CLASS_NAMES.styleHeader1.className,{isIcon:!1,text:"Header1"});ge.setAttribute("data-tag-name","H1"),J.appendChild(ge);var Ce=h.createElementButton("h2",k,f.consts.CLASS_NAMES.styleHeader2.id,f.consts.CLASS_NAMES.styleHeader2.className,{isIcon:!1,text:"Header2"});Ce.setAttribute("data-tag-name","H2"),J.appendChild(Ce);var He=h.createElementButton("h3",k,f.consts.CLASS_NAMES.styleHeader3.id,f.consts.CLASS_NAMES.styleHeader3.className,{isIcon:!1,text:"Header3"});He.setAttribute("data-tag-name","H3"),J.appendChild(He);var Le=h.createElementButton("h4",k,f.consts.CLASS_NAMES.styleHeader4.id,f.consts.CLASS_NAMES.styleHeader4.className,{isIcon:!1,text:"Header4"});Le.setAttribute("data-tag-name","H4"),J.appendChild(Le);var Ke=h.createElementButton("h5",k,f.consts.CLASS_NAMES.styleHeader5.id,f.consts.CLASS_NAMES.styleHeader5.className,{isIcon:!1,text:"Header5"});Ke.setAttribute("data-tag-name","H5"),J.appendChild(Ke);var Ze=h.createElementButton("h6",k,f.consts.CLASS_NAMES.styleHeader6.id,f.consts.CLASS_NAMES.styleHeader6.className,{isIcon:!1,text:"Header6"});Ze.setAttribute("data-tag-name","H6"),J.appendChild(Ze);var et=h.createElementButton("span",k,f.consts.CLASS_NAMES.boldButton.id,f.consts.CLASS_NAMES.boldButton.className,{isIcon:!0,text:"format_bold"});if(et.setAttribute("title",f.languageSet[k._attributes.language].boldTooltip),f.iconSpanElement.boldButtonIcon&&f.iconSpanElement.boldButtonIcon instanceof HTMLSpanElement){var Ve=f.iconSpanElement.boldButtonIcon.cloneNode(!0);Ve.setAttribute("data-note-id",k._id),j.forEach(function(ue){Ve.classList.contains(ue)||Ve.classList.add(ue)}),et.replaceChild(Ve,et.firstChild)}var xt=h.createElementButton("span",k,f.consts.CLASS_NAMES.underlineButton.id,f.consts.CLASS_NAMES.underlineButton.className,{isIcon:!0,text:"format_underlined"});if(xt.setAttribute("title",f.languageSet[k._attributes.language].underlineTooltip),f.iconSpanElement.underlineButtonIcon&&f.iconSpanElement.underlineButtonIcon instanceof HTMLSpanElement){var Rt=f.iconSpanElement.underlineButtonIcon.cloneNode(!0);Rt.setAttribute("data-note-id",k._id),j.forEach(function(ue){Rt.classList.contains(ue)||Rt.classList.add(ue)}),xt.replaceChild(Rt,xt.firstChild)}var Mt=h.createElementButton("span",k,f.consts.CLASS_NAMES.italicButton.id,f.consts.CLASS_NAMES.italicButton.className,{isIcon:!0,text:"format_italic"});if(Mt.setAttribute("title",f.languageSet[k._attributes.language].italicTooltip),f.iconSpanElement.italicButtonIcon&&f.iconSpanElement.italicButtonIcon instanceof HTMLSpanElement){var Ht=f.iconSpanElement.italicButtonIcon.cloneNode(!0);Ht.setAttribute("data-note-id",k._id),j.forEach(function(ue){Ht.classList.contains(ue)||Ht.classList.add(ue)}),Mt.replaceChild(Ht,Mt.firstChild)}var v=h.createElementButton("span",k,f.consts.CLASS_NAMES.ulButton.id,f.consts.CLASS_NAMES.ulButton.className,{isIcon:!0,text:"format_list_bulleted"});if(v.setAttribute("title",f.languageSet[k._attributes.language].ulTooltip),v.setAttribute("data-tag-name","UL"),f.iconSpanElement.ulButtonIcon&&f.iconSpanElement.ulButtonIcon instanceof HTMLSpanElement){var w=f.iconSpanElement.ulButtonIcon.cloneNode(!0);w.setAttribute("data-note-id",k._id),j.forEach(function(ue){w.classList.contains(ue)||w.classList.add(ue)}),v.replaceChild(w,v.firstChild)}var A=h.createElementButton("span",k,f.consts.CLASS_NAMES.olButton.id,f.consts.CLASS_NAMES.olButton.className,{isIcon:!0,text:"format_list_numbered"});if(A.setAttribute("title",f.languageSet[k._attributes.language].olTooltip),A.setAttribute("data-tag-name","OL"),f.iconSpanElement.olButtonIcon&&f.iconSpanElement.olButtonIcon instanceof HTMLSpanElement){var M=f.iconSpanElement.olButtonIcon.cloneNode(!0);M.setAttribute("data-note-id",k._id),j.forEach(function(ue){M.classList.contains(ue)||M.classList.add(ue)}),A.replaceChild(M,A.firstChild)}var g=h.createElementSelect("span",k,f.consts.CLASS_NAMES.textAlignSelect.id,f.consts.CLASS_NAMES.textAlignSelect.className,{isIcon:!0,text:"notes"});if(g.setAttribute("title",f.languageSet[k._attributes.language].textAlignTooltip),f.iconSpanElement.textAlignSelectIcon&&f.iconSpanElement.textAlignSelectIcon instanceof HTMLSpanElement){var y=f.iconSpanElement.textAlignSelectIcon.cloneNode(!0);y.setAttribute("data-note-id",k._id),j.forEach(function(ue){y.classList.contains(ue)||y.classList.add(ue)}),g.replaceChild(y,g.firstChild)}var B=h.createElement("div",k,f.consts.CLASS_NAMES.textAlignSelectBox.id,f.consts.CLASS_NAMES.textAlignSelectBox.className);g.appendChild(B);var H=h.createElementButton("span",k,f.consts.CLASS_NAMES.textAlignLeft.id,f.consts.CLASS_NAMES.textAlignLeft.className,{isIcon:!0,text:"format_align_left"});if(H.setAttribute("data-tag-style","text-align:left;"),f.iconSpanElement.textAlignLeftButtonIcon&&f.iconSpanElement.textAlignLeftButtonIcon instanceof HTMLSpanElement){var U=f.iconSpanElement.textAlignLeftButtonIcon.cloneNode(!0);U.setAttribute("data-note-id",k._id),j.forEach(function(ue){U.classList.contains(ue)||U.classList.add(ue)}),H.replaceChild(U,H.firstChild)}B.appendChild(H);var q=h.createElementButton("span",k,f.consts.CLASS_NAMES.textAlignCenter.id,f.consts.CLASS_NAMES.textAlignCenter.className,{isIcon:!0,text:"format_align_center"});if(q.setAttribute("data-tag-style","text-align:center;"),f.iconSpanElement.textAlignCenterButtonIcon&&f.iconSpanElement.textAlignCenterButtonIcon instanceof HTMLSpanElement){var re=f.iconSpanElement.textAlignCenterButtonIcon.cloneNode(!0);re.setAttribute("data-note-id",k._id),j.forEach(function(ue){re.classList.contains(ue)||re.classList.add(ue)}),q.replaceChild(re,q.firstChild)}B.appendChild(q);var de=h.createElementButton("span",k,f.consts.CLASS_NAMES.textAlignRight.id,f.consts.CLASS_NAMES.textAlignRight.className,{isIcon:!0,text:"format_align_right"});if(de.setAttribute("data-tag-style","text-align:right;"),f.iconSpanElement.textAlignRightButtonIcon&&f.iconSpanElement.textAlignRightButtonIcon instanceof HTMLSpanElement){var he=f.iconSpanElement.textAlignRightButtonIcon.cloneNode(!0);he.setAttribute("data-note-id",k._id),j.forEach(function(ue){he.classList.contains(ue)||he.classList.add(ue)}),de.replaceChild(he,de.firstChild)}B.appendChild(de);var ce=h.createElementButton("span",k,f.consts.CLASS_NAMES.attLinkButton.id,f.consts.CLASS_NAMES.attLinkButton.className,{isIcon:!0,text:"link"});if(ce.setAttribute("title",f.languageSet[k._attributes.language].attLinkTooltip),f.iconSpanElement.attLinkButtonIcon&&f.iconSpanElement.attLinkButtonIcon instanceof HTMLSpanElement){var me=f.iconSpanElement.attLinkButtonIcon.cloneNode(!0);me.setAttribute("data-note-id",k._id),j.forEach(function(ue){me.classList.contains(ue)||me.classList.add(ue)}),ce.replaceChild(me,ce.firstChild)}var Q=h.createElementButton("span",k,f.consts.CLASS_NAMES.attFileButton.id,f.consts.CLASS_NAMES.attFileButton.className,{isIcon:!0,text:"attach_file"});if(Q.setAttribute("title",f.languageSet[k._attributes.language].attFileTooltip),f.iconSpanElement.attFileButtonIcon&&f.iconSpanElement.attFileButtonIcon instanceof HTMLSpanElement){var u=f.iconSpanElement.attFileButtonIcon.cloneNode(!0);u.setAttribute("data-note-id",k._id),j.forEach(function(ue){u.classList.contains(ue)||u.classList.add(ue)}),Q.replaceChild(u,Q.firstChild)}var b=h.createElementButton("span",k,f.consts.CLASS_NAMES.attImageButton.id,f.consts.CLASS_NAMES.attImageButton.className,{isIcon:!0,text:"image"});if(b.setAttribute("title",f.languageSet[k._attributes.language].attImageTooltip),f.iconSpanElement.attImageButtonIcon&&f.iconSpanElement.attImageButtonIcon instanceof HTMLSpanElement){var _=f.iconSpanElement.attImageButtonIcon.cloneNode(!0);_.setAttribute("data-note-id",k._id),j.forEach(function(ue){_.classList.contains(ue)||_.classList.add(ue)}),b.replaceChild(_,b.firstChild)}var R=h.createElementButton("span",k,f.consts.CLASS_NAMES.attVideoButton.id,f.consts.CLASS_NAMES.attVideoButton.className,{isIcon:!0,text:"videocam"});if(R.setAttribute("title",f.languageSet[k._attributes.language].attVideoTooltip),f.iconSpanElement.attVideoButtonIcon&&f.iconSpanElement.attVideoButtonIcon instanceof HTMLSpanElement){var F=f.iconSpanElement.attVideoButtonIcon.cloneNode(!0);F.setAttribute("data-note-id",k._id),j.forEach(function(ue){F.classList.contains(ue)||F.classList.add(ue)}),R.replaceChild(F,R.firstChild)}var D=h.createElementButton("span",k,f.consts.CLASS_NAMES.fontSizeInputBox.id,f.consts.CLASS_NAMES.fontSizeInputBox.className,{isIcon:!0,text:"format_size"});if(f.iconSpanElement.fontSizeInputBoxIcon&&f.iconSpanElement.fontSizeInputBoxIcon instanceof HTMLSpanElement){var z=f.iconSpanElement.fontSizeInputBoxIcon.cloneNode(!0);z.setAttribute("data-note-id",k._id),j.forEach(function(ue){z.classList.contains(ue)||z.classList.add(ue)}),D.replaceChild(z,D.firstChild)}var ye=h.createElementInput(k,f.consts.CLASS_NAMES.fontSizeInput.id,f.consts.CLASS_NAMES.fontSizeInput.className);ye.setAttribute("type","number"),ye.setAttribute("title",f.languageSet[k._attributes.language].fontSizeTooltip),h.addClickEvent(ye,f.consts.CLASS_NAMES.fontSizeInput.id,k),D.appendChild(ye);var Se=h.createElementButton("span",k,f.consts.CLASS_NAMES.letterSpacingInputBox.id,f.consts.CLASS_NAMES.letterSpacingInputBox.className,{isIcon:!0,text:"swap_horiz"});if(f.iconSpanElement.letterSpacingInputBoxIcon&&f.iconSpanElement.letterSpacingInputBoxIcon instanceof HTMLSpanElement){var ze=f.iconSpanElement.letterSpacingInputBoxIcon.cloneNode(!0);ze.setAttribute("data-note-id",k._id),j.forEach(function(ue){ze.classList.contains(ue)||ze.classList.add(ue)}),Se.replaceChild(ze,Se.firstChild)}var je=h.createElementInput(k,f.consts.CLASS_NAMES.letterSpacingInput.id,f.consts.CLASS_NAMES.letterSpacingInput.className);je.setAttribute("type","number"),je.setAttribute("title",f.languageSet[k._attributes.language].letterSpacingTooltip),h.addClickEvent(je,f.consts.CLASS_NAMES.letterSpacingInput.id,k),Se.appendChild(je);var Ue=h.createElementButton("span",k,f.consts.CLASS_NAMES.lineHeightInputBox.id,f.consts.CLASS_NAMES.lineHeightInputBox.className,{isIcon:!0,text:"height"});if(f.iconSpanElement.lineHeightInputBoxIcon&&f.iconSpanElement.lineHeightInputBoxIcon instanceof HTMLSpanElement){var it=f.iconSpanElement.lineHeightInputBoxIcon.cloneNode(!0);it.setAttribute("data-note-id",k._id),j.forEach(function(ue){it.classList.contains(ue)||it.classList.add(ue)}),Ue.replaceChild(it,Ue.firstChild)}var rt=h.createElementInput(k,f.consts.CLASS_NAMES.lineHeightInput.id,f.consts.CLASS_NAMES.lineHeightInput.className);rt.setAttribute("type","number"),rt.setAttribute("title",f.languageSet[k._attributes.language].lineHeightTooltip),h.addClickEvent(rt,f.consts.CLASS_NAMES.lineHeightInput.id,k),Ue.appendChild(rt);var ct=h.createElementSelect("span",k,f.consts.CLASS_NAMES.fontFamilySelect.id,f.consts.CLASS_NAMES.fontFamilySelect.className,{isIcon:!1,text:k._attributes.defaultTextareaFontFamily.length>12?k._attributes.defaultTextareaFontFamily.substr(0,12)+"...":k._attributes.defaultTextareaFontFamily});ct.setAttribute("style","font-family:"+k._attributes.defaultTextareaFontFamily+";"),ct.setAttribute("title",f.languageSet[k._attributes.language].fontFamilyTooltip);var Ne=h.createElement("div",k,f.consts.CLASS_NAMES.fontFamilySelectBox.id,f.consts.CLASS_NAMES.fontFamilySelectBox.className);ct.appendChild(Ne);for(var Pe=0;Pe<k._attributes.defaultFontFamilies.length;Pe++){var lt=h.createElementFontFamiliySelect("div",k,f.consts.CLASS_NAMES.fontFamily.id+Pe,f.consts.CLASS_NAMES.fontFamily.className,{isIcon:!1,text:k._attributes.defaultFontFamilies[Pe]});lt.setAttribute("data-font-family",k._attributes.defaultFontFamilies[Pe]),lt.setAttribute("style","font-family:"+k._attributes.defaultFontFamilies[Pe]+";"),Ne.appendChild(lt)}var le=h.createElementSelect("span",k,f.consts.CLASS_NAMES.colorTextSelect.id,f.consts.CLASS_NAMES.colorTextSelect.className,{isIcon:!0,text:"format_color_text",iconStyle:"-webkit-text-stroke: 0.5px black; font-size: 1.1em"});if(le.setAttribute("title",f.languageSet[k._attributes.language].colorTextTooltip),f.iconSpanElement.colorTextSelectIcon&&f.iconSpanElement.colorTextSelectIcon instanceof HTMLSpanElement){var ne=f.iconSpanElement.colorTextSelectIcon.cloneNode(!0);ne.setAttribute("data-note-id",k._id),j.forEach(function(ue){ne.classList.contains(ue)||ne.classList.add(ue)}),le.replaceChild(ne,le.firstChild)}var ht=h.createElement("div",k,f.consts.CLASS_NAMES.colorTextSelectBox.id,f.consts.CLASS_NAMES.colorTextSelectBox.className);le.appendChild(ht);var d=h.createElement("span",k,f.consts.CLASS_NAMES.colorTextRExplain.id,f.consts.CLASS_NAMES.colorTextRExplain.className,{isIcon:!1,text:"R"});d.style.paddingLeft=8*k._attributes.sizeRate+"px",ht.appendChild(d);var p=h.createElementInput(k,f.consts.CLASS_NAMES.colorTextRInput.id,f.consts.CLASS_NAMES.colorTextRInput.className);p.setAttribute("maxlength","2"),h.addClickEvent(p,f.consts.CLASS_NAMES.colorTextRInput.id,k),ht.appendChild(p);var x=h.createElement("span",k,f.consts.CLASS_NAMES.colorTextGExplain.id,f.consts.CLASS_NAMES.colorTextGExplain.className,{isIcon:!1,text:"G"});ht.appendChild(x);var S=h.createElementInput(k,f.consts.CLASS_NAMES.colorTextGInput.id,f.consts.CLASS_NAMES.colorTextGInput.className);S.setAttribute("maxlength","2"),h.addClickEvent(S,f.consts.CLASS_NAMES.colorTextGInput.id,k),ht.appendChild(S);var N=h.createElement("span",k,f.consts.CLASS_NAMES.colorTextBExplain.id,f.consts.CLASS_NAMES.colorTextBExplain.className,{isIcon:!1,text:"B"});ht.appendChild(N);var O=h.createElementInput(k,f.consts.CLASS_NAMES.colorTextBInput.id,f.consts.CLASS_NAMES.colorTextBInput.className);O.setAttribute("maxlength","2"),h.addClickEvent(O,f.consts.CLASS_NAMES.colorTextBInput.id,k),ht.appendChild(O);var T=h.createElement("span",k,f.consts.CLASS_NAMES.colorTextOpacityExplain.id,f.consts.CLASS_NAMES.colorTextOpacityExplain.className,{isIcon:!1,text:"Opacity"});ht.appendChild(T);var G=h.createElementInput(k,f.consts.CLASS_NAMES.colorTextOpacityInput.id,f.consts.CLASS_NAMES.colorTextOpacityInput.className);G.setAttribute("type","number"),G.setAttribute("maxlength","3"),h.addClickEvent(G,f.consts.CLASS_NAMES.colorTextOpacityInput.id,k),ht.appendChild(G),Be=document.createElement("br"),ht.appendChild(Be);var V=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorText0.id,f.consts.CLASS_NAMES.colorText0.className);V.style.backgroundColor=k._colors.color12,ht.appendChild(V);var Z=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorText1.id,f.consts.CLASS_NAMES.colorText1.className);Z.style.backgroundColor=k._colors.color14,ht.appendChild(Z);var oe=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorText2.id,f.consts.CLASS_NAMES.colorText2.className);oe.style.backgroundColor=k._colors.color15,ht.appendChild(oe);var Y=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorText3.id,f.consts.CLASS_NAMES.colorText3.className);Y.style.backgroundColor=k._colors.color16,ht.appendChild(Y);var se=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorText4.id,f.consts.CLASS_NAMES.colorText4.className);se.style.backgroundColor=k._colors.color17,ht.appendChild(se);var qe=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorText5.id,f.consts.CLASS_NAMES.colorText5.className);qe.style.backgroundColor=k._colors.color18,ht.appendChild(qe);var _t=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorText6.id,f.consts.CLASS_NAMES.colorText6.className);_t.style.backgroundColor=k._colors.color19,ht.appendChild(_t);var an=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorText7.id,f.consts.CLASS_NAMES.colorText7.className);an.style.backgroundColor=k._colors.color20,ht.appendChild(an);var Ft=h.createElementSelect("span",k,f.consts.CLASS_NAMES.colorBackSelect.id,f.consts.CLASS_NAMES.colorBackSelect.className,{isIcon:!0,text:"format_color_fill",iconStyle:"font-size: 1.1em; -webkit-text-stroke: 0.5px "+k._colors.color1+";"});if(Ft.setAttribute("title",f.languageSet[k._attributes.language].colorBackTooltip),f.iconSpanElement.colorBackSelectIcon&&f.iconSpanElement.colorBackSelectIcon instanceof HTMLSpanElement){var Gt=f.iconSpanElement.colorBackSelectIcon.cloneNode(!0);Gt.setAttribute("data-note-id",k._id),j.forEach(function(ue){Gt.classList.contains(ue)||Gt.classList.add(ue)}),Ft.replaceChild(Gt,Ft.firstChild)}var St=h.createElement("div",k,f.consts.CLASS_NAMES.colorBackSelectBox.id,f.consts.CLASS_NAMES.colorBackSelectBox.className);Ft.appendChild(St);var At=h.createElement("span",k,f.consts.CLASS_NAMES.colorBackRExplain.id,f.consts.CLASS_NAMES.colorBackRExplain.className,{isIcon:!1,text:"R"});At.style.paddingLeft=8*k._attributes.sizeRate+"px",St.appendChild(At);var Ct=h.createElementInput(k,f.consts.CLASS_NAMES.colorBackRInput.id,f.consts.CLASS_NAMES.colorBackRInput.className);Ct.setAttribute("maxlength","2"),h.addClickEvent(Ct,f.consts.CLASS_NAMES.colorBackRInput.id,k),St.appendChild(Ct);var jt=h.createElement("span",k,f.consts.CLASS_NAMES.colorBackGExplain.id,f.consts.CLASS_NAMES.colorBackGExplain.className,{isIcon:!1,text:"G"});St.appendChild(jt);var ln=h.createElementInput(k,f.consts.CLASS_NAMES.colorBackGInput.id,f.consts.CLASS_NAMES.colorBackGInput.className);ln.setAttribute("maxlength","2"),h.addClickEvent(ln,f.consts.CLASS_NAMES.colorBackGInput.id,k),St.appendChild(ln);var kn=h.createElement("span",k,f.consts.CLASS_NAMES.colorBackBExplain.id,f.consts.CLASS_NAMES.colorBackBExplain.className,{isIcon:!1,text:"B"});St.appendChild(kn);var On=h.createElementInput(k,f.consts.CLASS_NAMES.colorBackBInput.id,f.consts.CLASS_NAMES.colorBackBInput.className);On.setAttribute("maxlength","2"),h.addClickEvent(On,f.consts.CLASS_NAMES.colorBackBInput.id,k),St.appendChild(On);var Jn=h.createElement("span",k,f.consts.CLASS_NAMES.colorBackOpacityExplain.id,f.consts.CLASS_NAMES.colorBackOpacityExplain.className,{isIcon:!1,text:"Opacity"});St.appendChild(Jn);var Vn=h.createElementInput(k,f.consts.CLASS_NAMES.colorBackOpacityInput.id,f.consts.CLASS_NAMES.colorBackOpacityInput.className);Vn.setAttribute("type","number"),Vn.setAttribute("maxlength","3"),h.addClickEvent(Vn,f.consts.CLASS_NAMES.colorBackOpacityInput.id,k),St.appendChild(Vn),Be=document.createElement("br"),St.appendChild(Be);var mo=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorBack0.id,f.consts.CLASS_NAMES.colorBack0.className);mo.style.backgroundColor=k._colors.color13,St.appendChild(mo);var To=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorBack1.id,f.consts.CLASS_NAMES.colorBack1.className);To.style.backgroundColor=k._colors.color14,St.appendChild(To);var Zn=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorBack2.id,f.consts.CLASS_NAMES.colorBack2.className);Zn.style.backgroundColor=k._colors.color15,St.appendChild(Zn);var Qn=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorBack3.id,f.consts.CLASS_NAMES.colorBack3.className);Qn.style.backgroundColor=k._colors.color16,St.appendChild(Qn);var eo=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorBack4.id,f.consts.CLASS_NAMES.colorBack4.className);eo.style.backgroundColor=k._colors.color17,St.appendChild(eo);var Ae=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorBack5.id,f.consts.CLASS_NAMES.colorBack5.className);Ae.style.backgroundColor=k._colors.color18,St.appendChild(Ae);var we=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorBack6.id,f.consts.CLASS_NAMES.colorBack6.className);we.style.backgroundColor=k._colors.color19,St.appendChild(we);var Fe=h.createElementBasic("div",k,f.consts.CLASS_NAMES.colorBack7.id,f.consts.CLASS_NAMES.colorBack7.className);Fe.style.backgroundColor=k._colors.color20,St.appendChild(Fe);var at=h.createElementButton("span",k,f.consts.CLASS_NAMES.formatClearButton.id,f.consts.CLASS_NAMES.formatClearButton.className,{isIcon:!0,text:"format_clear"});if(at.setAttribute("title",f.languageSet[k._attributes.language].formatClearButtonTooltip),f.iconSpanElement.formatClearButtonIcon&&f.iconSpanElement.formatClearButtonIcon instanceof HTMLSpanElement){var $e=f.iconSpanElement.formatClearButtonIcon.cloneNode(!0);$e.setAttribute("data-note-id",k._id),j.forEach(function(ue){$e.classList.contains(ue)||$e.classList.add(ue)}),at.replaceChild($e,at.firstChild)}var yt=h.createElementButton("span",k,f.consts.CLASS_NAMES.undoButton.id,f.consts.CLASS_NAMES.undoButton.className,{isIcon:!0,text:"undo"});if(yt.setAttribute("title",f.languageSet[k._attributes.language].undoTooltip),f.iconSpanElement.undoButtonIcon&&f.iconSpanElement.undoButtonIcon instanceof HTMLSpanElement){var Nt=f.iconSpanElement.undoButtonIcon.cloneNode(!0);Nt.setAttribute("data-note-id",k._id),j.forEach(function(ue){Nt.classList.contains(ue)||Nt.classList.add(ue)}),yt.replaceChild(Nt,yt.firstChild)}var zt=h.createElementButton("span",k,f.consts.CLASS_NAMES.redoButton.id,f.consts.CLASS_NAMES.redoButton.className,{isIcon:!0,text:"redo"});if(zt.setAttribute("title",f.languageSet[k._attributes.language].redoTooltip),f.iconSpanElement.redoButtonIcon&&f.iconSpanElement.redoButtonIcon instanceof HTMLSpanElement){var Wt=f.iconSpanElement.redoButtonIcon.cloneNode(!0);Wt.setAttribute("data-note-id",k._id),j.forEach(function(ue){Wt.classList.contains(ue)||Wt.classList.add(ue)}),zt.replaceChild(Wt,zt.firstChild)}var sn=h.createElementButton("span",k,f.consts.CLASS_NAMES.helpButton.id,f.consts.CLASS_NAMES.helpButton.className,{isIcon:!0,text:"help"});if(sn.setAttribute("title",f.languageSet[k._attributes.language].helpTooltip),f.iconSpanElement.helpButtonIcon&&f.iconSpanElement.helpButtonIcon instanceof HTMLSpanElement){var vn=f.iconSpanElement.helpButtonIcon.cloneNode(!0);vn.setAttribute("data-note-id",k._id),j.forEach(function(ue){vn.classList.contains(ue)||vn.classList.add(ue)}),sn.replaceChild(vn,sn.firstChild)}var Zt=h.createElementBasic("div",k,f.consts.CLASS_NAMES.modalBack.id,f.consts.CLASS_NAMES.modalBack.className),En=h.createElementBasic("div",k,f.consts.CLASS_NAMES.attLinkModal.id,f.consts.CLASS_NAMES.attLinkModal.className),Qa=h.createElement("div",k,f.consts.CLASS_NAMES.attLinkHeader.id,f.consts.CLASS_NAMES.attLinkHeader.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attLinkModalTitle});En.appendChild(Qa);var el=h.createElement("div",k,f.consts.CLASS_NAMES.attLinkExplain1.id,f.consts.CLASS_NAMES.attLinkExplain1.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attLinkInTextExplain});En.appendChild(el);var Pi=h.createElementInput(k,f.consts.CLASS_NAMES.attLinkText.id,f.consts.CLASS_NAMES.attLinkText.className);Pi.setAttribute("title",f.languageSet[k._attributes.language].attLinkInTextTooltip),En.appendChild(Pi);var tl=h.createElement("div",k,f.consts.CLASS_NAMES.attLinkExplain2.id,f.consts.CLASS_NAMES.attLinkExplain2.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attLinkInLinkExplain});En.appendChild(tl);var zi=h.createElementInput(k,f.consts.CLASS_NAMES.attLinkHref.id,f.consts.CLASS_NAMES.attLinkHref.className);zi.setAttribute("title",f.languageSet[k._attributes.language].attLinkInLinkTooltip),En.appendChild(zi);var Ui=h.createElementInputCheckbox(k,f.consts.CLASS_NAMES.attLinkIsBlankCheckbox.id,f.consts.CLASS_NAMES.attLinkIsBlankCheckbox.className);Ui.setAttribute("title",f.languageSet[k._attributes.language].attLinkIsOpenTooltip);var dr=h.createElement("label",k,f.consts.CLASS_NAMES.attLinkIsBlankLabel.id,f.consts.CLASS_NAMES.attLinkIsBlankLabel.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attLinkIsOpenExplain});dr.insertBefore(Ui,dr.firstChild),En.appendChild(dr);var nl=h.createElement("span",k,f.consts.CLASS_NAMES.attLinkValidCheckText.id,f.consts.CLASS_NAMES.attLinkValidCheckText.className),Gi=h.createElementInputCheckbox(k,f.consts.CLASS_NAMES.attLinkValidCheckbox.id,f.consts.CLASS_NAMES.attLinkValidCheckbox.className);Gi.style.display="none";var Bo=h.createElement("div",k,f.consts.CLASS_NAMES.attLinkFooter.id,f.consts.CLASS_NAMES.attLinkFooter.className),ur=h.createElementButton("button",k,f.consts.CLASS_NAMES.attLinkInsertButton.id,f.consts.CLASS_NAMES.attLinkInsertButton.className,{isIcon:!0,text:"add_link"});if(f.iconSpanElement.attLinkInsertButtonIcon&&f.iconSpanElement.attLinkInsertButtonIcon instanceof HTMLSpanElement){var fr=f.iconSpanElement.attLinkInsertButtonIcon.cloneNode(!0);fr.setAttribute("data-note-id",k._id),j.forEach(function(ue){fr.classList.contains(ue)||fr.classList.add(ue)}),ur.replaceChild(fr,ur.firstChild)}Bo.appendChild(nl),Bo.appendChild(Gi),Bo.appendChild(ur),En.appendChild(Bo);var Lo=h.createElementBasic("div",k,f.consts.CLASS_NAMES.attFileModal.id,f.consts.CLASS_NAMES.attFileModal.className),ol=h.createElement("div",k,f.consts.CLASS_NAMES.attFileHeader.id,f.consts.CLASS_NAMES.attFileHeader.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attFileModalTitle});Lo.appendChild(ol);var to=h.createElement("div",k,f.consts.CLASS_NAMES.attFilelayout.id,f.consts.CLASS_NAMES.attFilelayout.className),rl=h.createElement("div",k,f.consts.CLASS_NAMES.attFileExplain1.id,f.consts.CLASS_NAMES.attFileExplain1.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attFileExplain1});to.appendChild(rl),Be=document.createElement("br"),to.appendChild(Be);var hr=document.createElement("div");hr.setAttribute("style","width:90%;text-align:center;margin:0 auto;");var mr=h.createElementButton("div",k,f.consts.CLASS_NAMES.attFileUploadDiv.id,f.consts.CLASS_NAMES.attFileUploadDiv.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attFileUploadDiv});mr.addEventListener("dragover",function(ue){k._elementEvents.attFileUploadDiv_onBeforeDragover(ue)&&(f.events.elementEvents.attFileUploadDiv_onDragover(ue),k._elementEvents.attFileUploadDiv_onAfterDragover(ue),ue.stopImmediatePropagation())}),mr.addEventListener("drop",function(ue){k._elementEvents.attFileUploadDiv_onBeforeDrop(ue)&&(f.events.elementEvents.attFileUploadDiv_onDrop(ue),k._elementEvents.attFileUploadDiv_onAfterDrop(ue),ue.stopImmediatePropagation())}),hr.appendChild(mr),to.appendChild(hr);var gr=document.createElement("div");gr.setAttribute("style","width:90%;text-align:right;margin:5px auto 20px auto;");var il=h.createElementButton("button",k,f.consts.CLASS_NAMES.attFileUploadButton.id,f.consts.CLASS_NAMES.attFileUploadButton.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attFileUploadButton});gr.appendChild(il),to.appendChild(gr);var pr=h.createElementInput(k,f.consts.CLASS_NAMES.attFileUpload.id,f.consts.CLASS_NAMES.attFileUpload.className);pr.setAttribute("type","file"),pr.setAttribute("multiple",""),to.appendChild(pr),Lo.appendChild(to);var ji=h.createElement("div",k,f.consts.CLASS_NAMES.attFileFooter.id,f.consts.CLASS_NAMES.attFileFooter.className),yr=h.createElementButton("button",k,f.consts.CLASS_NAMES.attFileInsertButton.id,f.consts.CLASS_NAMES.attFileInsertButton.className,{isIcon:!0,text:"attach_file"});if(f.iconSpanElement.attFileInsertButtonIcon&&f.iconSpanElement.attFileInsertButtonIcon instanceof HTMLSpanElement){var _r=f.iconSpanElement.attFileInsertButtonIcon.cloneNode(!0);_r.setAttribute("data-note-id",k._id),j.forEach(function(ue){_r.classList.contains(ue)||_r.classList.add(ue)}),yr.replaceChild(_r,yr.firstChild)}ji.appendChild(yr),Lo.appendChild(ji);var mn=h.createElementBasic("div",k,f.consts.CLASS_NAMES.attImageModal.id,f.consts.CLASS_NAMES.attImageModal.className),al=h.createElement("div",k,f.consts.CLASS_NAMES.attImageHeader.id,f.consts.CLASS_NAMES.attImageHeader.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attImageModalTitle});mn.appendChild(al);var ll=h.createElement("div",k,f.consts.CLASS_NAMES.attImageExplain1.id,f.consts.CLASS_NAMES.attImageExplain1.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attImageExplain1});mn.appendChild(ll),Be=document.createElement("br"),mn.appendChild(Be);var go=document.createElement("div");go.setAttribute("style","width:90%;text-align:center;margin:0 auto;position:relative;");var No=h.createElementButton("button",k,f.consts.CLASS_NAMES.attImageViewPreButton.id,f.consts.CLASS_NAMES.attImageViewPreButton.className,{isIcon:!0,text:"navigate_before"});if(f.iconSpanElement.attImageViewPreButtonIcon&&f.iconSpanElement.attImageViewPreButtonIcon instanceof HTMLSpanElement){var vr=f.iconSpanElement.attImageViewPreButtonIcon.cloneNode(!0);vr.setAttribute("data-note-id",k._id),j.forEach(function(ue){vr.classList.contains(ue)||vr.classList.add(ue)}),No.replaceChild(vr,No.firstChild)}No.setAttribute("style","position:absolute;top:50%;transform:translateY(-50%) translateX(1%);"),go.appendChild(No);var br=h.createElementBasic("div",k,f.consts.CLASS_NAMES.attImageUploadButtonAndView.id,f.consts.CLASS_NAMES.attImageUploadButtonAndView.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attImageUploadButtonAndView});br.addEventListener("dragover",function(ue){k._elementEvents.attImageUploadButtonAndView_onBeforeDragover(ue)&&(f.events.elementEvents.attImageUploadButtonAndView_onDragover(ue),k._elementEvents.attImageUploadButtonAndView_onAfterDragover(ue),ue.stopImmediatePropagation())}),br.addEventListener("drop",function(ue){k._elementEvents.attImageUploadButtonAndView_onBeforeDrop(ue)&&(f.events.elementEvents.attImageUploadButtonAndView_onDrop(ue),k._elementEvents.attImageUploadButtonAndView_onAfterDrop(ue),ue.stopImmediatePropagation())}),go.appendChild(br);var Ro=h.createElementButton("button",k,f.consts.CLASS_NAMES.attImageViewNextButton.id,f.consts.CLASS_NAMES.attImageViewNextButton.className,{isIcon:!0,text:"navigate_next"});if(f.iconSpanElement.attImageViewNextButtonIcon&&f.iconSpanElement.attImageViewNextButtonIcon instanceof HTMLSpanElement){var Cr=f.iconSpanElement.attImageViewNextButtonIcon.cloneNode(!0);Cr.setAttribute("data-note-id",k._id),j.forEach(function(ue){Cr.classList.contains(ue)||Cr.classList.add(ue)}),Ro.replaceChild(Cr,Ro.firstChild)}Ro.setAttribute("style","position:absolute;top:50%;transform:translateY(-50%) translateX(-101%);"),go.appendChild(Ro),mn.appendChild(go);var Ho=h.createElementInput(k,f.consts.CLASS_NAMES.attImageUpload.id,f.consts.CLASS_NAMES.attImageUpload.className);Ho.setAttribute("type","file"),Ho.setAttribute("multiple","");var qd=function(ue){for(var no="",Dn=0;Dn<ue.length;Dn++)ue[Dn]&&(no+=ue[Dn].trim(),Dn!==ue.length-1&&(no+=", "));return no}(k._attributes.attImageAcceptTypes);Ho.setAttribute("accept",qd),mn.appendChild(Ho);var sl=h.createElement("div",k,f.consts.CLASS_NAMES.attImageExplain2.id,f.consts.CLASS_NAMES.attImageExplain2.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attImageExplain2});mn.appendChild(sl),Be=document.createElement("br"),mn.appendChild(Be);var Wi=h.createElementInput(k,f.consts.CLASS_NAMES.attImageURL.id,f.consts.CLASS_NAMES.attImageURL.className);Wi.setAttribute("title",f.languageSet[k._attributes.language].attImageURLTooltip),mn.appendChild(Wi);var qi=h.createElement("div",k,f.consts.CLASS_NAMES.attImageFooter.id,f.consts.CLASS_NAMES.attImageFooter.className),xr=h.createElementButton("button",k,f.consts.CLASS_NAMES.attImageInsertButton.id,f.consts.CLASS_NAMES.attImageInsertButton.className,{isIcon:!0,text:"image"});if(f.iconSpanElement.attImageInsertButtonIcon&&f.iconSpanElement.attImageInsertButtonIcon instanceof HTMLSpanElement){var Mr=f.iconSpanElement.attImageInsertButtonIcon.cloneNode(!0);Mr.setAttribute("data-note-id",k._id),j.forEach(function(ue){Mr.classList.contains(ue)||Mr.classList.add(ue)}),xr.replaceChild(Mr,xr.firstChild)}qi.appendChild(xr),mn.appendChild(qi);var wn=h.createElementBasic("div",k,f.consts.CLASS_NAMES.attVideoModal.id,f.consts.CLASS_NAMES.attVideoModal.className),cl=h.createElement("div",k,f.consts.CLASS_NAMES.attVideoHeader.id,f.consts.CLASS_NAMES.attVideoHeader.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attVideoModalTitle});wn.appendChild(cl);var dl=h.createElement("div",k,f.consts.CLASS_NAMES.attVideoExplain1.id,f.consts.CLASS_NAMES.attVideoExplain1.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attVideoExplain1});wn.appendChild(dl);var $i=h.createElementInput(k,f.consts.CLASS_NAMES.attVideoEmbedId.id,f.consts.CLASS_NAMES.attVideoEmbedId.className);$i.setAttribute("title",f.languageSet[k._attributes.language].attVideoEmbedIdTooltip),wn.appendChild($i);var ul=h.createElement("div",k,f.consts.CLASS_NAMES.attVideoExplain2.id,f.consts.CLASS_NAMES.attVideoExplain2.className,{isIcon:!1,text:f.languageSet[k._attributes.language].attVideoExplain2});wn.appendChild(ul);var po=document.createElement("div");po.setAttribute("style","padding-left:20px;color:"+k._colors.color10);var Sr=h.createElement("span",k,"","modal_att_video_icon",{isIcon:!0,text:"width",iconStyle:"color:"+k._colors.color10});if(f.iconSpanElement.attVideoWidthTextIcon&&f.iconSpanElement.attVideoWidthTextIcon instanceof HTMLSpanElement){var Ir=f.iconSpanElement.attVideoWidthTextIcon.cloneNode(!0);Ir.setAttribute("data-note-id",k._id),j.forEach(function(ue){Ir.classList.contains(ue)||Ir.classList.add(ue)}),Sr.replaceChild(Ir,Sr.firstChild)}po.appendChild(Sr);var Fo=h.createElementInput(k,f.consts.CLASS_NAMES.attVideoWidth.id,f.consts.CLASS_NAMES.attVideoWidth.className);Fo.setAttribute("title",f.languageSet[k._attributes.language].attVideoWidthTooltip),Fo.setAttribute("type","number"),Fo.setAttribute("style","text-align:right;"),po.appendChild(Fo);var Yi=h.createElement("span",k,"","modal_att_video_icon",{isIcon:!1,text:"%"});Yi.setAttribute("style","padding-left:10px;font-size:0.8em"),po.appendChild(Yi),wn.appendChild(po);var yo=document.createElement("div");yo.setAttribute("style","padding-left:20px;color:"+k._colors.color10);var kr=h.createElement("span",k,"","modal_att_video_icon",{isIcon:!0,text:"height",iconStyle:"color:"+k._colors.color10});if(f.iconSpanElement.attVideoHeightTextIcon&&f.iconSpanElement.attVideoHeightTextIcon instanceof HTMLSpanElement){var Er=f.iconSpanElement.attVideoHeightTextIcon.cloneNode(!0);Er.setAttribute("data-note-id",k._id),j.forEach(function(ue){Er.classList.contains(ue)||Er.classList.add(ue)}),kr.replaceChild(Er,kr.firstChild)}yo.appendChild(kr);var Oo=h.createElementInput(k,f.consts.CLASS_NAMES.attVideoHeight.id,f.consts.CLASS_NAMES.attVideoHeight.className);Oo.setAttribute("title",f.languageSet[k._attributes.language].attVideoHeightTooltip),Oo.setAttribute("type","number"),Oo.setAttribute("style","text-align:right;"),yo.appendChild(Oo);var Ki=h.createElement("span",k,"","modal_att_video_icon",{isIcon:!1,text:"px"});Ki.setAttribute("style","padding-left:10px;font-size:0.8em"),yo.appendChild(Ki),wn.appendChild(yo);var fl=h.createElement("span",k,f.consts.CLASS_NAMES.attVideoValidCheckText.id,f.consts.CLASS_NAMES.attVideoValidCheckText.className),Xi=h.createElementInputCheckbox(k,f.consts.CLASS_NAMES.attVideoValidCheckbox.id,f.consts.CLASS_NAMES.attVideoValidCheckbox.className);Xi.style.display="none";var wr=h.createElementButton("button",k,f.consts.CLASS_NAMES.attVideoInsertButton.id,f.consts.CLASS_NAMES.attVideoInsertButton.className,{isIcon:!0,text:"videocam"});if(f.iconSpanElement.attVideoInsertButtonIcon&&f.iconSpanElement.attVideoInsertButtonIcon instanceof HTMLSpanElement){var Ar=f.iconSpanElement.attVideoInsertButtonIcon.cloneNode(!0);Ar.setAttribute("data-note-id",k._id),j.forEach(function(ue){Ar.classList.contains(ue)||Ar.classList.add(ue)}),wr.replaceChild(Ar,wr.firstChild)}var Vo=h.createElement("div",k,f.consts.CLASS_NAMES.attVideoFooter.id,f.consts.CLASS_NAMES.attVideoFooter.className);Vo.appendChild(fl),Vo.appendChild(Xi),Vo.appendChild(wr),wn.appendChild(Vo);var _o=h.createElement("div",k,f.consts.CLASS_NAMES.attLinkTooltip.id,f.consts.CLASS_NAMES.attLinkTooltip.className),Ji=h.createElement("a",k,f.consts.CLASS_NAMES.attLinkTooltipHref.id,f.consts.CLASS_NAMES.attLinkTooltipHref.className);Ji.setAttribute("target","_blank");var Tr=h.createElementButton("span",k,f.consts.CLASS_NAMES.attLinkTooltipEditButton.id,f.consts.CLASS_NAMES.attLinkTooltipEditButton.className,{isIcon:!0,text:"add_link",iconStyle:"font-size:0.9em"});if(f.iconSpanElement.attLinkTooltipEditButtonIcon&&f.iconSpanElement.attLinkTooltipEditButtonIcon instanceof HTMLSpanElement){var Br=f.iconSpanElement.attLinkTooltipEditButtonIcon.cloneNode(!0);Br.setAttribute("data-note-id",k._id),j.forEach(function(ue){Br.classList.contains(ue)||Br.classList.add(ue)}),Tr.replaceChild(Br,Tr.firstChild)}var Lr=h.createElementButton("span",k,f.consts.CLASS_NAMES.attLinkTooltipUnlinkButton.id,f.consts.CLASS_NAMES.attLinkTooltipUnlinkButton.className,{isIcon:!0,text:"link_off",iconStyle:"font-size:0.9em"});if(f.iconSpanElement.attLinkTooltipUnlinkButtonIcon&&f.iconSpanElement.attLinkTooltipUnlinkButtonIcon instanceof HTMLSpanElement){var Nr=f.iconSpanElement.attLinkTooltipUnlinkButtonIcon.cloneNode(!0);Nr.setAttribute("data-note-id",k._id),j.forEach(function(ue){Nr.classList.contains(ue)||Nr.classList.add(ue)}),Lr.replaceChild(Nr,Lr.firstChild)}_o.appendChild(Tr),_o.appendChild(Lr),_o.appendChild(Ji);var Do=h.createElement("div",k,f.consts.CLASS_NAMES.attImageAndVideoTooltip.id,f.consts.CLASS_NAMES.attImageAndVideoTooltip.className),un=document.createElement("div"),Po=document.createElement("span");Po.setAttribute("class",m(k._noteName,k.id,"small_text_box")),Po.setAttribute("style","padding: 0 0 0 10px;"),Po.textContent=f.languageSet[k._attributes.language].attImageAndVideoTooltipWidthInput,un.appendChild(Po);var Rr=h.createElementInput(k,f.consts.CLASS_NAMES.attImageAndVideoTooltipWidthInput.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipWidthInput.className);Rr.addEventListener("keyup",function(ue){k._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeKeyup(ue)&&(f.events.elementEvents.attImageAndVideoTooltipWidthInput_onKeyup(ue),k._elementEvents.attImageAndVideoTooltipWidthInput_onAfterKeyup(ue),ue.stopImmediatePropagation())}),Rr.setAttribute("type","number"),un.appendChild(Rr);var zo=document.createElement("span");zo.setAttribute("class",m(k._noteName,k.id,"small_text_box")),zo.setAttribute("style","padding: 0;"),zo.textContent="%",un.appendChild(zo);var Hr=document.createElement("span");Hr.setAttribute("class",m(k._noteName,k.id,"small_text_box")),Hr.textContent=f.languageSet[k._attributes.language].attImageAndVideoTooltipFloatRadio,un.appendChild(Hr);var hl=h.createElementInputRadio(k,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioNone.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioNone.className,c(k._noteName,k.id,"attImageAndVideoTooltipFloatRadio"));un.appendChild(hl);var Fr=h.createElementRadioLabel(k,c(k._noteName,k.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioNone.id),"close");if(f.iconSpanElement.attImageAndVideoTooltipFloatRadioNoneLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipFloatRadioNoneLabelIcon instanceof HTMLSpanElement){var Or=f.iconSpanElement.attImageAndVideoTooltipFloatRadioNoneLabelIcon.cloneNode(!0);Or.setAttribute("data-note-id",k._id),j.forEach(function(ue){Or.classList.contains(ue)||Or.classList.add(ue)}),Fr.replaceChild(Or,Fr.firstChild)}un.appendChild(Fr);var ml=h.createElementInputRadio(k,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioLeft.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioLeft.className,c(k._noteName,k.id,"attImageAndVideoTooltipFloatRadio"));un.appendChild(ml);var Vr=h.createElementRadioLabel(k,c(k._noteName,k.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioLeft.id),"art_track");if(f.iconSpanElement.attImageAndVideoTooltipFloatRadioLeftLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipFloatRadioLeftLabelIcon instanceof HTMLSpanElement){var Dr=f.iconSpanElement.attImageAndVideoTooltipFloatRadioLeftLabelIcon.cloneNode(!0);Dr.setAttribute("data-note-id",k._id),j.forEach(function(ue){Dr.classList.contains(ue)||Dr.classList.add(ue)}),Vr.replaceChild(Dr,Vr.firstChild)}un.appendChild(Vr);var gl=h.createElementInputRadio(k,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioRight.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioRight.className,c(k._noteName,k.id,"attImageAndVideoTooltipFloatRadio"));un.appendChild(gl);var Pr=h.createElementRadioLabel(k,c(k._noteName,k.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioRight.id),"burst_mode");if(f.iconSpanElement.attImageAndVideoTooltipFloatRadioRightLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipFloatRadioRightLabelIcon instanceof HTMLSpanElement){var zr=f.iconSpanElement.attImageAndVideoTooltipFloatRadioRightLabelIcon.cloneNode(!0);zr.setAttribute("data-note-id",k._id),j.forEach(function(ue){zr.classList.contains(ue)||zr.classList.add(ue)}),Pr.replaceChild(zr,Pr.firstChild)}un.appendChild(Pr),Do.appendChild(un);var An=document.createElement("div"),Ur=document.createElement("span");Ur.setAttribute("class",m(k._noteName,k.id,"small_text_box")),Ur.textContent=f.languageSet[k._attributes.language].attImageAndVideoTooltipShapeRadio,An.appendChild(Ur);var pl=h.createElementInputRadio(k,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioSquare.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioSquare.className,c(k._noteName,k.id,"attImageAndVideoTooltipShapeRadio"));An.appendChild(pl);var Gr=h.createElementRadioLabel(k,c(k._noteName,k.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioSquare.id),"crop_5_4");if(f.iconSpanElement.attImageAndVideoTooltipShapeRadioSquareLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipShapeRadioSquareLabelIcon instanceof HTMLSpanElement){var jr=f.iconSpanElement.attImageAndVideoTooltipShapeRadioSquareLabelIcon.cloneNode(!0);jr.setAttribute("data-note-id",k._id),j.forEach(function(ue){jr.classList.contains(ue)||jr.classList.add(ue)}),Gr.replaceChild(jr,Gr.firstChild)}An.appendChild(Gr);var yl=h.createElementInputRadio(k,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioRadius.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioRadius.className,c(k._noteName,k.id,"attImageAndVideoTooltipShapeRadio"));An.appendChild(yl);var Wr=h.createElementRadioLabel(k,c(k._noteName,k.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioRadius.id),"aspect_ratio");if(f.iconSpanElement.attImageAndVideoTooltipShapeRadioRadiusLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipShapeRadioRadiusLabelIcon instanceof HTMLSpanElement){var qr=f.iconSpanElement.attImageAndVideoTooltipShapeRadioRadiusLabelIcon.cloneNode(!0);qr.setAttribute("data-note-id",k._id),j.forEach(function(ue){qr.classList.contains(ue)||qr.classList.add(ue)}),Wr.replaceChild(qr,Wr.firstChild)}An.appendChild(Wr);var _l=h.createElementInputRadio(k,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioCircle.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioCircle.className,c(k._noteName,k.id,"attImageAndVideoTooltipShapeRadio"));An.appendChild(_l);var $r=h.createElementRadioLabel(k,c(k._noteName,k.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioCircle.id),"circle");if(f.iconSpanElement.attImageAndVideoTooltipShapeRadioCircleLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipShapeRadioCircleLabelIcon instanceof HTMLSpanElement){var Yr=f.iconSpanElement.attImageAndVideoTooltipShapeRadioCircleLabelIcon.cloneNode(!0);Yr.setAttribute("data-note-id",k._id),j.forEach(function(ue){Yr.classList.contains(ue)||Yr.classList.add(ue)}),$r.replaceChild(Yr,$r.firstChild)}An.appendChild($r),Do.appendChild(An);var Uo=h.createElementBasic("div",k,f.consts.CLASS_NAMES.helpModal.id,f.consts.CLASS_NAMES.helpModal.className),vl=h.createElement("div",k,f.consts.CLASS_NAMES.helpHeader.id,f.consts.CLASS_NAMES.helpHeader.className,{isIcon:!1,text:f.languageSet[k._attributes.language].helpModalTitle});Uo.appendChild(vl);var Zi=h.createElement("div",k,f.consts.CLASS_NAMES.helpMain.id,f.consts.CLASS_NAMES.helpMain.className),Qi=document.createElement("table");f.languageSet[k._attributes.language].helpContent.forEach(function(ue){var no=document.createElement("tr");Object.keys(ue).forEach(function(Dn){var ta=document.createElement("td");ta.textContent=Dn,ta.setAttribute("style","width:30%;padding:0 0 6px 12px;border:none;"),no.appendChild(ta);var na=document.createElement("td");na.setAttribute("style","width:70%;padding:0 12px 6px 12px;border:none;"),na.textContent=ue[Dn],no.appendChild(na)}),Qi.appendChild(no)}),Zi.appendChild(Qi),Uo.appendChild(Zi);var ea=h.createElement("div",k,f.consts.CLASS_NAMES.helpFooter.id,f.consts.CLASS_NAMES.helpFooter.className);ea.setAttribute("style","height:25px;"),Uo.appendChild(ea);var Kr=h.createElementBasic("div",k,f.consts.CLASS_NAMES.placeholder.id,f.consts.CLASS_NAMES.placeholder.className);if(k._attributes.placeholderTitle){var bl=document.createElement("h5");bl.innerText=k._attributes.placeholderTitle,Kr.appendChild(bl)}if(k._attributes.placeholderTextContent){var Cl=document.createElement("p");Cl.innerText=k._attributes.placeholderTextContent,Kr.appendChild(Cl)}Zt.appendChild(En),Zt.appendChild(Lo),Zt.appendChild(mn),Zt.appendChild(wn),Zt.appendChild(Uo),tt.appendChild(Zt),tt.appendChild(Kr),k._attributes.toolToggleUsing&&E.appendChild(s),E.appendChild(I),E.appendChild(et),E.appendChild(xt),E.appendChild(Mt),E.appendChild(v),E.appendChild(A),E.appendChild(g),E.appendChild(ce),E.appendChild(Q),E.appendChild(b),E.appendChild(R),E.appendChild(D),E.appendChild(Se),E.appendChild(Ue),E.appendChild(ct),E.appendChild(le),E.appendChild(Ft),E.appendChild(at),E.appendChild(yt),E.appendChild(zt),E.appendChild(sn),k._attributes.toolPosition===r.bottom?(tt.appendChild(Ge),tt.appendChild(_o),tt.appendChild(Do),tt.appendChild(E)):(tt.appendChild(E),tt.appendChild(_o),tt.appendChild(Do),tt.appendChild(Ge)),k.appendChild(tt),ye.value=String(k._status.fontSize),je.value=String(k._status.letterSpacing),rt.value=String(k._status.lineHeight),p.value=k._status.colorTextR,S.value=k._status.colorTextG,O.value=k._status.colorTextB,G.value=k._status.colorTextO,Ct.value=k._status.colorBackR,ln.value=k._status.colorBackG,On.value=k._status.colorBackB,Vn.value=k._status.colorBackO,be.usingParagraphStyle||(I.style.display="none"),be.usingBold||(et.style.display="none"),be.usingUnderline||(xt.style.display="none"),be.usingItalic||(Mt.style.display="none"),be.usingUl||(v.style.display="none"),be.usingOl||(A.style.display="none"),be.usingTextAlign||(g.style.display="none"),be.usingAttLink||(ce.style.display="none"),be.usingAttFile||(Q.style.display="none"),be.usingAttImage||(b.style.display="none"),be.usingAttVideo||(R.style.display="none"),be.usingFontSize||(D.style.display="none"),be.usingLetterSpacing||(Se.style.display="none"),be.usingLineHeight||(Ue.style.display="none"),be.usingFontFamily||(ct.style.display="none"),be.usingColorText||(le.style.display="none"),be.usingColorBack||(Ft.style.display="none"),be.usingFormatClear||(at.style.display="none"),be.usingUndo||(yt.style.display="none"),be.usingRedo||(zt.style.display="none"),be.usingHelp||(sn.style.display="none"),k._elements={template:tt,textarea:Ge,tool:E,toolToggleButton:s,paragraphStyleSelect:I,paragraphStyleSelectBox:J,paragraphStyleNormalButton:ae,paragraphStyleHeader1Button:ge,paragraphStyleHeader2Button:Ce,paragraphStyleHeader3Button:He,paragraphStyleHeader4Button:Le,paragraphStyleHeader5Button:Ke,paragraphStyleHeader6Button:Ze,boldButton:et,underlineButton:xt,italicButton:Mt,ulButton:v,olButton:A,textAlignSelect:g,textAlignSelectBox:B,textAlignLeftButton:H,textAlignCenterButton:q,textAlignRightButton:de,attLinkButton:ce,attFileButton:Q,attImageButton:b,attVideoButton:R,fontSizeInputBox:D,fontSizeInput:ye,letterSpacingInputBox:Se,letterSpacingInput:je,lineHeightInputBox:Ue,lineHeightInput:rt,fontFamilySelect:ct,fontFamilySelectBox:Ne,colorTextSelect:le,colorTextSelectBox:ht,colorTextRIcon:d,colorTextRInput:p,colorTextGIcon:x,colorTextGInput:S,colorTextBIcon:N,colorTextBInput:O,colorTextOpacityIcon:T,colorTextOpacityInput:G,colorText0:V,colorText1:Z,colorText2:oe,colorText3:Y,colorText4:se,colorText5:qe,colorText6:_t,colorText7:an,colorBackSelect:Ft,colorBackSelectBox:St,colorBackRIcon:At,colorBackRInput:Ct,colorBackGIcon:jt,colorBackGInput:ln,colorBackBIcon:kn,colorBackBInput:On,colorBackOpacityIcon:Jn,colorBackOpacityInput:Vn,colorBack0:mo,colorBack1:To,colorBack2:Zn,colorBack3:Qn,colorBack4:eo,colorBack5:Ae,colorBack6:we,colorBack7:Fe,formatClearButton:at,undoButton:yt,redoButton:zt,helpButton:sn,modalBack:Zt,attLinkModal:En,attLinkModalTitle:Qa,attLinkInTextExplain:el,attLinkText:Pi,attLinkInLinkExplain:tl,attLinkHref:zi,attLinkIsBlankCheckbox:Ui,attLinkIsOpenExplain:dr,attLinkValidCheckText:nl,attLinkValidCheckbox:Gi,attModalBox:Bo,attLinkInsertButton:ur,attFileModal:Lo,attFileModalTitle:ol,attFilelayout:to,attFileExplain1:rl,attFileUploadDivBox:hr,attFileUploadDiv:mr,attFileUploadButtonBox:gr,attFileUploadButton:il,attFileUpload:pr,attFileInsertButtonBox:ji,attFileInsertButton:yr,attImageModal:mn,attImageModalTitle:al,attImageExplain1:ll,attImageUploadButtonAndViewBox:go,attImageViewPreButton:No,attImageUploadButtonAndView:br,attImageViewNextButton:Ro,attImageUpload:Ho,attImageExplain2:sl,attImageURL:Wi,attImageInsertButtonBox:qi,attImageInsertButton:xr,attVideoModal:wn,attVideoModalTitle:cl,attVideoExplain1:dl,attVideoEmbedId:$i,attVideoExplain2:ul,attVideoWidthTextBox:po,attVideoWidthText:Sr,attVideoWidth:Fo,attVideoWidthUnit:Yi,attVideoHeightTextBox:yo,attVideoHeightText:kr,attVideoHeight:Oo,attVideoHeightUnit:Ki,attVideoFooter:Vo,attVideoValidCheckText:fl,attVideoValidCheckbox:Xi,attVideoInsertButton:wr,attLinkTooltip:_o,attLinkTooltipHref:Ji,attLinkTooltipEditButton:Tr,attLinkTooltipUnlinkButton:Lr,attImageAndVideoTooltip:Do,attImageAndVideoTooltipWidthAndFloatBox:un,attImageAndVideoTooltipWidthText:Po,attImageAndVideoTooltipWidthInput:Rr,attImageAndVideoTooltipWidthUnit:zo,attImageAndVideoTooltipFloatRadioBox:Hr,attImageAndVideoTooltipFloatRadioNone:hl,attImageAndVideoTooltipFloatRadioNoneLabel:Fr,attImageAndVideoTooltipFloatRadioLeft:ml,attImageAndVideoTooltipFloatRadioLeftLabel:Vr,attImageAndVideoTooltipFloatRadioRight:gl,attImageAndVideoTooltipFloatRadioRightLabel:Pr,attImageAndVideoTooltipShapeBox:An,attImageAndVideoTooltipShapeRadioBox:Ur,attImageAndVideoTooltipShapeRadioSquare:pl,attImageAndVideoTooltipShapeRadioSquareLabel:Gr,attImageAndVideoTooltipShapeRadioRadius:yl,attImageAndVideoTooltipShapeRadioRadiusLabel:Wr,attImageAndVideoTooltipShapeRadioCircle:_l,attImageAndVideoTooltipShapeRadioCircleLabel:$r,helpModal:Uo,helpHeader:vl,helpMain:Zi,helpMainTable:Qi,helpFooter:ea,placeholder:Kr}},rn=function(f,h){for(var k,be=h.getAttribute("note-mode-by-device")&&["ADAPTIVE","MOBILE","DESKTOP"].indexOf(h.getAttribute("note-mode-by-device"))?h.getAttribute("note-mode-by-device").toUpperCase():f.attributes.noteModeByDevice,Be=be==="MOBILE"||be!=="DESKTOP"&&X(),tt=h.getAttribute("tool-position")&&["BOTTOM","TOP"].indexOf(h.getAttribute("tool-position"))>=0?h.getAttribute("tool-position"):Be?r.bottom:r.top,Ge=ee(h.getAttribute("tool-default-line"))?Number(h.getAttribute("tool-default-line")):Be?2:1,j=h.getAttribute("tool-toggle")?h.getAttribute("tool-toggle").toLowerCase()==="true":!!Be,E=h.getAttribute("textarea-width")?h.getAttribute("textarea-width"):f.attributes.textareaOriginWidth,s=h.getAttribute("textarea-height")?h.getAttribute("textarea-height"):f.attributes.textareaOriginHeight,l=h.getAttribute("textarea-max-width")?h.getAttribute("textarea-max-width"):f.attributes.textareaMaxWidth,I=h.getAttribute("textarea-max-height")?h.getAttribute("textarea-max-height"):f.attributes.textareaMaxHeight,$=h.getAttribute("textarea-height-isModify")?h.getAttribute("textarea-height-isModify").toLowerCase()==="true":f.attributes.textareaHeightIsModify,J=h.getAttribute("placeholder-is-visible")?h.getAttribute("placeholder-is-visible").toLowerCase()==="true":f.attributes.placeholderIsVisible,ae=ie(h.getAttribute("placeholder-add-top"))?Number(h.getAttribute("placeholder-add-top")):f.attributes.placeholderAddTop,ge=ie(h.getAttribute("placeholder-add-left"))?Number(h.getAttribute("placeholder-add-left")):f.attributes.placeholderAddLeft,Ce=h.getAttribute("placeholder-width")?h.getAttribute("placeholder-width"):f.attributes.placeholderWidth,He=h.getAttribute("placeholder-color")?h.getAttribute("placeholder-color"):f.attributes.placeholderColor,Le=h.getAttribute("placeholder-background-color")?h.getAttribute("placeholder-background-color"):f.attributes.placeholderBackgroundColor,Ke=h.getAttribute("placeholder-title")?h.getAttribute("placeholder-title"):f.attributes.placeholderTitle,Ze=h.getAttribute("placeholder-text-content")?h.getAttribute("placeholder-text-content"):f.attributes.placeholderTextContent,et=h.getAttribute("att-file-prevent-types")?h.getAttribute("att-file-prevent-types").split(","):f.attributes.attFilePreventTypes,Ve=h.getAttribute("att-file-accept-types")?h.getAttribute("att-file-accept-types").split(","):f.attributes.attFileAcceptTypes,xt=ee(h.getAttribute("att-file-max-size"))?Number(h.getAttribute("att-file-max-size")):f.attributes.attFileMaxSize,Rt=h.getAttribute("att-image-prevent-types")?h.getAttribute("att-image-prevent-types").split(","):f.attributes.attImagePreventTypes,Mt=h.getAttribute("att-image-accept-types")?h.getAttribute("att-image-accept-types").split(","):f.attributes.attImageAcceptTypes,Ht=ee(h.getAttribute("att-image-max-size"))?Number(h.getAttribute("att-image-max-size")):f.attributes.attImageMaxSize,v=f.attributes.defaultFontFamilies,w=h.getAttribute("add-font-family")?h.getAttribute("add-font-family").split(","):[],A=h.getAttribute("remove-font-family")?h.getAttribute("remove-font-family").split(","):[],M=0;M<w.length;M++)w[M],w[M]&&(v.includes(w[M])||(k=w[M],/^[A-Za-z0-9]+$/.test(k)?v.splice(7+M,0,w[M]):v.push(w[M])));for(var g=function(S){if(!A[S])return 1;v=v.filter(function(N){return N!==A[S]})},y=0;y<A.length;y++)g(y);var B=h.getAttribute("default-font-family")?h.getAttribute("default-font-family"):f.attributes.defaultTextareaFontFamily;v.includes(B)||v.splice(0,0,B);var H=h.getAttribute("default-tool-font-family")?h.getAttribute("default-tool-font-family"):f.attributes.defaultToolFontFamily,U=ee(h.getAttribute("default-font-size"))?Number(h.getAttribute("default-font-size")):f.attributes.defaultTextareaFontSize,q=ee(h.getAttribute("default-line-height"))?Number(h.getAttribute("default-line-height")):f.attributes.defaultTextareaLineHeight,re=ee(h.getAttribute("size-level-desktop"))?Number(h.getAttribute("size-level-desktop")):3,de=ee(h.getAttribute("size-level-mobile"))?Number(h.getAttribute("size-level-mobile")):7,he=Be?de:re;he<1&&(he=1),he>9&&(he=9);var ce=(he+11)/20,me=h.getAttribute("main-color")?De(h.getAttribute("main-color")):f.attributes.mainColor,Q=h.getAttribute("color-set")?h.getAttribute("color-set").toLowerCase():f.attributes.colorSet,u=h.getAttribute("invert-color")?h.getAttribute("invert-color").toLowerCase()==="true":f.attributes.invertColor,b=(!h.getAttribute("using-paragraph-style")||h.getAttribute("using-paragraph-style").toLowerCase()!=="false")&&f.attributes.usingParagraphStyle,_=(!h.getAttribute("using-bold")||h.getAttribute("using-bold").toLowerCase()!=="false")&&f.attributes.usingBold,R=(!h.getAttribute("using-underline")||h.getAttribute("using-underline").toLowerCase()!=="false")&&f.attributes.usingUnderline,F=(!h.getAttribute("using-italic")||h.getAttribute("using-italic").toLowerCase()!=="false")&&f.attributes.usingItalic,D=(!h.getAttribute("using-ul")||h.getAttribute("using-ul").toLowerCase()!=="false")&&f.attributes.usingUl,z=(!h.getAttribute("using-ol")||h.getAttribute("using-ol").toLowerCase()!=="false")&&f.attributes.usingOl,ye=(!h.getAttribute("using-text-align")||h.getAttribute("using-text-align").toLowerCase()!=="false")&&f.attributes.usingTextAlign,Se=(!h.getAttribute("using-att-link")||h.getAttribute("using-att-link").toLowerCase()!=="false")&&f.attributes.usingAttLink,ze=(!h.getAttribute("using-att-file")||h.getAttribute("using-att-file").toLowerCase()!=="false")&&f.attributes.usingAttFile,je=(!h.getAttribute("using-att-image")||h.getAttribute("using-att-image").toLowerCase()!=="false")&&f.attributes.usingAttImage,Ue=(!h.getAttribute("using-att-video")||h.getAttribute("using-att-video").toLowerCase()!=="false")&&f.attributes.usingAttVideo,it=(!h.getAttribute("using-font-size")||h.getAttribute("using-font-size").toLowerCase()!=="false")&&f.attributes.usingFontSize,rt=(!h.getAttribute("using-letter-spacing")||h.getAttribute("using-letter-spacing").toLowerCase()!=="false")&&f.attributes.usingLetterSpacing,ct=(!h.getAttribute("using-line-height")||h.getAttribute("using-line-height").toLowerCase()!=="false")&&f.attributes.usingLineHeight,Ne=(!h.getAttribute("using-font-family")||h.getAttribute("using-font-family").toLowerCase()!=="false")&&f.attributes.usingFontFamily,Pe=(!h.getAttribute("using-color-text")||h.getAttribute("using-color-text").toLowerCase()!=="false")&&f.attributes.usingColorText,lt=(!h.getAttribute("using-color-back")||h.getAttribute("using-color-back").toLowerCase()!=="false")&&f.attributes.usingColorBack,le=(!h.getAttribute("using-format-clear")||h.getAttribute("using-format-clear").toLowerCase()!=="false")&&f.attributes.usingFormatClear,ne=(!h.getAttribute("using-undo")||h.getAttribute("using-undo").toLowerCase()!=="false")&&f.attributes.usingUndo,ht=(!h.getAttribute("using-redo")||h.getAttribute("using-redo").toLowerCase()!=="false")&&f.attributes.usingRedo,d=(!h.getAttribute("using-help")||h.getAttribute("using-help").toLowerCase()!=="false")&&f.attributes.usingHelp;h.getAttribute("using-paragraph-all-style")&&h.getAttribute("using-paragraph-all-style").toLowerCase()==="false"&&(b=!1,D=!1,z=!1,ye=!1),h.getAttribute("using-character-style")&&h.getAttribute("using-character-style").toLowerCase()==="false"&&(_=!1,R=!1,F=!1,Ne=!1,Pe=!1,lt=!1,le=!1),h.getAttribute("using-character-size")&&h.getAttribute("using-character-size").toLowerCase()==="false"&&(it=!1,rt=!1,ct=!1),h.getAttribute("using-attach-file")&&h.getAttribute("using-attach-file").toLowerCase()==="false"&&(Se=!1,ze=!1,je=!1,Ue=!1),h.getAttribute("using-do")&&h.getAttribute("using-do").toLowerCase()==="false"&&(ne=!1,ht=!1);var p=h.getAttribute("language")&&f.languageSet.hasOwnProperty(h.getAttribute("language"))?h.getAttribute("language"):f.attributes.language,x=ee(h.getAttribute("recode-limit"))?Number(h.getAttribute("recode-limit")):f.attributes.recodeLimit;return{isNoteByMobile:Be,toolPosition:tt,toolDefaultLine:Ge,toolToggleUsing:j,sizeRate:ce,noteModeByDevice:be,textareaOriginWidth:E,textareaOriginHeight:s,textareaMaxWidth:l,textareaMaxHeight:I,textareaHeightIsModify:$,placeholderIsVisible:J,placeholderAddTop:ae,placeholderAddLeft:ge,placeholderWidth:Ce,placeholderColor:He,placeholderBackgroundColor:Le,placeholderTitle:Ke,placeholderTextContent:Ze,attFilePreventTypes:et,attFileAcceptTypes:Ve,attFileMaxSize:xt,attImagePreventTypes:Rt,attImageAcceptTypes:Mt,attImageMaxSize:Ht,defaultFontFamilies:v,defaultTextareaFontFamily:B,defaultToolFontFamily:H,defaultTextareaFontSize:U,defaultTextareaLineHeight:q,mainColor:me,colorSet:Q,invertColor:u,usingParagraphStyle:b,usingBold:_,usingUnderline:R,usingItalic:F,usingUl:D,usingOl:z,usingTextAlign:ye,usingAttLink:Se,usingAttFile:ze,usingAttImage:je,usingAttVideo:Ue,usingFontSize:it,usingLetterSpacing:rt,usingLineHeight:ct,usingFontFamily:Ne,usingColorText:Pe,usingColorBack:lt,usingFormatClear:le,usingUndo:ne,usingRedo:ht,usingHelp:d,language:p,recodeLimit:x}},Et=function(f,h){var k={color1:f.colors.color1,color2:f.colors.color2,color3:f.colors.color3,color4:f.colors.color4,color5:f.colors.color5,color6:f.colors.color6,color7:f.colors.color7,color8:f.colors.color8,color9:f.colors.color9,color10:f.colors.color10,color11:f.colors.color11,color12:f.colors.color12,color13:f.colors.color13,color14:f.colors.color14,color15:f.colors.color15,color16:f.colors.color16,color17:f.colors.color17,color18:f.colors.color18,color19:f.colors.color19,color20:f.colors.color20};if(h.mainColor)k=Qe(h.mainColor);else switch(h.colorSet){case"skyblue":k=Qe("#91c8e4");break;case"blue":k=Qe("#4682a9");break;case"light-red":k=Qe("#fdd2bf");break;case"red":k=Qe("#b61919");break;case"light-green":k=Qe("#a4be7b");break;case"green":k=Qe("#285430");break;case"orange":k=Qe("#f79327");break;case"yellow":k=Qe("#ffe569");break;case"purple":k=Qe("#804674");break;case"brown":k=Qe("#675d50");break;case"black":k=Qe("#272829")}return h.invertColor&&(k.color1=mt(k.color1),k.color2=mt(k.color2),k.color3=mt(k.color3),k.color4=mt(k.color4),k.color5=mt(k.color5),k.color6=mt(k.color6),k.color7=mt(k.color7),k.color10=mt(k.color10),k.color11=mt(k.color11),k.color12=mt(k.color12),k.color13=mt(k.color13)),k},_e=function(f,h,k){if(!h)throw new Error("Please insert variables object in VanillanoteConfig.");if(!k)throw new Error("Please insert colors object in VanillanoteConfig.");return{"template h1":{display:"block","font-size":"2em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"template h2":{display:"block","font-size":"1.8em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"template h3":{display:"block","font-size":"1.6em","line-height":"1.2em","font-weight":"bold","margin-top":"1em","margin-bottom":"1em",padding:"0 10px"},"template h4":{display:"block","font-size":"1.4em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"template h5":{display:"block","font-size":"1.2em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"template h6":{display:"block","font-size":"1em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"textarea ul":{display:"block","list-style-type":"disc","padding-left":"40px",margin:"1em 0"},"textarea ol":{display:"block","list-style-type":"decimal","padding-left":"40px",margin:"1em 0"},"textarea li":{display:"list-item","margin-top":"0.5em","margin-bottom":"0.5em",padding:"0 10px"},"textarea p":{display:"block","margin-top":"1em","margin-bottom":"1em",padding:"0 10px"},"textarea div":{display:"block","margin-top":"1em","margin-bottom":"1em",padding:"0 10px"},"textarea span":{display:"inline"},"textarea a":{display:"inline",color:k.color11,"text-decoration":"underline"},template:{width:"100%",height:"100%",position:"relative"},textarea:{width:h.textareaOriginWidth,height:h.textareaOriginHeight,display:"block",margin:"0 auto",outline:"none",cursor:"text","text-align":"left",overflow:"auto","word-wrap":"break-word",resize:h.textareaHeightIsModify===!0?"vertical":"none","max-width":h.textareaMaxWidth,"max-height":h.textareaMaxHeight,"box-shadow":"0 0.5px 1px 0.5px "+k.color7,"background-color":k.color2,"font-size":h.defaultTextareaFontSize+"px","line-height":h.defaultTextareaLineHeight+"px","font-family":h.defaultTextareaFontFamily,color:k.color12,transition:"height 0.5s"},tool:{width:h.textareaOriginWidth,height:h.toolDefaultLine*(50*h.sizeRate)+"px",padding:"2px 0","max-width":h.textareaMaxWidth,display:"block","line-height":50*h.sizeRate+"px",margin:"0 auto","text-align":"left","vertical-align":"middle","box-shadow":"0.25px 0.25px 1px 0.5px "+k.color7,"font-size":16*h.sizeRate+"px","background-color":k.color3,"font-family":h.defaultToolFontFamily},icon:{"font-size":"1.3em","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none",color:k.color1},button:{width:50*h.sizeRate+"px",height:45*h.sizeRate+"px",float:"left",display:"inline-block",cursor:"pointer","text-align":"center",margin:"2px 2px","border-radius":"5px","box-shadow":"0.25px 0.25px 2px 0.25px "+k.color7,"background-color":k.color4,"font-family":h.defaultToolFontFamily,position:"relative"},select:{width:150*h.sizeRate+"px",height:45*h.sizeRate+"px","background-color":k.color4,float:"left",display:"inline-block",cursor:"pointer","text-align":"center",margin:"2px 2px","border-radius":"5px","box-shadow":"0.25px 0.25px 2px 0.25px "+k.color7,color:k.color1,position:"relative"},select_box_a:{"min-width":150*h.sizeRate+"px","background-color":k.color4,display:"none",float:"left",position:"absolute",cursor:"pointer","border-radius":"5px","box-shadow":"0.25px 0.25px 0.1em "+k.color7,opacity:"0.85","z-index":"200"},select_box_b:{width:50*h.sizeRate+"px",display:" none",float:"left",position:"absolute",cursor:"pointer","border-radius":"5px","z-index":"200"},select_box_c:{width:220*h.sizeRate+30+"px",display:"none",padding:"0 "+10*h.sizeRate+"px",float:"left",position:"absolute","border-radius":"5px","box-shadow":"0.25px 0.25px 0.1em "+k.color7,"background-color":k.color4,opacity:"0.95",cursor:"text","text-align":"left","z-index":"200"},select_list:{display:"block",height:45*h.sizeRate+"px",margin:"0 !important","line-height":45*h.sizeRate+"px !important",padding:"3px 5px",cursor:"pointer","text-align":"left",overflow:"hidden"},select_list_button:{width:50*h.sizeRate+"px",height:45*h.sizeRate+"px","background-color":k.color4,display:"inline-block",cursor:"pointer","border-radius":"5px","box-shadow":"0px 0.25px 0.1em "+k.color7},small_input_box:{width:120*h.sizeRate+"px",height:45*h.sizeRate+"px","background-color":k.color4,float:"left",overflow:"hidden",cursor:"pointer",display:"inline-block","text-align":"center",margin:"2px 2px","border-radius":"5px","box-shadow":"0.25px 0.25px 2px 0.25px "+k.color7},small_input:{width:"30%","background-color":"rgba(0,0,0,0)",color:k.color1,border:"none","border-radius":"0","text-align":"right",display:"inline-block",position:"relative",top:"-4px","margin-left":"5px","font-family":h.defaultToolFontFamily,cursor:"text","font-size":"0.8em!important"},"small_input:focus":{outline:"none"},"small_input::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:"0"},"small_input::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:"0"},"small_input[type=number]":{"-moz-appearance":"textfield"},normal_button:{"min-width":50*h.sizeRate+"px",height:45*h.sizeRate+"px","font-size":"0.8em",padding:"0 15px",display:"inline-block",cursor:"pointer","text-align":"center","border-radius":"5px",border:"none","box-shadow":"0.25px 0.25px 2px 0.25px "+k.color7,color:k.color1,"font-family":h.defaultToolFontFamily,"background-color":k.color4},opacity_button:{"min-width":40*h.sizeRate+"px",height:40*h.sizeRate+"px","font-size":"0.7em",display:"inline-block",cursor:"pointer","text-align":"center","border-radius":"5px",border:"none",color:k.color1,"font-family":h.defaultToolFontFamily,"background-color":Te(k.color4,.5)},small_text_box:{display:"inline-block",padding:"0 10px","font-size":"0.8em",color:k.color1},modal_back:{"background-color":"rgba(0,0,0,0.5)",display:"none",position:"absolute","z-index":"300","font-family":h.defaultToolFontFamily,color:k.color1,"font-size":16*h.sizeRate+"px"},modal_body:{width:"80%",margin:"0 auto",display:"none","text-align":"left",border:"solid 1px "+k.color6,"border-radius":"20px","background-color":k.color2},modal_header:{"text-align":"left","padding-top":20*h.sizeRate+"px","padding-right":10*h.sizeRate+"px","padding-bottom":20*h.sizeRate+"px","padding-left":20*h.sizeRate+"px","margin-bottom":10*h.sizeRate+"px","background-color":k.color4,"border-radius":"20px 20px 0 0","font-weight":"bold","font-size":"1.05em"},modal_footer:{"text-align":"right","margin-top":10*h.sizeRate+"px","padding-top":10*h.sizeRate+"px","padding-right":10*h.sizeRate+"px","padding-bottom":10*h.sizeRate+"px","padding-left":10*h.sizeRate+"px","border-top":"1px solid "+k.color6},modal_explain:{"font-size":"0.95em","text-align":"left","padding-top":20*h.sizeRate+"px","padding-bottom":10*h.sizeRate+"px","padding-left":20*h.sizeRate+"px",display:"inline-block",color:k.color10,"font-family":h.defaultToolFontFamily},modal_input:{display:"block",width:"80%","background-color":"rgba(0,0,0,0)","font-family":h.defaultToolFontFamily,color:k.color10,border:"none","border-radius":"0","border-bottom":"1px solid "+k.color6,"margin-bottom":10*h.sizeRate+"px","margin-left":20*h.sizeRate+"px","font-size":"1.05em",animation:f+"-modal-input 0.7s forwards"},"modal_input:focus":{outline:"none"},"modal_input[readonly]":{"background-color":"rgba(0,0,0,0.1)"},modal_small_input:{display:"inline-block",width:"20%","background-color":"rgba(0,0,0,0)","font-family":h.defaultToolFontFamily,color:k.color10,border:"none","border-radius":"0","border-bottom":"1px solid "+k.color6,"margin-bottom":10*h.sizeRate+"px","margin-left":20*h.sizeRate+"px","font-size":"1.05em",animation:f+"-modal-small-input 1s forwards"},"modal_small_input:focus":{outline:"none"},"modal_small_input::-webkit-inner-spin-button":{appearance:"none","-moz-appearance":"none","-webkit-appearance":"none"},"modal_small_input::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:"0"},"modal_small_input[type=number]":{"-moz-appearance":"textfield"},"modal_small_input[readonly]":{"background-color":k.color4},modal_input_file:{display:"none!important"},att_valid_checktext:{"padding-right":"10px","font-size":"0.7em"},att_link_is_blank_label:{"font-size":"0.95em","text-align":"left",display:"inline-block",height:"25px",cursor:"pointer","margin-top":10*h.sizeRate+"px","margin-bottom":10*h.sizeRate+"px","margin-left":15*h.sizeRate+"px",color:k.color10},input_checkbox:{cursor:"pointer",display:"inline-block",width:"12px",height:"12px","border-radius":"3px",border:"solid "+k.color6,"border-width":"1px 2px 2px 1px",transform:"rotate(0deg)",transition:"transform 0.3s"},"input_checkbox:focus":{outline:"none!important"},"input_checkbox[disabled]":{"background-color":k.color4},smallpx_input:{width:"40px","background-color":"rgba(0,0,0,0)",color:k.color1,border:"none","border-radius":"5px","text-align":"right","font-size":"0.9em!important",display:"inline-block","margin-left":"5px","font-family":h.defaultToolFontFamily},"smallpx_input:focus":{outline:"none"},"smallpx_input::-webkit-inner-spin-button":{appearance:"none","-moz-appearance":"none","-webkit-appearance":"none"},input_radio:{cursor:"pointer",display:"inline-block",width:"12px",height:"12px","border-radius":"50%",border:"solid 1px "+k.color6,transition:"transform 0.4s, background-color 0.6s;"},"input_radio:focus":{outline:"none!important"},"input_radio:checked":{"background-color":k.color5,transform:"rotateY( 180deg )",transition:"transform 0.3s, background-color 0.5s;"},"input_radio[disabled]":{"background-color":k.color4},drag_drop_div:{width:"100%",height:120*h.sizeRate+"px",display:"inline-block","margin-top":"10px","border-radius":"5px","background-color":k.color4,border:"solid 1px"+k.color6,"line-height":130*h.sizeRate+"px","font-size":"0.8em",color:Te(k.color1,.8),"overflow-y":"scroll",cursor:"pointer"},image_view_div:{width:"80%",height:120*h.sizeRate+"px",display:"inline-block","margin-top":"10px","border-radius":"5px","background-color":k.color4,border:"solid 1px"+k.color6,"line-height":130*h.sizeRate+"px","font-size":"0.8em",color:Te(k.color1,.8),cursor:"pointer",overflow:"hidden","white-space":"nowrap","scroll-behavior":"smooth"},color_button:{width:50*h.sizeRate*.5+"px",height:45*h.sizeRate*.5+"px",float:"left",display:"inline-block",cursor:"pointer","text-align":"center","border-radius":"5px","margin-right":"3px","margin-bottom":"5%",border:"1px solid "+k.color1,"box-shadow":"0.25px 0.25px 2px 0.25px "+k.color7,position:"relative"},color_input:{display:"inline-block","background-color":"rgba(0,0,0,0)",width:25*h.sizeRate+"px",height:40*h.sizeRate+"px","font-size":"0.7em!important",color:k.color1,border:"none","border-radius":"5px","text-align":"right","margin-right":8*h.sizeRate+"px","margin-left":2*h.sizeRate+"px","font-family":h.defaultToolFontFamily},"color_input:focus":{outline:"none"},"color_input::-webkit-inner-spin-button":{appearance:"none","-moz-appearance":"none","-webkit-appearance":"none"},color_explain:{display:"inline-block",height:25*h.sizeRate+"px",color:k.color1,"font-family":h.defaultToolFontFamily,"font-size":"0.7em"},tooltip:{width:h.textareaOriginWidth,"max-width":h.textareaMaxWidth,margin:"0 auto",padding:"2px 0","background-color":k.color3,border:"solid 1px "+k.color5,height:"0",overflow:"hidden",opacity:"0",transition:"opacity 0.6s, height 0.6s",position:"absolute",left:"50%",transform:"translateX(-50%)","z-index":"100","text-align":"left","font-family":h.defaultToolFontFamily,"font-size":"0.9em"},tooltip_button:{width:50*h.sizeRate*.7+"px",height:45*h.sizeRate*.7+"px",float:"left",display:"inline-block",cursor:"pointer","text-align":"center",margin:"2px 2px","border-radius":"5px","box-shadow":"0.25px 0.25px 2px 0.25px "+k.color7,"background-color":k.color4,position:"relative"},att_link_tooltip_href:{cursor:"pointer",float:"left",padding:"0 10px",color:k.color11,"text-decoration":"underline","font-size":"0.9em","line-height":45*h.sizeRate*.8+"px"},help_main:{"max-height":h.textareaOriginHeight,color:k.color10,"overflow-y":"auto"},placeholder:{width:h.textareaOriginWidth,padding:"10px","background-color":Te(k.color3,.8),color:k.color1,display:"none",position:"absolute","z-index":"100","font-family":h.defaultToolFontFamily},on_button_on:{"background-color":k.color5+"!important","box-shadow":"0.25px 0.25px 0.25px 0.25px "+k.color7},on_active:{"background-color":k.color5+"!important","box-shadow":"0.25px 0.25px 0.25px 0.25px "+k.color7},on_mouseover:{"background-color":k.color5+"!important"},on_mouseout:{"background-color":k.color4+"!important"},on_display_inline:{display:"inline"},on_display_inline_block:{display:"inline-block"},on_display_block:{display:"block"},on_display_none:{display:"none"}}},bt=function(f){f._cssEvents={target_onBeforeClick:function(h){return!0},target_onAfterClick:function(h){},target_onBeforeMouseover:function(h){return!0},target_onAfterMouseover:function(h){},target_onBeforeMouseout:function(h){return!0},target_onAfterMouseout:function(h){},target_onBeforeTouchstart:function(h){return!0},target_onAfterTouchstart:function(h){},target_onBeforeTouchend:function(h){return!0},target_onAfterTouchend:function(h){}},f._elementEvents={textarea_onBeforeClick:function(h){return!0},textarea_onAfterClick:function(h){},textarea_onBeforeFocus:function(h){return!0},textarea_onAfterFocus:function(h){},textarea_onBeforeBlur:function(h){return!0},textarea_onAfterBlur:function(h){},paragraphStyleSelect_onBeforeClick:function(h){return!0},paragraphStyleSelect_onAfterClick:function(h){},toolToggleButton_onBeforeClick:function(h){return!0},toolToggleButton_onAfterClick:function(h){},styleNomal_onBeforeClick:function(h){return!0},styleNomal_onAfterClick:function(h){},styleHeader1_onBeforeClick:function(h){return!0},styleHeader1_onAfterClick:function(h){},styleHeader2_onBeforeClick:function(h){return!0},styleHeader2_onAfterClick:function(h){},styleHeader3_onBeforeClick:function(h){return!0},styleHeader3_onAfterClick:function(h){},styleHeader4_onBeforeClick:function(h){return!0},styleHeader4_onAfterClick:function(h){},styleHeader5_onBeforeClick:function(h){return!0},styleHeader5_onAfterClick:function(h){},styleHeader6_onBeforeClick:function(h){return!0},styleHeader6_onAfterClick:function(h){},boldButton_onBeforeClick:function(h){return!0},boldButton_onAfterClick:function(h){},underlineButton_onBeforeClick:function(h){return!0},underlineButton_onAfterClick:function(h){},italicButton_onBeforeClick:function(h){return!0},italicButton_onAfterClick:function(h){},ulButton_onBeforeClick:function(h){return!0},ulButton_onAfterClick:function(h){},olButton_onBeforeClick:function(h){return!0},olButton_onAfterClick:function(h){},textAlignSelect_onBeforeClick:function(h){return!0},textAlignSelect_onAfterClick:function(h){},textAlignLeft_onBeforeClick:function(h){return!0},textAlignLeft_onAfterClick:function(h){},textAlignCenter_onBeforeClick:function(h){return!0},textAlignCenter_onAfterClick:function(h){},textAlignRight_onBeforeClick:function(h){return!0},textAlignRight_onAfterClick:function(h){},attLinkButton_onBeforeClick:function(h){return!0},attLinkButton_onAfterClick:function(h){},attFileButton_onBeforeClick:function(h){return!0},attFileButton_onAfterClick:function(h){},attImageButton_onBeforeClick:function(h){return!0},attImageButton_onAfterClick:function(h){},attVideoButton_onBeforeClick:function(h){return!0},attVideoButton_onAfterClick:function(h){},fontSizeInputBox_onBeforeClick:function(h){return!0},fontSizeInputBox_onAfterClick:function(h){},fontSizeInput_onBeforeClick:function(h){return!0},fontSizeInput_onAfterClick:function(h){},fontSizeInput_onBeforeInput:function(h){return!0},fontSizeInput_onAfterInput:function(h){},fontSizeInput_onBeforeBlur:function(h){return!0},fontSizeInput_onAfterBlur:function(h){},letterSpacingInputBox_onBeforeClick:function(h){return!0},letterSpacingInputBox_onAfterClick:function(h){},letterSpacingInput_onBeforeClick:function(h){return!0},letterSpacingInput_onAfterClick:function(h){},letterSpacingInput_onBeforeInput:function(h){return!0},letterSpacingInput_onAfterInput:function(h){},letterSpacingInput_onBeforeBlur:function(h){return!0},letterSpacingInput_onAfterBlur:function(h){},lineHeightInputBox_onBeforeClick:function(h){return!0},lineHeightInputBox_onAfterClick:function(h){},lineHeightInput_onBeforeClick:function(h){return!0},lineHeightInput_onAfterClick:function(h){},lineHeightInput_onBeforeInput:function(h){return!0},lineHeightInput_onAfterInput:function(h){},lineHeightInput_onBeforeBlur:function(h){return!0},lineHeightInput_onAfterBlur:function(h){},fontFamilySelect_onBeforeClick:function(h){return!0},fontFamilySelect_onAfterClick:function(h){},colorTextSelect_onBeforeClick:function(h){return!0},colorTextSelect_onAfterClick:function(h){},colorTextSelectBox_onBeforeClick:function(h){return!0},colorTextSelectBox_onAfterClick:function(h){},colorText0_onBeforeClick:function(h){return!0},colorText0_onAfterClick:function(h){},colorText1_onBeforeClick:function(h){return!0},colorText1_onAfterClick:function(h){},colorText2_onBeforeClick:function(h){return!0},colorText2_onAfterClick:function(h){},colorText3_onBeforeClick:function(h){return!0},colorText3_onAfterClick:function(h){},colorText4_onBeforeClick:function(h){return!0},colorText4_onAfterClick:function(h){},colorText5_onBeforeClick:function(h){return!0},colorText5_onAfterClick:function(h){},colorText6_onBeforeClick:function(h){return!0},colorText6_onAfterClick:function(h){},colorText7_onBeforeClick:function(h){return!0},colorText7_onAfterClick:function(h){},colorTextRInput_onBeforeClick:function(h){return!0},colorTextRInput_onAfterClick:function(h){},colorTextRInput_onBeforeInput:function(h){return!0},colorTextRInput_onAfterInput:function(h){},colorTextRInput_onBeforeBlur:function(h){return!0},colorTextRInput_onAfterBlur:function(h){},colorTextGInput_onBeforeClick:function(h){return!0},colorTextGInput_onAfterClick:function(h){},colorTextGInput_onBeforeInput:function(h){return!0},colorTextGInput_onAfterInput:function(h){},colorTextGInput_onBeforeBlur:function(h){return!0},colorTextGInput_onAfterBlur:function(h){},colorTextBInput_onBeforeClick:function(h){return!0},colorTextBInput_onAfterClick:function(h){},colorTextBInput_onBeforeInput:function(h){return!0},colorTextBInput_onAfterInput:function(h){},colorTextBInput_onBeforeBlur:function(h){return!0},colorTextBInput_onAfterBlur:function(h){},colorTextOpacityInput_onBeforeClick:function(h){return!0},colorTextOpacityInput_onAfterClick:function(h){},colorTextOpacityInput_onBeforeInput:function(h){return!0},colorTextOpacityInput_onAfterInput:function(h){},colorTextOpacityInput_onBeforeBlur:function(h){return!0},colorTextOpacityInput_onAfterBlur:function(h){},colorBackSelect_onBeforeClick:function(h){return!0},colorBackSelect_onAfterClick:function(h){},colorBackSelectBox_onBeforeClick:function(h){return!0},colorBackSelectBox_onAfterClick:function(h){},colorBack0_onBeforeClick:function(h){return!0},colorBack0_onAfterClick:function(h){},colorBack1_onBeforeClick:function(h){return!0},colorBack1_onAfterClick:function(h){},colorBack2_onBeforeClick:function(h){return!0},colorBack2_onAfterClick:function(h){},colorBack3_onBeforeClick:function(h){return!0},colorBack3_onAfterClick:function(h){},colorBack4_onBeforeClick:function(h){return!0},colorBack4_onAfterClick:function(h){},colorBack5_onBeforeClick:function(h){return!0},colorBack5_onAfterClick:function(h){},colorBack6_onBeforeClick:function(h){return!0},colorBack6_onAfterClick:function(h){},colorBack7_onBeforeClick:function(h){return!0},colorBack7_onAfterClick:function(h){},colorBackRInput_onBeforeClick:function(h){return!0},colorBackRInput_onAfterClick:function(h){},colorBackRInput_onBeforeInput:function(h){return!0},colorBackRInput_onAfterInput:function(h){},colorBackRInput_onBeforeBlur:function(h){return!0},colorBackRInput_onAfterBlur:function(h){},colorBackGInput_onBeforeClick:function(h){return!0},colorBackGInput_onAfterClick:function(h){},colorBackGInput_onBeforeInput:function(h){return!0},colorBackGInput_onAfterInput:function(h){},colorBackGInput_onBeforeBlur:function(h){return!0},colorBackGInput_onAfterBlur:function(h){},colorBackBInput_onBeforeClick:function(h){return!0},colorBackBInput_onAfterClick:function(h){},colorBackBInput_onBeforeInput:function(h){return!0},colorBackBInput_onAfterInput:function(h){},colorBackBInput_onBeforeBlur:function(h){return!0},colorBackBInput_onAfterBlur:function(h){},colorBackOpacityInput_onBeforeClick:function(h){return!0},colorBackOpacityInput_onAfterClick:function(h){},colorBackOpacityInput_onBeforeInput:function(h){return!0},colorBackOpacityInput_onAfterInput:function(h){},colorBackOpacityInput_onBeforeBlur:function(h){return!0},colorBackOpacityInput_onAfterBlur:function(h){},formatClearButton_onBeforeClick:function(h){return!0},formatClearButton_onAfterClick:function(h){},undoButton_onBeforeClick:function(h){return!0},undoButton_onAfterClick:function(h){},redoButton_onBeforeClick:function(h){return!0},redoButton_onAfterClick:function(h){},helpButton_onBeforeClick:function(h){return!0},helpButton_onAfterClick:function(h){},modalBack_onBeforeClick:function(h){return!0},modalBack_onAfterClick:function(h){},attLinkModal_onBeforeClick:function(h){return!0},attLinkModal_onAfterClick:function(h){},attLinkText_onBeforeInput:function(h){return!0},attLinkText_onAfterInput:function(h){},attLinkText_onBeforeBlur:function(h){return!0},attLinkText_onAfterBlur:function(h){},attLinkHref_onBeforeInput:function(h){return!0},attLinkHref_onAfterInput:function(h){},attLinkHref_onBeforeBlur:function(h){return!0},attLinkHref_onAfterBlur:function(h){},attLinkInsertButton_onBeforeClick:function(h){return!0},attLinkInsertButton_onAfterClick:function(h){},attFileModal_onBeforeClick:function(h){return!0},attFileModal_onAfterClick:function(h){},attFileUploadButton_onBeforeClick:function(h){return!0},attFileUploadButton_onAfterClick:function(h){},attFileUploadDiv_onBeforeDragover:function(h){return!0},attFileUploadDiv_onAfterDragover:function(h){},attFileUploadDiv_onBeforeDrop:function(h){return!0},attFileUploadDiv_onAfterDrop:function(h){},attFileUploadDiv_onBeforeClick:function(h){return!0},attFileUploadDiv_onAfterClick:function(h){},attFileUpload_onBeforeInput:function(h){return!0},attFileUpload_onAfterInput:function(h){},attFileUpload_onBeforeBlur:function(h){return!0},attFileUpload_onAfterBlur:function(h){},attFileInsertButton_onBeforeClick:function(h){return!0},attFileInsertButton_onAfterClick:function(h){},attLinkTooltipEditButton_onBeforeClick:function(h){return!0},attLinkTooltipEditButton_onAfterClick:function(h){},attLinkTooltipUnlinkButton_onBeforeClick:function(h){return!0},attLinkTooltipUnlinkButton_onAfterClick:function(h){},attImageModal_onBeforeClick:function(h){return!0},attImageModal_onAfterClick:function(h){},attImageUploadButtonAndView_onBeforeDragover:function(h){return!0},attImageUploadButtonAndView_onAfterDragover:function(h){},attImageUploadButtonAndView_onBeforeDrop:function(h){return!0},attImageUploadButtonAndView_onAfterDrop:function(h){},attImageUploadButtonAndView_onBeforeClick:function(h){return!0},attImageUploadButtonAndView_onAfterClick:function(h){},attImageViewPreButton_onBeforeClick:function(h){return!0},attImageViewPreButton_onAfterClick:function(h){},attImageViewNextButton_onBeforeClick:function(h){return!0},attImageViewNextButton_onAfterClick:function(h){},attImageUpload_onBeforeInput:function(h){return!0},attImageUpload_onAfterInput:function(h){},attImageUpload_onBeforeBlur:function(h){return!0},attImageUpload_onAfterBlur:function(h){},attImageURL_onBeforeInput:function(h){return!0},attImageURL_onAfterInput:function(h){},attImageURL_onBeforeBlur:function(h){return!0},attImageURL_onAfterBlur:function(h){},attImageInsertButton_onBeforeClick:function(h){return!0},attImageInsertButton_onAfterClick:function(h){},attVideoModal_onBeforeClick:function(h){return!0},attVideoModal_onAfterClick:function(h){},attVideoEmbedId_onBeforeInput:function(h){return!0},attVideoEmbedId_onAfterInput:function(h){},attVideoEmbedId_onBeforeBlur:function(h){return!0},attVideoEmbedId_onAfterBlur:function(h){},attVideoWidth_onBeforeInput:function(h){return!0},attVideoWidth_onAfterInput:function(h){},attVideoWidth_onBeforeBlur:function(h){return!0},attVideoWidth_onAfterBlur:function(h){},attVideoHeight_onBeforeInput:function(h){return!0},attVideoHeight_onAfterInput:function(h){},attVideoHeight_onBeforeBlur:function(h){return!0},attVideoHeight_onAfterBlur:function(h){},attVideoInsertButton_onBeforeClick:function(h){return!0},attVideoInsertButton_onAfterClick:function(h){},attImageAndVideoTooltipWidthInput_onBeforeInput:function(h){return!0},attImageAndVideoTooltipWidthInput_onAfterInput:function(h){},attImageAndVideoTooltipWidthInput_onBeforeBlur:function(h){return!0},attImageAndVideoTooltipWidthInput_onAfterBlur:function(h){},attImageAndVideoTooltipWidthInput_onBeforeKeyup:function(h){return!0},attImageAndVideoTooltipWidthInput_onAfterKeyup:function(h){},attImageAndVideoTooltipFloatRadioNone_onBeforeClick:function(h){return!0},attImageAndVideoTooltipFloatRadioNone_onAfterClick:function(h){},attImageAndVideoTooltipFloatRadioLeft_onBeforeClick:function(h){return!0},attImageAndVideoTooltipFloatRadioLeft_onAfterClick:function(h){},attImageAndVideoTooltipFloatRadioRight_onBeforeClick:function(h){return!0},attImageAndVideoTooltipFloatRadioRight_onAfterClick:function(h){},attImageAndVideoTooltipShapeRadioSquare_onBeforeClick:function(h){return!0},attImageAndVideoTooltipShapeRadioSquare_onAfterClick:function(h){},attImageAndVideoTooltipShapeRadioRadius_onBeforeClick:function(h){return!0},attImageAndVideoTooltipShapeRadioRadius_onAfterClick:function(h){},attImageAndVideoTooltipShapeRadioCircle_onBeforeClick:function(h){return!0},attImageAndVideoTooltipShapeRadioCircle_onAfterClick:function(h){},helpModal_onBeforeClick:function(h){return!0},helpModal_onAfterClick:function(h){},placeholder_onBeforeClick:function(h){return!0},placeholder_onAfterClick:function(h){}}},Xn=function(f,h){(h||document).querySelectorAll("[data-vanillanote]").forEach(function(k){var be,Be=document.getElementById("".concat(k._noteName,"_").concat(k._id,"_styles-sheet"));Be==null||(be=Be.parentElement)===null||be===void 0||be.removeChild(Be),delete f.vanillanoteElements[k._id],function(tt){for(;tt.firstChild;)tt.removeChild(tt.firstChild)}(k)})};function en(f){return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},en(f)}function Lt(f){return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},Lt(f)}var Xe=null,Ut={setAttTempFileValid:function(f){},setAttFileUploadDiv:function(f){},setAttTempImageValid:function(f){},setAttImageUploadAndView:function(f){},createElement:function(f,h,k,be,Be){},createElementBasic:function(f,h,k,be,Be){},createElementButton:function(f,h,k,be,Be){},createElementSelect:function(f,h,k,be,Be){},createElementInput:function(f,h,k){},createElementInputCheckbox:function(f,h,k){},createElementInputRadio:function(f,h,k,be){},createElementRadioLabel:function(f,h,k){},createElementFontFamiliySelect:function(f,h,k,be,Be){},addClickEvent:function(f,h,k){},addMouseoverEvent:function(f,h){},addMouseoutEvent:function(f,h){},addTouchstartEvent:function(f,h){},addTouchendEvent:function(f,h){},onEventDisable:function(f,h){},replaceDifferentBetweenElements:function(f,h,k){},compareAttributesBetweenEl:function(f,h){},compareStylesBetweenEl:function(f,h){},getAttributesObjectFromElement:function(f){},getSpecialTag:function(f,h){},getParentUnitTagElemnt:function(f,h){},getParentTagName:function(f,h){},getObjectEditElementAttributes:function(f,h){},getObjectEditElementCss:function(f,h){},getEditElementTag:function(f){},getPreviousElementsUntilNotTag:function(f,h,k){},getNextElementsUntilNotTag:function(f,h,k){},setTagToggle:function(f,h){},initToggleButtonVariables:function(f){},isInNote:function(f){},getElementReplaceTag:function(f,h){},removeDoubleTag:function(f,h){},getElement:function(f,h,k,be,Be){},setEditNodeAndElement:function(f,h,k){},removeEmptyElment:function(f,h){},editUnitCheck:function(f){},doEditUnitCheck:function(f){},connectObserver:function(f){},isElementInParentBounds:function(f,h){},validCheckAttLink:function(f){},validCheckAttVideo:function(f){},initAttLink:function(f){},initAttFile:function(f){},initAttImage:function(f){},getObjectNoteCss:function(f){},showAlert:function(f,h){},recodeNote:function(f){},closeAllTooltip:function(f){},setVariableButtonTogle:function(f,h){},button_onToggle:function(f,h){},allButtonToggle:function(f){},selectToggle:function(f,h){},closeAllSelectBoxes:function(f){},fontFamilySelectList_onClick:function(f,h){},setEditStyleTag:function(f){},setElementScroll:function(f,h,k){},getCheckSelectBoxesOpened:function(f){},closeAllModal:function(f){},openAttLinkModal:function(f){},openPlaceholder:function(f){},closePlaceholder:function(f){},setAllModalSize:function(f){},setPlaceholderSize:function(f){},setAllToolTipPosition:function(f){},appearAttLinkToolTip:function(f){},appearAttImageAndVideoTooltip:function(f){},setImageAndVideoWidth:function(f){},setAllToolSize:function(f){},doDecreaseTextareaHeight:function(f){},doIncreaseTextareaHeight:function(f){},modifyTextareaScroll:function(f,h){},initTextarea:function(f){},setNewSelection:function(f,h,k,be){},handleSpecialTagSelection:function(f){},setOriginEditSelection:function(f){},setEditSelection:function(f,h){},isValidSelection:function(f){},modifySeletedElements:function(f){},modifySelectedUnitElementTag:function(f,h){},modifySelectedUnitElementStyle:function(f,h){},modifySelectedSingleElement:function(f,h,k,be){},textarea_onBeforeinputSpelling:function(f){},textarea_onKeydownEnter:function(f){}},yn=function(f){var h,k,be,Be,tt,Ge,j,E,s,l,I,$,J,ae,ge,Ce,He,Le,Ke,Ze,et,Ve,xt,Rt,Mt,Ht,v,w,A,M,g,y,B,H,U,q,re,de,he,ce;if(Xe)return Xe;var me=function(D){return Object.freeze(D),Object.getOwnPropertyNames(D).forEach(function(z){var ye=D[z];ye&&Lt(ye)==="object"&&!Object.isFrozen(ye)&&me(ye)}),D},Q=me({START_POSSIBLE_TAG:["P","H1","H2","H3","H4","H5","H6","OL","UL","BR","DIV","PRE","BLOCKQUOTE","TABLE"],UNIT_TAG:["P","H1","H2","H3","H4","H5","H6","LI","DIV","PRE","BLOCKQUOTE","TH","TD"],DOUBLE_TAG:["UL","OL"],NOT_SINGLE_TAG:["P","H1","H2","H3","H4","H5","H6","OL","UL","LI","DIV","PRE","BLOCKQUOTE"],SPECIAL_TAG:["A","IMG","IFRAME"],AUTO_MODIFY_TAG:["B","U"],EMPTY_ABLE_TAG:["BR","IMG","IFRAME","INPUT","I"],CLASS_NAMES:{template:{id:"template",className:"template"},textarea:{id:"textarea",className:"textarea"},tool:{id:"tool",className:"tool"},toolToggleButton:{id:"toolToggleButton",className:"button"},paragraphStyleSelect:{id:"paragraphStyleSelect",className:"select"},paragraphStyleSelectBox:{id:"paragraphStyleSelectBox",className:"select_box_a"},styleNomal:{id:"styleNomal",className:"select_list"},styleHeader1:{id:"styleHeader1",className:"select_list"},styleHeader2:{id:"styleHeader2",className:"select_list"},styleHeader3:{id:"styleHeader3",className:"select_list"},styleHeader4:{id:"styleHeader4",className:"select_list"},styleHeader5:{id:"styleHeader5",className:"select_list"},styleHeader6:{id:"styleHeader6",className:"select_list"},boldButton:{id:"boldButton",className:"button"},underlineButton:{id:"underlineButton",className:"button"},italicButton:{id:"italicButton",className:"button"},ulButton:{id:"ulButton",className:"button"},olButton:{id:"olButton",className:"button"},textAlignSelect:{id:"textAlignSelect",className:"button"},textAlignSelectBox:{id:"textAlignSelectBox",className:"select_box_b"},textAlignLeft:{id:"textAlignLeft",className:"select_list_button"},textAlignCenter:{id:"textAlignCenter",className:"select_list_button"},textAlignRight:{id:"textAlignRight",className:"select_list_button"},attLinkButton:{id:"attLinkButton",className:"button"},attFileButton:{id:"attFileButton",className:"button"},attImageButton:{id:"attImageButton",className:"button"},attVideoButton:{id:"attVideoButton",className:"button"},fontSizeInputBox:{id:"fontSizeInputBox",className:"small_input_box"},fontSizeInput:{id:"fontSizeInput",className:"small_input"},letterSpacingInputBox:{id:"letterSpacingInputBox",className:"small_input_box"},letterSpacingInput:{id:"letterSpacingInput",className:"small_input"},lineHeightInputBox:{id:"lineHeightInputBox",className:"small_input_box"},lineHeightInput:{id:"lineHeightInput",className:"small_input"},fontFamilySelect:{id:"fontFamilySelect",className:"select"},fontFamilySelectBox:{id:"fontFamilySelectBox",className:"select_box_a"},fontFamily:{id:"fontFamily_",className:"select_list"},colorTextSelect:{id:"colorTextSelect",className:"button"},colorTextSelectBox:{id:"colorTextSelectBox",className:"select_box_c"},colorText0:{id:"colorText0",className:"color_button"},colorText1:{id:"colorText1",className:"color_button"},colorText2:{id:"colorText2",className:"color_button"},colorText3:{id:"colorText3",className:"color_button"},colorText4:{id:"colorText4",className:"color_button"},colorText5:{id:"colorText5",className:"color_button"},colorText6:{id:"colorText6",className:"color_button"},colorText7:{id:"colorText7",className:"color_button"},colorTextRInput:{id:"colorTextRInput",className:"color_input"},colorTextRExplain:{id:"colorTextRExplain",className:"color_explain"},colorTextGInput:{id:"colorTextGInput",className:"color_input"},colorTextGExplain:{id:"colorTextGExplain",className:"color_explain"},colorTextBInput:{id:"colorTextBInput",className:"color_input"},colorTextBExplain:{id:"colorTextBExplain",className:"color_explain"},colorTextOpacityInput:{id:"colorTextOpacityInput",className:"color_input"},colorTextOpacityExplain:{id:"colorTextOpacityExplain",className:"color_explain"},colorBackSelect:{id:"colorBackSelect",className:"button"},colorBackSelectBox:{id:"colorTextSelectBox",className:"select_box_c"},colorBack0:{id:"colorBack0",className:"color_button"},colorBack1:{id:"colorBack1",className:"color_button"},colorBack2:{id:"colorBack2",className:"color_button"},colorBack3:{id:"colorBack3",className:"color_button"},colorBack4:{id:"colorBack4",className:"color_button"},colorBack5:{id:"colorBack5",className:"color_button"},colorBack6:{id:"colorBack6",className:"color_button"},colorBack7:{id:"colorBack7",className:"color_button"},colorBackRInput:{id:"colorBackRInput",className:"color_input"},colorBackRExplain:{id:"colorBackRExplain",className:"color_explain"},colorBackGInput:{id:"colorBackGInput",className:"color_input"},colorBackGExplain:{id:"colorBackGExplain",className:"color_explain"},colorBackBInput:{id:"colorBackBInput",className:"color_input"},colorBackBExplain:{id:"colorBackBExplain",className:"color_explain"},colorBackOpacityInput:{id:"colorBackOpacityInput",className:"color_input"},colorBackOpacityExplain:{id:"colorBackOpacityExplain",className:"color_explain"},formatClearButton:{id:"formatClearButton",className:"button"},undoButton:{id:"undoButton",className:"button"},redoButton:{id:"redoButton",className:"button"},helpButton:{id:"helpButton",className:"button"},modalBack:{id:"modalBack",className:"modal_back"},attLinkModal:{id:"attLinkModal",className:"modal_body"},attLinkHeader:{id:"attLinkHeader",className:"modal_header"},attLinkFooter:{id:"attLinkFooter",className:"modal_footer"},attLinkExplain1:{id:"attLinkExplain1",className:"modal_explain"},attLinkText:{id:"attLinkText",className:"modal_input"},attLinkExplain2:{id:"attLinkExplain2",className:"modal_explain"},attLinkHref:{id:"attLinkHref",className:"modal_input"},attLinkIsBlankLabel:{id:"attLinkIsBlankLabel",className:"att_link_is_blank_label"},attLinkIsBlankCheckbox:{id:"attLinkIsBlankCheckbox",className:"input_checkbox"},attLinkValidCheckText:{id:"attLinkValidChecktext",className:"att_valid_checktext"},attLinkValidCheckbox:{id:"attLinkValidCheckbox",className:"input_checkbox"},attLinkInsertButton:{id:"attLinkInsertButton",className:"normal_button"},attLinkTooltip:{id:"attLinkTooltip",className:"tooltip"},attLinkTooltipHref:{id:"attLinkTooltipHref",className:"att_link_tooltip_href"},attLinkTooltipEditButton:{id:"attLinkTooltipEditButton",className:"tooltip_button"},attLinkTooltipUnlinkButton:{id:"attLinkTooltipUnlinkButton",className:"tooltip_button"},attFileModal:{id:"attFileModal",className:"modal_body"},attFileHeader:{id:"attFileHeader",className:"modal_header"},attFilelayout:{id:"attFilelayout",className:"modal_layout"},attFileExplain1:{id:"attFileExplain1",className:"modal_explain"},attFileUploadButton:{id:"attFileUploadButton",className:"normal_button"},attFileUploadDiv:{id:"attFileUploadDiv",className:"drag_drop_div"},attFileUpload:{id:"attFileUpload",className:"modal_input_file"},attFileInsertButton:{id:"attFileInsertButton",className:"normal_button"},attFileFooter:{id:"attFileFooter",className:"modal_footer"},attImageModal:{id:"attImageModal",className:"modal_body"},attImageHeader:{id:"attImageHeader",className:"modal_header"},attImageExplain1:{id:"attImageExplain1",className:"modal_explain"},attImageExplain2:{id:"attImageExplain2",className:"modal_explain"},attImageUploadButtonAndView:{id:"attImageUploadButtonAndView",className:"image_view_div"},attImageViewPreButton:{id:"attImageViewPreButton",className:"opacity_button"},attImageViewNextButton:{id:"attImageViewNextButton",className:"opacity_button"},attImageUpload:{id:"attImageUpload",className:"modal_input_file"},attImageURL:{id:"attImageURL",className:"modal_input"},attImageInsertButton:{id:"attImageInsertButton",className:"normal_button"},attImageFooter:{id:"attImageFooter",className:"modal_footer"},attVideoModal:{id:"attVideoModal",className:"modal_body"},attVideoHeader:{id:"attVideoHeader",className:"modal_header"},attVideoExplain1:{id:"attVideoExplain1",className:"modal_explain"},attVideoEmbedId:{id:"attVideoEmbedId",className:"modal_input"},attVideoExplain2:{id:"attVideoExplain2",className:"modal_explain"},attVideoWidth:{id:"attVideoWidth",className:"modal_small_input"},attVideoHeight:{id:"attVideoHeight",className:"modal_small_input"},attVideoValidCheckText:{id:"attVideoValidCheckText",className:"att_valid_checktext"},attVideoValidCheckbox:{id:"attVideoValidCheckbox",className:"input_checkbox"},attVideoInsertButton:{id:"attVideoInsertButton",className:"normal_button"},attVideoFooter:{id:"attVideoFooter",className:"modal_footer"},attImageAndVideoTooltip:{id:"attImageAndVideoTooltip",className:"tooltip"},attImageAndVideoTooltipWidthInput:{id:"attImageAndVideoTooltipWidthInput",className:"smallpx_input"},attImageAndVideoTooltipFloatRadioNone:{id:"attImageAndVideoTooltipFloatRadioNone",className:"input_radio"},attImageAndVideoTooltipFloatRadioLeft:{id:"attImageAndVideoTooltipFloatRadioLeft",className:"input_radio"},attImageAndVideoTooltipFloatRadioRight:{id:"attImageAndVideoTooltipFloatRadioRight",className:"input_radio"},attImageAndVideoTooltipShapeRadioSquare:{id:"attImageAndVideoTooltipShapeRadioSquare",className:"input_radio"},attImageAndVideoTooltipShapeRadioRadius:{id:"attImageAndVideoTooltipShapeRadioRadius",className:"input_radio"},attImageAndVideoTooltipShapeRadioCircle:{id:"attImageAndVideoTooltipShapeRadioCircle",className:"input_radio"},helpModal:{id:"helpModal",className:"modal_body"},helpMain:{id:"helpMain",className:"help_main"},helpHeader:{id:"helpHeader",className:"modal_header"},helpFooter:{id:"helpFooter",className:"modal_footer"},placeholder:{id:"placeholder",className:"placeholder"}}});f||(f=Fn());var u=f.colors,b=f.attributes,_=f.variables,R=f.languageSet,F=f.useGoogleIcon;return(Xe={consts:Q,colors:u,attributes:b,variables:_,languageSet:R,iconSpanElement:{toolToggleButtonIcon:(h=f.iconSpanElement.toolToggleButtonIcon)!==null&&h!==void 0?h:null,paragraphStyleSelectIcon:(k=f.iconSpanElement.paragraphStyleSelectIcon)!==null&&k!==void 0?k:null,boldButtonIcon:(be=f.iconSpanElement.boldButtonIcon)!==null&&be!==void 0?be:null,underlineButtonIcon:(Be=f.iconSpanElement.underlineButtonIcon)!==null&&Be!==void 0?Be:null,italicButtonIcon:(tt=f.iconSpanElement.italicButtonIcon)!==null&&tt!==void 0?tt:null,ulButtonIcon:(Ge=f.iconSpanElement.ulButtonIcon)!==null&&Ge!==void 0?Ge:null,olButtonIcon:(j=f.iconSpanElement.olButtonIcon)!==null&&j!==void 0?j:null,textAlignSelectIcon:(E=f.iconSpanElement.textAlignSelectIcon)!==null&&E!==void 0?E:null,textAlignLeftButtonIcon:(s=f.iconSpanElement.textAlignLeftButtonIcon)!==null&&s!==void 0?s:null,textAlignCenterButtonIcon:(l=f.iconSpanElement.textAlignCenterButtonIcon)!==null&&l!==void 0?l:null,textAlignRightButtonIcon:(I=f.iconSpanElement.textAlignRightButtonIcon)!==null&&I!==void 0?I:null,attLinkButtonIcon:($=f.iconSpanElement.attLinkButtonIcon)!==null&&$!==void 0?$:null,attLinkInsertButtonIcon:(J=f.iconSpanElement.attLinkInsertButtonIcon)!==null&&J!==void 0?J:null,attLinkTooltipEditButtonIcon:(ae=f.iconSpanElement.attLinkTooltipEditButtonIcon)!==null&&ae!==void 0?ae:null,attLinkTooltipUnlinkButtonIcon:(ge=f.iconSpanElement.attLinkTooltipUnlinkButtonIcon)!==null&&ge!==void 0?ge:null,attFileButtonIcon:(Ce=f.iconSpanElement.attFileButtonIcon)!==null&&Ce!==void 0?Ce:null,attFileInsertButtonIcon:(He=f.iconSpanElement.attFileInsertButtonIcon)!==null&&He!==void 0?He:null,attImageButtonIcon:(Le=f.iconSpanElement.attImageButtonIcon)!==null&&Le!==void 0?Le:null,attImageViewPreButtonIcon:(Ke=f.iconSpanElement.attImageViewPreButtonIcon)!==null&&Ke!==void 0?Ke:null,attImageViewNextButtonIcon:(Ze=f.iconSpanElement.attImageViewNextButtonIcon)!==null&&Ze!==void 0?Ze:null,attImageInsertButtonIcon:(et=f.iconSpanElement.attImageInsertButtonIcon)!==null&&et!==void 0?et:null,attVideoButtonIcon:(Ve=f.iconSpanElement.attVideoButtonIcon)!==null&&Ve!==void 0?Ve:null,attVideoWidthTextIcon:(xt=f.iconSpanElement.attVideoWidthTextIcon)!==null&&xt!==void 0?xt:null,attVideoHeightTextIcon:(Rt=f.iconSpanElement.attVideoHeightTextIcon)!==null&&Rt!==void 0?Rt:null,attVideoInsertButtonIcon:(Mt=f.iconSpanElement.attVideoInsertButtonIcon)!==null&&Mt!==void 0?Mt:null,attImageAndVideoTooltipFloatRadioNoneLabelIcon:(Ht=f.iconSpanElement.attImageAndVideoTooltipFloatRadioNoneLabelIcon)!==null&&Ht!==void 0?Ht:null,attImageAndVideoTooltipFloatRadioLeftLabelIcon:(v=f.iconSpanElement.attImageAndVideoTooltipFloatRadioLeftLabelIcon)!==null&&v!==void 0?v:null,attImageAndVideoTooltipFloatRadioRightLabelIcon:(w=f.iconSpanElement.attImageAndVideoTooltipFloatRadioRightLabelIcon)!==null&&w!==void 0?w:null,attImageAndVideoTooltipShapeRadioSquareLabelIcon:(A=f.iconSpanElement.attImageAndVideoTooltipShapeRadioSquareLabelIcon)!==null&&A!==void 0?A:null,attImageAndVideoTooltipShapeRadioRadiusLabelIcon:(M=f.iconSpanElement.attImageAndVideoTooltipShapeRadioRadiusLabelIcon)!==null&&M!==void 0?M:null,attImageAndVideoTooltipShapeRadioCircleLabelIcon:(g=f.iconSpanElement.attImageAndVideoTooltipShapeRadioCircleLabelIcon)!==null&&g!==void 0?g:null,fontSizeInputBoxIcon:(y=f.iconSpanElement.fontSizeInputBoxIcon)!==null&&y!==void 0?y:null,letterSpacingInputBoxIcon:(B=f.iconSpanElement.letterSpacingInputBoxIcon)!==null&&B!==void 0?B:null,lineHeightInputBoxIcon:(H=f.iconSpanElement.lineHeightInputBoxIcon)!==null&&H!==void 0?H:null,colorTextSelectIcon:(U=f.iconSpanElement.colorTextSelectIcon)!==null&&U!==void 0?U:null,colorBackSelectIcon:(q=f.iconSpanElement.colorBackSelectIcon)!==null&&q!==void 0?q:null,formatClearButtonIcon:(re=f.iconSpanElement.formatClearButtonIcon)!==null&&re!==void 0?re:null,undoButtonIcon:(de=f.iconSpanElement.undoButtonIcon)!==null&&de!==void 0?de:null,redoButtonIcon:(he=f.iconSpanElement.redoButtonIcon)!==null&&he!==void 0?he:null,helpButtonIcon:(ce=f.iconSpanElement.helpButtonIcon)!==null&&ce!==void 0?ce:null},useGoogleIcon:F===!0,events:{documentEvents:{noteObserver:null,selectionchange:null,keydown:null,resize:null,resizeViewport:null},cssEvents:{target_onClick:null,target_onMouseover:null,target_onMouseout:null,target_onTouchstart:null,target_onTouchend:null},elementEvents:{toolToggleButton_onClick:null,paragraphStyleSelect_onClick:null,styleNomal_onClick:null,styleHeader1_onClick:null,styleHeader2_onClick:null,styleHeader3_onClick:null,styleHeader4_onClick:null,styleHeader5_onClick:null,styleHeader6_onClick:null,boldButton_onClick:null,underlineButton_onClick:null,italicButton_onClick:null,ulButton_onClick:null,olButton_onClick:null,textAlignSelect_onClick:null,textAlignLeft_onClick:null,textAlignCenter_onClick:null,textAlignRight_onClick:null,attLinkButton_onClick:null,attLinkModal_onClick:null,attLinkText_onInput:null,attLinkText_onBlur:null,attLinkHref_onInput:null,attLinkHref_onBlur:null,attLinkInsertButton_onClick:null,attLinkTooltipEditButton_onClick:null,attLinkTooltipUnlinkButton_onClick:null,attFileButton_onClick:null,attFileModal_onClick:null,attFileUploadButton_onClick:null,attFileUploadDiv_onDragover:null,attFileUploadDiv_onDrop:null,attFileUploadDiv_onClick:null,attFileUpload_onInput:null,attFileUpload_onBlur:null,attFileInsertButton_onClick:null,attImageButton_onClick:null,attImageModal_onClick:null,attImageUploadButtonAndView_onDragover:null,attImageUploadButtonAndView_onDrop:null,attImageUploadButtonAndView_onClick:null,attImageViewPreButton_onClick:null,attImageViewNextButton_onClick:null,attImageUpload_onInput:null,attImageUpload_onBlur:null,attImageURL_onInput:null,attImageURL_onBlur:null,attImageInsertButton_onClick:null,attVideoButton_onClick:null,attVideoModal_onClick:null,attVideoEmbedId_onInput:null,attVideoEmbedId_onBlur:null,attVideoWidth_onInput:null,attVideoWidth_onBlur:null,attVideoHeight_onInput:null,attVideoHeight_onBlur:null,attVideoInsertButton_onClick:null,attImageAndVideoTooltipWidthInput_onInput:null,attImageAndVideoTooltipWidthInput_onBlur:null,attImageAndVideoTooltipWidthInput_onKeyup:null,attImageAndVideoTooltipFloatRadioNone_onClick:null,attImageAndVideoTooltipFloatRadioLeft_onClick:null,attImageAndVideoTooltipFloatRadioRight_onClick:null,attImageAndVideoTooltipShapeRadioSquare_onClick:null,attImageAndVideoTooltipShapeRadioRadius_onClick:null,attImageAndVideoTooltipShapeRadioCircle_onClick:null,fontSizeInputBox_onClick:null,fontSizeInput_onClick:null,fontSizeInput_onInput:null,fontSizeInput_onBlur:null,letterSpacingInputBox_onClick:null,letterSpacingInput_onClick:null,letterSpacingInput_onInput:null,letterSpacingInput_onBlur:null,lineHeightInputBox_onClick:null,lineHeightInputBox_onInput:null,lineHeightInput_onClick:null,lineHeightInput_onInput:null,lineHeightInput_onBlur:null,fontFamilySelect_onClick:null,colorTextSelect_onClick:null,colorTextSelectBox_onClick:null,colorTextRInput_onClick:null,colorTextRInput_onInput:null,colorTextRInput_onBlur:null,colorTextGInput_onClick:null,colorTextGInput_onInput:null,colorTextGInput_onBlur:null,colorTextBInput_onClick:null,colorTextBInput_onInput:null,colorTextBInput_onBlur:null,colorTextOpacityInput_onClick:null,colorTextOpacityInput_onInput:null,colorTextOpacityInput_onBlur:null,colorText0_onClick:null,colorText1_onClick:null,colorText2_onClick:null,colorText3_onClick:null,colorText4_onClick:null,colorText5_onClick:null,colorText6_onClick:null,colorText7_onClick:null,colorBackSelect_onClick:null,colorBackSelectBox_onClick:null,colorBackRInput_onClick:null,colorBackRInput_onInput:null,colorBackRInput_onBlur:null,colorBackGInput_onClick:null,colorBackGInput_onInput:null,colorBackGInput_onBlur:null,colorBackBInput_onClick:null,colorBackBInput_onInput:null,colorBackBInput_onBlur:null,colorBackOpacityInput_onClick:null,colorBackOpacityInput_onInput:null,colorBackOpacityInput_onBlur:null,colorBack0_onClick:null,colorBack1_onClick:null,colorBack2_onClick:null,colorBack3_onClick:null,colorBack4_onClick:null,colorBack5_onClick:null,colorBack6_onClick:null,colorBack7_onClick:null,formatClearButton_onClick:null,undoButton_onClick:null,redoButton_onClick:null,helpButton_onClick:null,helpModal_onClick:null,modalBack_onClick:null,placeholder_onClick:null,textarea_onClick:null,textarea_onFocus:null,textarea_onBlur:null,textarea_onKeydown:null,textarea_onKeyup:null,textarea_onBeforeinput:null}},vanillanoteElements:{},getNote:function(D){return null},beforeAlert:function(D){return!0},init:function(){gt()},mountNote:function(D){},destroy:function(){_n()},unmountNote:function(D){},_initialized:!1}).mountNote=function(D){(function(z,ye,Se){var ze=(Se||document).querySelectorAll("[data-vanillanote]");ze.length<=0||(ze.forEach(function(je){var Ue=je.getAttribute("data-id");if(!Ue)throw new Error("The data-id attribute of vanillanote is required.");if(Ue&&Object.keys(z.vanillanoteElements).includes(Ue))throw new Error("".concat(Ue," is a note that has already been created."))}),ze.forEach(function(je){var Ue=je.getAttribute("data-id");if(Object.keys(z.vanillanoteElements).includes(Ue))throw new Error("Duplicate vanillanote id detected: ".concat(Ue));var it=je;it.setAttribute("id",c(z.variables.noteName,Ue,"note")),it.setAttribute("class",m(z.variables.noteName,Ue,"note")),it.setAttribute("data-note-id",Ue),it._noteName=z.variables.noteName,it._id=Ue,z.vanillanoteElements[Ue]=function(rt,ct,Ne){var Pe=rn(rt,Ne);Ne._colors=Et(rt,Pe);var lt=_e(Ne._noteName,Pe,Ne._colors),le="".concat(Ne._noteName,"_").concat(Ne._id,"_styles-sheet");if(!document.getElementById(le)){var ne="";Object.keys(lt).forEach(function(d){ne=ne+function(p,x,S,N){return"."+c(p,x,S)+" {"+Ee(N)+"}"}(Ne._noteName,Ne._id,d,lt[d])+`
|
|
50
50
|
`});var ht=document.createElement("style");ht.id=le,ht.textContent=ne.trim(),document.head.appendChild(ht)}return Ne._selection={editSelection:null,editRange:null,startOffset:null,endOffset:null,editStartNode:null,editEndNode:null,editStartElement:null,editEndElement:null,editStartUnitElement:null,editEndUnitElement:null,editDragUnitElement:[],setEditStyleTagToggle:0},Ne._attributes={isNoteByMobile:Pe.isNoteByMobile,language:Pe.language,sizeRate:Pe.sizeRate,toolPosition:Pe.toolPosition,toolToggleUsing:Pe.toolToggleUsing,toolDefaultLine:Pe.toolDefaultLine,textareaOriginHeight:Pe.textareaOriginHeight,defaultTextareaFontSize:Pe.defaultTextareaFontSize,defaultTextareaLineHeight:Pe.defaultTextareaLineHeight,defaultTextareaFontFamily:Pe.defaultTextareaFontFamily,defaultFontFamilies:Pe.defaultFontFamilies,attFilePreventTypes:Pe.attFilePreventTypes,attFileAcceptTypes:Pe.attFileAcceptTypes,attFileMaxSize:Pe.attFileMaxSize,attImagePreventTypes:Pe.attImagePreventTypes,attImageAcceptTypes:Pe.attImageAcceptTypes,attImageMaxSize:Pe.attImageMaxSize,placeholderIsVisible:Pe.placeholderIsVisible,placeholderWidth:Pe.placeholderWidth,placeholderAddTop:Pe.placeholderAddTop,placeholderAddLeft:Pe.placeholderAddLeft,placeholderTitle:Pe.placeholderTitle,placeholderTextContent:Pe.placeholderTextContent},Ne._status={toolToggle:!1,boldToggle:!1,underlineToggle:!1,italicToggle:!1,ulToggle:!1,olToggle:!1,fontSize:Pe.defaultTextareaFontSize,letterSpacing:0,lineHeight:Pe.defaultTextareaLineHeight,fontFamily:Pe.defaultTextareaFontFamily,colorTextR:ke(Ne._colors.color12,"R"),colorTextG:ke(Ne._colors.color12,"G"),colorTextB:ke(Ne._colors.color12,"B"),colorTextO:"1",colorTextRGB:Ne._colors.color12,colorTextOpacity:"1",colorBackR:ke(Ne._colors.color13,"R"),colorBackG:ke(Ne._colors.color13,"G"),colorBackB:ke(Ne._colors.color13,"B"),colorBackO:"0",colorBackRGB:Ne._colors.color13,colorBackOpacity:"0"},Ne._recodes={recodeNotes:[],recodeCount:-1,recodeLimit:Pe.recodeLimit},Ne._attTempFiles={},Ne._attFiles={},Ne._attTempImages={},Ne._attImages={},bt(Ne),ft(rt,ct,Ne,Pe),Ne.getNoteData=function(){var d=Ne._elements.textarea,p=d.querySelectorAll("[uuid]"),x=d.querySelectorAll("img[data-note-id]"),S=d.querySelectorAll("a[data-note-id]"),N=d.querySelectorAll("iframe[data-note-id]"),O=Pt(Pt({},Ne._attFiles),Ne._attImages),T={},G={};Object.keys(O).forEach(function(se){Array.from(p).some(function(qe){return qe.getAttribute("uuid")===se})&&(T[se]=O[se]),Array.from(x).some(function(qe){return qe.getAttribute("uuid")===se})&&(G[se]=O[se])});var V=[];S.forEach(function(se){V.push({text:se.textContent||"",href:se.getAttribute("href")||"",target:se.getAttribute("target")||void 0})});var Z=[];x.forEach(function(se){Z.push({src:se.getAttribute("src")||"",uuid:se.getAttribute("uuid")||void 0})});var oe=[];Object.keys(T).forEach(function(se){oe.push({uuid:se,name:T[se].name})});var Y=[];return N.forEach(function(se){var qe=se.getAttribute("src")||"";qe.includes("youtube.com/embed")&&Y.push({src:qe,width:se.style.width||se.getAttribute("width")||void 0,height:se.style.height||se.getAttribute("height")||void 0})}),{html:d.innerHTML,plainText:d.textContent||"",links:V,files:oe,images:Z,videos:Y,fileObjects:T,imageObjects:G}},Ne.setNoteData=function(d){if(d){var p=Ne._elements.textarea;p&&(p.innerHTML="",Ne._attFiles={},Ne._attImages={},p.innerHTML=d.html,Object.entries(d.fileObjects).forEach(function(x){var S=Ye(x,2),N=S[0],O=S[1];Ne._attFiles[N]=O,p.querySelectorAll('a[uuid="'.concat(N,'"]')).forEach(function(T){T.setAttribute("href",URL.createObjectURL(O)),T.setAttribute("download",O.name)})}),Object.entries(d.imageObjects).forEach(function(x){var S=Ye(x,2),N=S[0],O=S[1];Ne._attImages[N]=O,p.querySelectorAll('img[uuid="'.concat(N,'"]')).forEach(function(T){T.setAttribute("src",URL.createObjectURL(O))})}))}},Ne}(z,ye,it)}),setTimeout(function(){Object.keys(z.vanillanoteElements).forEach(function(je){z.vanillanoteElements[je]._elements.template.removeAttribute("style")}),z.events.documentEvents.resize()},z.variables.loadInterval))})(Xe,Ut,D)},Xe.unmountNote=function(D){Xn(Xe,D)},Xe},gt=function(){if(Xe&&!Xe._initialized){Xe._initialized=!0,function(j,E){E.setAttTempFileValid=function(s){for(var l=new Object,I=Object.keys(s._attTempFiles),$=0;$<I.length;$++)s._attributes.attFileAcceptTypes.length>0?s._attributes.attFileAcceptTypes.includes(s._attTempFiles[I[$]].type)&&(l[I[$]]=s._attTempFiles[I[$]]):l[I[$]]=s._attTempFiles[I[$]],l[I[$]]&&(s._attributes.attFilePreventTypes.includes(l[I[$]].type)?(E.showAlert("["+l[I[$]].name+"] "+j.languageSet[s._attributes.language].attPreventType,j.beforeAlert),delete l[I[$]]):l[I[$]].size>=s._attributes.attFileMaxSize&&(E.showAlert("["+l[I[$]].name+"] "+j.languageSet[s._attributes.language].attOverSize,j.beforeAlert),delete l[I[$]]));s._attTempFiles=l},E.setAttFileUploadDiv=function(s){if(s._attTempFiles.length<=0)return s._elements.attFileUploadDiv.style.removeProperty("line-height"),void(s._elements.attFileUploadDiv.textContent=j.languageSet[s._attributes.language].attFileUploadDiv);s._elements.attFileUploadDiv.style.lineHeight="unset",s._elements.attFileUploadDiv.replaceChildren();for(var l,I=Object.keys(s._attTempFiles),$=0;$<I.length;$++)l=E.getElement(s._attTempFiles[I[$]].name,"P","display:block;padding:0.5em 0;",{title:j.languageSet[s._attributes.language].attFileListTooltip,uuid:I[$]},s),s._elements.attFileUploadDiv.appendChild(l)},E.setAttTempImageValid=function(s){for(var l=new Object,I=Object.keys(s._attTempImages),$=0;$<I.length;$++)s._attributes.attImageAcceptTypes.length>0?s._attributes.attImageAcceptTypes.includes(s._attTempImages[I[$]].type)&&(l[I[$]]=s._attTempImages[I[$]]):l[I[$]]=s._attTempImages[I[$]],l[I[$]]&&(s._attributes.attImagePreventTypes.includes(l[I[$]].type)?(E.showAlert("["+l[I[$]].name+"] "+j.languageSet[s._attributes.language].attPreventType,j.beforeAlert),delete l[I[$]]):l[I[$]].size>=s._attributes.attImageMaxSize&&(E.showAlert("["+l[I[$]].name+"] "+j.languageSet[s._attributes.language].attOverSize,j.beforeAlert),delete l[I[$]]));s._attTempImages=l},E.setAttImageUploadAndView=function(s){var l=Object.keys(s._attTempImages);if(!(l.length<=0)){var I,$;s._elements.attImageUploadButtonAndView.replaceChildren();for(var J=0;J<l.length;J++)I=s._attTempImages[l[J]],($=document.createElement("img")).src=URL.createObjectURL(I),$.style.width="auto",$.style.height="100%",$.style.display="inline-block",$.style.margin="0 5px",s._elements.attImageUploadButtonAndView.appendChild($);s._elements.attImageURL.value="",s._elements.attImageURL.setAttribute("readonly","true")}},E.createElement=function(s,l,I,$,J){var ae,ge=document.createElement(s);if(I!==""&&ge.setAttribute("id",c(l._noteName,l._id,I)),ge.setAttribute("data-note-id",l._id),ge.setAttribute("class",m(l._noteName,l._id,$)),J&&en(J)==="object"&&Object.keys(J).length!==0)if(J.isIcon){var Ce=document.createElement("span");Ce.setAttribute("class","material-symbols-rounded "+C(l._noteName)+" "+P(l._noteName)+" "+L(l._noteName)+" "+c(l._noteName,l._id,"icon")),ae=document.createTextNode(J.text),Ce.appendChild(ae),J.iconStyle&&Ce.setAttribute("style",J.iconStyle),Ce.setAttribute("data-note-id",l._id),ge.appendChild(Ce)}else ae=document.createTextNode(J.text),ge.appendChild(ae);return ge},E.createElementBasic=function(s,l,I,$,J){var ae=E.createElement(s,l,I,$,J);return E.addClickEvent(ae,I,l),ae},E.createElementButton=function(s,l,I,$,J){var ae=E.createElement(s,l,I,$,J);return ae.classList.add(P(l._noteName)),ae.classList.add(L(l._noteName)),E.addClickEvent(ae,I,l),E.addMouseoverEvent(ae,l),E.addMouseoutEvent(ae,l),E.addTouchstartEvent(ae,l),E.addTouchendEvent(ae,l),ae},E.createElementSelect=function(s,l,I,$,J){var ae=E.createElement(s,l,I,$,J);return ae.classList.add(P(l._noteName)),ae.classList.add(L(l._noteName)),ae.setAttribute("type","select"),E.addClickEvent(ae,I,l),E.addMouseoverEvent(ae,l),E.addMouseoutEvent(ae,l),E.addTouchstartEvent(ae,l),E.addTouchendEvent(ae,l),ae},E.createElementInput=function(s,l,I){var $=E.createElement("input",s,l,I);return $.setAttribute("name",c(s._noteName,s._id,l)),$.setAttribute("autocapitalize","none"),$.setAttribute("placeholder",""),$.addEventListener("input",function(J){s._elementEvents[l+"_onBeforeInput"](J)&&(j.events.elementEvents[l+"_onInput"](J),s._elementEvents[l+"_onAfterInput"](J),J.stopImmediatePropagation())}),$.addEventListener("blur",function(J){s._elementEvents[l+"_onBeforeBlur"](J)&&(j.events.elementEvents[l+"_onBlur"](J),s._elementEvents[l+"_onAfterBlur"](J),J.stopImmediatePropagation())}),$},E.createElementInputCheckbox=function(s,l,I){var $=E.createElement("input",s,l,I);return $.setAttribute("name",c(s._noteName,s._id,l)),$.setAttribute("placeholder",""),$.setAttribute("type","checkbox"),$},E.createElementInputRadio=function(s,l,I,$){var J=E.createElement("input",s,l,I);return J.setAttribute("name",$),J.setAttribute("placeholder",""),J.setAttribute("type","radio"),E.addClickEvent(J,l,s),J},E.createElementRadioLabel=function(s,l,I){var $=document.createElement("label");$.setAttribute("for",l),$.setAttribute("style","display:inline-block;width:30px;position:relative;margin-left:3px;;margin-left:3px;");var J=document.createElement("span");return J.setAttribute("class","material-symbols-rounded"),J.setAttribute("style","font-size:1.3em;position:absolute;bottom:-6px;cursor:pointer;color:"+De(s._colors.color1)),J.textContent=I,$.appendChild(J),$},E.createElementFontFamiliySelect=function(s,l,I,$,J){var ae=E.createElement(s,l,I,$,J);return ae.classList.add(P(l._noteName)),ae.classList.add(L(l._noteName)),l._elementEvents[I+"_onBeforeClick"]=function(ge){return!0},j.events.elementEvents[l._id+"_"+I+"_onClick"]=function(ge){E.fontFamilySelectList_onClick(ge,l),E.selectToggle(ge.target,l),l._selection.editRange&&l._selection.editRange.collapsed?E.setOriginEditSelection(l):E.modifySelectedSingleElement(l,E.getObjectNoteCss(l))},l._elementEvents[I+"_onAfterClick"]=function(ge){},ae.addEventListener("click",function(ge){l._cssEvents.target_onBeforeClick(ge)&&ge.target.classList.contains(P(l._noteName))&&(j.events.cssEvents.target_onClick(ge),l._cssEvents.target_onAfterClick(ge)),l._elementEvents[I+"_onBeforeClick"](ge)&&(j.events.elementEvents[l._id+"_"+I+"_onClick"](ge),l._elementEvents[I+"_onAfterClick"](ge),ge.stopImmediatePropagation())}),E.addMouseoverEvent(ae,l),E.addMouseoutEvent(ae,l),E.addTouchstartEvent(ae,l),E.addTouchendEvent(ae,l),ae},E.addClickEvent=function(s,l,I){l==="textarea"?s.addEventListener("click",function($){I._elementEvents[l+"_onBeforeClick"]($)&&(j.events.elementEvents[l+"_onClick"]($),I._elementEvents[l+"_onAfterClick"]($),$.stopImmediatePropagation())}):s.addEventListener("click",function($){I._cssEvents.target_onBeforeClick($)&&$.target.classList.contains(P(I._noteName))&&(j.events.cssEvents.target_onClick($),I._cssEvents.target_onAfterClick($)),I._elementEvents[l+"_onBeforeClick"]($)&&(j.events.elementEvents[l+"_onClick"]($),I._elementEvents[l+"_onAfterClick"]($),$.stopImmediatePropagation())})},E.addMouseoverEvent=function(s,l){s.addEventListener("mouseover",function(I){l._cssEvents.target_onBeforeMouseover(I)&&I.target.classList.contains(L(l._noteName))&&(j.events.cssEvents.target_onMouseover(I),l._cssEvents.target_onAfterMouseover(I),I.stopImmediatePropagation())})},E.addMouseoutEvent=function(s,l){s.addEventListener("mouseout",function(I){l._cssEvents.target_onBeforeMouseout(I)&&I.target.classList.contains(L(l._noteName))&&(j.events.cssEvents.target_onMouseout(I),l._cssEvents.target_onAfterMouseout(I),I.stopImmediatePropagation())})},E.addTouchstartEvent=function(s,l){s.addEventListener("touchstart",function(I){l._cssEvents.target_onBeforeTouchstart(I)&&I.target.classList.contains(L(l._noteName))&&(j.events.cssEvents.target_onTouchstart(I),l._cssEvents.target_onAfterTouchstart(I),I.stopImmediatePropagation())})},E.addTouchendEvent=function(s,l){s.addEventListener("touchend",function(I){l._cssEvents.target_onBeforeTouchend(I)&&I.target.classList.contains(L(l._noteName))&&(j.events.cssEvents.target_onTouchend(I),l._cssEvents.target_onAfterTouchend(I),I.stopImmediatePropagation())})}}(Xe,Ut),function(j,E){E.onEventDisable=function(s,l){var I;I=l==="resize"?s.variables.resizeInterval:s.variables.inputInterval,s.variables.canEvent=!1,setTimeout(function(){s.variables.canEvent=!0},I)},E.replaceDifferentBetweenElements=function(s,l,I){var $,J,ae,ge,Ce=function(He,Le,Ke){if(!(Le.tagName!==(He.variables.noteName+"-textarea").toUpperCase()&&Ke.tagName!==(He.variables.noteName+"-textarea").toUpperCase()&&He.consts.NOT_SINGLE_TAG.indexOf(Le.tagName)>=0&&He.consts.NOT_SINGLE_TAG.indexOf(Ke.tagName)>=0)||Le.nodeType===Ke.nodeType&&Le.tagName===Ke.tagName&&E.compareAttributesBetweenEl(Le,Ke)&&E.compareStylesBetweenEl(Le,Ke))if(!(Le.tagName!==(He.variables.noteName+"-textarea").toUpperCase()&&Ke.tagName!==(He.variables.noteName+"-textarea").toUpperCase()&&He.consts.NOT_SINGLE_TAG.indexOf(Le.tagName)<0&&He.consts.NOT_SINGLE_TAG.indexOf(Ke.tagName)<0)||Le.nodeType===Ke.nodeType&&Le.tagName===Ke.tagName&&Le.textContent===Ke.textContent&&E.compareAttributesBetweenEl(Le,Ke)&&E.compareStylesBetweenEl(Le,Ke))for(var Ze=Array.prototype.slice.call(Le.childNodes),et=Array.prototype.slice.call(Ke.childNodes),Ve=Math.max(Ze.length,et.length),xt=0;xt<Ve;xt++){var Rt=Ze[xt],Mt=et[xt];!Rt&&Mt?(ae=Mt.cloneNode(!0),Le.appendChild(ae),$||($=ae),J=ae):Rt&&!Mt?Le.removeChild(Rt):Ce(He,Rt,Mt)}else ae=Ke.cloneNode(!0),Le.parentNode.replaceChild(ae,Le),$||($=ae),J=ae;else ae=Ke.cloneNode(!0),Le.parentNode.replaceChild(ae,Le),$||($=ae),J=ae};Ce(s,l,I),$&&(J||(J=$),ge=J instanceof Element?J.childNodes.length:J.nodeType===3?J.textContent.length:0,E.setNewSelection($,0,J,ge))},E.compareAttributesBetweenEl=function(s,l){var I=E.getAttributesObjectFromElement(s),$=E.getAttributesObjectFromElement(l);return Me(I,$)},E.compareStylesBetweenEl=function(s,l){var I=s.cssText,$=l.cssText;return Me(ve(I),ve($))},E.getAttributesObjectFromElement=function(s){var l=new Object;if(!s.attributes)return l;for(var I=0;I<s.attributes.length;I++)l[s.attributes[I].nodeName]=s.attributes[I].nodeValue;return l},E.getSpecialTag=function(s,l){for(var I=s,$=I.tagName;I&&j.consts.UNIT_TAG.indexOf($)<0;){if(j.consts.SPECIAL_TAG.indexOf($)>=0)return $;if(!(I=I.parentNode))break;$=I.tagName}return"SPAN"},E.getParentUnitTagElemnt=function(s,l){for(var I=s;I&&!(j.consts.UNIT_TAG.indexOf(I.tagName)>=0);){if(j.consts.DOUBLE_TAG.indexOf(I.tagName)>=0){I=I.lastElementChild;break}if(I.tagName===(l._noteName+"-textarea").toUpperCase())return null;I=I.parentNode}return I},E.getParentTagName=function(s,l){var I="span";return s&&s.parentNode&&s.parentNode.tagName?j.consts.UNIT_TAG.indexOf(s.parentNode.tagName)>=0||j.consts.AUTO_MODIFY_TAG.indexOf(s.parentNode.tagName)>=0?I:s.parentNode.tagName:I},E.getObjectEditElementAttributes=function(s,l){for(var I=E.getAttributesObjectFromElement(s),$=function(J){if(J.getAttribute)for(var ae=E.getAttributesObjectFromElement(J),ge=Object.keys(ae),Ce=0;Ce<ge.length;Ce++)ae[ge[Ce]]&&ge[Ce]!=="style"&&!I[ge[Ce]]&&(I[ge[Ce]]=ae[ge[Ce]])};s&&!(j.consts.UNIT_TAG.indexOf(s.tagName)>=0);)$(s),s=s.parentNode;return I},E.getObjectEditElementCss=function(s,l){for(var I=ve(document.contains(s)&&s.getAttribute?s.getAttribute("style"):""),$=function(J){if(J.getAttribute)for(var ae=ve(J.getAttribute("style")),ge=Object.keys(ae),Ce=0;Ce<ge.length;Ce++)I[ge[Ce]]||(I[ge[Ce]]=ae[ge[Ce]])};s&&!(j.consts.UNIT_TAG.indexOf(s.tagName)>=0);){switch(s.tagName){case"B":case"STRONG":I["font-weight"]="bold";break;case"U":I["text-decoration"]="underline";break;case"I":I["font-style"]="italic"}$(s),s=s.parentNode}return I},E.getEditElementTag=function(s){for(var l="",I="",$=0;$<s._selection.editDragUnitElement.length;$++){if(I=s._selection.editDragUnitElement[$].tagName==="LI"?s._selection.editDragUnitElement[$].parentNode.tagName:s._selection.editDragUnitElement[$].tagName,l&&l!==I)return"";l=I}return l},E.getPreviousElementsUntilNotTag=function(s,l,I){var $=[],J=s,ae=E.getAttributesObjectFromElement(s);for($.push(J);J;){for(;J.previousSibling;){if((J=J.previousSibling).tagName&&I.DOUBLE_TAG.indexOf(J.tagName)>0)for(;J.lastChild;)J=J.lastChild;else if(J.tagName&&I.UNIT_TAG.indexOf(J.tagName)>0)for(;J.lastChild;)J=J.lastChild;if(J.nodeType===3&&(J=J.parentNode),I.UNIT_TAG.indexOf(J.tagName)>0||!J.tagName||J.tagName!==l.toUpperCase()||!Me(ae,E.getAttributesObjectFromElement(J)))return $;$.push(J)}J=J.parentNode}return $},E.getNextElementsUntilNotTag=function(s,l,I){var $=[],J=s,ae=E.getAttributesObjectFromElement(s);for($.push(J);J;){for(;J.nextSibling;){if((J=J.nextSibling).tagName&&I.DOUBLE_TAG.indexOf(J.tagName)>0)for(;J.firstChild;)J=J.firstChild;else if(J.tagName&&I.UNIT_TAG.indexOf(J.tagName)>0)for(;J.firstChild;)J=J.firstChild;if(J.nodeType===3&&(J=J.parentNode),I.UNIT_TAG.indexOf(J.tagName)>0||!J.tagName||J.tagName!==l.toUpperCase()||!Me(ae,E.getAttributesObjectFromElement(J)))return $;$.push(J)}J=J.parentNode}return $},E.setTagToggle=function(s,l){s._status.ulToggle=l==="UL",s._status.olToggle=l==="OL"},E.initToggleButtonVariables=function(s){s._status.boldToggle=!1,s._status.underlineToggle=!1,s._status.italicToggle=!1,s._status.ulToggle=!1,s._status.olToggle=!1,E.button_onToggle(s._elements.boldButton,s._status.boldToggle),E.button_onToggle(s._elements.underlineButton,s._status.underlineToggle),E.button_onToggle(s._elements.italicButton,s._status.italicToggle),E.button_onToggle(s._elements.ulButton,s._status.ulToggle),E.button_onToggle(s._elements.olButton,s._status.olToggle)},E.isInNote=function(s){for(;s;){if(s&&s instanceof Element&&s.hasAttribute("data-vanillanote"))return!0;s=s.parentNode}return!1},E.getElementReplaceTag=function(s,l){for(var I,$,J=document.createElement(l),ae=s.childNodes;ae[0];)ae[0].getAttribute&&(I=ve(ae[0].getAttribute("style")),J&&J.tagName.substring(0,1)==="H"&&(delete I["font-size"],delete I["letter-spacing"],delete I["line-height"]),$=Ee(I)),$&&ae[0].setAttribute&&ae[0].setAttribute("style",$),J.append(ae[0]);return xe(J,E.getAttributesObjectFromElement(s))},E.removeDoubleTag=function(s,l){if(!(j.consts.DOUBLE_TAG.indexOf(l.tagName)<0)){for(var I,$=l.childNodes,J=0;J<$.length;J++){I=E.getElementReplaceTag($[J],"P"),l.insertAdjacentElement("beforebegin",I);for(var ae=0;ae<s._selection.editDragUnitElement.length;ae++)if(s._selection.editDragUnitElement[ae]===$[J]){s._selection.editDragUnitElement[ae]=I;break}}l.remove()}},E.getElement=function(s,l,I,$,J){s=s.replace(/<br\s*\/?>/gm,`
|
|
51
51
|
`),(!l||j.consts.UNIT_TAG.indexOf(l)>=0||j.consts.AUTO_MODIFY_TAG.indexOf(l)>=0)&&(l="span");var ae=document.createElement(l);return ae.innerText=s,$&&(ae=xe(ae,$)),I&&ae.setAttribute("style",I),ae},E.setEditNodeAndElement=function(s,l,I){var $=!1;return s._selection.editStartNode===I&&(s._selection.editStartNode=l,$=!0),s._selection.editEndNode===I&&(s._selection.editEndNode=l,$=!0),s._selection.editStartElement===I&&(s._selection.editStartElement=l,$=!0),s._selection.editEndElement===I&&(s._selection.editEndElement=l,$=!0),s._selection.editStartUnitElement===I&&(s._selection.editStartUnitElement=l,$=!0),s._selection.editEndUnitElement===I&&(s._selection.editEndUnitElement=l,$=!0),$},E.removeEmptyElment=function(s,l){for(var I=s.querySelectorAll("*"),$=I.length-1;$>=0;$--)!I[$].hasChildNodes()&&j.consts.EMPTY_ABLE_TAG.indexOf(I[$].tagName)<0&&I[$].remove()},E.doEditUnitCheck=function(s){j.events.documentEvents.noteObserver.disconnect(),function(l){for(var I=l._elements.textarea,$=I.childNodes,J=document.createElement("P"),ae=[],ge=!0,Ce=0;Ce<$.length;Ce++)j.consts.UNIT_TAG.indexOf($[Ce].tagName)<0&&j.consts.DOUBLE_TAG.indexOf($[Ce].tagName)<0?ge?(I.insertBefore(J,$[Ce]),ge=!1):(J.append($[Ce].cloneNode(!0)),ae.push($[Ce])):(J=document.createElement("P"),ge=!0);for(var He=0;He<ae.length;He++)ae[He].remove()}(s),E.connectObserver(j)},E.connectObserver=function(s){Object.keys(s.vanillanoteElements).forEach(function(l){s.events.documentEvents.noteObserver.observe(s.vanillanoteElements[l]._elements.textarea,s.variables.observerOptions)})},E.isElementInParentBounds=function(s,l){if(s.offsetParent===null)return!1;var I=s.getBoundingClientRect();if(l.offsetParent===null)return!1;var $=l.getBoundingClientRect(),J=$.top+window.pageYOffset,ae=$.bottom+window.pageYOffset,ge=I.top+window.pageYOffset,Ce=I.bottom+window.pageYOffset;return J>=ge&&ae<=Ce},E.validCheckAttLink=function(s){return s._elements.attLinkText.value?s._elements.attLinkHref.value?(s._elements.attLinkValidCheckbox.checked=!0,s._elements.attLinkValidCheckText.style.color=De(s._colors.color8),void(s._elements.attLinkValidCheckText.textContent=j.languageSet[s._attributes.language].thanks)):(s._elements.attLinkValidCheckbox.checked=!1,s._elements.attLinkValidCheckText.style.color=De(s._colors.color9),void(s._elements.attLinkValidCheckText.textContent=j.languageSet[s._attributes.language].attLinkInLinkTooltip)):(s._elements.attLinkValidCheckbox.checked=!1,s._elements.attLinkValidCheckText.style.color=De(s._colors.color9),void(s._elements.attLinkValidCheckText.textContent=j.languageSet[s._attributes.language].attLinkInTextTooltip))},E.validCheckAttVideo=function(s){if(!s._elements.attVideoEmbedId.value)return s._elements.attVideoValidCheckbox.checked=!1,s._elements.attVideoValidCheckText.style.color=De(s._colors.color9),void(s._elements.attVideoValidCheckText.textContent=j.languageSet[s._attributes.language].attVideoEmbedIdTooltip);s._elements.attVideoValidCheckbox.checked=!0,s._elements.attVideoValidCheckText.style.color=De(s._colors.color8),s._elements.attVideoValidCheckText.textContent=j.languageSet[s._attributes.language].thanks},E.initAttLink=function(s){s._elements.attLinkText.value="",s._elements.attLinkHref.value="",s._elements.attLinkIsBlankCheckbox.checked=!1},E.initAttFile=function(s){delete s._attTempFiles,s._attTempFiles={},s._elements.attFileUploadDiv.replaceChildren(),s._elements.attFileUploadDiv.textContent=j.languageSet[s._attributes.language].attFileUploadDiv,s._elements.attFileUploadDiv.style.lineHeight=130*s._attributes.sizeRate+"px",s._elements.attFileUpload.value=""},E.initAttImage=function(s){delete s._attTempImages,s._attTempImages={},s._elements.attImageUploadButtonAndView.replaceChildren(),s._elements.attImageUploadButtonAndView.textContent=j.languageSet[s._attributes.language].attImageUploadButtonAndView,s._elements.attImageUpload.value="",s._elements.attImageURL.value="",s._elements.attImageURL.removeAttribute("readonly")},E.getObjectNoteCss=function(s){var l=new Object;return s._status.boldToggle&&(l["font-weight"]="bold"),s._status.underlineToggle&&(l["text-decoration"]="underline"),s._status.italicToggle&&(l["font-style"]="italic"),l["font-size"]=s._status.fontSize+"px",l["line-height"]=s._status.lineHeight+"px",s._status.letterSpacing&&ie(s._status.letterSpacing)&&(l["letter-spacing"]=s._status.letterSpacing+"px"),s._status.fontFamily&&(l["font-family"]=s._status.fontFamily),De(s._colors.color12)===s._status.colorTextRGB&&s._status.colorTextOpacity==="1"||(l.color=Te(s._status.colorTextRGB,s._status.colorTextOpacity)),De(s._colors.color13)===s._status.colorBackRGB&&s._status.colorBackOpacity==="0"||(l["background-color"]=Te(s._status.colorBackRGB,s._status.colorBackOpacity)),l},E.showAlert=function(s,l){l(s)&&alert(s)},E.recodeNote=function(s){s._recodes.recodeNotes.length>=s._recodes.recodeLimit?(s._recodes.recodeNotes.shift(),s._recodes.recodeNotes.push(s._elements.textarea.cloneNode(!0))):(s._recodes.recodeCount=s._recodes.recodeCount+1,s._recodes.recodeCount<s._recodes.recodeNotes.length&&s._recodes.recodeNotes.splice(s._recodes.recodeCount),s._recodes.recodeNotes.push(s._elements.textarea.cloneNode(!0)))}}(Xe,Ut),function(j,E){E.closeAllTooltip=function(s){s._elements.attLinkTooltip.style.opacity="0",s._elements.attLinkTooltip.style.height="0",s._elements.attImageAndVideoTooltip.style.opacity="0",s._elements.attImageAndVideoTooltip.style.height="0"},E.setVariableButtonTogle=function(s,l){l["font-weight"]==="bold"?s._status.boldToggle=!0:s._status.boldToggle=!1,l["text-decoration"]==="underline"||l["text-decoration-line"]==="underline"?s._status.underlineToggle=!0:s._status.underlineToggle=!1,l["font-style"]==="italic"?s._status.italicToggle=!0:s._status.italicToggle=!1,l.color?(s._status.colorTextRGB=We(l.color),s._status.colorTextOpacity=nt(l.color),s._status.colorTextRGB?s._status.colorTextOpacity||(l.opacity?s._status.colorTextOpacity=l.opacity:s._status.colorTextOpacity="1"):(s._status.colorTextRGB=De(s._colors.color12),s._status.colorTextOpacity="1")):(s._status.colorTextRGB=De(s._colors.color12),s._status.colorTextOpacity="1"),l["background-color"]?(s._status.colorBackRGB=We(l["background-color"]),s._status.colorBackOpacity=nt(l["background-color"]),s._status.colorTextRGB?s._status.colorBackOpacity||(l.opacity?s._status.colorBackOpacity=l.opacity:s._status.colorBackOpacity="0"):(s._status.colorTextRGB=De(s._colors.color12),s._status.colorTextOpacity="1")):(s._status.colorBackRGB=De(s._colors.color13),s._status.colorBackOpacity="0")},E.button_onToggle=function(s,l){var I=a(s);I&&(s.classList.contains(C(I._noteName))&&(s=s.parentNode),l?s.classList.add(c(I._noteName,I._id,"on_button_on")):s.classList.remove(c(I._noteName,I._id,"on_button_on")))},E.allButtonToggle=function(s){E.button_onToggle(s._elements.boldButton,s._status.boldToggle),E.button_onToggle(s._elements.underlineButton,s._status.underlineToggle),E.button_onToggle(s._elements.italicButton,s._status.italicToggle),E.button_onToggle(s._elements.ulButton,s._status.ulToggle),E.button_onToggle(s._elements.olButton,s._status.olToggle),s._elements.colorTextSelect.querySelector("."+C(s._noteName)).style.color=Te(s._status.colorTextRGB,s._status.colorTextOpacity==="0"?"1":s._status.colorTextOpacity),s._elements.colorBackSelect.querySelector("."+C(s._noteName)).style.color=Te(s._status.colorBackRGB,s._status.colorBackOpacity==="0"?"1":s._status.colorBackOpacity)},E.selectToggle=function(s,l){var I=l||a(s);if(I){s.classList.contains(C(I._noteName))&&(s=s.parentNode);for(var $=s,J=!1;$&&$.getAttribute("type")!=="select";)J=!0,$=$.parentNode;if($.getAttribute("data-note-id")){var ae,ge=$.getAttribute("id");if(ge.includes("paragraphStyleSelect"))ae=I._elements.paragraphStyleSelectBox;else if(ge.includes("textAlignSelect"))ae=I._elements.textAlignSelectBox;else if(ge.includes("fontFamilySelect"))ae=I._elements.fontFamilySelectBox;else if(ge.includes("colorTextSelect")){if(J)return;ae=I._elements.colorTextSelectBox}else if(ge.includes("colorBackSelect")){if(J)return;ae=I._elements.colorBackSelectBox}var Ce=c(I._noteName,I._id,"on_display_block"),He=c(I._noteName,I._id,"on_display_none"),Le=ae.classList.contains(Ce);if(E.closeAllSelectBoxes(I),Le?(ae.classList.remove(Ce),ae.classList.add(He)):(ae.classList.remove(He),ae.classList.add(Ce)),function(Ve){if(Ve.offsetParent===null)return!1;var xt=Ve.getBoundingClientRect();return window.innerWidth/2<xt.left}($)){if(ae.style.removeProperty("left"),ae.style.right="0%",ae.offsetParent===null)return;var Ke=ae.getBoundingClientRect();if(Ke.top===0||I._elements.tool.offsetParent===null)return;I._elements.tool.getBoundingClientRect().left>Ke.left&&(ae.style.right=Ke.left-1+"px")}else{if(ae.style.removeProperty("right"),ae.style.left="0%",ae.offsetParent===null)return;var Ze=ae.getBoundingClientRect();if(Ze.top===0||I._elements.tool.offsetParent===null)return;var et=I._elements.tool.getBoundingClientRect();et.right<Ze.right&&(ae.style.left=et.right-(Ze.right+1)+"px")}}}},E.closeAllSelectBoxes=function(s){var l=c(s._noteName,s._id,"on_display_block"),I=c(s._noteName,s._id,"on_display_none");s._elements.paragraphStyleSelectBox.classList.remove(l),s._elements.paragraphStyleSelectBox.classList.add(I),s._elements.textAlignSelectBox.classList.remove(l),s._elements.textAlignSelectBox.classList.add(I),s._elements.fontFamilySelectBox.classList.remove(l),s._elements.fontFamilySelectBox.classList.add(I),s._elements.colorTextSelectBox.classList.remove(l),s._elements.colorTextSelectBox.classList.add(I),s._elements.colorBackSelectBox.classList.remove(l),s._elements.colorBackSelectBox.classList.add(I)},E.fontFamilySelectList_onClick=function(s,l){if(s.target){var I=s.target,$=l||a(s.target);if($){var J=I.getAttribute("data-font-family");ve($._elements.fontFamilySelect.getAttribute("style"))["font-family"]=J,$._status.fontFamily=J,$._elements.fontFamilySelect.firstChild.textContent=J.length>12?J.substr(0,12)+"...":J,$._elements.fontFamilySelect.style.fontFamily=J}}},E.setEditStyleTag=function(s){if(s._selection.setEditStyleTagToggle>0)s._selection.setEditStyleTagToggle--;else{for(var l=s._selection.editStartUnitElement,I=l;l;){if(l.tagName===(s._noteName+"-textarea").toUpperCase()){I=l;break}l=l.parentNode}if(I){var $=E.getObjectEditElementCss(s._selection.editStartElement,s);if(s._selection.editStartNode!==s._selection.editEndNode)for(var J=$,ae=!1,ge=!1,Ce=function(Ke){for(var Ze=0;Ze<Ke.childNodes.length&&!ge;Ze++)s._selection.editStartNode===Ke.childNodes[Ze]&&(ae=!0),ae&&Ke.childNodes[Ze].nodeType===3&&Ke.childNodes[Ze].textContent&&(J=E.getObjectEditElementCss(Ke.childNodes[Ze],s)),Me($,J)||($={},ge=!0),s._selection.editEndNode===Ke.childNodes[Ze]&&(ge=!0),Ke.childNodes[Ze].childNodes&&Ce(Ke.childNodes[Ze])},He=0;He<s._selection.editDragUnitElement.length;He++)Ce(s._selection.editDragUnitElement[He]);E.setVariableButtonTogle(s,$);var Le=E.getEditElementTag(s);E.setTagToggle(s,Le),E.allButtonToggle(s)}else Object.keys(j.vanillanoteElements).forEach(function(Ke){E.initToggleButtonVariables(j.vanillanoteElements[Ke])})}},E.setElementScroll=function(s,l,I){if(s&&l){l.nodeType===3&&(l=l.parentNode);var $=null,J=l.offsetTop-Math.round(I/2)+Math.round(l.offsetHeight/2),ae=s.scrollTop,ge=J-ae;window.requestAnimationFrame(function Ce(He){$||($=He);var Le=He-$,Ke=Math.min(Le/500,1);s.scrollTop=ae+ge*Ke,Le<500&&window.requestAnimationFrame(Ce)})}},E.getCheckSelectBoxesOpened=function(s){var l=c(s._noteName,s._id,"on_display_block");return!!(s._elements.paragraphStyleSelectBox.classList.contains(l)||s._elements.textAlignSelectBox.classList.contains(l)||s._elements.fontFamilySelectBox.classList.contains(l)||s._elements.colorTextSelectBox.classList.contains(l)||s._elements.colorBackSelectBox.classList.contains(l))},E.closeAllModal=function(s){var l=c(s._noteName,s._id,"on_display_block"),I=c(s._noteName,s._id,"on_display_none");s._elements.modalBack.classList.remove(l),s._elements.modalBack.classList.add(I),s._elements.attLinkModal.classList.remove(l),s._elements.attLinkModal.classList.add(I),s._elements.attFileModal.classList.remove(l),s._elements.attFileModal.classList.add(I),s._elements.attImageModal.classList.remove(l),s._elements.attImageModal.classList.add(I),s._elements.attVideoModal.classList.remove(l),s._elements.attVideoModal.classList.add(I),s._elements.helpModal.classList.remove(l),s._elements.helpModal.classList.add(I),E.initAttLink(s),E.initAttFile(s),E.initAttImage(s)},E.openAttLinkModal=function(s){E.doIncreaseTextareaHeight(j),E.closeAllModal(s),E.closeAllSelectBoxes(s),E.setAllModalSize(s);var l=c(s._noteName,s._id,"on_display_block"),I=c(s._noteName,s._id,"on_display_none");if(s._elements.modalBack.classList.remove(I),s._elements.modalBack.classList.add(l),s._elements.attLinkModal.classList.remove(I),s._elements.attLinkModal.classList.add(l),E.isValidSelection(s)){var $=s._elements.attLinkText,J=s._elements.attLinkHref;$.value=s._selection.editRange.toString(),J.value="",s._selection.editRange.collapsed?($.removeAttribute("readonly"),$.focus()):($.setAttribute("readonly","true"),J.focus()),E.validCheckAttLink(s)}else E.validCheckAttLink(s)},E.openPlaceholder=function(s){s._attributes.placeholderIsVisible&&s._elements.textarea.innerText.length<=1&&s._elements.textarea.textContent.length<1&&s._elements.textarea.childNodes.length<=1&&s._elements.textarea.childNodes[0]&&s._elements.textarea.childNodes[0].childNodes.length<=1&&s._elements.textarea.childNodes[0].childNodes[0]&&s._elements.textarea.childNodes[0].childNodes[0].tagName==="BR"&&(s._elements.placeholder.classList.remove(c(s._noteName,s._id,"on_display_none")),s._elements.placeholder.classList.add(c(s._noteName,s._id,"on_display_block")))},E.closePlaceholder=function(s){s._attributes.placeholderIsVisible&&(s._elements.placeholder.classList.remove(c(s._noteName,s._id,"on_display_block")),s._elements.placeholder.classList.add(c(s._noteName,s._id,"on_display_none")))},E.setAllModalSize=function(s){s._elements.template.offsetParent!==null&&setTimeout(function(){s._elements.modalBack.style.width=s._elements.template.clientWidth+"px",s._elements.modalBack.style.height=s._elements.template.clientHeight+"px",s._elements.attLinkModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.attLinkModal.style.marginTop=.1*s._elements.template.clientHeight+"px",s._elements.attFileModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.attFileModal.style.marginTop=.1*s._elements.template.clientHeight+"px",s._elements.attImageModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.attImageModal.style.marginTop=.1*s._elements.template.clientHeight+"px",s._elements.attVideoModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.attVideoModal.style.marginTop=.1*s._elements.template.clientHeight+"px",s._elements.helpModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.helpModal.style.marginTop=.1*s._elements.template.clientHeight+"px"},500)},E.setPlaceholderSize=function(s){setTimeout(function(){s._attributes.placeholderIsVisible&&(E.closePlaceholder(s),s._elements.textarea.offsetParent!==null&&(s._elements.placeholder.style.top=s._elements.textarea.offsetTop+s._attributes.placeholderAddTop+"px",s._elements.placeholder.style.left=s._elements.textarea.offsetLeft+s._attributes.placeholderAddLeft+"px",s._elements.placeholder.style.width=s._attributes.placeholderWidth?s._attributes.placeholderWidth:s._elements.textarea.clientWidth+"px",E.openPlaceholder(s)))},100)},E.setAllToolTipPosition=function(s){s._attributes.toolPosition===r.bottom&&(s._elements.attLinkTooltip.style.bottom=s._elements.tool.style.height,s._elements.attImageAndVideoTooltip.style.bottom=s._elements.tool.style.height)},E.appearAttLinkToolTip=function(s){var l=s._selection.editStartNode.parentElement,I=l.getAttribute("href"),$=l.getAttribute("download"),J=c(s._noteName,s._id,"on_display_inline_block"),ae=c(s._noteName,s._id,"on_display_none");s._elements.attLinkTooltipEditButton.classList.remove(ae),s._elements.attLinkTooltipUnlinkButton.classList.remove(ae),s._elements.attLinkTooltipEditButton.classList.add(J),s._elements.attLinkTooltipUnlinkButton.classList.add(J),I&&(s._elements.attLinkTooltipHref.setAttribute("href",I),s._elements.attLinkTooltipHref.textContent=I.length>25?I.substr(0,25)+"...":I),$&&(s._elements.attLinkTooltipHref.setAttribute("download",$),s._elements.attLinkTooltipHref.textContent="download : "+$,s._elements.attLinkTooltipEditButton.classList.remove(J),s._elements.attLinkTooltipUnlinkButton.classList.remove(J),s._elements.attLinkTooltipEditButton.classList.add(ae),s._elements.attLinkTooltipUnlinkButton.classList.add(ae)),s._elements.attLinkTooltip.style.opacity="0.95",s._elements.attLinkTooltip.style.height=54*s._attributes.sizeRate*.8+"px",s._elements.attLinkTooltip.style.lineHeight=54*s._attributes.sizeRate*.8+"px"},E.appearAttImageAndVideoTooltip=function(s){var l=s._selection.editStartNode,I=ve(E.getAttributesObjectFromElement(l).style);switch(I.width&&(s._elements.attImageAndVideoTooltipWidthInput.value=pe(I.width)),I.float){case"left":s._elements.attImageAndVideoTooltipFloatRadioLeft.checked=!0;break;case"right":s._elements.attImageAndVideoTooltipFloatRadioRight.checked=!0;break;default:s._elements.attImageAndVideoTooltipFloatRadioNone.checked=!0}if(s._elements.attImageAndVideoTooltipShapeRadioSquare.checked=!0,I["border-radius"]){var $=pe(I["border-radius"]);$>0?s._elements.attImageAndVideoTooltipShapeRadioRadius.checked=!0:$>=50&&(s._elements.attImageAndVideoTooltipShapeRadioCircle.checked=!0)}s._elements.attImageAndVideoTooltip.style.opacity="0.9",s._elements.attImageAndVideoTooltip.style.height=54*s._attributes.sizeRate*.8*2+"px",s._elements.attImageAndVideoTooltip.style.lineHeight=54*s._attributes.sizeRate*.7+"px"},E.setImageAndVideoWidth=function(s){s.value||(s.value=100);var l=s.value,I=a(s);if(I){var $=I._selection.editStartNode;$.tagName!=="IMG"&&$.tagName!=="IFRAME"||(l<10&&(l=10),l>100&&(l=100),s.value=l,$.style.width=l+"%",I._selection.editStartNode.parentNode.replaceChild($,I._selection.editStartNode),I._selection.editStartNode=$)}},E.setAllToolSize=function(s){for(var l=s._elements.tool.childNodes,I=c(s._noteName,s._id,"on_display_inline_block"),$=c(s._noteName,s._id,"on_display_none"),J=l.length-1;J>=0;J--)l[J].classList.add(I),l[J].classList.remove($);if(s._elements.tool.offsetParent!==null)if(s._status.toolToggle){s._elements.tool.style.height=s._attributes.toolDefaultLine*(52*s._attributes.sizeRate)+"px";for(var ae=l.length-1;ae>=0;ae--)E.isElementInParentBounds(s._elements.tool,l[ae])||(l[ae].classList.remove(I),l[ae].classList.add($))}else{for(var ge,Ce,He,Le=l.length-1;Le>=0;Le--)if(l[Le].offsetParent!==null){Ce=l[Le];break}if(s._elements.tool.offsetParent===null)return;ge=window.pageYOffset+s._elements.tool.getBoundingClientRect().top,He=window.pageYOffset+Ce.getBoundingClientRect().top-ge+52*s._attributes.sizeRate,s._elements.tool.style.height=He+"px"}},E.doDecreaseTextareaHeight=function(s){s._attributes.isNoteByMobile&&(s._elements.textarea.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(function(){(s._attributes.textareaOriginHeight.replace(/[-+]?[0-9]*\.?[0-9]+/g,"")||null)==="px"&&j.variables.mobileKeyboardExceptHeight<pe(s._attributes.textareaOriginHeight)&&j.variables.mobileKeyboardExceptHeight<s._elements.textarea.offsetHeight&&(s._elements.textarea.style.height=j.variables.mobileKeyboardExceptHeight+"px")},100))},E.doIncreaseTextareaHeight=function(s){for(var l=Object.keys(s.vanillanoteElements),I=0;I<l.length;I++){var $=s.vanillanoteElements[l[I]];$._attributes.isNoteByMobile&&($._elements.textarea.style.height=$._attributes.textareaOriginHeight)}},E.modifyTextareaScroll=function(s,l){l._attributes.isNoteByMobile&&(j.variables.preventChangeScroll>0?j.variables.preventChangeScroll--:j.variables.isSelectionProgress||(j.variables.isSelectionProgress=!0,setTimeout(function(){if(j.variables.isSelectionProgress=!1,E.isValidSelection(l)){var I=ee(l._selection.editDragUnitElement.length/2)?l._selection.editDragUnitElement.length/2-1:Math.floor(l._selection.editDragUnitElement.length/2);l._selection.editDragUnitElement[l._selection.editDragUnitElement.length-1].offsetTop-l._selection.editDragUnitElement[0].offsetTop+l._selection.editDragUnitElement[l._selection.editDragUnitElement.length-1].offsetHeight>s.offsetHeight-30||E.getCheckSelectBoxesOpened(l)||(l._selection.editRange.collapsed?E.setElementScroll(s,l._selection.editStartElement,j.variables.mobileKeyboardExceptHeight):E.setElementScroll(s,l._selection.editDragUnitElement[I],j.variables.mobileKeyboardExceptHeight))}},50)))},E.initTextarea=function(s){for(;s.firstChild;)s.removeChild(s.firstChild);var l=document.createElement("P"),I=document.createElement("BR");l.appendChild(I),s.appendChild(l),E.setNewSelection(l,0,l,0)}}(Xe,Ut),function(j,E){E.setNewSelection=function(s,l,I,$){if(document.contains(s)&&document.contains(I)){var J=document.createRange(),ae=window.getSelection();return J.setStart(s,l),J.setEnd(I,$),ae.removeAllRanges(),ae.addRange(J),ae}},E.handleSpecialTagSelection=function(s){if(E.closeAllTooltip(s),s._selection.editRange.collapsed)switch(E.getSpecialTag(s._selection.editStartNode,s)){case"A":E.appearAttLinkToolTip(s);break;case"IMG":case"IFRAME":E.appearAttImageAndVideoTooltip(s);break;default:return}},E.setOriginEditSelection=function(s){if(s._selection.editRange){s._selection.setEditStyleTagToggle=2;var l=window.getSelection();l.removeAllRanges(),l.addRange(s._selection.editRange)}},E.setEditSelection=function(s,l){if(l.rangeCount<1||!function(ae){var ge=window.getSelection();if(!ge||ge.rangeCount<1)return!1;for(var Ce=ge.getRangeAt(0).startContainer.parentNode,He=!1;Ce;){if(Ce.tagName===(ae+"-textarea").toUpperCase()){He=!0;break}Ce=Ce.parentNode}return He}(s._noteName))return!1;if(s._selection.editSelection=l,s._selection.editRange=s._selection.editSelection.getRangeAt(0),s._selection.startOffset=s._selection.editRange.startOffset,s._selection.endOffset=s._selection.editRange.endOffset,s._selection.editStartNode=s._selection.editRange.startContainer,s._selection.editEndNode=s._selection.editRange.endContainer,s._selection.editStartNode instanceof Element){for(;s._selection.editStartNode instanceof Element&&s._selection.editStartNode.firstChild&&s._selection.editStartNode.firstChild.tagName!=="BR"&&(s._selection.editStartNode=s._selection.editStartNode.firstChild,s._selection.editStartNode.nodeType!==3););s._selection.startOffset=0}if(s._selection.editEndNode instanceof Element){for(;s._selection.editEndNode instanceof Element&&s._selection.editEndNode.firstChild&&s._selection.editEndNode.firstChild.tagName!=="BR"&&(s._selection.editEndNode=s._selection.editEndNode.firstChild,s._selection.editEndNode.nodeType!==3););s._selection.endOffset=0}if(s._selection.editStartElement=s._selection.editRange.startContainer instanceof Element?s._selection.editRange.startContainer:s._selection.editRange.startContainer.parentNode,s._selection.editEndElement=s._selection.editRange.endContainer instanceof Element?s._selection.editRange.endContainer:s._selection.editRange.endContainer.parentNode,j.consts.UNIT_TAG.indexOf(s._selection.editStartElement.tagName)>0)for(;j.consts.UNIT_TAG.indexOf(s._selection.editStartElement.tagName)>0;)s._selection.editStartElement=s._selection.editStartElement.firstChild;if(j.consts.UNIT_TAG.indexOf(s._selection.editEndElement.tagName)>0)for(;j.consts.UNIT_TAG.indexOf(s._selection.editEndElement.tagName)>0;)s._selection.editEndElement=s._selection.editEndElement.lastChild;s._selection.editStartElement instanceof Element&&s._selection.editStartElement.tagName==="BR"&&(s._selection.editStartElement=s._selection.editStartElement.parentNode),s._selection.editEndElement instanceof Element&&s._selection.editEndElement.tagName==="BR"&&(s._selection.editEndElement=s._selection.editEndElement.parentNode),s._selection.editStartElement.tagName===(s._noteName+"-textarea").toUpperCase()&&(s._selection.editStartElement=null),s._selection.editEndElement.tagName===(s._noteName+"-textarea").toUpperCase()&&(s._selection.editEndElement=null),s._selection.editStartUnitElement=E.getParentUnitTagElemnt(s._selection.editStartElement,s),s._selection.editEndUnitElement=E.getParentUnitTagElemnt(s._selection.editEndElement,s),s._selection.editDragUnitElement.splice(0,s._selection.editDragUnitElement.length);for(var I,$=E.modifySeletedElements(s),J=0;J<$.length;J++)I=E.getParentUnitTagElemnt($[J],s),s._selection.editDragUnitElement.includes(I)||s._selection.editDragUnitElement.push(I);return E.setEditStyleTag(s),E.handleSpecialTagSelection(s),!0},E.isValidSelection=function(s){return!!s._selection.editRange&&!!s._selection.editStartElement&&!!s._selection.editStartUnitElement},E.modifySeletedElements=function(s){var l=!1,I=s._selection.editStartNode,$=[];if(!s._selection.editStartUnitElement||!s._selection.editEndUnitElement)return $;for(var J=s._selection.editEndUnitElement.lastChild;J&&J.lastChild;)J=J.lastChild;for(var ae=function(ge){if(ge===J&&($.push(ge),l=!0),!l&&((j.consts.UNIT_TAG.indexOf(ge.tagName)>=0||j.consts.EMPTY_ABLE_TAG.indexOf(ge.tagName)>=0||ge.nodeType===3)&&$.push(ge),ge&&ge.childNodes&&ge.childNodes.length))for(var Ce=0;Ce<ge.childNodes.length;Ce++)ae(ge.childNodes[Ce])};I&&!l;)if(ae(I),I.nextSibling)I=I.nextSibling;else{for(;I&&!I.nextSibling;)I=I.parentNode;I&&(I=I.nextSibling)}return $},E.modifySelectedUnitElementTag=function(s,l){var I=l||a(s);if(I&&E.isValidSelection(I)){var $,J=s.getAttribute("data-tag-name");if(j.consts.DOUBLE_TAG.indexOf(J)>=0)for(var ae=document.createElement(J),ge=0;ge<I._selection.editDragUnitElement.length&&(I._selection.editDragUnitElement[ge].tagName==="LI"&&E.removeDoubleTag(I,I._selection.editDragUnitElement[ge].parentNode),J!=="UL"||!I._status.ulToggle)&&(J!=="OL"||!I._status.olToggle);ge++)ge===0&&I._selection.editDragUnitElement[0].insertAdjacentElement("beforebegin",ae),$=E.getElementReplaceTag(I._selection.editDragUnitElement[ge],"LI"),E.setEditNodeAndElement(I,$,I._selection.editDragUnitElement[ge]),I._selection.editDragUnitElement[ge].remove(),I._selection.editDragUnitElement[ge]=$,ae.append($);else for(var Ce=0;Ce<I._selection.editDragUnitElement.length;Ce++)I._selection.editDragUnitElement[Ce].tagName==="LI"&&E.removeDoubleTag(I,I._selection.editDragUnitElement[Ce].parentNode),$=E.getElementReplaceTag(I._selection.editDragUnitElement[Ce],J),E.setEditNodeAndElement(I,$,I._selection.editDragUnitElement[Ce]),I._selection.editDragUnitElement[Ce].replaceWith($),I._selection.editDragUnitElement[Ce]=$;var He=0,Le=I._selection.editEndElement?I._selection.editEndElement.textContent.length:0;I._selection.editStartElement===I._selection.editEndElement&&(He=Le),E.setNewSelection(I._selection.editStartNode,He,I._selection.editEndNode,Le)}},E.modifySelectedUnitElementStyle=function(s,l){var I=l||a(s);if(I&&E.isValidSelection(I)){for(var $,J,ae,ge,Ce=s.getAttribute("data-tag-style"),He=ve(Ce),Le=0;Le<I._selection.editDragUnitElement.length;Le++)$=I._selection.editDragUnitElement[Le].getAttribute("style"),ae=ve($),J=Ee(Ie(ae,He)),(ge=I._selection.editDragUnitElement[Le].cloneNode(!0)).setAttribute("style",J),I._selection.editDragUnitElement[Le].parentNode.replaceChild(ge,I._selection.editDragUnitElement[Le]),I._selection.editDragUnitElement[Le]=ge;I._selection.editEndElement.childNodes&&I._selection.editEndElement.childNodes.length,E.setNewSelection(I._selection.editDragUnitElement[0],0,I._selection.editDragUnitElement[I._selection.editDragUnitElement.length-1],1)}},E.modifySelectedSingleElement=function(s,l,I,$){if(E.isValidSelection(s)){var J,ae,ge,Ce,He,Le,Ke,Ze,et;Ce=l?Ee(l):"",ge=I||"",He=$||null,Le=E.modifySeletedElements(s);for(var Ve=s._selection.editStartNode.textContent.slice(0,s._selection.startOffset),xt=s._selection.editStartNode.textContent.slice(s._selection.startOffset,s._selection.editStartNode.textContent.length),Rt=s._selection.editEndNode.textContent.slice(0,s._selection.endOffset),Mt=s._selection.editEndNode.textContent.slice(s._selection.endOffset,s._selection.editEndNode.textContent.length),Ht=function(g,y){g&&(y?y.insertBefore(g,null):s._selection.editStartUnitElement.insertBefore(g,null))},v=!1,w=s._selection.editStartNode===s._selection.editEndNode,A=0;A<Le.length;A++)Le[A].nodeType===3?($||(He=E.getObjectEditElementAttributes(Le[A],s)),I||(ge=E.getSpecialTag(Le[A],s)),l||(Ce=Ee(E.getObjectEditElementCss(Le[A],s))),(J=E.getParentUnitTagElemnt(Le[A],s))&&J.tagName.substring(0,1)==="H"&&(delete(l=ve(Ce))["font-size"],delete l["letter-spacing"],delete l["line-height"],Ce=Ee(l)),Le[A]===s._selection.editStartNode?(w&&(xt=xt.slice(0,xt.length-Mt.length)),Ht(J=E.getElement(Ve,E.getParentTagName(s._selection.editStartNode,s),Ee(E.getObjectEditElementCss(s._selection.editStartNode,s)),E.getObjectEditElementAttributes(s._selection.editStartNode,s),s),ae),Ht(J=E.getElement(xt,ge,Ce,He,s),ae),Ke=J.firstChild,w&&(Ze=J.firstChild,Ht(J=E.getElement(Mt,E.getParentTagName(s._selection.editEndNode,s),Ee(E.getObjectEditElementCss(s._selection.editEndNode,s)),E.getObjectEditElementAttributes(s._selection.editEndNode,s),s),ae),v=!0),Le[A].remove()):w||Le[A]!==s._selection.editEndNode?(Ht(J=v?E.getElement(Le[A].textContent,E.getParentTagName(Le[A],s),Ee(E.getObjectEditElementCss(Le[A],s)),E.getObjectEditElementAttributes(Le[A],s),s):E.getElement(Le[A].textContent,ge,Ce,He,s),ae),Le[A].remove()):(Ht(J=E.getElement(Rt,ge,Ce,He,s),ae),Ze=J.firstChild,Ht(J=E.getElement(Mt,E.getParentTagName(s._selection.editEndNode,s),Ee(E.getObjectEditElementCss(s._selection.editEndNode,s)),E.getObjectEditElementAttributes(s._selection.editEndNode,s),s),ae),v=!0,Le[A].remove())):j.consts.EMPTY_ABLE_TAG.indexOf(Le[A].tagName)>=0?(Ht(J=Le[A].cloneNode(),ae),Le[A].remove()):j.consts.UNIT_TAG.indexOf(Le[A].tagName)>=0&&(ae=Le[A]);for(var M=0;M<s._selection.editDragUnitElement.length;M++)E.removeEmptyElment(s._selection.editDragUnitElement[M],s);Ke||(Ke=s._selection.editStartUnitElement),Ze?et=Ze.textContent.length:(Ze=s._selection.editEndUnitElement,et=0),E.setNewSelection(Ke,0,Ze,et)}},E.textarea_onBeforeinputSpelling=function(s){var l=a(s.target);if(l&&j.variables.canEvent&&(E.onEventDisable(j,"input"),E.isValidSelection(l))){var I="",$=E.getObjectNoteCss(l),J=E.getObjectEditElementCss(l._selection.editStartElement,l);if(l._selection.editStartUnitElement.tagName.substring(0,1)==="H"?(delete $["font-size"],delete $["letter-spacing"],delete $["line-height"]):!(l._selection.editStartElement instanceof Element&&j.consts.UNIT_TAG.indexOf(l._selection.editStartElement.tagName)<0)||J["font-size"]&&J["line-height"]||(J=$,xe(l._selection.editStartElement,{style:Ee(J)})),!Me($,J)){I=Ee($);var ae=document.createElement("span");if(ae.setAttribute("class",l._noteName+"-point"),ae.appendChild(document.createTextNode("!")),l._selection.editRange.collapsed){l._selection.editRange.insertNode(ae);try{E.modifySelectedSingleElement(l,E.getObjectNoteCss(l))}catch{}var ge=document.getElementsByClassName(l._noteName+"-point"),Ce=ge[0];I?Ce.setAttribute("style",I):Ce.removeAttribute("style");for(var He=0;He<ge.length;He++)ge[He].removeAttribute("class");E.setNewSelection(Ce.firstChild,0,Ce.firstChild,Ce.firstChild.length)}else E.modifySelectedSingleElement(l,E.getObjectNoteCss(l))}}},E.textarea_onKeydownEnter=function(s){var l=a(s);if(l&&E.isValidSelection(l)&&!(l._selection.editStartUnitElement&&l._selection.editStartUnitElement.textContent||l._selection.editStartNode instanceof Element&&j.consts.EMPTY_ABLE_TAG.indexOf(l._selection.editStartNode.tagName)>=0&&l._selection.editStartNode.tagName!=="BR")){var I,$,J=l._selection.editStartUnitElement.tagName;I=document.createElement(J),$=document.createElement("BR"),I.appendChild($),I=xe(I,E.getAttributesObjectFromElement(l._selection.editStartUnitElement)),l._selection.editStartUnitElement.replaceWith(I),E.setNewSelection(I,0,I,0)}}}(Xe,Ut),Xe.variables.lastScreenHeight=typeof window<"u"&&window.visualViewport?window.visualViewport.height:null,Xe.getNote=function(j){return Xe.vanillanoteElements[j]?Xe.vanillanoteElements[j]:null};var f,h="".concat(Xe.variables.noteName,"_animation_styles-sheet");if(!document.getElementById(h)){var k=`
|
|
@@ -202,4 +202,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
202
202
|
--hison-l-font-size: ${t.fontSizeL};
|
|
203
203
|
--hison-xl-font-size: ${t.fontSizeXL};
|
|
204
204
|
}
|
|
205
|
-
`.trim(),o="hisonvue-css-variables";let r=document.getElementById(o);r&&r.remove(),r=document.createElement("style"),r.id=o,r.textContent=n,document.head.appendChild(r)},Xp=(t,e)=>{Jd(t,e),t.setMaxFilesetSize=o=>{te.componentConfig.filesetSize=o},t.setMaxFilesetTotalSize=o=>{te.componentConfig.filesetTotalSize=o},t.getMaxFilesetSize=()=>te.componentConfig.filesetSize,t.getMaxFilesetTotalSize=()=>te.componentConfig.filesetTotalSize,t.cssEvent={setButtonOnBefoerFocus(o){te.event.cssEvent.button_onBeforeFocus=o},setButtonOnAfterFocus(o){te.event.cssEvent.button_onAfterFocus=o},setButtonOnBefoerBlur(o){te.event.cssEvent.button_onBeforeBlur=o},setButtonOnAfterBlur(o){te.event.cssEvent.button_onAfterBlur=o},setButtonOnBefoerClick(o){te.event.cssEvent.button_onBeforeClick=o},setButtonOnAfterClick(o){te.event.cssEvent.button_onAfterClick=o},setButtonOnBeforeMouseover(o){te.event.cssEvent.button_onBeforeMouseover=o},setButtonOnAfterMouseover(o){te.event.cssEvent.button_onAfterMouseover=o},setButtonOnBeforeMouseout(o){te.event.cssEvent.button_onBeforeMouseout=o},setButtonOnAfterMouseout(o){te.event.cssEvent.button_onAfterMouseout=o},setButtonOnBeforeTouchstart(o){te.event.cssEvent.button_onBeforeTouchstart=o},setButtonOnAfterTouchstart(o){te.event.cssEvent.button_onAfterTouchstart=o},setButtonOnBeforeTouchend(o){te.event.cssEvent.button_onBeforeTouchend=o},setButtonOnAfterTouchend(o){te.event.cssEvent.button_onAfterTouchend=o},setInputOnBefoerFocus(o){te.event.cssEvent.input_onBeforeFocus=o},setInputOnAfterFocus(o){te.event.cssEvent.input_onAfterFocus=o},setInputOnBefoerBlur(o){te.event.cssEvent.input_onBeforeBlur=o},setInputOnAfterBlur(o){te.event.cssEvent.input_onAfterBlur=o},setInputOnBeforeMouseover(o){te.event.cssEvent.input_onBeforeMouseover=o},setInputOnAfterMouseover(o){te.event.cssEvent.input_onAfterMouseover=o},setInputOnBeforeMouseout(o){te.event.cssEvent.input_onBeforeMouseout=o},setInputOnAfterMouseout(o){te.event.cssEvent.input_onAfterMouseout=o},setInputOnBeforeTouchstart(o){te.event.cssEvent.input_onBeforeTouchstart=o},setInputOnAfterTouchstart(o){te.event.cssEvent.input_onAfterTouchstart=o},setInputOnBeforeTouchend(o){te.event.cssEvent.input_onBeforeTouchend=o},setInputOnAfterTouchend(o){te.event.cssEvent.input_onAfterTouchend=o}};const n=()=>{typeof window<"u"&&(bd(),bu())};t.style={setSize(o){te.componentStyle.size=o,n()},setFilledColor(o){te.componentStyle.filledColor=o,n()},setEmptyColor(o){te.componentStyle.emptyColor=o,n()},setFilledTextColor(o){te.componentStyle.filledTextColor=o,n()},setEmptyTextColor(o){te.componentStyle.emptyTextColor=o,n()},setPrimaryColor(o){te.componentStyle.primaryColor=o,n()},setMutedColor(o){te.componentStyle.mutedColor=o,n()},setInfoColor(o){te.componentStyle.infoColor=o,n()},setSuccessColor(o){te.componentStyle.successColor=o,n()},setDangerColor(o){te.componentStyle.dangerColor=o,n()},setWarningColor(o){te.componentStyle.warningColor=o,n()},setCustom1Color(o){te.componentStyle.custom1Color=o,n()},setCustom2Color(o){te.componentStyle.custom2Color=o,n()},setCustom3Color(o){te.componentStyle.custom3Color=o,n()},setCustom4Color(o){te.componentStyle.custom4Color=o,n()},setCustom5Color(o){te.componentStyle.custom5Color=o,n()},setInvertColor(o){te.componentStyle.invertColor=o,n()},getDeviceType(){if(typeof window>"u")return"pc";const o=window.innerWidth;return o<768?"mb":o<1200?"tb":o<1980?"pc":"wd"},getFilledColor(){return te.componentStyle.filledColor},getEmptyColor(){return te.componentStyle.emptyColor},getFilledTextColor(){return te.componentStyle.filledTextColor},getEmptyTextColor(){return te.componentStyle.emptyTextColor},getPrimaryColor(){return te.componentStyle.primaryColor},getPrimaryButtonColor(){return te.componentStyle.componentColor.primary.buttonColor},getPrimaryBorderColor(){return te.componentStyle.componentColor.primary.borderColor},getPrimaryShadowColor(){return te.componentStyle.componentColor.primary.shadowColor},getPrimaryHoverColor(){return te.componentStyle.componentColor.primary.hoverColor},getPrimaryActiveColor(){return te.componentStyle.componentColor.primary.activeColor},getPrimaryRowHoverColor(){return te.componentStyle.componentColor.primary.rowHoverColor},getPrimaryStripeColor(){return te.componentStyle.componentColor.primary.stripeColor},getMutedColor(){return te.componentStyle.mutedColor},getMutedButtonColor(){return te.componentStyle.componentColor.muted.buttonColor},getMutedBorderColor(){return te.componentStyle.componentColor.muted.borderColor},getMutedShadowColor(){return te.componentStyle.componentColor.muted.shadowColor},getMutedHoverColor(){return te.componentStyle.componentColor.muted.hoverColor},getMutedActiveColor(){return te.componentStyle.componentColor.muted.activeColor},getMutedRowHoverColor(){return te.componentStyle.componentColor.muted.rowHoverColor},getMutedStripeColor(){return te.componentStyle.componentColor.muted.stripeColor},getInfoColor(){return te.componentStyle.infoColor},getInfoButtonColor(){return te.componentStyle.componentColor.info.buttonColor},getInfoBorderColor(){return te.componentStyle.componentColor.info.borderColor},getInfoShadowColor(){return te.componentStyle.componentColor.info.shadowColor},getInfoHoverColor(){return te.componentStyle.componentColor.info.hoverColor},getInfoActiveColor(){return te.componentStyle.componentColor.info.activeColor},getInfoRowHoverColor(){return te.componentStyle.componentColor.info.rowHoverColor},getInfoStripeColor(){return te.componentStyle.componentColor.info.stripeColor},getSuccessColor(){return te.componentStyle.successColor},getSuccessButtonColor(){return te.componentStyle.componentColor.success.buttonColor},getSuccessBorderColor(){return te.componentStyle.componentColor.success.borderColor},getSuccessShadowColor(){return te.componentStyle.componentColor.success.shadowColor},getSuccessHoverColor(){return te.componentStyle.componentColor.success.hoverColor},getSuccessActiveColor(){return te.componentStyle.componentColor.success.activeColor},getSuccessRowHoverColor(){return te.componentStyle.componentColor.success.rowHoverColor},getSuccessStripeColor(){return te.componentStyle.componentColor.success.stripeColor},getDangerColor(){return te.componentStyle.dangerColor},getDangerButtonColor(){return te.componentStyle.componentColor.danger.buttonColor},getDangerBorderColor(){return te.componentStyle.componentColor.danger.borderColor},getDangerShadowColor(){return te.componentStyle.componentColor.danger.shadowColor},getDangerHoverColor(){return te.componentStyle.componentColor.danger.hoverColor},getDangerActiveColor(){return te.componentStyle.componentColor.danger.activeColor},getDangerRowHoverColor(){return te.componentStyle.componentColor.danger.rowHoverColor},getDangerStripeColor(){return te.componentStyle.componentColor.danger.stripeColor},getWarningColor(){return te.componentStyle.warningColor},getWarningButtonColor(){return te.componentStyle.componentColor.warning.buttonColor},getWarningBorderColor(){return te.componentStyle.componentColor.warning.borderColor},getWarningShadowColor(){return te.componentStyle.componentColor.warning.shadowColor},getWarningHoverColor(){return te.componentStyle.componentColor.warning.hoverColor},getWarningActiveColor(){return te.componentStyle.componentColor.warning.activeColor},getWarningRowHoverColor(){return te.componentStyle.componentColor.warning.rowHoverColor},getWarningStripeColor(){return te.componentStyle.componentColor.warning.stripeColor},getCustom1Color(){return te.componentStyle.custom1Color},getCustom1ButtonColor(){return te.componentStyle.componentColor.custom1.buttonColor},getCustom1BorderColor(){return te.componentStyle.componentColor.custom1.borderColor},getCustom1ShadowColor(){return te.componentStyle.componentColor.custom1.shadowColor},getCustom1HoverColor(){return te.componentStyle.componentColor.custom1.hoverColor},getCustom1ActiveColor(){return te.componentStyle.componentColor.custom1.activeColor},getCustom1RowHoverColor(){return te.componentStyle.componentColor.custom1.rowHoverColor},getCustom1StripeColor(){return te.componentStyle.componentColor.custom1.stripeColor},getCustom2Color(){return te.componentStyle.custom2Color},getCustom2ButtonColor(){return te.componentStyle.componentColor.custom2.buttonColor},getCustom2BorderColor(){return te.componentStyle.componentColor.custom2.borderColor},getCustom2ShadowColor(){return te.componentStyle.componentColor.custom2.shadowColor},getCustom2HoverColor(){return te.componentStyle.componentColor.custom2.hoverColor},getCustom2ActiveColor(){return te.componentStyle.componentColor.custom2.activeColor},getCustom2RowHoverColor(){return te.componentStyle.componentColor.custom2.rowHoverColor},getCustom2StripeColor(){return te.componentStyle.componentColor.custom2.stripeColor},getCustom3Color(){return te.componentStyle.custom3Color},getCustom3ButtonColor(){return te.componentStyle.componentColor.custom3.buttonColor},getCustom3BorderColor(){return te.componentStyle.componentColor.custom3.borderColor},getCustom3ShadowColor(){return te.componentStyle.componentColor.custom3.shadowColor},getCustom3HoverColor(){return te.componentStyle.componentColor.custom3.hoverColor},getCustom3ActiveColor(){return te.componentStyle.componentColor.custom3.activeColor},getCustom3RowHoverColor(){return te.componentStyle.componentColor.custom3.rowHoverColor},getCustom3StripeColor(){return te.componentStyle.componentColor.custom3.stripeColor},getCustom4Color(){return te.componentStyle.custom4Color},getCustom4ButtonColor(){return te.componentStyle.componentColor.custom4.buttonColor},getCustom4BorderColor(){return te.componentStyle.componentColor.custom4.borderColor},getCustom4ShadowColor(){return te.componentStyle.componentColor.custom4.shadowColor},getCustom4HoverColor(){return te.componentStyle.componentColor.custom4.hoverColor},getCustom4ActiveColor(){return te.componentStyle.componentColor.custom4.activeColor},getCustom4RowHoverColor(){return te.componentStyle.componentColor.custom4.rowHoverColor},getCustom4StripeColor(){return te.componentStyle.componentColor.custom4.stripeColor},getCustom5Color(){return te.componentStyle.custom5Color},getCustom5ButtonColor(){return te.componentStyle.componentColor.custom5.buttonColor},getCustom5BorderColor(){return te.componentStyle.componentColor.custom5.borderColor},getCustom5ShadowColor(){return te.componentStyle.componentColor.custom5.shadowColor},getCustom5HoverColor(){return te.componentStyle.componentColor.custom5.hoverColor},getCustom5ActiveColor(){return te.componentStyle.componentColor.custom5.activeColor},getCustom5RowHoverColor(){return te.componentStyle.componentColor.custom5.rowHoverColor},getCustom5StripeColor(){return te.componentStyle.componentColor.custom5.stripeColor},isInvertColor(){return te.componentStyle.invertColor}},t.component={},t.component.getAccordion=o=>te.component.accordionList[o],t.component.getBaggie=o=>te.component.baggieList[o],t.component.getBanner=o=>te.component.bannerList[o],t.component.getButton=o=>te.component.buttonList[o],t.component.getCalendar=o=>te.component.calendarList[o],t.component.getCaption=o=>te.component.captionList[o],t.component.getChart=o=>te.component.chartList[o],t.component.getDrawer=o=>te.component.drawerList[o],t.component.getDropdown=o=>te.component.dropdownList[o],t.component.getGap=o=>te.component.gapList[o],t.component.getFileset=o=>te.component.filesetList[o],t.component.getGrid=o=>te.grid.getGrid(o),t.component.getImagebox=o=>te.component.imageboxList[o],t.component.getInput=o=>te.component.inputList[o],t.component.getInputGroup=o=>te.component.inputGroupList[o],t.component.getLabel=o=>te.component.labelList[o],t.component.getLayout=o=>te.component.layoutList[o],t.component.getList=o=>te.component.listList[o],t.component.getModal=o=>te.component.modalList[o],t.component.getNote=o=>te.note.getNote(o),t.component.getPagination=o=>te.component.paginationList[o],t.component.getParagraph=o=>te.component.paragraphList[o],t.component.getPopup=o=>te.component.popupList[o],t.component.getSpinner=o=>te.component.spinnerList[o],t.component.getTable=o=>te.component.tableList[o]},Cd=Bt(()=>Promise.resolve().then(()=>require("./HAccordion-a5UZil7t.js")),"HAccordion"),xd=Bt(()=>Promise.resolve().then(()=>require("./HBaggie-CD26mD1p.js")),"HBaggie"),Md=Bt(()=>Promise.resolve().then(()=>require("./HBanner-DEcDBbAa.js")),"HBanner"),Sd=Bt(()=>Promise.resolve().then(()=>require("./HButton-zN47uq3g.js")),"HButton"),Id=Bt(()=>Promise.resolve().then(()=>require("./HCalendar-PxP8M1kE.js")),"HCalendar"),kd=Bt(()=>Promise.resolve().then(()=>require("./HCaption-DxOZcWcP.js")),"HCaption"),Ed=Bt(()=>Promise.resolve().then(()=>require("./HChart-D217Yxxq.js")),"HChart"),wd=Bt(()=>Promise.resolve().then(()=>require("./HDrawer-CtMgceI2.js")),"HDrawer"),Ad=Bt(()=>Promise.resolve().then(()=>require("./HDropdown-BhJOYbaN.js")),"HDropdown"),Td=Bt(()=>Promise.resolve().then(()=>require("./HFileset-C6dqnLa8.js")),"HFileset"),Bd=Bt(()=>Promise.resolve().then(()=>require("./HGap-BgzODoWp.js")),"HGap"),Ld=Bt(()=>Promise.resolve().then(()=>require("./HGrid-CAU32_zq.js")),"HGrid"),Nd=Bt(()=>Promise.resolve().then(()=>require("./HImagebox-XTSKnoBD.js")),"HImagebox"),Rd=Bt(()=>Promise.resolve().then(()=>require("./HInput-DxhtO9q3.js")),"HInput"),Hd=Bt(()=>Promise.resolve().then(()=>require("./HInputGroup-DrjZO_7J.js")),"HInputGroup"),Fd=Bt(()=>Promise.resolve().then(()=>require("./HLabel-uSniKpDF.js")),"HLabel"),Od=Bt(()=>Promise.resolve().then(()=>require("./HLayout-wEq-lzHN.js")),"HLayout"),Vd=Bt(()=>Promise.resolve().then(()=>require("./HList-DcV0Ssb3.js")),"HList"),Dd=Bt(()=>Promise.resolve().then(()=>require("./HModal-BkjH2wMJ.js")),"HModal"),Pd=Bt(()=>Promise.resolve().then(()=>require("./HNote-DQr6iUu0.js")),"HNote"),zd=Bt(()=>Promise.resolve().then(()=>require("./HPagination-HDTloKdH.js")),"HPagination"),Ud=Bt(()=>Promise.resolve().then(()=>require("./HParagraph-Bg2lZxZR.js")),"HParagraph"),Gd=Bt(()=>Promise.resolve().then(()=>require("./HPopup-3KITyE24.js")),"HPopup"),jd=Bt(()=>Promise.resolve().then(()=>require("./HSpinner-BqVl4t2n.js")),"HSpinner"),Wd=Bt(()=>Promise.resolve().then(()=>require("./HTable-DzbCLDIn.js")),"HTable"),hn=nn.createHison(),Jp={install(t,e){const n=La();e?Object.keys(n).forEach(o=>{o in e||(e[o]=n[o])}):e=La(),$p(e),Xp(hn,e),typeof window<"u"&&bd(),Kp(),t.provide("hison",hn),t.component("HAccordion",Cd),t.component("HBaggie",xd),t.component("HBanner",Md),t.component("HButton",Sd),t.component("HCalendar",Id),t.component("HCaption",kd),t.component("HChart",Ed),t.component("HDrawer",wd),t.component("HDropdown",Ad),t.component("HFileset",Td),t.component("HGap",Bd),t.component("HGrid",Ld),t.component("HImagebox",Nd),t.component("HInput",Rd),t.component("HInputGroup",Hd),t.component("HLabel",Fd),t.component("HLayout",Od),t.component("HList",Vd),t.component("HModal",Dd),t.component("HNote",Pd),t.component("HPagination",zd),t.component("HParagraph",Ud),t.component("HPopup",Gd),t.component("HSpinner",jd),t.component("HTable",Wd)}};exports.BACKGROUND_TYPE_VALUES=Eu;exports.BACK_IMAGE_ALIGN_VALUES=Su;exports.BACK_IMAGE_STYLE_VALUES=ku;exports.BACK_IMAGE_VERTICAL_ALIGN_VALUES=Iu;exports.BackImageAlign=Ks;exports.BackImageRepeat=Js;exports.BackImageVerticalAlign=Xs;exports.BackgroundType=Zs;exports.COLOR_SET_VALUES=ju;exports.CSS_VAR_RE=uc;exports.Chart=pn;exports.Color=Ys;exports.DATA_STATUS_VALUES=qu;exports.DROPDOWN_TRIGGER_VALUES=Ou;exports.DataStatus=fc;exports.DayOfWeek=hc;exports.DropdownTrigger=sc;exports.EDIT_MODE_VALUES=Fu;exports.EditMode=lc;exports.GRID_ALIGN_VALUES=Uu;exports.GRID_DATE_FORMAT_VALUES=Pu;exports.GRID_MONTH_FORMAT_VALUES=zu;exports.GRID_VERTICAL_ALIGN_VALUES=Gu;exports.HAccordionClientOnly=Cd;exports.HBaggieClientOnly=xd;exports.HBannerClientOnly=Md;exports.HButtonClientOnly=Sd;exports.HCalendarClientOnly=Id;exports.HCalendarTimeFormat=gc;exports.HCalendarView=mc;exports.HCaptionClientOnly=kd;exports.HChartClientOnly=Ed;exports.HDrawerClientOnly=wd;exports.HDropdownClientOnly=Ad;exports.HEX_COLOR_RE=dc;exports.HFilesetClientOnly=Td;exports.HGapClientOnly=Bd;exports.HGapLine=rc;exports.HGapLineStyle=ic;exports.HGridClientOnly=Ld;exports.HImageboxClientOnly=Nd;exports.HInputClientOnly=Rd;exports.HInputGroupClientOnly=Hd;exports.HLabelClientOnly=Fd;exports.HLayoutClientOnly=Od;exports.HListClientOnly=Vd;exports.HModalClientOnly=Dd;exports.HNoteClientOnly=Pd;exports.HPaginationClientOnly=zd;exports.HParagraphClientOnly=Ud;exports.HPopupClientOnly=Gd;exports.HSpinnerClientOnly=jd;exports.HTableClientOnly=Wd;exports.H_CALENDAR_TIME_FORMAT_VALUES=Yu;exports.H_CALENDAR_VIEW_VALUES=$u;exports.H_GAP_LINE_STYLE_VALUES=Ru;exports.H_GAP_RULE_VALUES=Nu;exports.Hisonjs_bundleExports=nn;exports.INPUT_TYPE_VALUES=Hu;exports.InputType=ac;exports.MODAL_PLACEMENT_VALUES=wu;exports.ModalPlacement=Qs;exports.NOTE_MODE_BY_DEVICE_VALUES=Ku;exports.SCREEN_POSITION_VALUES=Au;exports.SELECTION_POLICY_VALUES=Du;exports.SPINNER_TYPE_VALUES=Tu;exports.ScreenPosition=ec;exports.Size=Pn;exports.SpinnerType=tc;exports.TEXT_ALIGN_VALUES=Vu;exports.TOOL_POSITION_VALUES=Xu;exports.TextAlign=cc;exports.VERTICAL_ALIGN_VALUES=Bu;exports.Vanillagrid2_bundleExports=Na;exports.Vanillanote2_bundleExports=Ra;exports.VerticalAlign=nc;exports.WHITE_SPACE_VALUES=Lu;exports.WhiteSpace=oc;exports.addComponentNameToClass=du;exports.applyOpacityToRgba=yu;exports.extractPrefixedClasses=uu;exports.extractResponsiveClasses=cu;exports.getDefaultHisonConfig=La;exports.getDigitsOnly=iu;exports.getHexCodeFromColorText=mu;exports.getIndexSpecificClassNameFromClassList=js;exports.getInvertColor=Kt;exports.getMaskValue=ru;exports.getRGBAFromColorText=gu;exports.getSpecificClassValueFromClassList=su;exports.getUUID=tu;exports.hison=hn;exports.hisonCloser=te;exports.hisonvue=Jp;exports.isCssColorLike=Wu;exports.isNullOrUndefined=eu;exports.normalizeToRgba=$t;exports.registerReloadable=_u;exports.reloadHisonComponent=Cu;exports.toClassString=Ws;exports.unregisterReloadable=vu;exports.useDevice=Yp;
|
|
205
|
+
`.trim(),o="hisonvue-css-variables";let r=document.getElementById(o);r&&r.remove(),r=document.createElement("style"),r.id=o,r.textContent=n,document.head.appendChild(r)},Xp=(t,e)=>{Jd(t,e),t.setMaxFilesetSize=o=>{te.componentConfig.filesetSize=o},t.setMaxFilesetTotalSize=o=>{te.componentConfig.filesetTotalSize=o},t.getMaxFilesetSize=()=>te.componentConfig.filesetSize,t.getMaxFilesetTotalSize=()=>te.componentConfig.filesetTotalSize,t.cssEvent={setButtonOnBefoerFocus(o){te.event.cssEvent.button_onBeforeFocus=o},setButtonOnAfterFocus(o){te.event.cssEvent.button_onAfterFocus=o},setButtonOnBefoerBlur(o){te.event.cssEvent.button_onBeforeBlur=o},setButtonOnAfterBlur(o){te.event.cssEvent.button_onAfterBlur=o},setButtonOnBefoerClick(o){te.event.cssEvent.button_onBeforeClick=o},setButtonOnAfterClick(o){te.event.cssEvent.button_onAfterClick=o},setButtonOnBeforeMouseover(o){te.event.cssEvent.button_onBeforeMouseover=o},setButtonOnAfterMouseover(o){te.event.cssEvent.button_onAfterMouseover=o},setButtonOnBeforeMouseout(o){te.event.cssEvent.button_onBeforeMouseout=o},setButtonOnAfterMouseout(o){te.event.cssEvent.button_onAfterMouseout=o},setButtonOnBeforeTouchstart(o){te.event.cssEvent.button_onBeforeTouchstart=o},setButtonOnAfterTouchstart(o){te.event.cssEvent.button_onAfterTouchstart=o},setButtonOnBeforeTouchend(o){te.event.cssEvent.button_onBeforeTouchend=o},setButtonOnAfterTouchend(o){te.event.cssEvent.button_onAfterTouchend=o},setInputOnBefoerFocus(o){te.event.cssEvent.input_onBeforeFocus=o},setInputOnAfterFocus(o){te.event.cssEvent.input_onAfterFocus=o},setInputOnBefoerBlur(o){te.event.cssEvent.input_onBeforeBlur=o},setInputOnAfterBlur(o){te.event.cssEvent.input_onAfterBlur=o},setInputOnBeforeMouseover(o){te.event.cssEvent.input_onBeforeMouseover=o},setInputOnAfterMouseover(o){te.event.cssEvent.input_onAfterMouseover=o},setInputOnBeforeMouseout(o){te.event.cssEvent.input_onBeforeMouseout=o},setInputOnAfterMouseout(o){te.event.cssEvent.input_onAfterMouseout=o},setInputOnBeforeTouchstart(o){te.event.cssEvent.input_onBeforeTouchstart=o},setInputOnAfterTouchstart(o){te.event.cssEvent.input_onAfterTouchstart=o},setInputOnBeforeTouchend(o){te.event.cssEvent.input_onBeforeTouchend=o},setInputOnAfterTouchend(o){te.event.cssEvent.input_onAfterTouchend=o}};const n=()=>{typeof window<"u"&&(bd(),bu())};t.style={setSize(o){te.componentStyle.size=o,n()},setFilledColor(o){te.componentStyle.filledColor=o,n()},setEmptyColor(o){te.componentStyle.emptyColor=o,n()},setFilledTextColor(o){te.componentStyle.filledTextColor=o,n()},setEmptyTextColor(o){te.componentStyle.emptyTextColor=o,n()},setPrimaryColor(o){te.componentStyle.primaryColor=o,n()},setMutedColor(o){te.componentStyle.mutedColor=o,n()},setInfoColor(o){te.componentStyle.infoColor=o,n()},setSuccessColor(o){te.componentStyle.successColor=o,n()},setDangerColor(o){te.componentStyle.dangerColor=o,n()},setWarningColor(o){te.componentStyle.warningColor=o,n()},setCustom1Color(o){te.componentStyle.custom1Color=o,n()},setCustom2Color(o){te.componentStyle.custom2Color=o,n()},setCustom3Color(o){te.componentStyle.custom3Color=o,n()},setCustom4Color(o){te.componentStyle.custom4Color=o,n()},setCustom5Color(o){te.componentStyle.custom5Color=o,n()},setInvertColor(o){te.componentStyle.invertColor=o,n()},getDeviceType(){if(typeof window>"u")return"pc";const o=window.innerWidth;return o<768?"mb":o<1200?"tb":o<1980?"pc":"wd"},getFilledColor(){return te.componentStyle.filledColor},getEmptyColor(){return te.componentStyle.emptyColor},getFilledTextColor(){return te.componentStyle.filledTextColor},getEmptyTextColor(){return te.componentStyle.emptyTextColor},getPrimaryColor(){return te.componentStyle.primaryColor},getPrimaryButtonColor(){return te.componentStyle.componentColor.primary.buttonColor},getPrimaryBorderColor(){return te.componentStyle.componentColor.primary.borderColor},getPrimaryShadowColor(){return te.componentStyle.componentColor.primary.shadowColor},getPrimaryHoverColor(){return te.componentStyle.componentColor.primary.hoverColor},getPrimaryActiveColor(){return te.componentStyle.componentColor.primary.activeColor},getPrimaryRowHoverColor(){return te.componentStyle.componentColor.primary.rowHoverColor},getPrimaryStripeColor(){return te.componentStyle.componentColor.primary.stripeColor},getMutedColor(){return te.componentStyle.mutedColor},getMutedButtonColor(){return te.componentStyle.componentColor.muted.buttonColor},getMutedBorderColor(){return te.componentStyle.componentColor.muted.borderColor},getMutedShadowColor(){return te.componentStyle.componentColor.muted.shadowColor},getMutedHoverColor(){return te.componentStyle.componentColor.muted.hoverColor},getMutedActiveColor(){return te.componentStyle.componentColor.muted.activeColor},getMutedRowHoverColor(){return te.componentStyle.componentColor.muted.rowHoverColor},getMutedStripeColor(){return te.componentStyle.componentColor.muted.stripeColor},getInfoColor(){return te.componentStyle.infoColor},getInfoButtonColor(){return te.componentStyle.componentColor.info.buttonColor},getInfoBorderColor(){return te.componentStyle.componentColor.info.borderColor},getInfoShadowColor(){return te.componentStyle.componentColor.info.shadowColor},getInfoHoverColor(){return te.componentStyle.componentColor.info.hoverColor},getInfoActiveColor(){return te.componentStyle.componentColor.info.activeColor},getInfoRowHoverColor(){return te.componentStyle.componentColor.info.rowHoverColor},getInfoStripeColor(){return te.componentStyle.componentColor.info.stripeColor},getSuccessColor(){return te.componentStyle.successColor},getSuccessButtonColor(){return te.componentStyle.componentColor.success.buttonColor},getSuccessBorderColor(){return te.componentStyle.componentColor.success.borderColor},getSuccessShadowColor(){return te.componentStyle.componentColor.success.shadowColor},getSuccessHoverColor(){return te.componentStyle.componentColor.success.hoverColor},getSuccessActiveColor(){return te.componentStyle.componentColor.success.activeColor},getSuccessRowHoverColor(){return te.componentStyle.componentColor.success.rowHoverColor},getSuccessStripeColor(){return te.componentStyle.componentColor.success.stripeColor},getDangerColor(){return te.componentStyle.dangerColor},getDangerButtonColor(){return te.componentStyle.componentColor.danger.buttonColor},getDangerBorderColor(){return te.componentStyle.componentColor.danger.borderColor},getDangerShadowColor(){return te.componentStyle.componentColor.danger.shadowColor},getDangerHoverColor(){return te.componentStyle.componentColor.danger.hoverColor},getDangerActiveColor(){return te.componentStyle.componentColor.danger.activeColor},getDangerRowHoverColor(){return te.componentStyle.componentColor.danger.rowHoverColor},getDangerStripeColor(){return te.componentStyle.componentColor.danger.stripeColor},getWarningColor(){return te.componentStyle.warningColor},getWarningButtonColor(){return te.componentStyle.componentColor.warning.buttonColor},getWarningBorderColor(){return te.componentStyle.componentColor.warning.borderColor},getWarningShadowColor(){return te.componentStyle.componentColor.warning.shadowColor},getWarningHoverColor(){return te.componentStyle.componentColor.warning.hoverColor},getWarningActiveColor(){return te.componentStyle.componentColor.warning.activeColor},getWarningRowHoverColor(){return te.componentStyle.componentColor.warning.rowHoverColor},getWarningStripeColor(){return te.componentStyle.componentColor.warning.stripeColor},getCustom1Color(){return te.componentStyle.custom1Color},getCustom1ButtonColor(){return te.componentStyle.componentColor.custom1.buttonColor},getCustom1BorderColor(){return te.componentStyle.componentColor.custom1.borderColor},getCustom1ShadowColor(){return te.componentStyle.componentColor.custom1.shadowColor},getCustom1HoverColor(){return te.componentStyle.componentColor.custom1.hoverColor},getCustom1ActiveColor(){return te.componentStyle.componentColor.custom1.activeColor},getCustom1RowHoverColor(){return te.componentStyle.componentColor.custom1.rowHoverColor},getCustom1StripeColor(){return te.componentStyle.componentColor.custom1.stripeColor},getCustom2Color(){return te.componentStyle.custom2Color},getCustom2ButtonColor(){return te.componentStyle.componentColor.custom2.buttonColor},getCustom2BorderColor(){return te.componentStyle.componentColor.custom2.borderColor},getCustom2ShadowColor(){return te.componentStyle.componentColor.custom2.shadowColor},getCustom2HoverColor(){return te.componentStyle.componentColor.custom2.hoverColor},getCustom2ActiveColor(){return te.componentStyle.componentColor.custom2.activeColor},getCustom2RowHoverColor(){return te.componentStyle.componentColor.custom2.rowHoverColor},getCustom2StripeColor(){return te.componentStyle.componentColor.custom2.stripeColor},getCustom3Color(){return te.componentStyle.custom3Color},getCustom3ButtonColor(){return te.componentStyle.componentColor.custom3.buttonColor},getCustom3BorderColor(){return te.componentStyle.componentColor.custom3.borderColor},getCustom3ShadowColor(){return te.componentStyle.componentColor.custom3.shadowColor},getCustom3HoverColor(){return te.componentStyle.componentColor.custom3.hoverColor},getCustom3ActiveColor(){return te.componentStyle.componentColor.custom3.activeColor},getCustom3RowHoverColor(){return te.componentStyle.componentColor.custom3.rowHoverColor},getCustom3StripeColor(){return te.componentStyle.componentColor.custom3.stripeColor},getCustom4Color(){return te.componentStyle.custom4Color},getCustom4ButtonColor(){return te.componentStyle.componentColor.custom4.buttonColor},getCustom4BorderColor(){return te.componentStyle.componentColor.custom4.borderColor},getCustom4ShadowColor(){return te.componentStyle.componentColor.custom4.shadowColor},getCustom4HoverColor(){return te.componentStyle.componentColor.custom4.hoverColor},getCustom4ActiveColor(){return te.componentStyle.componentColor.custom4.activeColor},getCustom4RowHoverColor(){return te.componentStyle.componentColor.custom4.rowHoverColor},getCustom4StripeColor(){return te.componentStyle.componentColor.custom4.stripeColor},getCustom5Color(){return te.componentStyle.custom5Color},getCustom5ButtonColor(){return te.componentStyle.componentColor.custom5.buttonColor},getCustom5BorderColor(){return te.componentStyle.componentColor.custom5.borderColor},getCustom5ShadowColor(){return te.componentStyle.componentColor.custom5.shadowColor},getCustom5HoverColor(){return te.componentStyle.componentColor.custom5.hoverColor},getCustom5ActiveColor(){return te.componentStyle.componentColor.custom5.activeColor},getCustom5RowHoverColor(){return te.componentStyle.componentColor.custom5.rowHoverColor},getCustom5StripeColor(){return te.componentStyle.componentColor.custom5.stripeColor},isInvertColor(){return te.componentStyle.invertColor}},t.component={},t.component.getAccordion=o=>te.component.accordionList[o],t.component.getBaggie=o=>te.component.baggieList[o],t.component.getBanner=o=>te.component.bannerList[o],t.component.getButton=o=>te.component.buttonList[o],t.component.getCalendar=o=>te.component.calendarList[o],t.component.getCaption=o=>te.component.captionList[o],t.component.getChart=o=>te.component.chartList[o],t.component.getDrawer=o=>te.component.drawerList[o],t.component.getDropdown=o=>te.component.dropdownList[o],t.component.getGap=o=>te.component.gapList[o],t.component.getFileset=o=>te.component.filesetList[o],t.component.getGrid=o=>te.grid.getGrid(o),t.component.getImagebox=o=>te.component.imageboxList[o],t.component.getInput=o=>te.component.inputList[o],t.component.getInputGroup=o=>te.component.inputGroupList[o],t.component.getLabel=o=>te.component.labelList[o],t.component.getLayout=o=>te.component.layoutList[o],t.component.getList=o=>te.component.listList[o],t.component.getModal=o=>te.component.modalList[o],t.component.getNote=o=>te.note.getNote(o),t.component.getPagination=o=>te.component.paginationList[o],t.component.getParagraph=o=>te.component.paragraphList[o],t.component.getPopup=o=>te.component.popupList[o],t.component.getSpinner=o=>te.component.spinnerList[o],t.component.getTable=o=>te.component.tableList[o]},Cd=Bt(()=>Promise.resolve().then(()=>require("./HAccordion-D4VuY7dP.js")),"HAccordion"),xd=Bt(()=>Promise.resolve().then(()=>require("./HBaggie-B2-hUbeO.js")),"HBaggie"),Md=Bt(()=>Promise.resolve().then(()=>require("./HBanner-Bbp_22he.js")),"HBanner"),Sd=Bt(()=>Promise.resolve().then(()=>require("./HButton-CnI66WaY.js")),"HButton"),Id=Bt(()=>Promise.resolve().then(()=>require("./HCalendar-Birc716P.js")),"HCalendar"),kd=Bt(()=>Promise.resolve().then(()=>require("./HCaption-o7zHNPFi.js")),"HCaption"),Ed=Bt(()=>Promise.resolve().then(()=>require("./HChart-CRNhurrL.js")),"HChart"),wd=Bt(()=>Promise.resolve().then(()=>require("./HDrawer-C4C1soyr.js")),"HDrawer"),Ad=Bt(()=>Promise.resolve().then(()=>require("./HDropdown-CZOjJzGI.js")),"HDropdown"),Td=Bt(()=>Promise.resolve().then(()=>require("./HFileset-BWdpsZxK.js")),"HFileset"),Bd=Bt(()=>Promise.resolve().then(()=>require("./HGap-DzddYH3m.js")),"HGap"),Ld=Bt(()=>Promise.resolve().then(()=>require("./HGrid-Bt_iy9Kt.js")),"HGrid"),Nd=Bt(()=>Promise.resolve().then(()=>require("./HImagebox-BSjnoCEL.js")),"HImagebox"),Rd=Bt(()=>Promise.resolve().then(()=>require("./HInput-BPqc5Yki.js")),"HInput"),Hd=Bt(()=>Promise.resolve().then(()=>require("./HInputGroup-CmYq67bE.js")),"HInputGroup"),Fd=Bt(()=>Promise.resolve().then(()=>require("./HLabel-BOD2RCZp.js")),"HLabel"),Od=Bt(()=>Promise.resolve().then(()=>require("./HLayout-ddBZkvt_.js")),"HLayout"),Vd=Bt(()=>Promise.resolve().then(()=>require("./HList-CAsiBzwq.js")),"HList"),Dd=Bt(()=>Promise.resolve().then(()=>require("./HModal-CK9wkc73.js")),"HModal"),Pd=Bt(()=>Promise.resolve().then(()=>require("./HNote-DAiqR0NK.js")),"HNote"),zd=Bt(()=>Promise.resolve().then(()=>require("./HPagination-D2EbHt09.js")),"HPagination"),Ud=Bt(()=>Promise.resolve().then(()=>require("./HParagraph-CBsf7TXw.js")),"HParagraph"),Gd=Bt(()=>Promise.resolve().then(()=>require("./HPopup-DF9ffRS8.js")),"HPopup"),jd=Bt(()=>Promise.resolve().then(()=>require("./HSpinner-CUBK5bDY.js")),"HSpinner"),Wd=Bt(()=>Promise.resolve().then(()=>require("./HTable-Y-8ga-98.js")),"HTable"),hn=nn.createHison(),Jp={install(t,e){const n=La();e?Object.keys(n).forEach(o=>{o in e||(e[o]=n[o])}):e=La(),$p(e),Xp(hn,e),typeof window<"u"&&bd(),Kp(),t.provide("hison",hn),t.component("HAccordion",Cd),t.component("HBaggie",xd),t.component("HBanner",Md),t.component("HButton",Sd),t.component("HCalendar",Id),t.component("HCaption",kd),t.component("HChart",Ed),t.component("HDrawer",wd),t.component("HDropdown",Ad),t.component("HFileset",Td),t.component("HGap",Bd),t.component("HGrid",Ld),t.component("HImagebox",Nd),t.component("HInput",Rd),t.component("HInputGroup",Hd),t.component("HLabel",Fd),t.component("HLayout",Od),t.component("HList",Vd),t.component("HModal",Dd),t.component("HNote",Pd),t.component("HPagination",zd),t.component("HParagraph",Ud),t.component("HPopup",Gd),t.component("HSpinner",jd),t.component("HTable",Wd)}};exports.BACKGROUND_TYPE_VALUES=Eu;exports.BACK_IMAGE_ALIGN_VALUES=Su;exports.BACK_IMAGE_STYLE_VALUES=ku;exports.BACK_IMAGE_VERTICAL_ALIGN_VALUES=Iu;exports.BackImageAlign=Ks;exports.BackImageRepeat=Js;exports.BackImageVerticalAlign=Xs;exports.BackgroundType=Zs;exports.COLOR_SET_VALUES=ju;exports.CSS_VAR_RE=uc;exports.Chart=pn;exports.Color=Ys;exports.DATA_STATUS_VALUES=qu;exports.DROPDOWN_TRIGGER_VALUES=Ou;exports.DataStatus=fc;exports.DayOfWeek=hc;exports.DropdownTrigger=sc;exports.EDIT_MODE_VALUES=Fu;exports.EditMode=lc;exports.GRID_ALIGN_VALUES=Uu;exports.GRID_DATE_FORMAT_VALUES=Pu;exports.GRID_MONTH_FORMAT_VALUES=zu;exports.GRID_VERTICAL_ALIGN_VALUES=Gu;exports.HAccordionClientOnly=Cd;exports.HBaggieClientOnly=xd;exports.HBannerClientOnly=Md;exports.HButtonClientOnly=Sd;exports.HCalendarClientOnly=Id;exports.HCalendarTimeFormat=gc;exports.HCalendarView=mc;exports.HCaptionClientOnly=kd;exports.HChartClientOnly=Ed;exports.HDrawerClientOnly=wd;exports.HDropdownClientOnly=Ad;exports.HEX_COLOR_RE=dc;exports.HFilesetClientOnly=Td;exports.HGapClientOnly=Bd;exports.HGapLine=rc;exports.HGapLineStyle=ic;exports.HGridClientOnly=Ld;exports.HImageboxClientOnly=Nd;exports.HInputClientOnly=Rd;exports.HInputGroupClientOnly=Hd;exports.HLabelClientOnly=Fd;exports.HLayoutClientOnly=Od;exports.HListClientOnly=Vd;exports.HModalClientOnly=Dd;exports.HNoteClientOnly=Pd;exports.HPaginationClientOnly=zd;exports.HParagraphClientOnly=Ud;exports.HPopupClientOnly=Gd;exports.HSpinnerClientOnly=jd;exports.HTableClientOnly=Wd;exports.H_CALENDAR_TIME_FORMAT_VALUES=Yu;exports.H_CALENDAR_VIEW_VALUES=$u;exports.H_GAP_LINE_STYLE_VALUES=Ru;exports.H_GAP_RULE_VALUES=Nu;exports.Hisonjs_bundleExports=nn;exports.INPUT_TYPE_VALUES=Hu;exports.InputType=ac;exports.MODAL_PLACEMENT_VALUES=wu;exports.ModalPlacement=Qs;exports.NOTE_MODE_BY_DEVICE_VALUES=Ku;exports.SCREEN_POSITION_VALUES=Au;exports.SELECTION_POLICY_VALUES=Du;exports.SPINNER_TYPE_VALUES=Tu;exports.ScreenPosition=ec;exports.Size=Pn;exports.SpinnerType=tc;exports.TEXT_ALIGN_VALUES=Vu;exports.TOOL_POSITION_VALUES=Xu;exports.TextAlign=cc;exports.VERTICAL_ALIGN_VALUES=Bu;exports.Vanillagrid2_bundleExports=Na;exports.Vanillanote2_bundleExports=Ra;exports.VerticalAlign=nc;exports.WHITE_SPACE_VALUES=Lu;exports.WhiteSpace=oc;exports.addComponentNameToClass=du;exports.applyOpacityToRgba=yu;exports.extractPrefixedClasses=uu;exports.extractResponsiveClasses=cu;exports.getDefaultHisonConfig=La;exports.getDigitsOnly=iu;exports.getHexCodeFromColorText=mu;exports.getIndexSpecificClassNameFromClassList=js;exports.getInvertColor=Kt;exports.getMaskValue=ru;exports.getRGBAFromColorText=gu;exports.getSpecificClassValueFromClassList=su;exports.getUUID=tu;exports.hison=hn;exports.hisonCloser=te;exports.hisonvue=Jp;exports.isCssColorLike=Wu;exports.isNullOrUndefined=eu;exports.normalizeToRgba=$t;exports.registerReloadable=_u;exports.reloadHisonComponent=Cu;exports.toClassString=Ws;exports.unregisterReloadable=vu;exports.useDevice=Yp;
|