From 8114a6abf5aef14668bdc018c8c223c868c564f2 Mon Sep 17 00:00:00 2001 From: Simon Asika Date: Fri, 17 Nov 2023 17:56:31 +0800 Subject: [PATCH] Prepare for 2.1.2 release. --- assets/dist/154.js.map | 2 +- assets/dist/228.js.map | 2 +- assets/dist/298.js.map | 2 +- assets/dist/518.js.map | 2 +- assets/dist/564.js.map | 2 +- assets/dist/804.js.map | 2 +- assets/dist/account-check.js | 23 +-- assets/dist/account-check.js.map | 1 - assets/dist/captcha.js | 87 +------- assets/dist/captcha.js.map | 1 - assets/dist/lang-dropdown.js | 34 +--- assets/dist/lang-dropdown.js.map | 1 - assets/dist/locale-switch.js | 98 +-------- assets/dist/locale-switch.js.map | 1 - assets/dist/page-builder.js | 2 +- assets/dist/page-builder.js.LICENSE.txt | 41 +--- assets/dist/page-builder.js.map | 2 +- assets/dist/page/chunk-vendor.298.js | 2 +- assets/dist/page/chunk-vendor.564.js | 2 +- assets/dist/srp.js | 259 +----------------------- assets/dist/srp.js.map | 1 - 21 files changed, 21 insertions(+), 546 deletions(-) delete mode 100644 assets/dist/account-check.js.map delete mode 100644 assets/dist/captcha.js.map delete mode 100644 assets/dist/lang-dropdown.js.map delete mode 100644 assets/dist/locale-switch.js.map delete mode 100644 assets/dist/srp.js.map diff --git a/assets/dist/154.js.map b/assets/dist/154.js.map index 191132ab..7ae19785 100644 --- a/assets/dist/154.js.map +++ b/assets/dist/154.js.map @@ -1 +1 @@ -{"version":3,"file":"page/chunk-vendor.154.js","mappings":"sIAGSA,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAsD,SAA/CC,IAAI,+BAA8B,SAAK,G,GAI9CD,EAAAA,EAAAA,oBAAkG,SAA3FD,MAAM,wBAAuB,0DAAsD,G,GAM5FC,EAAAA,EAAAA,oBAAM,mB,GAEDD,MAAM,mB,GACTC,EAAAA,EAAAA,oBAA+C,SAAxCC,IAAI,sBAAqB,WAAO,G,GAKpCF,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAmE,S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BACnEpC,EAAAA,EAAAA,oBAaM,MAbNqC,EAaM,EAZJC,EAAAA,EAAAA,aAWEC,EAAA,CAVAC,MAAM,UACNC,QAAQ,UACR1C,MAAM,Q,WACG0B,EAAAZ,QAAQ6B,M,qCAARjB,EAAAZ,QAAQ6B,MAAKd,GACrBf,QAAS,CAAC,C,sKAWjByB,EAAAA,EAAAA,aAcWK,EAAA,CAdD,aAAW,wBAAqBC,EAAAA,EAAAA,aAAA,CAC7BC,OAAKC,EAAAA,EAAAA,UACd,IAEQ,CAFRC,K,uBAIuB,CAAC,KAAM,KAAM,OAArBC,I,MACRA,E,kBAEP,IAGE,EAHFV,EAAAA,EAAAA,aAGEW,EAAA,C,WAFSxB,EAAAZ,QAAQE,kBAAkBiC,G,yBAA1BvB,EAAAZ,QAAQE,kBAAkBiC,GAAIpB,EACtCsB,IAAK,K,qFAMZZ,EAAAA,EAAAA,aAcWK,EAAA,CAdD,aAAW,0BAAuBC,EAAAA,EAAAA,aAAA,CAC/BC,OAAKC,EAAAA,EAAAA,UACd,IAEQ,CAFRK,K,uBAIuB,CAAC,KAAM,KAAM,OAArBH,I,MACRA,E,kBAEP,IAGE,EAHFV,EAAAA,EAAAA,aAGEW,EAAA,C,WAFSxB,EAAAZ,QAAQM,oBAAoB6B,G,yBAA5BvB,EAAAZ,QAAQM,oBAAoB6B,GAAIpB,EACxCsB,IAAK,K","sources":["webpack:///./src/vue/components/page-builder/addons/addon-text.vue","webpack:///./src/vue/components/page-builder/addons/addon-text.vue?7de4"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./addon-text.vue?vue&type=template&id=37fc9079\"\nimport script from \"./addon-text.vue?vue&type=script&lang=js\"\nexport * from \"./addon-text.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","name","components","TitleOptions","ButtonRadio","SliderInput","RwdGroup","props","lunaAddonMixin","setup","ctx","state","options","content","content_font_size","lg","md","xs","content_line_height","toRefs","_createElementBlock","_hoisted_1","_hoisted_2","id","_ctx","title","text","$event","_hoisted_3","_createBlock","_component_TitleOptions","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_createVNode","_component_ButtonRadio","color","variant","align","_component_RwdGroup","_createSlots","label","_withCtx","_hoisted_10","size","_component_SliderInput","max","_hoisted_11"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"page/chunk-vendor.154.js","mappings":"sIAGSA,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAsD,SAA/CC,IAAI,+BAA8B,SAAK,G,GAI9CD,EAAAA,EAAAA,oBAAkG,SAA3FD,MAAM,wBAAuB,0DAAsD,G,GAM5FC,EAAAA,EAAAA,oBAAM,mB,GAEDD,MAAM,mB,GACTC,EAAAA,EAAAA,oBAA+C,SAAxCC,IAAI,sBAAqB,WAAO,G,GAKpCF,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAmE,SAA5DC,IAAI,gCAA+B,qBAAiB,G,GACtDF,MAAM,Q,GAmBTC,EAAAA,EAAAA,oBAEQ,aAFD,2CAEP,G,GAeAA,EAAAA,EAAAA,oBAEQ,aAFD,6CAEP,G,kCAqBR,SACEE,KAAM,aACNC,WAAY,CACVC,a,QAAY,EACZC,YAAW,IACXC,YAAW,IACXC,SAAQA,EAAAA,GAEVC,MAAO,IACFC,eAAeD,OAEpBE,KAAAA,CAAMF,EAAOG,GACX,MAAMC,EAAQH,eAAeD,EAAOG,EAAK,CACvCE,QAAS,CACPC,QAAS,6XAKTC,kBAAmB,CACjBC,GAAI,GACJC,GAAI,GACJC,GAAI,IAENC,oBAAqB,CACnBH,GAAI,GACJC,GAAI,GACJC,GAAI,OAKV,MAAO,KACFE,EAAAA,EAAAA,QAAOR,GAEd,GC/GF,GAFiC,E,QAAA,GA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AAK,K,qFAMZZ,EAAAA,EAAAA,aAcWK,EAAA,CAdD,aAAW,0BAAuBC,EAAAA,EAAAA,aAAA,CAC/BC,OAAKC,EAAAA,EAAAA,UACd,IAEQ,CAFRK,K,uBAIuB,CAAC,KAAM,KAAM,OAArBH,I,MACRA,E,kBAEP,IAGE,EAHFV,EAAAA,EAAAA,aAGEW,EAAA,C,WAFSxB,EAAAZ,QAAQM,oBAAoB6B,G,yBAA5BvB,EAAAZ,QAAQM,oBAAoB6B,GAAIpB,EACxCsB,IAAK,K","sources":["webpack:///./src/vue/components/page-builder/addons/addon-text.vue","webpack:///./src/vue/components/page-builder/addons/addon-text.vue?7de4"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./addon-text.vue?vue&type=template&id=37fc9079\"\nimport script from \"./addon-text.vue?vue&type=script&lang=js\"\nexport * from \"./addon-text.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","name","components","TitleOptions","ButtonRadio","SliderInput","RwdGroup","props","lunaAddonMixin","setup","ctx","state","options","content","content_font_size","lg","md","xs","content_line_height","toRefs","_createElementBlock","_hoisted_1","_hoisted_2","id","_ctx","title","text","$event","_hoisted_3","_createBlock","_component_TitleOptions","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_createVNode","_component_ButtonRadio","color","variant","align","_component_RwdGroup","_createSlots","label","_withCtx","_hoisted_10","size","_component_SliderInput","max","_hoisted_11"],"sourceRoot":""} \ No newline at end of file diff --git a/assets/dist/228.js.map b/assets/dist/228.js.map index 4f5bfd6b..ae2f6b40 100644 --- a/assets/dist/228.js.map +++ b/assets/dist/228.js.map @@ -1 +1 @@ -{"version":3,"file":"page/chunk-vendor.228.js","mappings":"uIAKQA,EAA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AAA,EAAAA,oBASM,aARJsB,EAAAA,EAAAA,aAOEiB,EAAA,CAPepC,KAAK,yB,WACX2B,EAAAjB,QAAQM,Y,qCAARW,EAAAjB,QAAQM,YAAWY,GAC5BI,GAAG,+BACHK,MAAM,SACNC,MAAM,UACN,aAAW,SACX,cAAY,I","sources":["webpack:///./src/vue/components/page-builder/addons/addon-emptyspace.vue","webpack:///./src/vue/components/page-builder/addons/addon-emptyspace.vue?1434"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./addon-emptyspace.vue?vue&type=template&id=7d71978c\"\nimport script from \"./addon-emptyspace.vue?vue&type=script&lang=js\"\nexport * from \"./addon-emptyspace.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["_createElementVNode","class","for","name","components","UnicornSwitcher","SliderInput","RwdGroup","props","lunaAddonMixin","setup","ctx","state","options","height","lg","md","xs","link","link_target","toRefs","_createElementBlock","_createVNode","_component_RwdGroup","_createSlots","label","_withCtx","_hoisted_1","size","_component_SliderInput","_ctx","$event","max","_hoisted_2","_hoisted_3","id","type","_hoisted_4","_hoisted_5","_component_UnicornSwitcher","shape","color"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"page/chunk-vendor.228.js","mappings":"uIAKQA,EAAAA,EAAAA,oBAEQ,aAFD,gCAEP,G,GAaCC,MAAM,mB,GACTD,EAAAA,EAAAA,oBAA+C,SAAxCE,IAAI,yBAAwB,QAAI,G,SAMpCD,MAAM,mB,GACTD,EAAAA,EAAAA,oBAAoE,SAA7DE,IAAI,gCAA+B,sBAAkB,G,4CAqBlE,SACEC,KAAM,mBACNC,WAAY,CAAEC,gBAAe,IAAEC,YAAW,IAAEC,SAAQA,EAAAA,GACpDC,MAAO,IACFC,EAAAA,EAAeD,OAEpBE,KAAAA,CAAMF,EAAOG,GACX,MAAMC,GAAQH,EAAAA,EAAAA,GAAeD,EAAOG,EAAK,CACvCE,QAAS,CACPC,OAAQ,CACNC,GAAI,GACJC,GAAI,GACJC,GAAI,IAENC,KAAM,GACNC,YAAa,MAIjB,MAAO,KACFC,EAAAA,EAAAA,QAAOR,GAEd,GChEF,GAFiC,E,QAAA,GAAgB,EAAQ,CAAC,CAAC,S,8KDJzDS,EAAAA,EAAAA,oBAuCM,aArCJC,EAAAA,EAAAA,aAcWC,EAAA,CAdD,aAAW,mBAAgBC,EAAAA,EAAAA,aAAA,CACxBC,OAAKC,EAAAA,EAAAA,UACd,IAEQ,CAFRC,K,uBAIuB,CAAC,KAAM,KAAM,OAArBC,I,MACRA,E,kBAEP,IAGE,EAHFN,EAAAA,EAAAA,aAGEO,EAAA,C,WAFSC,EAAAjB,QAAQC,OAAOc,G,yBAAfE,EAAAjB,QAAQC,OAAOc,GAAIG,EAC3BC,IAAK,K,qFAMZhC,EAAAA,EAAAA,oBAIM,MAJNiC,EAIM,CAHJC,GAA+C,6CAC/ClC,EAAAA,EAAAA,oBACgD,SADzCmC,GAAG,wBAAwBC,KAAK,M,qCAC5BN,EAAAjB,QAAQK,KAAIa,GAAE9B,MAAM,gB,yBAApB6B,EAAAjB,QAAQK,WAAI,uBAI2B,KAAjBY,EAAAjB,QAAQK,OAAI,kBAA/CG,EAAAA,EAAAA,oBAYM,MAZNgB,EAYM,CAXJC,GAAoE,wBACpEtC,EAAAA,EAAAA,oBASM,aARJsB,EAAAA,EAAAA,aAOEiB,EAAA,CAPepC,KAAK,yB,WACX2B,EAAAjB,QAAQM,Y,qCAARW,EAAAjB,QAAQM,YAAWY,GAC5BI,GAAG,+BACHK,MAAM,SACNC,MAAM,UACN,aAAW,SACX,cAAY,I","sources":["webpack:///./src/vue/components/page-builder/addons/addon-emptyspace.vue","webpack:///./src/vue/components/page-builder/addons/addon-emptyspace.vue?1434"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./addon-emptyspace.vue?vue&type=template&id=7d71978c\"\nimport script from \"./addon-emptyspace.vue?vue&type=script&lang=js\"\nexport * from \"./addon-emptyspace.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["_createElementVNode","class","for","name","components","UnicornSwitcher","SliderInput","RwdGroup","props","lunaAddonMixin","setup","ctx","state","options","height","lg","md","xs","link","link_target","toRefs","_createElementBlock","_createVNode","_component_RwdGroup","_createSlots","label","_withCtx","_hoisted_1","size","_component_SliderInput","_ctx","$event","max","_hoisted_2","_hoisted_3","id","type","_hoisted_4","_hoisted_5","_component_UnicornSwitcher","shape","color"],"sourceRoot":""} \ No newline at end of file diff --git a/assets/dist/298.js.map b/assets/dist/298.js.map index f8f10b15..1921dc09 100644 --- a/assets/dist/298.js.map +++ b/assets/dist/298.js.map @@ -1 +1 @@ -{"version":3,"file":"page/chunk-vendor.298.js","mappings":"wIAGSA,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAsD,SAA/CC,IAAI,+BAA8B,SAAK,G,GAG9CD,EAAAA,EAAAA,oBAAkG,SAA3FD,MAAM,wBAAuB,0DAAsD,G,GAM5FC,EAAAA,EAAAA,oBAAM,mB,GAGDD,MAAM,mB,GACTC,EAAAA,EAAAA,oBAA+C,SAAxCC,IAAI,yBAAwB,QAAI,G,SAMpCF,MAAM,mB,GACTC,EAAAA,EAAAA,oBAA+D,SAAxDC,IAAI,iCAAgC,gBAAY,G,GAgBzDD,EAAAA,EAAAA,oBAAM,mB,GAGDD,MAAM,mB,GACTC,EAAAA,EAAAA,oBAA6D,SAAtDC,IAAI,gCAA+B,eAAW,G,aAiBhDF,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAiD,SAA1CC,IAAI,0BAAyB,SAAK,G,aAStCF,MAAM,mB,GACTC,E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Q,CAFRyC,M,uBAIuB,CAAC,KAAM,KAAM,OAArBvC,I,MACRA,E,kBAEP,IAGE,EAHFtB,EAAAA,EAAAA,aAGEuB,GAAA,C,WAFSpC,EAAA3B,QAAQqB,oBAAoByC,G,yBAA5BnC,EAAA3B,QAAQqB,oBAAoByC,GAAIhC,EACxCkC,IAAK,K","sources":["webpack:///./src/vue/components/page-builder/addons/addon-feature.vue","webpack:///./src/vue/components/page-builder/addons/addon-feature.vue?471f"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./addon-feature.vue?vue&type=template&id=2f5f478c\"\nimport script from \"./addon-feature.vue?vue&type=script&lang=js\"\nexport * from \"./addon-feature.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","target","href","value","name","components","SliderInput","BoxOffset","ColorInput","RwdGroup","SingleImage","ButtonRadio","TitleOptions","props","lunaAddonMixin","setup","ctx","state","options","link","link_element","layout_type","image","icon","border","width","lg","md","xs","color","style","radius","font_size","bg_color","margin_top","margin_bottom","padding","content","content_font_size","content_line_height","toRefs","_createElementBlock","_hoisted_1","_hoisted_2","id","_ctx","title","text","$event","_hoisted_3","_createBlock","_component_TitleOptions","_hoisted_4","_hoisted_5","_hoisted_6","type","_hoisted_7","_hoisted_8","_createVNode","_component_ButtonRadio","variant","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_component_SingleImage","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_normalizeClass","_hoisted_20","_component_RwdGroup","_createSlots","label","_withCtx","_hoisted_21","size","_component_SliderInput","max","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_component_ColorInput","lazy","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_33","_hoisted_34","_component_BoxOffset","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_54","align","_hoisted_55","_hoisted_56"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"page/chunk-vendor.298.js","mappings":"wIAGSA,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAsD,SAA/CC,IAAI,+BAA8B,SAAK,G,GAG9CD,EAAAA,EAAAA,oBAAkG,SAA3FD,MAAM,wBAAuB,0DAAsD,G,GAM5FC,EAAAA,EAAAA,oBAAM,mB,GAGDD,MAAM,mB,GACTC,EAAAA,EAAAA,oBAA+C,SAAxCC,IAAI,yBAAwB,QAAI,G,SAMpCF,MAAM,mB,GACTC,EAAAA,EAAAA,oBAA+D,SAAxDC,IAAI,iCAAgC,gBAAY,G,GAgBzDD,EAAAA,EAAAA,oBAAM,mB,GAGDD,MAAM,mB,GACTC,EAAAA,EAAAA,oBAA6D,SAAtDC,IAAI,gCAA+B,eAAW,G,aAiBhDF,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAiD,SAA1CC,IAAI,0BAAyB,SAAK,G,aAStCF,MAAM,mB,GACTC,EAAAA,EAAAA,oBAA0D,SAAnDC,IAAI,8BAA6B,cAAU,G,GAC7CF,MAAM,oB,GACHA,MAAM,oB,GAMdC,EAAAA,EAAAA,oBAGQ,SAHDD,MAAM,wBAAsB,uBAAC,8CACLC,EAAAA,EAAAA,oBAAuB,YAAjB,eAAU,qBAAO,0CAC3BA,EAAAA,EAAAA,oBAAuE,KAApEE,OAAO,SAASC,KAAK,iCAAgC,gBAAW,qBAAI,iBAClG,G,GAMEH,EAAAA,EAAAA,oBAEQ,aAFD,6CAEP,G,GAYCD,MAAM,gB,GACJA,MAAM,S,GAEJA,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AAAA,EAAAA,oBAGM,MAHNkH,GAGM,CAFJC,IAA+C,6CAC/CnH,EAAAA,EAAAA,oBAAsG,YAA5F6C,GAAG,qB,uCAA8BC,EAAA3B,QAAQmB,QAAOW,GAAYlD,MAAM,gB,yBAAjC+C,EAAA3B,QAAQmB,SAAO,kCAI5DtC,EAAAA,EAAAA,oBAcM,MAdNoH,GAcM,CAbJC,IAAqE,wBACrE1D,EAAAA,EAAAA,aAWEC,GAAA,CAVA9B,MAAM,UACN+B,QAAQ,UACR9D,MAAM,Q,WACG+C,EAAA3B,QAAQmG,M,uCAARxE,EAAA3B,QAAQmG,MAAKrE,GACrB9B,QAAS,CAAC,C,oKAUfwC,EAAAA,EAAAA,aAcWiB,GAAA,CAdD,aAAW,wBAAqBC,EAAAA,EAAAA,aAAA,CAC7BC,OAAKC,EAAAA,EAAAA,UACd,IAEQ,CAFRwC,M,uBAIuB,CAAC,KAAM,KAAM,OAArBtC,I,MACRA,E,kBAEP,IAGE,EAHFtB,EAAAA,EAAAA,aAGEuB,GAAA,C,WAFSpC,EAAA3B,QAAQoB,kBAAkB0C,G,yBAA1BnC,EAAA3B,QAAQoB,kBAAkB0C,GAAIhC,EACtCkC,IAAK,K,qFAMZxB,EAAAA,EAAAA,aAcWiB,GAAA,CAdD,aAAW,0BAAuBC,EAAAA,EAAAA,aAAA,CAC/BC,OAAKC,EAAAA,EAAAA,UACd,IAEQ,CAFRyC,M,uBAIuB,CAAC,KAAM,KAAM,OAArBvC,I,MACRA,E,kBAEP,IAGE,EAHFtB,EAAAA,EAAAA,aAGEuB,GAAA,C,WAFSpC,EAAA3B,QAAQqB,oBAAoByC,G,yBAA5BnC,EAAA3B,QAAQqB,oBAAoByC,GAAIhC,EACxCkC,IAAK,K","sources":["webpack:///./src/vue/components/page-builder/addons/addon-feature.vue","webpack:///./src/vue/components/page-builder/addons/addon-feature.vue?471f"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./addon-feature.vue?vue&type=template&id=2f5f478c\"\nimport script from \"./addon-feature.vue?vue&type=script&lang=js\"\nexport * from \"./addon-feature.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","target","href","value","name","components","SliderInput","BoxOffset","ColorInput","RwdGroup","SingleImage","ButtonRadio","TitleOptions","props","lunaAddonMixin","setup","ctx","state","options","link","link_element","layout_type","image","icon","border","width","lg","md","xs","color","style","radius","font_size","bg_color","margin_top","margin_bottom","padding","content","content_font_size","content_line_height","toRefs","_createElementBlock","_hoisted_1","_hoisted_2","id","_ctx","title","text","$event","_hoisted_3","_createBlock","_component_TitleOptions","_hoisted_4","_hoisted_5","_hoisted_6","type","_hoisted_7","_hoisted_8","_createVNode","_component_ButtonRadio","variant","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_component_SingleImage","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_normalizeClass","_hoisted_20","_component_RwdGroup","_createSlots","label","_withCtx","_hoisted_21","size","_component_SliderInput","max","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_component_ColorInput","lazy","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_33","_hoisted_34","_component_BoxOffset","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_54","align","_hoisted_55","_hoisted_56"],"sourceRoot":""} \ No newline at end of file diff --git a/assets/dist/518.js.map b/assets/dist/518.js.map index a3616164..193dc31a 100644 --- a/assets/dist/518.js.map +++ b/assets/dist/518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Q,wBAIV/C,EAAAA,EAAAA,oBAQM,MARNgD,EAQM,CAPJC,GAEQ,wBACRd,EAAAA,EAAAA,aAGEe,EAAA,C,WAFSzB,EAAAX,QAAQE,c,qCAARS,EAAAX,QAAQE,cAAaY,GAC7BuB,IAAK,M,kDAKVnD,EAAAA,EAAAA,oBAgBM,MAhBNoD,EAgBM,CAfJC,GAA2D,wBAC3DrD,EAAAA,EAAAA,oBAaM,MAbNsD,EAaM,EAZJnB,EAAAA,EAAAA,aAWEoB,EAAA,CAVAX,MAAM,UACNY,QAAQ,UACRzD,MAAM,Q,WACG0B,EAAAX,QAAQ2C,M,qCAARhC,EAAAX,QAAQ2C,MAAK7B,GACrBd,QAAS,CAAC,C","sources":["webpack:///./src/vue/components/page-builder/addons/addon-image.vue","webpack:///./src/vue/components/page-builder/addons/addon-image.vue?a130"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./addon-image.vue?vue&type=template&id=74381700\"\nimport script from \"./addon-image.vue?vue&type=script&lang=js\"\nexport * from \"./addon-image.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","name","components","ButtonRadio","SliderInput","UnicornSwitcher","SingleImage","TitleOptions","props","lunaAddonMixin","setup","ctx","state","options","image","border_radius","alt","link","link_target","toRefs","_createElementBlock","_hoisted_1","_hoisted_2","id","_ctx","title","text","$event","_hoisted_3","_createBlock","_component_TitleOptions","_hoisted_4","_hoisted_5","_hoisted_6","_createVNode","_component_SingleImage","_hoisted_7","_hoisted_8","type","_hoisted_9","_hoisted_10","_component_UnicornSwitcher","shape","color","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_component_SliderInput","max","_hoisted_16","_hoisted_17","_hoisted_18","_component_ButtonRadio","variant","align"],"source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B,KAEQ,wBAIV/C,EAAAA,EAAAA,oBAQM,MARNgD,EAQM,CAPJC,GAEQ,wBACRd,EAAAA,EAAAA,aAGEe,EAAA,C,WAFSzB,EAAAX,QAAQE,c,qCAARS,EAAAX,QAAQE,cAAaY,GAC7BuB,IAAK,M,kDAKVnD,EAAAA,EAAAA,oBAgBM,MAhBNoD,EAgBM,CAfJC,GAA2D,wBAC3DrD,EAAAA,EAAAA,oBAaM,MAbNsD,EAaM,EAZJnB,EAAAA,EAAAA,aAWEoB,EAAA,CAVAX,MAAM,UACNY,QAAQ,UACRzD,MAAM,Q,WACG0B,EAAAX,QAAQ2C,M,qCAARhC,EAAAX,QAAQ2C,MAAK7B,GACrBd,QAAS,CAAC,C","sources":["webpack:///./src/vue/components/page-builder/addons/addon-image.vue","webpack:///./src/vue/components/page-builder/addons/addon-image.vue?a130"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./addon-image.vue?vue&type=template&id=74381700\"\nimport script from \"./addon-image.vue?vue&type=script&lang=js\"\nexport * from \"./addon-image.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","name","components","ButtonRadio","SliderInput","UnicornSwitcher","SingleImage","TitleOptions","props","lunaAddonMixin","setup","ctx","state","options","image","border_radius","alt","link","link_target","toRefs","_createElementBlock","_hoisted_1","_hoisted_2","id","_ctx","title","text","$event","_hoisted_3","_createBlock","_component_TitleOptions","_hoisted_4","_hoisted_5","_hoisted_6","_createVNode","_component_SingleImage","_hoisted_7","_hoisted_8","type","_hoisted_9","_hoisted_10","_component_UnicornSwitcher","shape","color","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_component_SliderInput","max","_hoisted_16","_hoisted_17","_hoisted_18","_component_ButtonRadio","variant","align"],"sourceRoot":""} \ No newline at end of file diff --git a/assets/dist/564.js.map b/assets/dist/564.js.map index 34a6e7ec..7fff9cf2 100644 --- a/assets/dist/564.js.map +++ b/assets/dist/564.js.map @@ -1 +1 @@ -{"version":3,"file":"page/chunk-vendor.564.js","mappings":"uEAUG,SAASA,GACV,IAAIC,EAAW,CACbC,MAAO,eACPC,YAAa,YACbC,QAAS,GACTC,QAAS,QAGPC,EAAMN,EAAWM,IAcrB,SAASC,EAAUC,EAAMC,GACvB,MAAY,SAARA,GAAkC,iBAARD,EAAyBA,EACpC,iBAARA,GAAkC,MAAdA,EAAKC,GAAsBD,EAAKC,GACxDR,EAASQ,EAClB,CAhBAT,EAAWU,aAAa,qBAAqB,GAAO,SAASC,EAAIC,EAAKC,GAChEA,GAAOA,GAAOb,EAAWc,OAC3BH,EAAGI,aAAaC,GAChBL,EAAGM,MAAMC,cAAgB,MAEvBN,IACFO,EAAYZ,EAAUK,EAAK,UAC3BD,EAAGM,MAAMC,cAAgBN,EACzBD,EAAGS,UAAUJ,GAEjB,IAQA,IAAIA,EAAS,CAACK,UAoBd,SAAyBV,GACvB,IAAIH,EAAOc,EAAUX,GACrB,IAAKH,GAAQG,EAAGJ,UAAU,gBAAiB,OAAOP,EAAWuB,KAI7D,IAFA,IAAIrB,EAAQK,EAAUC,EAAM,SACxBgB,EAASb,EAAGc,iBACPC,EAAI,EAAGA,EAAIF,EAAOG,OAAQD,IAAK,CACtC,IAAKF,EAAOE,GAAGE,QAAS,OAAO5B,EAAWuB,KAC1C,IAAIM,EAASC,EAAYnB,EAAIa,EAAOE,GAAGK,MACvC,IAAKF,GAAU3B,EAAM8B,QAAQH,GAAU,GAAK,EAAG,OAAO7B,EAAWuB,IACnE,CACA,IAASG,EAAIF,EAAOG,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC3C,IAAIO,EAAMT,EAAOE,GAAGK,KACpBpB,EAAGuB,aAAa,GAAI5B,EAAI2B,EAAIE,KAAMF,EAAIG,GAAK,GAA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EAAQlf,GACpB,QAAKkf,EAAO/D,IAAI,OAChBnb,EAAMu8D,SAAW6B,EACVA,EAAcl/C,EAAQlf,GAC/B,GAEFR,KAAM,MACN+X,WAAY,OAGhB,CAx1BIjT,CAAI,EAAQ,M,6FCFZg6D,E,MAA0B,GAA4B,KAE1DA,EAAwBz6D,KAAK,CAACU,EAAO4H,GAAI,22RAwVtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,0DAA0D,MAAQ,GAAG,SAAW,oqHAAoqH,eAAiB,CAAC,42RAA42R,WAAa,MAE7pZ,S,6FC5VImyD,E,MAA0B,GAA4B,KAE1DA,EAAwBz6D,KAAK,CAACU,EAAO4H,GAAI,qnFA6ItC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,0DAA0D,MAAQ,GAAG,SAAW,ixBAAixB,eAAiB,CAAC,snFAAsnF,WAAa,MAEphH,S,iBCjJA,IAAIrE,EAAU,EAAQ,MACnBA,EAAQy2D,aAAYz2D,EAAUA,EAAQ02D,SACnB,iBAAZ12D,IAAsBA,EAAU,CAAC,CAACvD,EAAO4H,GAAIrE,EAAS,MAC7DA,EAAQ22D,SAAQl6D,EAAOC,QAAUsD,EAAQ22D,SAG/BtlC,EADH,WACO,WAAYrxB,GAAS,EAAM,CAAC,E,iBCN7C,IAAIA,EAAU,EAAQ,MACnBA,EAAQy2D,aAAYz2D,EAAUA,EAAQ02D,SACnB,iBAAZ12D,IAAsBA,EAAU,CAAC,CAACvD,EAAO4H,GAAIrE,EAAS,MAC7DA,EAAQ22D,SAAQl6D,EAAOC,QAAUsD,EAAQ22D,SAG/BtlC,EADH,WACO,WAAYrxB,GAAS,EAAM,CAAC,E","sources":["webpack:///./node_modules/codemirror/addon/edit/closebrackets.js","webpack:///./node_modules/codemirror/lib/codemirror.js","webpack:///./node_modules/codemirror/mode/css/css.js","webpack:///./node_modules/codemirror/lib/codemirror.css","webpack:///./node_modules/codemirror/theme/material.css","webpack:///./node_modules/codemirror/lib/codemirror.css?6a7c","webpack:///./node_modules/codemirror/theme/material.css?896d"],"sourcesContent":["// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/5/LICENSE\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n var defaults = {\n pairs: \"()[]{}''\\\"\\\"\",\n closeBefore: \")]}'\\\":;>\",\n triples: \"\",\n explode: \"[]{}\"\n };\n\n var Pos = CodeMirror.Pos;\n\n CodeMirror.defineOption(\"autoCloseBrackets\", false, function(cm, val, old) {\n if (old && old != CodeMirror.Init) {\n cm.removeKeyMap(keyMap);\n cm.state.closeBrackets = null;\n }\n if (val) {\n ensureBound(getOption(val, \"pairs\"))\n cm.state.closeBrackets = val;\n cm.addKeyMap(keyMap);\n }\n });\n\n function getOption(conf, name) {\n if (name == \"pairs\" && typeof conf == \"string\") return conf;\n if (typeof conf == \"object\" && conf[name] != null) return conf[name];\n return defaults[name];\n }\n\n var keyMap = {Backspace: handleBackspace, Enter: handleEnter};\n function ensureBound(chars) {\n for (var i = 0; i < chars.length; i++) {\n var ch = chars.charAt(i), key = \"'\" + ch + \"'\"\n if (!keyMap[key]) keyMap[key] = handler(ch)\n }\n }\n ensureBound(defaults.pairs + \"`\")\n\n function handler(ch) {\n return function(cm) { return handleChar(cm, ch); };\n }\n\n function getConfig(cm) {\n var deflt = cm.state.closeBrackets;\n if (!deflt || deflt.override) return deflt;\n var mode = cm.getModeAt(cm.getCursor());\n return mode.closeBrackets || deflt;\n }\n\n function handleBackspace(cm) {\n var conf = getConfig(cm);\n if (!conf || cm.getOption(\"disableInput\")) return CodeMirror.Pass;\n\n var pairs = getOption(conf, \"pairs\");\n var ranges = cm.listSelections();\n for (var i = 0; i < ranges.length; i++) {\n if (!ranges[i].empty()) return CodeMirror.Pass;\n var around = charsAround(cm, ranges[i].head);\n if (!around || pairs.indexOf(around) % 2 != 0) return CodeMirror.Pass;\n }\n for (var i = ranges.length - 1; i >= 0; i--) {\n var cur = ranges[i].head;\n cm.replaceRange(\"\", Pos(cur.line, cur.ch - 1), Pos(cur.line, cur.ch + 1), \"+delete\");\n }\n }\n\n function handleEnter(cm) {\n var conf = getConfig(cm);\n var explode = conf && getOption(conf, \"explode\");\n if (!explode || cm.getOption(\"disableInput\")) return CodeMirror.Pass;\n\n var ranges = cm.listSelections();\n for (var i = 0; i < ranges.length; i++) {\n if (!ranges[i].empty()) return CodeMirror.Pass;\n var around = charsAround(cm, ranges[i].head);\n if (!around || explode.indexOf(around) % 2 != 0) return CodeMirror.Pass;\n }\n cm.operation(function() {\n var linesep = cm.lineSeparator() || \"\\n\";\n cm.replaceSelection(linesep + linesep, null);\n moveSel(cm, -1)\n ranges = cm.listSelections();\n for (var i = 0; i < ranges.length; i++) {\n var line = ranges[i].head.line;\n cm.indentLine(line, null, true);\n cm.indentLine(line + 1, null, true);\n }\n });\n }\n\n function moveSel(cm, dir) {\n var newRanges = [], ranges = cm.listSelections(), primary = 0\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i]\n if (range.head == cm.getCursor()) primary = i\n var pos = range.head.ch || dir > 0 ? {line: range.head.line, ch: range.head.ch + dir} : {line: range.head.line - 1}\n newRanges.push({anchor: pos, head: pos})\n }\n cm.setSelections(newRanges, primary)\n }\n\n function contractSelection(sel) {\n var inverted = CodeMirror.cmpPos(sel.anchor, sel.head) > 0;\n return {anchor: new Pos(sel.anchor.line, sel.anchor.ch + (inverted ? -1 : 1)),\n head: new Pos(sel.head.line, sel.head.ch + (inverted ? 1 : -1))};\n }\n\n function handleChar(cm, ch) {\n var conf = getConfig(cm);\n if (!conf || cm.getOption(\"disableInput\")) return CodeMirror.Pass;\n\n var pairs = getOption(conf, \"pairs\");\n var pos = pairs.indexOf(ch);\n if (pos == -1) return CodeMirror.Pass;\n\n var closeBefore = getOption(conf,\"closeBefore\");\n\n var triples = getOption(conf, \"triples\");\n\n var identical = pairs.charAt(pos + 1) == ch;\n var ranges = cm.listSelections();\n var opening = pos % 2 == 0;\n\n var type;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i], cur = range.head, curType;\n var next = cm.getRange(cur, Pos(cur.line, cur.ch + 1));\n if (opening && !range.empty()) {\n curType = \"surround\";\n } else if ((identical || !opening) && next == ch) {\n if (identical && stringStartsAfter(cm, cur))\n curType = \"both\";\n else if (triples.indexOf(ch) >= 0 && cm.getRange(cur, Pos(cur.line, cur.ch + 3)) == ch + ch + ch)\n curType = \"skipThree\";\n else\n curType = \"skip\";\n } else if (identical && cur.ch > 1 && triples.indexOf(ch) >= 0 &&\n cm.getRange(Pos(cur.line, cur.ch - 2), cur) == ch + ch) {\n if (cur.ch > 2 && /\\bstring/.test(cm.getTokenTypeAt(Pos(cur.line, cur.ch - 2)))) return CodeMirror.Pass;\n curType = \"addFour\";\n } else if (identical) {\n var prev = cur.ch == 0 ? \" \" : cm.getRange(Pos(cur.line, cur.ch - 1), cur)\n if (!CodeMirror.isWordChar(next) && prev != ch && !CodeMirror.isWordChar(prev)) curType = \"both\";\n else return CodeMirror.Pass;\n } else if (opening && (next.length === 0 || /\\s/.test(next) || closeBefore.indexOf(next) > -1)) {\n curType = \"both\";\n } else {\n return CodeMirror.Pass;\n }\n if (!type) type = curType;\n else if (type != curType) return CodeMirror.Pass;\n }\n\n var left = pos % 2 ? pairs.charAt(pos - 1) : ch;\n var right = pos % 2 ? ch : pairs.charAt(pos + 1);\n cm.operation(function() {\n if (type == \"skip\") {\n moveSel(cm, 1)\n } else if (type == \"skipThree\") {\n moveSel(cm, 3)\n } else if (type == \"surround\") {\n var sels = cm.getSelections();\n for (var i = 0; i < sels.length; i++)\n sels[i] = left + sels[i] + right;\n cm.replaceSelections(sels, \"around\");\n sels = cm.listSelections().slice();\n for (var i = 0; i < sels.length; i++)\n sels[i] = contractSelection(sels[i]);\n cm.setSelections(sels);\n } else if (type == \"both\") {\n cm.replaceSelection(left + right, null);\n cm.triggerElectric(left + right);\n moveSel(cm, -1)\n } else if (type == \"addFour\") {\n cm.replaceSelection(left + left + left + left, \"before\");\n moveSel(cm, 1)\n }\n });\n }\n\n function charsAround(cm, pos) {\n var str = cm.getRange(Pos(pos.line, pos.ch - 1),\n Pos(pos.line, pos.ch + 1));\n return str.length == 2 ? str : null;\n }\n\n function stringStartsAfter(cm, pos) {\n var token = cm.getTokenAt(Pos(pos.line, pos.ch + 1))\n return /\\bstring/.test(token.type) && token.start == pos.ch &&\n (pos.ch == 0 || !/\\bstring/.test(cm.getTokenTypeAt(pos)))\n }\n});\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/5/LICENSE\n\n// This is CodeMirror (https://codemirror.net/5), a code editor\n// implemented in JavaScript on top of the browser's DOM.\n//\n// You can find some technical background for some of the code below\n// at http://marijnhaverbeke.nl/blog/#cm-internals .\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.CodeMirror = factory());\n}(this, (function () { 'use strict';\n\n // Kludges for bugs and behavior differences that can't be feature\n // detected are enabled based on userAgent etc sniffing.\n var userAgent = navigator.userAgent;\n var platform = navigator.platform;\n\n var gecko = /gecko\\/\\d/i.test(userAgent);\n var ie_upto10 = /MSIE \\d/.test(userAgent);\n var ie_11up = /Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(userAgent);\n var edge = /Edge\\/(\\d+)/.exec(userAgent);\n var ie = ie_upto10 || ie_11up || edge;\n var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]);\n var webkit = !edge && /WebKit\\//.test(userAgent);\n var qtwebkit = webkit && /Qt\\/\\d+\\.\\d+/.test(userAgent);\n var chrome = !edge && /Chrome\\/(\\d+)/.exec(userAgent);\n var chrome_version = chrome && +chrome[1];\n var presto = /Opera\\//.test(userAgent);\n var safari = /Apple Computer/.test(navigator.vendor);\n var mac_geMountainLion = /Mac OS X 1\\d\\D([8-9]|\\d\\d)\\D/.test(userAgent);\n var phantom = /PhantomJS/.test(userAgent);\n\n var ios = safari && (/Mobile\\/\\w+/.test(userAgent) || navigator.maxTouchPoints > 2);\n var android = /Android/.test(userAgent);\n // This is woefully incomplete. Suggestions for alternative methods welcome.\n var mobile = ios || android || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent);\n var mac = ios || /Mac/.test(platform);\n var chromeOS = /\\bCrOS\\b/.test(userAgent);\n var windows = /win/i.test(platform);\n\n var presto_version = presto && userAgent.match(/Version\\/(\\d*\\.\\d*)/);\n if (presto_version) { presto_version = Number(presto_version[1]); }\n if (presto_version && presto_version >= 15) { presto = false; webkit = true; }\n // Some browsers use the wrong event properties to signal cmd/ctrl on OS X\n var flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11));\n var captureRightClick = gecko || (ie && ie_version >= 9);\n\n function classTest(cls) { return new RegExp(\"(^|\\\\s)\" + cls + \"(?:$|\\\\s)\\\\s*\") }\n\n var rmClass = function(node, cls) {\n var current = node.className;\n var match = classTest(cls).exec(current);\n if (match) {\n var after = current.slice(match.index + match[0].length);\n node.className = current.slice(0, match.index) + (after ? match[1] + after : \"\");\n }\n };\n\n function removeChildren(e) {\n for (var count = e.childNodes.length; count > 0; --count)\n { e.removeChild(e.firstChild); }\n return e\n }\n\n function removeChildrenAndAdd(parent, e) {\n return removeChildren(parent).appendChild(e)\n }\n\n function elt(tag, content, className, style) {\n var e = document.createElement(tag);\n if (className) { e.className = className; }\n if (style) { e.style.cssText = style; }\n if (typeof content == \"string\") { e.appendChild(document.createTextNode(content)); }\n else if (content) { for (var i = 0; i < content.length; ++i) { e.appendChild(content[i]); } }\n return e\n }\n // wrapper for elt, which removes the elt from the accessibility tree\n function eltP(tag, content, className, style) {\n var e = elt(tag, content, className, style);\n e.setAttribute(\"role\", \"presentation\");\n return e\n }\n\n var range;\n if (document.createRange) { range = function(node, start, end, endNode) {\n var r = document.createRange();\n r.setEnd(endNode || node, end);\n r.setStart(node, start);\n return r\n }; }\n else { range = function(node, start, end) {\n var r = document.body.createTextRange();\n try { r.moveToElementText(node.parentNode); }\n catch(e) { return r }\n r.collapse(true);\n r.moveEnd(\"character\", end);\n r.moveStart(\"character\", start);\n return r\n }; }\n\n function contains(parent, child) {\n if (child.nodeType == 3) // Android browser always returns false when child is a textnode\n { child = child.parentNode; }\n if (parent.contains)\n { return parent.contains(child) }\n do {\n if (child.nodeType == 11) { child = child.host; }\n if (child == parent) { return true }\n } while (child = child.parentNode)\n }\n\n function activeElt(doc) {\n // IE and Edge may throw an \"Unspecified Error\" when accessing document.activeElement.\n // IE < 10 will throw when accessed while the page is loading or in an iframe.\n // IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable.\n var activeElement;\n try {\n activeElement = doc.activeElement;\n } catch(e) {\n activeElement = doc.body || null;\n }\n while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement)\n { activeElement = activeElement.shadowRoot.activeElement; }\n return activeElement\n }\n\n function addClass(node, cls) {\n var current = node.className;\n if (!classTest(cls).test(current)) { node.className += (current ? \" \" : \"\") + cls; }\n }\n function joinClasses(a, b) {\n var as = a.split(\" \");\n for (var i = 0; i < as.length; i++)\n { if (as[i] && !classTest(as[i]).test(b)) { b += \" \" + as[i]; } }\n return b\n }\n\n var selectInput = function(node) { node.select(); };\n if (ios) // Mobile Safari apparently has a bug where select() is broken.\n { selectInput = function(node) { node.selectionStart = 0; node.selectionEnd = node.value.length; }; }\n else if (ie) // Suppress mysterious IE10 errors\n { selectInput = function(node) { try { node.select(); } catch(_e) {} }; }\n\n function doc(cm) { return cm.display.wrapper.ownerDocument }\n\n function win(cm) { return doc(cm).defaultView }\n\n function bind(f) {\n var args = Array.prototype.slice.call(arguments, 1);\n return function(){return f.apply(null, args)}\n }\n\n function copyObj(obj, target, overwrite) {\n if (!target) { target = {}; }\n for (var prop in obj)\n { if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))\n { target[prop] = obj[prop]; } }\n return target\n }\n\n // Counts the column offset in a string, taking tabs into account.\n // Used mostly to find indentation.\n function countColumn(string, end, tabSize, startIndex, startValue) {\n if (end == null) {\n end = string.search(/[^\\s\\u00a0]/);\n if (end == -1) { end = string.length; }\n }\n for (var i = startIndex || 0, n = startValue || 0;;) {\n var nextTab = string.indexOf(\"\\t\", i);\n if (nextTab < 0 || nextTab >= end)\n { return n + (end - i) }\n n += nextTab - i;\n n += tabSize - (n % tabSize);\n i = nextTab + 1;\n }\n }\n\n var Delayed = function() {\n this.id = null;\n this.f = null;\n this.time = 0;\n this.handler = bind(this.onTimeout, this);\n };\n Delayed.prototype.onTimeout = function (self) {\n self.id = 0;\n if (self.time <= +new Date) {\n self.f();\n } else {\n setTimeout(self.handler, self.time - +new Date);\n }\n };\n Delayed.prototype.set = function (ms, f) {\n this.f = f;\n var time = +new Date + ms;\n if (!this.id || time < this.time) {\n clearTimeout(this.id);\n this.id = setTimeout(this.handler, ms);\n this.time = time;\n }\n };\n\n function indexOf(array, elt) {\n for (var i = 0; i < array.length; ++i)\n { if (array[i] == elt) { return i } }\n return -1\n }\n\n // Number of pixels added to scroller and sizer to hide scrollbar\n var scrollerGap = 50;\n\n // Returned or thrown by various protocols to signal 'I'm not\n // handling this'.\n var Pass = {toString: function(){return \"CodeMirror.Pass\"}};\n\n // Reused option objects for setSelection & friends\n var sel_dontScroll = {scroll: false}, sel_mouse = {origin: \"*mouse\"}, sel_move = {origin: \"+move\"};\n\n // The inverse of countColumn -- find the offset that corresponds to\n // a particular column.\n function findColumn(string, goal, tabSize) {\n for (var pos = 0, col = 0;;) {\n var nextTab = string.indexOf(\"\\t\", pos);\n if (nextTab == -1) { nextTab = string.length; }\n var skipped = nextTab - pos;\n if (nextTab == string.length || col + skipped >= goal)\n { return pos + Math.min(skipped, goal - col) }\n col += nextTab - pos;\n col += tabSize - (col % tabSize);\n pos = nextTab + 1;\n if (col >= goal) { return pos }\n }\n }\n\n var spaceStrs = [\"\"];\n function spaceStr(n) {\n while (spaceStrs.length <= n)\n { spaceStrs.push(lst(spaceStrs) + \" \"); }\n return spaceStrs[n]\n }\n\n function lst(arr) { return arr[arr.length-1] }\n\n function map(array, f) {\n var out = [];\n for (var i = 0; i < array.length; i++) { out[i] = f(array[i], i); }\n return out\n }\n\n function insertSorted(array, value, score) {\n var pos = 0, priority = score(value);\n while (pos < array.length && score(array[pos]) <= priority) { pos++; }\n array.splice(pos, 0, value);\n }\n\n function nothing() {}\n\n function createObj(base, props) {\n var inst;\n if (Object.create) {\n inst = Object.create(base);\n } else {\n nothing.prototype = base;\n inst = new nothing();\n }\n if (props) { copyObj(props, inst); }\n return inst\n }\n\n var nonASCIISingleCaseWordChar = /[\\u00df\\u0587\\u0590-\\u05f4\\u0600-\\u06ff\\u3040-\\u309f\\u30a0-\\u30ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\uac00-\\ud7af]/;\n function isWordCharBasic(ch) {\n return /\\w/.test(ch) || ch > \"\\x80\" &&\n (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch))\n }\n function isWordChar(ch, helper) {\n if (!helper) { return isWordCharBasic(ch) }\n if (helper.source.indexOf(\"\\\\w\") > -1 && isWordCharBasic(ch)) { return true }\n return helper.test(ch)\n }\n\n function isEmpty(obj) {\n for (var n in obj) { if (obj.hasOwnProperty(n) && obj[n]) { return false } }\n return true\n }\n\n // Extending unicode characters. A series of a non-extending char +\n // any number of extending chars is treated as a single unit as far\n // as editing and measuring is concerned. This is not fully correct,\n // since some scripts/fonts/browsers also treat other configurations\n // of code points as a group.\n var extendingChars = /[\\u0300-\\u036f\\u0483-\\u0489\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u065e\\u0670\\u06d6-\\u06dc\\u06de-\\u06e4\\u06e7\\u06e8\\u06ea-\\u06ed\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07eb-\\u07f3\\u0816-\\u0819\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0900-\\u0902\\u093c\\u0941-\\u0948\\u094d\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09bc\\u09be\\u09c1-\\u09c4\\u09cd\\u09d7\\u09e2\\u09e3\\u0a01\\u0a02\\u0a3c\\u0a41\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a70\\u0a71\\u0a75\\u0a81\\u0a82\\u0abc\\u0ac1-\\u0ac5\\u0ac7\\u0ac8\\u0acd\\u0ae2\\u0ae3\\u0b01\\u0b3c\\u0b3e\\u0b3f\\u0b41-\\u0b44\\u0b4d\\u0b56\\u0b57\\u0b62\\u0b63\\u0b82\\u0bbe\\u0bc0\\u0bcd\\u0bd7\\u0c3e-\\u0c40\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0cbc\\u0cbf\\u0cc2\\u0cc6\\u0ccc\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0d3e\\u0d41-\\u0d44\\u0d4d\\u0d57\\u0d62\\u0d63\\u0dca\\u0dcf\\u0dd2-\\u0dd4\\u0dd6\\u0ddf\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0eb1\\u0eb4-\\u0eb9\\u0ebb\\u0ebc\\u0ec8-\\u0ecd\\u0f18\\u0f19\\u0f35\\u0f37\\u0f39\\u0f71-\\u0f7e\\u0f80-\\u0f84\\u0f86\\u0f87\\u0f90-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102d-\\u1030\\u1032-\\u1037\\u1039\\u103a\\u103d\\u103e\\u1058\\u1059\\u105e-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108d\\u109d\\u135f\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b7-\\u17bd\\u17c6\\u17c9-\\u17d3\\u17dd\\u180b-\\u180d\\u18a9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193b\\u1a17\\u1a18\\u1a56\\u1a58-\\u1a5e\\u1a60\\u1a62\\u1a65-\\u1a6c\\u1a73-\\u1a7c\\u1a7f\\u1b00-\\u1b03\\u1b34\\u1b36-\\u1b3a\\u1b3c\\u1b42\\u1b6b-\\u1b73\\u1b80\\u1b81\\u1ba2-\\u1ba5\\u1ba8\\u1ba9\\u1c2c-\\u1c33\\u1c36\\u1c37\\u1cd0-\\u1cd2\\u1cd4-\\u1ce0\\u1ce2-\\u1ce8\\u1ced\\u1dc0-\\u1de6\\u1dfd-\\u1dff\\u200c\\u200d\\u20d0-\\u20f0\\u2cef-\\u2cf1\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\ua66f-\\ua672\\ua67c\\ua67d\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua825\\ua826\\ua8c4\\ua8e0-\\ua8f1\\ua926-\\ua92d\\ua947-\\ua951\\ua980-\\ua982\\ua9b3\\ua9b6-\\ua9b9\\ua9bc\\uaa29-\\uaa2e\\uaa31\\uaa32\\uaa35\\uaa36\\uaa43\\uaa4c\\uaab0\\uaab2-\\uaab4\\uaab7\\uaab8\\uaabe\\uaabf\\uaac1\\uabe5\\uabe8\\uabed\\udc00-\\udfff\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe26\\uff9e\\uff9f]/;\n function isExtendingChar(ch) { return ch.charCodeAt(0) >= 768 && extendingChars.test(ch) }\n\n // Returns a number from the range [`0`; `str.length`] unless `pos` is outside that range.\n function skipExtendingChars(str, pos, dir) {\n while ((dir < 0 ? pos > 0 : pos < str.length) && isExtendingChar(str.charAt(pos))) { pos += dir; }\n return pos\n }\n\n // Returns the value from the range [`from`; `to`] that satisfies\n // `pred` and is closest to `from`. Assumes that at least `to`\n // satisfies `pred`. Supports `from` being greater than `to`.\n function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }\n\n // BIDI HELPERS\n\n function iterateBidiSections(order, from, to, f) {\n if (!order) { return f(from, to, \"ltr\", 0) }\n var found = false;\n for (var i = 0; i < order.length; ++i) {\n var part = order[i];\n if (part.from < to && part.to > from || from == to && part.to == from) {\n f(Math.max(part.from, from), Math.min(part.to, to), part.level == 1 ? \"rtl\" : \"ltr\", i);\n found = true;\n }\n }\n if (!found) { f(from, to, \"ltr\"); }\n }\n\n var bidiOther = null;\n function getBidiPartAt(order, ch, sticky) {\n var found;\n bidiOther = null;\n for (var i = 0; i < order.length; ++i) {\n var cur = order[i];\n if (cur.from < ch && cur.to > ch) { return i }\n if (cur.to == ch) {\n if (cur.from != cur.to && sticky == \"before\") { found = i; }\n else { bidiOther = i; }\n }\n if (cur.from == ch) {\n if (cur.from != cur.to && sticky != \"before\") { found = i; }\n else { bidiOther = i; }\n }\n }\n return found != null ? found : bidiOther\n }\n\n // Bidirectional ordering algorithm\n // See http://unicode.org/reports/tr9/tr9-13.html for the algorithm\n // that this (partially) implements.\n\n // One-char codes used for character types:\n // L (L): Left-to-Right\n // R (R): Right-to-Left\n // r (AL): Right-to-Left Arabic\n // 1 (EN): European Number\n // + (ES): European Number Separator\n // % (ET): European Number Terminator\n // n (AN): Arabic Number\n // , (CS): Common Number Separator\n // m (NSM): Non-Spacing Mark\n // b (BN): Boundary Neutral\n // s (B): Paragraph Separator\n // t (S): Segment Separator\n // w (WS): Whitespace\n // N (ON): Other Neutrals\n\n // Returns null if characters are ordered as they appear\n // (left-to-right), or an array of sections ({from, to, level}\n // objects) in the order in which they occur visually.\n var bidiOrdering = (function() {\n // Character types for codepoints 0 to 0xff\n var lowTypes = \"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN\";\n // Character types for codepoints 0x600 to 0x6f9\n var arabicTypes = \"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111\";\n function charType(code) {\n if (code <= 0xf7) { return lowTypes.charAt(code) }\n else if (0x590 <= code && code <= 0x5f4) { return \"R\" }\n else if (0x600 <= code && code <= 0x6f9) { return arabicTypes.charAt(code - 0x600) }\n else if (0x6ee <= code && code <= 0x8ac) { return \"r\" }\n else if (0x2000 <= code && code <= 0x200b) { return \"w\" }\n else if (code == 0x200c) { return \"b\" }\n else { return \"L\" }\n }\n\n var bidiRE = /[\\u0590-\\u05f4\\u0600-\\u06ff\\u0700-\\u08ac]/;\n var isNeutral = /[stwN]/, isStrong = /[LRr]/, countsAsLeft = /[Lb1n]/, countsAsNum = /[1n]/;\n\n function BidiSpan(level, from, to) {\n this.level = level;\n this.from = from; this.to = to;\n }\n\n return function(str, direction) {\n var outerType = direction == \"ltr\" ? \"L\" : \"R\";\n\n if (str.length == 0 || direction == \"ltr\" && !bidiRE.test(str)) { return false }\n var len = str.length, types = [];\n for (var i = 0; i < len; ++i)\n { types.push(charType(str.charCodeAt(i))); }\n\n // W1. Examine each non-spacing mark (NSM) in the level run, and\n // change the type of the NSM to the type of the previous\n // character. If the NSM is at the start of the level run, it will\n // get the type of sor.\n for (var i$1 = 0, prev = outerType; i$1 < len; ++i$1) {\n var type = types[i$1];\n if (type == \"m\") { types[i$1] = prev; }\n else { prev = type; }\n }\n\n // W2. Search backwards from each instance of a European number\n // until the first strong type (R, L, AL, or sor) is found. If an\n // AL is found, change the type of the European number to Arabic\n // number.\n // W3. Change all ALs to R.\n for (var i$2 = 0, cur = outerType; i$2 < len; ++i$2) {\n var type$1 = types[i$2];\n if (type$1 == \"1\" && cur == \"r\") { types[i$2] = \"n\"; }\n else if (isStrong.test(type$1)) { cur = type$1; if (type$1 == \"r\") { types[i$2] = \"R\"; } }\n }\n\n // W4. A single European separator between two European numbers\n // changes to a European number. A single common separator between\n // two numbers of the same type changes to that type.\n for (var i$3 = 1, prev$1 = types[0]; i$3 < len - 1; ++i$3) {\n var type$2 = types[i$3];\n if (type$2 == \"+\" && prev$1 == \"1\" && types[i$3+1] == \"1\") { types[i$3] = \"1\"; }\n else if (type$2 == \",\" && prev$1 == types[i$3+1] &&\n (prev$1 == \"1\" || prev$1 == \"n\")) { types[i$3] = prev$1; }\n prev$1 = type$2;\n }\n\n // W5. A sequence of European terminators adjacent to European\n // numbers changes to all European numbers.\n // W6. Otherwise, separators and terminators change to Other\n // Neutral.\n for (var i$4 = 0; i$4 < len; ++i$4) {\n var type$3 = types[i$4];\n if (type$3 == \",\") { types[i$4] = \"N\"; }\n else if (type$3 == \"%\") {\n var end = (void 0);\n for (end = i$4 + 1; end < len && types[end] == \"%\"; ++end) {}\n var replace = (i$4 && types[i$4-1] == \"!\") || (end < len && types[end] == \"1\") ? \"1\" : \"N\";\n for (var j = i$4; j < end; ++j) { types[j] = replace; }\n i$4 = end - 1;\n }\n }\n\n // W7. Search backwards from each instance of a European number\n // until the first strong type (R, L, or sor) is found. If an L is\n // found, then change the type of the European number to L.\n for (var i$5 = 0, cur$1 = outerType; i$5 < len; ++i$5) {\n var type$4 = types[i$5];\n if (cur$1 == \"L\" && type$4 == \"1\") { types[i$5] = \"L\"; }\n else if (isStrong.test(type$4)) { cur$1 = type$4; }\n }\n\n // N1. A sequence of neutrals takes the direction of the\n // surrounding strong text if the text on both sides has the same\n // direction. European and Arabic numbers act as if they were R in\n // terms of their influence on neutrals. Start-of-level-run (sor)\n // and end-of-level-run (eor) are used at level run boundaries.\n // N2. Any remaining neutrals take the embedding direction.\n for (var i$6 = 0; i$6 < len; ++i$6) {\n if (isNeutral.test(types[i$6])) {\n var end$1 = (void 0);\n for (end$1 = i$6 + 1; end$1 < len && isNeutral.test(types[end$1]); ++end$1) {}\n var before = (i$6 ? types[i$6-1] : outerType) == \"L\";\n var after = (end$1 < len ? types[end$1] : outerType) == \"L\";\n var replace$1 = before == after ? (before ? \"L\" : \"R\") : outerType;\n for (var j$1 = i$6; j$1 < end$1; ++j$1) { types[j$1] = replace$1; }\n i$6 = end$1 - 1;\n }\n }\n\n // Here we depart from the documented algorithm, in order to avoid\n // building up an actual levels array. Since there are only three\n // levels (0, 1, 2) in an implementation that doesn't take\n // explicit embedding into account, we can build up the order on\n // the fly, without following the level-based algorithm.\n var order = [], m;\n for (var i$7 = 0; i$7 < len;) {\n if (countsAsLeft.test(types[i$7])) {\n var start = i$7;\n for (++i$7; i$7 < len && countsAsLeft.test(types[i$7]); ++i$7) {}\n order.push(new BidiSpan(0, start, i$7));\n } else {\n var pos = i$7, at = order.length, isRTL = direction == \"rtl\" ? 1 : 0;\n for (++i$7; i$7 < len && types[i$7] != \"L\"; ++i$7) {}\n for (var j$2 = pos; j$2 < i$7;) {\n if (countsAsNum.test(types[j$2])) {\n if (pos < j$2) { order.splice(at, 0, new BidiSpan(1, pos, j$2)); at += isRTL; }\n var nstart = j$2;\n for (++j$2; j$2 < i$7 && countsAsNum.test(types[j$2]); ++j$2) {}\n order.splice(at, 0, new BidiSpan(2, nstart, j$2));\n at += isRTL;\n pos = j$2;\n } else { ++j$2; }\n }\n if (pos < i$7) { order.splice(at, 0, new BidiSpan(1, pos, i$7)); }\n }\n }\n if (direction == \"ltr\") {\n if (order[0].level == 1 && (m = str.match(/^\\s+/))) {\n order[0].from = m[0].length;\n order.unshift(new BidiSpan(0, 0, m[0].length));\n }\n if (lst(order).level == 1 && (m = str.match(/\\s+$/))) {\n lst(order).to -= m[0].length;\n order.push(new BidiSpan(0, len - m[0].length, len));\n }\n }\n\n return direction == \"rtl\" ? order.reverse() : order\n }\n })();\n\n // Get the bidi ordering for the given line (and cache it). Returns\n // false for lines that are fully left-to-right, and an array of\n // BidiSpan objects otherwise.\n function getOrder(line, direction) {\n var order = line.order;\n if (order == null) { order = line.order = bidiOrdering(line.text, direction); }\n return order\n }\n\n // EVENT HANDLING\n\n // Lightweight event framework. on/off also work on DOM nodes,\n // registering native DOM handlers.\n\n var noHandlers = [];\n\n var on = function(emitter, type, f) {\n if (emitter.addEventListener) {\n emitter.addEventListener(type, f, false);\n } else if (emitter.attachEvent) {\n emitter.attachEvent(\"on\" + type, f);\n } else {\n var map = emitter._handlers || (emitter._handlers = {});\n map[type] = (map[type] || noHandlers).concat(f);\n }\n };\n\n function getHandlers(emitter, type) {\n return emitter._handlers && emitter._handlers[type] || noHandlers\n }\n\n function off(emitter, type, f) {\n if (emitter.removeEventListener) {\n emitter.removeEventListener(type, f, false);\n } else if (emitter.detachEvent) {\n emitter.detachEvent(\"on\" + type, f);\n } else {\n var map = emitter._handlers, arr = map && map[type];\n if (arr) {\n var index = indexOf(arr, f);\n if (index > -1)\n { map[type] = arr.slice(0, index).concat(arr.slice(index + 1)); }\n }\n }\n }\n\n function signal(emitter, type /*, values...*/) {\n var handlers = getHandlers(emitter, type);\n if (!handlers.length) { return }\n var args = Array.prototype.slice.call(arguments, 2);\n for (var i = 0; i < handlers.length; ++i) { handlers[i].apply(null, args); }\n }\n\n // The DOM events that CodeMirror handles can be overridden by\n // registering a (non-DOM) handler on the editor for the event name,\n // and preventDefault-ing the event in that handler.\n function signalDOMEvent(cm, e, override) {\n if (typeof e == \"string\")\n { e = {type: e, preventDefault: function() { this.defaultPrevented = true; }}; }\n signal(cm, override || e.type, cm, e);\n return e_defaultPrevented(e) || e.codemirrorIgnore\n }\n\n function signalCursorActivity(cm) {\n var arr = cm._handlers && cm._handlers.cursorActivity;\n if (!arr) { return }\n var set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []);\n for (var i = 0; i < arr.length; ++i) { if (indexOf(set, arr[i]) == -1)\n { set.push(arr[i]); } }\n }\n\n function hasHandler(emitter, type) {\n return getHandlers(emitter, type).length > 0\n }\n\n // Add on and off methods to a constructor's prototype, to make\n // registering events on such objects more convenient.\n function eventMixin(ctor) {\n ctor.prototype.on = function(type, f) {on(this, type, f);};\n ctor.prototype.off = function(type, f) {off(this, type, f);};\n }\n\n // Due to the fact that we still support jurassic IE versions, some\n // compatibility wrappers are needed.\n\n function e_preventDefault(e) {\n if (e.preventDefault) { e.preventDefault(); }\n else { e.returnValue = false; }\n }\n function e_stopPropagation(e) {\n if (e.stopPropagation) { e.stopPropagation(); }\n else { e.cancelBubble = true; }\n }\n function e_defaultPrevented(e) {\n return e.defaultPrevented != null ? e.defaultPrevented : e.returnValue == false\n }\n function e_stop(e) {e_preventDefault(e); e_stopPropagation(e);}\n\n function e_target(e) {return e.target || e.srcElement}\n function e_button(e) {\n var b = e.which;\n if (b == null) {\n if (e.button & 1) { b = 1; }\n else if (e.button & 2) { b = 3; }\n else if (e.button & 4) { b = 2; }\n }\n if (mac && e.ctrlKey && b == 1) { b = 3; }\n return b\n }\n\n // Detect drag-and-drop\n var dragAndDrop = function() {\n // There is *some* kind of drag-and-drop support in IE6-8, but I\n // couldn't get it to work yet.\n if (ie && ie_version < 9) { return false }\n var div = elt('div');\n return \"draggable\" in div || \"dragDrop\" in div\n }();\n\n var zwspSupported;\n function zeroWidthElement(measure) {\n if (zwspSupported == null) {\n var test = elt(\"span\", \"\\u200b\");\n removeChildrenAndAdd(measure, elt(\"span\", [test, document.createTextNode(\"x\")]));\n if (measure.firstChild.offsetHeight != 0)\n { zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8); }\n }\n var node = zwspSupported ? elt(\"span\", \"\\u200b\") :\n elt(\"span\", \"\\u00a0\", null, \"display: inline-block; width: 1px; margin-right: -1px\");\n node.setAttribute(\"cm-text\", \"\");\n return node\n }\n\n // Feature-detect IE's crummy client rect reporting for bidi text\n var badBidiRects;\n function hasBadBidiRects(measure) {\n if (badBidiRects != null) { return badBidiRects }\n var txt = removeChildrenAndAdd(measure, document.createTextNode(\"A\\u062eA\"));\n var r0 = range(txt, 0, 1).getBoundingClientRect();\n var r1 = range(txt, 1, 2).getBoundingClientRect();\n removeChildren(measure);\n if (!r0 || r0.left == r0.right) { return false } // Safari returns null in some cases (#2780)\n return badBidiRects = (r1.right - r0.right < 3)\n }\n\n // See if \"\".split is the broken IE version, if so, provide an\n // alternative way to split lines.\n var splitLinesAuto = \"\\n\\nb\".split(/\\n/).length != 3 ? function (string) {\n var pos = 0, result = [], l = string.length;\n while (pos <= l) {\n var nl = string.indexOf(\"\\n\", pos);\n if (nl == -1) { nl = string.length; }\n var line = string.slice(pos, string.charAt(nl - 1) == \"\\r\" ? nl - 1 : nl);\n var rt = line.indexOf(\"\\r\");\n if (rt != -1) {\n result.push(line.slice(0, rt));\n pos += rt + 1;\n } else {\n result.push(line);\n pos = nl + 1;\n }\n }\n return result\n } : function (string) { return string.split(/\\r\\n?|\\n/); };\n\n var hasSelection = window.getSelection ? function (te) {\n try { return te.selectionStart != te.selectionEnd }\n catch(e) { return false }\n } : function (te) {\n var range;\n try {range = te.ownerDocument.selection.createRange();}\n catch(e) {}\n if (!range || range.parentElement() != te) { return false }\n return range.compareEndPoints(\"StartToEnd\", range) != 0\n };\n\n var hasCopyEvent = (function () {\n var e = elt(\"div\");\n if (\"oncopy\" in e) { return true }\n e.setAttribute(\"oncopy\", \"return;\");\n return typeof e.oncopy == \"function\"\n })();\n\n var badZoomedRects = null;\n function hasBadZoomedRects(measure) {\n if (badZoomedRects != null) { return badZoomedRects }\n var node = removeChildrenAndAdd(measure, elt(\"span\", \"x\"));\n var normal = node.getBoundingClientRect();\n var fromRange = range(node, 0, 1).getBoundingClientRect();\n return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1\n }\n\n // Known modes, by name and by MIME\n var modes = {}, mimeModes = {};\n\n // Extra arguments are stored as the mode's dependencies, which is\n // used by (legacy) mechanisms like loadmode.js to automatically\n // load a mode. (Preferred mechanism is the require/define calls.)\n function defineMode(name, mode) {\n if (arguments.length > 2)\n { mode.dependencies = Array.prototype.slice.call(arguments, 2); }\n modes[name] = mode;\n }\n\n function defineMIME(mime, spec) {\n mimeModes[mime] = spec;\n }\n\n // Given a MIME type, a {name, ...options} config object, or a name\n // string, return a mode config object.\n function resolveMode(spec) {\n if (typeof spec == \"string\" && mimeModes.hasOwnProperty(spec)) {\n spec = mimeModes[spec];\n } else if (spec && typeof spec.name == \"string\" && mimeModes.hasOwnProperty(spec.name)) {\n var found = mimeModes[spec.name];\n if (typeof found == \"string\") { found = {name: found}; }\n spec = createObj(found, spec);\n spec.name = found.name;\n } else if (typeof spec == \"string\" && /^[\\w\\-]+\\/[\\w\\-]+\\+xml$/.test(spec)) {\n return resolveMode(\"application/xml\")\n } else if (typeof spec == \"string\" && /^[\\w\\-]+\\/[\\w\\-]+\\+json$/.test(spec)) {\n return resolveMode(\"application/json\")\n }\n if (typeof spec == \"string\") { return {name: spec} }\n else { return spec || {name: \"null\"} }\n }\n\n // Given a mode spec (anything that resolveMode accepts), find and\n // initialize an actual mode object.\n function getMode(options, spec) {\n spec = resolveMode(spec);\n var mfactory = modes[spec.name];\n if (!mfactory) { return getMode(options, \"text/plain\") }\n var modeObj = mfactory(options, spec);\n if (modeExtensions.hasOwnProperty(spec.name)) {\n var exts = modeExtensions[spec.name];\n for (var prop in exts) {\n if (!exts.hasOwnProperty(prop)) { continue }\n if (modeObj.hasOwnProperty(prop)) { modeObj[\"_\" + prop] = modeObj[prop]; }\n modeObj[prop] = exts[prop];\n }\n }\n modeObj.name = spec.name;\n if (spec.helperType) { modeObj.helperType = spec.helperType; }\n if (spec.modeProps) { for (var prop$1 in spec.modeProps)\n { modeObj[prop$1] = spec.modeProps[prop$1]; } }\n\n return modeObj\n }\n\n // This can be used to attach properties to mode objects from\n // outside the actual mode definition.\n var modeExtensions = {};\n function extendMode(mode, properties) {\n var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : (modeExtensions[mode] = {});\n copyObj(properties, exts);\n }\n\n function copyState(mode, state) {\n if (state === true) { return state }\n if (mode.copyState) { return mode.copyState(state) }\n var nstate = {};\n for (var n in state) {\n var val = state[n];\n if (val instanceof Array) { val = val.concat([]); }\n nstate[n] = val;\n }\n return nstate\n }\n\n // Given a mode and a state (for that mode), find the inner mode and\n // state at the position that the state refers to.\n function innerMode(mode, state) {\n var info;\n while (mode.innerMode) {\n info = mode.innerMode(state);\n if (!info || info.mode == mode) { break }\n state = info.state;\n mode = info.mode;\n }\n return info || {mode: mode, state: state}\n }\n\n function startState(mode, a1, a2) {\n return mode.startState ? mode.startState(a1, a2) : true\n }\n\n // STRING STREAM\n\n // Fed to the mode parsers, provides helper functions to make\n // parsers more succinct.\n\n var StringStream = function(string, tabSize, lineOracle) {\n this.pos = this.start = 0;\n this.string = string;\n this.tabSize = tabSize || 8;\n this.lastColumnPos = this.lastColumnValue = 0;\n this.lineStart = 0;\n this.lineOracle = lineOracle;\n };\n\n StringStream.prototype.eol = function () {return this.pos >= this.string.length};\n StringStream.prototype.sol = function () {return this.pos == this.lineStart};\n StringStream.prototype.peek = function () {return this.string.charAt(this.pos) || undefined};\n StringStream.prototype.next = function () {\n if (this.pos < this.string.length)\n { return this.string.charAt(this.pos++) }\n };\n StringStream.prototype.eat = function (match) {\n var ch = this.string.charAt(this.pos);\n var ok;\n if (typeof match == \"string\") { ok = ch == match; }\n else { ok = ch && (match.test ? match.test(ch) : match(ch)); }\n if (ok) {++this.pos; return ch}\n };\n StringStream.prototype.eatWhile = function (match) {\n var start = this.pos;\n while (this.eat(match)){}\n return this.pos > start\n };\n StringStream.prototype.eatSpace = function () {\n var start = this.pos;\n while (/[\\s\\u00a0]/.test(this.string.charAt(this.pos))) { ++this.pos; }\n return this.pos > start\n };\n StringStream.prototype.skipToEnd = function () {this.pos = this.string.length;};\n StringStream.prototype.skipTo = function (ch) {\n var found = this.string.indexOf(ch, this.pos);\n if (found > -1) {this.pos = found; return true}\n };\n StringStream.prototype.backUp = function (n) {this.pos -= n;};\n StringStream.prototype.column = function () {\n if (this.lastColumnPos < this.start) {\n this.lastColumnValue = countColumn(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue);\n this.lastColumnPos = this.start;\n }\n return this.lastColumnValue - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0)\n };\n StringStream.prototype.indentation = function () {\n return countColumn(this.string, null, this.tabSize) -\n (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0)\n };\n StringStream.prototype.match = function (pattern, consume, caseInsensitive) {\n if (typeof pattern == \"string\") {\n var cased = function (str) { return caseInsensitive ? str.toLowerCase() : str; };\n var substr = this.string.substr(this.pos, pattern.length);\n if (cased(substr) == cased(pattern)) {\n if (consume !== false) { this.pos += pattern.length; }\n return true\n }\n } else {\n var match = this.string.slice(this.pos).match(pattern);\n if (match && match.index > 0) { return null }\n if (match && consume !== false) { this.pos += match[0].length; }\n return match\n }\n };\n StringStream.prototype.current = function (){return this.string.slice(this.start, this.pos)};\n StringStream.prototype.hideFirstChars = function (n, inner) {\n this.lineStart += n;\n try { return inner() }\n finally { this.lineStart -= n; }\n };\n StringStream.prototype.lookAhead = function (n) {\n var oracle = this.lineOracle;\n return oracle && oracle.lookAhead(n)\n };\n StringStream.prototype.baseToken = function () {\n var oracle = this.lineOracle;\n return oracle && oracle.baseToken(this.pos)\n };\n\n // Find the line object corresponding to the given line number.\n function getLine(doc, n) {\n n -= doc.first;\n if (n < 0 || n >= doc.size) { throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\") }\n var chunk = doc;\n while (!chunk.lines) {\n for (var i = 0;; ++i) {\n var child = chunk.children[i], sz = child.chunkSize();\n if (n < sz) { chunk = child; break }\n n -= sz;\n }\n }\n return chunk.lines[n]\n }\n\n // Get the part of a document between two positions, as an array of\n // strings.\n function getBetween(doc, start, end) {\n var out = [], n = start.line;\n doc.iter(start.line, end.line + 1, function (line) {\n var text = line.text;\n if (n == end.line) { text = text.slice(0, end.ch); }\n if (n == start.line) { text = text.slice(start.ch); }\n out.push(text);\n ++n;\n });\n return out\n }\n // Get the lines between from and to, as array of strings.\n function getLines(doc, from, to) {\n var out = [];\n doc.iter(from, to, function (line) { out.push(line.text); }); // iter aborts when callback returns truthy value\n return out\n }\n\n // Update the height of a line, propagating the height change\n // upwards to parent nodes.\n function updateLineHeight(line, height) {\n var diff = height - line.height;\n if (diff) { for (var n = line; n; n = n.parent) { n.height += diff; } }\n }\n\n // Given a line object, find its line number by walking up through\n // its parent links.\n function lineNo(line) {\n if (line.parent == null) { return null }\n var cur = line.parent, no = indexOf(cur.lines, line);\n for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {\n for (var i = 0;; ++i) {\n if (chunk.children[i] == cur) { break }\n no += chunk.children[i].chunkSize();\n }\n }\n return no + cur.first\n }\n\n // Find the line at the given vertical position, using the height\n // information in the document tree.\n function lineAtHeight(chunk, h) {\n var n = chunk.first;\n outer: do {\n for (var i$1 = 0; i$1 < chunk.children.length; ++i$1) {\n var child = chunk.children[i$1], ch = child.height;\n if (h < ch) { chunk = child; continue outer }\n h -= ch;\n n += child.chunkSize();\n }\n return n\n } while (!chunk.lines)\n var i = 0;\n for (; i < chunk.lines.length; ++i) {\n var line = chunk.lines[i], lh = line.height;\n if (h < lh) { break }\n h -= lh;\n }\n return n + i\n }\n\n function isLine(doc, l) {return l >= doc.first && l < doc.first + doc.size}\n\n function lineNumberFor(options, i) {\n return String(options.lineNumberFormatter(i + options.firstLineNumber))\n }\n\n // A Pos instance represents a position within the text.\n function Pos(line, ch, sticky) {\n if ( sticky === void 0 ) sticky = null;\n\n if (!(this instanceof Pos)) { return new Pos(line, ch, sticky) }\n this.line = line;\n this.ch = ch;\n this.sticky = sticky;\n }\n\n // Compare two positions, return 0 if they are the same, a negative\n // number when a is less, and a positive number otherwise.\n function cmp(a, b) { return a.line - b.line || a.ch - b.ch }\n\n function equalCursorPos(a, b) { return a.sticky == b.sticky && cmp(a, b) == 0 }\n\n function copyPos(x) {return Pos(x.line, x.ch)}\n function maxPos(a, b) { return cmp(a, b) < 0 ? b : a }\n function minPos(a, b) { return cmp(a, b) < 0 ? a : b }\n\n // Most of the external API clips given positions to make sure they\n // actually exist within the document.\n function clipLine(doc, n) {return Math.max(doc.first, Math.min(n, doc.first + doc.size - 1))}\n function clipPos(doc, pos) {\n if (pos.line < doc.first) { return Pos(doc.first, 0) }\n var last = doc.first + doc.size - 1;\n if (pos.line > last) { return Pos(last, getLine(doc, last).text.length) }\n return clipToLen(pos, getLine(doc, pos.line).text.length)\n }\n function clipToLen(pos, linelen) {\n var ch = pos.ch;\n if (ch == null || ch > linelen) { return Pos(pos.line, linelen) }\n else if (ch < 0) { return Pos(pos.line, 0) }\n else { return pos }\n }\n function clipPosArray(doc, array) {\n var out = [];\n for (var i = 0; i < array.length; i++) { out[i] = clipPos(doc, array[i]); }\n return out\n }\n\n var SavedContext = function(state, lookAhead) {\n this.state = state;\n this.lookAhead = lookAhead;\n };\n\n var Context = function(doc, state, line, lookAhead) {\n this.state = state;\n this.doc = doc;\n this.line = line;\n this.maxLookAhead = lookAhead || 0;\n this.baseTokens = null;\n this.baseTokenPos = 1;\n };\n\n Context.prototype.lookAhead = function (n) {\n var line = this.doc.getLine(this.line + n);\n if (line != null && n > this.maxLookAhead) { this.maxLookAhead = n; }\n return line\n };\n\n Context.prototype.baseToken = function (n) {\n if (!this.baseTokens) { return null }\n while (this.baseTokens[this.baseTokenPos] <= n)\n { this.baseTokenPos += 2; }\n var type = this.baseTokens[this.baseTokenPos + 1];\n return {type: type && type.replace(/( |^)overlay .*/, \"\"),\n size: this.baseTokens[this.baseTokenPos] - n}\n };\n\n Context.prototype.nextLine = function () {\n this.line++;\n if (this.maxLookAhead > 0) { this.maxLookAhead--; }\n };\n\n Context.fromSaved = function (doc, saved, line) {\n if (saved instanceof SavedContext)\n { return new Context(doc, copyState(doc.mode, saved.state), line, saved.lookAhead) }\n else\n { return new Context(doc, copyState(doc.mode, saved), line) }\n };\n\n Context.prototype.save = function (copy) {\n var state = copy !== false ? copyState(this.doc.mode, this.state) : this.state;\n return this.maxLookAhead > 0 ? new SavedContext(state, this.maxLookAhead) : state\n };\n\n\n // Compute a style array (an array starting with a mode generation\n // -- for invalidation -- followed by pairs of end positions and\n // style strings), which is used to highlight the tokens on the\n // line.\n function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }\n\n function getLineStyles(cm, line, updateFrontier) {\n if (!line.styles || line.styles[0] != cm.state.modeGen) {\n var context = getContextBefore(cm, lineNo(line));\n var resetState = line.text.length > cm.options.maxHighlightLength && copyState(cm.doc.mode, context.state);\n var result = highlightLine(cm, line, context);\n if (resetState) { context.state = resetState; }\n line.stateAfter = context.save(!resetState);\n line.styles = result.styles;\n if (result.classes) { line.styleClasses = result.classes; }\n else if (line.styleClasses) { line.styleClasses = null; }\n if (updateFrontier === cm.doc.highlightFrontier)\n { cm.doc.modeFrontier = Math.max(cm.doc.modeFrontier, ++cm.doc.highlightFrontier); }\n }\n return line.styles\n }\n\n function getContextBefore(cm, n, precise) {\n var doc = cm.doc, display = cm.display;\n if (!doc.mode.startState) { return new Context(doc, true, n) }\n var start = findStartLine(cm, n, precise);\n var saved = start > doc.first && getLine(doc, start - 1).stateAfter;\n var context = saved ? Context.fromSaved(doc, saved, start) : new Context(doc, startState(doc.mode), start);\n\n doc.iter(start, n, function (line) {\n processLine(cm, line.text, context);\n var pos = context.line;\n line.stateAfter = pos == n - 1 || pos % 5 == 0 || pos >= display.viewFrom && pos < display.viewTo ? context.save() : null;\n context.nextLine();\n });\n if (precise) { doc.modeFrontier = context.line; }\n return context\n }\n\n // Lightweight form of highlight -- proceed over this line and\n // update state, but don't save a style array. Used for lines that\n // aren't currently visible.\n function processLine(cm, text, context, startAt) {\n var mode = cm.doc.mode;\n var stream = new StringStream(text, cm.options.tabSize, context);\n stream.start = stream.pos = startAt || 0;\n if (text == \"\") { callBlankLine(mode, context.state); }\n while (!stream.eol()) {\n readToken(mode, stream, context.state);\n stream.start = stream.pos;\n }\n }\n\n function callBlankLine(mode, state) {\n if (mode.blankLine) { return mode.blankLine(state) }\n if (!mode.innerMode) { return }\n var inner = innerMode(mode, state);\n if (inner.mode.blankLine) { return inner.mode.blankLine(inner.state) }\n }\n\n function readToken(mode, stream, state, inner) {\n for (var i = 0; i < 10; i++) {\n if (inner) { inner[0] = innerMode(mode, state).mode; }\n var style = mode.token(stream, state);\n if (stream.pos > stream.start) { return style }\n }\n throw new Error(\"Mode \" + mode.name + \" failed to advance stream.\")\n }\n\n var Token = function(stream, type, state) {\n this.start = stream.start; this.end = stream.pos;\n this.string = stream.current();\n this.type = type || null;\n this.state = state;\n };\n\n // Utility for getTokenAt and getLineTokens\n function takeToken(cm, pos, precise, asArray) {\n var doc = cm.doc, mode = doc.mode, style;\n pos = clipPos(doc, pos);\n var line = getLine(doc, pos.line), context = getContextBefore(cm, pos.line, precise);\n var stream = new StringStream(line.text, cm.options.tabSize, context), tokens;\n if (asArray) { tokens = []; }\n while ((asArray || stream.pos < pos.ch) && !stream.eol()) {\n stream.start = stream.pos;\n style = readToken(mode, stream, context.state);\n if (asArray) { tokens.push(new Token(stream, style, copyState(doc.mode, context.state))); }\n }\n return asArray ? tokens : new Token(stream, style, context.state)\n }\n\n function extractLineClasses(type, output) {\n if (type) { for (;;) {\n var lineClass = type.match(/(?:^|\\s+)line-(background-)?(\\S+)/);\n if (!lineClass) { break }\n type = type.slice(0, lineClass.index) + type.slice(lineClass.index + lineClass[0].length);\n var prop = lineClass[1] ? \"bgClass\" : \"textClass\";\n if (output[prop] == null)\n { output[prop] = lineClass[2]; }\n else if (!(new RegExp(\"(?:^|\\\\s)\" + lineClass[2] + \"(?:$|\\\\s)\")).test(output[prop]))\n { output[prop] += \" \" + lineClass[2]; }\n } }\n return type\n }\n\n // Run the given mode's parser over a line, calling f for each token.\n function runMode(cm, text, mode, context, f, lineClasses, forceToEnd) {\n var flattenSpans = mode.flattenSpans;\n if (flattenSpans == null) { flattenSpans = cm.options.flattenSpans; }\n var curStart = 0, curStyle = null;\n var stream = new StringStream(text, cm.options.tabSize, context), style;\n var inner = cm.options.addModeClass && [null];\n if (text == \"\") { extractLineClasses(callBlankLine(mode, context.state), lineClasses); }\n while (!stream.eol()) {\n if (stream.pos > cm.options.maxHighlightLength) {\n flattenSpans = false;\n if (forceToEnd) { processLine(cm, text, context, stream.pos); }\n stream.pos = text.length;\n style = null;\n } else {\n style = extractLineClasses(readToken(mode, stream, context.state, inner), lineClasses);\n }\n if (inner) {\n var mName = inner[0].name;\n if (mName) { style = \"m-\" + (style ? mName + \" \" + style : mName); }\n }\n if (!flattenSpans || curStyle != style) {\n while (curStart < stream.start) {\n curStart = Math.min(stream.start, curStart + 5000);\n f(curStart, curStyle);\n }\n curStyle = style;\n }\n stream.start = stream.pos;\n }\n while (curStart < stream.pos) {\n // Webkit seems to refuse to render text nodes longer than 57444\n // characters, and returns inaccurate measurements in nodes\n // starting around 5000 chars.\n var pos = Math.min(stream.pos, curStart + 5000);\n f(pos, curStyle);\n curStart = pos;\n }\n }\n\n // Finds the line to start with when starting a parse. Tries to\n // find a line with a stateAfter, so that it can start with a\n // valid state. If that fails, it returns the line with the\n // smallest indentation, which tends to need the least context to\n // parse correctly.\n function findStartLine(cm, n, precise) {\n var minindent, minline, doc = cm.doc;\n var lim = precise ? -1 : n - (cm.doc.mode.innerMode ? 1000 : 100);\n for (var search = n; search > lim; --search) {\n if (search <= doc.first) { return doc.first }\n var line = getLine(doc, search - 1), after = line.stateAfter;\n if (after && (!precise || search + (after instanceof SavedContext ? after.lookAhead : 0) <= doc.modeFrontier))\n { return search }\n var indented = countColumn(line.text, null, cm.options.tabSize);\n if (minline == null || minindent > indented) {\n minline = search - 1;\n minindent = indented;\n }\n }\n return minline\n }\n\n function retreatFrontier(doc, n) {\n doc.modeFrontier = Math.min(doc.modeFrontier, n);\n if (doc.highlightFrontier < n - 10) { return }\n var start = doc.first;\n for (var line = n - 1; line > start; line--) {\n var saved = getLine(doc, line).stateAfter;\n // change is on 3\n // state on line 1 looked ahead 2 -- so saw 3\n // test 1 + 2 < 3 should cover this\n if (saved && (!(saved instanceof SavedContext) || line + saved.lookAhead < n)) {\n start = line + 1;\n break\n }\n }\n doc.highlightFrontier = Math.min(doc.highlightFrontier, start);\n }\n\n // Optimize some code when these features are not used.\n var sawReadOnlySpans = false, sawCollapsedSpans = false;\n\n function seeReadOnlySpans() {\n sawReadOnlySpans = true;\n }\n\n function seeCollapsedSpans() {\n sawCollapsedSpans = true;\n }\n\n // TEXTMARKER SPANS\n\n function MarkedSpan(marker, from, to) {\n this.marker = marker;\n this.from = from; this.to = to;\n }\n\n // Search an array of spans for a span matching the given marker.\n function getMarkedSpanFor(spans, marker) {\n if (spans) { for (var i = 0; i < spans.length; ++i) {\n var span = spans[i];\n if (span.marker == marker) { return span }\n } }\n }\n\n // Remove a span from an array, returning undefined if no spans are\n // left (we don't store arrays for lines without spans).\n function removeMarkedSpan(spans, span) {\n var r;\n for (var i = 0; i < spans.length; ++i)\n { if (spans[i] != span) { (r || (r = [])).push(spans[i]); } }\n return r\n }\n\n // Add a span to a line.\n function addMarkedSpan(line, span, op) {\n var inThisOp = op && window.WeakSet && (op.markedSpans || (op.markedSpans = new WeakSet));\n if (inThisOp && line.markedSpans && inThisOp.has(line.markedSpans)) {\n line.markedSpans.push(span);\n } else {\n line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];\n if (inThisOp) { inThisOp.add(line.markedSpans); }\n }\n span.marker.attachLine(line);\n }\n\n // Used for the algorithm that adjusts markers for a change in the\n // document. These functions cut an array of spans at a given\n // character position, returning an array of remaining chunks (or\n // undefined if nothing remains).\n function markedSpansBefore(old, startCh, isInsert) {\n var nw;\n if (old) { for (var i = 0; i < old.length; ++i) {\n var span = old[i], marker = span.marker;\n var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);\n if (startsBefore || span.from == startCh && marker.type == \"bookmark\" && (!isInsert || !span.marker.insertLeft)) {\n var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh)\n ;(nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to));\n }\n } }\n return nw\n }\n function markedSpansAfter(old, endCh, isInsert) {\n var nw;\n if (old) { for (var i = 0; i < old.length; ++i) {\n var span = old[i], marker = span.marker;\n var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh);\n if (endsAfter || span.from == endCh && marker.type == \"bookmark\" && (!isInsert || span.marker.insertLeft)) {\n var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh)\n ;(nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh,\n span.to == null ? null : span.to - endCh));\n }\n } }\n return nw\n }\n\n // Given a change object, compute the new set of marker spans that\n // cover the line in which the change took place. Removes spans\n // entirely within the change, reconnects spans belonging to the\n // same marker that appear on both sides of the change, and cuts off\n // spans partially within the change. Returns an array of span\n // arrays with one element for each line in (after) the change.\n function stretchSpansOverChange(doc, change) {\n if (change.full) { return null }\n var oldFirst = isLine(doc, change.from.line) && getLine(doc, change.from.line).markedSpans;\n var oldLast = isLine(doc, change.to.line) && getLine(doc, change.to.line).markedSpans;\n if (!oldFirst && !oldLast) { return null }\n\n var startCh = change.from.ch, endCh = change.to.ch, isInsert = cmp(change.from, change.to) == 0;\n // Get the spans that 'stick out' on both sides\n var first = markedSpansBefore(oldFirst, startCh, isInsert);\n var last = markedSpansAfter(oldLast, endCh, isInsert);\n\n // Next, merge those two ends\n var sameLine = change.text.length == 1, offset = lst(change.text).length + (sameLine ? startCh : 0);\n if (first) {\n // Fix up .to properties of first\n for (var i = 0; i < first.length; ++i) {\n var span = first[i];\n if (span.to == null) {\n var found = getMarkedSpanFor(last, span.marker);\n if (!found) { span.to = startCh; }\n else if (sameLine) { span.to = found.to == null ? null : found.to + offset; }\n }\n }\n }\n if (last) {\n // Fix up .from in last (or move them into first in case of sameLine)\n for (var i$1 = 0; i$1 < last.length; ++i$1) {\n var span$1 = last[i$1];\n if (span$1.to != null) { span$1.to += offset; }\n if (span$1.from == null) {\n var found$1 = getMarkedSpanFor(first, span$1.marker);\n if (!found$1) {\n span$1.from = offset;\n if (sameLine) { (first || (first = [])).push(span$1); }\n }\n } else {\n span$1.from += offset;\n if (sameLine) { (first || (first = [])).push(span$1); }\n }\n }\n }\n // Make sure we didn't create any zero-length spans\n if (first) { first = clearEmptySpans(first); }\n if (last && last != first) { last = clearEmptySpans(last); }\n\n var newMarkers = [first];\n if (!sameLine) {\n // Fill gap with whole-line-spans\n var gap = change.text.length - 2, gapMarkers;\n if (gap > 0 && first)\n { for (var i$2 = 0; i$2 < first.length; ++i$2)\n { if (first[i$2].to == null)\n { (gapMarkers || (gapMarkers = [])).push(new MarkedSpan(first[i$2].marker, null, null)); } } }\n for (var i$3 = 0; i$3 < gap; ++i$3)\n { newMarkers.push(gapMarkers); }\n newMarkers.push(last);\n }\n return newMarkers\n }\n\n // Remove spans that are empty and don't have a clearWhenEmpty\n // option of false.\n function clearEmptySpans(spans) {\n for (var i = 0; i < spans.length; ++i) {\n var span = spans[i];\n if (span.from != null && span.from == span.to && span.marker.clearWhenEmpty !== false)\n { spans.splice(i--, 1); }\n }\n if (!spans.length) { return null }\n return spans\n }\n\n // Used to 'clip' out readOnly ranges when making a change.\n function removeReadOnlyRanges(doc, from, to) {\n var markers = null;\n doc.iter(from.line, to.line + 1, function (line) {\n if (line.markedSpans) { for (var i = 0; i < line.markedSpans.length; ++i) {\n var mark = line.markedSpans[i].marker;\n if (mark.readOnly && (!markers || indexOf(markers, mark) == -1))\n { (markers || (markers = [])).push(mark); }\n } }\n });\n if (!markers) { return null }\n var parts = [{from: from, to: to}];\n for (var i = 0; i < markers.length; ++i) {\n var mk = markers[i], m = mk.find(0);\n for (var j = 0; j < parts.length; ++j) {\n var p = parts[j];\n if (cmp(p.to, m.from) < 0 || cmp(p.from, m.to) > 0) { continue }\n var newParts = [j, 1], dfrom = cmp(p.from, m.from), dto = cmp(p.to, m.to);\n if (dfrom < 0 || !mk.inclusiveLeft && !dfrom)\n { newParts.push({from: p.from, to: m.from}); }\n if (dto > 0 || !mk.inclusiveRight && !dto)\n { newParts.push({from: m.to, to: p.to}); }\n parts.splice.apply(parts, newParts);\n j += newParts.length - 3;\n }\n }\n return parts\n }\n\n // Connect or disconnect spans from a line.\n function detachMarkedSpans(line) {\n var spans = line.markedSpans;\n if (!spans) { return }\n for (var i = 0; i < spans.length; ++i)\n { spans[i].marker.detachLine(line); }\n line.markedSpans = null;\n }\n function attachMarkedSpans(line, spans) {\n if (!spans) { return }\n for (var i = 0; i < spans.length; ++i)\n { spans[i].marker.attachLine(line); }\n line.markedSpans = spans;\n }\n\n // Helpers used when computing which overlapping collapsed span\n // counts as the larger one.\n function extraLeft(marker) { return marker.inclusiveLeft ? -1 : 0 }\n function extraRight(marker) { return marker.inclusiveRight ? 1 : 0 }\n\n // Returns a number indicating which of two overlapping collapsed\n // spans is larger (and thus includes the other). Falls back to\n // comparing ids when the spans cover exactly the same range.\n function compareCollapsedMarkers(a, b) {\n var lenDiff = a.lines.length - b.lines.length;\n if (lenDiff != 0) { return lenDiff }\n var aPos = a.find(), bPos = b.find();\n var fromCmp = cmp(aPos.from, bPos.from) || extraLeft(a) - extraLeft(b);\n if (fromCmp) { return -fromCmp }\n var toCmp = cmp(aPos.to, bPos.to) || extraRight(a) - extraRight(b);\n if (toCmp) { return toCmp }\n return b.id - a.id\n }\n\n // Find out whether a line ends or starts in a collapsed span. If\n // so, return the marker for that span.\n function collapsedSpanAtSide(line, start) {\n var sps = sawCollapsedSpans && line.markedSpans, found;\n if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) {\n sp = sps[i];\n if (sp.marker.collapsed && (start ? sp.from : sp.to) == null &&\n (!found || compareCollapsedMarkers(found, sp.marker) < 0))\n { found = sp.marker; }\n } }\n return found\n }\n function collapsedSpanAtStart(line) { return collapsedSpanAtSide(line, true) }\n function collapsedSpanAtEnd(line) { return collapsedSpanAtSide(line, false) }\n\n function collapsedSpanAround(line, ch) {\n var sps = sawCollapsedSpans && line.markedSpans, found;\n if (sps) { for (var i = 0; i < sps.length; ++i) {\n var sp = sps[i];\n if (sp.marker.collapsed && (sp.from == null || sp.from < ch) && (sp.to == null || sp.to > ch) &&\n (!found || compareCollapsedMarkers(found, sp.marker) < 0)) { found = sp.marker; }\n } }\n return found\n }\n\n // Test whether there exists a collapsed span that partially\n // overlaps (covers the start or end, but not both) of a new span.\n // Such overlap is not allowed.\n function conflictingCollapsedRange(doc, lineNo, from, to, marker) {\n var line = getLine(doc, lineNo);\n var sps = sawCollapsedSpans && line.markedSpans;\n if (sps) { for (var i = 0; i < sps.length; ++i) {\n var sp = sps[i];\n if (!sp.marker.collapsed) { continue }\n var found = sp.marker.find(0);\n var fromCmp = cmp(found.from, from) || extraLeft(sp.marker) - extraLeft(marker);\n var toCmp = cmp(found.to, to) || extraRight(sp.marker) - extraRight(marker);\n if (fromCmp >= 0 && toCmp <= 0 || fromCmp <= 0 && toCmp >= 0) { continue }\n if (fromCmp <= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.to, from) >= 0 : cmp(found.to, from) > 0) ||\n fromCmp >= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.from, to) <= 0 : cmp(found.from, to) < 0))\n { return true }\n } }\n }\n\n // A visual line is a line as drawn on the screen. Folding, for\n // example, can cause multiple logical lines to appear on the same\n // visual line. This finds the start of the visual line that the\n // given line is part of (usually that is the line itself).\n function visualLine(line) {\n var merged;\n while (merged = collapsedSpanAtStart(line))\n { line = merged.find(-1, true).line; }\n return line\n }\n\n function visualLineEnd(line) {\n var merged;\n while (merged = collapsedSpanAtEnd(line))\n { line = merged.find(1, true).line; }\n return line\n }\n\n // Returns an array of logical lines that continue the visual line\n // started by the argument, or undefined if there are no such lines.\n function visualLineContinued(line) {\n var merged, lines;\n while (merged = collapsedSpanAtEnd(line)) {\n line = merged.find(1, true).line\n ;(lines || (lines = [])).push(line);\n }\n return lines\n }\n\n // Get the line number of the start of the visual line that the\n // given line number is part of.\n function visualLineNo(doc, lineN) {\n var line = getLine(doc, lineN), vis = visualLine(line);\n if (line == vis) { return lineN }\n return lineNo(vis)\n }\n\n // Get the line number of the start of the next visual line after\n // the given line.\n function visualLineEndNo(doc, lineN) {\n if (lineN > doc.lastLine()) { return lineN }\n var line = getLine(doc, lineN), merged;\n if (!lineIsHidden(doc, line)) { return lineN }\n while (merged = collapsedSpanAtEnd(line))\n { line = merged.find(1, true).line; }\n return lineNo(line) + 1\n }\n\n // Compute whether a line is hidden. Lines count as hidden when they\n // are part of a visual line that starts with another line, or when\n // they are entirely covered by collapsed, non-widget span.\n function lineIsHidden(doc, line) {\n var sps = sawCollapsedSpans && line.markedSpans;\n if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) {\n sp = sps[i];\n if (!sp.marker.collapsed) { continue }\n if (sp.from == null) { return true }\n if (sp.marker.widgetNode) { continue }\n if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))\n { return true }\n } }\n }\n function lineIsHiddenInner(doc, line, span) {\n if (span.to == null) {\n var end = span.marker.find(1, true);\n return lineIsHiddenInner(doc, end.line, getMarkedSpanFor(end.line.markedSpans, span.marker))\n }\n if (span.marker.inclusiveRight && span.to == line.text.length)\n { return true }\n for (var sp = (void 0), i = 0; i < line.markedSpans.length; ++i) {\n sp = line.markedSpans[i];\n if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&\n (sp.to == null || sp.to != span.from) &&\n (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&\n lineIsHiddenInner(doc, line, sp)) { return true }\n }\n }\n\n // Find the height above the given line.\n function heightAtLine(lineObj) {\n lineObj = visualLine(lineObj);\n\n var h = 0, chunk = lineObj.parent;\n for (var i = 0; i < chunk.lines.length; ++i) {\n var line = chunk.lines[i];\n if (line == lineObj) { break }\n else { h += line.height; }\n }\n for (var p = chunk.parent; p; chunk = p, p = chunk.parent) {\n for (var i$1 = 0; i$1 < p.children.length; ++i$1) {\n var cur = p.children[i$1];\n if (cur == chunk) { break }\n else { h += cur.height; }\n }\n }\n return h\n }\n\n // Compute the character length of a line, taking into account\n // collapsed ranges (see markText) that might hide parts, and join\n // other lines onto it.\n function lineLength(line) {\n if (line.height == 0) { return 0 }\n var len = line.text.length, merged, cur = line;\n while (merged = collapsedSpanAtStart(cur)) {\n var found = merged.find(0, true);\n cur = found.from.line;\n len += found.from.ch - found.to.ch;\n }\n cur = line;\n while (merged = collapsedSpanAtEnd(cur)) {\n var found$1 = merged.find(0, true);\n len -= cur.text.length - found$1.from.ch;\n cur = found$1.to.line;\n len += cur.text.length - found$1.to.ch;\n }\n return len\n }\n\n // Find the longest line in the document.\n function findMaxLine(cm) {\n var d = cm.display, doc = cm.doc;\n d.maxLine = getLine(doc, doc.first);\n d.maxLineLength = lineLength(d.maxLine);\n d.maxLineChanged = true;\n doc.iter(function (line) {\n var len = lineLength(line);\n if (len > d.maxLineLength) {\n d.maxLineLength = len;\n d.maxLine = line;\n }\n });\n }\n\n // LINE DATA STRUCTURE\n\n // Line objects. These hold state related to a line, including\n // highlighting info (the styles array).\n var Line = function(text, markedSpans, estimateHeight) {\n this.text = text;\n attachMarkedSpans(this, markedSpans);\n this.height = estimateHeight ? estimateHeight(this) : 1;\n };\n\n Line.prototype.lineNo = function () { return lineNo(this) };\n eventMixin(Line);\n\n // Change the content (text, markers) of a line. Automatically\n // invalidates cached information and tries to re-estimate the\n // line's height.\n function updateLine(line, text, markedSpans, estimateHeight) {\n line.text = text;\n if (line.stateAfter) { line.stateAfter = null; }\n if (line.styles) { line.styles = null; }\n if (line.order != null) { line.order = null; }\n detachMarkedSpans(line);\n attachMarkedSpans(line, markedSpans);\n var estHeight = estimateHeight ? estimateHeight(line) : 1;\n if (estHeight != line.height) { updateLineHeight(line, estHeight); }\n }\n\n // Detach a line from the document tree and its markers.\n function cleanUpLine(line) {\n line.parent = null;\n detachMarkedSpans(line);\n }\n\n // Convert a style as returned by a mode (either null, or a string\n // containing one or more styles) to a CSS style. This is cached,\n // and also looks for line-wide styles.\n var styleToClassCache = {}, styleToClassCacheWithMode = {};\n function interpretTokenStyle(style, options) {\n if (!style || /^\\s*$/.test(style)) { return null }\n var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache;\n return cache[style] ||\n (cache[style] = style.replace(/\\S+/g, \"cm-$&\"))\n }\n\n // Render the DOM representation of the text of a line. Also builds\n // up a 'line map', which points at the DOM nodes that represent\n // specific stretches of text, and is used by the measuring code.\n // The returned object contains the DOM node, this map, and\n // information about line-wide styles that were set by the mode.\n function buildLineContent(cm, lineView) {\n // The padding-right forces the element to have a 'border', which\n // is needed on Webkit to be able to get line-level bounding\n // rectangles for it (in measureChar).\n var content = eltP(\"span\", null, null, webkit ? \"padding-right: .1px\" : null);\n var builder = {pre: eltP(\"pre\", [content], \"CodeMirror-line\"), content: content,\n col: 0, pos: 0, cm: cm,\n trailingSpace: false,\n splitSpaces: cm.getOption(\"lineWrapping\")};\n lineView.measure = {};\n\n // Iterate over the logical lines that make up this visual line.\n for (var i = 0; i <= (lineView.rest ? lineView.rest.length : 0); i++) {\n var line = i ? lineView.rest[i - 1] : lineView.line, order = (void 0);\n builder.pos = 0;\n builder.addToken = buildToken;\n // Optionally wire in some hacks into the token-rendering\n // algorithm, to deal with browser quirks.\n if (hasBadBidiRects(cm.display.measure) && (order = getOrder(line, cm.doc.direction)))\n { builder.addToken = buildTokenBadBidi(builder.addToken, order); }\n builder.map = [];\n var allowFrontierUpdate = lineView != cm.display.externalMeasured && lineNo(line);\n insertLineContent(line, builder, getLineStyles(cm, line, allowFrontierUpdate));\n if (line.styleClasses) {\n if (line.styleClasses.bgClass)\n { builder.bgClass = joinClasses(line.styleClasses.bgClass, builder.bgClass || \"\"); }\n if (line.styleClasses.textClass)\n { builder.textClass = joinClasses(line.styleClasses.textClass, builder.textClass || \"\"); }\n }\n\n // Ensure at least a single node is present, for measuring.\n if (builder.map.length == 0)\n { builder.map.push(0, 0, builder.content.appendChild(zeroWidthElement(cm.display.measure))); }\n\n // Store the map and a cache object for the current logical line\n if (i == 0) {\n lineView.measure.map = builder.map;\n lineView.measure.cache = {};\n } else {\n (lineView.measure.maps || (lineView.measure.maps = [])).push(builder.map)\n ;(lineView.measure.caches || (lineView.measure.caches = [])).push({});\n }\n }\n\n // See issue #2901\n if (webkit) {\n var last = builder.content.lastChild;\n if (/\\bcm-tab\\b/.test(last.className) || (last.querySelector && last.querySelector(\".cm-tab\")))\n { builder.content.className = \"cm-tab-wrap-hack\"; }\n }\n\n signal(cm, \"renderLine\", cm, lineView.line, builder.pre);\n if (builder.pre.className)\n { builder.textClass = joinClasses(builder.pre.className, builder.textClass || \"\"); }\n\n return builder\n }\n\n function defaultSpecialCharPlaceholder(ch) {\n var token = elt(\"span\", \"\\u2022\", \"cm-invalidchar\");\n token.title = \"\\\\u\" + ch.charCodeAt(0).toString(16);\n token.setAttribute(\"aria-label\", token.title);\n return token\n }\n\n // Build up the DOM representation for a single token, and add it to\n // the line map. Takes care to render special characters separately.\n function buildToken(builder, text, style, startStyle, endStyle, css, attributes) {\n if (!text) { return }\n var displayText = builder.splitSpaces ? splitSpaces(text, builder.trailingSpace) : text;\n var special = builder.cm.state.specialChars, mustWrap = false;\n var content;\n if (!special.test(text)) {\n builder.col += text.length;\n content = document.createTextNode(displayText);\n builder.map.push(builder.pos, builder.pos + text.length, content);\n if (ie && ie_version < 9) { mustWrap = true; }\n builder.pos += text.length;\n } else {\n content = document.createDocumentFragment();\n var pos = 0;\n while (true) {\n special.lastIndex = pos;\n var m = special.exec(text);\n var skipped = m ? m.index - pos : text.length - pos;\n if (skipped) {\n var txt = document.createTextNode(displayText.slice(pos, pos + skipped));\n if (ie && ie_version < 9) { content.appendChild(elt(\"span\", [txt])); }\n else { content.appendChild(txt); }\n builder.map.push(builder.pos, builder.pos + skipped, txt);\n builder.col += skipped;\n builder.pos += skipped;\n }\n if (!m) { break }\n pos += skipped + 1;\n var txt$1 = (void 0);\n if (m[0] == \"\\t\") {\n var tabSize = builder.cm.options.tabSize, tabWidth = tabSize - builder.col % tabSize;\n txt$1 = content.appendChild(elt(\"span\", spaceStr(tabWidth), \"cm-tab\"));\n txt$1.setAttribute(\"role\", \"presentation\");\n txt$1.setAttribute(\"cm-text\", \"\\t\");\n builder.col += tabWidth;\n } else if (m[0] == \"\\r\" || m[0] == \"\\n\") {\n txt$1 = content.appendChild(elt(\"span\", m[0] == \"\\r\" ? \"\\u240d\" : \"\\u2424\", \"cm-invalidchar\"));\n txt$1.setAttribute(\"cm-text\", m[0]);\n builder.col += 1;\n } else {\n txt$1 = builder.cm.options.specialCharPlaceholder(m[0]);\n txt$1.setAttribute(\"cm-text\", m[0]);\n if (ie && ie_version < 9) { content.appendChild(elt(\"span\", [txt$1])); }\n else { content.appendChild(txt$1); }\n builder.col += 1;\n }\n builder.map.push(builder.pos, builder.pos + 1, txt$1);\n builder.pos++;\n }\n }\n builder.trailingSpace = displayText.charCodeAt(text.length - 1) == 32;\n if (style || startStyle || endStyle || mustWrap || css || attributes) {\n var fullStyle = style || \"\";\n if (startStyle) { fullStyle += startStyle; }\n if (endStyle) { fullStyle += endStyle; }\n var token = elt(\"span\", [content], fullStyle, css);\n if (attributes) {\n for (var attr in attributes) { if (attributes.hasOwnProperty(attr) && attr != \"style\" && attr != \"class\")\n { token.setAttribute(attr, attributes[attr]); } }\n }\n return builder.content.appendChild(token)\n }\n builder.content.appendChild(content);\n }\n\n // Change some spaces to NBSP to prevent the browser from collapsing\n // trailing spaces at the end of a line when rendering text (issue #1362).\n function splitSpaces(text, trailingBefore) {\n if (text.length > 1 && !/ /.test(text)) { return text }\n var spaceBefore = trailingBefore, result = \"\";\n for (var i = 0; i < text.length; i++) {\n var ch = text.charAt(i);\n if (ch == \" \" && spaceBefore && (i == text.length - 1 || text.charCodeAt(i + 1) == 32))\n { ch = \"\\u00a0\"; }\n result += ch;\n spaceBefore = ch == \" \";\n }\n return result\n }\n\n // Work around nonsense dimensions being reported for stretches of\n // right-to-left text.\n function buildTokenBadBidi(inner, order) {\n return function (builder, text, style, startStyle, endStyle, css, attributes) {\n style = style ? style + \" cm-force-border\" : \"cm-force-border\";\n var start = builder.pos, end = start + text.length;\n for (;;) {\n // Find the part that overlaps with the start of this text\n var part = (void 0);\n for (var i = 0; i < order.length; i++) {\n part = order[i];\n if (part.to > start && part.from <= start) { break }\n }\n if (part.to >= end) { return inner(builder, text, style, startStyle, endStyle, css, attributes) }\n inner(builder, text.slice(0, part.to - start), style, startStyle, null, css, attributes);\n startStyle = null;\n text = text.slice(part.to - start);\n start = part.to;\n }\n }\n }\n\n function buildCollapsedSpan(builder, size, marker, ignoreWidget) {\n var widget = !ignoreWidget && marker.widgetNode;\n if (widget) { builder.map.push(builder.pos, builder.pos + size, widget); }\n if (!ignoreWidget && builder.cm.display.input.needsContentAttribute) {\n if (!widget)\n { widget = builder.content.appendChild(document.createElement(\"span\")); }\n widget.setAttribute(\"cm-marker\", marker.id);\n }\n if (widget) {\n builder.cm.display.input.setUneditable(widget);\n builder.content.appendChild(widget);\n }\n builder.pos += size;\n builder.trailingSpace = false;\n }\n\n // Outputs a number of spans to make up a line, taking highlighting\n // and marked text into account.\n function insertLineContent(line, builder, styles) {\n var spans = line.markedSpans, allText = line.text, at = 0;\n if (!spans) {\n for (var i$1 = 1; i$1 < styles.length; i$1+=2)\n { builder.addToken(builder, allText.slice(at, at = styles[i$1]), interpretTokenStyle(styles[i$1+1], builder.cm.options)); }\n return\n }\n\n var len = allText.length, pos = 0, i = 1, text = \"\", style, css;\n var nextChange = 0, spanStyle, spanEndStyle, spanStartStyle, collapsed, attributes;\n for (;;) {\n if (nextChange == pos) { // Update current marker set\n spanStyle = spanEndStyle = spanStartStyle = css = \"\";\n attributes = null;\n collapsed = null; nextChange = Infinity;\n var foundBookmarks = [], endStyles = (void 0);\n for (var j = 0; j < spans.length; ++j) {\n var sp = spans[j], m = sp.marker;\n if (m.type == \"bookmark\" && sp.from == pos && m.widgetNode) {\n foundBookmarks.push(m);\n } else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {\n if (sp.to != null && sp.to != pos && nextChange > sp.to) {\n nextChange = sp.to;\n spanEndStyle = \"\";\n }\n if (m.className) { spanStyle += \" \" + m.className; }\n if (m.css) { css = (css ? css + \";\" : \"\") + m.css; }\n if (m.startStyle && sp.from == pos) { spanStartStyle += \" \" + m.startStyle; }\n if (m.endStyle && sp.to == nextChange) { (endStyles || (endStyles = [])).push(m.endStyle, sp.to); }\n // support for the old title property\n // https://github.com/codemirror/CodeMirror/pull/5673\n if (m.title) { (attributes || (attributes = {})).title = m.title; }\n if (m.attributes) {\n for (var attr in m.attributes)\n { (attributes || (attributes = {}))[attr] = m.attributes[attr]; }\n }\n if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0))\n { collapsed = sp; }\n } else if (sp.from > pos && nextChange > sp.from) {\n nextChange = sp.from;\n }\n }\n if (endStyles) { for (var j$1 = 0; j$1 < endStyles.length; j$1 += 2)\n { if (endStyles[j$1 + 1] == nextChange) { spanEndStyle += \" \" + endStyles[j$1]; } } }\n\n if (!collapsed || collapsed.from == pos) { for (var j$2 = 0; j$2 < foundBookmarks.length; ++j$2)\n { buildCollapsedSpan(builder, 0, foundBookmarks[j$2]); } }\n if (collapsed && (collapsed.from || 0) == pos) {\n buildCollapsedSpan(builder, (collapsed.to == null ? len + 1 : collapsed.to) - pos,\n collapsed.marker, collapsed.from == null);\n if (collapsed.to == null) { return }\n if (collapsed.to == pos) { collapsed = false; }\n }\n }\n if (pos >= len) { break }\n\n var upto = Math.min(len, nextChange);\n while (true) {\n if (text) {\n var end = pos + text.length;\n if (!collapsed) {\n var tokenText = end > upto ? text.slice(0, upto - pos) : text;\n builder.addToken(builder, tokenText, style ? style + spanStyle : spanStyle,\n spanStartStyle, pos + tokenText.length == nextChange ? spanEndStyle : \"\", css, attributes);\n }\n if (end >= upto) {text = text.slice(upto - pos); pos = upto; break}\n pos = end;\n spanStartStyle = \"\";\n }\n text = allText.slice(at, at = styles[i++]);\n style = interpretTokenStyle(styles[i++], builder.cm.options);\n }\n }\n }\n\n\n // These objects are used to represent the visible (currently drawn)\n // part of the document. A LineView may correspond to multiple\n // logical lines, if those are connected by collapsed ranges.\n function LineView(doc, line, lineN) {\n // The starting line\n this.line = line;\n // Continuing lines, if any\n this.rest = visualLineContinued(line);\n // Number of logical lines in this visual line\n this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;\n this.node = this.text = null;\n this.hidden = lineIsHidden(doc, line);\n }\n\n // Create a range of LineView objects for the given lines.\n function buildViewArray(cm, from, to) {\n var array = [], nextPos;\n for (var pos = from; pos < to; pos = nextPos) {\n var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);\n nextPos = pos + view.size;\n array.push(view);\n }\n return array\n }\n\n var operationGroup = null;\n\n function pushOperation(op) {\n if (operationGroup) {\n operationGroup.ops.push(op);\n } else {\n op.ownsGroup = operationGroup = {\n ops: [op],\n delayedCallbacks: []\n };\n }\n }\n\n function fireCallbacksForOps(group) {\n // Calls delayed callbacks and cursorActivity handlers until no\n // new ones appear\n var callbacks = group.delayedCallbacks, i = 0;\n do {\n for (; i < callbacks.length; i++)\n { callbacks[i].call(null); }\n for (var j = 0; j < group.ops.length; j++) {\n var op = group.ops[j];\n if (op.cursorActivityHandlers)\n { while (op.cursorActivityCalled < op.cursorActivityHandlers.length)\n { op.cursorActivityHandlers[op.cursorActivityCalled++].call(null, op.cm); } }\n }\n } while (i < callbacks.length)\n }\n\n function finishOperation(op, endCb) {\n var group = op.ownsGroup;\n if (!group) { return }\n\n try { fireCallbacksForOps(group); }\n finally {\n operationGroup = null;\n endCb(group);\n }\n }\n\n var orphanDelayedCallbacks = null;\n\n // Often, we want to signal events at a point where we are in the\n // middle of some work, but don't want the handler to start calling\n // other methods on the editor, which might be in an inconsistent\n // state or simply not expect any other events to happen.\n // signalLater looks whether there are any handlers, and schedules\n // them to be executed when the last operation ends, or, if no\n // operation is active, when a timeout fires.\n function signalLater(emitter, type /*, values...*/) {\n var arr = getHandlers(emitter, type);\n if (!arr.length) { return }\n var args = Array.prototype.slice.call(arguments, 2), list;\n if (operationGroup) {\n list = operationGroup.delayedCallbacks;\n } else if (orphanDelayedCallbacks) {\n list = orphanDelayedCallbacks;\n } else {\n list = orphanDelayedCallbacks = [];\n setTimeout(fireOrphanDelayed, 0);\n }\n var loop = function ( i ) {\n list.push(function () { return arr[i].apply(null, args); });\n };\n\n for (var i = 0; i < arr.length; ++i)\n loop( i );\n }\n\n function fireOrphanDelayed() {\n var delayed = orphanDelayedCallbacks;\n orphanDelayedCallbacks = null;\n for (var i = 0; i < delayed.length; ++i) { delayed[i](); }\n }\n\n // When an aspect of a line changes, a string is added to\n // lineView.changes. This updates the relevant part of the line's\n // DOM structure.\n function updateLineForChanges(cm, lineView, lineN, dims) {\n for (var j = 0; j < lineView.changes.length; j++) {\n var type = lineView.changes[j];\n if (type == \"text\") { updateLineText(cm, lineView); }\n else if (type == \"gutter\") { updateLineGutter(cm, lineView, lineN, dims); }\n else if (type == \"class\") { updateLineClasses(cm, lineView); }\n else if (type == \"widget\") { updateLineWidgets(cm, lineView, dims); }\n }\n lineView.changes = null;\n }\n\n // Lines with gutter elements, widgets or a background class need to\n // be wrapped, and have the extra elements added to the wrapper div\n function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }\n\n function updateLineBackground(cm, lineView) {\n var cls = lineView.bgClass ? lineView.bgClass + \" \" + (lineView.line.bgClass || \"\") : lineView.line.bgClass;\n if (cls) { cls += \" CodeMirror-linebackground\"; }\n if (lineView.background) {\n if (cls) { lineView.background.className = cls; }\n else { lineView.background.parentNode.removeChild(lineView.background); lineView.background = null; }\n } else if (cls) {\n var wrap = ensureLineWrapped(lineView);\n lineView.background = wrap.insertBefore(elt(\"div\", null, cls), wrap.firstChild);\n cm.display.input.setUneditable(lineView.background);\n }\n }\n\n // Wrapper around buildLineContent which will reuse the structure\n // in display.externalMeasured when possible.\n function getLineContent(cm, lineView) {\n var ext = cm.display.externalMeasured;\n if (ext && ext.line == lineView.line) {\n cm.display.externalMeasured = null;\n lineView.measure = ext.measure;\n return ext.built\n }\n return buildLineContent(cm, lineView)\n }\n\n // Redraw the line's text. Interacts with the background and text\n // classes because the mode may output tokens that influence these\n // classes.\n function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }\n\n function updateLineClasses(cm, lineView) {\n updateLineBackground(cm, lineView);\n if (lineView.line.wrapClass)\n { ensureLineWrapped(lineView).className = lineView.line.wrapClass; }\n else if (lineView.node != lineView.text)\n { lineView.node.className = \"\"; }\n var textClass = lineView.textClass ? lineView.textClass + \" \" + (lineView.line.textClass || \"\") : lineView.line.textClass;\n lineView.text.className = textClass || \"\";\n }\n\n function updateLineGutter(cm, lineView, lineN, dims) {\n if (lineView.gutter) {\n lineView.node.removeChild(lineView.gutter);\n lineView.gutter = null;\n }\n if (lineView.gutterBackground) {\n lineView.node.removeChild(lineView.gutterBackground);\n lineView.gutterBackground = null;\n }\n if (lineView.line.gutterClass) {\n var wrap = ensureLineWrapped(lineView);\n lineView.gutterBackground = elt(\"div\", null, \"CodeMirror-gutter-background \" + lineView.line.gutterClass,\n (\"left: \" + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + \"px; width: \" + (dims.gutterTotalWidth) + \"px\"));\n cm.display.input.setUneditable(lineView.gutterBackground);\n wrap.insertBefore(lineView.gutterBackground, lineView.text);\n }\n var markers = lineView.line.gutterMarkers;\n if (cm.options.lineNumbers || markers) {\n var wrap$1 = ensureLineWrapped(lineView);\n var gutterWrap = lineView.gutter = elt(\"div\", null, \"CodeMirror-gutter-wrapper\", (\"left: \" + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + \"px\"));\n gutterWrap.setAttribute(\"aria-hidden\", \"true\");\n cm.display.input.setUneditable(gutterWrap);\n wrap$1.insertBefore(gutterWrap, lineView.text);\n if (lineView.line.gutterClass)\n { gutterWrap.className += \" \" + lineView.line.gutterClass; }\n if (cm.options.lineNumbers && (!markers || !markers[\"CodeMirror-linenumbers\"]))\n { lineView.lineNumber = gutterWrap.appendChild(\n elt(\"div\", lineNumberFor(cm.options, lineN),\n \"CodeMirror-linenumber CodeMirror-gutter-elt\",\n (\"left: \" + (dims.gutterLeft[\"CodeMirror-linenumbers\"]) + \"px; width: \" + (cm.display.lineNumInnerWidth) + \"px\"))); }\n if (markers) { for (var k = 0; k < cm.display.gutterSpecs.length; ++k) {\n var id = cm.display.gutterSpecs[k].className, found = markers.hasOwnProperty(id) && markers[id];\n if (found)\n { gutterWrap.appendChild(elt(\"div\", [found], \"CodeMirror-gutter-elt\",\n (\"left: \" + (dims.gutterLeft[id]) + \"px; width: \" + (dims.gutterWidth[id]) + \"px\"))); }\n } }\n }\n }\n\n function updateLineWidgets(cm, lineView, dims) {\n if (lineView.alignable) { lineView.alignable = null; }\n var isWidget = classTest(\"CodeMirror-linewidget\");\n for (var node = lineView.node.firstChild, next = (void 0); node; node = next) {\n next = node.nextSibling;\n if (isWidget.test(node.className)) { lineView.node.removeChild(node); }\n }\n insertLineWidgets(cm, lineView, dims);\n }\n\n // Build a line's DOM representation from scratch\n function buildLineElement(cm, lineView, lineN, dims) {\n var built = getLineContent(cm, lineView);\n lineView.text = lineView.node = built.pre;\n if (built.bgClass) { lineView.bgClass = built.bgClass; }\n if (built.textClass) { lineView.textClass = built.textClass; }\n\n updateLineClasses(cm, lineView);\n updateLineGutter(cm, lineView, lineN, dims);\n insertLineWidgets(cm, lineView, dims);\n return lineView.node\n }\n\n // A lineView may contain multiple logical lines (when merged by\n // collapsed spans). The widgets for all of them need to be drawn.\n function insertLineWidgets(cm, lineView, dims) {\n insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);\n if (lineView.rest) { for (var i = 0; i < lineView.rest.length; i++)\n { insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false); } }\n }\n\n function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {\n if (!line.widgets) { return }\n var wrap = ensureLineWrapped(lineView);\n for (var i = 0, ws = line.widgets; i < ws.length; ++i) {\n var widget = ws[i], node = elt(\"div\", [widget.node], \"CodeMirror-linewidget\" + (widget.className ? \" \" + widget.className : \"\"));\n if (!widget.handleMouseEvents) { node.setAttribute(\"cm-ignore-events\", \"true\"); }\n positionLineWidget(widget, node, lineView, dims);\n cm.display.input.setUneditable(node);\n if (allowAbove && widget.above)\n { wrap.insertBefore(node, lineView.gutter || lineView.text); }\n else\n { wrap.appendChild(node); }\n signalLater(widget, \"redraw\");\n }\n }\n\n function positionLineWidget(widget, node, lineView, dims) {\n if (widget.noHScroll) {\n (lineView.alignable || (lineView.alignable = [])).push(node);\n var width = dims.wrapperWidth;\n node.style.left = dims.fixedPos + \"px\";\n if (!widget.coverGutter) {\n width -= dims.gutterTotalWidth;\n node.style.paddingLeft = dims.gutterTotalWidth + \"px\";\n }\n node.style.width = width + \"px\";\n }\n if (widget.coverGutter) {\n node.style.zIndex = 5;\n node.style.position = \"relative\";\n if (!widget.noHScroll) { node.style.marginLeft = -dims.gutterTotalWidth + \"px\"; }\n }\n }\n\n function widgetHeight(widget) {\n if (widget.height != null) { return widget.height }\n var cm = widget.doc.cm;\n if (!cm) { return 0 }\n if (!contains(document.body, widget.node)) {\n var parentStyle = \"position: relative;\";\n if (widget.coverGutter)\n { parentStyle += \"margin-left: -\" + cm.display.gutters.offsetWidth + \"px;\"; }\n if (widget.noHScroll)\n { parentStyle += \"width: \" + cm.display.wrapper.clientWidth + \"px;\"; }\n removeChildrenAndAdd(cm.display.measure, elt(\"div\", [widget.node], null, parentStyle));\n }\n return widget.height = widget.node.parentNode.offsetHeight\n }\n\n // Return true when the given mouse event happened in a widget\n function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }\n\n // POSITION MEASUREMENT\n\n function paddingTop(display) {return display.lineSpace.offsetTop}\n function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight}\n function paddingH(display) {\n if (display.cachedPaddingH) { return display.cachedPaddingH }\n var e = removeChildrenAndAdd(display.measure, elt(\"pre\", \"x\", \"CodeMirror-line-like\"));\n var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;\n var data = {left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight)};\n if (!isNaN(data.left) && !isNaN(data.right)) { display.cachedPaddingH = data; }\n return data\n }\n\n function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth }\n function displayWidth(cm) {\n return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth\n }\n function displayHeight(cm) {\n return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight\n }\n\n // Ensure the lineView.wrapping.heights array is populated. This is\n // an array of bottom offsets for the lines that make up a drawn\n // line. When lineWrapping is on, there might be more than one\n // height.\n function ensureLineHeights(cm, lineView, rect) {\n var wrapping = cm.options.lineWrapping;\n var curWidth = wrapping && displayWidth(cm);\n if (!lineView.measure.heights || wrapping && lineView.measure.width != curWidth) {\n var heights = lineView.measure.heights = [];\n if (wrapping) {\n lineView.measure.width = curWidth;\n var rects = lineView.text.firstChild.getClientRects();\n for (var i = 0; i < rects.length - 1; i++) {\n var cur = rects[i], next = rects[i + 1];\n if (Math.abs(cur.bottom - next.bottom) > 2)\n { heights.push((cur.bottom + next.top) / 2 - rect.top); }\n }\n }\n heights.push(rect.bottom - rect.top);\n }\n }\n\n // Find a line map (mapping character offsets to text nodes) and a\n // measurement cache for the given line number. (A line view might\n // contain multiple lines when collapsed ranges are present.)\n function mapFromLineView(lineView, line, lineN) {\n if (lineView.line == line)\n { return {map: lineView.measure.map, cache: lineView.measure.cache} }\n if (lineView.rest) {\n for (var i = 0; i < lineView.rest.length; i++)\n { if (lineView.rest[i] == line)\n { return {map: lineView.measure.maps[i], cache: lineView.measure.caches[i]} } }\n for (var i$1 = 0; i$1 < lineView.rest.length; i$1++)\n { if (lineNo(lineView.rest[i$1]) > lineN)\n { return {map: lineView.measure.maps[i$1], cache: lineView.measure.caches[i$1], before: true} } }\n }\n }\n\n // Render a line into the hidden node display.externalMeasured. Used\n // when measurement is needed for a line that's not in the viewport.\n function updateExternalMeasurement(cm, line) {\n line = visualLine(line);\n var lineN = lineNo(line);\n var view = cm.display.externalMeasured = new LineView(cm.doc, line, lineN);\n view.lineN = lineN;\n var built = view.built = buildLineContent(cm, view);\n view.text = built.pre;\n removeChildrenAndAdd(cm.display.lineMeasure, built.pre);\n return view\n }\n\n // Get a {top, bottom, left, right} box (in line-local coordinates)\n // for a given character.\n function measureChar(cm, line, ch, bias) {\n return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias)\n }\n\n // Find a line view that corresponds to the given line number.\n function findViewForLine(cm, lineN) {\n if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo)\n { return cm.display.view[findViewIndex(cm, lineN)] }\n var ext = cm.display.externalMeasured;\n if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size)\n { return ext }\n }\n\n // Measurement can be split in two steps, the set-up work that\n // applies to the whole line, and the measurement of the actual\n // character. Functions like coordsChar, that need to do a lot of\n // measurements in a row, can thus ensure that the set-up work is\n // only done once.\n function prepareMeasureForLine(cm, line) {\n var lineN = lineNo(line);\n var view = findViewForLine(cm, lineN);\n if (view && !view.text) {\n view = null;\n } else if (view && view.changes) {\n updateLineForChanges(cm, view, lineN, getDimensions(cm));\n cm.curOp.forceUpdate = true;\n }\n if (!view)\n { view = updateExternalMeasurement(cm, line); }\n\n var info = mapFromLineView(view, line, lineN);\n return {\n line: line, view: view, rect: null,\n map: info.map, cache: info.cache, before: info.before,\n hasHeights: false\n }\n }\n\n // Given a prepared measurement object, measures the position of an\n // actual character (or fetches it from the cache).\n function measureCharPrepared(cm, prepared, ch, bias, varHeight) {\n if (prepared.before) { ch = -1; }\n var key = ch + (bias || \"\"), found;\n if (prepared.cache.hasOwnProperty(key)) {\n found = prepared.cache[key];\n } else {\n if (!prepared.rect)\n { prepared.rect = prepared.view.text.getBoundingClientRect(); }\n if (!prepared.hasHeights) {\n ensureLineHeights(cm, prepared.view, prepared.rect);\n prepared.hasHeights = true;\n }\n found = measureCharInner(cm, prepared, ch, bias);\n if (!found.bogus) { prepared.cache[key] = found; }\n }\n return {left: found.left, right: found.right,\n top: varHeight ? found.rtop : found.top,\n bottom: varHeight ? found.rbottom : found.bottom}\n }\n\n var nullRect = {left: 0, right: 0, top: 0, bottom: 0};\n\n function nodeAndOffsetInLineMap(map, ch, bias) {\n var node, start, end, collapse, mStart, mEnd;\n // First, search the line map for the text node corresponding to,\n // or closest to, the target character.\n for (var i = 0; i < map.length; i += 3) {\n mStart = map[i];\n mEnd = map[i + 1];\n if (ch < mStart) {\n start = 0; end = 1;\n collapse = \"left\";\n } else if (ch < mEnd) {\n start = ch - mStart;\n end = start + 1;\n } else if (i == map.length - 3 || ch == mEnd && map[i + 3] > ch) {\n end = mEnd - mStart;\n start = end - 1;\n if (ch >= mEnd) { collapse = \"right\"; }\n }\n if (start != null) {\n node = map[i + 2];\n if (mStart == mEnd && bias == (node.insertLeft ? \"left\" : \"right\"))\n { collapse = bias; }\n if (bias == \"left\" && start == 0)\n { while (i && map[i - 2] == map[i - 3] && map[i - 1].insertLeft) {\n node = map[(i -= 3) + 2];\n collapse = \"left\";\n } }\n if (bias == \"right\" && start == mEnd - mStart)\n { while (i < map.length - 3 && map[i + 3] == map[i + 4] && !map[i + 5].insertLeft) {\n node = map[(i += 3) + 2];\n collapse = \"right\";\n } }\n break\n }\n }\n return {node: node, start: start, end: end, collapse: collapse, coverStart: mStart, coverEnd: mEnd}\n }\n\n function getUsefulRect(rects, bias) {\n var rect = nullRect;\n if (bias == \"left\") { for (var i = 0; i < rects.length; i++) {\n if ((rect = rects[i]).left != rect.right) { break }\n } } else { for (var i$1 = rects.length - 1; i$1 >= 0; i$1--) {\n if ((rect = rects[i$1]).left != rect.right) { break }\n } }\n return rect\n }\n\n function measureCharInner(cm, prepared, ch, bias) {\n var place = nodeAndOffsetInLineMap(prepared.map, ch, bias);\n var node = place.node, start = place.start, end = place.end, collapse = place.collapse;\n\n var rect;\n if (node.nodeType == 3) { // If it is a text node, use a range to retrieve the coordinates.\n for (var i$1 = 0; i$1 < 4; i$1++) { // Retry a maximum of 4 times when nonsense rectangles are returned\n while (start && isExtendingChar(prepared.line.text.charAt(place.coverStart + start))) { --start; }\n while (place.coverStart + end < place.coverEnd && isExtendingChar(prepared.line.text.charAt(place.coverStart + end))) { ++end; }\n if (ie && ie_version < 9 && start == 0 && end == place.coverEnd - place.coverStart)\n { rect = node.parentNode.getBoundingClientRect(); }\n else\n { rect = getUsefulRect(range(node, start, end).getClientRects(), bias); }\n if (rect.left || rect.right || start == 0) { break }\n end = start;\n start = start - 1;\n collapse = \"right\";\n }\n if (ie && ie_version < 11) { rect = maybeUpdateRectForZooming(cm.display.measure, rect); }\n } else { // If it is a widget, simply get the box for the whole widget.\n if (start > 0) { collapse = bias = \"right\"; }\n var rects;\n if (cm.options.lineWrapping && (rects = node.getClientRects()).length > 1)\n { rect = rects[bias == \"right\" ? rects.length - 1 : 0]; }\n else\n { rect = node.getBoundingClientRect(); }\n }\n if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) {\n var rSpan = node.parentNode.getClientRects()[0];\n if (rSpan)\n { rect = {left: rSpan.left, right: rSpan.left + charWidth(cm.display), top: rSpan.top, bottom: rSpan.bottom}; }\n else\n { rect = nullRect; }\n }\n\n var rtop = rect.top - prepared.rect.top, rbot = rect.bottom - prepared.rect.top;\n var mid = (rtop + rbot) / 2;\n var heights = prepared.view.measure.heights;\n var i = 0;\n for (; i < heights.length - 1; i++)\n { if (mid < heights[i]) { break } }\n var top = i ? heights[i - 1] : 0, bot = heights[i];\n var result = {left: (collapse == \"right\" ? rect.right : rect.left) - prepared.rect.left,\n right: (collapse == \"left\" ? rect.left : rect.right) - prepared.rect.left,\n top: top, bottom: bot};\n if (!rect.left && !rect.right) { result.bogus = true; }\n if (!cm.options.singleCursorHeightPerLine) { result.rtop = rtop; result.rbottom = rbot; }\n\n return result\n }\n\n // Work around problem with bounding client rects on ranges being\n // returned incorrectly when zoomed on IE10 and below.\n function maybeUpdateRectForZooming(measure, rect) {\n if (!window.screen || screen.logicalXDPI == null ||\n screen.logicalXDPI == screen.deviceXDPI || !hasBadZoomedRects(measure))\n { return rect }\n var scaleX = screen.logicalXDPI / screen.deviceXDPI;\n var scaleY = screen.logicalYDPI / screen.deviceYDPI;\n return {left: rect.left * scaleX, right: rect.right * scaleX,\n top: rect.top * scaleY, bottom: rect.bottom * scaleY}\n }\n\n function clearLineMeasurementCacheFor(lineView) {\n if (lineView.measure) {\n lineView.measure.cache = {};\n lineView.measure.heights = null;\n if (lineView.rest) { for (var i = 0; i < lineView.rest.length; i++)\n { lineView.measure.caches[i] = {}; } }\n }\n }\n\n function clearLineMeasurementCache(cm) {\n cm.display.externalMeasure = null;\n removeChildren(cm.display.lineMeasure);\n for (var i = 0; i < cm.display.view.length; i++)\n { clearLineMeasurementCacheFor(cm.display.view[i]); }\n }\n\n function clearCaches(cm) {\n clearLineMeasurementCache(cm);\n cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;\n if (!cm.options.lineWrapping) { cm.display.maxLineChanged = true; }\n cm.display.lineNumChars = null;\n }\n\n function pageScrollX(doc) {\n // Work around https://bugs.chromium.org/p/chromium/issues/detail?id=489206\n // which causes page_Offset and bounding client rects to use\n // different reference viewports and invalidate our calculations.\n if (chrome && android) { return -(doc.body.getBoundingClientRect().left - parseInt(getComputedStyle(doc.body).marginLeft)) }\n return doc.defaultView.pageXOffset || (doc.documentElement || doc.body).scrollLeft\n }\n function pageScrollY(doc) {\n if (chrome && android) { return -(doc.body.getBoundingClientRect().top - parseInt(getComputedStyle(doc.body).marginTop)) }\n return doc.defaultView.pageYOffset || (doc.documentElement || doc.body).scrollTop\n }\n\n function widgetTopHeight(lineObj) {\n var ref = visualLine(lineObj);\n var widgets = ref.widgets;\n var height = 0;\n if (widgets) { for (var i = 0; i < widgets.length; ++i) { if (widgets[i].above)\n { height += widgetHeight(widgets[i]); } } }\n return height\n }\n\n // Converts a {top, bottom, left, right} box from line-local\n // coordinates into another coordinate system. Context may be one of\n // \"line\", \"div\" (display.lineDiv), \"local\"./null (editor), \"window\",\n // or \"page\".\n function intoCoordSystem(cm, lineObj, rect, context, includeWidgets) {\n if (!includeWidgets) {\n var height = widgetTopHeight(lineObj);\n rect.top += height; rect.bottom += height;\n }\n if (context == \"line\") { return rect }\n if (!context) { context = \"local\"; }\n var yOff = heightAtLine(lineObj);\n if (context == \"local\") { yOff += paddingTop(cm.display); }\n else { yOff -= cm.display.viewOffset; }\n if (context == \"page\" || context == \"window\") {\n var lOff = cm.display.lineSpace.getBoundingClientRect();\n yOff += lOff.top + (context == \"window\" ? 0 : pageScrollY(doc(cm)));\n var xOff = lOff.left + (context == \"window\" ? 0 : pageScrollX(doc(cm)));\n rect.left += xOff; rect.right += xOff;\n }\n rect.top += yOff; rect.bottom += yOff;\n return rect\n }\n\n // Coverts a box from \"div\" coords to another coordinate system.\n // Context may be \"window\", \"page\", \"div\", or \"local\"./null.\n function fromCoordSystem(cm, coords, context) {\n if (context == \"div\") { return coords }\n var left = coords.left, top = coords.top;\n // First move into \"page\" coordinate system\n if (context == \"page\") {\n left -= pageScrollX(doc(cm));\n top -= pageScrollY(doc(cm));\n } else if (context == \"local\" || !context) {\n var localBox = cm.display.sizer.getBoundingClientRect();\n left += localBox.left;\n top += localBox.top;\n }\n\n var lineSpaceBox = cm.display.lineSpace.getBoundingClientRect();\n return {left: left - lineSpaceBox.left, top: top - lineSpaceBox.top}\n }\n\n function charCoords(cm, pos, context, lineObj, bias) {\n if (!lineObj) { lineObj = getLine(cm.doc, pos.line); }\n return intoCoordSystem(cm, lineObj, measureChar(cm, lineObj, pos.ch, bias), context)\n }\n\n // Returns a box for a given cursor position, which may have an\n // 'other' property containing the position of the secondary cursor\n // on a bidi boundary.\n // A cursor Pos(line, char, \"before\") is on the same visual line as `char - 1`\n // and after `char - 1` in writing order of `char - 1`\n // A cursor Pos(line, char, \"after\") is on the same visual line as `char`\n // and before `char` in writing order of `char`\n // Examples (upper-case letters are RTL, lower-case are LTR):\n // Pos(0, 1, ...)\n // before after\n // ab a|b a|b\n // aB a|B aB|\n // Ab |Ab A|b\n // AB B|A B|A\n // Every position after the last character on a line is considered to stick\n // to the last character on the line.\n function cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) {\n lineObj = lineObj || getLine(cm.doc, pos.line);\n if (!preparedMeasure) { preparedMeasure = prepareMeasureForLine(cm, lineObj); }\n function get(ch, right) {\n var m = measureCharPrepared(cm, preparedMeasure, ch, right ? \"right\" : \"left\", varHeight);\n if (right) { m.left = m.right; } else { m.right = m.left; }\n return intoCoordSystem(cm, lineObj, m, context)\n }\n var order = getOrder(lineObj, cm.doc.direction), ch = pos.ch, sticky = pos.sticky;\n if (ch >= lineObj.text.length) {\n ch = lineObj.text.length;\n sticky = \"before\";\n } else if (ch <= 0) {\n ch = 0;\n sticky = \"after\";\n }\n if (!order) { return get(sticky == \"before\" ? ch - 1 : ch, sticky == \"before\") }\n\n function getBidi(ch, partPos, invert) {\n var part = order[partPos], right = part.level == 1;\n return get(invert ? ch - 1 : ch, right != invert)\n }\n var partPos = getBidiPartAt(order, ch, sticky);\n var other = bidiOther;\n var val = getBidi(ch, partPos, sticky == \"before\");\n if (other != null) { val.other = getBidi(ch, other, sticky != \"before\"); }\n return val\n }\n\n // Used to cheaply estimate the coordinates for a position. Used for\n // intermediate scroll updates.\n function estimateCoords(cm, pos) {\n var left = 0;\n pos = clipPos(cm.doc, pos);\n if (!cm.options.lineWrapping) { left = charWidth(cm.display) * pos.ch; }\n var lineObj = getLine(cm.doc, pos.line);\n var top = heightAtLine(lineObj) + paddingTop(cm.display);\n return {left: left, right: left, top: top, bottom: top + lineObj.height}\n }\n\n // Positions returned by coordsChar contain some extra information.\n // xRel is the relative x position of the input coordinates compared\n // to the found position (so xRel > 0 means the coordinates are to\n // the right of the character position, for example). When outside\n // is true, that means the coordinates lie outside the line's\n // vertical range.\n function PosWithInfo(line, ch, sticky, outside, xRel) {\n var pos = Pos(line, ch, sticky);\n pos.xRel = xRel;\n if (outside) { pos.outside = outside; }\n return pos\n }\n\n // Compute the character position closest to the given coordinates.\n // Input must be lineSpace-local (\"div\" coordinate system).\n function coordsChar(cm, x, y) {\n var doc = cm.doc;\n y += cm.display.viewOffset;\n if (y < 0) { return PosWithInfo(doc.first, 0, null, -1, -1) }\n var lineN = lineAtHeight(doc, y), last = doc.first + doc.size - 1;\n if (lineN > last)\n { return PosWithInfo(doc.first + doc.size - 1, getLine(doc, last).text.length, null, 1, 1) }\n if (x < 0) { x = 0; }\n\n var lineObj = getLine(doc, lineN);\n for (;;) {\n var found = coordsCharInner(cm, lineObj, lineN, x, y);\n var collapsed = collapsedSpanAround(lineObj, found.ch + (found.xRel > 0 || found.outside > 0 ? 1 : 0));\n if (!collapsed) { return found }\n var rangeEnd = collapsed.find(1);\n if (rangeEnd.line == lineN) { return rangeEnd }\n lineObj = getLine(doc, lineN = rangeEnd.line);\n }\n }\n\n function wrappedLineExtent(cm, lineObj, preparedMeasure, y) {\n y -= widgetTopHeight(lineObj);\n var end = lineObj.text.length;\n var begin = findFirst(function (ch) { return measureCharPrepared(cm, preparedMeasure, ch - 1).bottom <= y; }, end, 0);\n end = findFirst(function (ch) { return measureCharPrepared(cm, preparedMeasure, ch).top > y; }, begin, end);\n return {begin: begin, end: end}\n }\n\n function wrappedLineExtentChar(cm, lineObj, preparedMeasure, target) {\n if (!preparedMeasure) { preparedMeasure = prepareMeasureForLine(cm, lineObj); }\n var targetTop = intoCoordSystem(cm, lineObj, measureCharPrepared(cm, preparedMeasure, target), \"line\").top;\n return wrappedLineExtent(cm, lineObj, preparedMeasure, targetTop)\n }\n\n // Returns true if the given side of a box is after the given\n // coordinates, in top-to-bottom, left-to-right order.\n function boxIsAfter(box, x, y, left) {\n return box.bottom <= y ? false : box.top > y ? true : (left ? box.left : box.right) > x\n }\n\n function coordsCharInner(cm, lineObj, lineNo, x, y) {\n // Move y into line-local coordinate space\n y -= heightAtLine(lineObj);\n var preparedMeasure = prepareMeasureForLine(cm, lineObj);\n // When directly calling `measureCharPrepared`, we have to adjust\n // for the widgets at this line.\n var widgetHeight = widgetTopHeight(lineObj);\n var begin = 0, end = lineObj.text.length, ltr = true;\n\n var order = getOrder(lineObj, cm.doc.direction);\n // If the line isn't plain left-to-right text, first figure out\n // which bidi section the coordinates fall into.\n if (order) {\n var part = (cm.options.lineWrapping ? coordsBidiPartWrapped : coordsBidiPart)\n (cm, lineObj, lineNo, preparedMeasure, order, x, y);\n ltr = part.level != 1;\n // The awkward -1 offsets are needed because findFirst (called\n // on these below) will treat its first bound as inclusive,\n // second as exclusive, but we want to actually address the\n // characters in the part's range\n begin = ltr ? part.from : part.to - 1;\n end = ltr ? part.to : part.from - 1;\n }\n\n // A binary search to find the first character whose bounding box\n // starts after the coordinates. If we run across any whose box wrap\n // the coordinates, store that.\n var chAround = null, boxAround = null;\n var ch = findFirst(function (ch) {\n var box = measureCharPrepared(cm, preparedMeasure, ch);\n box.top += widgetHeight; box.bottom += widgetHeight;\n if (!boxIsAfter(box, x, y, false)) { return false }\n if (box.top <= y && box.left <= x) {\n chAround = ch;\n boxAround = box;\n }\n return true\n }, begin, end);\n\n var baseX, sticky, outside = false;\n // If a box around the coordinates was found, use that\n if (boxAround) {\n // Distinguish coordinates nearer to the left or right side of the box\n var atLeft = x - boxAround.left < boxAround.right - x, atStart = atLeft == ltr;\n ch = chAround + (atStart ? 0 : 1);\n sticky = atStart ? \"after\" : \"before\";\n baseX = atLeft ? boxAround.left : boxAround.right;\n } else {\n // (Adjust for extended bound, if necessary.)\n if (!ltr && (ch == end || ch == begin)) { ch++; }\n // To determine which side to associate with, get the box to the\n // left of the character and compare it's vertical position to the\n // coordinates\n sticky = ch == 0 ? \"after\" : ch == lineObj.text.length ? \"before\" :\n (measureCharPrepared(cm, preparedMeasure, ch - (ltr ? 1 : 0)).bottom + widgetHeight <= y) == ltr ?\n \"after\" : \"before\";\n // Now get accurate coordinates for this place, in order to get a\n // base X position\n var coords = cursorCoords(cm, Pos(lineNo, ch, sticky), \"line\", lineObj, preparedMeasure);\n baseX = coords.left;\n outside = y < coords.top ? -1 : y >= coords.bottom ? 1 : 0;\n }\n\n ch = skipExtendingChars(lineObj.text, ch, 1);\n return PosWithInfo(lineNo, ch, sticky, outside, x - baseX)\n }\n\n function coordsBidiPart(cm, lineObj, lineNo, preparedMeasure, order, x, y) {\n // Bidi parts are sorted left-to-right, and in a non-line-wrapping\n // situation, we can take this ordering to correspond to the visual\n // ordering. This finds the first part whose end is after the given\n // coordinates.\n var index = findFirst(function (i) {\n var part = order[i], ltr = part.level != 1;\n return boxIsAfter(cursorCoords(cm, Pos(lineNo, ltr ? part.to : part.from, ltr ? \"before\" : \"after\"),\n \"line\", lineObj, preparedMeasure), x, y, true)\n }, 0, order.length - 1);\n var part = order[index];\n // If this isn't the first part, the part's start is also after\n // the coordinates, and the coordinates aren't on the same line as\n // that start, move one part back.\n if (index > 0) {\n var ltr = part.level != 1;\n var start = cursorCoords(cm, Pos(lineNo, ltr ? part.from : part.to, ltr ? \"after\" : \"before\"),\n \"line\", lineObj, preparedMeasure);\n if (boxIsAfter(start, x, y, true) && start.top > y)\n { part = order[index - 1]; }\n }\n return part\n }\n\n function coordsBidiPartWrapped(cm, lineObj, _lineNo, preparedMeasure, order, x, y) {\n // In a wrapped line, rtl text on wrapping boundaries can do things\n // that don't correspond to the ordering in our `order` array at\n // all, so a binary search doesn't work, and we want to return a\n // part that only spans one line so that the binary search in\n // coordsCharInner is safe. As such, we first find the extent of the\n // wrapped line, and then do a flat search in which we discard any\n // spans that aren't on the line.\n var ref = wrappedLineExtent(cm, lineObj, preparedMeasure, y);\n var begin = ref.begin;\n var end = ref.end;\n if (/\\s/.test(lineObj.text.charAt(end - 1))) { end--; }\n var part = null, closestDist = null;\n for (var i = 0; i < order.length; i++) {\n var p = order[i];\n if (p.from >= end || p.to <= begin) { continue }\n var ltr = p.level != 1;\n var endX = measureCharPrepared(cm, preparedMeasure, ltr ? Math.min(end, p.to) - 1 : Math.max(begin, p.from)).right;\n // Weigh against spans ending before this, so that they are only\n // picked if nothing ends after\n var dist = endX < x ? x - endX + 1e9 : endX - x;\n if (!part || closestDist > dist) {\n part = p;\n closestDist = dist;\n }\n }\n if (!part) { part = order[order.length - 1]; }\n // Clip the part to the wrapped line.\n if (part.from < begin) { part = {from: begin, to: part.to, level: part.level}; }\n if (part.to > end) { part = {from: part.from, to: end, level: part.level}; }\n return part\n }\n\n var measureText;\n // Compute the default text height.\n function textHeight(display) {\n if (display.cachedTextHeight != null) { return display.cachedTextHeight }\n if (measureText == null) {\n measureText = elt(\"pre\", null, \"CodeMirror-line-like\");\n // Measure a bunch of lines, for browsers that compute\n // fractional heights.\n for (var i = 0; i < 49; ++i) {\n measureText.appendChild(document.createTextNode(\"x\"));\n measureText.appendChild(elt(\"br\"));\n }\n measureText.appendChild(document.createTextNode(\"x\"));\n }\n removeChildrenAndAdd(display.measure, measureText);\n var height = measureText.offsetHeight / 50;\n if (height > 3) { display.cachedTextHeight = height; }\n removeChildren(display.measure);\n return height || 1\n }\n\n // Compute the default character width.\n function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }\n\n // Do a bulk-read of the DOM positions and sizes needed to draw the\n // view, so that we don't interleave reading and writing to the DOM.\n function getDimensions(cm) {\n var d = cm.display, left = {}, width = {};\n var gutterLeft = d.gutters.clientLeft;\n for (var n = d.gutters.firstChild, i = 0; n; n = n.nextSibling, ++i) {\n var id = cm.display.gutterSpecs[i].className;\n left[id] = n.offsetLeft + n.clientLeft + gutterLeft;\n width[id] = n.clientWidth;\n }\n return {fixedPos: compensateForHScroll(d),\n gutterTotalWidth: d.gutters.offsetWidth,\n gutterLeft: left,\n gutterWidth: width,\n wrapperWidth: d.wrapper.clientWidth}\n }\n\n // Computes display.scroller.scrollLeft + display.gutters.offsetWidth,\n // but using getBoundingClientRect to get a sub-pixel-accurate\n // result.\n function compensateForHScroll(display) {\n return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left\n }\n\n // Returns a function that estimates the height of a line, to use as\n // first approximation until the line becomes visible (and is thus\n // properly measurable).\n function estimateHeight(cm) {\n var th = textHeight(cm.display), wrapping = cm.options.lineWrapping;\n var perLine = wrapping && Math.max(5, cm.display.scroller.clientWidth / charWidth(cm.display) - 3);\n return function (line) {\n if (lineIsHidden(cm.doc, line)) { return 0 }\n\n var widgetsHeight = 0;\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++) {\n if (line.widgets[i].height) { widgetsHeight += line.widgets[i].height; }\n } }\n\n if (wrapping)\n { return widgetsHeight + (Math.ceil(line.text.length / perLine) || 1) * th }\n else\n { return widgetsHeight + th }\n }\n }\n\n function estimateLineHeights(cm) {\n var doc = cm.doc, est = estimateHeight(cm);\n doc.iter(function (line) {\n var estHeight = est(line);\n if (estHeight != line.height) { updateLineHeight(line, estHeight); }\n });\n }\n\n // Given a mouse event, find the corresponding position. If liberal\n // is false, it checks whether a gutter or scrollbar was clicked,\n // and returns null if it was. forRect is used by rectangular\n // selections, and tries to estimate a character position even for\n // coordinates beyond the right of the text.\n function posFromMouse(cm, e, liberal, forRect) {\n var display = cm.display;\n if (!liberal && e_target(e).getAttribute(\"cm-not-content\") == \"true\") { return null }\n\n var x, y, space = display.lineSpace.getBoundingClientRect();\n // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n try { x = e.clientX - space.left; y = e.clientY - space.top; }\n catch (e$1) { return null }\n var coords = coordsChar(cm, x, y), line;\n if (forRect && coords.xRel > 0 && (line = getLine(cm.doc, coords.line).text).length == coords.ch) {\n var colDiff = countColumn(line, line.length, cm.options.tabSize) - line.length;\n coords = Pos(coords.line, Math.max(0, Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) - colDiff));\n }\n return coords\n }\n\n // Find the view element corresponding to a given line. Return null\n // when the line isn't visible.\n function findViewIndex(cm, n) {\n if (n >= cm.display.viewTo) { return null }\n n -= cm.display.viewFrom;\n if (n < 0) { return null }\n var view = cm.display.view;\n for (var i = 0; i < view.length; i++) {\n n -= view[i].size;\n if (n < 0) { return i }\n }\n }\n\n // Updates the display.view data structure for a given change to the\n // document. From and to are in pre-change coordinates. Lendiff is\n // the amount of lines added or subtracted by the change. This is\n // used for changes that span multiple lines, or change the way\n // lines are divided into visual lines. regLineChange (below)\n // registers single-line changes.\n function regChange(cm, from, to, lendiff) {\n if (from == null) { from = cm.doc.first; }\n if (to == null) { to = cm.doc.first + cm.doc.size; }\n if (!lendiff) { lendiff = 0; }\n\n var display = cm.display;\n if (lendiff && to < display.viewTo &&\n (display.updateLineNumbers == null || display.updateLineNumbers > from))\n { display.updateLineNumbers = from; }\n\n cm.curOp.viewChanged = true;\n\n if (from >= display.viewTo) { // Change after\n if (sawCollapsedSpans && visualLineNo(cm.doc, from) < display.viewTo)\n { resetView(cm); }\n } else if (to <= display.viewFrom) { // Change before\n if (sawCollapsedSpans && visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom) {\n resetView(cm);\n } else {\n display.viewFrom += lendiff;\n display.viewTo += lendiff;\n }\n } else if (from <= display.viewFrom && to >= display.viewTo) { // Full overlap\n resetView(cm);\n } else if (from <= display.viewFrom) { // Top overlap\n var cut = viewCuttingPoint(cm, to, to + lendiff, 1);\n if (cut) {\n display.view = display.view.slice(cut.index);\n display.viewFrom = cut.lineN;\n display.viewTo += lendiff;\n } else {\n resetView(cm);\n }\n } else if (to >= display.viewTo) { // Bottom overlap\n var cut$1 = viewCuttingPoint(cm, from, from, -1);\n if (cut$1) {\n display.view = display.view.slice(0, cut$1.index);\n display.viewTo = cut$1.lineN;\n } else {\n resetView(cm);\n }\n } else { // Gap in the middle\n var cutTop = viewCuttingPoint(cm, from, from, -1);\n var cutBot = viewCuttingPoint(cm, to, to + lendiff, 1);\n if (cutTop && cutBot) {\n display.view = display.view.slice(0, cutTop.index)\n .concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN))\n .concat(display.view.slice(cutBot.index));\n display.viewTo += lendiff;\n } else {\n resetView(cm);\n }\n }\n\n var ext = display.externalMeasured;\n if (ext) {\n if (to < ext.lineN)\n { ext.lineN += lendiff; }\n else if (from < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n }\n }\n\n // Register a change to a single line. Type must be one of \"text\",\n // \"gutter\", \"class\", \"widget\"\n function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }\n\n // Clear the view.\n function resetView(cm) {\n cm.display.viewFrom = cm.display.viewTo = cm.doc.first;\n cm.display.view = [];\n cm.display.viewOffset = 0;\n }\n\n function viewCuttingPoint(cm, oldN, newN, dir) {\n var index = findViewIndex(cm, oldN), diff, view = cm.display.view;\n if (!sawCollapsedSpans || newN == cm.doc.first + cm.doc.size)\n { return {index: index, lineN: newN} }\n var n = cm.display.viewFrom;\n for (var i = 0; i < index; i++)\n { n += view[i].size; }\n if (n != oldN) {\n if (dir > 0) {\n if (index == view.length - 1) { return null }\n diff = (n + view[index].size) - oldN;\n index++;\n } else {\n diff = n - oldN;\n }\n oldN += diff; newN += diff;\n }\n while (visualLineNo(cm.doc, newN) != newN) {\n if (index == (dir < 0 ? 0 : view.length - 1)) { return null }\n newN += dir * view[index - (dir < 0 ? 1 : 0)].size;\n index += dir;\n }\n return {index: index, lineN: newN}\n }\n\n // Force the view to cover a given range, adding empty view element\n // or clipping off existing ones as needed.\n function adjustView(cm, from, to) {\n var display = cm.display, view = display.view;\n if (view.length == 0 || from >= display.viewTo || to <= display.viewFrom) {\n display.view = buildViewArray(cm, from, to);\n display.viewFrom = from;\n } else {\n if (display.viewFrom > from)\n { display.view = buildViewArray(cm, from, display.viewFrom).concat(display.view); }\n else if (display.viewFrom < from)\n { display.view = display.view.slice(findViewIndex(cm, from)); }\n display.viewFrom = from;\n if (display.viewTo < to)\n { display.view = display.view.concat(buildViewArray(cm, display.viewTo, to)); }\n else if (display.viewTo > to)\n { display.view = display.view.slice(0, findViewIndex(cm, to)); }\n }\n display.viewTo = to;\n }\n\n // Count the number of lines in the view whose DOM representation is\n // out of date (or nonexistent).\n function countDirtyView(cm) {\n var view = cm.display.view, dirty = 0;\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (!lineView.hidden && (!lineView.node || lineView.changes)) { ++dirty; }\n }\n return dirty\n }\n\n function updateSelection(cm) {\n cm.display.input.showSelection(cm.display.input.prepareSelection());\n }\n\n function prepareSelection(cm, primary) {\n if ( primary === void 0 ) primary = true;\n\n var doc = cm.doc, result = {};\n var curFragment = result.cursors = document.createDocumentFragment();\n var selFragment = result.selection = document.createDocumentFragment();\n\n var customCursor = cm.options.$customCursor;\n if (customCursor) { primary = true; }\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n if (!primary && i == doc.sel.primIndex) { continue }\n var range = doc.sel.ranges[i];\n if (range.from().line >= cm.display.viewTo || range.to().line < cm.display.viewFrom) { continue }\n var collapsed = range.empty();\n if (customCursor) {\n var head = customCursor(cm, range);\n if (head) { drawSelectionCursor(cm, head, curFragment); }\n } else if (collapsed || cm.options.showCursorWhenSelecting) {\n drawSelectionCursor(cm, range.head, curFragment);\n }\n if (!collapsed)\n { drawSelectionRange(cm, range, selFragment); }\n }\n return result\n }\n\n // Draws a cursor for the given range\n function drawSelectionCursor(cm, head, output) {\n var pos = cursorCoords(cm, head, \"div\", null, null, !cm.options.singleCursorHeightPerLine);\n\n var cursor = output.appendChild(elt(\"div\", \"\\u00a0\", \"CodeMirror-cursor\"));\n cursor.style.left = pos.left + \"px\";\n cursor.style.top = pos.top + \"px\";\n cursor.style.height = Math.max(0, pos.bottom - pos.top) * cm.options.cursorHeight + \"px\";\n\n if (/\\bcm-fat-cursor\\b/.test(cm.getWrapperElement().className)) {\n var charPos = charCoords(cm, head, \"div\", null, null);\n var width = charPos.right - charPos.left;\n cursor.style.width = (width > 0 ? width : cm.defaultCharWidth()) + \"px\";\n }\n\n if (pos.other) {\n // Secondary cursor, shown when on a 'jump' in bi-directional text\n var otherCursor = output.appendChild(elt(\"div\", \"\\u00a0\", \"CodeMirror-cursor CodeMirror-secondarycursor\"));\n otherCursor.style.display = \"\";\n otherCursor.style.left = pos.other.left + \"px\";\n otherCursor.style.top = pos.other.top + \"px\";\n otherCursor.style.height = (pos.other.bottom - pos.other.top) * .85 + \"px\";\n }\n }\n\n function cmpCoords(a, b) { return a.top - b.top || a.left - b.left }\n\n // Draws the given range as a highlighted selection\n function drawSelectionRange(cm, range, output) {\n var display = cm.display, doc = cm.doc;\n var fragment = document.createDocumentFragment();\n var padding = paddingH(cm.display), leftSide = padding.left;\n var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right;\n var docLTR = doc.direction == \"ltr\";\n\n function add(left, top, width, bottom) {\n if (top < 0) { top = 0; }\n top = Math.round(top);\n bottom = Math.round(bottom);\n fragment.appendChild(elt(\"div\", null, \"CodeMirror-selected\", (\"position: absolute; left: \" + left + \"px;\\n top: \" + top + \"px; width: \" + (width == null ? rightSide - left : width) + \"px;\\n height: \" + (bottom - top) + \"px\")));\n }\n\n function drawForLine(line, fromArg, toArg) {\n var lineObj = getLine(doc, line);\n var lineLen = lineObj.text.length;\n var start, end;\n function coords(ch, bias) {\n return charCoords(cm, Pos(line, ch), \"div\", lineObj, bias)\n }\n\n function wrapX(pos, dir, side) {\n var extent = wrappedLineExtentChar(cm, lineObj, null, pos);\n var prop = (dir == \"ltr\") == (side == \"after\") ? \"left\" : \"right\";\n var ch = side == \"after\" ? extent.begin : extent.end - (/\\s/.test(lineObj.text.charAt(extent.end - 1)) ? 2 : 1);\n return coords(ch, prop)[prop]\n }\n\n var order = getOrder(lineObj, doc.direction);\n iterateBidiSections(order, fromArg || 0, toArg == null ? lineLen : toArg, function (from, to, dir, i) {\n var ltr = dir == \"ltr\";\n var fromPos = coords(from, ltr ? \"left\" : \"right\");\n var toPos = coords(to - 1, ltr ? \"right\" : \"left\");\n\n var openStart = fromArg == null && from == 0, openEnd = toArg == null && to == lineLen;\n var first = i == 0, last = !order || i == order.length - 1;\n if (toPos.top - fromPos.top <= 3) { // Single line\n var openLeft = (docLTR ? openStart : openEnd) && first;\n var openRight = (docLTR ? openEnd : openStart) && last;\n var left = openLeft ? leftSide : (ltr ? fromPos : toPos).left;\n var right = openRight ? rightSide : (ltr ? toPos : fromPos).right;\n add(left, fromPos.top, right - left, fromPos.bottom);\n } else { // Multiple lines\n var topLeft, topRight, botLeft, botRight;\n if (ltr) {\n topLeft = docLTR && openStart && first ? leftSide : fromPos.left;\n topRight = docLTR ? rightSide : wrapX(from, dir, \"before\");\n botLeft = docLTR ? leftSide : wrapX(to, dir, \"after\");\n botRight = docLTR && openEnd && last ? rightSide : toPos.right;\n } else {\n topLeft = !docLTR ? leftSide : wrapX(from, dir, \"before\");\n topRight = !docLTR && openStart && first ? rightSide : fromPos.right;\n botLeft = !docLTR && openEnd && last ? leftSide : toPos.left;\n botRight = !docLTR ? rightSide : wrapX(to, dir, \"after\");\n }\n add(topLeft, fromPos.top, topRight - topLeft, fromPos.bottom);\n if (fromPos.bottom < toPos.top) { add(leftSide, fromPos.bottom, null, toPos.top); }\n add(botLeft, toPos.top, botRight - botLeft, toPos.bottom);\n }\n\n if (!start || cmpCoords(fromPos, start) < 0) { start = fromPos; }\n if (cmpCoords(toPos, start) < 0) { start = toPos; }\n if (!end || cmpCoords(fromPos, end) < 0) { end = fromPos; }\n if (cmpCoords(toPos, end) < 0) { end = toPos; }\n });\n return {start: start, end: end}\n }\n\n var sFrom = range.from(), sTo = range.to();\n if (sFrom.line == sTo.line) {\n drawForLine(sFrom.line, sFrom.ch, sTo.ch);\n } else {\n var fromLine = getLine(doc, sFrom.line), toLine = getLine(doc, sTo.line);\n var singleVLine = visualLine(fromLine) == visualLine(toLine);\n var leftEnd = drawForLine(sFrom.line, sFrom.ch, singleVLine ? fromLine.text.length + 1 : null).end;\n var rightStart = drawForLine(sTo.line, singleVLine ? 0 : null, sTo.ch).start;\n if (singleVLine) {\n if (leftEnd.top < rightStart.top - 2) {\n add(leftEnd.right, leftEnd.top, null, leftEnd.bottom);\n add(leftSide, rightStart.top, rightStart.left, rightStart.bottom);\n } else {\n add(leftEnd.right, leftEnd.top, rightStart.left - leftEnd.right, leftEnd.bottom);\n }\n }\n if (leftEnd.bottom < rightStart.top)\n { add(leftSide, leftEnd.bottom, null, rightStart.top); }\n }\n\n output.appendChild(fragment);\n }\n\n // Cursor-blinking\n function restartBlink(cm) {\n if (!cm.state.focused) { return }\n var display = cm.display;\n clearInterval(display.blinker);\n var on = true;\n display.cursorDiv.style.visibility = \"\";\n if (cm.options.cursorBlinkRate > 0)\n { display.blinker = setInterval(function () {\n if (!cm.hasFocus()) { onBlur(cm); }\n display.cursorDiv.style.visibility = (on = !on) ? \"\" : \"hidden\";\n }, cm.options.cursorBlinkRate); }\n else if (cm.options.cursorBlinkRate < 0)\n { display.cursorDiv.style.visibility = \"hidden\"; }\n }\n\n function ensureFocus(cm) {\n if (!cm.hasFocus()) {\n cm.display.input.focus();\n if (!cm.state.focused) { onFocus(cm); }\n }\n }\n\n function delayBlurEvent(cm) {\n cm.state.delayingBlurEvent = true;\n setTimeout(function () { if (cm.state.delayingBlurEvent) {\n cm.state.delayingBlurEvent = false;\n if (cm.state.focused) { onBlur(cm); }\n } }, 100);\n }\n\n function onFocus(cm, e) {\n if (cm.state.delayingBlurEvent && !cm.state.draggingText) { cm.state.delayingBlurEvent = false; }\n\n if (cm.options.readOnly == \"nocursor\") { return }\n if (!cm.state.focused) {\n signal(cm, \"focus\", cm, e);\n cm.state.focused = true;\n addClass(cm.display.wrapper, \"CodeMirror-focused\");\n // This test prevents this from firing when a context\n // menu is closed (since the input reset would kill the\n // select-all detection hack)\n if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) {\n cm.display.input.reset();\n if (webkit) { setTimeout(function () { return cm.display.input.reset(true); }, 20); } // Issue #1730\n }\n cm.display.input.receivedFocus();\n }\n restartBlink(cm);\n }\n function onBlur(cm, e) {\n if (cm.state.delayingBlurEvent) { return }\n\n if (cm.state.focused) {\n signal(cm, \"blur\", cm, e);\n cm.state.focused = false;\n rmClass(cm.display.wrapper, \"CodeMirror-focused\");\n }\n clearInterval(cm.display.blinker);\n setTimeout(function () { if (!cm.state.focused) { cm.display.shift = false; } }, 150);\n }\n\n // Read the actual heights of the rendered lines, and update their\n // stored heights to match.\n function updateHeightsInViewport(cm) {\n var display = cm.display;\n var prevBottom = display.lineDiv.offsetTop;\n var viewTop = Math.max(0, display.scroller.getBoundingClientRect().top);\n var oldHeight = display.lineDiv.getBoundingClientRect().top;\n var mustScroll = 0;\n for (var i = 0; i < display.view.length; i++) {\n var cur = display.view[i], wrapping = cm.options.lineWrapping;\n var height = (void 0), width = 0;\n if (cur.hidden) { continue }\n oldHeight += cur.line.height;\n if (ie && ie_version < 8) {\n var bot = cur.node.offsetTop + cur.node.offsetHeight;\n height = bot - prevBottom;\n prevBottom = bot;\n } else {\n var box = cur.node.getBoundingClientRect();\n height = box.bottom - box.top;\n // Check that lines don't extend past the right of the current\n // editor width\n if (!wrapping && cur.text.firstChild)\n { width = cur.text.firstChild.getBoundingClientRect().right - box.left - 1; }\n }\n var diff = cur.line.height - height;\n if (diff > .005 || diff < -.005) {\n if (oldHeight < viewTop) { mustScroll -= diff; }\n updateLineHeight(cur.line, height);\n updateWidgetHeight(cur.line);\n if (cur.rest) { for (var j = 0; j < cur.rest.length; j++)\n { updateWidgetHeight(cur.rest[j]); } }\n }\n if (width > cm.display.sizerWidth) {\n var chWidth = Math.ceil(width / charWidth(cm.display));\n if (chWidth > cm.display.maxLineLength) {\n cm.display.maxLineLength = chWidth;\n cm.display.maxLine = cur.line;\n cm.display.maxLineChanged = true;\n }\n }\n }\n if (Math.abs(mustScroll) > 2) { display.scroller.scrollTop += mustScroll; }\n }\n\n // Read and store the height of line widgets associated with the\n // given line.\n function updateWidgetHeight(line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; ++i) {\n var w = line.widgets[i], parent = w.node.parentNode;\n if (parent) { w.height = parent.offsetHeight; }\n } }\n }\n\n // Compute the lines that are visible in a given viewport (defaults\n // the the current scroll position). viewport may contain top,\n // height, and ensure (see op.scrollToPos) properties.\n function visibleLines(display, doc, viewport) {\n var top = viewport && viewport.top != null ? Math.max(0, viewport.top) : display.scroller.scrollTop;\n top = Math.floor(top - paddingTop(display));\n var bottom = viewport && viewport.bottom != null ? viewport.bottom : top + display.wrapper.clientHeight;\n\n var from = lineAtHeight(doc, top), to = lineAtHeight(doc, bottom);\n // Ensure is a {from: {line, ch}, to: {line, ch}} object, and\n // forces those lines into the viewport (if possible).\n if (viewport && viewport.ensure) {\n var ensureFrom = viewport.ensure.from.line, ensureTo = viewport.ensure.to.line;\n if (ensureFrom < from) {\n from = ensureFrom;\n to = lineAtHeight(doc, heightAtLine(getLine(doc, ensureFrom)) + display.wrapper.clientHeight);\n } else if (Math.min(ensureTo, doc.lastLine()) >= to) {\n from = lineAtHeight(doc, heightAtLine(getLine(doc, ensureTo)) - display.wrapper.clientHeight);\n to = ensureTo;\n }\n }\n return {from: from, to: Math.max(to, from + 1)}\n }\n\n // SCROLLING THINGS INTO VIEW\n\n // If an editor sits on the top or bottom of the window, partially\n // scrolled out of view, this ensures that the cursor is visible.\n function maybeScrollWindow(cm, rect) {\n if (signalDOMEvent(cm, \"scrollCursorIntoView\")) { return }\n\n var display = cm.display, box = display.sizer.getBoundingClientRect(), doScroll = null;\n var doc = display.wrapper.ownerDocument;\n if (rect.top + box.top < 0) { doScroll = true; }\n else if (rect.bottom + box.top > (doc.defaultView.innerHeight || doc.documentElement.clientHeight)) { doScroll = false; }\n if (doScroll != null && !phantom) {\n var scrollNode = elt(\"div\", \"\\u200b\", null, (\"position: absolute;\\n top: \" + (rect.top - display.viewOffset - paddingTop(cm.display)) + \"px;\\n height: \" + (rect.bottom - rect.top + scrollGap(cm) + display.barHeight) + \"px;\\n left: \" + (rect.left) + \"px; width: \" + (Math.max(2, rect.right - rect.left)) + \"px;\"));\n cm.display.lineSpace.appendChild(scrollNode);\n scrollNode.scrollIntoView(doScroll);\n cm.display.lineSpace.removeChild(scrollNode);\n }\n }\n\n // Scroll a given position into view (immediately), verifying that\n // it actually became visible (as line heights are accurately\n // measured, the position of something may 'drift' during drawing).\n function scrollPosIntoView(cm, pos, end, margin) {\n if (margin == null) { margin = 0; }\n var rect;\n if (!cm.options.lineWrapping && pos == end) {\n // Set pos and end to the cursor positions around the character pos sticks to\n // If pos.sticky == \"before\", that is around pos.ch - 1, otherwise around pos.ch\n // If pos == Pos(_, 0, \"before\"), pos and end are unchanged\n end = pos.sticky == \"before\" ? Pos(pos.line, pos.ch + 1, \"before\") : pos;\n pos = pos.ch ? Pos(pos.line, pos.sticky == \"before\" ? pos.ch - 1 : pos.ch, \"after\") : pos;\n }\n for (var limit = 0; limit < 5; limit++) {\n var changed = false;\n var coords = cursorCoords(cm, pos);\n var endCoords = !end || end == pos ? coords : cursorCoords(cm, end);\n rect = {left: Math.min(coords.left, endCoords.left),\n top: Math.min(coords.top, endCoords.top) - margin,\n right: Math.max(coords.left, endCoords.left),\n bottom: Math.max(coords.bottom, endCoords.bottom) + margin};\n var scrollPos = calculateScrollPos(cm, rect);\n var startTop = cm.doc.scrollTop, startLeft = cm.doc.scrollLeft;\n if (scrollPos.scrollTop != null) {\n updateScrollTop(cm, scrollPos.scrollTop);\n if (Math.abs(cm.doc.scrollTop - startTop) > 1) { changed = true; }\n }\n if (scrollPos.scrollLeft != null) {\n setScrollLeft(cm, scrollPos.scrollLeft);\n if (Math.abs(cm.doc.scrollLeft - startLeft) > 1) { changed = true; }\n }\n if (!changed) { break }\n }\n return rect\n }\n\n // Scroll a given set of coordinates into view (immediately).\n function scrollIntoView(cm, rect) {\n var scrollPos = calculateScrollPos(cm, rect);\n if (scrollPos.scrollTop != null) { updateScrollTop(cm, scrollPos.scrollTop); }\n if (scrollPos.scrollLeft != null) { setScrollLeft(cm, scrollPos.scrollLeft); }\n }\n\n // Calculate a new scroll position needed to scroll the given\n // rectangle into view. Returns an object with scrollTop and\n // scrollLeft properties. When these are undefined, the\n // vertical/horizontal position does not need to be adjusted.\n function calculateScrollPos(cm, rect) {\n var display = cm.display, snapMargin = textHeight(cm.display);\n if (rect.top < 0) { rect.top = 0; }\n var screentop = cm.curOp && cm.curOp.scrollTop != null ? cm.curOp.scrollTop : display.scroller.scrollTop;\n var screen = displayHeight(cm), result = {};\n if (rect.bottom - rect.top > screen) { rect.bottom = rect.top + screen; }\n var docBottom = cm.doc.height + paddingVert(display);\n var atTop = rect.top < snapMargin, atBottom = rect.bottom > docBottom - snapMargin;\n if (rect.top < screentop) {\n result.scrollTop = atTop ? 0 : rect.top;\n } else if (rect.bottom > screentop + screen) {\n var newTop = Math.min(rect.top, (atBottom ? docBottom : rect.bottom) - screen);\n if (newTop != screentop) { result.scrollTop = newTop; }\n }\n\n var gutterSpace = cm.options.fixedGutter ? 0 : display.gutters.offsetWidth;\n var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft - gutterSpace;\n var screenw = displayWidth(cm) - display.gutters.offsetWidth;\n var tooWide = rect.right - rect.left > screenw;\n if (tooWide) { rect.right = rect.left + screenw; }\n if (rect.left < 10)\n { result.scrollLeft = 0; }\n else if (rect.left < screenleft)\n { result.scrollLeft = Math.max(0, rect.left + gutterSpace - (tooWide ? 0 : 10)); }\n else if (rect.right > screenw + screenleft - 3)\n { result.scrollLeft = rect.right + (tooWide ? 0 : 10) - screenw; }\n return result\n }\n\n // Store a relative adjustment to the scroll position in the current\n // operation (to be applied when the operation finishes).\n function addToScrollTop(cm, top) {\n if (top == null) { return }\n resolveScrollToPos(cm);\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n }\n\n // Make sure that at the end of the operation the current cursor is\n // shown.\n function ensureCursorVisible(cm) {\n resolveScrollToPos(cm);\n var cur = cm.getCursor();\n cm.curOp.scrollToPos = {from: cur, to: cur, margin: cm.options.cursorScrollMargin};\n }\n\n function scrollToCoords(cm, x, y) {\n if (x != null || y != null) { resolveScrollToPos(cm); }\n if (x != null) { cm.curOp.scrollLeft = x; }\n if (y != null) { cm.curOp.scrollTop = y; }\n }\n\n function scrollToRange(cm, range) {\n resolveScrollToPos(cm);\n cm.curOp.scrollToPos = range;\n }\n\n // When an operation has its scrollToPos property set, and another\n // scroll action is applied before the end of the operation, this\n // 'simulates' scrolling that position into view in a cheap way, so\n // that the effect of intermediate scroll commands is not ignored.\n function resolveScrollToPos(cm) {\n var range = cm.curOp.scrollToPos;\n if (range) {\n cm.curOp.scrollToPos = null;\n var from = estimateCoords(cm, range.from), to = estimateCoords(cm, range.to);\n scrollToCoordsRange(cm, from, to, range.margin);\n }\n }\n\n function scrollToCoordsRange(cm, from, to, margin) {\n var sPos = calculateScrollPos(cm, {\n left: Math.min(from.left, to.left),\n top: Math.min(from.top, to.top) - margin,\n right: Math.max(from.right, to.right),\n bottom: Math.max(from.bottom, to.bottom) + margin\n });\n scrollToCoords(cm, sPos.scrollLeft, sPos.scrollTop);\n }\n\n // Sync the scrollable area and scrollbars, ensure the viewport\n // covers the visible area.\n function updateScrollTop(cm, val) {\n if (Math.abs(cm.doc.scrollTop - val) < 2) { return }\n if (!gecko) { updateDisplaySimple(cm, {top: val}); }\n setScrollTop(cm, val, true);\n if (gecko) { updateDisplaySimple(cm); }\n startWorker(cm, 100);\n }\n\n function setScrollTop(cm, val, forceScroll) {\n val = Math.max(0, Math.min(cm.display.scroller.scrollHeight - cm.display.scroller.clientHeight, val));\n if (cm.display.scroller.scrollTop == val && !forceScroll) { return }\n cm.doc.scrollTop = val;\n cm.display.scrollbars.setScrollTop(val);\n if (cm.display.scroller.scrollTop != val) { cm.display.scroller.scrollTop = val; }\n }\n\n // Sync scroller and scrollbar, ensure the gutter elements are\n // aligned.\n function setScrollLeft(cm, val, isScroller, forceScroll) {\n val = Math.max(0, Math.min(val, cm.display.scroller.scrollWidth - cm.display.scroller.clientWidth));\n if ((isScroller ? val == cm.doc.scrollLeft : Math.abs(cm.doc.scrollLeft - val) < 2) && !forceScroll) { return }\n cm.doc.scrollLeft = val;\n alignHorizontally(cm);\n if (cm.display.scroller.scrollLeft != val) { cm.display.scroller.scrollLeft = val; }\n cm.display.scrollbars.setScrollLeft(val);\n }\n\n // SCROLLBARS\n\n // Prepare DOM reads needed to update the scrollbars. Done in one\n // shot to minimize update/measure roundtrips.\n function measureForScrollbars(cm) {\n var d = cm.display, gutterW = d.gutters.offsetWidth;\n var docH = Math.round(cm.doc.height + paddingVert(cm.display));\n return {\n clientHeight: d.scroller.clientHeight,\n viewHeight: d.wrapper.clientHeight,\n scrollWidth: d.scroller.scrollWidth, clientWidth: d.scroller.clientWidth,\n viewWidth: d.wrapper.clientWidth,\n barLeft: cm.options.fixedGutter ? gutterW : 0,\n docHeight: docH,\n scrollHeight: docH + scrollGap(cm) + d.barHeight,\n nativeBarWidth: d.nativeBarWidth,\n gutterWidth: gutterW\n }\n }\n\n var NativeScrollbars = function(place, scroll, cm) {\n this.cm = cm;\n var vert = this.vert = elt(\"div\", [elt(\"div\", null, null, \"min-width: 1px\")], \"CodeMirror-vscrollbar\");\n var horiz = this.horiz = elt(\"div\", [elt(\"div\", null, null, \"height: 100%; min-height: 1px\")], \"CodeMirror-hscrollbar\");\n vert.tabIndex = horiz.tabIndex = -1;\n place(vert); place(horiz);\n\n on(vert, \"scroll\", function () {\n if (vert.clientHeight) { scroll(vert.scrollTop, \"vertical\"); }\n });\n on(horiz, \"scroll\", function () {\n if (horiz.clientWidth) { scroll(horiz.scrollLeft, \"horizontal\"); }\n });\n\n this.checkedZeroWidth = false;\n // Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).\n if (ie && ie_version < 8) { this.horiz.style.minHeight = this.vert.style.minWidth = \"18px\"; }\n };\n\n NativeScrollbars.prototype.update = function (measure) {\n var needsH = measure.scrollWidth > measure.clientWidth + 1;\n var needsV = measure.scrollHeight > measure.clientHeight + 1;\n var sWidth = measure.nativeBarWidth;\n\n if (needsV) {\n this.vert.style.display = \"block\";\n this.vert.style.bottom = needsH ? sWidth + \"px\" : \"0\";\n var totalHeight = measure.viewHeight - (needsH ? sWidth : 0);\n // A bug in IE8 can cause this value to be negative, so guard it.\n this.vert.firstChild.style.height =\n Math.max(0, measure.scrollHeight - measure.clientHeight + totalHeight) + \"px\";\n } else {\n this.vert.scrollTop = 0;\n this.vert.style.display = \"\";\n this.vert.firstChild.style.height = \"0\";\n }\n\n if (needsH) {\n this.horiz.style.display = \"block\";\n this.horiz.style.right = needsV ? sWidth + \"px\" : \"0\";\n this.horiz.style.left = measure.barLeft + \"px\";\n var totalWidth = measure.viewWidth - measure.barLeft - (needsV ? sWidth : 0);\n this.horiz.firstChild.style.width =\n Math.max(0, measure.scrollWidth - measure.clientWidth + totalWidth) + \"px\";\n } else {\n this.horiz.style.display = \"\";\n this.horiz.firstChild.style.width = \"0\";\n }\n\n if (!this.checkedZeroWidth && measure.clientHeight > 0) {\n if (sWidth == 0) { this.zeroWidthHack(); }\n this.checkedZeroWidth = true;\n }\n\n return {right: needsV ? sWidth : 0, bottom: needsH ? sWidth : 0}\n };\n\n NativeScrollbars.prototype.setScrollLeft = function (pos) {\n if (this.horiz.scrollLeft != pos) { this.horiz.scrollLeft = pos; }\n if (this.disableHoriz) { this.enableZeroWidthBar(this.horiz, this.disableHoriz, \"horiz\"); }\n };\n\n NativeScrollbars.prototype.setScrollTop = function (pos) {\n if (this.vert.scrollTop != pos) { this.vert.scrollTop = pos; }\n if (this.disableVert) { this.enableZeroWidthBar(this.vert, this.disableVert, \"vert\"); }\n };\n\n NativeScrollbars.prototype.zeroWidthHack = function () {\n var w = mac && !mac_geMountainLion ? \"12px\" : \"18px\";\n this.horiz.style.height = this.vert.style.width = w;\n this.horiz.style.visibility = this.vert.style.visibility = \"hidden\";\n this.disableHoriz = new Delayed;\n this.disableVert = new Delayed;\n };\n\n NativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay, type) {\n bar.style.visibility = \"\";\n function maybeDisable() {\n // To find out whether the scrollbar is still visible, we\n // check whether the element under the pixel in the bottom\n // right corner of the scrollbar box is the scrollbar box\n // itself (when the bar is still visible) or its filler child\n // (when the bar is hidden). If it is still visible, we keep\n // it enabled, if it's hidden, we disable pointer events.\n var box = bar.getBoundingClientRect();\n var elt = type == \"vert\" ? document.elementFromPoint(box.right - 1, (box.top + box.bottom) / 2)\n : document.elementFromPoint((box.right + box.left) / 2, box.bottom - 1);\n if (elt != bar) { bar.style.visibility = \"hidden\"; }\n else { delay.set(1000, maybeDisable); }\n }\n delay.set(1000, maybeDisable);\n };\n\n NativeScrollbars.prototype.clear = function () {\n var parent = this.horiz.parentNode;\n parent.removeChild(this.horiz);\n parent.removeChild(this.vert);\n };\n\n var NullScrollbars = function () {};\n\n NullScrollbars.prototype.update = function () { return {bottom: 0, right: 0} };\n NullScrollbars.prototype.setScrollLeft = function () {};\n NullScrollbars.prototype.setScrollTop = function () {};\n NullScrollbars.prototype.clear = function () {};\n\n function updateScrollbars(cm, measure) {\n if (!measure) { measure = measureForScrollbars(cm); }\n var startWidth = cm.display.barWidth, startHeight = cm.display.barHeight;\n updateScrollbarsInner(cm, measure);\n for (var i = 0; i < 4 && startWidth != cm.display.barWidth || startHeight != cm.display.barHeight; i++) {\n if (startWidth != cm.display.barWidth && cm.options.lineWrapping)\n { updateHeightsInViewport(cm); }\n updateScrollbarsInner(cm, measureForScrollbars(cm));\n startWidth = cm.display.barWidth; startHeight = cm.display.barHeight;\n }\n }\n\n // Re-synchronize the fake scrollbars with the actual size of the\n // content.\n function updateScrollbarsInner(cm, measure) {\n var d = cm.display;\n var sizes = d.scrollbars.update(measure);\n\n d.sizer.style.paddingRight = (d.barWidth = sizes.right) + \"px\";\n d.sizer.style.paddingBottom = (d.barHeight = sizes.bottom) + \"px\";\n d.heightForcer.style.borderBottom = sizes.bottom + \"px solid transparent\";\n\n if (sizes.right && sizes.bottom) {\n d.scrollbarFiller.style.display = \"block\";\n d.scrollbarFiller.style.height = sizes.bottom + \"px\";\n d.scrollbarFiller.style.width = sizes.right + \"px\";\n } else { d.scrollbarFiller.style.display = \"\"; }\n if (sizes.bottom && cm.options.coverGutterNextToScrollbar && cm.options.fixedGutter) {\n d.gutterFiller.style.display = \"block\";\n d.gutterFiller.style.height = sizes.bottom + \"px\";\n d.gutterFiller.style.width = measure.gutterWidth + \"px\";\n } else { d.gutterFiller.style.display = \"\"; }\n }\n\n var scrollbarModel = {\"native\": NativeScrollbars, \"null\": NullScrollbars};\n\n function initScrollbars(cm) {\n if (cm.display.scrollbars) {\n cm.display.scrollbars.clear();\n if (cm.display.scrollbars.addClass)\n { rmClass(cm.display.wrapper, cm.display.scrollbars.addClass); }\n }\n\n cm.display.scrollbars = new scrollbarModel[cm.options.scrollbarStyle](function (node) {\n cm.display.wrapper.insertBefore(node, cm.display.scrollbarFiller);\n // Prevent clicks in the scrollbars from killing focus\n on(node, \"mousedown\", function () {\n if (cm.state.focused) { setTimeout(function () { return cm.display.input.focus(); }, 0); }\n });\n node.setAttribute(\"cm-not-content\", \"true\");\n }, function (pos, axis) {\n if (axis == \"horizontal\") { setScrollLeft(cm, pos); }\n else { updateScrollTop(cm, pos); }\n }, cm);\n if (cm.display.scrollbars.addClass)\n { addClass(cm.display.wrapper, cm.display.scrollbars.addClass); }\n }\n\n // Operations are used to wrap a series of changes to the editor\n // state in such a way that each change won't have to update the\n // cursor and display (which would be awkward, slow, and\n // error-prone). Instead, display updates are batched and then all\n // combined and executed at once.\n\n var nextOpId = 0;\n // Start a new operation.\n function startOperation(cm) {\n cm.curOp = {\n cm: cm,\n viewChanged: false, // Flag that indicates that lines might need to be redrawn\n startHeight: cm.doc.height, // Used to detect need to update scrollbar\n forceUpdate: false, // Used to force a redraw\n updateInput: 0, // Whether to reset the input textarea\n typing: false, // Whether this reset should be careful to leave existing text (for compositing)\n changeObjs: null, // Accumulated changes, for firing change events\n cursorActivityHandlers: null, // Set of handlers to fire cursorActivity on\n cursorActivityCalled: 0, // Tracks which cursorActivity handlers have been called already\n selectionChanged: false, // Whether the selection needs to be redrawn\n updateMaxLine: false, // Set when the widest line needs to be determined anew\n scrollLeft: null, scrollTop: null, // Intermediate scroll position, not pushed to DOM yet\n scrollToPos: null, // Used to scroll to a specific position\n focus: false,\n id: ++nextOpId, // Unique ID\n markArrays: null // Used by addMarkedSpan\n };\n pushOperation(cm.curOp);\n }\n\n // Finish an operation, updating the display and signalling delayed events\n function endOperation(cm) {\n var op = cm.curOp;\n if (op) { finishOperation(op, function (group) {\n for (var i = 0; i < group.ops.length; i++)\n { group.ops[i].cm.curOp = null; }\n endOperations(group);\n }); }\n }\n\n // The DOM updates done when an operation finishes are batched so\n // that the minimum number of relayouts are required.\n function endOperations(group) {\n var ops = group.ops;\n for (var i = 0; i < ops.length; i++) // Read DOM\n { endOperation_R1(ops[i]); }\n for (var i$1 = 0; i$1 < ops.length; i$1++) // Write DOM (maybe)\n { endOperation_W1(ops[i$1]); }\n for (var i$2 = 0; i$2 < ops.length; i$2++) // Read DOM\n { endOperation_R2(ops[i$2]); }\n for (var i$3 = 0; i$3 < ops.length; i$3++) // Write DOM (maybe)\n { endOperation_W2(ops[i$3]); }\n for (var i$4 = 0; i$4 < ops.length; i$4++) // Read DOM\n { endOperation_finish(ops[i$4]); }\n }\n\n function endOperation_R1(op) {\n var cm = op.cm, display = cm.display;\n maybeClipScrollbars(cm);\n if (op.updateMaxLine) { findMaxLine(cm); }\n\n op.mustUpdate = op.viewChanged || op.forceUpdate || op.scrollTop != null ||\n op.scrollToPos && (op.scrollToPos.from.line < display.viewFrom ||\n op.scrollToPos.to.line >= display.viewTo) ||\n display.maxLineChanged && cm.options.lineWrapping;\n op.update = op.mustUpdate &&\n new DisplayUpdate(cm, op.mustUpdate && {top: op.scrollTop, ensure: op.scrollToPos}, op.forceUpdate);\n }\n\n function endOperation_W1(op) {\n op.updatedDisplay = op.mustUpdate && updateDisplayIfNeeded(op.cm, op.update);\n }\n\n function endOperation_R2(op) {\n var cm = op.cm, display = cm.display;\n if (op.updatedDisplay) { updateHeightsInViewport(cm); }\n\n op.barMeasure = measureForScrollbars(cm);\n\n // If the max line changed since it was last measured, measure it,\n // and ensure the document's width matches it.\n // updateDisplay_W2 will use these properties to do the actual resizing\n if (display.maxLineChanged && !cm.options.lineWrapping) {\n op.adjustWidthTo = measureChar(cm, display.maxLine, display.maxLine.text.length).left + 3;\n cm.display.sizerWidth = op.adjustWidthTo;\n op.barMeasure.scrollWidth =\n Math.max(display.scroller.clientWidth, display.sizer.offsetLeft + op.adjustWidthTo + scrollGap(cm) + cm.display.barWidth);\n op.maxScrollLeft = Math.max(0, display.sizer.offsetLeft + op.adjustWidthTo - displayWidth(cm));\n }\n\n if (op.updatedDisplay || op.selectionChanged)\n { op.preparedSelection = display.input.prepareSelection(); }\n }\n\n function endOperation_W2(op) {\n var cm = op.cm;\n\n if (op.adjustWidthTo != null) {\n cm.display.sizer.style.minWidth = op.adjustWidthTo + \"px\";\n if (op.maxScrollLeft < cm.doc.scrollLeft)\n { setScrollLeft(cm, Math.min(cm.display.scroller.scrollLeft, op.maxScrollLeft), true); }\n cm.display.maxLineChanged = false;\n }\n\n var takeFocus = op.focus && op.focus == activeElt(doc(cm));\n if (op.preparedSelection)\n { cm.display.input.showSelection(op.preparedSelection, takeFocus); }\n if (op.updatedDisplay || op.startHeight != cm.doc.height)\n { updateScrollbars(cm, op.barMeasure); }\n if (op.updatedDisplay)\n { setDocumentHeight(cm, op.barMeasure); }\n\n if (op.selectionChanged) { restartBlink(cm); }\n\n if (cm.state.focused && op.updateInput)\n { cm.display.input.reset(op.typing); }\n if (takeFocus) { ensureFocus(op.cm); }\n }\n\n function endOperation_finish(op) {\n var cm = op.cm, display = cm.display, doc = cm.doc;\n\n if (op.updatedDisplay) { postUpdateDisplay(cm, op.update); }\n\n // Abort mouse wheel delta measurement, when scrolling explicitly\n if (display.wheelStartX != null && (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos))\n { display.wheelStartX = display.wheelStartY = null; }\n\n // Propagate the scroll position to the actual DOM scroller\n if (op.scrollTop != null) { setScrollTop(cm, op.scrollTop, op.forceScroll); }\n\n if (op.scrollLeft != null) { setScrollLeft(cm, op.scrollLeft, true, true); }\n // If we need to scroll a specific position into view, do so.\n if (op.scrollToPos) {\n var rect = scrollPosIntoView(cm, clipPos(doc, op.scrollToPos.from),\n clipPos(doc, op.scrollToPos.to), op.scrollToPos.margin);\n maybeScrollWindow(cm, rect);\n }\n\n // Fire events for markers that are hidden/unidden by editing or\n // undoing\n var hidden = op.maybeHiddenMarkers, unhidden = op.maybeUnhiddenMarkers;\n if (hidden) { for (var i = 0; i < hidden.length; ++i)\n { if (!hidden[i].lines.length) { signal(hidden[i], \"hide\"); } } }\n if (unhidden) { for (var i$1 = 0; i$1 < unhidden.length; ++i$1)\n { if (unhidden[i$1].lines.length) { signal(unhidden[i$1], \"unhide\"); } } }\n\n if (display.wrapper.offsetHeight)\n { doc.scrollTop = cm.display.scroller.scrollTop; }\n\n // Fire change events, and delayed event handlers\n if (op.changeObjs)\n { signal(cm, \"changes\", cm, op.changeObjs); }\n if (op.update)\n { op.update.finish(); }\n }\n\n // Run the given function in an operation\n function runInOp(cm, f) {\n if (cm.curOp) { return f() }\n startOperation(cm);\n try { return f() }\n finally { endOperation(cm); }\n }\n // Wraps a function in an operation. Returns the wrapped function.\n function operation(cm, f) {\n return function() {\n if (cm.curOp) { return f.apply(cm, arguments) }\n startOperation(cm);\n try { return f.apply(cm, arguments) }\n finally { endOperation(cm); }\n }\n }\n // Used to add methods to editor and doc instances, wrapping them in\n // operations.\n function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }\n function docMethodOp(f) {\n return function() {\n var cm = this.cm;\n if (!cm || cm.curOp) { return f.apply(this, arguments) }\n startOperation(cm);\n try { return f.apply(this, arguments) }\n finally { endOperation(cm); }\n }\n }\n\n // HIGHLIGHT WORKER\n\n function startWorker(cm, time) {\n if (cm.doc.highlightFrontier < cm.display.viewTo)\n { cm.state.highlight.set(time, bind(highlightWorker, cm)); }\n }\n\n function highlightWorker(cm) {\n var doc = cm.doc;\n if (doc.highlightFrontier >= cm.display.viewTo) { return }\n var end = +new Date + cm.options.workTime;\n var context = getContextBefore(cm, doc.highlightFrontier);\n var changedLines = [];\n\n doc.iter(context.line, Math.min(doc.first + doc.size, cm.display.viewTo + 500), function (line) {\n if (context.line >= cm.display.viewFrom) { // Visible\n var oldStyles = line.styles;\n var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null;\n var highlighted = highlightLine(cm, line, context, true);\n if (resetState) { context.state = resetState; }\n line.styles = highlighted.styles;\n var oldCls = line.styleClasses, newCls = highlighted.classes;\n if (newCls) { line.styleClasses = newCls; }\n else if (oldCls) { line.styleClasses = null; }\n var ischange = !oldStyles || oldStyles.length != line.styles.length ||\n oldCls != newCls && (!oldCls || !newCls || oldCls.bgClass != newCls.bgClass || oldCls.textClass != newCls.textClass);\n for (var i = 0; !ischange && i < oldStyles.length; ++i) { ischange = oldStyles[i] != line.styles[i]; }\n if (ischange) { changedLines.push(context.line); }\n line.stateAfter = context.save();\n context.nextLine();\n } else {\n if (line.text.length <= cm.options.maxHighlightLength)\n { processLine(cm, line.text, context); }\n line.stateAfter = context.line % 5 == 0 ? context.save() : null;\n context.nextLine();\n }\n if (+new Date > end) {\n startWorker(cm, cm.options.workDelay);\n return true\n }\n });\n doc.highlightFrontier = context.line;\n doc.modeFrontier = Math.max(doc.modeFrontier, context.line);\n if (changedLines.length) { runInOp(cm, function () {\n for (var i = 0; i < changedLines.length; i++)\n { regLineChange(cm, changedLines[i], \"text\"); }\n }); }\n }\n\n // DISPLAY DRAWING\n\n var DisplayUpdate = function(cm, viewport, force) {\n var display = cm.display;\n\n this.viewport = viewport;\n // Store some values that we'll need later (but don't want to force a relayout for)\n this.visible = visibleLines(display, cm.doc, viewport);\n this.editorIsHidden = !display.wrapper.offsetWidth;\n this.wrapperHeight = display.wrapper.clientHeight;\n this.wrapperWidth = display.wrapper.clientWidth;\n this.oldDisplayWidth = displayWidth(cm);\n this.force = force;\n this.dims = getDimensions(cm);\n this.events = [];\n };\n\n DisplayUpdate.prototype.signal = function (emitter, type) {\n if (hasHandler(emitter, type))\n { this.events.push(arguments); }\n };\n DisplayUpdate.prototype.finish = function () {\n for (var i = 0; i < this.events.length; i++)\n { signal.apply(null, this.events[i]); }\n };\n\n function maybeClipScrollbars(cm) {\n var display = cm.display;\n if (!display.scrollbarsClipped && display.scroller.offsetWidth) {\n display.nativeBarWidth = display.scroller.offsetWidth - display.scroller.clientWidth;\n display.heightForcer.style.height = scrollGap(cm) + \"px\";\n display.sizer.style.marginBottom = -display.nativeBarWidth + \"px\";\n display.sizer.style.borderRightWidth = scrollGap(cm) + \"px\";\n display.scrollbarsClipped = true;\n }\n }\n\n function selectionSnapshot(cm) {\n if (cm.hasFocus()) { return null }\n var active = activeElt(doc(cm));\n if (!active || !contains(cm.display.lineDiv, active)) { return null }\n var result = {activeElt: active};\n if (window.getSelection) {\n var sel = win(cm).getSelection();\n if (sel.anchorNode && sel.extend && contains(cm.display.lineDiv, sel.anchorNode)) {\n result.anchorNode = sel.anchorNode;\n result.anchorOffset = sel.anchorOffset;\n result.focusNode = sel.focusNode;\n result.focusOffset = sel.focusOffset;\n }\n }\n return result\n }\n\n function restoreSelection(snapshot) {\n if (!snapshot || !snapshot.activeElt || snapshot.activeElt == activeElt(snapshot.activeElt.ownerDocument)) { return }\n snapshot.activeElt.focus();\n if (!/^(INPUT|TEXTAREA)$/.test(snapshot.activeElt.nodeName) &&\n snapshot.anchorNode && contains(document.body, snapshot.anchorNode) && contains(document.body, snapshot.focusNode)) {\n var doc = snapshot.activeElt.ownerDocument;\n var sel = doc.defaultView.getSelection(), range = doc.createRange();\n range.setEnd(snapshot.anchorNode, snapshot.anchorOffset);\n range.collapse(false);\n sel.removeAllRanges();\n sel.addRange(range);\n sel.extend(snapshot.focusNode, snapshot.focusOffset);\n }\n }\n\n // Does the actual updating of the line display. Bails out\n // (returning false) when there is nothing to be done and forced is\n // false.\n function updateDisplayIfNeeded(cm, update) {\n var display = cm.display, doc = cm.doc;\n\n if (update.editorIsHidden) {\n resetView(cm);\n return false\n }\n\n // Bail out if the visible area is already rendered and nothing changed.\n if (!update.force &&\n update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo &&\n (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) &&\n display.renderedView == display.view && countDirtyView(cm) == 0)\n { return false }\n\n if (maybeUpdateLineNumberWidth(cm)) {\n resetView(cm);\n update.dims = getDimensions(cm);\n }\n\n // Compute a suitable new viewport (from & to)\n var end = doc.first + doc.size;\n var from = Math.max(update.visible.from - cm.options.viewportMargin, doc.first);\n var to = Math.min(end, update.visible.to + cm.options.viewportMargin);\n if (display.viewFrom < from && from - display.viewFrom < 20) { from = Math.max(doc.first, display.viewFrom); }\n if (display.viewTo > to && display.viewTo - to < 20) { to = Math.min(end, display.viewTo); }\n if (sawCollapsedSpans) {\n from = visualLineNo(cm.doc, from);\n to = visualLineEndNo(cm.doc, to);\n }\n\n var different = from != display.viewFrom || to != display.viewTo ||\n display.lastWrapHeight != update.wrapperHeight || display.lastWrapWidth != update.wrapperWidth;\n adjustView(cm, from, to);\n\n display.viewOffset = heightAtLine(getLine(cm.doc, display.viewFrom));\n // Position the mover div to align with the current scroll position\n cm.display.mover.style.top = display.viewOffset + \"px\";\n\n var toUpdate = countDirtyView(cm);\n if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view &&\n (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo))\n { return false }\n\n // For big changes, we hide the enclosing element during the\n // update, since that speeds up the operations on most browsers.\n var selSnapshot = selectionSnapshot(cm);\n if (toUpdate > 4) { display.lineDiv.style.display = \"none\"; }\n patchDisplay(cm, display.updateLineNumbers, update.dims);\n if (toUpdate > 4) { display.lineDiv.style.display = \"\"; }\n display.renderedView = display.view;\n // There might have been a widget with a focused element that got\n // hidden or updated, if so re-focus it.\n restoreSelection(selSnapshot);\n\n // Prevent selection and cursors from interfering with the scroll\n // width and height.\n removeChildren(display.cursorDiv);\n removeChildren(display.selectionDiv);\n display.gutters.style.height = display.sizer.style.minHeight = 0;\n\n if (different) {\n display.lastWrapHeight = update.wrapperHeight;\n display.lastWrapWidth = update.wrapperWidth;\n startWorker(cm, 400);\n }\n\n display.updateLineNumbers = null;\n\n return true\n }\n\n function postUpdateDisplay(cm, update) {\n var viewport = update.viewport;\n\n for (var first = true;; first = false) {\n if (!first || !cm.options.lineWrapping || update.oldDisplayWidth == displayWidth(cm)) {\n // Clip forced viewport to actual scrollable area.\n if (viewport && viewport.top != null)\n { viewport = {top: Math.min(cm.doc.height + paddingVert(cm.display) - displayHeight(cm), viewport.top)}; }\n // Updated line heights might result in the drawn area not\n // actually covering the viewport. Keep looping until it does.\n update.visible = visibleLines(cm.display, cm.doc, viewport);\n if (update.visible.from >= cm.display.viewFrom && update.visible.to <= cm.display.viewTo)\n { break }\n } else if (first) {\n update.visible = visibleLines(cm.display, cm.doc, viewport);\n }\n if (!updateDisplayIfNeeded(cm, update)) { break }\n updateHeightsInViewport(cm);\n var barMeasure = measureForScrollbars(cm);\n updateSelection(cm);\n updateScrollbars(cm, barMeasure);\n setDocumentHeight(cm, barMeasure);\n update.force = false;\n }\n\n update.signal(cm, \"update\", cm);\n if (cm.display.viewFrom != cm.display.reportedViewFrom || cm.display.viewTo != cm.display.reportedViewTo) {\n update.signal(cm, \"viewportChange\", cm, cm.display.viewFrom, cm.display.viewTo);\n cm.display.reportedViewFrom = cm.display.viewFrom; cm.display.reportedViewTo = cm.display.viewTo;\n }\n }\n\n function updateDisplaySimple(cm, viewport) {\n var update = new DisplayUpdate(cm, viewport);\n if (updateDisplayIfNeeded(cm, update)) {\n updateHeightsInViewport(cm);\n postUpdateDisplay(cm, update);\n var barMeasure = measureForScrollbars(cm);\n updateSelection(cm);\n updateScrollbars(cm, barMeasure);\n setDocumentHeight(cm, barMeasure);\n update.finish();\n }\n }\n\n // Sync the actual display DOM structure with display.view, removing\n // nodes for lines that are no longer in view, and creating the ones\n // that are not there yet, and updating the ones that are out of\n // date.\n function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) ; else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n }\n\n function updateGutterSpace(display) {\n var width = display.gutters.offsetWidth;\n display.sizer.style.marginLeft = width + \"px\";\n // Send an event to consumers responding to changes in gutter width.\n signalLater(display, \"gutterChanged\", display);\n }\n\n function setDocumentHeight(cm, measure) {\n cm.display.sizer.style.minHeight = measure.docHeight + \"px\";\n cm.display.heightForcer.style.top = measure.docHeight + \"px\";\n cm.display.gutters.style.height = (measure.docHeight + cm.display.barHeight + scrollGap(cm)) + \"px\";\n }\n\n // Re-align line numbers and gutter marks to compensate for\n // horizontal scrolling.\n function alignHorizontally(cm) {\n var display = cm.display, view = display.view;\n if (!display.alignWidgets && (!display.gutters.firstChild || !cm.options.fixedGutter)) { return }\n var comp = compensateForHScroll(display) - display.scroller.scrollLeft + cm.doc.scrollLeft;\n var gutterW = display.gutters.offsetWidth, left = comp + \"px\";\n for (var i = 0; i < view.length; i++) { if (!view[i].hidden) {\n if (cm.options.fixedGutter) {\n if (view[i].gutter)\n { view[i].gutter.style.left = left; }\n if (view[i].gutterBackground)\n { view[i].gutterBackground.style.left = left; }\n }\n var align = view[i].alignable;\n if (align) { for (var j = 0; j < align.length; j++)\n { align[j].style.left = left; } }\n } }\n if (cm.options.fixedGutter)\n { display.gutters.style.left = (comp + gutterW) + \"px\"; }\n }\n\n // Used to ensure that the line number gutter is still the right\n // size for the current document size. Returns true when an update\n // is needed.\n function maybeUpdateLineNumberWidth(cm) {\n if (!cm.options.lineNumbers) { return false }\n var doc = cm.doc, last = lineNumberFor(cm.options, doc.first + doc.size - 1), display = cm.display;\n if (last.length != display.lineNumChars) {\n var test = display.measure.appendChild(elt(\"div\", [elt(\"div\", last)],\n \"CodeMirror-linenumber CodeMirror-gutter-elt\"));\n var innerW = test.firstChild.offsetWidth, padding = test.offsetWidth - innerW;\n display.lineGutter.style.width = \"\";\n display.lineNumInnerWidth = Math.max(innerW, display.lineGutter.offsetWidth - padding) + 1;\n display.lineNumWidth = display.lineNumInnerWidth + padding;\n display.lineNumChars = display.lineNumInnerWidth ? last.length : -1;\n display.lineGutter.style.width = display.lineNumWidth + \"px\";\n updateGutterSpace(cm.display);\n return true\n }\n return false\n }\n\n function getGutters(gutters, lineNumbers) {\n var result = [], sawLineNumbers = false;\n for (var i = 0; i < gutters.length; i++) {\n var name = gutters[i], style = null;\n if (typeof name != \"string\") { style = name.style; name = name.className; }\n if (name == \"CodeMirror-linenumbers\") {\n if (!lineNumbers) { continue }\n else { sawLineNumbers = true; }\n }\n result.push({className: name, style: style});\n }\n if (lineNumbers && !sawLineNumbers) { result.push({className: \"CodeMirror-linenumbers\", style: null}); }\n return result\n }\n\n // Rebuild the gutter elements, ensure the margin to the left of the\n // code matches their width.\n function renderGutters(display) {\n var gutters = display.gutters, specs = display.gutterSpecs;\n removeChildren(gutters);\n display.lineGutter = null;\n for (var i = 0; i < specs.length; ++i) {\n var ref = specs[i];\n var className = ref.className;\n var style = ref.style;\n var gElt = gutters.appendChild(elt(\"div\", null, \"CodeMirror-gutter \" + className));\n if (style) { gElt.style.cssText = style; }\n if (className == \"CodeMirror-linenumbers\") {\n display.lineGutter = gElt;\n gElt.style.width = (display.lineNumWidth || 1) + \"px\";\n }\n }\n gutters.style.display = specs.length ? \"\" : \"none\";\n updateGutterSpace(display);\n }\n\n function updateGutters(cm) {\n renderGutters(cm.display);\n regChange(cm);\n alignHorizontally(cm);\n }\n\n // The display handles the DOM integration, both for input reading\n // and content drawing. It holds references to DOM nodes and\n // display-related state.\n\n function Display(place, doc, input, options) {\n var d = this;\n this.input = input;\n\n // Covers bottom-right square when both scrollbars are present.\n d.scrollbarFiller = elt(\"div\", null, \"CodeMirror-scrollbar-filler\");\n d.scrollbarFiller.setAttribute(\"cm-not-content\", \"true\");\n // Covers bottom of gutter when coverGutterNextToScrollbar is on\n // and h scrollbar is present.\n d.gutterFiller = elt(\"div\", null, \"CodeMirror-gutter-filler\");\n d.gutterFiller.setAttribute(\"cm-not-content\", \"true\");\n // Will contain the actual code, positioned to cover the viewport.\n d.lineDiv = eltP(\"div\", null, \"CodeMirror-code\");\n // Elements are added to these to represent selection and cursors.\n d.selectionDiv = elt(\"div\", null, null, \"position: relative; z-index: 1\");\n d.cursorDiv = elt(\"div\", null, \"CodeMirror-cursors\");\n // A visibility: hidden element used to find the size of things.\n d.measure = elt(\"div\", null, \"CodeMirror-measure\");\n // When lines outside of the viewport are measured, they are drawn in this.\n d.lineMeasure = elt(\"div\", null, \"CodeMirror-measure\");\n // Wraps everything that needs to exist inside the vertically-padded coordinate system\n d.lineSpace = eltP(\"div\", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.lineDiv],\n null, \"position: relative; outline: none\");\n var lines = eltP(\"div\", [d.lineSpace], \"CodeMirror-lines\");\n // Moved around its parent to cover visible view.\n d.mover = elt(\"div\", [lines], null, \"position: relative\");\n // Set to the height of the document, allowing scrolling.\n d.sizer = elt(\"div\", [d.mover], \"CodeMirror-sizer\");\n d.sizerWidth = null;\n // Behavior of elts with overflow: auto and padding is\n // inconsistent across browsers. This is used to ensure the\n // scrollable area is big enough.\n d.heightForcer = elt(\"div\", null, null, \"position: absolute; height: \" + scrollerGap + \"px; width: 1px;\");\n // Will contain the gutters, if any.\n d.gutters = elt(\"div\", null, \"CodeMirror-gutters\");\n d.lineGutter = null;\n // Actual scrollable element.\n d.scroller = elt(\"div\", [d.sizer, d.heightForcer, d.gutters], \"CodeMirror-scroll\");\n d.scroller.setAttribute(\"tabIndex\", \"-1\");\n // The element in which the editor lives.\n d.wrapper = elt(\"div\", [d.scrollbarFiller, d.gutterFiller, d.scroller], \"CodeMirror\");\n // See #6982. FIXME remove when this has been fixed for a while in Chrome\n if (chrome && chrome_version >= 105) { d.wrapper.style.clipPath = \"inset(0px)\"; }\n\n // This attribute is respected by automatic translation systems such as Google Translate,\n // and may also be respected by tools used by human translators.\n d.wrapper.setAttribute('translate', 'no');\n\n // Work around IE7 z-index bug (not perfect, hence IE7 not really being supported)\n if (ie && ie_version < 8) { d.gutters.style.zIndex = -1; d.scroller.style.paddingRight = 0; }\n if (!webkit && !(gecko && mobile)) { d.scroller.draggable = true; }\n\n if (place) {\n if (place.appendChild) { place.appendChild(d.wrapper); }\n else { place(d.wrapper); }\n }\n\n // Current rendered range (may be bigger than the view window).\n d.viewFrom = d.viewTo = doc.first;\n d.reportedViewFrom = d.reportedViewTo = doc.first;\n // Information about the rendered lines.\n d.view = [];\n d.renderedView = null;\n // Holds info about a single rendered line when it was rendered\n // for measurement, while not in view.\n d.externalMeasured = null;\n // Empty space (in pixels) above the view\n d.viewOffset = 0;\n d.lastWrapHeight = d.lastWrapWidth = 0;\n d.updateLineNumbers = null;\n\n d.nativeBarWidth = d.barHeight = d.barWidth = 0;\n d.scrollbarsClipped = false;\n\n // Used to only resize the line number gutter when necessary (when\n // the amount of lines crosses a boundary that makes its width change)\n d.lineNumWidth = d.lineNumInnerWidth = d.lineNumChars = null;\n // Set to true when a non-horizontal-scrolling line widget is\n // added. As an optimization, line widget aligning is skipped when\n // this is false.\n d.alignWidgets = false;\n\n d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;\n\n // Tracks the maximum line length so that the horizontal scrollbar\n // can be kept static when scrolling.\n d.maxLine = null;\n d.maxLineLength = 0;\n d.maxLineChanged = false;\n\n // Used for measuring wheel scrolling granularity\n d.wheelDX = d.wheelDY = d.wheelStartX = d.wheelStartY = null;\n\n // True when shift is held down.\n d.shift = false;\n\n // Used to track whether anything happened since the context menu\n // was opened.\n d.selForContextMenu = null;\n\n d.activeTouch = null;\n\n d.gutterSpecs = getGutters(options.gutters, options.lineNumbers);\n renderGutters(d);\n\n input.init(d);\n }\n\n // Since the delta values reported on mouse wheel events are\n // unstandardized between browsers and even browser versions, and\n // generally horribly unpredictable, this code starts by measuring\n // the scroll effect that the first few mouse wheel events have,\n // and, from that, detects the way it can convert deltas to pixel\n // offsets afterwards.\n //\n // The reason we want to know the amount a wheel event will scroll\n // is that it gives us a chance to update the display before the\n // actual scrolling happens, reducing flickering.\n\n var wheelSamples = 0, wheelPixelsPerUnit = null;\n // Fill in a browser-detected starting value on browsers where we\n // know one. These don't have to be accurate -- the result of them\n // being wrong would just be a slight flicker on the first wheel\n // scroll (if it is large enough).\n if (ie) { wheelPixelsPerUnit = -.53; }\n else if (gecko) { wheelPixelsPerUnit = 15; }\n else if (chrome) { wheelPixelsPerUnit = -.7; }\n else if (safari) { wheelPixelsPerUnit = -1/3; }\n\n function wheelEventDelta(e) {\n var dx = e.wheelDeltaX, dy = e.wheelDeltaY;\n if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) { dx = e.detail; }\n if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) { dy = e.detail; }\n else if (dy == null) { dy = e.wheelDelta; }\n return {x: dx, y: dy}\n }\n function wheelEventPixels(e) {\n var delta = wheelEventDelta(e);\n delta.x *= wheelPixelsPerUnit;\n delta.y *= wheelPixelsPerUnit;\n return delta\n }\n\n function onScrollWheel(cm, e) {\n // On Chrome 102, viewport updates somehow stop wheel-based\n // scrolling. Turning off pointer events during the scroll seems\n // to avoid the issue.\n if (chrome && chrome_version == 102) {\n if (cm.display.chromeScrollHack == null) { cm.display.sizer.style.pointerEvents = \"none\"; }\n else { clearTimeout(cm.display.chromeScrollHack); }\n cm.display.chromeScrollHack = setTimeout(function () {\n cm.display.chromeScrollHack = null;\n cm.display.sizer.style.pointerEvents = \"\";\n }, 100);\n }\n var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;\n var pixelsPerUnit = wheelPixelsPerUnit;\n if (e.deltaMode === 0) {\n dx = e.deltaX;\n dy = e.deltaY;\n pixelsPerUnit = 1;\n }\n\n var display = cm.display, scroll = display.scroller;\n // Quit if there's nothing to scroll here\n var canScrollX = scroll.scrollWidth > scroll.clientWidth;\n var canScrollY = scroll.scrollHeight > scroll.clientHeight;\n if (!(dx && canScrollX || dy && canScrollY)) { return }\n\n // Webkit browsers on OS X abort momentum scrolls when the target\n // of the scroll event is removed from the scrollable element.\n // This hack (see related code in patchDisplay) makes sure the\n // element is kept around.\n if (dy && mac && webkit) {\n outer: for (var cur = e.target, view = display.view; cur != scroll; cur = cur.parentNode) {\n for (var i = 0; i < view.length; i++) {\n if (view[i].node == cur) {\n cm.display.currentWheelTarget = cur;\n break outer\n }\n }\n }\n }\n\n // On some browsers, horizontal scrolling will cause redraws to\n // happen before the gutter has been realigned, causing it to\n // wriggle around in a most unseemly way. When we have an\n // estimated pixels/delta value, we just handle horizontal\n // scrolling entirely here. It'll be slightly off from native, but\n // better than glitching out.\n if (dx && !gecko && !presto && pixelsPerUnit != null) {\n if (dy && canScrollY)\n { updateScrollTop(cm, Math.max(0, scroll.scrollTop + dy * pixelsPerUnit)); }\n setScrollLeft(cm, Math.max(0, scroll.scrollLeft + dx * pixelsPerUnit));\n // Only prevent default scrolling if vertical scrolling is\n // actually possible. Otherwise, it causes vertical scroll\n // jitter on OSX trackpads when deltaX is small and deltaY\n // is large (issue #3579)\n if (!dy || (dy && canScrollY))\n { e_preventDefault(e); }\n display.wheelStartX = null; // Abort measurement, if in progress\n return\n }\n\n // 'Project' the visible viewport to cover the area that is being\n // scrolled into view (if we know enough to estimate it).\n if (dy && pixelsPerUnit != null) {\n var pixels = dy * pixelsPerUnit;\n var top = cm.doc.scrollTop, bot = top + display.wrapper.clientHeight;\n if (pixels < 0) { top = Math.max(0, top + pixels - 50); }\n else { bot = Math.min(cm.doc.height, bot + pixels + 50); }\n updateDisplaySimple(cm, {top: top, bottom: bot});\n }\n\n if (wheelSamples < 20 && e.deltaMode !== 0) {\n if (display.wheelStartX == null) {\n display.wheelStartX = scroll.scrollLeft; display.wheelStartY = scroll.scrollTop;\n display.wheelDX = dx; display.wheelDY = dy;\n setTimeout(function () {\n if (display.wheelStartX == null) { return }\n var movedX = scroll.scrollLeft - display.wheelStartX;\n var movedY = scroll.scrollTop - display.wheelStartY;\n var sample = (movedY && display.wheelDY && movedY / display.wheelDY) ||\n (movedX && display.wheelDX && movedX / display.wheelDX);\n display.wheelStartX = display.wheelStartY = null;\n if (!sample) { return }\n wheelPixelsPerUnit = (wheelPixelsPerUnit * wheelSamples + sample) / (wheelSamples + 1);\n ++wheelSamples;\n }, 200);\n } else {\n display.wheelDX += dx; display.wheelDY += dy;\n }\n }\n }\n\n // Selection objects are immutable. A new one is created every time\n // the selection changes. A selection is one or more non-overlapping\n // (and non-touching) ranges, sorted, and an integer that indicates\n // which one is the primary selection (the one that's scrolled into\n // view, that getCursor returns, etc).\n var Selection = function(ranges, primIndex) {\n this.ranges = ranges;\n this.primIndex = primIndex;\n };\n\n Selection.prototype.primary = function () { return this.ranges[this.primIndex] };\n\n Selection.prototype.equals = function (other) {\n if (other == this) { return true }\n if (other.primIndex != this.primIndex || other.ranges.length != this.ranges.length) { return false }\n for (var i = 0; i < this.ranges.length; i++) {\n var here = this.ranges[i], there = other.ranges[i];\n if (!equalCursorPos(here.anchor, there.anchor) || !equalCursorPos(here.head, there.head)) { return false }\n }\n return true\n };\n\n Selection.prototype.deepCopy = function () {\n var out = [];\n for (var i = 0; i < this.ranges.length; i++)\n { out[i] = new Range(copyPos(this.ranges[i].anchor), copyPos(this.ranges[i].head)); }\n return new Selection(out, this.primIndex)\n };\n\n Selection.prototype.somethingSelected = function () {\n for (var i = 0; i < this.ranges.length; i++)\n { if (!this.ranges[i].empty()) { return true } }\n return false\n };\n\n Selection.prototype.contains = function (pos, end) {\n if (!end) { end = pos; }\n for (var i = 0; i < this.ranges.length; i++) {\n var range = this.ranges[i];\n if (cmp(end, range.from()) >= 0 && cmp(pos, range.to()) <= 0)\n { return i }\n }\n return -1\n };\n\n var Range = function(anchor, head) {\n this.anchor = anchor; this.head = head;\n };\n\n Range.prototype.from = function () { return minPos(this.anchor, this.head) };\n Range.prototype.to = function () { return maxPos(this.anchor, this.head) };\n Range.prototype.empty = function () { return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch };\n\n // Take an unsorted, potentially overlapping set of ranges, and\n // build a selection out of it. 'Consumes' ranges array (modifying\n // it).\n function normalizeSelection(cm, ranges, primIndex) {\n var mayTouch = cm && cm.options.selectionsMayTouch;\n var prim = ranges[primIndex];\n ranges.sort(function (a, b) { return cmp(a.from(), b.from()); });\n primIndex = indexOf(ranges, prim);\n for (var i = 1; i < ranges.length; i++) {\n var cur = ranges[i], prev = ranges[i - 1];\n var diff = cmp(prev.to(), cur.from());\n if (mayTouch && !cur.empty() ? diff > 0 : diff >= 0) {\n var from = minPos(prev.from(), cur.from()), to = maxPos(prev.to(), cur.to());\n var inv = prev.empty() ? cur.from() == cur.head : prev.from() == prev.head;\n if (i <= primIndex) { --primIndex; }\n ranges.splice(--i, 2, new Range(inv ? to : from, inv ? from : to));\n }\n }\n return new Selection(ranges, primIndex)\n }\n\n function simpleSelection(anchor, head) {\n return new Selection([new Range(anchor, head || anchor)], 0)\n }\n\n // Compute the position of the end of a change (its 'to' property\n // refers to the pre-change end).\n function changeEnd(change) {\n if (!change.text) { return change.to }\n return Pos(change.from.line + change.text.length - 1,\n lst(change.text).length + (change.text.length == 1 ? change.from.ch : 0))\n }\n\n // Adjust a position to refer to the post-change position of the\n // same text, or the end of the change if the change covers it.\n function adjustForChange(pos, change) {\n if (cmp(pos, change.from) < 0) { return pos }\n if (cmp(pos, change.to) <= 0) { return changeEnd(change) }\n\n var line = pos.line + change.text.length - (change.to.line - change.from.line) - 1, ch = pos.ch;\n if (pos.line == change.to.line) { ch += changeEnd(change).ch - change.to.ch; }\n return Pos(line, ch)\n }\n\n function computeSelAfterChange(doc, change) {\n var out = [];\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n var range = doc.sel.ranges[i];\n out.push(new Range(adjustForChange(range.anchor, change),\n adjustForChange(range.head, change)));\n }\n return normalizeSelection(doc.cm, out, doc.sel.primIndex)\n }\n\n function offsetPos(pos, old, nw) {\n if (pos.line == old.line)\n { return Pos(nw.line, pos.ch - old.ch + nw.ch) }\n else\n { return Pos(nw.line + (pos.line - old.line), pos.ch) }\n }\n\n // Used by replaceSelections to allow moving the selection to the\n // start or around the replaced test. Hint may be \"start\" or \"around\".\n function computeReplacedSel(doc, changes, hint) {\n var out = [];\n var oldPrev = Pos(doc.first, 0), newPrev = oldPrev;\n for (var i = 0; i < changes.length; i++) {\n var change = changes[i];\n var from = offsetPos(change.from, oldPrev, newPrev);\n var to = offsetPos(changeEnd(change), oldPrev, newPrev);\n oldPrev = change.to;\n newPrev = to;\n if (hint == \"around\") {\n var range = doc.sel.ranges[i], inv = cmp(range.head, range.anchor) < 0;\n out[i] = new Range(inv ? to : from, inv ? from : to);\n } else {\n out[i] = new Range(from, from);\n }\n }\n return new Selection(out, doc.sel.primIndex)\n }\n\n // Used to get the editor into a consistent state again when options change.\n\n function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }\n\n function resetModeState(cm) {\n cm.doc.iter(function (line) {\n if (line.stateAfter) { line.stateAfter = null; }\n if (line.styles) { line.styles = null; }\n });\n cm.doc.modeFrontier = cm.doc.highlightFrontier = cm.doc.first;\n startWorker(cm, 100);\n cm.state.modeGen++;\n if (cm.curOp) { regChange(cm); }\n }\n\n // DOCUMENT DATA STRUCTURE\n\n // By default, updates that start and end at the beginning of a line\n // are treated specially, in order to make the association of line\n // widgets and marker elements with the text behave more intuitive.\n function isWholeLineUpdate(doc, change) {\n return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == \"\" &&\n (!doc.cm || doc.cm.options.wholeLineUpdateBefore)\n }\n\n // Perform a change on the document data structure.\n function updateDoc(doc, change, markedSpans, estimateHeight) {\n function spansFor(n) {return markedSpans ? markedSpans[n] : null}\n function update(line, text, spans) {\n updateLine(line, text, spans, estimateHeight);\n signalLater(line, \"change\", line, change);\n }\n function linesFor(start, end) {\n var result = [];\n for (var i = start; i < end; ++i)\n { result.push(new Line(text[i], spansFor(i), estimateHeight)); }\n return result\n }\n\n var from = change.from, to = change.to, text = change.text;\n var firstLine = getLine(doc, from.line), lastLine = getLine(doc, to.line);\n var lastText = lst(text), lastSpans = spansFor(text.length - 1), nlines = to.line - from.line;\n\n // Adjust the line structure\n if (change.full) {\n doc.insert(0, linesFor(0, text.length));\n doc.remove(text.length, doc.size - text.length);\n } else if (isWholeLineUpdate(doc, change)) {\n // This is a whole-line replace. Treated specially to make\n // sure line objects move the way they are supposed to.\n var added = linesFor(0, text.length - 1);\n update(lastLine, lastLine.text, lastSpans);\n if (nlines) { doc.remove(from.line, nlines); }\n if (added.length) { doc.insert(from.line, added); }\n } else if (firstLine == lastLine) {\n if (text.length == 1) {\n update(firstLine, firstLine.text.slice(0, from.ch) + lastText + firstLine.text.slice(to.ch), lastSpans);\n } else {\n var added$1 = linesFor(1, text.length - 1);\n added$1.push(new Line(lastText + firstLine.text.slice(to.ch), lastSpans, estimateHeight));\n update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));\n doc.insert(from.line + 1, added$1);\n }\n } else if (text.length == 1) {\n update(firstLine, firstLine.text.slice(0, from.ch) + text[0] + lastLine.text.slice(to.ch), spansFor(0));\n doc.remove(from.line + 1, nlines);\n } else {\n update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));\n update(lastLine, lastText + lastLine.text.slice(to.ch), lastSpans);\n var added$2 = linesFor(1, text.length - 1);\n if (nlines > 1) { doc.remove(from.line + 1, nlines - 1); }\n doc.insert(from.line + 1, added$2);\n }\n\n signalLater(doc, \"change\", doc, change);\n }\n\n // Call f for all linked documents.\n function linkedDocs(doc, f, sharedHistOnly) {\n function propagate(doc, skip, sharedHist) {\n if (doc.linked) { for (var i = 0; i < doc.linked.length; ++i) {\n var rel = doc.linked[i];\n if (rel.doc == skip) { continue }\n var shared = sharedHist && rel.sharedHist;\n if (sharedHistOnly && !shared) { continue }\n f(rel.doc, shared);\n propagate(rel.doc, doc, shared);\n } }\n }\n propagate(doc, null, true);\n }\n\n // Attach a document to an editor.\n function attachDoc(cm, doc) {\n if (doc.cm) { throw new Error(\"This document is already in use.\") }\n cm.doc = doc;\n doc.cm = cm;\n estimateLineHeights(cm);\n loadMode(cm);\n setDirectionClass(cm);\n cm.options.direction = doc.direction;\n if (!cm.options.lineWrapping) { findMaxLine(cm); }\n cm.options.mode = doc.modeOption;\n regChange(cm);\n }\n\n function setDirectionClass(cm) {\n (cm.doc.direction == \"rtl\" ? addClass : rmClass)(cm.display.lineDiv, \"CodeMirror-rtl\");\n }\n\n function directionChanged(cm) {\n runInOp(cm, function () {\n setDirectionClass(cm);\n regChange(cm);\n });\n }\n\n function History(prev) {\n // Arrays of change events and selections. Doing something adds an\n // event to done and clears undo. Undoing moves events from done\n // to undone, redoing moves them in the other direction.\n this.done = []; this.undone = [];\n this.undoDepth = prev ? prev.undoDepth : Infinity;\n // Used to track when changes can be merged into a single undo\n // event\n this.lastModTime = this.lastSelTime = 0;\n this.lastOp = this.lastSelOp = null;\n this.lastOrigin = this.lastSelOrigin = null;\n // Used by the isClean() method\n this.generation = this.maxGeneration = prev ? prev.maxGeneration : 1;\n }\n\n // Create a history change event from an updateDoc-style change\n // object.\n function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }\n\n // Pop all selection events off the end of a history array. Stop at\n // a change event.\n function clearSelectionEvents(array) {\n while (array.length) {\n var last = lst(array);\n if (last.ranges) { array.pop(); }\n else { break }\n }\n }\n\n // Find the top change event in the history. Pop off selection\n // events that are in the way.\n function lastChangeEvent(hist, force) {\n if (force) {\n clearSelectionEvents(hist.done);\n return lst(hist.done)\n } else if (hist.done.length && !lst(hist.done).ranges) {\n return lst(hist.done)\n } else if (hist.done.length > 1 && !hist.done[hist.done.length - 2].ranges) {\n hist.done.pop();\n return lst(hist.done)\n }\n }\n\n // Register a change in the history. Merges changes that are within\n // a single operation, or are close together with an origin that\n // allows merging (starting with \"+\") into a single event.\n function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }\n\n function selectionEventCanBeMerged(doc, origin, prev, sel) {\n var ch = origin.charAt(0);\n return ch == \"*\" ||\n ch == \"+\" &&\n prev.ranges.length == sel.ranges.length &&\n prev.somethingSelected() == sel.somethingSelected() &&\n new Date - doc.history.lastSelTime <= (doc.cm ? doc.cm.options.historyEventDelay : 500)\n }\n\n // Called whenever the selection changes, sets the new selection as\n // the pending selection in the history, and pushes the old pending\n // selection into the 'done' array when it was significantly\n // different (in number of selected ranges, emptiness, or time).\n function addSelectionToHistory(doc, sel, opId, options) {\n var hist = doc.history, origin = options && options.origin;\n\n // A new event is started when the previous origin does not match\n // the current, or the origins don't allow matching. Origins\n // starting with * are always merged, those starting with + are\n // merged when similar and close together in time.\n if (opId == hist.lastSelOp ||\n (origin && hist.lastSelOrigin == origin &&\n (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||\n selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))))\n { hist.done[hist.done.length - 1] = sel; }\n else\n { pushSelectionToHistory(sel, hist.done); }\n\n hist.lastSelTime = +new Date;\n hist.lastSelOrigin = origin;\n hist.lastSelOp = opId;\n if (options && options.clearRedo !== false)\n { clearSelectionEvents(hist.undone); }\n }\n\n function pushSelectionToHistory(sel, dest) {\n var top = lst(dest);\n if (!(top && top.ranges && top.equals(sel)))\n { dest.push(sel); }\n }\n\n // Used to store marked span information in the history.\n function attachLocalSpans(doc, change, from, to) {\n var existing = change[\"spans_\" + doc.id], n = 0;\n doc.iter(Math.max(doc.first, from), Math.min(doc.first + doc.size, to), function (line) {\n if (line.markedSpans)\n { (existing || (existing = change[\"spans_\" + doc.id] = {}))[n] = line.markedSpans; }\n ++n;\n });\n }\n\n // When un/re-doing restores text containing marked spans, those\n // that have been explicitly cleared should not be restored.\n function removeClearedSpans(spans) {\n if (!spans) { return null }\n var out;\n for (var i = 0; i < spans.length; ++i) {\n if (spans[i].marker.explicitlyCleared) { if (!out) { out = spans.slice(0, i); } }\n else if (out) { out.push(spans[i]); }\n }\n return !out ? spans : out.length ? out : null\n }\n\n // Retrieve and filter the old marked spans stored in a change event.\n function getOldSpans(doc, change) {\n var found = change[\"spans_\" + doc.id];\n if (!found) { return null }\n var nw = [];\n for (var i = 0; i < change.text.length; ++i)\n { nw.push(removeClearedSpans(found[i])); }\n return nw\n }\n\n // Used for un/re-doing changes from the history. Combines the\n // result of computing the existing spans with the set of spans that\n // existed in the history (so that deleting around a span and then\n // undoing brings back the span).\n function mergeOldSpans(doc, change) {\n var old = getOldSpans(doc, change);\n var stretched = stretchSpansOverChange(doc, change);\n if (!old) { return stretched }\n if (!stretched) { return old }\n\n for (var i = 0; i < old.length; ++i) {\n var oldCur = old[i], stretchCur = stretched[i];\n if (oldCur && stretchCur) {\n spans: for (var j = 0; j < stretchCur.length; ++j) {\n var span = stretchCur[j];\n for (var k = 0; k < oldCur.length; ++k)\n { if (oldCur[k].marker == span.marker) { continue spans } }\n oldCur.push(span);\n }\n } else if (stretchCur) {\n old[i] = stretchCur;\n }\n }\n return old\n }\n\n // Used both to provide a JSON-safe object in .getHistory, and, when\n // detaching a document, to split the history in two\n function copyHistoryArray(events, newGroup, instantiateSel) {\n var copy = [];\n for (var i = 0; i < events.length; ++i) {\n var event = events[i];\n if (event.ranges) {\n copy.push(instantiateSel ? Selection.prototype.deepCopy.call(event) : event);\n continue\n }\n var changes = event.changes, newChanges = [];\n copy.push({changes: newChanges});\n for (var j = 0; j < changes.length; ++j) {\n var change = changes[j], m = (void 0);\n newChanges.push({from: change.from, to: change.to, text: change.text});\n if (newGroup) { for (var prop in change) { if (m = prop.match(/^spans_(\\d+)$/)) {\n if (indexOf(newGroup, Number(m[1])) > -1) {\n lst(newChanges)[prop] = change[prop];\n delete change[prop];\n }\n } } }\n }\n }\n return copy\n }\n\n // The 'scroll' parameter given to many of these indicated whether\n // the new cursor position should be scrolled into view after\n // modifying the selection.\n\n // If shift is held or the extend flag is set, extends a range to\n // include a given position (and optionally a second position).\n // Otherwise, simply returns the range between the given positions.\n // Used for cursor motion and such.\n function extendRange(range, head, other, extend) {\n if (extend) {\n var anchor = range.anchor;\n if (other) {\n var posBefore = cmp(head, anchor) < 0;\n if (posBefore != (cmp(other, anchor) < 0)) {\n anchor = head;\n head = other;\n } else if (posBefore != (cmp(head, other) < 0)) {\n head = other;\n }\n }\n return new Range(anchor, head)\n } else {\n return new Range(other || head, head)\n }\n }\n\n // Extend the primary selection range, discard the rest.\n function extendSelection(doc, head, other, options, extend) {\n if (extend == null) { extend = doc.cm && (doc.cm.display.shift || doc.extend); }\n setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options);\n }\n\n // Extend all selections (pos is an array of selections with length\n // equal the number of selections)\n function extendSelections(doc, heads, options) {\n var out = [];\n var extend = doc.cm && (doc.cm.display.shift || doc.extend);\n for (var i = 0; i < doc.sel.ranges.length; i++)\n { out[i] = extendRange(doc.sel.ranges[i], heads[i], null, extend); }\n var newSel = normalizeSelection(doc.cm, out, doc.sel.primIndex);\n setSelection(doc, newSel, options);\n }\n\n // Updates a single range in the selection.\n function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }\n\n // Reset the selection to a single range.\n function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }\n\n // Give beforeSelectionChange handlers a change to influence a\n // selection update.\n function filterSelectionChange(doc, sel, options) {\n var obj = {\n ranges: sel.ranges,\n update: function(ranges) {\n this.ranges = [];\n for (var i = 0; i < ranges.length; i++)\n { this.ranges[i] = new Range(clipPos(doc, ranges[i].anchor),\n clipPos(doc, ranges[i].head)); }\n },\n origin: options && options.origin\n };\n signal(doc, \"beforeSelectionChange\", doc, obj);\n if (doc.cm) { signal(doc.cm, \"beforeSelectionChange\", doc.cm, obj); }\n if (obj.ranges != sel.ranges) { return normalizeSelection(doc.cm, obj.ranges, obj.ranges.length - 1) }\n else { return sel }\n }\n\n function setSelectionReplaceHistory(doc, sel, options) {\n var done = doc.history.done, last = lst(done);\n if (last && last.ranges) {\n done[done.length - 1] = sel;\n setSelectionNoUndo(doc, sel, options);\n } else {\n setSelection(doc, sel, options);\n }\n }\n\n // Set a new selection.\n function setSelection(doc, sel, options) {\n setSelectionNoUndo(doc, sel, options);\n addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options);\n }\n\n function setSelectionNoUndo(doc, sel, options) {\n if (hasHandler(doc, \"beforeSelectionChange\") || doc.cm && hasHandler(doc.cm, \"beforeSelectionChange\"))\n { sel = filterSelectionChange(doc, sel, options); }\n\n var bias = options && options.bias ||\n (cmp(sel.primary().head, doc.sel.primary().head) < 0 ? -1 : 1);\n setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, true));\n\n if (!(options && options.scroll === false) && doc.cm && doc.cm.getOption(\"readOnly\") != \"nocursor\")\n { ensureCursorVisible(doc.cm); }\n }\n\n function setSelectionInner(doc, sel) {\n if (sel.equals(doc.sel)) { return }\n\n doc.sel = sel;\n\n if (doc.cm) {\n doc.cm.curOp.updateInput = 1;\n doc.cm.curOp.selectionChanged = true;\n signalCursorActivity(doc.cm);\n }\n signalLater(doc, \"cursorActivity\", doc);\n }\n\n // Verify that the selection does not partially select any atomic\n // marked ranges.\n function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }\n\n // Return a selection that does not partially select any atomic\n // ranges.\n function skipAtomicInSelection(doc, sel, bias, mayClear) {\n var out;\n for (var i = 0; i < sel.ranges.length; i++) {\n var range = sel.ranges[i];\n var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];\n var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);\n var newHead = range.head == range.anchor ? newAnchor : skipAtomic(doc, range.head, old && old.head, bias, mayClear);\n if (out || newAnchor != range.anchor || newHead != range.head) {\n if (!out) { out = sel.ranges.slice(0, i); }\n out[i] = new Range(newAnchor, newHead);\n }\n }\n return out ? normalizeSelection(doc.cm, out, sel.primIndex) : sel\n }\n\n function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {\n var line = getLine(doc, pos.line);\n if (line.markedSpans) { for (var i = 0; i < line.markedSpans.length; ++i) {\n var sp = line.markedSpans[i], m = sp.marker;\n\n // Determine if we should prevent the cursor being placed to the left/right of an atomic marker\n // Historically this was determined using the inclusiveLeft/Right option, but the new way to control it\n // is with selectLeft/Right\n var preventCursorLeft = (\"selectLeft\" in m) ? !m.selectLeft : m.inclusiveLeft;\n var preventCursorRight = (\"selectRight\" in m) ? !m.selectRight : m.inclusiveRight;\n\n if ((sp.from == null || (preventCursorLeft ? sp.from <= pos.ch : sp.from < pos.ch)) &&\n (sp.to == null || (preventCursorRight ? sp.to >= pos.ch : sp.to > pos.ch))) {\n if (mayClear) {\n signal(m, \"beforeCursorEnter\");\n if (m.explicitlyCleared) {\n if (!line.markedSpans) { break }\n else {--i; continue}\n }\n }\n if (!m.atomic) { continue }\n\n if (oldPos) {\n var near = m.find(dir < 0 ? 1 : -1), diff = (void 0);\n if (dir < 0 ? preventCursorRight : preventCursorLeft)\n { near = movePos(doc, near, -dir, near && near.line == pos.line ? line : null); }\n if (near && near.line == pos.line && (diff = cmp(near, oldPos)) && (dir < 0 ? diff < 0 : diff > 0))\n { return skipAtomicInner(doc, near, pos, dir, mayClear) }\n }\n\n var far = m.find(dir < 0 ? -1 : 1);\n if (dir < 0 ? preventCursorLeft : preventCursorRight)\n { far = movePos(doc, far, dir, far.line == pos.line ? line : null); }\n return far ? skipAtomicInner(doc, far, pos, dir, mayClear) : null\n }\n } }\n return pos\n }\n\n // Ensure a given position is not inside an atomic range.\n function skipAtomic(doc, pos, oldPos, bias, mayClear) {\n var dir = bias || 1;\n var found = skipAtomicInner(doc, pos, oldPos, dir, mayClear) ||\n (!mayClear && skipAtomicInner(doc, pos, oldPos, dir, true)) ||\n skipAtomicInner(doc, pos, oldPos, -dir, mayClear) ||\n (!mayClear && skipAtomicInner(doc, pos, oldPos, -dir, true));\n if (!found) {\n doc.cantEdit = true;\n return Pos(doc.first, 0)\n }\n return found\n }\n\n function movePos(doc, pos, dir, line) {\n if (dir < 0 && pos.ch == 0) {\n if (pos.line > doc.first) { return clipPos(doc, Pos(pos.line - 1)) }\n else { return null }\n } else if (dir > 0 && pos.ch == (line || getLine(doc, pos.line)).text.length) {\n if (pos.line < doc.first + doc.size - 1) { return Pos(pos.line + 1, 0) }\n else { return null }\n } else {\n return new Pos(pos.line, pos.ch + dir)\n }\n }\n\n function selectAll(cm) {\n cm.setSelection(Pos(cm.firstLine(), 0), Pos(cm.lastLine()), sel_dontScroll);\n }\n\n // UPDATING\n\n // Allow \"beforeChange\" event handlers to influence a change\n function filterChange(doc, change, update) {\n var obj = {\n canceled: false,\n from: change.from,\n to: change.to,\n text: change.text,\n origin: change.origin,\n cancel: function () { return obj.canceled = true; }\n };\n if (update) { obj.update = function (from, to, text, origin) {\n if (from) { obj.from = clipPos(doc, from); }\n if (to) { obj.to = clipPos(doc, to); }\n if (text) { obj.text = text; }\n if (origin !== undefined) { obj.origin = origin; }\n }; }\n signal(doc, \"beforeChange\", doc, obj);\n if (doc.cm) { signal(doc.cm, \"beforeChange\", doc.cm, obj); }\n\n if (obj.canceled) {\n if (doc.cm) { doc.cm.curOp.updateInput = 2; }\n return null\n }\n return {from: obj.from, to: obj.to, text: obj.text, origin: obj.origin}\n }\n\n // Apply a change to a document, and add it to the document's\n // history, and propagating it to all linked documents.\n function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }\n\n function makeChangeInner(doc, change) {\n if (change.text.length == 1 && change.text[0] == \"\" && cmp(change.from, change.to) == 0) { return }\n var selAfter = computeSelAfterChange(doc, change);\n addChangeToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN);\n\n makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change));\n var rebased = [];\n\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, stretchSpansOverChange(doc, change));\n });\n }\n\n // Revert a change stored in a document's history.\n function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n var suppress = doc.cm && doc.cm.state.suppressEdits;\n if (suppress && !allowSelectionOnly) { return }\n\n var hist = doc.history, event, selAfter = doc.sel;\n var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n // Verify that there is a useable event (so that ctrl-z won't\n // needlessly clear selection events)\n var i = 0;\n for (; i < source.length; i++) {\n event = source[i];\n if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n { break }\n }\n if (i == source.length) { return }\n hist.lastOrigin = hist.lastSelOrigin = null;\n\n for (;;) {\n event = source.pop();\n if (event.ranges) {\n pushSelectionToHistory(event, dest);\n if (allowSelectionOnly && !event.equals(doc.sel)) {\n setSelection(doc, event, {clearRedo: false});\n return\n }\n selAfter = event;\n } else if (suppress) {\n source.push(event);\n return\n } else { break }\n }\n\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var antiChanges = [];\n pushSelectionToHistory(selAfter, dest);\n dest.push({changes: antiChanges, generation: hist.generation});\n hist.generation = event.generation || ++hist.maxGeneration;\n\n var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n var loop = function ( i ) {\n var change = event.changes[i];\n change.origin = type;\n if (filter && !filterChange(doc, change, false)) {\n source.length = 0;\n return {}\n }\n\n antiChanges.push(historyChangeFromChange(doc, change));\n\n var after = i ? computeSelAfterChange(doc, change) : lst(source);\n makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\n var rebased = [];\n\n // Propagate to the linked documents\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n });\n };\n\n for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\n var returned = loop( i$1 );\n\n if ( returned ) return returned.v;\n }\n }\n\n // Sub-views need their line numbers shifted when text is added\n // above or below them in the parent document.\n function shiftDoc(doc, distance) {\n if (distance == 0) { return }\n doc.first += distance;\n doc.sel = new Selection(map(doc.sel.ranges, function (range) { return new Range(\n Pos(range.anchor.line + distance, range.anchor.ch),\n Pos(range.head.line + distance, range.head.ch)\n ); }), doc.sel.primIndex);\n if (doc.cm) {\n regChange(doc.cm, doc.first, doc.first - distance, distance);\n for (var d = doc.cm.display, l = d.viewFrom; l < d.viewTo; l++)\n { regLineChange(doc.cm, l, \"gutter\"); }\n }\n }\n\n // More lower-level change function, handling only a single document\n // (not linked ones).\n function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\n if (doc.cantEdit && skipAtomic(doc, Pos(doc.firstLine(), 0)))\n { doc.cantEdit = false; }\n }\n\n // Handle the interaction of a change to a document with the editor\n // that this document is part of.\n function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n }\n\n function replaceRange(doc, code, from, to, origin) {\n var assign;\n\n if (!to) { to = from; }\n if (cmp(to, from) < 0) { (assign = [to, from], from = assign[0], to = assign[1]); }\n if (typeof code == \"string\") { code = doc.splitLines(code); }\n makeChange(doc, {from: from, to: to, text: code, origin: origin});\n }\n\n // Rebasing/resetting history to deal with externally-sourced changes\n\n function rebaseHistSelSingle(pos, from, to, diff) {\n if (to < pos.line) {\n pos.line += diff;\n } else if (from < pos.line) {\n pos.line = from;\n pos.ch = 0;\n }\n }\n\n // Tries to rebase an array of history events given a change in the\n // document. If the change touches the same lines as the event, the\n // event, and everything 'behind' it, is discarded. If the change is\n // before the event, the event's positions are updated. Uses a\n // copy-on-write scheme for the positions, to avoid having to\n // reallocate them all on every rebase, but also avoid problems with\n // shared position objects being unsafely updated.\n function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }\n\n function rebaseHist(hist, change) {\n var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;\n rebaseHistArray(hist.done, from, to, diff);\n rebaseHistArray(hist.undone, from, to, diff);\n }\n\n // Utility for applying a change to a line by handle or number,\n // returning the number and optionally registering the line as\n // changed.\n function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n }\n\n // The document is represented as a BTree consisting of leaves, with\n // chunk of lines in them, and branches, with up to ten leaves or\n // other branch nodes below them. The top node is always a branch\n // node, and is the document object itself (meaning it has\n // additional methods and properties).\n //\n // All nodes have parent links. The tree is used both to go from\n // line numbers to line objects, and to go from objects to numbers.\n // It also indexes by height, and is used to convert between height\n // and line object, and to find the total height of the document.\n //\n // See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html\n\n function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }\n\n LeafChunk.prototype = {\n chunkSize: function() { return this.lines.length },\n\n // Remove the n lines at offset 'at'.\n removeInner: function(at, n) {\n for (var i = at, e = at + n; i < e; ++i) {\n var line = this.lines[i];\n this.height -= line.height;\n cleanUpLine(line);\n signalLater(line, \"delete\");\n }\n this.lines.splice(at, n);\n },\n\n // Helper used to collapse a small branch into a single leaf.\n collapse: function(lines) {\n lines.push.apply(lines, this.lines);\n },\n\n // Insert the given array of lines at offset 'at', count them as\n // having the given height.\n insertInner: function(at, lines, height) {\n this.height += height;\n this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));\n for (var i = 0; i < lines.length; ++i) { lines[i].parent = this; }\n },\n\n // Used to iterate over a part of the tree.\n iterN: function(at, n, op) {\n for (var e = at + n; at < e; ++at)\n { if (op(this.lines[at])) { return true } }\n }\n };\n\n function BranchChunk(children) {\n this.children = children;\n var size = 0, height = 0;\n for (var i = 0; i < children.length; ++i) {\n var ch = children[i];\n size += ch.chunkSize(); height += ch.height;\n ch.parent = this;\n }\n this.size = size;\n this.height = height;\n this.parent = null;\n }\n\n BranchChunk.prototype = {\n chunkSize: function() { return this.size },\n\n removeInner: function(at, n) {\n this.size -= n;\n for (var i = 0; i < this.children.length; ++i) {\n var child = this.children[i], sz = child.chunkSize();\n if (at < sz) {\n var rm = Math.min(n, sz - at), oldHeight = child.height;\n child.removeInner(at, rm);\n this.height -= oldHeight - child.height;\n if (sz == rm) { this.children.splice(i--, 1); child.parent = null; }\n if ((n -= rm) == 0) { break }\n at = 0;\n } else { at -= sz; }\n }\n // If the result is smaller than 25 lines, ensure that it is a\n // single leaf node.\n if (this.size - n < 25 &&\n (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))) {\n var lines = [];\n this.collapse(lines);\n this.children = [new LeafChunk(lines)];\n this.children[0].parent = this;\n }\n },\n\n collapse: function(lines) {\n for (var i = 0; i < this.children.length; ++i) { this.children[i].collapse(lines); }\n },\n\n insertInner: function(at, lines, height) {\n this.size += lines.length;\n this.height += height;\n for (var i = 0; i < this.children.length; ++i) {\n var child = this.children[i], sz = child.chunkSize();\n if (at <= sz) {\n child.insertInner(at, lines, height);\n if (child.lines && child.lines.length > 50) {\n // To avoid memory thrashing when child.lines is huge (e.g. first view of a large file), it's never spliced.\n // Instead, small slices are taken. They're taken in order because sequential memory accesses are fastest.\n var remaining = child.lines.length % 25 + 25;\n for (var pos = remaining; pos < child.lines.length;) {\n var leaf = new LeafChunk(child.lines.slice(pos, pos += 25));\n child.height -= leaf.height;\n this.children.splice(++i, 0, leaf);\n leaf.parent = this;\n }\n child.lines = child.lines.slice(0, remaining);\n this.maybeSpill();\n }\n break\n }\n at -= sz;\n }\n },\n\n // When a node has grown, check whether it should be split.\n maybeSpill: function() {\n if (this.children.length <= 10) { return }\n var me = this;\n do {\n var spilled = me.children.splice(me.children.length - 5, 5);\n var sibling = new BranchChunk(spilled);\n if (!me.parent) { // Become the parent node\n var copy = new BranchChunk(me.children);\n copy.parent = me;\n me.children = [copy, sibling];\n me = copy;\n } else {\n me.size -= sibling.size;\n me.height -= sibling.height;\n var myIndex = indexOf(me.parent.children, me);\n me.parent.children.splice(myIndex + 1, 0, sibling);\n }\n sibling.parent = me.parent;\n } while (me.children.length > 10)\n me.parent.maybeSpill();\n },\n\n iterN: function(at, n, op) {\n for (var i = 0; i < this.children.length; ++i) {\n var child = this.children[i], sz = child.chunkSize();\n if (at < sz) {\n var used = Math.min(n, sz - at);\n if (child.iterN(at, used, op)) { return true }\n if ((n -= used) == 0) { break }\n at = 0;\n } else { at -= sz; }\n }\n }\n };\n\n // Line widgets are block elements displayed above or below a line.\n\n var LineWidget = function(doc, node, options) {\n if (options) { for (var opt in options) { if (options.hasOwnProperty(opt))\n { this[opt] = options[opt]; } } }\n this.doc = doc;\n this.node = node;\n };\n\n LineWidget.prototype.clear = function () {\n var cm = this.doc.cm, ws = this.line.widgets, line = this.line, no = lineNo(line);\n if (no == null || !ws) { return }\n for (var i = 0; i < ws.length; ++i) { if (ws[i] == this) { ws.splice(i--, 1); } }\n if (!ws.length) { line.widgets = null; }\n var height = widgetHeight(this);\n updateLineHeight(line, Math.max(0, line.height - height));\n if (cm) {\n runInOp(cm, function () {\n adjustScrollWhenAboveVisible(cm, line, -height);\n regLineChange(cm, no, \"widget\");\n });\n signalLater(cm, \"lineWidgetCleared\", cm, this, no);\n }\n };\n\n LineWidget.prototype.changed = function () {\n var this$1 = this;\n\n var oldH = this.height, cm = this.doc.cm, line = this.line;\n this.height = null;\n var diff = widgetHeight(this) - oldH;\n if (!diff) { return }\n if (!lineIsHidden(this.doc, line)) { updateLineHeight(line, line.height + diff); }\n if (cm) {\n runInOp(cm, function () {\n cm.curOp.forceUpdate = true;\n adjustScrollWhenAboveVisible(cm, line, diff);\n signalLater(cm, \"lineWidgetChanged\", cm, this$1, lineNo(line));\n });\n }\n };\n eventMixin(LineWidget);\n\n function adjustScrollWhenAboveVisible(cm, line, diff) {\n if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop))\n { addToScrollTop(cm, diff); }\n }\n\n function addLineWidget(doc, handle, node, options) {\n var widget = new LineWidget(doc, node, options);\n var cm = doc.cm;\n if (cm && widget.noHScroll) { cm.display.alignWidgets = true; }\n changeLine(doc, handle, \"widget\", function (line) {\n var widgets = line.widgets || (line.widgets = []);\n if (widget.insertAt == null) { widgets.push(widget); }\n else { widgets.splice(Math.min(widgets.length, Math.max(0, widget.insertAt)), 0, widget); }\n widget.line = line;\n if (cm && !lineIsHidden(doc, line)) {\n var aboveVisible = heightAtLine(line) < doc.scrollTop;\n updateLineHeight(line, line.height + widgetHeight(widget));\n if (aboveVisible) { addToScrollTop(cm, widget.height); }\n cm.curOp.forceUpdate = true;\n }\n return true\n });\n if (cm) { signalLater(cm, \"lineWidgetAdded\", cm, widget, typeof handle == \"number\" ? handle : lineNo(handle)); }\n return widget\n }\n\n // TEXTMARKERS\n\n // Created with markText and setBookmark methods. A TextMarker is a\n // handle that can be used to clear or find a marked position in the\n // document. Line objects hold arrays (markedSpans) containing\n // {from, to, marker} object pointing to such marker objects, and\n // indicating that such a marker is present on that line. Multiple\n // lines may point to the same marker when it spans across lines.\n // The spans will have null for their from/to properties when the\n // marker continues beyond the start/end of the line. Markers have\n // links back to the lines they currently touch.\n\n // Collapsed markers have unique ids, in order to be able to order\n // them, which is needed for uniquely determining an outer marker\n // when they overlap (they may nest, but not partially overlap).\n var nextMarkerId = 0;\n\n var TextMarker = function(doc, type) {\n this.lines = [];\n this.type = type;\n this.doc = doc;\n this.id = ++nextMarkerId;\n };\n\n // Clear the marker.\n TextMarker.prototype.clear = function () {\n if (this.explicitlyCleared) { return }\n var cm = this.doc.cm, withOp = cm && !cm.curOp;\n if (withOp) { startOperation(cm); }\n if (hasHandler(this, \"clear\")) {\n var found = this.find();\n if (found) { signalLater(this, \"clear\", found.from, found.to); }\n }\n var min = null, max = null;\n for (var i = 0; i < this.lines.length; ++i) {\n var line = this.lines[i];\n var span = getMarkedSpanFor(line.markedSpans, this);\n if (cm && !this.collapsed) { regLineChange(cm, lineNo(line), \"text\"); }\n else if (cm) {\n if (span.to != null) { max = lineNo(line); }\n if (span.from != null) { min = lineNo(line); }\n }\n line.markedSpans = removeMarkedSpan(line.markedSpans, span);\n if (span.from == null && this.collapsed && !lineIsHidden(this.doc, line) && cm)\n { updateLineHeight(line, textHeight(cm.display)); }\n }\n if (cm && this.collapsed && !cm.options.lineWrapping) { for (var i$1 = 0; i$1 < this.lines.length; ++i$1) {\n var visual = visualLine(this.lines[i$1]), len = lineLength(visual);\n if (len > cm.display.maxLineLength) {\n cm.display.maxLine = visual;\n cm.display.maxLineLength = len;\n cm.display.maxLineChanged = true;\n }\n } }\n\n if (min != null && cm && this.collapsed) { regChange(cm, min, max + 1); }\n this.lines.length = 0;\n this.explicitlyCleared = true;\n if (this.atomic && this.doc.cantEdit) {\n this.doc.cantEdit = false;\n if (cm) { reCheckSelection(cm.doc); }\n }\n if (cm) { signalLater(cm, \"markerCleared\", cm, this, min, max); }\n if (withOp) { endOperation(cm); }\n if (this.parent) { this.parent.clear(); }\n };\n\n // Find the position of the marker in the document. Returns a {from,\n // to} object by default. Side can be passed to get a specific side\n // -- 0 (both), -1 (left), or 1 (right). When lineObj is true, the\n // Pos objects returned contain a line object, rather than a line\n // number (used to prevent looking up the same line twice).\n TextMarker.prototype.find = function (side, lineObj) {\n if (side == null && this.type == \"bookmark\") { side = 1; }\n var from, to;\n for (var i = 0; i < this.lines.length; ++i) {\n var line = this.lines[i];\n var span = getMarkedSpanFor(line.markedSpans, this);\n if (span.from != null) {\n from = Pos(lineObj ? line : lineNo(line), span.from);\n if (side == -1) { return from }\n }\n if (span.to != null) {\n to = Pos(lineObj ? line : lineNo(line), span.to);\n if (side == 1) { return to }\n }\n }\n return from && {from: from, to: to}\n };\n\n // Signals that the marker's widget changed, and surrounding layout\n // should be recomputed.\n TextMarker.prototype.changed = function () {\n var this$1 = this;\n\n var pos = this.find(-1, true), widget = this, cm = this.doc.cm;\n if (!pos || !cm) { return }\n runInOp(cm, function () {\n var line = pos.line, lineN = lineNo(pos.line);\n var view = findViewForLine(cm, lineN);\n if (view) {\n clearLineMeasurementCacheFor(view);\n cm.curOp.selectionChanged = cm.curOp.forceUpdate = true;\n }\n cm.curOp.updateMaxLine = true;\n if (!lineIsHidden(widget.doc, line) && widget.height != null) {\n var oldHeight = widget.height;\n widget.height = null;\n var dHeight = widgetHeight(widget) - oldHeight;\n if (dHeight)\n { updateLineHeight(line, line.height + dHeight); }\n }\n signalLater(cm, \"markerChanged\", cm, this$1);\n });\n };\n\n TextMarker.prototype.attachLine = function (line) {\n if (!this.lines.length && this.doc.cm) {\n var op = this.doc.cm.curOp;\n if (!op.maybeHiddenMarkers || indexOf(op.maybeHiddenMarkers, this) == -1)\n { (op.maybeUnhiddenMarkers || (op.maybeUnhiddenMarkers = [])).push(this); }\n }\n this.lines.push(line);\n };\n\n TextMarker.prototype.detachLine = function (line) {\n this.lines.splice(indexOf(this.lines, line), 1);\n if (!this.lines.length && this.doc.cm) {\n var op = this.doc.cm.curOp\n ;(op.maybeHiddenMarkers || (op.maybeHiddenMarkers = [])).push(this);\n }\n };\n eventMixin(TextMarker);\n\n // Create a marker, wire it up to the right lines, and\n function markText(doc, from, to, options, type) {\n // Shared markers (across linked documents) are handled separately\n // (markTextShared will call out to this again, once per\n // document).\n if (options && options.shared) { return markTextShared(doc, from, to, options, type) }\n // Ensure we are in an operation.\n if (doc.cm && !doc.cm.curOp) { return operation(doc.cm, markText)(doc, from, to, options, type) }\n\n var marker = new TextMarker(doc, type), diff = cmp(from, to);\n if (options) { copyObj(options, marker, false); }\n // Don't connect empty markers unless clearWhenEmpty is false\n if (diff > 0 || diff == 0 && marker.clearWhenEmpty !== false)\n { return marker }\n if (marker.replacedWith) {\n // Showing up as a widget implies collapsed (widget replaces text)\n marker.collapsed = true;\n marker.widgetNode = eltP(\"span\", [marker.replacedWith], \"CodeMirror-widget\");\n if (!options.handleMouseEvents) { marker.widgetNode.setAttribute(\"cm-ignore-events\", \"true\"); }\n if (options.insertLeft) { marker.widgetNode.insertLeft = true; }\n }\n if (marker.collapsed) {\n if (conflictingCollapsedRange(doc, from.line, from, to, marker) ||\n from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker))\n { throw new Error(\"Inserting collapsed marker partially overlapping an existing one\") }\n seeCollapsedSpans();\n }\n\n if (marker.addToHistory)\n { addChangeToHistory(doc, {from: from, to: to, origin: \"markText\"}, doc.sel, NaN); }\n\n var curLine = from.line, cm = doc.cm, updateMaxLine;\n doc.iter(curLine, to.line + 1, function (line) {\n if (cm && marker.collapsed && !cm.options.lineWrapping && visualLine(line) == cm.display.maxLine)\n { updateMaxLine = true; }\n if (marker.collapsed && curLine != from.line) { updateLineHeight(line, 0); }\n addMarkedSpan(line, new MarkedSpan(marker,\n curLine == from.line ? from.ch : null,\n curLine == to.line ? to.ch : null), doc.cm && doc.cm.curOp);\n ++curLine;\n });\n // lineIsHidden depends on the presence of the spans, so needs a second pass\n if (marker.collapsed) { doc.iter(from.line, to.line + 1, function (line) {\n if (lineIsHidden(doc, line)) { updateLineHeight(line, 0); }\n }); }\n\n if (marker.clearOnEnter) { on(marker, \"beforeCursorEnter\", function () { return marker.clear(); }); }\n\n if (marker.readOnly) {\n seeReadOnlySpans();\n if (doc.history.done.length || doc.history.undone.length)\n { doc.clearHistory(); }\n }\n if (marker.collapsed) {\n marker.id = ++nextMarkerId;\n marker.atomic = true;\n }\n if (cm) {\n // Sync editor state\n if (updateMaxLine) { cm.curOp.updateMaxLine = true; }\n if (marker.collapsed)\n { regChange(cm, from.line, to.line + 1); }\n else if (marker.className || marker.startStyle || marker.endStyle || marker.css ||\n marker.attributes || marker.title)\n { for (var i = from.line; i <= to.line; i++) { regLineChange(cm, i, \"text\"); } }\n if (marker.atomic) { reCheckSelection(cm.doc); }\n signalLater(cm, \"markerAdded\", cm, marker);\n }\n return marker\n }\n\n // SHARED TEXTMARKERS\n\n // A shared marker spans multiple linked documents. It is\n // implemented as a meta-marker-object controlling multiple normal\n // markers.\n var SharedTextMarker = function(markers, primary) {\n this.markers = markers;\n this.primary = primary;\n for (var i = 0; i < markers.length; ++i)\n { markers[i].parent = this; }\n };\n\n SharedTextMarker.prototype.clear = function () {\n if (this.explicitlyCleared) { return }\n this.explicitlyCleared = true;\n for (var i = 0; i < this.markers.length; ++i)\n { this.markers[i].clear(); }\n signalLater(this, \"clear\");\n };\n\n SharedTextMarker.prototype.find = function (side, lineObj) {\n return this.primary.find(side, lineObj)\n };\n eventMixin(SharedTextMarker);\n\n function markTextShared(doc, from, to, options, type) {\n options = copyObj(options);\n options.shared = false;\n var markers = [markText(doc, from, to, options, type)], primary = markers[0];\n var widget = options.widgetNode;\n linkedDocs(doc, function (doc) {\n if (widget) { options.widgetNode = widget.cloneNode(true); }\n markers.push(markText(doc, clipPos(doc, from), clipPos(doc, to), options, type));\n for (var i = 0; i < doc.linked.length; ++i)\n { if (doc.linked[i].isParent) { return } }\n primary = lst(markers);\n });\n return new SharedTextMarker(markers, primary)\n }\n\n function findSharedMarkers(doc) {\n return doc.findMarks(Pos(doc.first, 0), doc.clipPos(Pos(doc.lastLine())), function (m) { return m.parent; })\n }\n\n function copySharedMarkers(doc, markers) {\n for (var i = 0; i < markers.length; i++) {\n var marker = markers[i], pos = marker.find();\n var mFrom = doc.clipPos(pos.from), mTo = doc.clipPos(pos.to);\n if (cmp(mFrom, mTo)) {\n var subMark = markText(doc, mFrom, mTo, marker.primary, marker.primary.type);\n marker.markers.push(subMark);\n subMark.parent = marker;\n }\n }\n }\n\n function detachSharedMarkers(markers) {\n var loop = function ( i ) {\n var marker = markers[i], linked = [marker.primary.doc];\n linkedDocs(marker.primary.doc, function (d) { return linked.push(d); });\n for (var j = 0; j < marker.markers.length; j++) {\n var subMarker = marker.markers[j];\n if (indexOf(linked, subMarker.doc) == -1) {\n subMarker.parent = null;\n marker.markers.splice(j--, 1);\n }\n }\n };\n\n for (var i = 0; i < markers.length; i++) loop( i );\n }\n\n var nextDocId = 0;\n var Doc = function(text, mode, firstLine, lineSep, direction) {\n if (!(this instanceof Doc)) { return new Doc(text, mode, firstLine, lineSep, direction) }\n if (firstLine == null) { firstLine = 0; }\n\n BranchChunk.call(this, [new LeafChunk([new Line(\"\", null)])]);\n this.first = firstLine;\n this.scrollTop = this.scrollLeft = 0;\n this.cantEdit = false;\n this.cleanGeneration = 1;\n this.modeFrontier = this.highlightFrontier = firstLine;\n var start = Pos(firstLine, 0);\n this.sel = simpleSelection(start);\n this.history = new History(null);\n this.id = ++nextDocId;\n this.modeOption = mode;\n this.lineSep = lineSep;\n this.direction = (direction == \"rtl\") ? \"rtl\" : \"ltr\";\n this.extend = false;\n\n if (typeof text == \"string\") { text = this.splitLines(text); }\n updateDoc(this, {from: start, to: start, text: text});\n setSelection(this, simpleSelection(start), sel_dontScroll);\n };\n\n Doc.prototype = createObj(BranchChunk.prototype, {\n constructor: Doc,\n // Iterate over the document. Supports two forms -- with only one\n // argument, it calls that for each line in the document. With\n // three, it iterates over the range given by the first two (with\n // the second being non-inclusive).\n iter: function(from, to, op) {\n if (op) { this.iterN(from - this.first, to - from, op); }\n else { this.iterN(this.first, this.first + this.size, from); }\n },\n\n // Non-public interface for adding and removing lines.\n insert: function(at, lines) {\n var height = 0;\n for (var i = 0; i < lines.length; ++i) { height += lines[i].height; }\n this.insertInner(at - this.first, lines, height);\n },\n remove: function(at, n) { this.removeInner(at - this.first, n); },\n\n // From here, the methods are part of the public interface. Most\n // are also available from CodeMirror (editor) instances.\n\n getValue: function(lineSep) {\n var lines = getLines(this, this.first, this.first + this.size);\n if (lineSep === false) { return lines }\n return lines.join(lineSep || this.lineSeparator())\n },\n setValue: docMethodOp(function(code) {\n var top = Pos(this.first, 0), last = this.first + this.size - 1;\n makeChange(this, {from: top, to: Pos(last, getLine(this, last).text.length),\n text: this.splitLines(code), origin: \"setValue\", full: true}, true);\n if (this.cm) { scrollToCoords(this.cm, 0, 0); }\n setSelection(this, simpleSelection(top), sel_dontScroll);\n }),\n replaceRange: function(code, from, to, origin) {\n from = clipPos(this, from);\n to = to ? clipPos(this, to) : from;\n replaceRange(this, code, from, to, origin);\n },\n getRange: function(from, to, lineSep) {\n var lines = getBetween(this, clipPos(this, from), clipPos(this, to));\n if (lineSep === false) { return lines }\n if (lineSep === '') { return lines.join('') }\n return lines.join(lineSep || this.lineSeparator())\n },\n\n getLine: function(line) {var l = this.getLineHandle(line); return l && l.text},\n\n getLineHandle: function(line) {if (isLine(this, line)) { return getLine(this, line) }},\n getLineNumber: function(line) {return lineNo(line)},\n\n getLineHandleVisualStart: function(line) {\n if (typeof line == \"number\") { line = getLine(this, line); }\n return visualLine(line)\n },\n\n lineCount: function() {return this.size},\n firstLine: function() {return this.first},\n lastLine: function() {return this.first + this.size - 1},\n\n clipPos: function(pos) {return clipPos(this, pos)},\n\n getCursor: function(start) {\n var range = this.sel.primary(), pos;\n if (start == null || start == \"head\") { pos = range.head; }\n else if (start == \"anchor\") { pos = range.anchor; }\n else if (start == \"end\" || start == \"to\" || start === false) { pos = range.to(); }\n else { pos = range.from(); }\n return pos\n },\n listSelections: function() { return this.sel.ranges },\n somethingSelected: function() {return this.sel.somethingSelected()},\n\n setCursor: docMethodOp(function(line, ch, options) {\n setSimpleSelection(this, clipPos(this, typeof line == \"number\" ? Pos(line, ch || 0) : line), null, options);\n }),\n setSelection: docMethodOp(function(anchor, head, options) {\n setSimpleSelection(this, clipPos(this, anchor), clipPos(this, head || anchor), options);\n }),\n extendSelection: docMethodOp(function(head, other, options) {\n extendSelection(this, clipPos(this, head), other && clipPos(this, other), options);\n }),\n extendSelections: docMethodOp(function(heads, options) {\n extendSelections(this, clipPosArray(this, heads), options);\n }),\n extendSelectionsBy: docMethodOp(function(f, options) {\n var heads = map(this.sel.ranges, f);\n extendSelections(this, clipPosArray(this, heads), options);\n }),\n setSelections: docMethodOp(function(ranges, primary, options) {\n if (!ranges.length) { return }\n var out = [];\n for (var i = 0; i < ranges.length; i++)\n { out[i] = new Range(clipPos(this, ranges[i].anchor),\n clipPos(this, ranges[i].head || ranges[i].anchor)); }\n if (primary == null) { primary = Math.min(ranges.length - 1, this.sel.primIndex); }\n setSelection(this, normalizeSelection(this.cm, out, primary), options);\n }),\n addSelection: docMethodOp(function(anchor, head, options) {\n var ranges = this.sel.ranges.slice(0);\n ranges.push(new Range(clipPos(this, anchor), clipPos(this, head || anchor)));\n setSelection(this, normalizeSelection(this.cm, ranges, ranges.length - 1), options);\n }),\n\n getSelection: function(lineSep) {\n var ranges = this.sel.ranges, lines;\n for (var i = 0; i < ranges.length; i++) {\n var sel = getBetween(this, ranges[i].from(), ranges[i].to());\n lines = lines ? lines.concat(sel) : sel;\n }\n if (lineSep === false) { return lines }\n else { return lines.join(lineSep || this.lineSeparator()) }\n },\n getSelections: function(lineSep) {\n var parts = [], ranges = this.sel.ranges;\n for (var i = 0; i < ranges.length; i++) {\n var sel = getBetween(this, ranges[i].from(), ranges[i].to());\n if (lineSep !== false) { sel = sel.join(lineSep || this.lineSeparator()); }\n parts[i] = sel;\n }\n return parts\n },\n replaceSelection: function(code, collapse, origin) {\n var dup = [];\n for (var i = 0; i < this.sel.ranges.length; i++)\n { dup[i] = code; }\n this.replaceSelections(dup, collapse, origin || \"+input\");\n },\n replaceSelections: docMethodOp(function(code, collapse, origin) {\n var changes = [], sel = this.sel;\n for (var i = 0; i < sel.ranges.length; i++) {\n var range = sel.ranges[i];\n changes[i] = {from: range.from(), to: range.to(), text: this.splitLines(code[i]), origin: origin};\n }\n var newSel = collapse && collapse != \"end\" && computeReplacedSel(this, changes, collapse);\n for (var i$1 = changes.length - 1; i$1 >= 0; i$1--)\n { makeChange(this, changes[i$1]); }\n if (newSel) { setSelectionReplaceHistory(this, newSel); }\n else if (this.cm) { ensureCursorVisible(this.cm); }\n }),\n undo: docMethodOp(function() {makeChangeFromHistory(this, \"undo\");}),\n redo: docMethodOp(function() {makeChangeFromHistory(this, \"redo\");}),\n undoSelection: docMethodOp(function() {makeChangeFromHistory(this, \"undo\", true);}),\n redoSelection: docMethodOp(function() {makeChangeFromHistory(this, \"redo\", true);}),\n\n setExtending: function(val) {this.extend = val;},\n getExtending: function() {return this.extend},\n\n historySize: function() {\n var hist = this.history, done = 0, undone = 0;\n for (var i = 0; i < hist.done.length; i++) { if (!hist.done[i].ranges) { ++done; } }\n for (var i$1 = 0; i$1 < hist.undone.length; i$1++) { if (!hist.undone[i$1].ranges) { ++undone; } }\n return {undo: done, redo: undone}\n },\n clearHistory: function() {\n var this$1 = this;\n\n this.history = new History(this.history);\n linkedDocs(this, function (doc) { return doc.history = this$1.history; }, true);\n },\n\n markClean: function() {\n this.cleanGeneration = this.changeGeneration(true);\n },\n changeGeneration: function(forceSplit) {\n if (forceSplit)\n { this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null; }\n return this.history.generation\n },\n isClean: function (gen) {\n return this.history.generation == (gen || this.cleanGeneration)\n },\n\n getHistory: function() {\n return {done: copyHistoryArray(this.history.done),\n undone: copyHistoryArray(this.history.undone)}\n },\n setHistory: function(histData) {\n var hist = this.history = new History(this.history);\n hist.done = copyHistoryArray(histData.done.slice(0), null, true);\n hist.undone = copyHistoryArray(histData.undone.slice(0), null, true);\n },\n\n setGutterMarker: docMethodOp(function(line, gutterID, value) {\n return changeLine(this, line, \"gutter\", function (line) {\n var markers = line.gutterMarkers || (line.gutterMarkers = {});\n markers[gutterID] = value;\n if (!value && isEmpty(markers)) { line.gutterMarkers = null; }\n return true\n })\n }),\n\n clearGutter: docMethodOp(function(gutterID) {\n var this$1 = this;\n\n this.iter(function (line) {\n if (line.gutterMarkers && line.gutterMarkers[gutterID]) {\n changeLine(this$1, line, \"gutter\", function () {\n line.gutterMarkers[gutterID] = null;\n if (isEmpty(line.gutterMarkers)) { line.gutterMarkers = null; }\n return true\n });\n }\n });\n }),\n\n lineInfo: function(line) {\n var n;\n if (typeof line == \"number\") {\n if (!isLine(this, line)) { return null }\n n = line;\n line = getLine(this, line);\n if (!line) { return null }\n } else {\n n = lineNo(line);\n if (n == null) { return null }\n }\n return {line: n, handle: line, text: line.text, gutterMarkers: line.gutterMarkers,\n textClass: line.textClass, bgClass: line.bgClass, wrapClass: line.wrapClass,\n widgets: line.widgets}\n },\n\n addLineClass: docMethodOp(function(handle, where, cls) {\n return changeLine(this, handle, where == \"gutter\" ? \"gutter\" : \"class\", function (line) {\n var prop = where == \"text\" ? \"textClass\"\n : where == \"background\" ? \"bgClass\"\n : where == \"gutter\" ? \"gutterClass\" : \"wrapClass\";\n if (!line[prop]) { line[prop] = cls; }\n else if (classTest(cls).test(line[prop])) { return false }\n else { line[prop] += \" \" + cls; }\n return true\n })\n }),\n removeLineClass: docMethodOp(function(handle, where, cls) {\n return changeLine(this, handle, where == \"gutter\" ? \"gutter\" : \"class\", function (line) {\n var prop = where == \"text\" ? \"textClass\"\n : where == \"background\" ? \"bgClass\"\n : where == \"gutter\" ? \"gutterClass\" : \"wrapClass\";\n var cur = line[prop];\n if (!cur) { return false }\n else if (cls == null) { line[prop] = null; }\n else {\n var found = cur.match(classTest(cls));\n if (!found) { return false }\n var end = found.index + found[0].length;\n line[prop] = cur.slice(0, found.index) + (!found.index || end == cur.length ? \"\" : \" \") + cur.slice(end) || null;\n }\n return true\n })\n }),\n\n addLineWidget: docMethodOp(function(handle, node, options) {\n return addLineWidget(this, handle, node, options)\n }),\n removeLineWidget: function(widget) { widget.clear(); },\n\n markText: function(from, to, options) {\n return markText(this, clipPos(this, from), clipPos(this, to), options, options && options.type || \"range\")\n },\n setBookmark: function(pos, options) {\n var realOpts = {replacedWith: options && (options.nodeType == null ? options.widget : options),\n insertLeft: options && options.insertLeft,\n clearWhenEmpty: false, shared: options && options.shared,\n handleMouseEvents: options && options.handleMouseEvents};\n pos = clipPos(this, pos);\n return markText(this, pos, pos, realOpts, \"bookmark\")\n },\n findMarksAt: function(pos) {\n pos = clipPos(this, pos);\n var markers = [], spans = getLine(this, pos.line).markedSpans;\n if (spans) { for (var i = 0; i < spans.length; ++i) {\n var span = spans[i];\n if ((span.from == null || span.from <= pos.ch) &&\n (span.to == null || span.to >= pos.ch))\n { markers.push(span.marker.parent || span.marker); }\n } }\n return markers\n },\n findMarks: function(from, to, filter) {\n from = clipPos(this, from); to = clipPos(this, to);\n var found = [], lineNo = from.line;\n this.iter(from.line, to.line + 1, function (line) {\n var spans = line.markedSpans;\n if (spans) { for (var i = 0; i < spans.length; i++) {\n var span = spans[i];\n if (!(span.to != null && lineNo == from.line && from.ch >= span.to ||\n span.from == null && lineNo != from.line ||\n span.from != null && lineNo == to.line && span.from >= to.ch) &&\n (!filter || filter(span.marker)))\n { found.push(span.marker.parent || span.marker); }\n } }\n ++lineNo;\n });\n return found\n },\n getAllMarks: function() {\n var markers = [];\n this.iter(function (line) {\n var sps = line.markedSpans;\n if (sps) { for (var i = 0; i < sps.length; ++i)\n { if (sps[i].from != null) { markers.push(sps[i].marker); } } }\n });\n return markers\n },\n\n posFromIndex: function(off) {\n var ch, lineNo = this.first, sepSize = this.lineSeparator().length;\n this.iter(function (line) {\n var sz = line.text.length + sepSize;\n if (sz > off) { ch = off; return true }\n off -= sz;\n ++lineNo;\n });\n return clipPos(this, Pos(lineNo, ch))\n },\n indexFromPos: function (coords) {\n coords = clipPos(this, coords);\n var index = coords.ch;\n if (coords.line < this.first || coords.ch < 0) { return 0 }\n var sepSize = this.lineSeparator().length;\n this.iter(this.first, coords.line, function (line) { // iter aborts when callback returns a truthy value\n index += line.text.length + sepSize;\n });\n return index\n },\n\n copy: function(copyHistory) {\n var doc = new Doc(getLines(this, this.first, this.first + this.size),\n this.modeOption, this.first, this.lineSep, this.direction);\n doc.scrollTop = this.scrollTop; doc.scrollLeft = this.scrollLeft;\n doc.sel = this.sel;\n doc.extend = false;\n if (copyHistory) {\n doc.history.undoDepth = this.history.undoDepth;\n doc.setHistory(this.getHistory());\n }\n return doc\n },\n\n linkedDoc: function(options) {\n if (!options) { options = {}; }\n var from = this.first, to = this.first + this.size;\n if (options.from != null && options.from > from) { from = options.from; }\n if (options.to != null && options.to < to) { to = options.to; }\n var copy = new Doc(getLines(this, from, to), options.mode || this.modeOption, from, this.lineSep, this.direction);\n if (options.sharedHist) { copy.history = this.history\n ; }(this.linked || (this.linked = [])).push({doc: copy, sharedHist: options.sharedHist});\n copy.linked = [{doc: this, isParent: true, sharedHist: options.sharedHist}];\n copySharedMarkers(copy, findSharedMarkers(this));\n return copy\n },\n unlinkDoc: function(other) {\n if (other instanceof CodeMirror) { other = other.doc; }\n if (this.linked) { for (var i = 0; i < this.linked.length; ++i) {\n var link = this.linked[i];\n if (link.doc != other) { continue }\n this.linked.splice(i, 1);\n other.unlinkDoc(this);\n detachSharedMarkers(findSharedMarkers(this));\n break\n } }\n // If the histories were shared, split them again\n if (other.history == this.history) {\n var splitIds = [other.id];\n linkedDocs(other, function (doc) { return splitIds.push(doc.id); }, true);\n other.history = new History(null);\n other.history.done = copyHistoryArray(this.history.done, splitIds);\n other.history.undone = copyHistoryArray(this.history.undone, splitIds);\n }\n },\n iterLinkedDocs: function(f) {linkedDocs(this, f);},\n\n getMode: function() {return this.mode},\n getEditor: function() {return this.cm},\n\n splitLines: function(str) {\n if (this.lineSep) { return str.split(this.lineSep) }\n return splitLinesAuto(str)\n },\n lineSeparator: function() { return this.lineSep || \"\\n\" },\n\n setDirection: docMethodOp(function (dir) {\n if (dir != \"rtl\") { dir = \"ltr\"; }\n if (dir == this.direction) { return }\n this.direction = dir;\n this.iter(function (line) { return line.order = null; });\n if (this.cm) { directionChanged(this.cm); }\n })\n });\n\n // Public alias.\n Doc.prototype.eachLine = Doc.prototype.iter;\n\n // Kludge to work around strange IE behavior where it'll sometimes\n // re-fire a series of drag-related events right after the drop (#1551)\n var lastDrop = 0;\n\n function onDrop(e) {\n var cm = this;\n clearDragCursor(cm);\n if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e))\n { return }\n e_preventDefault(e);\n if (ie) { lastDrop = +new Date; }\n var pos = posFromMouse(cm, e, true), files = e.dataTransfer.files;\n if (!pos || cm.isReadOnly()) { return }\n // Might be a file drop, in which case we simply extract the text\n // and insert it.\n if (files && files.length && window.FileReader && window.File) {\n var n = files.length, text = Array(n), read = 0;\n var markAsReadAndPasteIfAllFilesAreRead = function () {\n if (++read == n) {\n operation(cm, function () {\n pos = clipPos(cm.doc, pos);\n var change = {from: pos, to: pos,\n text: cm.doc.splitLines(\n text.filter(function (t) { return t != null; }).join(cm.doc.lineSeparator())),\n origin: \"paste\"};\n makeChange(cm.doc, change);\n setSelectionReplaceHistory(cm.doc, simpleSelection(clipPos(cm.doc, pos), clipPos(cm.doc, changeEnd(change))));\n })();\n }\n };\n var readTextFromFile = function (file, i) {\n if (cm.options.allowDropFileTypes &&\n indexOf(cm.options.allowDropFileTypes, file.type) == -1) {\n markAsReadAndPasteIfAllFilesAreRead();\n return\n }\n var reader = new FileReader;\n reader.onerror = function () { return markAsReadAndPasteIfAllFilesAreRead(); };\n reader.onload = function () {\n var content = reader.result;\n if (/[\\x00-\\x08\\x0e-\\x1f]{2}/.test(content)) {\n markAsReadAndPasteIfAllFilesAreRead();\n return\n }\n text[i] = content;\n markAsReadAndPasteIfAllFilesAreRead();\n };\n reader.readAsText(file);\n };\n for (var i = 0; i < files.length; i++) { readTextFromFile(files[i], i); }\n } else { // Normal drop\n // Don't do a replace if the drop happened inside of the selected text.\n if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {\n cm.state.draggingText(e);\n // Ensure the editor is re-focused\n setTimeout(function () { return cm.display.input.focus(); }, 20);\n return\n }\n try {\n var text$1 = e.dataTransfer.getData(\"Text\");\n if (text$1) {\n var selected;\n if (cm.state.draggingText && !cm.state.draggingText.copy)\n { selected = cm.listSelections(); }\n setSelectionNoUndo(cm.doc, simpleSelection(pos, pos));\n if (selected) { for (var i$1 = 0; i$1 < selected.length; ++i$1)\n { replaceRange(cm.doc, \"\", selected[i$1].anchor, selected[i$1].head, \"drag\"); } }\n cm.replaceSelection(text$1, \"around\", \"paste\");\n cm.display.input.focus();\n }\n }\n catch(e$1){}\n }\n }\n\n function onDragStart(cm, e) {\n if (ie && (!cm.state.draggingText || +new Date - lastDrop < 100)) { e_stop(e); return }\n if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) { return }\n\n e.dataTransfer.setData(\"Text\", cm.getSelection());\n e.dataTransfer.effectAllowed = \"copyMove\";\n\n // Use dummy image instead of default browsers image.\n // Recent Safari (~6.0.2) have a tendency to segfault when this happens, so we don't do it there.\n if (e.dataTransfer.setDragImage && !safari) {\n var img = elt(\"img\", null, null, \"position: fixed; left: 0; top: 0;\");\n img.src = \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";\n if (presto) {\n img.width = img.height = 1;\n cm.display.wrapper.appendChild(img);\n // Force a relayout, or Opera won't use our image for some obscure reason\n img._top = img.offsetTop;\n }\n e.dataTransfer.setDragImage(img, 0, 0);\n if (presto) { img.parentNode.removeChild(img); }\n }\n }\n\n function onDragOver(cm, e) {\n var pos = posFromMouse(cm, e);\n if (!pos) { return }\n var frag = document.createDocumentFragment();\n drawSelectionCursor(cm, pos, frag);\n if (!cm.display.dragCursor) {\n cm.display.dragCursor = elt(\"div\", null, \"CodeMirror-cursors CodeMirror-dragcursors\");\n cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv);\n }\n removeChildrenAndAdd(cm.display.dragCursor, frag);\n }\n\n function clearDragCursor(cm) {\n if (cm.display.dragCursor) {\n cm.display.lineSpace.removeChild(cm.display.dragCursor);\n cm.display.dragCursor = null;\n }\n }\n\n // These must be handled carefully, because naively registering a\n // handler for each editor will cause the editors to never be\n // garbage collected.\n\n function forEachCodeMirror(f) {\n if (!document.getElementsByClassName) { return }\n var byClass = document.getElementsByClassName(\"CodeMirror\"), editors = [];\n for (var i = 0; i < byClass.length; i++) {\n var cm = byClass[i].CodeMirror;\n if (cm) { editors.push(cm); }\n }\n if (editors.length) { editors[0].operation(function () {\n for (var i = 0; i < editors.length; i++) { f(editors[i]); }\n }); }\n }\n\n var globalsRegistered = false;\n function ensureGlobalHandlers() {\n if (globalsRegistered) { return }\n registerGlobalHandlers();\n globalsRegistered = true;\n }\n function registerGlobalHandlers() {\n // When the window resizes, we need to refresh active editors.\n var resizeTimer;\n on(window, \"resize\", function () {\n if (resizeTimer == null) { resizeTimer = setTimeout(function () {\n resizeTimer = null;\n forEachCodeMirror(onResize);\n }, 100); }\n });\n // When the window loses focus, we want to show the editor as blurred\n on(window, \"blur\", function () { return forEachCodeMirror(onBlur); });\n }\n // Called when the window resizes\n function onResize(cm) {\n var d = cm.display;\n // Might be a text scaling operation, clear size caches.\n d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;\n d.scrollbarsClipped = false;\n cm.setSize();\n }\n\n var keyNames = {\n 3: \"Pause\", 8: \"Backspace\", 9: \"Tab\", 13: \"Enter\", 16: \"Shift\", 17: \"Ctrl\", 18: \"Alt\",\n 19: \"Pause\", 20: \"CapsLock\", 27: \"Esc\", 32: \"Space\", 33: \"PageUp\", 34: \"PageDown\", 35: \"End\",\n 36: \"Home\", 37: \"Left\", 38: \"Up\", 39: \"Right\", 40: \"Down\", 44: \"PrintScrn\", 45: \"Insert\",\n 46: \"Delete\", 59: \";\", 61: \"=\", 91: \"Mod\", 92: \"Mod\", 93: \"Mod\",\n 106: \"*\", 107: \"=\", 109: \"-\", 110: \".\", 111: \"/\", 145: \"ScrollLock\",\n 173: \"-\", 186: \";\", 187: \"=\", 188: \",\", 189: \"-\", 190: \".\", 191: \"/\", 192: \"`\", 219: \"[\", 220: \"\\\\\",\n 221: \"]\", 222: \"'\", 224: \"Mod\", 63232: \"Up\", 63233: \"Down\", 63234: \"Left\", 63235: \"Right\", 63272: \"Delete\",\n 63273: \"Home\", 63275: \"End\", 63276: \"PageUp\", 63277: \"PageDown\", 63302: \"Insert\"\n };\n\n // Number keys\n for (var i = 0; i < 10; i++) { keyNames[i + 48] = keyNames[i + 96] = String(i); }\n // Alphabetic keys\n for (var i$1 = 65; i$1 <= 90; i$1++) { keyNames[i$1] = String.fromCharCode(i$1); }\n // Function keys\n for (var i$2 = 1; i$2 <= 12; i$2++) { keyNames[i$2 + 111] = keyNames[i$2 + 63235] = \"F\" + i$2; }\n\n var keyMap = {};\n\n keyMap.basic = {\n \"Left\": \"goCharLeft\", \"Right\": \"goCharRight\", \"Up\": \"goLineUp\", \"Down\": \"goLineDown\",\n \"End\": \"goLineEnd\", \"Home\": \"goLineStartSmart\", \"PageUp\": \"goPageUp\", \"PageDown\": \"goPageDown\",\n \"Delete\": \"delCharAfter\", \"Backspace\": \"delCharBefore\", \"Shift-Backspace\": \"delCharBefore\",\n \"Tab\": \"defaultTab\", \"Shift-Tab\": \"indentAuto\",\n \"Enter\": \"newlineAndIndent\", \"Insert\": \"toggleOverwrite\",\n \"Esc\": \"singleSelection\"\n };\n // Note that the save and find-related commands aren't defined by\n // default. User code or addons can define them. Unknown commands\n // are simply ignored.\n keyMap.pcDefault = {\n \"Ctrl-A\": \"selectAll\", \"Ctrl-D\": \"deleteLine\", \"Ctrl-Z\": \"undo\", \"Shift-Ctrl-Z\": \"redo\", \"Ctrl-Y\": \"redo\",\n \"Ctrl-Home\": \"goDocStart\", \"Ctrl-End\": \"goDocEnd\", \"Ctrl-Up\": \"goLineUp\", \"Ctrl-Down\": \"goLineDown\",\n \"Ctrl-Left\": \"goGroupLeft\", \"Ctrl-Right\": \"goGroupRight\", \"Alt-Left\": \"goLineStart\", \"Alt-Right\": \"goLineEnd\",\n \"Ctrl-Backspace\": \"delGroupBefore\", \"Ctrl-Delete\": \"delGroupAfter\", \"Ctrl-S\": \"save\", \"Ctrl-F\": \"find\",\n \"Ctrl-G\": \"findNext\", \"Shift-Ctrl-G\": \"findPrev\", \"Shift-Ctrl-F\": \"replace\", \"Shift-Ctrl-R\": \"replaceAll\",\n \"Ctrl-[\": \"indentLess\", \"Ctrl-]\": \"indentMore\",\n \"Ctrl-U\": \"undoSelection\", \"Shift-Ctrl-U\": \"redoSelection\", \"Alt-U\": \"redoSelection\",\n \"fallthrough\": \"basic\"\n };\n // Very basic readline/emacs-style bindings, which are standard on Mac.\n keyMap.emacsy = {\n \"Ctrl-F\": \"goCharRight\", \"Ctrl-B\": \"goCharLeft\", \"Ctrl-P\": \"goLineUp\", \"Ctrl-N\": \"goLineDown\",\n \"Ctrl-A\": \"goLineStart\", \"Ctrl-E\": \"goLineEnd\", \"Ctrl-V\": \"goPageDown\", \"Shift-Ctrl-V\": \"goPageUp\",\n \"Ctrl-D\": \"delCharAfter\", \"Ctrl-H\": \"delCharBefore\", \"Alt-Backspace\": \"delWordBefore\", \"Ctrl-K\": \"killLine\",\n \"Ctrl-T\": \"transposeChars\", \"Ctrl-O\": \"openLine\"\n };\n keyMap.macDefault = {\n \"Cmd-A\": \"selectAll\", \"Cmd-D\": \"deleteLine\", \"Cmd-Z\": \"undo\", \"Shift-Cmd-Z\": \"redo\", \"Cmd-Y\": \"redo\",\n \"Cmd-Home\": \"goDocStart\", \"Cmd-Up\": \"goDocStart\", \"Cmd-End\": \"goDocEnd\", \"Cmd-Down\": \"goDocEnd\", \"Alt-Left\": \"goGroupLeft\",\n \"Alt-Right\": \"goGroupRight\", \"Cmd-Left\": \"goLineLeft\", \"Cmd-Right\": \"goLineRight\", \"Alt-Backspace\": \"delGroupBefore\",\n \"Ctrl-Alt-Backspace\": \"delGroupAfter\", \"Alt-Delete\": \"delGroupAfter\", \"Cmd-S\": \"save\", \"Cmd-F\": \"find\",\n \"Cmd-G\": \"findNext\", \"Shift-Cmd-G\": \"findPrev\", \"Cmd-Alt-F\": \"replace\", \"Shift-Cmd-Alt-F\": \"replaceAll\",\n \"Cmd-[\": \"indentLess\", \"Cmd-]\": \"indentMore\", \"Cmd-Backspace\": \"delWrappedLineLeft\", \"Cmd-Delete\": \"delWrappedLineRight\",\n \"Cmd-U\": \"undoSelection\", \"Shift-Cmd-U\": \"redoSelection\", \"Ctrl-Up\": \"goDocStart\", \"Ctrl-Down\": \"goDocEnd\",\n \"fallthrough\": [\"basic\", \"emacsy\"]\n };\n keyMap[\"default\"] = mac ? keyMap.macDefault : keyMap.pcDefault;\n\n // KEYMAP DISPATCH\n\n function normalizeKeyName(name) {\n var parts = name.split(/-(?!$)/);\n name = parts[parts.length - 1];\n var alt, ctrl, shift, cmd;\n for (var i = 0; i < parts.length - 1; i++) {\n var mod = parts[i];\n if (/^(cmd|meta|m)$/i.test(mod)) { cmd = true; }\n else if (/^a(lt)?$/i.test(mod)) { alt = true; }\n else if (/^(c|ctrl|control)$/i.test(mod)) { ctrl = true; }\n else if (/^s(hift)?$/i.test(mod)) { shift = true; }\n else { throw new Error(\"Unrecognized modifier name: \" + mod) }\n }\n if (alt) { name = \"Alt-\" + name; }\n if (ctrl) { name = \"Ctrl-\" + name; }\n if (cmd) { name = \"Cmd-\" + name; }\n if (shift) { name = \"Shift-\" + name; }\n return name\n }\n\n // This is a kludge to keep keymaps mostly working as raw objects\n // (backwards compatibility) while at the same time support features\n // like normalization and multi-stroke key bindings. It compiles a\n // new normalized keymap, and then updates the old object to reflect\n // this.\n function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n }\n\n function lookupKey(key, map, handle, context) {\n map = getKeyMap(map);\n var found = map.call ? map.call(key, context) : map[key];\n if (found === false) { return \"nothing\" }\n if (found === \"...\") { return \"multi\" }\n if (found != null && handle(found)) { return \"handled\" }\n\n if (map.fallthrough) {\n if (Object.prototype.toString.call(map.fallthrough) != \"[object Array]\")\n { return lookupKey(key, map.fallthrough, handle, context) }\n for (var i = 0; i < map.fallthrough.length; i++) {\n var result = lookupKey(key, map.fallthrough[i], handle, context);\n if (result) { return result }\n }\n }\n }\n\n // Modifier key presses don't count as 'real' key presses for the\n // purpose of keymap fallthrough.\n function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n }\n\n function addModifierNames(name, event, noShift) {\n var base = name;\n if (event.altKey && base != \"Alt\") { name = \"Alt-\" + name; }\n if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != \"Ctrl\") { name = \"Ctrl-\" + name; }\n if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != \"Mod\") { name = \"Cmd-\" + name; }\n if (!noShift && event.shiftKey && base != \"Shift\") { name = \"Shift-\" + name; }\n return name\n }\n\n // Look up the name of a key as indicated by an event object.\n function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }\n\n function getKeyMap(val) {\n return typeof val == \"string\" ? keyMap[val] : val\n }\n\n // Helper for deleting text near the selection(s), used to implement\n // backspace, delete, and similar functionality.\n function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n }\n\n function moveCharLogically(line, ch, dir) {\n var target = skipExtendingChars(line.text, ch + dir, dir);\n return target < 0 || target > line.text.length ? null : target\n }\n\n function moveLogically(line, start, dir) {\n var ch = moveCharLogically(line, start.ch, dir);\n return ch == null ? null : new Pos(start.line, ch, dir < 0 ? \"after\" : \"before\")\n }\n\n function endOfLine(visually, cm, lineObj, lineNo, dir) {\n if (visually) {\n if (cm.doc.direction == \"rtl\") { dir = -dir; }\n var order = getOrder(lineObj, cm.doc.direction);\n if (order) {\n var part = dir < 0 ? lst(order) : order[0];\n var moveInStorageOrder = (dir < 0) == (part.level == 1);\n var sticky = moveInStorageOrder ? \"after\" : \"before\";\n var ch;\n // With a wrapped rtl chunk (possibly spanning multiple bidi parts),\n // it could be that the last bidi part is not on the last visual line,\n // since visual lines contain content order-consecutive chunks.\n // Thus, in rtl, we are looking for the first (content-order) character\n // in the rtl chunk that is on the last line (that is, the same line\n // as the last (content-order) character).\n if (part.level > 0 || cm.doc.direction == \"rtl\") {\n var prep = prepareMeasureForLine(cm, lineObj);\n ch = dir < 0 ? lineObj.text.length - 1 : 0;\n var targetTop = measureCharPrepared(cm, prep, ch).top;\n ch = findFirst(function (ch) { return measureCharPrepared(cm, prep, ch).top == targetTop; }, (dir < 0) == (part.level == 1) ? part.from : part.to - 1, ch);\n if (sticky == \"before\") { ch = moveCharLogically(lineObj, ch, 1); }\n } else { ch = dir < 0 ? part.to : part.from; }\n return new Pos(lineNo, ch, sticky)\n }\n }\n return new Pos(lineNo, dir < 0 ? lineObj.text.length : 0, dir < 0 ? \"before\" : \"after\")\n }\n\n function moveVisually(cm, line, start, dir) {\n var bidi = getOrder(line, cm.doc.direction);\n if (!bidi) { return moveLogically(line, start, dir) }\n if (start.ch >= line.text.length) {\n start.ch = line.text.length;\n start.sticky = \"before\";\n } else if (start.ch <= 0) {\n start.ch = 0;\n start.sticky = \"after\";\n }\n var partPos = getBidiPartAt(bidi, start.ch, start.sticky), part = bidi[partPos];\n if (cm.doc.direction == \"ltr\" && part.level % 2 == 0 && (dir > 0 ? part.to > start.ch : part.from < start.ch)) {\n // Case 1: We move within an ltr part in an ltr editor. Even with wrapped lines,\n // nothing interesting happens.\n return moveLogically(line, start, dir)\n }\n\n var mv = function (pos, dir) { return moveCharLogically(line, pos instanceof Pos ? pos.ch : pos, dir); };\n var prep;\n var getWrappedLineExtent = function (ch) {\n if (!cm.options.lineWrapping) { return {begin: 0, end: line.text.length} }\n prep = prep || prepareMeasureForLine(cm, line);\n return wrappedLineExtentChar(cm, line, prep, ch)\n };\n var wrappedLineExtent = getWrappedLineExtent(start.sticky == \"before\" ? mv(start, -1) : start.ch);\n\n if (cm.doc.direction == \"rtl\" || part.level == 1) {\n var moveInStorageOrder = (part.level == 1) == (dir < 0);\n var ch = mv(start, moveInStorageOrder ? 1 : -1);\n if (ch != null && (!moveInStorageOrder ? ch >= part.from && ch >= wrappedLineExtent.begin : ch <= part.to && ch <= wrappedLineExtent.end)) {\n // Case 2: We move within an rtl part or in an rtl editor on the same visual line\n var sticky = moveInStorageOrder ? \"before\" : \"after\";\n return new Pos(start.line, ch, sticky)\n }\n }\n\n // Case 3: Could not move within this bidi part in this visual line, so leave\n // the current bidi part\n\n var searchInVisualLine = function (partPos, dir, wrappedLineExtent) {\n var getRes = function (ch, moveInStorageOrder) { return moveInStorageOrder\n ? new Pos(start.line, mv(ch, 1), \"before\")\n : new Pos(start.line, ch, \"after\"); };\n\n for (; partPos >= 0 && partPos < bidi.length; partPos += dir) {\n var part = bidi[partPos];\n var moveInStorageOrder = (dir > 0) == (part.level != 1);\n var ch = moveInStorageOrder ? wrappedLineExtent.begin : mv(wrappedLineExtent.end, -1);\n if (part.from <= ch && ch < part.to) { return getRes(ch, moveInStorageOrder) }\n ch = moveInStorageOrder ? part.from : mv(part.to, -1);\n if (wrappedLineExtent.begin <= ch && ch < wrappedLineExtent.end) { return getRes(ch, moveInStorageOrder) }\n }\n };\n\n // Case 3a: Look for other bidi parts on the same visual line\n var res = searchInVisualLine(partPos + dir, dir, wrappedLineExtent);\n if (res) { return res }\n\n // Case 3b: Look for other bidi parts on the next visual line\n var nextCh = dir > 0 ? wrappedLineExtent.end : mv(wrappedLineExtent.begin, -1);\n if (nextCh != null && !(dir > 0 && nextCh == line.text.length)) {\n res = searchInVisualLine(dir > 0 ? 0 : bidi.length - 1, dir, getWrappedLineExtent(nextCh));\n if (res) { return res }\n }\n\n // Case 4: Nowhere to move\n return null\n }\n\n // Commands are parameter-less actions that can be performed on an\n // editor, mostly used for keybindings.\n var commands = {\n selectAll: selectAll,\n singleSelection: function (cm) { return cm.setSelection(cm.getCursor(\"anchor\"), cm.getCursor(\"head\"), sel_dontScroll); },\n killLine: function (cm) { return deleteNearSelection(cm, function (range) {\n if (range.empty()) {\n var len = getLine(cm.doc, range.head.line).text.length;\n if (range.head.ch == len && range.head.line < cm.lastLine())\n { return {from: range.head, to: Pos(range.head.line + 1, 0)} }\n else\n { return {from: range.head, to: Pos(range.head.line, len)} }\n } else {\n return {from: range.from(), to: range.to()}\n }\n }); },\n deleteLine: function (cm) { return deleteNearSelection(cm, function (range) { return ({\n from: Pos(range.from().line, 0),\n to: clipPos(cm.doc, Pos(range.to().line + 1, 0))\n }); }); },\n delLineLeft: function (cm) { return deleteNearSelection(cm, function (range) { return ({\n from: Pos(range.from().line, 0), to: range.from()\n }); }); },\n delWrappedLineLeft: function (cm) { return deleteNearSelection(cm, function (range) {\n var top = cm.charCoords(range.head, \"div\").top + 5;\n var leftPos = cm.coordsChar({left: 0, top: top}, \"div\");\n return {from: leftPos, to: range.from()}\n }); },\n delWrappedLineRight: function (cm) { return deleteNearSelection(cm, function (range) {\n var top = cm.charCoords(range.head, \"div\").top + 5;\n var rightPos = cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, \"div\");\n return {from: range.from(), to: rightPos }\n }); },\n undo: function (cm) { return cm.undo(); },\n redo: function (cm) { return cm.redo(); },\n undoSelection: function (cm) { return cm.undoSelection(); },\n redoSelection: function (cm) { return cm.redoSelection(); },\n goDocStart: function (cm) { return cm.extendSelection(Pos(cm.firstLine(), 0)); },\n goDocEnd: function (cm) { return cm.extendSelection(Pos(cm.lastLine())); },\n goLineStart: function (cm) { return cm.extendSelectionsBy(function (range) { return lineStart(cm, range.head.line); },\n {origin: \"+move\", bias: 1}\n ); },\n goLineStartSmart: function (cm) { return cm.extendSelectionsBy(function (range) { return lineStartSmart(cm, range.head); },\n {origin: \"+move\", bias: 1}\n ); },\n goLineEnd: function (cm) { return cm.extendSelectionsBy(function (range) { return lineEnd(cm, range.head.line); },\n {origin: \"+move\", bias: -1}\n ); },\n goLineRight: function (cm) { return cm.extendSelectionsBy(function (range) {\n var top = cm.cursorCoords(range.head, \"div\").top + 5;\n return cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, \"div\")\n }, sel_move); },\n goLineLeft: function (cm) { return cm.extendSelectionsBy(function (range) {\n var top = cm.cursorCoords(range.head, \"div\").top + 5;\n return cm.coordsChar({left: 0, top: top}, \"div\")\n }, sel_move); },\n goLineLeftSmart: function (cm) { return cm.extendSelectionsBy(function (range) {\n var top = cm.cursorCoords(range.head, \"div\").top + 5;\n var pos = cm.coordsChar({left: 0, top: top}, \"div\");\n if (pos.ch < cm.getLine(pos.line).search(/\\S/)) { return lineStartSmart(cm, range.head) }\n return pos\n }, sel_move); },\n goLineUp: function (cm) { return cm.moveV(-1, \"line\"); },\n goLineDown: function (cm) { return cm.moveV(1, \"line\"); },\n goPageUp: function (cm) { return cm.moveV(-1, \"page\"); },\n goPageDown: function (cm) { return cm.moveV(1, \"page\"); },\n goCharLeft: function (cm) { return cm.moveH(-1, \"char\"); },\n goCharRight: function (cm) { return cm.moveH(1, \"char\"); },\n goColumnLeft: function (cm) { return cm.moveH(-1, \"column\"); },\n goColumnRight: function (cm) { return cm.moveH(1, \"column\"); },\n goWordLeft: function (cm) { return cm.moveH(-1, \"word\"); },\n goGroupRight: function (cm) { return cm.moveH(1, \"group\"); },\n goGroupLeft: function (cm) { return cm.moveH(-1, \"group\"); },\n goWordRight: function (cm) { return cm.moveH(1, \"word\"); },\n delCharBefore: function (cm) { return cm.deleteH(-1, \"codepoint\"); },\n delCharAfter: function (cm) { return cm.deleteH(1, \"char\"); },\n delWordBefore: function (cm) { return cm.deleteH(-1, \"word\"); },\n delWordAfter: function (cm) { return cm.deleteH(1, \"word\"); },\n delGroupBefore: function (cm) { return cm.deleteH(-1, \"group\"); },\n delGroupAfter: function (cm) { return cm.deleteH(1, \"group\"); },\n indentAuto: function (cm) { return cm.indentSelection(\"smart\"); },\n indentMore: function (cm) { return cm.indentSelection(\"add\"); },\n indentLess: function (cm) { return cm.indentSelection(\"subtract\"); },\n insertTab: function (cm) { return cm.replaceSelection(\"\\t\"); },\n insertSoftTab: function (cm) {\n var spaces = [], ranges = cm.listSelections(), tabSize = cm.options.tabSize;\n for (var i = 0; i < ranges.length; i++) {\n var pos = ranges[i].from();\n var col = countColumn(cm.getLine(pos.line), pos.ch, tabSize);\n spaces.push(spaceStr(tabSize - col % tabSize));\n }\n cm.replaceSelections(spaces);\n },\n defaultTab: function (cm) {\n if (cm.somethingSelected()) { cm.indentSelection(\"add\"); }\n else { cm.execCommand(\"insertTab\"); }\n },\n // Swap the two chars left and right of each selection's head.\n // Move cursor behind the two swapped characters afterwards.\n //\n // Doesn't consider line feeds a character.\n // Doesn't scan more than one line above to find a character.\n // Doesn't do anything on an empty line.\n // Doesn't do anything with non-empty selections.\n transposeChars: function (cm) { return runInOp(cm, function () {\n var ranges = cm.listSelections(), newSel = [];\n for (var i = 0; i < ranges.length; i++) {\n if (!ranges[i].empty()) { continue }\n var cur = ranges[i].head, line = getLine(cm.doc, cur.line).text;\n if (line) {\n if (cur.ch == line.length) { cur = new Pos(cur.line, cur.ch - 1); }\n if (cur.ch > 0) {\n cur = new Pos(cur.line, cur.ch + 1);\n cm.replaceRange(line.charAt(cur.ch - 1) + line.charAt(cur.ch - 2),\n Pos(cur.line, cur.ch - 2), cur, \"+transpose\");\n } else if (cur.line > cm.doc.first) {\n var prev = getLine(cm.doc, cur.line - 1).text;\n if (prev) {\n cur = new Pos(cur.line, 1);\n cm.replaceRange(line.charAt(0) + cm.doc.lineSeparator() +\n prev.charAt(prev.length - 1),\n Pos(cur.line - 1, prev.length - 1), cur, \"+transpose\");\n }\n }\n }\n newSel.push(new Range(cur, cur));\n }\n cm.setSelections(newSel);\n }); },\n newlineAndIndent: function (cm) { return runInOp(cm, function () {\n var sels = cm.listSelections();\n for (var i = sels.length - 1; i >= 0; i--)\n { cm.replaceRange(cm.doc.lineSeparator(), sels[i].anchor, sels[i].head, \"+input\"); }\n sels = cm.listSelections();\n for (var i$1 = 0; i$1 < sels.length; i$1++)\n { cm.indentLine(sels[i$1].from().line, null, true); }\n ensureCursorVisible(cm);\n }); },\n openLine: function (cm) { return cm.replaceSelection(\"\\n\", \"start\"); },\n toggleOverwrite: function (cm) { return cm.toggleOverwrite(); }\n };\n\n\n function lineStart(cm, lineN) {\n var line = getLine(cm.doc, lineN);\n var visual = visualLine(line);\n if (visual != line) { lineN = lineNo(visual); }\n return endOfLine(true, cm, visual, lineN, 1)\n }\n function lineEnd(cm, lineN) {\n var line = getLine(cm.doc, lineN);\n var visual = visualLineEnd(line);\n if (visual != line) { lineN = lineNo(visual); }\n return endOfLine(true, cm, line, lineN, -1)\n }\n function lineStartSmart(cm, pos) {\n var start = lineStart(cm, pos.line);\n var line = getLine(cm.doc, start.line);\n var order = getOrder(line, cm.doc.direction);\n if (!order || order[0].level == 0) {\n var firstNonWS = Math.max(start.ch, line.text.search(/\\S/));\n var inWS = pos.line == start.line && pos.ch <= firstNonWS && pos.ch;\n return Pos(start.line, inWS ? 0 : firstNonWS, start.sticky)\n }\n return start\n }\n\n // Run a handler that was bound to a key.\n function doHandleBinding(cm, bound, dropShift) {\n if (typeof bound == \"string\") {\n bound = commands[bound];\n if (!bound) { return false }\n }\n // Ensure previous input has been read, so that the handler sees a\n // consistent view of the document\n cm.display.input.ensurePolled();\n var prevShift = cm.display.shift, done = false;\n try {\n if (cm.isReadOnly()) { cm.state.suppressEdits = true; }\n if (dropShift) { cm.display.shift = false; }\n done = bound(cm) != Pass;\n } finally {\n cm.display.shift = prevShift;\n cm.state.suppressEdits = false;\n }\n return done\n }\n\n function lookupKeyForEditor(cm, name, handle) {\n for (var i = 0; i < cm.state.keyMaps.length; i++) {\n var result = lookupKey(name, cm.state.keyMaps[i], handle, cm);\n if (result) { return result }\n }\n return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm))\n || lookupKey(name, cm.options.keyMap, handle, cm)\n }\n\n // Note that, despite the name, this function is also used to check\n // for bound mouse clicks.\n\n var stopSeq = new Delayed;\n\n function dispatchKey(cm, name, e, handle) {\n var seq = cm.state.keySeq;\n if (seq) {\n if (isModifierKey(name)) { return \"handled\" }\n if (/\\'$/.test(name))\n { cm.state.keySeq = null; }\n else\n { stopSeq.set(50, function () {\n if (cm.state.keySeq == seq) {\n cm.state.keySeq = null;\n cm.display.input.reset();\n }\n }); }\n if (dispatchKeyInner(cm, seq + \" \" + name, e, handle)) { return true }\n }\n return dispatchKeyInner(cm, name, e, handle)\n }\n\n function dispatchKeyInner(cm, name, e, handle) {\n var result = lookupKeyForEditor(cm, name, handle);\n\n if (result == \"multi\")\n { cm.state.keySeq = name; }\n if (result == \"handled\")\n { signalLater(cm, \"keyHandled\", cm, name, e); }\n\n if (result == \"handled\" || result == \"multi\") {\n e_preventDefault(e);\n restartBlink(cm);\n }\n\n return !!result\n }\n\n // Handle a key from the keydown event.\n function handleKeyBinding(cm, e) {\n var name = keyName(e, true);\n if (!name) { return false }\n\n if (e.shiftKey && !cm.state.keySeq) {\n // First try to resolve full name (including 'Shift-'). Failing\n // that, see if there is a cursor-motion command (starting with\n // 'go') bound to the keyname without 'Shift-'.\n return dispatchKey(cm, \"Shift-\" + name, e, function (b) { return doHandleBinding(cm, b, true); })\n || dispatchKey(cm, name, e, function (b) {\n if (typeof b == \"string\" ? /^go[A-Z]/.test(b) : b.motion)\n { return doHandleBinding(cm, b) }\n })\n } else {\n return dispatchKey(cm, name, e, function (b) { return doHandleBinding(cm, b); })\n }\n }\n\n // Handle a key from the keypress event\n function handleCharBinding(cm, e, ch) {\n return dispatchKey(cm, \"'\" + ch + \"'\", e, function (b) { return doHandleBinding(cm, b, true); })\n }\n\n var lastStoppedKey = null;\n function onKeyDown(e) {\n var cm = this;\n if (e.target && e.target != cm.display.input.getField()) { return }\n cm.curOp.focus = activeElt(doc(cm));\n if (signalDOMEvent(cm, e)) { return }\n // IE does strange things with escape.\n if (ie && ie_version < 11 && e.keyCode == 27) { e.returnValue = false; }\n var code = e.keyCode;\n cm.display.shift = code == 16 || e.shiftKey;\n var handled = handleKeyBinding(cm, e);\n if (presto) {\n lastStoppedKey = handled ? code : null;\n // Opera has no cut event... we try to at least catch the key combo\n if (!handled && code == 88 && !hasCopyEvent && (mac ? e.metaKey : e.ctrlKey))\n { cm.replaceSelection(\"\", null, \"cut\"); }\n }\n if (gecko && !mac && !handled && code == 46 && e.shiftKey && !e.ctrlKey && document.execCommand)\n { document.execCommand(\"cut\"); }\n\n // Turn mouse into crosshair when Alt is held on Mac.\n if (code == 18 && !/\\bCodeMirror-crosshair\\b/.test(cm.display.lineDiv.className))\n { showCrossHair(cm); }\n }\n\n function showCrossHair(cm) {\n var lineDiv = cm.display.lineDiv;\n addClass(lineDiv, \"CodeMirror-crosshair\");\n\n function up(e) {\n if (e.keyCode == 18 || !e.altKey) {\n rmClass(lineDiv, \"CodeMirror-crosshair\");\n off(document, \"keyup\", up);\n off(document, \"mouseover\", up);\n }\n }\n on(document, \"keyup\", up);\n on(document, \"mouseover\", up);\n }\n\n function onKeyUp(e) {\n if (e.keyCode == 16) { this.doc.sel.shift = false; }\n signalDOMEvent(this, e);\n }\n\n function onKeyPress(e) {\n var cm = this;\n if (e.target && e.target != cm.display.input.getField()) { return }\n if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) { return }\n var keyCode = e.keyCode, charCode = e.charCode;\n if (presto && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return}\n if ((presto && (!e.which || e.which < 10)) && handleKeyBinding(cm, e)) { return }\n var ch = String.fromCharCode(charCode == null ? keyCode : charCode);\n // Some browsers fire keypress events for backspace\n if (ch == \"\\x08\") { return }\n if (handleCharBinding(cm, e, ch)) { return }\n cm.display.input.onKeyPress(e);\n }\n\n var DOUBLECLICK_DELAY = 400;\n\n var PastClick = function(time, pos, button) {\n this.time = time;\n this.pos = pos;\n this.button = button;\n };\n\n PastClick.prototype.compare = function (time, pos, button) {\n return this.time + DOUBLECLICK_DELAY > time &&\n cmp(pos, this.pos) == 0 && button == this.button\n };\n\n var lastClick, lastDoubleClick;\n function clickRepeat(pos, button) {\n var now = +new Date;\n if (lastDoubleClick && lastDoubleClick.compare(now, pos, button)) {\n lastClick = lastDoubleClick = null;\n return \"triple\"\n } else if (lastClick && lastClick.compare(now, pos, button)) {\n lastDoubleClick = new PastClick(now, pos, button);\n lastClick = null;\n return \"double\"\n } else {\n lastClick = new PastClick(now, pos, button);\n lastDoubleClick = null;\n return \"single\"\n }\n }\n\n // A mouse down can be a single click, double click, triple click,\n // start of selection drag, start of text drag, new cursor\n // (ctrl-click), rectangle drag (alt-drag), or xwin\n // middle-click-paste. Or it might be a click on something we should\n // not interfere with, such as a scrollbar or widget.\n function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n win(cm).focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { cm.display.input.onContextMenu(e); }\n else { delayBlurEvent(cm); }\n }\n }\n\n function handleMappedButton(cm, button, pos, repeat, event) {\n var name = \"Click\";\n if (repeat == \"double\") { name = \"Double\" + name; }\n else if (repeat == \"triple\") { name = \"Triple\" + name; }\n name = (button == 1 ? \"Left\" : button == 2 ? \"Middle\" : \"Right\") + name;\n\n return dispatchKey(cm, addModifierNames(name, event), event, function (bound) {\n if (typeof bound == \"string\") { bound = commands[bound]; }\n if (!bound) { return false }\n var done = false;\n try {\n if (cm.isReadOnly()) { cm.state.suppressEdits = true; }\n done = bound(cm, pos) != Pass;\n } finally {\n cm.state.suppressEdits = false;\n }\n return done\n })\n }\n\n function configureMouse(cm, repeat, event) {\n var option = cm.getOption(\"configureMouse\");\n var value = option ? option(cm, repeat, event) : {};\n if (value.unit == null) {\n var rect = chromeOS ? event.shiftKey && event.metaKey : event.altKey;\n value.unit = rect ? \"rectangle\" : repeat == \"single\" ? \"char\" : repeat == \"double\" ? \"word\" : \"line\";\n }\n if (value.extend == null || cm.doc.extend) { value.extend = cm.doc.extend || event.shiftKey; }\n if (value.addNew == null) { value.addNew = mac ? event.metaKey : event.ctrlKey; }\n if (value.moveOnDrag == null) { value.moveOnDrag = !(mac ? event.altKey : event.ctrlKey); }\n return value\n }\n\n function leftButtonDown(cm, pos, repeat, event) {\n if (ie) { setTimeout(bind(ensureFocus, cm), 0); }\n else { cm.curOp.focus = activeElt(doc(cm)); }\n\n var behavior = configureMouse(cm, repeat, event);\n\n var sel = cm.doc.sel, contained;\n if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() &&\n repeat == \"single\" && (contained = sel.contains(pos)) > -1 &&\n (cmp((contained = sel.ranges[contained]).from(), pos) < 0 || pos.xRel > 0) &&\n (cmp(contained.to(), pos) > 0 || pos.xRel < 0))\n { leftButtonStartDrag(cm, event, pos, behavior); }\n else\n { leftButtonSelect(cm, event, pos, behavior); }\n }\n\n // Start a text drag. When it ends, see if any dragging actually\n // happen, and treat as a click if it didn't.\n function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n if (cm.state.delayingBlurEvent) {\n if (cm.hasFocus()) { cm.state.delayingBlurEvent = false; }\n else { delayBlurEvent(cm); }\n }\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if ((webkit && !safari) || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n cm.state.delayingBlurEvent = true;\n setTimeout(function () { return display.input.focus(); }, 20);\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n }\n\n function rangeForUnit(cm, pos, unit) {\n if (unit == \"char\") { return new Range(pos, pos) }\n if (unit == \"word\") { return cm.findWordAt(pos) }\n if (unit == \"line\") { return new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0))) }\n var result = unit(cm, pos);\n return new Range(result.from, result.to)\n }\n\n // Normal selection, as opposed to text dragging.\n function leftButtonSelect(cm, event, start, behavior) {\n if (ie) { delayBlurEvent(cm); }\n var display = cm.display, doc$1 = cm.doc;\n e_preventDefault(event);\n\n var ourRange, ourIndex, startSel = doc$1.sel, ranges = startSel.ranges;\n if (behavior.addNew && !behavior.extend) {\n ourIndex = doc$1.sel.contains(start);\n if (ourIndex > -1)\n { ourRange = ranges[ourIndex]; }\n else\n { ourRange = new Range(start, start); }\n } else {\n ourRange = doc$1.sel.primary();\n ourIndex = doc$1.sel.primIndex;\n }\n\n if (behavior.unit == \"rectangle\") {\n if (!behavior.addNew) { ourRange = new Range(start, start); }\n start = posFromMouse(cm, event, true, true);\n ourIndex = -1;\n } else {\n var range = rangeForUnit(cm, start, behavior.unit);\n if (behavior.extend)\n { ourRange = extendRange(ourRange, range.anchor, range.head, behavior.extend); }\n else\n { ourRange = range; }\n }\n\n if (!behavior.addNew) {\n ourIndex = 0;\n setSelection(doc$1, new Selection([ourRange], 0), sel_mouse);\n startSel = doc$1.sel;\n } else if (ourIndex == -1) {\n ourIndex = ranges.length;\n setSelection(doc$1, normalizeSelection(cm, ranges.concat([ourRange]), ourIndex),\n {scroll: false, origin: \"*mouse\"});\n } else if (ranges.length > 1 && ranges[ourIndex].empty() && behavior.unit == \"char\" && !behavior.extend) {\n setSelection(doc$1, normalizeSelection(cm, ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0),\n {scroll: false, origin: \"*mouse\"});\n startSel = doc$1.sel;\n } else {\n replaceOneSelection(doc$1, ourIndex, ourRange, sel_mouse);\n }\n\n var lastPos = start;\n function extendTo(pos) {\n if (cmp(lastPos, pos) == 0) { return }\n lastPos = pos;\n\n if (behavior.unit == \"rectangle\") {\n var ranges = [], tabSize = cm.options.tabSize;\n var startCol = countColumn(getLine(doc$1, start.line).text, start.ch, tabSize);\n var posCol = countColumn(getLine(doc$1, pos.line).text, pos.ch, tabSize);\n var left = Math.min(startCol, posCol), right = Math.max(startCol, posCol);\n for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line));\n line <= end; line++) {\n var text = getLine(doc$1, line).text, leftPos = findColumn(text, left, tabSize);\n if (left == right)\n { ranges.push(new Range(Pos(line, leftPos), Pos(line, leftPos))); }\n else if (text.length > leftPos)\n { ranges.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize)))); }\n }\n if (!ranges.length) { ranges.push(new Range(start, start)); }\n setSelection(doc$1, normalizeSelection(cm, startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex),\n {origin: \"*mouse\", scroll: false});\n cm.scrollIntoView(pos);\n } else {\n var oldRange = ourRange;\n var range = rangeForUnit(cm, pos, behavior.unit);\n var anchor = oldRange.anchor, head;\n if (cmp(range.anchor, anchor) > 0) {\n head = range.head;\n anchor = minPos(oldRange.from(), range.anchor);\n } else {\n head = range.anchor;\n anchor = maxPos(oldRange.to(), range.head);\n }\n var ranges$1 = startSel.ranges.slice(0);\n ranges$1[ourIndex] = bidiSimplify(cm, new Range(clipPos(doc$1, anchor), head));\n setSelection(doc$1, normalizeSelection(cm, ranges$1, ourIndex), sel_mouse);\n }\n }\n\n var editorSize = display.wrapper.getBoundingClientRect();\n // Used to ensure timeout re-tries don't fire when another extend\n // happened in the meantime (clearTimeout isn't reliable -- at\n // least on Chrome, the timeouts still happen even when cleared,\n // if the clear happens after their scheduled firing time).\n var counter = 0;\n\n function extend(e) {\n var curCount = ++counter;\n var cur = posFromMouse(cm, e, true, behavior.unit == \"rectangle\");\n if (!cur) { return }\n if (cmp(cur, lastPos) != 0) {\n cm.curOp.focus = activeElt(doc(cm));\n extendTo(cur);\n var visible = visibleLines(display, doc$1);\n if (cur.line >= visible.to || cur.line < visible.from)\n { setTimeout(operation(cm, function () {if (counter == curCount) { extend(e); }}), 150); }\n } else {\n var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0;\n if (outside) { setTimeout(operation(cm, function () {\n if (counter != curCount) { return }\n display.scroller.scrollTop += outside;\n extend(e);\n }), 50); }\n }\n }\n\n function done(e) {\n cm.state.selectingText = false;\n counter = Infinity;\n // If e is null or undefined we interpret this as someone trying\n // to explicitly cancel the selection rather than the user\n // letting go of the mouse button.\n if (e) {\n e_preventDefault(e);\n display.input.focus();\n }\n off(display.wrapper.ownerDocument, \"mousemove\", move);\n off(display.wrapper.ownerDocument, \"mouseup\", up);\n doc$1.history.lastSelOrigin = null;\n }\n\n var move = operation(cm, function (e) {\n if (e.buttons === 0 || !e_button(e)) { done(e); }\n else { extend(e); }\n });\n var up = operation(cm, done);\n cm.state.selectingText = up;\n on(display.wrapper.ownerDocument, \"mousemove\", move);\n on(display.wrapper.ownerDocument, \"mouseup\", up);\n }\n\n // Used when mouse-selecting to adjust the anchor to the proper side\n // of a bidi jump depending on the visual position of the head.\n function bidiSimplify(cm, range) {\n var anchor = range.anchor;\n var head = range.head;\n var anchorLine = getLine(cm.doc, anchor.line);\n if (cmp(anchor, head) == 0 && anchor.sticky == head.sticky) { return range }\n var order = getOrder(anchorLine);\n if (!order) { return range }\n var index = getBidiPartAt(order, anchor.ch, anchor.sticky), part = order[index];\n if (part.from != anchor.ch && part.to != anchor.ch) { return range }\n var boundary = index + ((part.from == anchor.ch) == (part.level != 1) ? 0 : 1);\n if (boundary == 0 || boundary == order.length) { return range }\n\n // Compute the relative visual position of the head compared to the\n // anchor (<0 is to the left, >0 to the right)\n var leftSide;\n if (head.line != anchor.line) {\n leftSide = (head.line - anchor.line) * (cm.doc.direction == \"ltr\" ? 1 : -1) > 0;\n } else {\n var headIndex = getBidiPartAt(order, head.ch, head.sticky);\n var dir = headIndex - index || (head.ch - anchor.ch) * (part.level == 1 ? -1 : 1);\n if (headIndex == boundary - 1 || headIndex == boundary)\n { leftSide = dir < 0; }\n else\n { leftSide = dir > 0; }\n }\n\n var usePart = order[boundary + (leftSide ? -1 : 0)];\n var from = leftSide == (usePart.level == 1);\n var ch = from ? usePart.from : usePart.to, sticky = from ? \"after\" : \"before\";\n return anchor.ch == ch && anchor.sticky == sticky ? range : new Range(new Pos(anchor.line, ch, sticky), head)\n }\n\n\n // Determines whether an event happened in the gutter, and fires the\n // handlers for the corresponding event.\n function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e$1) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }\n\n function clickInGutter(cm, e) {\n return gutterEvent(cm, e, \"gutterClick\", true)\n }\n\n // CONTEXT MENU HANDLING\n\n // To make the context menu work, we need to briefly unhide the\n // textarea (making it as unobtrusive as possible) to let the\n // right-click take effect on it.\n function onContextMenu(cm, e) {\n if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) { return }\n if (signalDOMEvent(cm, e, \"contextmenu\")) { return }\n if (!captureRightClick) { cm.display.input.onContextMenu(e); }\n }\n\n function contextMenuInGutter(cm, e) {\n if (!hasHandler(cm, \"gutterContextMenu\")) { return false }\n return gutterEvent(cm, e, \"gutterContextMenu\", false)\n }\n\n function themeChanged(cm) {\n cm.display.wrapper.className = cm.display.wrapper.className.replace(/\\s*cm-s-\\S+/g, \"\") +\n cm.options.theme.replace(/(^|\\s)\\s*/g, \" cm-s-\");\n clearCaches(cm);\n }\n\n var Init = {toString: function(){return \"CodeMirror.Init\"}};\n\n var defaults = {};\n var optionHandlers = {};\n\n function defineOptions(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n function option(name, deflt, handle, notOnInit) {\n CodeMirror.defaults[name] = deflt;\n if (handle) { optionHandlers[name] =\n notOnInit ? function (cm, val, old) {if (old != Init) { handle(cm, val, old); }} : handle; }\n }\n\n CodeMirror.defineOption = option;\n\n // Passed to option handlers when there is no old value.\n CodeMirror.Init = Init;\n\n // These two are, on init, called from the constructor because they\n // have to be initialized before the editor can start at all.\n option(\"value\", \"\", function (cm, val) { return cm.setValue(val); }, true);\n option(\"mode\", null, function (cm, val) {\n cm.doc.modeOption = val;\n loadMode(cm);\n }, true);\n\n option(\"indentUnit\", 2, loadMode, true);\n option(\"indentWithTabs\", false);\n option(\"smartIndent\", true);\n option(\"tabSize\", 4, function (cm) {\n resetModeState(cm);\n clearCaches(cm);\n regChange(cm);\n }, true);\n\n option(\"lineSeparator\", null, function (cm, val) {\n cm.doc.lineSep = val;\n if (!val) { return }\n var newBreaks = [], lineNo = cm.doc.first;\n cm.doc.iter(function (line) {\n for (var pos = 0;;) {\n var found = line.text.indexOf(val, pos);\n if (found == -1) { break }\n pos = found + val.length;\n newBreaks.push(Pos(lineNo, found));\n }\n lineNo++;\n });\n for (var i = newBreaks.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length)); }\n });\n option(\"specialChars\", /[\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u061c\\u200b\\u200e\\u200f\\u2028\\u2029\\u202d\\u202e\\u2066\\u2067\\u2069\\ufeff\\ufff9-\\ufffc]/g, function (cm, val, old) {\n cm.state.specialChars = new RegExp(val.source + (val.test(\"\\t\") ? \"\" : \"|\\t\"), \"g\");\n if (old != Init) { cm.refresh(); }\n });\n option(\"specialCharPlaceholder\", defaultSpecialCharPlaceholder, function (cm) { return cm.refresh(); }, true);\n option(\"electricChars\", true);\n option(\"inputStyle\", mobile ? \"contenteditable\" : \"textarea\", function () {\n throw new Error(\"inputStyle can not (yet) be changed in a running editor\") // FIXME\n }, true);\n option(\"spellcheck\", false, function (cm, val) { return cm.getInputField().spellcheck = val; }, true);\n option(\"autocorrect\", false, function (cm, val) { return cm.getInputField().autocorrect = val; }, true);\n option(\"autocapitalize\", false, function (cm, val) { return cm.getInputField().autocapitalize = val; }, true);\n option(\"rtlMoveVisually\", !windows);\n option(\"wholeLineUpdateBefore\", true);\n\n option(\"theme\", \"default\", function (cm) {\n themeChanged(cm);\n updateGutters(cm);\n }, true);\n option(\"keyMap\", \"default\", function (cm, val, old) {\n var next = getKeyMap(val);\n var prev = old != Init && getKeyMap(old);\n if (prev && prev.detach) { prev.detach(cm, next); }\n if (next.attach) { next.attach(cm, prev || null); }\n });\n option(\"extraKeys\", null);\n option(\"configureMouse\", null);\n\n option(\"lineWrapping\", false, wrappingChanged, true);\n option(\"gutters\", [], function (cm, val) {\n cm.display.gutterSpecs = getGutters(val, cm.options.lineNumbers);\n updateGutters(cm);\n }, true);\n option(\"fixedGutter\", true, function (cm, val) {\n cm.display.gutters.style.left = val ? compensateForHScroll(cm.display) + \"px\" : \"0\";\n cm.refresh();\n }, true);\n option(\"coverGutterNextToScrollbar\", false, function (cm) { return updateScrollbars(cm); }, true);\n option(\"scrollbarStyle\", \"native\", function (cm) {\n initScrollbars(cm);\n updateScrollbars(cm);\n cm.display.scrollbars.setScrollTop(cm.doc.scrollTop);\n cm.display.scrollbars.setScrollLeft(cm.doc.scrollLeft);\n }, true);\n option(\"lineNumbers\", false, function (cm, val) {\n cm.display.gutterSpecs = getGutters(cm.options.gutters, val);\n updateGutters(cm);\n }, true);\n option(\"firstLineNumber\", 1, updateGutters, true);\n option(\"lineNumberFormatter\", function (integer) { return integer; }, updateGutters, true);\n option(\"showCursorWhenSelecting\", false, updateSelection, true);\n\n option(\"resetSelectionOnContextMenu\", true);\n option(\"lineWiseCopyCut\", true);\n option(\"pasteLinesPerSelection\", true);\n option(\"selectionsMayTouch\", false);\n\n option(\"readOnly\", false, function (cm, val) {\n if (val == \"nocursor\") {\n onBlur(cm);\n cm.display.input.blur();\n }\n cm.display.input.readOnlyChanged(val);\n });\n\n option(\"screenReaderLabel\", null, function (cm, val) {\n val = (val === '') ? null : val;\n cm.display.input.screenReaderLabelChanged(val);\n });\n\n option(\"disableInput\", false, function (cm, val) {if (!val) { cm.display.input.reset(); }}, true);\n option(\"dragDrop\", true, dragDropChanged);\n option(\"allowDropFileTypes\", null);\n\n option(\"cursorBlinkRate\", 530);\n option(\"cursorScrollMargin\", 0);\n option(\"cursorHeight\", 1, updateSelection, true);\n option(\"singleCursorHeightPerLine\", true, updateSelection, true);\n option(\"workTime\", 100);\n option(\"workDelay\", 100);\n option(\"flattenSpans\", true, resetModeState, true);\n option(\"addModeClass\", false, resetModeState, true);\n option(\"pollInterval\", 100);\n option(\"undoDepth\", 200, function (cm, val) { return cm.doc.history.undoDepth = val; });\n option(\"historyEventDelay\", 1250);\n option(\"viewportMargin\", 10, function (cm) { return cm.refresh(); }, true);\n option(\"maxHighlightLength\", 10000, resetModeState, true);\n option(\"moveInputWithCursor\", true, function (cm, val) {\n if (!val) { cm.display.input.resetPosition(); }\n });\n\n option(\"tabindex\", null, function (cm, val) { return cm.display.input.getField().tabIndex = val || \"\"; });\n option(\"autofocus\", null);\n option(\"direction\", \"ltr\", function (cm, val) { return cm.doc.setDirection(val); }, true);\n option(\"phrases\", null);\n }\n\n function dragDropChanged(cm, value, old) {\n var wasOn = old && old != Init;\n if (!value != !wasOn) {\n var funcs = cm.display.dragFunctions;\n var toggle = value ? on : off;\n toggle(cm.display.scroller, \"dragstart\", funcs.start);\n toggle(cm.display.scroller, \"dragenter\", funcs.enter);\n toggle(cm.display.scroller, \"dragover\", funcs.over);\n toggle(cm.display.scroller, \"dragleave\", funcs.leave);\n toggle(cm.display.scroller, \"drop\", funcs.drop);\n }\n }\n\n function wrappingChanged(cm) {\n if (cm.options.lineWrapping) {\n addClass(cm.display.wrapper, \"CodeMirror-wrap\");\n cm.display.sizer.style.minWidth = \"\";\n cm.display.sizerWidth = null;\n } else {\n rmClass(cm.display.wrapper, \"CodeMirror-wrap\");\n findMaxLine(cm);\n }\n estimateLineHeights(cm);\n regChange(cm);\n clearCaches(cm);\n setTimeout(function () { return updateScrollbars(cm); }, 100);\n }\n\n // A CodeMirror instance represents an editor. This is the object\n // that user code is usually dealing with.\n\n function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }\n\n // The default configuration options.\n CodeMirror.defaults = defaults;\n // Functions to run when options are changed.\n CodeMirror.optionHandlers = optionHandlers;\n\n // Attach the necessary event handlers when initializing the editor\n function registerEventHandlers(cm) {\n var d = cm.display;\n on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\n // Older IE's will not fire a second mousedown for a double click\n if (ie && ie_version < 11)\n { on(d.scroller, \"dblclick\", operation(cm, function (e) {\n if (signalDOMEvent(cm, e)) { return }\n var pos = posFromMouse(cm, e);\n if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) { return }\n e_preventDefault(e);\n var word = cm.findWordAt(pos);\n extendSelection(cm.doc, word.anchor, word.head);\n })); }\n else\n { on(d.scroller, \"dblclick\", function (e) { return signalDOMEvent(cm, e) || e_preventDefault(e); }); }\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n on(d.scroller, \"contextmenu\", function (e) { return onContextMenu(cm, e); });\n on(d.input.getField(), \"contextmenu\", function (e) {\n if (!d.scroller.contains(e.target)) { onContextMenu(cm, e); }\n });\n\n // Used to suppress mouse event handling when a touch happens\n var touchFinished, prevTouch = {end: 0};\n function finishTouch() {\n if (d.activeTouch) {\n touchFinished = setTimeout(function () { return d.activeTouch = null; }, 1000);\n prevTouch = d.activeTouch;\n prevTouch.end = +new Date;\n }\n }\n function isMouseLikeTouchEvent(e) {\n if (e.touches.length != 1) { return false }\n var touch = e.touches[0];\n return touch.radiusX <= 1 && touch.radiusY <= 1\n }\n function farAway(touch, other) {\n if (other.left == null) { return true }\n var dx = other.left - touch.left, dy = other.top - touch.top;\n return dx * dx + dy * dy > 20 * 20\n }\n on(d.scroller, \"touchstart\", function (e) {\n if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e) && !clickInGutter(cm, e)) {\n d.input.ensurePolled();\n clearTimeout(touchFinished);\n var now = +new Date;\n d.activeTouch = {start: now, moved: false,\n prev: now - prevTouch.end <= 300 ? prevTouch : null};\n if (e.touches.length == 1) {\n d.activeTouch.left = e.touches[0].pageX;\n d.activeTouch.top = e.touches[0].pageY;\n }\n }\n });\n on(d.scroller, \"touchmove\", function () {\n if (d.activeTouch) { d.activeTouch.moved = true; }\n });\n on(d.scroller, \"touchend\", function (e) {\n var touch = d.activeTouch;\n if (touch && !eventInWidget(d, e) && touch.left != null &&\n !touch.moved && new Date - touch.start < 300) {\n var pos = cm.coordsChar(d.activeTouch, \"page\"), range;\n if (!touch.prev || farAway(touch, touch.prev)) // Single tap\n { range = new Range(pos, pos); }\n else if (!touch.prev.prev || farAway(touch, touch.prev.prev)) // Double tap\n { range = cm.findWordAt(pos); }\n else // Triple tap\n { range = new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0))); }\n cm.setSelection(range.anchor, range.head);\n cm.focus();\n e_preventDefault(e);\n }\n finishTouch();\n });\n on(d.scroller, \"touchcancel\", finishTouch);\n\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n on(d.scroller, \"scroll\", function () {\n if (d.scroller.clientHeight) {\n updateScrollTop(cm, d.scroller.scrollTop);\n setScrollLeft(cm, d.scroller.scrollLeft, true);\n signal(cm, \"scroll\", cm);\n }\n });\n\n // Listen to wheel events in order to try and update the viewport on time.\n on(d.scroller, \"mousewheel\", function (e) { return onScrollWheel(cm, e); });\n on(d.scroller, \"DOMMouseScroll\", function (e) { return onScrollWheel(cm, e); });\n\n // Prevent wrapper from ever scrolling\n on(d.wrapper, \"scroll\", function () { return d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\n\n d.dragFunctions = {\n enter: function (e) {if (!signalDOMEvent(cm, e)) { e_stop(e); }},\n over: function (e) {if (!signalDOMEvent(cm, e)) { onDragOver(cm, e); e_stop(e); }},\n start: function (e) { return onDragStart(cm, e); },\n drop: operation(cm, onDrop),\n leave: function (e) {if (!signalDOMEvent(cm, e)) { clearDragCursor(cm); }}\n };\n\n var inp = d.input.getField();\n on(inp, \"keyup\", function (e) { return onKeyUp.call(cm, e); });\n on(inp, \"keydown\", operation(cm, onKeyDown));\n on(inp, \"keypress\", operation(cm, onKeyPress));\n on(inp, \"focus\", function (e) { return onFocus(cm, e); });\n on(inp, \"blur\", function (e) { return onBlur(cm, e); });\n }\n\n var initHooks = [];\n CodeMirror.defineInitHook = function (f) { return initHooks.push(f); };\n\n // Indent the given line. The how parameter can be \"smart\",\n // \"add\"/null, \"subtract\", or \"prev\". When aggressive is false\n // (typically set to true for forced single-line indents), empty\n // lines are not indented, and places where the mode returns Pass\n // are left alone.\n function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n }\n\n // This will be set to a {lineWise: bool, text: [string]} object, so\n // that, when pasting, we know what kind of selections the copied\n // text was made out of.\n var lastCopied = null;\n\n function setLastCopied(newLastCopied) {\n lastCopied = newLastCopied;\n }\n\n function applyTextInput(cm, inserted, deleted, sel, origin) {\n var doc = cm.doc;\n cm.display.shift = false;\n if (!sel) { sel = doc.sel; }\n\n var recent = +new Date - 200;\n var paste = origin == \"paste\" || cm.state.pasteIncoming > recent;\n var textLines = splitLinesAuto(inserted), multiPaste = null;\n // When pasting N lines into N selections, insert one line per selection\n if (paste && sel.ranges.length > 1) {\n if (lastCopied && lastCopied.text.join(\"\\n\") == inserted) {\n if (sel.ranges.length % lastCopied.text.length == 0) {\n multiPaste = [];\n for (var i = 0; i < lastCopied.text.length; i++)\n { multiPaste.push(doc.splitLines(lastCopied.text[i])); }\n }\n } else if (textLines.length == sel.ranges.length && cm.options.pasteLinesPerSelection) {\n multiPaste = map(textLines, function (l) { return [l]; });\n }\n }\n\n var updateInput = cm.curOp.updateInput;\n // Normal behavior is to insert the new text into every selection\n for (var i$1 = sel.ranges.length - 1; i$1 >= 0; i$1--) {\n var range = sel.ranges[i$1];\n var from = range.from(), to = range.to();\n if (range.empty()) {\n if (deleted && deleted > 0) // Handle deletion\n { from = Pos(from.line, from.ch - deleted); }\n else if (cm.state.overwrite && !paste) // Handle overwrite\n { to = Pos(to.line, Math.min(getLine(doc, to.line).text.length, to.ch + lst(textLines).length)); }\n else if (paste && lastCopied && lastCopied.lineWise && lastCopied.text.join(\"\\n\") == textLines.join(\"\\n\"))\n { from = to = Pos(from.line, 0); }\n }\n var changeEvent = {from: from, to: to, text: multiPaste ? multiPaste[i$1 % multiPaste.length] : textLines,\n origin: origin || (paste ? \"paste\" : cm.state.cutIncoming > recent ? \"cut\" : \"+input\")};\n makeChange(cm.doc, changeEvent);\n signalLater(cm, \"inputRead\", cm, changeEvent);\n }\n if (inserted && !paste)\n { triggerElectric(cm, inserted); }\n\n ensureCursorVisible(cm);\n if (cm.curOp.updateInput < 2) { cm.curOp.updateInput = updateInput; }\n cm.curOp.typing = true;\n cm.state.pasteIncoming = cm.state.cutIncoming = -1;\n }\n\n function handlePaste(e, cm) {\n var pasted = e.clipboardData && e.clipboardData.getData(\"Text\");\n if (pasted) {\n e.preventDefault();\n if (!cm.isReadOnly() && !cm.options.disableInput && cm.hasFocus())\n { runInOp(cm, function () { return applyTextInput(cm, pasted, 0, null, \"paste\"); }); }\n return true\n }\n }\n\n function triggerElectric(cm, inserted) {\n // When an 'electric' character is inserted, immediately trigger a reindent\n if (!cm.options.electricChars || !cm.options.smartIndent) { return }\n var sel = cm.doc.sel;\n\n for (var i = sel.ranges.length - 1; i >= 0; i--) {\n var range = sel.ranges[i];\n if (range.head.ch > 100 || (i && sel.ranges[i - 1].head.line == range.head.line)) { continue }\n var mode = cm.getModeAt(range.head);\n var indented = false;\n if (mode.electricChars) {\n for (var j = 0; j < mode.electricChars.length; j++)\n { if (inserted.indexOf(mode.electricChars.charAt(j)) > -1) {\n indented = indentLine(cm, range.head.line, \"smart\");\n break\n } }\n } else if (mode.electricInput) {\n if (mode.electricInput.test(getLine(cm.doc, range.head.line).text.slice(0, range.head.ch)))\n { indented = indentLine(cm, range.head.line, \"smart\"); }\n }\n if (indented) { signalLater(cm, \"electricInput\", cm, range.head.line); }\n }\n }\n\n function copyableRanges(cm) {\n var text = [], ranges = [];\n for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\n var line = cm.doc.sel.ranges[i].head.line;\n var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\n ranges.push(lineRange);\n text.push(cm.getRange(lineRange.anchor, lineRange.head));\n }\n return {text: text, ranges: ranges}\n }\n\n function disableBrowserMagic(field, spellcheck, autocorrect, autocapitalize) {\n field.setAttribute(\"autocorrect\", autocorrect ? \"on\" : \"off\");\n field.setAttribute(\"autocapitalize\", autocapitalize ? \"on\" : \"off\");\n field.setAttribute(\"spellcheck\", !!spellcheck);\n }\n\n function hiddenTextarea() {\n var te = elt(\"textarea\", null, null, \"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none\");\n var div = elt(\"div\", [te], null, \"overflow: hidden; position: relative; width: 3px; height: 0px;\");\n // The textarea is kept positioned near the cursor to prevent the\n // fact that it'll be scrolled into view on input from scrolling\n // our fake cursor out of view. On webkit, when wrap=off, paste is\n // very slow. So make the area wide instead.\n if (webkit) { te.style.width = \"1000px\"; }\n else { te.setAttribute(\"wrap\", \"off\"); }\n // If border: 0; -- iOS fails to open keyboard (issue #1287)\n if (ios) { te.style.border = \"1px solid black\"; }\n return div\n }\n\n // The publicly visible API. Note that methodOp(f) means\n // 'wrap f in an operation, performed on its `this` parameter'.\n\n // This is not the complete set of editor methods. Most of the\n // methods defined on the Doc type are also injected into\n // CodeMirror.prototype, for backwards compatibility and\n // convenience.\n\n function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){win(this).focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt(doc(this)) },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }\n\n // Used for horizontal relative motion. Dir is -1 or 1 (left or\n // right), unit can be \"codepoint\", \"char\", \"column\" (like char, but\n // doesn't cross line boundaries), \"word\" (across next word), or\n // \"group\" (to the start of next group of word or\n // non-word-non-whitespace chars). The visually param controls\n // whether, in right-to-left text, direction 1 means to move towards\n // the next index in the string, or towards the character to the right\n // of the current position. The resulting position will have a\n // hitSide=true property if it reached the end of the document.\n function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }\n\n // For relative vertical movement. Dir may be -1 or 1. Unit can be\n // \"page\" or \"line\". The resulting position will have a hitSide=true\n // property if it reached the end of the document.\n function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, win(cm).innerHeight || doc(cm).documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }\n\n // CONTENTEDITABLE INPUT STYLE\n\n var ContentEditableInput = function(cm) {\n this.cm = cm;\n this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null;\n this.polling = new Delayed();\n this.composing = null;\n this.gracePeriod = false;\n this.readDOMTimeout = null;\n };\n\n ContentEditableInput.prototype.init = function (display) {\n var this$1 = this;\n\n var input = this, cm = input.cm;\n var div = input.div = display.lineDiv;\n div.contentEditable = true;\n disableBrowserMagic(div, cm.options.spellcheck, cm.options.autocorrect, cm.options.autocapitalize);\n\n function belongsToInput(e) {\n for (var t = e.target; t; t = t.parentNode) {\n if (t == div) { return true }\n if (/\\bCodeMirror-(?:line)?widget\\b/.test(t.className)) { break }\n }\n return false\n }\n\n on(div, \"paste\", function (e) {\n if (!belongsToInput(e) || signalDOMEvent(cm, e) || handlePaste(e, cm)) { return }\n // IE doesn't fire input events, so we schedule a read for the pasted content in this way\n if (ie_version <= 11) { setTimeout(operation(cm, function () { return this$1.updateFromDOM(); }), 20); }\n });\n\n on(div, \"compositionstart\", function (e) {\n this$1.composing = {data: e.data, done: false};\n });\n on(div, \"compositionupdate\", function (e) {\n if (!this$1.composing) { this$1.composing = {data: e.data, done: false}; }\n });\n on(div, \"compositionend\", function (e) {\n if (this$1.composing) {\n if (e.data != this$1.composing.data) { this$1.readFromDOMSoon(); }\n this$1.composing.done = true;\n }\n });\n\n on(div, \"touchstart\", function () { return input.forceCompositionEnd(); });\n\n on(div, \"input\", function () {\n if (!this$1.composing) { this$1.readFromDOMSoon(); }\n });\n\n function onCopyCut(e) {\n if (!belongsToInput(e) || signalDOMEvent(cm, e)) { return }\n if (cm.somethingSelected()) {\n setLastCopied({lineWise: false, text: cm.getSelections()});\n if (e.type == \"cut\") { cm.replaceSelection(\"\", null, \"cut\"); }\n } else if (!cm.options.lineWiseCopyCut) {\n return\n } else {\n var ranges = copyableRanges(cm);\n setLastCopied({lineWise: true, text: ranges.text});\n if (e.type == \"cut\") {\n cm.operation(function () {\n cm.setSelections(ranges.ranges, 0, sel_dontScroll);\n cm.replaceSelection(\"\", null, \"cut\");\n });\n }\n }\n if (e.clipboardData) {\n e.clipboardData.clearData();\n var content = lastCopied.text.join(\"\\n\");\n // iOS exposes the clipboard API, but seems to discard content inserted into it\n e.clipboardData.setData(\"Text\", content);\n if (e.clipboardData.getData(\"Text\") == content) {\n e.preventDefault();\n return\n }\n }\n // Old-fashioned briefly-focus-a-textarea hack\n var kludge = hiddenTextarea(), te = kludge.firstChild;\n disableBrowserMagic(te);\n cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);\n te.value = lastCopied.text.join(\"\\n\");\n var hadFocus = activeElt(div.ownerDocument);\n selectInput(te);\n setTimeout(function () {\n cm.display.lineSpace.removeChild(kludge);\n hadFocus.focus();\n if (hadFocus == div) { input.showPrimarySelection(); }\n }, 50);\n }\n on(div, \"copy\", onCopyCut);\n on(div, \"cut\", onCopyCut);\n };\n\n ContentEditableInput.prototype.screenReaderLabelChanged = function (label) {\n // Label for screenreaders, accessibility\n if(label) {\n this.div.setAttribute('aria-label', label);\n } else {\n this.div.removeAttribute('aria-label');\n }\n };\n\n ContentEditableInput.prototype.prepareSelection = function () {\n var result = prepareSelection(this.cm, false);\n result.focus = activeElt(this.div.ownerDocument) == this.div;\n return result\n };\n\n ContentEditableInput.prototype.showSelection = function (info, takeFocus) {\n if (!info || !this.cm.display.view.length) { return }\n if (info.focus || takeFocus) { this.showPrimarySelection(); }\n this.showMultipleSelections(info);\n };\n\n ContentEditableInput.prototype.getSelection = function () {\n return this.cm.display.wrapper.ownerDocument.getSelection()\n };\n\n ContentEditableInput.prototype.showPrimarySelection = function () {\n var sel = this.getSelection(), cm = this.cm, prim = cm.doc.sel.primary();\n var from = prim.from(), to = prim.to();\n\n if (cm.display.viewTo == cm.display.viewFrom || from.line >= cm.display.viewTo || to.line < cm.display.viewFrom) {\n sel.removeAllRanges();\n return\n }\n\n var curAnchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);\n var curFocus = domToPos(cm, sel.focusNode, sel.focusOffset);\n if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad &&\n cmp(minPos(curAnchor, curFocus), from) == 0 &&\n cmp(maxPos(curAnchor, curFocus), to) == 0)\n { return }\n\n var view = cm.display.view;\n var start = (from.line >= cm.display.viewFrom && posToDOM(cm, from)) ||\n {node: view[0].measure.map[2], offset: 0};\n var end = to.line < cm.display.viewTo && posToDOM(cm, to);\n if (!end) {\n var measure = view[view.length - 1].measure;\n var map = measure.maps ? measure.maps[measure.maps.length - 1] : measure.map;\n end = {node: map[map.length - 1], offset: map[map.length - 2] - map[map.length - 3]};\n }\n\n if (!start || !end) {\n sel.removeAllRanges();\n return\n }\n\n var old = sel.rangeCount && sel.getRangeAt(0), rng;\n try { rng = range(start.node, start.offset, end.offset, end.node); }\n catch(e) {} // Our model of the DOM might be outdated, in which case the range we try to set can be impossible\n if (rng) {\n if (!gecko && cm.state.focused) {\n sel.collapse(start.node, start.offset);\n if (!rng.collapsed) {\n sel.removeAllRanges();\n sel.addRange(rng);\n }\n } else {\n sel.removeAllRanges();\n sel.addRange(rng);\n }\n if (old && sel.anchorNode == null) { sel.addRange(old); }\n else if (gecko) { this.startGracePeriod(); }\n }\n this.rememberSelection();\n };\n\n ContentEditableInput.prototype.startGracePeriod = function () {\n var this$1 = this;\n\n clearTimeout(this.gracePeriod);\n this.gracePeriod = setTimeout(function () {\n this$1.gracePeriod = false;\n if (this$1.selectionChanged())\n { this$1.cm.operation(function () { return this$1.cm.curOp.selectionChanged = true; }); }\n }, 20);\n };\n\n ContentEditableInput.prototype.showMultipleSelections = function (info) {\n removeChildrenAndAdd(this.cm.display.cursorDiv, info.cursors);\n removeChildrenAndAdd(this.cm.display.selectionDiv, info.selection);\n };\n\n ContentEditableInput.prototype.rememberSelection = function () {\n var sel = this.getSelection();\n this.lastAnchorNode = sel.anchorNode; this.lastAnchorOffset = sel.anchorOffset;\n this.lastFocusNode = sel.focusNode; this.lastFocusOffset = sel.focusOffset;\n };\n\n ContentEditableInput.prototype.selectionInEditor = function () {\n var sel = this.getSelection();\n if (!sel.rangeCount) { return false }\n var node = sel.getRangeAt(0).commonAncestorContainer;\n return contains(this.div, node)\n };\n\n ContentEditableInput.prototype.focus = function () {\n if (this.cm.options.readOnly != \"nocursor\") {\n if (!this.selectionInEditor() || activeElt(this.div.ownerDocument) != this.div)\n { this.showSelection(this.prepareSelection(), true); }\n this.div.focus();\n }\n };\n ContentEditableInput.prototype.blur = function () { this.div.blur(); };\n ContentEditableInput.prototype.getField = function () { return this.div };\n\n ContentEditableInput.prototype.supportsTouch = function () { return true };\n\n ContentEditableInput.prototype.receivedFocus = function () {\n var this$1 = this;\n\n var input = this;\n if (this.selectionInEditor())\n { setTimeout(function () { return this$1.pollSelection(); }, 20); }\n else\n { runInOp(this.cm, function () { return input.cm.curOp.selectionChanged = true; }); }\n\n function poll() {\n if (input.cm.state.focused) {\n input.pollSelection();\n input.polling.set(input.cm.options.pollInterval, poll);\n }\n }\n this.polling.set(this.cm.options.pollInterval, poll);\n };\n\n ContentEditableInput.prototype.selectionChanged = function () {\n var sel = this.getSelection();\n return sel.anchorNode != this.lastAnchorNode || sel.anchorOffset != this.lastAnchorOffset ||\n sel.focusNode != this.lastFocusNode || sel.focusOffset != this.lastFocusOffset\n };\n\n ContentEditableInput.prototype.pollSelection = function () {\n if (this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged()) { return }\n var sel = this.getSelection(), cm = this.cm;\n // On Android Chrome (version 56, at least), backspacing into an\n // uneditable block element will put the cursor in that element,\n // and then, because it's not editable, hide the virtual keyboard.\n // Because Android doesn't allow us to actually detect backspace\n // presses in a sane way, this code checks for when that happens\n // and simulates a backspace press in this case.\n if (android && chrome && this.cm.display.gutterSpecs.length && isInGutter(sel.anchorNode)) {\n this.cm.triggerOnKeyDown({type: \"keydown\", keyCode: 8, preventDefault: Math.abs});\n this.blur();\n this.focus();\n return\n }\n if (this.composing) { return }\n this.rememberSelection();\n var anchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);\n var head = domToPos(cm, sel.focusNode, sel.focusOffset);\n if (anchor && head) { runInOp(cm, function () {\n setSelection(cm.doc, simpleSelection(anchor, head), sel_dontScroll);\n if (anchor.bad || head.bad) { cm.curOp.selectionChanged = true; }\n }); }\n };\n\n ContentEditableInput.prototype.pollContent = function () {\n if (this.readDOMTimeout != null) {\n clearTimeout(this.readDOMTimeout);\n this.readDOMTimeout = null;\n }\n\n var cm = this.cm, display = cm.display, sel = cm.doc.sel.primary();\n var from = sel.from(), to = sel.to();\n if (from.ch == 0 && from.line > cm.firstLine())\n { from = Pos(from.line - 1, getLine(cm.doc, from.line - 1).length); }\n if (to.ch == getLine(cm.doc, to.line).text.length && to.line < cm.lastLine())\n { to = Pos(to.line + 1, 0); }\n if (from.line < display.viewFrom || to.line > display.viewTo - 1) { return false }\n\n var fromIndex, fromLine, fromNode;\n if (from.line == display.viewFrom || (fromIndex = findViewIndex(cm, from.line)) == 0) {\n fromLine = lineNo(display.view[0].line);\n fromNode = display.view[0].node;\n } else {\n fromLine = lineNo(display.view[fromIndex].line);\n fromNode = display.view[fromIndex - 1].node.nextSibling;\n }\n var toIndex = findViewIndex(cm, to.line);\n var toLine, toNode;\n if (toIndex == display.view.length - 1) {\n toLine = display.viewTo - 1;\n toNode = display.lineDiv.lastChild;\n } else {\n toLine = lineNo(display.view[toIndex + 1].line) - 1;\n toNode = display.view[toIndex + 1].node.previousSibling;\n }\n\n if (!fromNode) { return false }\n var newText = cm.doc.splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine));\n var oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length));\n while (newText.length > 1 && oldText.length > 1) {\n if (lst(newText) == lst(oldText)) { newText.pop(); oldText.pop(); toLine--; }\n else if (newText[0] == oldText[0]) { newText.shift(); oldText.shift(); fromLine++; }\n else { break }\n }\n\n var cutFront = 0, cutEnd = 0;\n var newTop = newText[0], oldTop = oldText[0], maxCutFront = Math.min(newTop.length, oldTop.length);\n while (cutFront < maxCutFront && newTop.charCodeAt(cutFront) == oldTop.charCodeAt(cutFront))\n { ++cutFront; }\n var newBot = lst(newText), oldBot = lst(oldText);\n var maxCutEnd = Math.min(newBot.length - (newText.length == 1 ? cutFront : 0),\n oldBot.length - (oldText.length == 1 ? cutFront : 0));\n while (cutEnd < maxCutEnd &&\n newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1))\n { ++cutEnd; }\n // Try to move start of change to start of selection if ambiguous\n if (newText.length == 1 && oldText.length == 1 && fromLine == from.line) {\n while (cutFront && cutFront > from.ch &&\n newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1)) {\n cutFront--;\n cutEnd++;\n }\n }\n\n newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd).replace(/^\\u200b+/, \"\");\n newText[0] = newText[0].slice(cutFront).replace(/\\u200b+$/, \"\");\n\n var chFrom = Pos(fromLine, cutFront);\n var chTo = Pos(toLine, oldText.length ? lst(oldText).length - cutEnd : 0);\n if (newText.length > 1 || newText[0] || cmp(chFrom, chTo)) {\n replaceRange(cm.doc, newText, chFrom, chTo, \"+input\");\n return true\n }\n };\n\n ContentEditableInput.prototype.ensurePolled = function () {\n this.forceCompositionEnd();\n };\n ContentEditableInput.prototype.reset = function () {\n this.forceCompositionEnd();\n };\n ContentEditableInput.prototype.forceCompositionEnd = function () {\n if (!this.composing) { return }\n clearTimeout(this.readDOMTimeout);\n this.composing = null;\n this.updateFromDOM();\n this.div.blur();\n this.div.focus();\n };\n ContentEditableInput.prototype.readFromDOMSoon = function () {\n var this$1 = this;\n\n if (this.readDOMTimeout != null) { return }\n this.readDOMTimeout = setTimeout(function () {\n this$1.readDOMTimeout = null;\n if (this$1.composing) {\n if (this$1.composing.done) { this$1.composing = null; }\n else { return }\n }\n this$1.updateFromDOM();\n }, 80);\n };\n\n ContentEditableInput.prototype.updateFromDOM = function () {\n var this$1 = this;\n\n if (this.cm.isReadOnly() || !this.pollContent())\n { runInOp(this.cm, function () { return regChange(this$1.cm); }); }\n };\n\n ContentEditableInput.prototype.setUneditable = function (node) {\n node.contentEditable = \"false\";\n };\n\n ContentEditableInput.prototype.onKeyPress = function (e) {\n if (e.charCode == 0 || this.composing) { return }\n e.preventDefault();\n if (!this.cm.isReadOnly())\n { operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0); }\n };\n\n ContentEditableInput.prototype.readOnlyChanged = function (val) {\n this.div.contentEditable = String(val != \"nocursor\");\n };\n\n ContentEditableInput.prototype.onContextMenu = function () {};\n ContentEditableInput.prototype.resetPosition = function () {};\n\n ContentEditableInput.prototype.needsContentAttribute = true;\n\n function posToDOM(cm, pos) {\n var view = findViewForLine(cm, pos.line);\n if (!view || view.hidden) { return null }\n var line = getLine(cm.doc, pos.line);\n var info = mapFromLineView(view, line, pos.line);\n\n var order = getOrder(line, cm.doc.direction), side = \"left\";\n if (order) {\n var partPos = getBidiPartAt(order, pos.ch);\n side = partPos % 2 ? \"right\" : \"left\";\n }\n var result = nodeAndOffsetInLineMap(info.map, pos.ch, side);\n result.offset = result.collapse == \"right\" ? result.end : result.start;\n return result\n }\n\n function isInGutter(node) {\n for (var scan = node; scan; scan = scan.parentNode)\n { if (/CodeMirror-gutter-wrapper/.test(scan.className)) { return true } }\n return false\n }\n\n function badPos(pos, bad) { if (bad) { pos.bad = true; } return pos }\n\n function domTextBetween(cm, from, to, fromLine, toLine) {\n var text = \"\", closing = false, lineSep = cm.doc.lineSeparator(), extraLinebreak = false;\n function recognizeMarker(id) { return function (marker) { return marker.id == id; } }\n function close() {\n if (closing) {\n text += lineSep;\n if (extraLinebreak) { text += lineSep; }\n closing = extraLinebreak = false;\n }\n }\n function addText(str) {\n if (str) {\n close();\n text += str;\n }\n }\n function walk(node) {\n if (node.nodeType == 1) {\n var cmText = node.getAttribute(\"cm-text\");\n if (cmText) {\n addText(cmText);\n return\n }\n var markerID = node.getAttribute(\"cm-marker\"), range;\n if (markerID) {\n var found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), recognizeMarker(+markerID));\n if (found.length && (range = found[0].find(0)))\n { addText(getBetween(cm.doc, range.from, range.to).join(lineSep)); }\n return\n }\n if (node.getAttribute(\"contenteditable\") == \"false\") { return }\n var isBlock = /^(pre|div|p|li|table|br)$/i.test(node.nodeName);\n if (!/^br$/i.test(node.nodeName) && node.textContent.length == 0) { return }\n\n if (isBlock) { close(); }\n for (var i = 0; i < node.childNodes.length; i++)\n { walk(node.childNodes[i]); }\n\n if (/^(pre|p)$/i.test(node.nodeName)) { extraLinebreak = true; }\n if (isBlock) { closing = true; }\n } else if (node.nodeType == 3) {\n addText(node.nodeValue.replace(/\\u200b/g, \"\").replace(/\\u00a0/g, \" \"));\n }\n }\n for (;;) {\n walk(from);\n if (from == to) { break }\n from = from.nextSibling;\n extraLinebreak = false;\n }\n return text\n }\n\n function domToPos(cm, node, offset) {\n var lineNode;\n if (node == cm.display.lineDiv) {\n lineNode = cm.display.lineDiv.childNodes[offset];\n if (!lineNode) { return badPos(cm.clipPos(Pos(cm.display.viewTo - 1)), true) }\n node = null; offset = 0;\n } else {\n for (lineNode = node;; lineNode = lineNode.parentNode) {\n if (!lineNode || lineNode == cm.display.lineDiv) { return null }\n if (lineNode.parentNode && lineNode.parentNode == cm.display.lineDiv) { break }\n }\n }\n for (var i = 0; i < cm.display.view.length; i++) {\n var lineView = cm.display.view[i];\n if (lineView.node == lineNode)\n { return locateNodeInLineView(lineView, node, offset) }\n }\n }\n\n function locateNodeInLineView(lineView, node, offset) {\n var wrapper = lineView.text.firstChild, bad = false;\n if (!node || !contains(wrapper, node)) { return badPos(Pos(lineNo(lineView.line), 0), true) }\n if (node == wrapper) {\n bad = true;\n node = wrapper.childNodes[offset];\n offset = 0;\n if (!node) {\n var line = lineView.rest ? lst(lineView.rest) : lineView.line;\n return badPos(Pos(lineNo(line), line.text.length), bad)\n }\n }\n\n var textNode = node.nodeType == 3 ? node : null, topNode = node;\n if (!textNode && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {\n textNode = node.firstChild;\n if (offset) { offset = textNode.nodeValue.length; }\n }\n while (topNode.parentNode != wrapper) { topNode = topNode.parentNode; }\n var measure = lineView.measure, maps = measure.maps;\n\n function find(textNode, topNode, offset) {\n for (var i = -1; i < (maps ? maps.length : 0); i++) {\n var map = i < 0 ? measure.map : maps[i];\n for (var j = 0; j < map.length; j += 3) {\n var curNode = map[j + 2];\n if (curNode == textNode || curNode == topNode) {\n var line = lineNo(i < 0 ? lineView.line : lineView.rest[i]);\n var ch = map[j] + offset;\n if (offset < 0 || curNode != textNode) { ch = map[j + (offset ? 1 : 0)]; }\n return Pos(line, ch)\n }\n }\n }\n }\n var found = find(textNode, topNode, offset);\n if (found) { return badPos(found, bad) }\n\n // FIXME this is all really shaky. might handle the few cases it needs to handle, but likely to cause problems\n for (var after = topNode.nextSibling, dist = textNode ? textNode.nodeValue.length - offset : 0; after; after = after.nextSibling) {\n found = find(after, after.firstChild, 0);\n if (found)\n { return badPos(Pos(found.line, found.ch - dist), bad) }\n else\n { dist += after.textContent.length; }\n }\n for (var before = topNode.previousSibling, dist$1 = offset; before; before = before.previousSibling) {\n found = find(before, before.firstChild, -1);\n if (found)\n { return badPos(Pos(found.line, found.ch + dist$1), bad) }\n else\n { dist$1 += before.textContent.length; }\n }\n }\n\n // TEXTAREA INPUT STYLE\n\n var TextareaInput = function(cm) {\n this.cm = cm;\n // See input.poll and input.reset\n this.prevInput = \"\";\n\n // Flag that indicates whether we expect input to appear real soon\n // now (after some event like 'keypress' or 'input') and are\n // polling intensively.\n this.pollingFast = false;\n // Self-resetting timeout for the poller\n this.polling = new Delayed();\n // Used to work around IE issue with selection being forgotten when focus moves away from textarea\n this.hasSelection = false;\n this.composing = null;\n this.resetting = false;\n };\n\n TextareaInput.prototype.init = function (display) {\n var this$1 = this;\n\n var input = this, cm = this.cm;\n this.createField(display);\n var te = this.textarea;\n\n display.wrapper.insertBefore(this.wrapper, display.wrapper.firstChild);\n\n // Needed to hide big blue blinking cursor on Mobile Safari (doesn't seem to work in iOS 8 anymore)\n if (ios) { te.style.width = \"0px\"; }\n\n on(te, \"input\", function () {\n if (ie && ie_version >= 9 && this$1.hasSelection) { this$1.hasSelection = null; }\n input.poll();\n });\n\n on(te, \"paste\", function (e) {\n if (signalDOMEvent(cm, e) || handlePaste(e, cm)) { return }\n\n cm.state.pasteIncoming = +new Date;\n input.fastPoll();\n });\n\n function prepareCopyCut(e) {\n if (signalDOMEvent(cm, e)) { return }\n if (cm.somethingSelected()) {\n setLastCopied({lineWise: false, text: cm.getSelections()});\n } else if (!cm.options.lineWiseCopyCut) {\n return\n } else {\n var ranges = copyableRanges(cm);\n setLastCopied({lineWise: true, text: ranges.text});\n if (e.type == \"cut\") {\n cm.setSelections(ranges.ranges, null, sel_dontScroll);\n } else {\n input.prevInput = \"\";\n te.value = ranges.text.join(\"\\n\");\n selectInput(te);\n }\n }\n if (e.type == \"cut\") { cm.state.cutIncoming = +new Date; }\n }\n on(te, \"cut\", prepareCopyCut);\n on(te, \"copy\", prepareCopyCut);\n\n on(display.scroller, \"paste\", function (e) {\n if (eventInWidget(display, e) || signalDOMEvent(cm, e)) { return }\n if (!te.dispatchEvent) {\n cm.state.pasteIncoming = +new Date;\n input.focus();\n return\n }\n\n // Pass the `paste` event to the textarea so it's handled by its event listener.\n var event = new Event(\"paste\");\n event.clipboardData = e.clipboardData;\n te.dispatchEvent(event);\n });\n\n // Prevent normal selection in the editor (we handle our own)\n on(display.lineSpace, \"selectstart\", function (e) {\n if (!eventInWidget(display, e)) { e_preventDefault(e); }\n });\n\n on(te, \"compositionstart\", function () {\n var start = cm.getCursor(\"from\");\n if (input.composing) { input.composing.range.clear(); }\n input.composing = {\n start: start,\n range: cm.markText(start, cm.getCursor(\"to\"), {className: \"CodeMirror-composing\"})\n };\n });\n on(te, \"compositionend\", function () {\n if (input.composing) {\n input.poll();\n input.composing.range.clear();\n input.composing = null;\n }\n });\n };\n\n TextareaInput.prototype.createField = function (_display) {\n // Wraps and hides input textarea\n this.wrapper = hiddenTextarea();\n // The semihidden textarea that is focused when the editor is\n // focused, and receives input.\n this.textarea = this.wrapper.firstChild;\n var opts = this.cm.options;\n disableBrowserMagic(this.textarea, opts.spellcheck, opts.autocorrect, opts.autocapitalize);\n };\n\n TextareaInput.prototype.screenReaderLabelChanged = function (label) {\n // Label for screenreaders, accessibility\n if(label) {\n this.textarea.setAttribute('aria-label', label);\n } else {\n this.textarea.removeAttribute('aria-label');\n }\n };\n\n TextareaInput.prototype.prepareSelection = function () {\n // Redraw the selection and/or cursor\n var cm = this.cm, display = cm.display, doc = cm.doc;\n var result = prepareSelection(cm);\n\n // Move the hidden textarea near the cursor to prevent scrolling artifacts\n if (cm.options.moveInputWithCursor) {\n var headPos = cursorCoords(cm, doc.sel.primary().head, \"div\");\n var wrapOff = display.wrapper.getBoundingClientRect(), lineOff = display.lineDiv.getBoundingClientRect();\n result.teTop = Math.max(0, Math.min(display.wrapper.clientHeight - 10,\n headPos.top + lineOff.top - wrapOff.top));\n result.teLeft = Math.max(0, Math.min(display.wrapper.clientWidth - 10,\n headPos.left + lineOff.left - wrapOff.left));\n }\n\n return result\n };\n\n TextareaInput.prototype.showSelection = function (drawn) {\n var cm = this.cm, display = cm.display;\n removeChildrenAndAdd(display.cursorDiv, drawn.cursors);\n removeChildrenAndAdd(display.selectionDiv, drawn.selection);\n if (drawn.teTop != null) {\n this.wrapper.style.top = drawn.teTop + \"px\";\n this.wrapper.style.left = drawn.teLeft + \"px\";\n }\n };\n\n // Reset the input to correspond to the selection (or to be empty,\n // when not typing and nothing is selected)\n TextareaInput.prototype.reset = function (typing) {\n if (this.contextMenuPending || this.composing && typing) { return }\n var cm = this.cm;\n this.resetting = true;\n if (cm.somethingSelected()) {\n this.prevInput = \"\";\n var content = cm.getSelection();\n this.textarea.value = content;\n if (cm.state.focused) { selectInput(this.textarea); }\n if (ie && ie_version >= 9) { this.hasSelection = content; }\n } else if (!typing) {\n this.prevInput = this.textarea.value = \"\";\n if (ie && ie_version >= 9) { this.hasSelection = null; }\n }\n this.resetting = false;\n };\n\n TextareaInput.prototype.getField = function () { return this.textarea };\n\n TextareaInput.prototype.supportsTouch = function () { return false };\n\n TextareaInput.prototype.focus = function () {\n if (this.cm.options.readOnly != \"nocursor\" && (!mobile || activeElt(this.textarea.ownerDocument) != this.textarea)) {\n try { this.textarea.focus(); }\n catch (e) {} // IE8 will throw if the textarea is display: none or not in DOM\n }\n };\n\n TextareaInput.prototype.blur = function () { this.textarea.blur(); };\n\n TextareaInput.prototype.resetPosition = function () {\n this.wrapper.style.top = this.wrapper.style.left = 0;\n };\n\n TextareaInput.prototype.receivedFocus = function () { this.slowPoll(); };\n\n // Poll for input changes, using the normal rate of polling. This\n // runs as long as the editor is focused.\n TextareaInput.prototype.slowPoll = function () {\n var this$1 = this;\n\n if (this.pollingFast) { return }\n this.polling.set(this.cm.options.pollInterval, function () {\n this$1.poll();\n if (this$1.cm.state.focused) { this$1.slowPoll(); }\n });\n };\n\n // When an event has just come in that is likely to add or change\n // something in the input textarea, we poll faster, to ensure that\n // the change appears on the screen quickly.\n TextareaInput.prototype.fastPoll = function () {\n var missed = false, input = this;\n input.pollingFast = true;\n function p() {\n var changed = input.poll();\n if (!changed && !missed) {missed = true; input.polling.set(60, p);}\n else {input.pollingFast = false; input.slowPoll();}\n }\n input.polling.set(20, p);\n };\n\n // Read input from the textarea, and update the document to match.\n // When something is selected, it is present in the textarea, and\n // selected (unless it is huge, in which case a placeholder is\n // used). When nothing is selected, the cursor sits after previously\n // seen text (can be empty), which is stored in prevInput (we must\n // not reset the textarea when typing, because that breaks IME).\n TextareaInput.prototype.poll = function () {\n var this$1 = this;\n\n var cm = this.cm, input = this.textarea, prevInput = this.prevInput;\n // Since this is called a *lot*, try to bail out as cheaply as\n // possible when it is clear that nothing happened. hasSelection\n // will be the case when there is a lot of text in the textarea,\n // in which case reading its value would be expensive.\n if (this.contextMenuPending || this.resetting || !cm.state.focused ||\n (hasSelection(input) && !prevInput && !this.composing) ||\n cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)\n { return false }\n\n var text = input.value;\n // If nothing changed, bail.\n if (text == prevInput && !cm.somethingSelected()) { return false }\n // Work around nonsensical selection resetting in IE9/10, and\n // inexplicable appearance of private area unicode characters on\n // some key combos in Mac (#2689).\n if (ie && ie_version >= 9 && this.hasSelection === text ||\n mac && /[\\uf700-\\uf7ff]/.test(text)) {\n cm.display.input.reset();\n return false\n }\n\n if (cm.doc.sel == cm.display.selForContextMenu) {\n var first = text.charCodeAt(0);\n if (first == 0x200b && !prevInput) { prevInput = \"\\u200b\"; }\n if (first == 0x21da) { this.reset(); return this.cm.execCommand(\"undo\") }\n }\n // Find the part of the input that is actually new\n var same = 0, l = Math.min(prevInput.length, text.length);\n while (same < l && prevInput.charCodeAt(same) == text.charCodeAt(same)) { ++same; }\n\n runInOp(cm, function () {\n applyTextInput(cm, text.slice(same), prevInput.length - same,\n null, this$1.composing ? \"*compose\" : null);\n\n // Don't leave long text in the textarea, since it makes further polling slow\n if (text.length > 1000 || text.indexOf(\"\\n\") > -1) { input.value = this$1.prevInput = \"\"; }\n else { this$1.prevInput = text; }\n\n if (this$1.composing) {\n this$1.composing.range.clear();\n this$1.composing.range = cm.markText(this$1.composing.start, cm.getCursor(\"to\"),\n {className: \"CodeMirror-composing\"});\n }\n });\n return true\n };\n\n TextareaInput.prototype.ensurePolled = function () {\n if (this.pollingFast && this.poll()) { this.pollingFast = false; }\n };\n\n TextareaInput.prototype.onKeyPress = function () {\n if (ie && ie_version >= 9) { this.hasSelection = null; }\n this.fastPoll();\n };\n\n TextareaInput.prototype.onContextMenu = function (e) {\n var input = this, cm = input.cm, display = cm.display, te = input.textarea;\n if (input.contextMenuPending) { input.contextMenuPending(); }\n var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;\n if (!pos || presto) { return } // Opera is difficult.\n\n // Reset the current text selection only if the click is done outside of the selection\n // and 'resetSelectionOnContextMenu' option is true.\n var reset = cm.options.resetSelectionOnContextMenu;\n if (reset && cm.doc.sel.contains(pos) == -1)\n { operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll); }\n\n var oldCSS = te.style.cssText, oldWrapperCSS = input.wrapper.style.cssText;\n var wrapperBox = input.wrapper.offsetParent.getBoundingClientRect();\n input.wrapper.style.cssText = \"position: static\";\n te.style.cssText = \"position: absolute; width: 30px; height: 30px;\\n top: \" + (e.clientY - wrapperBox.top - 5) + \"px; left: \" + (e.clientX - wrapperBox.left - 5) + \"px;\\n z-index: 1000; background: \" + (ie ? \"rgba(255, 255, 255, .05)\" : \"transparent\") + \";\\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n var oldScrollY;\n if (webkit) { oldScrollY = te.ownerDocument.defaultView.scrollY; } // Work around Chrome issue (#2712)\n display.input.focus();\n if (webkit) { te.ownerDocument.defaultView.scrollTo(null, oldScrollY); }\n display.input.reset();\n // Adds \"Select all\" to context menu in FF\n if (!cm.somethingSelected()) { te.value = input.prevInput = \" \"; }\n input.contextMenuPending = rehide;\n display.selForContextMenu = cm.doc.sel;\n clearTimeout(display.detectingSelectAll);\n\n // Select-all will be greyed out if there's nothing to select, so\n // this adds a zero-width space so that we can later check whether\n // it got selected.\n function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }\n function rehide() {\n if (input.contextMenuPending != rehide) { return }\n input.contextMenuPending = false;\n input.wrapper.style.cssText = oldWrapperCSS;\n te.style.cssText = oldCSS;\n if (ie && ie_version < 9) { display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos); }\n\n // Try to detect the user choosing select-all\n if (te.selectionStart != null) {\n if (!ie || (ie && ie_version < 9)) { prepareSelectAllHack(); }\n var i = 0, poll = function () {\n if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 &&\n te.selectionEnd > 0 && input.prevInput == \"\\u200b\") {\n operation(cm, selectAll)(cm);\n } else if (i++ < 10) {\n display.detectingSelectAll = setTimeout(poll, 500);\n } else {\n display.selForContextMenu = null;\n display.input.reset();\n }\n };\n display.detectingSelectAll = setTimeout(poll, 200);\n }\n }\n\n if (ie && ie_version >= 9) { prepareSelectAllHack(); }\n if (captureRightClick) {\n e_stop(e);\n var mouseup = function () {\n off(window, \"mouseup\", mouseup);\n setTimeout(rehide, 20);\n };\n on(window, \"mouseup\", mouseup);\n } else {\n setTimeout(rehide, 50);\n }\n };\n\n TextareaInput.prototype.readOnlyChanged = function (val) {\n if (!val) { this.reset(); }\n this.textarea.disabled = val == \"nocursor\";\n this.textarea.readOnly = !!val;\n };\n\n TextareaInput.prototype.setUneditable = function () {};\n\n TextareaInput.prototype.needsContentAttribute = false;\n\n function fromTextArea(textarea, options) {\n options = options ? copyObj(options) : {};\n options.value = textarea.value;\n if (!options.tabindex && textarea.tabIndex)\n { options.tabindex = textarea.tabIndex; }\n if (!options.placeholder && textarea.placeholder)\n { options.placeholder = textarea.placeholder; }\n // Set autofocus to true if this textarea is focused, or if it has\n // autofocus and no other element is focused.\n if (options.autofocus == null) {\n var hasFocus = activeElt(textarea.ownerDocument);\n options.autofocus = hasFocus == textarea ||\n textarea.getAttribute(\"autofocus\") != null && hasFocus == document.body;\n }\n\n function save() {textarea.value = cm.getValue();}\n\n var realSubmit;\n if (textarea.form) {\n on(textarea.form, \"submit\", save);\n // Deplorable hack to make the submit method do the right thing.\n if (!options.leaveSubmitMethodAlone) {\n var form = textarea.form;\n realSubmit = form.submit;\n try {\n var wrappedSubmit = form.submit = function () {\n save();\n form.submit = realSubmit;\n form.submit();\n form.submit = wrappedSubmit;\n };\n } catch(e) {}\n }\n }\n\n options.finishInit = function (cm) {\n cm.save = save;\n cm.getTextArea = function () { return textarea; };\n cm.toTextArea = function () {\n cm.toTextArea = isNaN; // Prevent this from being ran twice\n save();\n textarea.parentNode.removeChild(cm.getWrapperElement());\n textarea.style.display = \"\";\n if (textarea.form) {\n off(textarea.form, \"submit\", save);\n if (!options.leaveSubmitMethodAlone && typeof textarea.form.submit == \"function\")\n { textarea.form.submit = realSubmit; }\n }\n };\n };\n\n textarea.style.display = \"none\";\n var cm = CodeMirror(function (node) { return textarea.parentNode.insertBefore(node, textarea.nextSibling); },\n options);\n return cm\n }\n\n function addLegacyProps(CodeMirror) {\n CodeMirror.off = off;\n CodeMirror.on = on;\n CodeMirror.wheelEventPixels = wheelEventPixels;\n CodeMirror.Doc = Doc;\n CodeMirror.splitLines = splitLinesAuto;\n CodeMirror.countColumn = countColumn;\n CodeMirror.findColumn = findColumn;\n CodeMirror.isWordChar = isWordCharBasic;\n CodeMirror.Pass = Pass;\n CodeMirror.signal = signal;\n CodeMirror.Line = Line;\n CodeMirror.changeEnd = changeEnd;\n CodeMirror.scrollbarModel = scrollbarModel;\n CodeMirror.Pos = Pos;\n CodeMirror.cmpPos = cmp;\n CodeMirror.modes = modes;\n CodeMirror.mimeModes = mimeModes;\n CodeMirror.resolveMode = resolveMode;\n CodeMirror.getMode = getMode;\n CodeMirror.modeExtensions = modeExtensions;\n CodeMirror.extendMode = extendMode;\n CodeMirror.copyState = copyState;\n CodeMirror.startState = startState;\n CodeMirror.innerMode = innerMode;\n CodeMirror.commands = commands;\n CodeMirror.keyMap = keyMap;\n CodeMirror.keyName = keyName;\n CodeMirror.isModifierKey = isModifierKey;\n CodeMirror.lookupKey = lookupKey;\n CodeMirror.normalizeKeyMap = normalizeKeyMap;\n CodeMirror.StringStream = StringStream;\n CodeMirror.SharedTextMarker = SharedTextMarker;\n CodeMirror.TextMarker = TextMarker;\n CodeMirror.LineWidget = LineWidget;\n CodeMirror.e_preventDefault = e_preventDefault;\n CodeMirror.e_stopPropagation = e_stopPropagation;\n CodeMirror.e_stop = e_stop;\n CodeMirror.addClass = addClass;\n CodeMirror.contains = contains;\n CodeMirror.rmClass = rmClass;\n CodeMirror.keyNames = keyNames;\n }\n\n // EDITOR CONSTRUCTOR\n\n defineOptions(CodeMirror);\n\n addEditorMethods(CodeMirror);\n\n // Set up methods on CodeMirror's prototype to redirect to the editor's document.\n var dontDelegate = \"iter insert remove copy getEditor constructor\".split(\" \");\n for (var prop in Doc.prototype) { if (Doc.prototype.hasOwnProperty(prop) && indexOf(dontDelegate, prop) < 0)\n { CodeMirror.prototype[prop] = (function(method) {\n return function() {return method.apply(this.doc, arguments)}\n })(Doc.prototype[prop]); } }\n\n eventMixin(Doc);\n CodeMirror.inputStyles = {\"textarea\": TextareaInput, \"contenteditable\": ContentEditableInput};\n\n // Extra arguments are stored as the mode's dependencies, which is\n // used by (legacy) mechanisms like loadmode.js to automatically\n // load a mode. (Preferred mechanism is the require/define calls.)\n CodeMirror.defineMode = function(name/*, mode, …*/) {\n if (!CodeMirror.defaults.mode && name != \"null\") { CodeMirror.defaults.mode = name; }\n defineMode.apply(this, arguments);\n };\n\n CodeMirror.defineMIME = defineMIME;\n\n // Minimal default mode.\n CodeMirror.defineMode(\"null\", function () { return ({token: function (stream) { return stream.skipToEnd(); }}); });\n CodeMirror.defineMIME(\"text/plain\", \"null\");\n\n // EXTENSIONS\n\n CodeMirror.defineExtension = function (name, func) {\n CodeMirror.prototype[name] = func;\n };\n CodeMirror.defineDocExtension = function (name, func) {\n Doc.prototype[name] = func;\n };\n\n CodeMirror.fromTextArea = fromTextArea;\n\n addLegacyProps(CodeMirror);\n\n CodeMirror.version = \"5.65.13\";\n\n return CodeMirror;\n\n})));\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/5/LICENSE\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n\"use strict\";\n\nCodeMirror.defineMode(\"css\", function(config, parserConfig) {\n var inline = parserConfig.inline\n if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode(\"text/css\");\n\n var indentUnit = config.indentUnit,\n tokenHooks = parserConfig.tokenHooks,\n documentTypes = parserConfig.documentTypes || {},\n mediaTypes = parserConfig.mediaTypes || {},\n mediaFeatures = parserConfig.mediaFeatures || {},\n mediaValueKeywords = parserConfig.mediaValueKeywords || {},\n propertyKeywords = parserConfig.propertyKeywords || {},\n nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},\n fontProperties = parserConfig.fontProperties || {},\n counterDescriptors = parserConfig.counterDescriptors || {},\n colorKeywords = parserConfig.colorKeywords || {},\n valueKeywords = parserConfig.valueKeywords || {},\n allowNested = parserConfig.allowNested,\n lineComment = parserConfig.lineComment,\n supportsAtComponent = parserConfig.supportsAtComponent === true,\n highlightNonStandardPropertyKeywords = config.highlightNonStandardPropertyKeywords !== false;\n\n var type, override;\n function ret(style, tp) { type = tp; return style; }\n\n // Tokenizers\n\n function tokenBase(stream, state) {\n var ch = stream.next();\n if (tokenHooks[ch]) {\n var result = tokenHooks[ch](stream, state);\n if (result !== false) return result;\n }\n if (ch == \"@\") {\n stream.eatWhile(/[\\w\\\\\\-]/);\n return ret(\"def\", stream.current());\n } else if (ch == \"=\" || (ch == \"~\" || ch == \"|\") && stream.eat(\"=\")) {\n return ret(null, \"compare\");\n } else if (ch == \"\\\"\" || ch == \"'\") {\n state.tokenize = tokenString(ch);\n return state.tokenize(stream, state);\n } else if (ch == \"#\") {\n stream.eatWhile(/[\\w\\\\\\-]/);\n return ret(\"atom\", \"hash\");\n } else if (ch == \"!\") {\n stream.match(/^\\s*\\w*/);\n return ret(\"keyword\", \"important\");\n } else if (/\\d/.test(ch) || ch == \".\" && stream.eat(/\\d/)) {\n stream.eatWhile(/[\\w.%]/);\n return ret(\"number\", \"unit\");\n } else if (ch === \"-\") {\n if (/[\\d.]/.test(stream.peek())) {\n stream.eatWhile(/[\\w.%]/);\n return ret(\"number\", \"unit\");\n } else if (stream.match(/^-[\\w\\\\\\-]*/)) {\n stream.eatWhile(/[\\w\\\\\\-]/);\n if (stream.match(/^\\s*:/, false))\n return ret(\"variable-2\", \"variable-definition\");\n return ret(\"variable-2\", \"variable\");\n } else if (stream.match(/^\\w+-/)) {\n return ret(\"meta\", \"meta\");\n }\n } else if (/[,+>*\\/]/.test(ch)) {\n return ret(null, \"select-op\");\n } else if (ch == \".\" && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {\n return ret(\"qualifier\", \"qualifier\");\n } else if (/[:;{}\\[\\]\\(\\)]/.test(ch)) {\n return ret(null, ch);\n } else if (stream.match(/^[\\w-.]+(?=\\()/)) {\n if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {\n state.tokenize = tokenParenthesized;\n }\n return ret(\"variable callee\", \"variable\");\n } else if (/[\\w\\\\\\-]/.test(ch)) {\n stream.eatWhile(/[\\w\\\\\\-]/);\n return ret(\"property\", \"word\");\n } else {\n return ret(null, null);\n }\n }\n\n function tokenString(quote) {\n return function(stream, state) {\n var escaped = false, ch;\n while ((ch = stream.next()) != null) {\n if (ch == quote && !escaped) {\n if (quote == \")\") stream.backUp(1);\n break;\n }\n escaped = !escaped && ch == \"\\\\\";\n }\n if (ch == quote || !escaped && quote != \")\") state.tokenize = null;\n return ret(\"string\", \"string\");\n };\n }\n\n function tokenParenthesized(stream, state) {\n stream.next(); // Must be '('\n if (!stream.match(/^\\s*[\\\"\\')]/, false))\n state.tokenize = tokenString(\")\");\n else\n state.tokenize = null;\n return ret(null, \"(\");\n }\n\n // Context management\n\n function Context(type, indent, prev) {\n this.type = type;\n this.indent = indent;\n this.prev = prev;\n }\n\n function pushContext(state, stream, type, indent) {\n state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);\n return type;\n }\n\n function popContext(state) {\n if (state.context.prev)\n state.context = state.context.prev;\n return state.context.type;\n }\n\n function pass(type, stream, state) {\n return states[state.context.type](type, stream, state);\n }\n function popAndPass(type, stream, state, n) {\n for (var i = n || 1; i > 0; i--)\n state.context = state.context.prev;\n return pass(type, stream, state);\n }\n\n // Parser\n\n function wordAsValue(stream) {\n var word = stream.current().toLowerCase();\n if (valueKeywords.hasOwnProperty(word))\n override = \"atom\";\n else if (colorKeywords.hasOwnProperty(word))\n override = \"keyword\";\n else\n override = \"variable\";\n }\n\n var states = {};\n\n states.top = function(type, stream, state) {\n if (type == \"{\") {\n return pushContext(state, stream, \"block\");\n } else if (type == \"}\" && state.context.prev) {\n return popContext(state);\n } else if (supportsAtComponent && /@component/i.test(type)) {\n return pushContext(state, stream, \"atComponentBlock\");\n } else if (/^@(-moz-)?document$/i.test(type)) {\n return pushContext(state, stream, \"documentTypes\");\n } else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) {\n return pushContext(state, stream, \"atBlock\");\n } else if (/^@(font-face|counter-style)/i.test(type)) {\n state.stateArg = type;\n return \"restricted_atBlock_before\";\n } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) {\n return \"keyframes\";\n } else if (type && type.charAt(0) == \"@\") {\n return pushContext(state, stream, \"at\");\n } else if (type == \"hash\") {\n override = \"builtin\";\n } else if (type == \"word\") {\n override = \"tag\";\n } else if (type == \"variable-definition\") {\n return \"maybeprop\";\n } else if (type == \"interpolation\") {\n return pushContext(state, stream, \"interpolation\");\n } else if (type == \":\") {\n return \"pseudo\";\n } else if (allowNested && type == \"(\") {\n return pushContext(state, stream, \"parens\");\n }\n return state.context.type;\n };\n\n states.block = function(type, stream, state) {\n if (type == \"word\") {\n var word = stream.current().toLowerCase();\n if (propertyKeywords.hasOwnProperty(word)) {\n override = \"property\";\n return \"maybeprop\";\n } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {\n override = highlightNonStandardPropertyKeywords ? \"string-2\" : \"property\";\n return \"maybeprop\";\n } else if (allowNested) {\n override = stream.match(/^\\s*:(?:\\s|$)/, false) ? \"property\" : \"tag\";\n return \"block\";\n } else {\n override += \" error\";\n return \"maybeprop\";\n }\n } else if (type == \"meta\") {\n return \"block\";\n } else if (!allowNested && (type == \"hash\" || type == \"qualifier\")) {\n override = \"error\";\n return \"block\";\n } else {\n return states.top(type, stream, state);\n }\n };\n\n states.maybeprop = function(type, stream, state) {\n if (type == \":\") return pushContext(state, stream, \"prop\");\n return pass(type, stream, state);\n };\n\n states.prop = function(type, stream, state) {\n if (type == \";\") return popContext(state);\n if (type == \"{\" && allowNested) return pushContext(state, stream, \"propBlock\");\n if (type == \"}\" || type == \"{\") return popAndPass(type, stream, state);\n if (type == \"(\") return pushContext(state, stream, \"parens\");\n\n if (type == \"hash\" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current())) {\n override += \" error\";\n } else if (type == \"word\") {\n wordAsValue(stream);\n } else if (type == \"interpolation\") {\n return pushContext(state, stream, \"interpolation\");\n }\n return \"prop\";\n };\n\n states.propBlock = function(type, _stream, state) {\n if (type == \"}\") return popContext(state);\n if (type == \"word\") { override = \"property\"; return \"maybeprop\"; }\n return state.context.type;\n };\n\n states.parens = function(type, stream, state) {\n if (type == \"{\" || type == \"}\") return popAndPass(type, stream, state);\n if (type == \")\") return popContext(state);\n if (type == \"(\") return pushContext(state, stream, \"parens\");\n if (type == \"interpolation\") return pushContext(state, stream, \"interpolation\");\n if (type == \"word\") wordAsValue(stream);\n return \"parens\";\n };\n\n states.pseudo = function(type, stream, state) {\n if (type == \"meta\") return \"pseudo\";\n\n if (type == \"word\") {\n override = \"variable-3\";\n return state.context.type;\n }\n return pass(type, stream, state);\n };\n\n states.documentTypes = function(type, stream, state) {\n if (type == \"word\" && documentTypes.hasOwnProperty(stream.current())) {\n override = \"tag\";\n return state.context.type;\n } else {\n return states.atBlock(type, stream, state);\n }\n };\n\n states.atBlock = function(type, stream, state) {\n if (type == \"(\") return pushContext(state, stream, \"atBlock_parens\");\n if (type == \"}\" || type == \";\") return popAndPass(type, stream, state);\n if (type == \"{\") return popContext(state) && pushContext(state, stream, allowNested ? \"block\" : \"top\");\n\n if (type == \"interpolation\") return pushContext(state, stream, \"interpolation\");\n\n if (type == \"word\") {\n var word = stream.current().toLowerCase();\n if (word == \"only\" || word == \"not\" || word == \"and\" || word == \"or\")\n override = \"keyword\";\n else if (mediaTypes.hasOwnProperty(word))\n override = \"attribute\";\n else if (mediaFeatures.hasOwnProperty(word))\n override = \"property\";\n else if (mediaValueKeywords.hasOwnProperty(word))\n override = \"keyword\";\n else if (propertyKeywords.hasOwnProperty(word))\n override = \"property\";\n else if (nonStandardPropertyKeywords.hasOwnProperty(word))\n override = highlightNonStandardPropertyKeywords ? \"string-2\" : \"property\";\n else if (valueKeywords.hasOwnProperty(word))\n override = \"atom\";\n else if (colorKeywords.hasOwnProperty(word))\n override = \"keyword\";\n else\n override = \"error\";\n }\n return state.context.type;\n };\n\n states.atComponentBlock = function(type, stream, state) {\n if (type == \"}\")\n return popAndPass(type, stream, state);\n if (type == \"{\")\n return popContext(state) && pushContext(state, stream, allowNested ? \"block\" : \"top\", false);\n if (type == \"word\")\n override = \"error\";\n return state.context.type;\n };\n\n states.atBlock_parens = function(type, stream, state) {\n if (type == \")\") return popContext(state);\n if (type == \"{\" || type == \"}\") return popAndPass(type, stream, state, 2);\n return states.atBlock(type, stream, state);\n };\n\n states.restricted_atBlock_before = function(type, stream, state) {\n if (type == \"{\")\n return pushContext(state, stream, \"restricted_atBlock\");\n if (type == \"word\" && state.stateArg == \"@counter-style\") {\n override = \"variable\";\n return \"restricted_atBlock_before\";\n }\n return pass(type, stream, state);\n };\n\n states.restricted_atBlock = function(type, stream, state) {\n if (type == \"}\") {\n state.stateArg = null;\n return popContext(state);\n }\n if (type == \"word\") {\n if ((state.stateArg == \"@font-face\" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||\n (state.stateArg == \"@counter-style\" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))\n override = \"error\";\n else\n override = \"property\";\n return \"maybeprop\";\n }\n return \"restricted_atBlock\";\n };\n\n states.keyframes = function(type, stream, state) {\n if (type == \"word\") { override = \"variable\"; return \"keyframes\"; }\n if (type == \"{\") return pushContext(state, stream, \"top\");\n return pass(type, stream, state);\n };\n\n states.at = function(type, stream, state) {\n if (type == \";\") return popContext(state);\n if (type == \"{\" || type == \"}\") return popAndPass(type, stream, state);\n if (type == \"word\") override = \"tag\";\n else if (type == \"hash\") override = \"builtin\";\n return \"at\";\n };\n\n states.interpolation = function(type, stream, state) {\n if (type == \"}\") return popContext(state);\n if (type == \"{\" || type == \";\") return popAndPass(type, stream, state);\n if (type == \"word\") override = \"variable\";\n else if (type != \"variable\" && type != \"(\" && type != \")\") override = \"error\";\n return \"interpolation\";\n };\n\n return {\n startState: function(base) {\n return {tokenize: null,\n state: inline ? \"block\" : \"top\",\n stateArg: null,\n context: new Context(inline ? \"block\" : \"top\", base || 0, null)};\n },\n\n token: function(stream, state) {\n if (!state.tokenize && stream.eatSpace()) return null;\n var style = (state.tokenize || tokenBase)(stream, state);\n if (style && typeof style == \"object\") {\n type = style[1];\n style = style[0];\n }\n override = style;\n if (type != \"comment\")\n state.state = states[state.state](type, stream, state);\n return override;\n },\n\n indent: function(state, textAfter) {\n var cx = state.context, ch = textAfter && textAfter.charAt(0);\n var indent = cx.indent;\n if (cx.type == \"prop\" && (ch == \"}\" || ch == \")\")) cx = cx.prev;\n if (cx.prev) {\n if (ch == \"}\" && (cx.type == \"block\" || cx.type == \"top\" ||\n cx.type == \"interpolation\" || cx.type == \"restricted_atBlock\")) {\n // Resume indentation from parent context.\n cx = cx.prev;\n indent = cx.indent;\n } else if (ch == \")\" && (cx.type == \"parens\" || cx.type == \"atBlock_parens\") ||\n ch == \"{\" && (cx.type == \"at\" || cx.type == \"atBlock\")) {\n // Dedent relative to current context.\n indent = Math.max(0, cx.indent - indentUnit);\n }\n }\n return indent;\n },\n\n electricChars: \"}\",\n blockCommentStart: \"/*\",\n blockCommentEnd: \"*/\",\n blockCommentContinue: \" * \",\n lineComment: lineComment,\n fold: \"brace\"\n };\n});\n\n function keySet(array) {\n var keys = {};\n for (var i = 0; i < array.length; ++i) {\n keys[array[i].toLowerCase()] = true;\n }\n return keys;\n }\n\n var documentTypes_ = [\n \"domain\", \"regexp\", \"url\", \"url-prefix\"\n ], documentTypes = keySet(documentTypes_);\n\n var mediaTypes_ = [\n \"all\", \"aural\", \"braille\", \"handheld\", \"print\", \"projection\", \"screen\",\n \"tty\", \"tv\", \"embossed\"\n ], mediaTypes = keySet(mediaTypes_);\n\n var mediaFeatures_ = [\n \"width\", \"min-width\", \"max-width\", \"height\", \"min-height\", \"max-height\",\n \"device-width\", \"min-device-width\", \"max-device-width\", \"device-height\",\n \"min-device-height\", \"max-device-height\", \"aspect-ratio\",\n \"min-aspect-ratio\", \"max-aspect-ratio\", \"device-aspect-ratio\",\n \"min-device-aspect-ratio\", \"max-device-aspect-ratio\", \"color\", \"min-color\",\n \"max-color\", \"color-index\", \"min-color-index\", \"max-color-index\",\n \"monochrome\", \"min-monochrome\", \"max-monochrome\", \"resolution\",\n \"min-resolution\", \"max-resolution\", \"scan\", \"grid\", \"orientation\",\n \"device-pixel-ratio\", \"min-device-pixel-ratio\", \"max-device-pixel-ratio\",\n \"pointer\", \"any-pointer\", \"hover\", \"any-hover\", \"prefers-color-scheme\",\n \"dynamic-range\", \"video-dynamic-range\"\n ], mediaFeatures = keySet(mediaFeatures_);\n\n var mediaValueKeywords_ = [\n \"landscape\", \"portrait\", \"none\", \"coarse\", \"fine\", \"on-demand\", \"hover\",\n \"interlace\", \"progressive\",\n \"dark\", \"light\",\n \"standard\", \"high\"\n ], mediaValueKeywords = keySet(mediaValueKeywords_);\n\n var propertyKeywords_ = [\n \"align-content\", \"align-items\", \"align-self\", \"alignment-adjust\",\n \"alignment-baseline\", \"all\", \"anchor-point\", \"animation\", \"animation-delay\",\n \"animation-direction\", \"animation-duration\", \"animation-fill-mode\",\n \"animation-iteration-count\", \"animation-name\", \"animation-play-state\",\n \"animation-timing-function\", \"appearance\", \"azimuth\", \"backdrop-filter\",\n \"backface-visibility\", \"background\", \"background-attachment\",\n \"background-blend-mode\", \"background-clip\", \"background-color\",\n \"background-image\", \"background-origin\", \"background-position\",\n \"background-position-x\", \"background-position-y\", \"background-repeat\",\n \"background-size\", \"baseline-shift\", \"binding\", \"bleed\", \"block-size\",\n \"bookmark-label\", \"bookmark-level\", \"bookmark-state\", \"bookmark-target\",\n \"border\", \"border-bottom\", \"border-bottom-color\", \"border-bottom-left-radius\",\n \"border-bottom-right-radius\", \"border-bottom-style\", \"border-bottom-width\",\n \"border-collapse\", \"border-color\", \"border-image\", \"border-image-outset\",\n \"border-image-repeat\", \"border-image-slice\", \"border-image-source\",\n \"border-image-width\", \"border-left\", \"border-left-color\", \"border-left-style\",\n \"border-left-width\", \"border-radius\", \"border-right\", \"border-right-color\",\n \"border-right-style\", \"border-right-width\", \"border-spacing\", \"border-style\",\n \"border-top\", \"border-top-color\", \"border-top-left-radius\",\n \"border-top-right-radius\", \"border-top-style\", \"border-top-width\",\n \"border-width\", \"bottom\", \"box-decoration-break\", \"box-shadow\", \"box-sizing\",\n \"break-after\", \"break-before\", \"break-inside\", \"caption-side\", \"caret-color\",\n \"clear\", \"clip\", \"color\", \"color-profile\", \"column-count\", \"column-fill\",\n \"column-gap\", \"column-rule\", \"column-rule-color\", \"column-rule-style\",\n \"column-rule-width\", \"column-span\", \"column-width\", \"columns\", \"contain\",\n \"content\", \"counter-increment\", \"counter-reset\", \"crop\", \"cue\", \"cue-after\",\n \"cue-before\", \"cursor\", \"direction\", \"display\", \"dominant-baseline\",\n \"drop-initial-after-adjust\", \"drop-initial-after-align\",\n \"drop-initial-before-adjust\", \"drop-initial-before-align\", \"drop-initial-size\",\n \"drop-initial-value\", \"elevation\", \"empty-cells\", \"fit\", \"fit-content\", \"fit-position\",\n \"flex\", \"flex-basis\", \"flex-direction\", \"flex-flow\", \"flex-grow\",\n \"flex-shrink\", \"flex-wrap\", \"float\", \"float-offset\", \"flow-from\", \"flow-into\",\n \"font\", \"font-family\", \"font-feature-settings\", \"font-kerning\",\n \"font-language-override\", \"font-optical-sizing\", \"font-size\",\n \"font-size-adjust\", \"font-stretch\", \"font-style\", \"font-synthesis\",\n \"font-variant\", \"font-variant-alternates\", \"font-variant-caps\",\n \"font-variant-east-asian\", \"font-variant-ligatures\", \"font-variant-numeric\",\n \"font-variant-position\", \"font-variation-settings\", \"font-weight\", \"gap\",\n \"grid\", \"grid-area\", \"grid-auto-columns\", \"grid-auto-flow\", \"grid-auto-rows\",\n \"grid-column\", \"grid-column-end\", \"grid-column-gap\", \"grid-column-start\",\n \"grid-gap\", \"grid-row\", \"grid-row-end\", \"grid-row-gap\", \"grid-row-start\",\n \"grid-template\", \"grid-template-areas\", \"grid-template-columns\",\n \"grid-template-rows\", \"hanging-punctuation\", \"height\", \"hyphens\", \"icon\",\n \"image-orientation\", \"image-rendering\", \"image-resolution\", \"inline-box-align\",\n \"inset\", \"inset-block\", \"inset-block-end\", \"inset-block-start\", \"inset-inline\",\n \"inset-inline-end\", \"inset-inline-start\", \"isolation\", \"justify-content\",\n \"justify-items\", \"justify-self\", \"left\", \"letter-spacing\", \"line-break\",\n \"line-height\", \"line-height-step\", \"line-stacking\", \"line-stacking-ruby\",\n \"line-stacking-shift\", \"line-stacking-strategy\", \"list-style\",\n \"list-style-image\", \"list-style-position\", \"list-style-type\", \"margin\",\n \"margin-bottom\", \"margin-left\", \"margin-right\", \"margin-top\", \"marks\",\n \"marquee-direction\", \"marquee-loop\", \"marquee-play-count\", \"marquee-speed\",\n \"marquee-style\", \"mask-clip\", \"mask-composite\", \"mask-image\", \"mask-mode\",\n \"mask-origin\", \"mask-position\", \"mask-repeat\", \"mask-size\",\"mask-type\",\n \"max-block-size\", \"max-height\", \"max-inline-size\",\n \"max-width\", \"min-block-size\", \"min-height\", \"min-inline-size\", \"min-width\",\n \"mix-blend-mode\", \"move-to\", \"nav-down\", \"nav-index\", \"nav-left\", \"nav-right\",\n \"nav-up\", \"object-fit\", \"object-position\", \"offset\", \"offset-anchor\",\n \"offset-distance\", \"offset-path\", \"offset-position\", \"offset-rotate\",\n \"opacity\", \"order\", \"orphans\", \"outline\", \"outline-color\", \"outline-offset\",\n \"outline-style\", \"outline-width\", \"overflow\", \"overflow-style\",\n \"overflow-wrap\", \"overflow-x\", \"overflow-y\", \"padding\", \"padding-bottom\",\n \"padding-left\", \"padding-right\", \"padding-top\", \"page\", \"page-break-after\",\n \"page-break-before\", \"page-break-inside\", \"page-policy\", \"pause\",\n \"pause-after\", \"pause-before\", \"perspective\", \"perspective-origin\", \"pitch\",\n \"pitch-range\", \"place-content\", \"place-items\", \"place-self\", \"play-during\",\n \"position\", \"presentation-level\", \"punctuation-trim\", \"quotes\",\n \"region-break-after\", \"region-break-before\", \"region-break-inside\",\n \"region-fragment\", \"rendering-intent\", \"resize\", \"rest\", \"rest-after\",\n \"rest-before\", \"richness\", \"right\", \"rotate\", \"rotation\", \"rotation-point\",\n \"row-gap\", \"ruby-align\", \"ruby-overhang\", \"ruby-position\", \"ruby-span\",\n \"scale\", \"scroll-behavior\", \"scroll-margin\", \"scroll-margin-block\",\n \"scroll-margin-block-end\", \"scroll-margin-block-start\", \"scroll-margin-bottom\",\n \"scroll-margin-inline\", \"scroll-margin-inline-end\",\n \"scroll-margin-inline-start\", \"scroll-margin-left\", \"scroll-margin-right\",\n \"scroll-margin-top\", \"scroll-padding\", \"scroll-padding-block\",\n \"scroll-padding-block-end\", \"scroll-padding-block-start\",\n \"scroll-padding-bottom\", \"scroll-padding-inline\", \"scroll-padding-inline-end\",\n \"scroll-padding-inline-start\", \"scroll-padding-left\", \"scroll-padding-right\",\n \"scroll-padding-top\", \"scroll-snap-align\", \"scroll-snap-type\",\n \"shape-image-threshold\", \"shape-inside\", \"shape-margin\", \"shape-outside\",\n \"size\", \"speak\", \"speak-as\", \"speak-header\", \"speak-numeral\",\n \"speak-punctuation\", \"speech-rate\", \"stress\", \"string-set\", \"tab-size\",\n \"table-layout\", \"target\", \"target-name\", \"target-new\", \"target-position\",\n \"text-align\", \"text-align-last\", \"text-combine-upright\", \"text-decoration\",\n \"text-decoration-color\", \"text-decoration-line\", \"text-decoration-skip\",\n \"text-decoration-skip-ink\", \"text-decoration-style\", \"text-emphasis\",\n \"text-emphasis-color\", \"text-emphasis-position\", \"text-emphasis-style\",\n \"text-height\", \"text-indent\", \"text-justify\", \"text-orientation\",\n \"text-outline\", \"text-overflow\", \"text-rendering\", \"text-shadow\",\n \"text-size-adjust\", \"text-space-collapse\", \"text-transform\",\n \"text-underline-position\", \"text-wrap\", \"top\", \"touch-action\", \"transform\", \"transform-origin\",\n \"transform-style\", \"transition\", \"transition-delay\", \"transition-duration\",\n \"transition-property\", \"transition-timing-function\", \"translate\",\n \"unicode-bidi\", \"user-select\", \"vertical-align\", \"visibility\", \"voice-balance\",\n \"voice-duration\", \"voice-family\", \"voice-pitch\", \"voice-range\", \"voice-rate\",\n \"voice-stress\", \"voice-volume\", \"volume\", \"white-space\", \"widows\", \"width\",\n \"will-change\", \"word-break\", \"word-spacing\", \"word-wrap\", \"writing-mode\", \"z-index\",\n // SVG-specific\n \"clip-path\", \"clip-rule\", \"mask\", \"enable-background\", \"filter\", \"flood-color\",\n \"flood-opacity\", \"lighting-color\", \"stop-color\", \"stop-opacity\", \"pointer-events\",\n \"color-interpolation\", \"color-interpolation-filters\",\n \"color-rendering\", \"fill\", \"fill-opacity\", \"fill-rule\", \"image-rendering\",\n \"marker\", \"marker-end\", \"marker-mid\", \"marker-start\", \"paint-order\", \"shape-rendering\", \"stroke\",\n \"stroke-dasharray\", \"stroke-dashoffset\", \"stroke-linecap\", \"stroke-linejoin\",\n \"stroke-miterlimit\", \"stroke-opacity\", \"stroke-width\", \"text-rendering\",\n \"baseline-shift\", \"dominant-baseline\", \"glyph-orientation-horizontal\",\n \"glyph-orientation-vertical\", \"text-anchor\", \"writing-mode\",\n ], propertyKeywords = keySet(propertyKeywords_);\n\n var nonStandardPropertyKeywords_ = [\n \"accent-color\", \"aspect-ratio\", \"border-block\", \"border-block-color\", \"border-block-end\",\n \"border-block-end-color\", \"border-block-end-style\", \"border-block-end-width\",\n \"border-block-start\", \"border-block-start-color\", \"border-block-start-style\",\n \"border-block-start-width\", \"border-block-style\", \"border-block-width\",\n \"border-inline\", \"border-inline-color\", \"border-inline-end\",\n \"border-inline-end-color\", \"border-inline-end-style\",\n \"border-inline-end-width\", \"border-inline-start\", \"border-inline-start-color\",\n \"border-inline-start-style\", \"border-inline-start-width\",\n \"border-inline-style\", \"border-inline-width\", \"content-visibility\", \"margin-block\",\n \"margin-block-end\", \"margin-block-start\", \"margin-inline\", \"margin-inline-end\",\n \"margin-inline-start\", \"overflow-anchor\", \"overscroll-behavior\", \"padding-block\", \"padding-block-end\",\n \"padding-block-start\", \"padding-inline\", \"padding-inline-end\",\n \"padding-inline-start\", \"scroll-snap-stop\", \"scrollbar-3d-light-color\",\n \"scrollbar-arrow-color\", \"scrollbar-base-color\", \"scrollbar-dark-shadow-color\",\n \"scrollbar-face-color\", \"scrollbar-highlight-color\", \"scrollbar-shadow-color\",\n \"scrollbar-track-color\", \"searchfield-cancel-button\", \"searchfield-decoration\",\n \"searchfield-results-button\", \"searchfield-results-decoration\", \"shape-inside\", \"zoom\"\n ], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);\n\n var fontProperties_ = [\n \"font-display\", \"font-family\", \"src\", \"unicode-range\", \"font-variant\",\n \"font-feature-settings\", \"font-stretch\", \"font-weight\", \"font-style\"\n ], fontProperties = keySet(fontProperties_);\n\n var counterDescriptors_ = [\n \"additive-symbols\", \"fallback\", \"negative\", \"pad\", \"prefix\", \"range\",\n \"speak-as\", \"suffix\", \"symbols\", \"system\"\n ], counterDescriptors = keySet(counterDescriptors_);\n\n var colorKeywords_ = [\n \"aliceblue\", \"antiquewhite\", \"aqua\", \"aquamarine\", \"azure\", \"beige\",\n \"bisque\", \"black\", \"blanchedalmond\", \"blue\", \"blueviolet\", \"brown\",\n \"burlywood\", \"cadetblue\", \"chartreuse\", \"chocolate\", \"coral\", \"cornflowerblue\",\n \"cornsilk\", \"crimson\", \"cyan\", \"darkblue\", \"darkcyan\", \"darkgoldenrod\",\n \"darkgray\", \"darkgreen\", \"darkgrey\", \"darkkhaki\", \"darkmagenta\", \"darkolivegreen\",\n \"darkorange\", \"darkorchid\", \"darkred\", \"darksalmon\", \"darkseagreen\",\n \"darkslateblue\", \"darkslategray\", \"darkslategrey\", \"darkturquoise\", \"darkviolet\",\n \"deeppink\", \"deepskyblue\", \"dimgray\", \"dimgrey\", \"dodgerblue\", \"firebrick\",\n \"floralwhite\", \"forestgreen\", \"fuchsia\", \"gainsboro\", \"ghostwhite\",\n \"gold\", \"goldenrod\", \"gray\", \"grey\", \"green\", \"greenyellow\", \"honeydew\",\n \"hotpink\", \"indianred\", \"indigo\", \"ivory\", \"khaki\", \"lavender\",\n \"lavenderblush\", \"lawngreen\", \"lemonchiffon\", \"lightblue\", \"lightcoral\",\n \"lightcyan\", \"lightgoldenrodyellow\", \"lightgray\", \"lightgreen\", \"lightgrey\", \"lightpink\",\n \"lightsalmon\", \"lightseagreen\", \"lightskyblue\", \"lightslategray\", \"lightslategrey\",\n \"lightsteelblue\", \"lightyellow\", \"lime\", \"limegreen\", \"linen\", \"magenta\",\n \"maroon\", \"mediumaquamarine\", \"mediumblue\", \"mediumorchid\", \"mediumpurple\",\n \"mediumseagreen\", \"mediumslateblue\", \"mediumspringgreen\", \"mediumturquoise\",\n \"mediumvioletred\", \"midnightblue\", \"mintcream\", \"mistyrose\", \"moccasin\",\n \"navajowhite\", \"navy\", \"oldlace\", \"olive\", \"olivedrab\", \"orange\", \"orangered\",\n \"orchid\", \"palegoldenrod\", \"palegreen\", \"paleturquoise\", \"palevioletred\",\n \"papayawhip\", \"peachpuff\", \"peru\", \"pink\", \"plum\", \"powderblue\",\n \"purple\", \"rebeccapurple\", \"red\", \"rosybrown\", \"royalblue\", \"saddlebrown\",\n \"salmon\", \"sandybrown\", \"seagreen\", \"seashell\", \"sienna\", \"silver\", \"skyblue\",\n \"slateblue\", \"slategray\", \"slategrey\", \"snow\", \"springgreen\", \"steelblue\", \"tan\",\n \"teal\", \"thistle\", \"tomato\", \"turquoise\", \"violet\", \"wheat\", \"white\",\n \"whitesmoke\", \"yellow\", \"yellowgreen\"\n ], colorKeywords = keySet(colorKeywords_);\n\n var valueKeywords_ = [\n \"above\", \"absolute\", \"activeborder\", \"additive\", \"activecaption\", \"afar\",\n \"after-white-space\", \"ahead\", \"alias\", \"all\", \"all-scroll\", \"alphabetic\", \"alternate\",\n \"always\", \"amharic\", \"amharic-abegede\", \"antialiased\", \"appworkspace\",\n \"arabic-indic\", \"armenian\", \"asterisks\", \"attr\", \"auto\", \"auto-flow\", \"avoid\", \"avoid-column\", \"avoid-page\",\n \"avoid-region\", \"axis-pan\", \"background\", \"backwards\", \"baseline\", \"below\", \"bidi-override\", \"binary\",\n \"bengali\", \"blink\", \"block\", \"block-axis\", \"blur\", \"bold\", \"bolder\", \"border\", \"border-box\",\n \"both\", \"bottom\", \"break\", \"break-all\", \"break-word\", \"brightness\", \"bullets\", \"button\",\n \"buttonface\", \"buttonhighlight\", \"buttonshadow\", \"buttontext\", \"calc\", \"cambodian\",\n \"capitalize\", \"caps-lock-indicator\", \"caption\", \"captiontext\", \"caret\",\n \"cell\", \"center\", \"checkbox\", \"circle\", \"cjk-decimal\", \"cjk-earthly-branch\",\n \"cjk-heavenly-stem\", \"cjk-ideographic\", \"clear\", \"clip\", \"close-quote\",\n \"col-resize\", \"collapse\", \"color\", \"color-burn\", \"color-dodge\", \"column\", \"column-reverse\",\n \"compact\", \"condensed\", \"conic-gradient\", \"contain\", \"content\", \"contents\",\n \"content-box\", \"context-menu\", \"continuous\", \"contrast\", \"copy\", \"counter\", \"counters\", \"cover\", \"crop\",\n \"cross\", \"crosshair\", \"cubic-bezier\", \"currentcolor\", \"cursive\", \"cyclic\", \"darken\", \"dashed\", \"decimal\",\n \"decimal-leading-zero\", \"default\", \"default-button\", \"dense\", \"destination-atop\",\n \"destination-in\", \"destination-out\", \"destination-over\", \"devanagari\", \"difference\",\n \"disc\", \"discard\", \"disclosure-closed\", \"disclosure-open\", \"document\",\n \"dot-dash\", \"dot-dot-dash\",\n \"dotted\", \"double\", \"down\", \"drop-shadow\", \"e-resize\", \"ease\", \"ease-in\", \"ease-in-out\", \"ease-out\",\n \"element\", \"ellipse\", \"ellipsis\", \"embed\", \"end\", \"ethiopic\", \"ethiopic-abegede\",\n \"ethiopic-abegede-am-et\", \"ethiopic-abegede-gez\", \"ethiopic-abegede-ti-er\",\n \"ethiopic-abegede-ti-et\", \"ethiopic-halehame-aa-er\",\n \"ethiopic-halehame-aa-et\", \"ethiopic-halehame-am-et\",\n \"ethiopic-halehame-gez\", \"ethiopic-halehame-om-et\",\n \"ethiopic-halehame-sid-et\", \"ethiopic-halehame-so-et\",\n \"ethiopic-halehame-ti-er\", \"ethiopic-halehame-ti-et\", \"ethiopic-halehame-tig\",\n \"ethiopic-numeric\", \"ew-resize\", \"exclusion\", \"expanded\", \"extends\", \"extra-condensed\",\n \"extra-expanded\", \"fantasy\", \"fast\", \"fill\", \"fill-box\", \"fixed\", \"flat\", \"flex\", \"flex-end\", \"flex-start\", \"footnotes\",\n \"forwards\", \"from\", \"geometricPrecision\", \"georgian\", \"grayscale\", \"graytext\", \"grid\", \"groove\",\n \"gujarati\", \"gurmukhi\", \"hand\", \"hangul\", \"hangul-consonant\", \"hard-light\", \"hebrew\",\n \"help\", \"hidden\", \"hide\", \"higher\", \"highlight\", \"highlighttext\",\n \"hiragana\", \"hiragana-iroha\", \"horizontal\", \"hsl\", \"hsla\", \"hue\", \"hue-rotate\", \"icon\", \"ignore\",\n \"inactiveborder\", \"inactivecaption\", \"inactivecaptiontext\", \"infinite\",\n \"infobackground\", \"infotext\", \"inherit\", \"initial\", \"inline\", \"inline-axis\",\n \"inline-block\", \"inline-flex\", \"inline-grid\", \"inline-table\", \"inset\", \"inside\", \"intrinsic\", \"invert\",\n \"italic\", \"japanese-formal\", \"japanese-informal\", \"justify\", \"kannada\",\n \"katakana\", \"katakana-iroha\", \"keep-all\", \"khmer\",\n \"korean-hangul-formal\", \"korean-hanja-formal\", \"korean-hanja-informal\",\n \"landscape\", \"lao\", \"large\", \"larger\", \"left\", \"level\", \"lighter\", \"lighten\",\n \"line-through\", \"linear\", \"linear-gradient\", \"lines\", \"list-item\", \"listbox\", \"listitem\",\n \"local\", \"logical\", \"loud\", \"lower\", \"lower-alpha\", \"lower-armenian\",\n \"lower-greek\", \"lower-hexadecimal\", \"lower-latin\", \"lower-norwegian\",\n \"lower-roman\", \"lowercase\", \"ltr\", \"luminosity\", \"malayalam\", \"manipulation\", \"match\", \"matrix\", \"matrix3d\",\n \"media-play-button\", \"media-slider\", \"media-sliderthumb\",\n \"media-volume-slider\", \"media-volume-sliderthumb\", \"medium\",\n \"menu\", \"menulist\", \"menulist-button\",\n \"menutext\", \"message-box\", \"middle\", \"min-intrinsic\",\n \"mix\", \"mongolian\", \"monospace\", \"move\", \"multiple\", \"multiple_mask_images\", \"multiply\", \"myanmar\", \"n-resize\",\n \"narrower\", \"ne-resize\", \"nesw-resize\", \"no-close-quote\", \"no-drop\",\n \"no-open-quote\", \"no-repeat\", \"none\", \"normal\", \"not-allowed\", \"nowrap\",\n \"ns-resize\", \"numbers\", \"numeric\", \"nw-resize\", \"nwse-resize\", \"oblique\", \"octal\", \"opacity\", \"open-quote\",\n \"optimizeLegibility\", \"optimizeSpeed\", \"oriya\", \"oromo\", \"outset\",\n \"outside\", \"outside-shape\", \"overlay\", \"overline\", \"padding\", \"padding-box\",\n \"painted\", \"page\", \"paused\", \"persian\", \"perspective\", \"pinch-zoom\", \"plus-darker\", \"plus-lighter\",\n \"pointer\", \"polygon\", \"portrait\", \"pre\", \"pre-line\", \"pre-wrap\", \"preserve-3d\",\n \"progress\", \"push-button\", \"radial-gradient\", \"radio\", \"read-only\",\n \"read-write\", \"read-write-plaintext-only\", \"rectangle\", \"region\",\n \"relative\", \"repeat\", \"repeating-linear-gradient\", \"repeating-radial-gradient\",\n \"repeating-conic-gradient\", \"repeat-x\", \"repeat-y\", \"reset\", \"reverse\",\n \"rgb\", \"rgba\", \"ridge\", \"right\", \"rotate\", \"rotate3d\", \"rotateX\", \"rotateY\",\n \"rotateZ\", \"round\", \"row\", \"row-resize\", \"row-reverse\", \"rtl\", \"run-in\", \"running\",\n \"s-resize\", \"sans-serif\", \"saturate\", \"saturation\", \"scale\", \"scale3d\", \"scaleX\", \"scaleY\", \"scaleZ\", \"screen\",\n \"scroll\", \"scrollbar\", \"scroll-position\", \"se-resize\", \"searchfield\",\n \"searchfield-cancel-button\", \"searchfield-decoration\",\n \"searchfield-results-button\", \"searchfield-results-decoration\", \"self-start\", \"self-end\",\n \"semi-condensed\", \"semi-expanded\", \"separate\", \"sepia\", \"serif\", \"show\", \"sidama\",\n \"simp-chinese-formal\", \"simp-chinese-informal\", \"single\",\n \"skew\", \"skewX\", \"skewY\", \"skip-white-space\", \"slide\", \"slider-horizontal\",\n \"slider-vertical\", \"sliderthumb-horizontal\", \"sliderthumb-vertical\", \"slow\",\n \"small\", \"small-caps\", \"small-caption\", \"smaller\", \"soft-light\", \"solid\", \"somali\",\n \"source-atop\", \"source-in\", \"source-out\", \"source-over\", \"space\", \"space-around\", \"space-between\", \"space-evenly\", \"spell-out\", \"square\",\n \"square-button\", \"start\", \"static\", \"status-bar\", \"stretch\", \"stroke\", \"stroke-box\", \"sub\",\n \"subpixel-antialiased\", \"svg_masks\", \"super\", \"sw-resize\", \"symbolic\", \"symbols\", \"system-ui\", \"table\",\n \"table-caption\", \"table-cell\", \"table-column\", \"table-column-group\",\n \"table-footer-group\", \"table-header-group\", \"table-row\", \"table-row-group\",\n \"tamil\",\n \"telugu\", \"text\", \"text-bottom\", \"text-top\", \"textarea\", \"textfield\", \"thai\",\n \"thick\", \"thin\", \"threeddarkshadow\", \"threedface\", \"threedhighlight\",\n \"threedlightshadow\", \"threedshadow\", \"tibetan\", \"tigre\", \"tigrinya-er\",\n \"tigrinya-er-abegede\", \"tigrinya-et\", \"tigrinya-et-abegede\", \"to\", \"top\",\n \"trad-chinese-formal\", \"trad-chinese-informal\", \"transform\",\n \"translate\", \"translate3d\", \"translateX\", \"translateY\", \"translateZ\",\n \"transparent\", \"ultra-condensed\", \"ultra-expanded\", \"underline\", \"unidirectional-pan\", \"unset\", \"up\",\n \"upper-alpha\", \"upper-armenian\", \"upper-greek\", \"upper-hexadecimal\",\n \"upper-latin\", \"upper-norwegian\", \"upper-roman\", \"uppercase\", \"urdu\", \"url\",\n \"var\", \"vertical\", \"vertical-text\", \"view-box\", \"visible\", \"visibleFill\", \"visiblePainted\",\n \"visibleStroke\", \"visual\", \"w-resize\", \"wait\", \"wave\", \"wider\",\n \"window\", \"windowframe\", \"windowtext\", \"words\", \"wrap\", \"wrap-reverse\", \"x-large\", \"x-small\", \"xor\",\n \"xx-large\", \"xx-small\"\n ], valueKeywords = keySet(valueKeywords_);\n\n var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)\n .concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)\n .concat(valueKeywords_);\n CodeMirror.registerHelper(\"hintWords\", \"css\", allWords);\n\n function tokenCComment(stream, state) {\n var maybeEnd = false, ch;\n while ((ch = stream.next()) != null) {\n if (maybeEnd && ch == \"/\") {\n state.tokenize = null;\n break;\n }\n maybeEnd = (ch == \"*\");\n }\n return [\"comment\", \"comment\"];\n }\n\n CodeMirror.defineMIME(\"text/css\", {\n documentTypes: documentTypes,\n mediaTypes: mediaTypes,\n mediaFeatures: mediaFeatures,\n mediaValueKeywords: mediaValueKeywords,\n propertyKeywords: propertyKeywords,\n nonStandardPropertyKeywords: nonStandardPropertyKeywords,\n fontProperties: fontProperties,\n counterDescriptors: counterDescriptors,\n colorKeywords: colorKeywords,\n valueKeywords: valueKeywords,\n tokenHooks: {\n \"/\": function(stream, state) {\n if (!stream.eat(\"*\")) return false;\n state.tokenize = tokenCComment;\n return tokenCComment(stream, state);\n }\n },\n name: \"css\"\n });\n\n CodeMirror.defineMIME(\"text/x-scss\", {\n mediaTypes: mediaTypes,\n mediaFeatures: mediaFeatures,\n mediaValueKeywords: mediaValueKeywords,\n propertyKeywords: propertyKeywords,\n nonStandardPropertyKeywords: nonStandardPropertyKeywords,\n colorKeywords: colorKeywords,\n valueKeywords: valueKeywords,\n fontProperties: fontProperties,\n allowNested: true,\n lineComment: \"//\",\n tokenHooks: {\n \"/\": function(stream, state) {\n if (stream.eat(\"/\")) {\n stream.skipToEnd();\n return [\"comment\", \"comment\"];\n } else if (stream.eat(\"*\")) {\n state.tokenize = tokenCComment;\n return tokenCComment(stream, state);\n } else {\n return [\"operator\", \"operator\"];\n }\n },\n \":\": function(stream) {\n if (stream.match(/^\\s*\\{/, false))\n return [null, null]\n return false;\n },\n \"$\": function(stream) {\n stream.match(/^[\\w-]+/);\n if (stream.match(/^\\s*:/, false))\n return [\"variable-2\", \"variable-definition\"];\n return [\"variable-2\", \"variable\"];\n },\n \"#\": function(stream) {\n if (!stream.eat(\"{\")) return false;\n return [null, \"interpolation\"];\n }\n },\n name: \"css\",\n helperType: \"scss\"\n });\n\n CodeMirror.defineMIME(\"text/x-less\", {\n mediaTypes: mediaTypes,\n mediaFeatures: mediaFeatures,\n mediaValueKeywords: mediaValueKeywords,\n propertyKeywords: propertyKeywords,\n nonStandardPropertyKeywords: nonStandardPropertyKeywords,\n colorKeywords: colorKeywords,\n valueKeywords: valueKeywords,\n fontProperties: fontProperties,\n allowNested: true,\n lineComment: \"//\",\n tokenHooks: {\n \"/\": function(stream, state) {\n if (stream.eat(\"/\")) {\n stream.skipToEnd();\n return [\"comment\", \"comment\"];\n } else if (stream.eat(\"*\")) {\n state.tokenize = tokenCComment;\n return tokenCComment(stream, state);\n } else {\n return [\"operator\", \"operator\"];\n }\n },\n \"@\": function(stream) {\n if (stream.eat(\"{\")) return [null, \"interpolation\"];\n if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\\b/i, false)) return false;\n stream.eatWhile(/[\\w\\\\\\-]/);\n if (stream.match(/^\\s*:/, false))\n return [\"variable-2\", \"variable-definition\"];\n return [\"variable-2\", \"variable\"];\n },\n \"&\": function() {\n return [\"atom\", \"atom\"];\n }\n },\n name: \"css\",\n helperType: \"less\"\n });\n\n CodeMirror.defineMIME(\"text/x-gss\", {\n documentTypes: documentTypes,\n mediaTypes: mediaTypes,\n mediaFeatures: mediaFeatures,\n propertyKeywords: propertyKeywords,\n nonStandardPropertyKeywords: nonStandardPropertyKeywords,\n fontProperties: fontProperties,\n counterDescriptors: counterDescriptors,\n colorKeywords: colorKeywords,\n valueKeywords: valueKeywords,\n supportsAtComponent: true,\n tokenHooks: {\n \"/\": function(stream, state) {\n if (!stream.eat(\"*\")) return false;\n state.tokenize = tokenCComment;\n return tokenCComment(stream, state);\n }\n },\n name: \"css\",\n helperType: \"gss\"\n });\n\n});\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/codemirror/lib/codemirror.css\"],\"names\":[],\"mappings\":\"AAAA,WAAW;;AAEX;EACE,gEAAgE;EAChE,sBAAsB;EACtB,aAAa;EACb,YAAY;EACZ,cAAc;AAChB;;AAEA,YAAY;;AAEZ;EACE,cAAc,EAAE,oCAAoC;AACtD;AACA;;EAEE,cAAc,EAAE,kCAAkC;AACpD;;AAEA;EACE,uBAAuB,EAAE,iDAAiD;AAC5E;;AAEA,WAAW;;AAEX;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A2C,mBAAmB,EAAE;AAChE,wBAAwB,iBAAiB,EAAE;AAC3C,6GAA6G,mBAAmB,EAAE;AAClI,4HAA4H,mBAAmB,EAAE;;AAEjJ;EACE,sBAAsB;EACtB,uCAAuC;AACzC;;AAEA,4CAA4C;AAC5C,mBAAmB,mBAAmB,EAAE;;AAExC;EACE,kCAAkC;EAClC;IACE,kBAAkB;EACpB;AACF;;AAEA,oBAAoB;AACpB,0BAA0B,WAAW,EAAE;;AAEvC,iEAAiE;AACjE,+BAA+B,gBAAgB,EAAE\",\"sourcesContent\":[\"/* BASICS */\\n\\n.CodeMirror {\\n /* Set height, width, borders, and global font properties here */\\n font-family: monospace;\\n height: 300px;\\n color: black;\\n direction: ltr;\\n}\\n\\n/* PADDING */\\n\\n.CodeMirror-lines {\\n padding: 4px 0; /* Vertical padding around content */\\n}\\n.CodeMirror pre.CodeMirror-line,\\n.CodeMirror pre.CodeMirror-line-like {\\n padding: 0 4px; /* Horizontal padding of content */\\n}\\n\\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\\n background-color: white; /* The little square between H and V scrollbars */\\n}\\n\\n/* GUTTER */\\n\\n.CodeMirror-gutters {\\n border-right: 1px solid #ddd;\\n background-color: #f7f7f7;\\n white-space: nowrap;\\n}\\n.CodeMirror-linenumbers {}\\n.CodeMirror-linenumber {\\n padding: 0 3px 0 5px;\\n min-width: 20px;\\n text-align: right;\\n color: #999;\\n white-space: nowrap;\\n}\\n\\n.CodeMirror-guttermarker { color: black; }\\n.CodeMirror-guttermarker-subtle { color: #999; }\\n\\n/* CURSOR */\\n\\n.CodeMirror-cursor {\\n border-left: 1px solid black;\\n border-right: none;\\n width: 0;\\n}\\n/* Shown when moving in bi-directional text */\\n.CodeMirror div.CodeMirror-secondarycursor {\\n border-left: 1px solid silver;\\n}\\n.cm-fat-cursor .CodeMirror-cursor {\\n width: auto;\\n border: 0 !important;\\n background: #7e7;\\n}\\n.cm-fat-cursor div.CodeMirror-cursors {\\n z-index: 1;\\n}\\n.cm-fat-cursor .CodeMirror-line::selection,\\n.cm-fat-cursor .CodeMirror-line > span::selection, \\n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\\n.cm-fat-cursor { caret-color: transparent; }\\n@-moz-keyframes blink {\\n 0% {}\\n 50% { background-color: transparent; }\\n 100% {}\\n}\\n@-webkit-keyframes blink {\\n 0% {}\\n 50% { background-color: transparent; }\\n 100% {}\\n}\\n@keyframes blink {\\n 0% {}\\n 50% { background-color: transparent; }\\n 100% {}\\n}\\n\\n/* Can style cursor different in overwrite (non-insert) mode */\\n.CodeMirror-overwrite .CodeMirror-cursor {}\\n\\n.cm-tab { display: inline-block; text-decoration: inherit; }\\n\\n.CodeMirror-rulers {\\n position: absolute;\\n left: 0; right: 0; top: -50px; bottom: 0;\\n overflow: hidden;\\n}\\n.CodeMirror-ruler {\\n border-left: 1px solid #ccc;\\n top: 0; bottom: 0;\\n position: absolute;\\n}\\n\\n/* DEFAULT THEME */\\n\\n.cm-s-default .cm-header {color: blue;}\\n.cm-s-default .cm-quote {color: #090;}\\n.cm-negative {color: #d44;}\\n.cm-positive {color: #292;}\\n.cm-header, .cm-strong {font-weight: bold;}\\n.cm-em {font-style: italic;}\\n.cm-link {text-decoration: underline;}\\n.cm-strikethrough {text-decoration: line-through;}\\n\\n.cm-s-default .cm-keyword {color: #708;}\\n.cm-s-default .cm-atom {color: #219;}\\n.cm-s-default .cm-number {color: #164;}\\n.cm-s-default .cm-def {color: #00f;}\\n.cm-s-default .cm-variable,\\n.cm-s-default .cm-punctuation,\\n.cm-s-default .cm-property,\\n.cm-s-default .cm-operator {}\\n.cm-s-default .cm-variable-2 {color: #05a;}\\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\\n.cm-s-default .cm-comment {color: #a50;}\\n.cm-s-default .cm-string {color: #a11;}\\n.cm-s-default .cm-string-2 {color: #f50;}\\n.cm-s-default .cm-meta {color: #555;}\\n.cm-s-default .cm-qualifier {color: #555;}\\n.cm-s-default .cm-builtin {color: #30a;}\\n.cm-s-default .cm-bracket {color: #997;}\\n.cm-s-default .cm-tag {color: #170;}\\n.cm-s-default .cm-attribute {color: #00c;}\\n.cm-s-default .cm-hr {color: #999;}\\n.cm-s-default .cm-link {color: #00c;}\\n\\n.cm-s-default .cm-error {color: #f00;}\\n.cm-invalidchar {color: #f00;}\\n\\n.CodeMirror-composing { border-bottom: 2px solid; }\\n\\n/* Default styles for common addons */\\n\\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\\n.CodeMirror-activeline-background {background: #e8f2ff;}\\n\\n/* STOP */\\n\\n/* The rest of this file contains styles related to the mechanics of\\n the editor. You probably shouldn't touch them. */\\n\\n.CodeMirror {\\n position: relative;\\n overflow: hidden;\\n background: white;\\n}\\n\\n.CodeMirror-scroll {\\n overflow: scroll !important; /* Things will break if this is overridden */\\n /* 50px is the magic margin used to hide the element's real scrollbars */\\n /* See overflow: hidden in .CodeMirror */\\n margin-bottom: -50px; margin-right: -50px;\\n padding-bottom: 50px;\\n height: 100%;\\n outline: none; /* Prevent dragging from highlighting the element */\\n position: relative;\\n z-index: 0;\\n}\\n.CodeMirror-sizer {\\n position: relative;\\n border-right: 50px solid transparent;\\n}\\n\\n/* The fake, visible scrollbars. Used to force redraw during scrolling\\n before actual scrolling happens, thus preventing shaking and\\n flickering artifacts. */\\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\\n position: absolute;\\n z-index: 6;\\n display: none;\\n outline: none;\\n}\\n.CodeMirror-vscrollbar {\\n right: 0; top: 0;\\n overflow-x: hidden;\\n overflow-y: scroll;\\n}\\n.CodeMirror-hscrollbar {\\n bottom: 0; left: 0;\\n overflow-y: hidden;\\n overflow-x: scroll;\\n}\\n.CodeMirror-scrollbar-filler {\\n right: 0; bottom: 0;\\n}\\n.CodeMirror-gutter-filler {\\n left: 0; bottom: 0;\\n}\\n\\n.CodeMirror-gutters {\\n position: absolute; left: 0; top: 0;\\n min-height: 100%;\\n z-index: 3;\\n}\\n.CodeMirror-gutter {\\n white-space: normal;\\n height: 100%;\\n display: inline-block;\\n vertical-align: top;\\n margin-bottom: -50px;\\n}\\n.CodeMirror-gutter-wrapper {\\n position: absolute;\\n z-index: 4;\\n background: none !important;\\n border: none !important;\\n}\\n.CodeMirror-gutter-background {\\n position: absolute;\\n top: 0; bottom: 0;\\n z-index: 4;\\n}\\n.CodeMirror-gutter-elt {\\n position: absolute;\\n cursor: default;\\n z-index: 4;\\n}\\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\\n\\n.CodeMirror-lines {\\n cursor: text;\\n min-height: 1px; /* prevents collapsing before first draw */\\n}\\n.CodeMirror pre.CodeMirror-line,\\n.CodeMirror pre.CodeMirror-line-like {\\n /* Reset some styles that the rest of the page might have set */\\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\\n border-width: 0;\\n background: transparent;\\n font-family: inherit;\\n font-size: inherit;\\n margin: 0;\\n white-space: pre;\\n word-wrap: normal;\\n line-height: inherit;\\n color: inherit;\\n z-index: 2;\\n position: relative;\\n overflow: visible;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-font-variant-ligatures: contextual;\\n font-variant-ligatures: contextual;\\n}\\n.CodeMirror-wrap pre.CodeMirror-line,\\n.CodeMirror-wrap pre.CodeMirror-line-like {\\n word-wrap: break-word;\\n white-space: pre-wrap;\\n word-break: normal;\\n}\\n\\n.CodeMirror-linebackground {\\n position: absolute;\\n left: 0; right: 0; top: 0; bottom: 0;\\n z-index: 0;\\n}\\n\\n.CodeMirror-linewidget {\\n position: relative;\\n z-index: 2;\\n padding: 0.1px; /* Force widget margins to stay inside of the container */\\n}\\n\\n.CodeMirror-widget {}\\n\\n.CodeMirror-rtl pre { direction: rtl; }\\n\\n.CodeMirror-code {\\n outline: none;\\n}\\n\\n/* Force content-box sizing for the elements where we expect it */\\n.CodeMirror-scroll,\\n.CodeMirror-sizer,\\n.CodeMirror-gutter,\\n.CodeMirror-gutters,\\n.CodeMirror-linenumber {\\n -moz-box-sizing: content-box;\\n box-sizing: content-box;\\n}\\n\\n.CodeMirror-measure {\\n position: absolute;\\n width: 100%;\\n height: 0;\\n overflow: hidden;\\n visibility: hidden;\\n}\\n\\n.CodeMirror-cursor {\\n position: absolute;\\n pointer-events: none;\\n}\\n.CodeMirror-measure pre { position: static; }\\n\\ndiv.CodeMirror-cursors {\\n visibility: hidden;\\n position: relative;\\n z-index: 3;\\n}\\ndiv.CodeMirror-dragcursors {\\n visibility: visible;\\n}\\n\\n.CodeMirror-focused div.CodeMirror-cursors {\\n visibility: visible;\\n}\\n\\n.CodeMirror-selected { background: #d9d9d9; }\\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\\n.CodeMirror-crosshair { cursor: crosshair; }\\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\\n\\n.cm-searching {\\n background-color: #ffa;\\n background-color: rgba(255, 255, 0, .4);\\n}\\n\\n/* Used to force a border model for a node */\\n.cm-force-border { padding-right: .1px; }\\n\\n@media print {\\n /* Hide the cursor when printing */\\n .CodeMirror div.CodeMirror-cursors {\\n visibility: hidden;\\n }\\n}\\n\\n/* See issue #2901 */\\n.cm-tab-wrap-hack:after { content: ''; }\\n\\n/* Help users use markselection to safely style text background */\\nspan.CodeMirror-selectedtext { background: none; }\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/*\n Name: material\n Author: Mattia Astorino (http://github.com/equinusocio)\n Website: https://material-theme.site/\n*/\n\n.cm-s-material.CodeMirror {\n background-color: #263238;\n color: #EEFFFF;\n}\n\n.cm-s-material .CodeMirror-gutters {\n background: #263238;\n color: #546E7A;\n border: none;\n}\n\n.cm-s-material .CodeMirror-guttermarker,\n.cm-s-material .CodeMirror-guttermarker-subtle,\n.cm-s-material .CodeMirror-linenumber {\n color: #546E7A;\n}\n\n.cm-s-material .CodeMirror-cursor {\n border-left: 1px solid #FFCC00;\n}\n.cm-s-material.cm-fat-cursor .CodeMirror-cursor {\n background-color: #5d6d5c80 !important;\n}\n.cm-s-material .cm-animate-fat-cursor {\n background-color: #5d6d5c80 !important;\n}\n\n.cm-s-material div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::selection,\n.cm-s-material .CodeMirror-line>span::selection,\n.cm-s-material .CodeMirror-line>span>span::selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.5);\n}\n\n.cm-s-material .cm-keyword {\n color: #C792EA;\n}\n\n.cm-s-material .cm-operator {\n color: #89DDFF;\n}\n\n.cm-s-material .cm-variable-2 {\n color: #EEFFFF;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #f07178;\n}\n\n.cm-s-material .cm-builtin {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-atom {\n color: #F78C6C;\n}\n\n.cm-s-material .cm-number {\n color: #FF5370;\n}\n\n.cm-s-material .cm-def {\n color: #82AAFF;\n}\n\n.cm-s-material .cm-string {\n color: #C3E88D;\n}\n\n.cm-s-material .cm-string-2 {\n color: #f07178;\n}\n\n.cm-s-material .cm-comment {\n color: #546E7A;\n}\n\n.cm-s-material .cm-variable {\n color: #f07178;\n}\n\n.cm-s-material .cm-tag {\n color: #FF5370;\n}\n\n.cm-s-material .cm-meta {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-attribute {\n color: #C792EA;\n}\n\n.cm-s-material .cm-property {\n color: #C792EA;\n}\n\n.cm-s-material .cm-qualifier {\n color: #DECB6B;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #DECB6B;\n}\n\n\n.cm-s-material .cm-error {\n color: rgba(255, 255, 255, 1.0);\n background-color: #FF5370;\n}\n\n.cm-s-material .CodeMirror-matchingbracket {\n text-decoration: underline;\n color: white !important;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/codemirror/theme/material.css\"],\"names\":[],\"mappings\":\"AAAA;;;;CAIC;;AAED;EACE,yBAAyB;EACzB,cAAc;AAChB;;AAEA;EACE,mBAAmB;EACnB,cAAc;EACd,YAAY;AACd;;AAEA;;;EAGE,cAAc;AAChB;;AAEA;EACE,8BAA8B;AAChC;AACA;EACE,sCAAsC;AACxC;AACA;EACE,sCAAsC;AACxC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;;;EAGE,oCAAoC;AACtC;;AAEA;;;EAGE,oCAAoC;AACtC;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;;EAEE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;;EAEE,cAAc;AAChB;;;AAGA;EACE,+BAA+B;EAC/B,yBAAyB;AAC3B;;AAEA;EACE,0BAA0B;EAC1B,uBAAuB;AACzB\",\"sourcesContent\":[\"/*\\n Name: material\\n Author: Mattia Astorino (http://github.com/equinusocio)\\n Website: https://material-theme.site/\\n*/\\n\\n.cm-s-material.CodeMirror {\\n background-color: #263238;\\n color: #EEFFFF;\\n}\\n\\n.cm-s-material .CodeMirror-gutters {\\n background: #263238;\\n color: #546E7A;\\n border: none;\\n}\\n\\n.cm-s-material .CodeMirror-guttermarker,\\n.cm-s-material .CodeMirror-guttermarker-subtle,\\n.cm-s-material .CodeMirror-linenumber {\\n color: #546E7A;\\n}\\n\\n.cm-s-material .CodeMirror-cursor {\\n border-left: 1px solid #FFCC00;\\n}\\n.cm-s-material.cm-fat-cursor .CodeMirror-cursor {\\n background-color: #5d6d5c80 !important;\\n}\\n.cm-s-material .cm-animate-fat-cursor {\\n background-color: #5d6d5c80 !important;\\n}\\n\\n.cm-s-material div.CodeMirror-selected {\\n background: rgba(128, 203, 196, 0.2);\\n}\\n\\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\\n background: rgba(128, 203, 196, 0.2);\\n}\\n\\n.cm-s-material .CodeMirror-line::selection,\\n.cm-s-material .CodeMirror-line>span::selection,\\n.cm-s-material .CodeMirror-line>span>span::selection {\\n background: rgba(128, 203, 196, 0.2);\\n}\\n\\n.cm-s-material .CodeMirror-line::-moz-selection,\\n.cm-s-material .CodeMirror-line>span::-moz-selection,\\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\\n background: rgba(128, 203, 196, 0.2);\\n}\\n\\n.cm-s-material .CodeMirror-activeline-background {\\n background: rgba(0, 0, 0, 0.5);\\n}\\n\\n.cm-s-material .cm-keyword {\\n color: #C792EA;\\n}\\n\\n.cm-s-material .cm-operator {\\n color: #89DDFF;\\n}\\n\\n.cm-s-material .cm-variable-2 {\\n color: #EEFFFF;\\n}\\n\\n.cm-s-material .cm-variable-3,\\n.cm-s-material .cm-type {\\n color: #f07178;\\n}\\n\\n.cm-s-material .cm-builtin {\\n color: #FFCB6B;\\n}\\n\\n.cm-s-material .cm-atom {\\n color: #F78C6C;\\n}\\n\\n.cm-s-material .cm-number {\\n color: #FF5370;\\n}\\n\\n.cm-s-material .cm-def {\\n color: #82AAFF;\\n}\\n\\n.cm-s-material .cm-string {\\n color: #C3E88D;\\n}\\n\\n.cm-s-material .cm-string-2 {\\n color: #f07178;\\n}\\n\\n.cm-s-material .cm-comment {\\n color: #546E7A;\\n}\\n\\n.cm-s-material .cm-variable {\\n color: #f07178;\\n}\\n\\n.cm-s-material .cm-tag {\\n color: #FF5370;\\n}\\n\\n.cm-s-material .cm-meta {\\n color: #FFCB6B;\\n}\\n\\n.cm-s-material .cm-attribute {\\n color: #C792EA;\\n}\\n\\n.cm-s-material .cm-property {\\n color: #C792EA;\\n}\\n\\n.cm-s-material .cm-qualifier {\\n color: #DECB6B;\\n}\\n\\n.cm-s-material .cm-variable-3,\\n.cm-s-material .cm-type {\\n color: #DECB6B;\\n}\\n\\n\\n.cm-s-material .cm-error {\\n color: rgba(255, 255, 255, 1.0);\\n background-color: #FF5370;\\n}\\n\\n.cm-s-material .CodeMirror-matchingbracket {\\n text-decoration: underline;\\n color: white !important;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a \n","import { render } from \"./addon-button.vue?vue&type=template&id=04d399ab\"\nimport script from \"./addon-button.vue?vue&type=script&lang=js\"\nexport * from \"./addon-button.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","value","href","target","name","components","SliderInput","ButtonRadio","UnicornSwitcher","props","lunaAddonMixin","setup","ctx","state","uid","u","options","text","link","link_target","style","border_radius","size","block","icon","icon_position","toRefs","_createElementBlock","_hoisted_1","_hoisted_2","id","type","_ctx","$event","_hoisted_3","_hoisted_4","_createVNode","_component_ButtonRadio","color","variant","align","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_component_UnicornSwitcher","shape","_hoisted_9","_hoisted_10","list","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_component_SliderInput","max","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_normalizeClass","_hoisted_45","_hoisted_46","_hoisted_47"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"page/chunk-vendor.804.js","mappings":"wIAGSA,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAsD,SAA/CC,IAAI,yBAAwB,eAAW,G,GAM3CF,MAAM,mB,GACTC,EAAAA,EAAAA,oBAAiD,SAA1CC,IAAI,0BAAyB,SAAK,G,GAgBtCF,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PezC,KAAK,mB,WACX4B,EAAAhB,QAAQO,M,qCAARS,EAAAhB,QAAQO,MAAKU,GACtBH,GAAG,yBACHgB,MAAM,SACNR,MAAM,UACL,cAAY,EACZ,eAAa,G,oDAMpBvC,EAAAA,EAAAA,oBAaM,MAbNiF,EAaM,CAZJC,GAA0D,wBAC1DlF,EAAAA,EAAAA,oBAMM,MANNmF,EAMM,EALJnF,EAAAA,EAAAA,oBAEM,MAFNoF,EAEM,EADFpF,EAAAA,EAAAA,oBAAmC,QAA5BD,OAAKsF,EAAAA,EAAAA,gBAAEpD,EAAAhB,QAAQQ,O,wDAE1BzB,EAAAA,EAAAA,oBACgD,SADzC+B,GAAG,wBAAwBC,KAAK,O,qCAC5BC,EAAAhB,QAAQQ,KAAIS,GAAEnC,MAAM,gB,yBAApBkC,EAAAhB,QAAQQ,WAAI,uBAEzB6D,KAGQ,wBAIVtF,EAAAA,EAAAA,oBAYM,MAZNuF,EAYM,CAXJC,GAAiE,wBACjEnD,EAAAA,EAAAA,aASEC,GAAA,CARAC,MAAM,UACNC,QAAQ,UACRzC,MAAM,Q,WACGkC,EAAAhB,QAAQS,c,qCAARO,EAAAhB,QAAQS,cAAaQ,GAC7BjB,QAAS,CAAC,C","sources":["webpack:///./src/vue/components/page-builder/addons/addon-button.vue","webpack:///./src/vue/components/page-builder/addons/addon-button.vue?bb7d"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./addon-button.vue?vue&type=template&id=04d399ab\"\nimport script from \"./addon-button.vue?vue&type=script&lang=js\"\nexport * from \"./addon-button.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","value","href","target","name","components","SliderInput","ButtonRadio","UnicornSwitcher","props","lunaAddonMixin","setup","ctx","state","uid","u","options","text","link","link_target","style","border_radius","size","block","icon","icon_position","toRefs","_createElementBlock","_hoisted_1","_hoisted_2","id","type","_ctx","$event","_hoisted_3","_hoisted_4","_createVNode","_component_ButtonRadio","color","variant","align","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_component_UnicornSwitcher","shape","_hoisted_9","_hoisted_10","list","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_component_SliderInput","max","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_normalizeClass","_hoisted_45","_hoisted_46","_hoisted_47"],"sourceRoot":""} \ No newline at end of file diff --git a/assets/dist/account-check.js b/assets/dist/account-check.js index 13c46024..4c766e1d 100644 --- a/assets/dist/account-check.js +++ b/assets/dist/account-check.js @@ -1,22 +1 @@ -System.register(["@main"], function (exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - return { - setters: [ - function (_1) { - } - ], - execute: async function () { - await u.$validation.addGlobalValidator('account_check', async (account, input, options) => { - const field = options.field || 'username'; - const res = await u.$http.get(u.route('@account_check', { field: field, value: account })); - if (res.data.data.exists) { - return res.data.data.message || u.__('luna.message.user.account.exists'); - } - return ''; - }); - } - }; -}); - -//# sourceMappingURL=account-check.js.map +System.register(["@main"],(function(t,a){"use strict";a&&a.id;return{setters:[function(t){}],execute:async function(){await u.$validation.addGlobalValidator("account_check",(async(t,a,e)=>{const s=e.field||"username",c=await u.$http.get(u.route("@account_check",{field:s,value:t}));return c.data.data.exists?c.data.data.message||u.__("luna.message.user.account.exists"):""}))}}})); \ No newline at end of file diff --git a/assets/dist/account-check.js.map b/assets/dist/account-check.js.map deleted file mode 100644 index a155094b..00000000 --- a/assets/dist/account-check.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["account-check.ts"],"names":[],"mappings":";;;;;;;;;YAGA,MAAM,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBACxF,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,UAAU,CAAC;gBAE1C,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;gBAE3F,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;oBACxB,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,EAAE,CAAC,kCAAkC,CAAC,CAAC;iBAC1E;gBAED,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACH,CAAC","file":"account-check.js","sourcesContent":["\nimport '@main';\n\nawait u.$validation.addGlobalValidator('account_check', async (account, input, options) => {\n const field = options.field || 'username';\n\n const res = await u.$http.get(u.route('@account_check', { field: field, value: account }));\n\n if (res.data.data.exists) {\n return res.data.data.message || u.__('luna.message.user.account.exists');\n }\n\n return '';\n});\n"]} \ No newline at end of file diff --git a/assets/dist/captcha.js b/assets/dist/captcha.js index 31b8e528..ab79b411 100644 --- a/assets/dist/captcha.js +++ b/assets/dist/captcha.js @@ -1,86 +1 @@ -class GragwarCaptcha { - constructor($element, options = {}) { - this.$element = $element; - this.options = options; - this.$image = this.$element.querySelector('[data-captcha-image]'); - this.$input = this.$element.querySelector('[data-captcha-input]'); - this.$refreshButton = this.$element.querySelector('[data-captcha-refresh]'); - this.$buttonIcon = this.$element.querySelector('[data-refresh-icon]'); - this.$refreshButton.addEventListener('click', () => { - this.refresh(); - }); - } - refresh() { - this.$buttonIcon.classList.add('fa-spin'); - let src = this.$image.dataset.image; - const t = (new Date).getTime().toString() + '.' + (Math.random() * 10000); - if (src.indexOf('?') !== -1) { - src += '&t=' + t; - } - else { - src += '?t=' + t; - } - this.$image.addEventListener('load', () => { - this.$buttonIcon.classList.remove('fa-spin'); - this.$input.value = ''; - }, { once: true }); - this.$image.src = src; - } - clear() { - this.$input.value = ''; - } -} -u.directive('captcha-gregwar', { - mounted(el) { - u.module(el, 'captcha.grwgwar', (el) => new GragwarCaptcha(el)); - } -}); -class RecaptchaCaptcha { - constructor(el, type) { - this.el = el; - this.type = type; - u.import('https://www.google.com/recaptcha/api.js'); - this.key = this.el.dataset.key; - this.callbackName = this.el.dataset.callback; - this.jsVerify = this.el.dataset.jsVerify; - if (this.jsVerify) { - const form = this.el.closest('form'); - if (type === 'invisible') { - form.addEventListener('submit', (e) => { - if (form.dataset.passCaptcha) { - return; - } - e.preventDefault(); - e.stopPropagation(); - e.stopImmediatePropagation(); - grecaptcha.execute(); - }); - window[this.callbackName] = function (response) { - form.dataset.passCaptcha = 'true'; - form.requestSubmit(); - }; - } - else { - form.addEventListener('submit', (e) => { - if (form.dataset.passCaptcha) { - return; - } - e.preventDefault(); - e.stopPropagation(); - e.stopImmediatePropagation(); - alert(u.__('luna.field.captcha.message.please.check.first')); - }); - window[this.callbackName] = function (response) { - form.dataset.passCaptcha = 'true'; - }; - } - } - } -} -u.directive('captcha-recaptcha', { - mounted(el, { value }) { - u.module(el, 'captcha.recaptcha', (el) => new RecaptchaCaptcha(el, value)); - } -}); - -//# sourceMappingURL=captcha.js.map +class GragwarCaptcha{constructor(t,e={}){this.$element=t,this.options=e,this.$image=this.$element.querySelector("[data-captcha-image]"),this.$input=this.$element.querySelector("[data-captcha-input]"),this.$refreshButton=this.$element.querySelector("[data-captcha-refresh]"),this.$buttonIcon=this.$element.querySelector("[data-refresh-icon]"),this.$refreshButton.addEventListener("click",(()=>{this.refresh()}))}refresh(){this.$buttonIcon.classList.add("fa-spin");let t=this.$image.dataset.image;const e=(new Date).getTime().toString()+"."+1e4*Math.random();-1!==t.indexOf("?")?t+="&t="+e:t+="?t="+e,this.$image.addEventListener("load",(()=>{this.$buttonIcon.classList.remove("fa-spin"),this.$input.value=""}),{once:!0}),this.$image.src=t}clear(){this.$input.value=""}}u.directive("captcha-gregwar",{mounted(t){u.module(t,"captcha.grwgwar",(t=>new GragwarCaptcha(t)))}});class RecaptchaCaptcha{constructor(t,e){if(this.el=t,this.type=e,u.import("https://www.google.com/recaptcha/api.js"),this.key=this.el.dataset.key,this.callbackName=this.el.dataset.callback,this.jsVerify=this.el.dataset.jsVerify,this.jsVerify){const t=this.el.closest("form");"invisible"===e?(t.addEventListener("submit",(e=>{t.dataset.passCaptcha||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),grecaptcha.execute())})),window[this.callbackName]=function(e){t.dataset.passCaptcha="true",t.requestSubmit()}):(t.addEventListener("submit",(e=>{t.dataset.passCaptcha||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),alert(u.__("luna.field.captcha.message.please.check.first")))})),window[this.callbackName]=function(e){t.dataset.passCaptcha="true"})}}}u.directive("captcha-recaptcha",{mounted(t,{value:e}){u.module(t,"captcha.recaptcha",(t=>new RecaptchaCaptcha(t,e)))}}); \ No newline at end of file diff --git a/assets/dist/captcha.js.map b/assets/dist/captcha.js.map deleted file mode 100644 index 59d4a9e0..00000000 --- a/assets/dist/captcha.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["captcha.ts"],"names":[],"mappings":"AACA,MAAM,cAAc;IAMlB,YAAmB,QAAiB,EAAS,UAAe,EAAE;QAA3C,aAAQ,GAAR,QAAQ,CAAS;QAAS,YAAO,GAAP,OAAO,CAAU;QAC5D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,sBAAsB,CAAE,CAAC;QACnE,IAAI,CAAC,MA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AAO,CAAC,WAAW,GAAG,MAAM,CAAC;oBAClC,IAAI,CAAC,aAAa,EAAE,CAAC;gBACvB,CAAC,CAAA;aACF;iBAAM;gBACL,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;oBACpC,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;wBAC5B,OAAO;qBACR;oBAED,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,CAAC,CAAC,eAAe,EAAE,CAAC;oBACpB,CAAC,CAAC,wBAAwB,EAAE,CAAC;oBAE7B,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,+CAA+C,CAAC,CAAC,CAAC;gBAC/D,CAAC,CAAC,CAAC;gBAEH,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,UAAS,QAAQ;oBAC3C,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC;gBACpC,CAAC,CAAA;aACF;SACF;IACH,CAAC;CACF;AAED,CAAC,CAAC,SAAS,CAAC,mBAAmB,EAAE;IAC/B,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE;QACnB,CAAC,CAAC,MAAM,CACN,EAAE,EACF,mBAAmB,EACnB,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,gBAAgB,CAAC,EAAiB,EAAE,KAAK,CAAC,CACvD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC","file":"captcha.js","sourcesContent":["\nclass GragwarCaptcha {\n public $image: HTMLImageElement;\n public $input: HTMLInputElement;\n public $refreshButton: HTMLButtonElement;\n public $buttonIcon: HTMLSpanElement;\n\n constructor(public $element: Element, public options: any = {}) {\n this.$image = this.$element.querySelector('[data-captcha-image]')!;\n this.$input = this.$element.querySelector('[data-captcha-input]')!;\n this.$refreshButton = this.$element.querySelector('[data-captcha-refresh]')!;\n this.$buttonIcon = this.$element.querySelector('[data-refresh-icon]')!;\n\n this.$refreshButton.addEventListener('click', () => {\n this.refresh();\n });\n }\n\n refresh() {\n this.$buttonIcon.classList.add('fa-spin');\n\n let src = this.$image.dataset.image;\n const t = (new Date).getTime().toString() + '.' + (Math.random() * 10000);\n\n if (src.indexOf('?') !== -1) {\n src += '&t=' + t;\n } else {\n src += '?t=' + t;\n }\n\n this.$image.addEventListener('load', () => {\n this.$buttonIcon.classList.remove('fa-spin');\n this.$input.value= '';\n }, { once: true });\n\n this.$image.src = src;\n }\n\n clear() {\n this.$input.value = '';\n }\n}\n\nu.directive('captcha-gregwar', {\n mounted(el) {\n u.module(el, 'captcha.grwgwar', (el) => new GragwarCaptcha(el));\n }\n});\n\nclass RecaptchaCaptcha {\n public key: string | undefined;\n public callbackName: string | undefined;\n public jsVerify: string | undefined;\n\n constructor(public el: HTMLElement, public type: string) {\n u.import('https://www.google.com/recaptcha/api.js');\n\n this.key = this.el.dataset.key;\n this.callbackName = this.el.dataset.callback;\n\n this.jsVerify = this.el.dataset.jsVerify;\n\n if (this.jsVerify) {\n const form = this.el.closest('form');\n\n if (type === 'invisible') {\n form.addEventListener('submit', (e) => {\n if (form.dataset.passCaptcha) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n e.stopImmediatePropagation();\n\n grecaptcha.execute();\n });\n\n window[this.callbackName] = function(response) {\n form.dataset.passCaptcha = 'true';\n form.requestSubmit();\n }\n } else {\n form.addEventListener('submit', (e) => {\n if (form.dataset.passCaptcha) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n e.stopImmediatePropagation();\n\n alert(u.__('luna.field.captcha.message.please.check.first'));\n });\n\n window[this.callbackName] = function(response) {\n form.dataset.passCaptcha = 'true';\n }\n }\n }\n }\n}\n\nu.directive('captcha-recaptcha', {\n mounted(el, { value }) {\n u.module(\n el,\n 'captcha.recaptcha',\n (el) => new RecaptchaCaptcha(el as HTMLElement, value)\n );\n }\n});\n"]} \ No newline at end of file diff --git a/assets/dist/lang-dropdown.js b/assets/dist/lang-dropdown.js index b2d4c706..fdf390f5 100644 --- a/assets/dist/lang-dropdown.js +++ b/assets/dist/lang-dropdown.js @@ -1,33 +1 @@ -document.addEventListener('alpine:init', () => { - Alpine.data('LangDropdown', (options) => ({ - options, - dropdown: null, - items: [], - loaded: false, - init() { - this.dropdown = bootstrap.Dropdown.getOrCreateInstance(this.$el, { - autoClose: true - }); - }, - buttonClicked(e) { - if (this.loaded) { - return; - } - u.$http.get(this.options.ajaxUrl, { - params: { - id: this.options.id, - type: this.options.type, - table: this.options.table, - idName: this.options.idName, - langField: this.options.langField, - routeName: this.options.routeName, - } - }).then((res) => { - this.items = res.data.data; - this.loaded = true; - }); - } - })); -}); - -//# sourceMappingURL=lang-dropdown.js.map +document.addEventListener("alpine:init",(()=>{Alpine.data("LangDropdown",(t=>({options:t,dropdown:null,items:[],loaded:!1,init(){this.dropdown=bootstrap.Dropdown.getOrCreateInstance(this.$el,{autoClose:!0})},buttonClicked(t){this.loaded||u.$http.get(this.options.ajaxUrl,{params:{id:this.options.id,type:this.options.type,table:this.options.table,idName:this.options.idName,langField:this.options.langField,routeName:this.options.routeName}}).then((t=>{this.items=t.data.data,this.loaded=!0}))}})))})); \ No newline at end of file diff --git a/assets/dist/lang-dropdown.js.map b/assets/dist/lang-dropdown.js.map deleted file mode 100644 index 263d7f14..00000000 --- a/assets/dist/lang-dropdown.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["lang-dropdown.ts"],"names":[],"mappings":"AACA,QAAQ,CAAC,gBAAgB,CAAC,aAAa,EAAE,GAAG,EAAE;IAC5C,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACxC,OAAO;QACP,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,KAAK;QAEb,IAAI;YACF,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CACpD,IAAI,CAAC,GAAG,EACR;gBACE,SAAS,EAAE,IAAI;aAChB,CACF,CAAC;QACJ,CAAC;QACD,aAAa,CAAC,CAAC;YACb,IAAI,IAAI,CAAC,MAAM,EAAE;gBACf,OAAO;aACR;YAED,CAAC,CAAC,KAAK,CAAC,GAAG,CACT,IAAI,CAAC,OAAO,CAAC,OAAO,EACpB;gBACE,MAAM,EAAE;oBACN,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE;oBACnB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;oBACvB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK;oBACzB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;oBAC3B,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;oBACjC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;iBAClC;aACF,CACF,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;gBACb,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;gBAE3B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACrB,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC,CAAA;AACL,CAAC,CAAC,CAAC","file":"lang-dropdown.js","sourcesContent":["\ndocument.addEventListener('alpine:init', () => {\n Alpine.data('LangDropdown', (options) => ({\n options,\n dropdown: null,\n items: [],\n loaded: false,\n \n init() {\n this.dropdown = bootstrap.Dropdown.getOrCreateInstance(\n this.$el,\n {\n autoClose: true\n }\n );\n },\n buttonClicked(e) {\n if (this.loaded) {\n return;\n }\n\n u.$http.get(\n this.options.ajaxUrl,\n {\n params: {\n id: this.options.id,\n type: this.options.type,\n table: this.options.table,\n idName: this.options.idName,\n langField: this.options.langField,\n routeName: this.options.routeName,\n }\n }\n ).then((res) => {\n this.items = res.data.data;\n\n this.loaded = true;\n });\n }\n }))\n});\n\n"]} \ No newline at end of file diff --git a/assets/dist/locale-switch.js b/assets/dist/locale-switch.js index c577885b..ba2865f7 100644 --- a/assets/dist/locale-switch.js +++ b/assets/dist/locale-switch.js @@ -1,97 +1 @@ -System.register(["@main"], function (exports_1, context_1) { - "use strict"; - var LocaleSwitchModal; - var __moduleName = context_1 && context_1.id; - return { - setters: [ - function (_1) { - } - ], - execute: function () { - LocaleSwitchModal = class LocaleSwitchModal { - constructor(el, options = {}) { - this.el = el; - this.options = { - type: '', - table: '', - routeName: '', - currentId: '', - defaultId: '', - inputId: '', - langField: '', - titleField: '', - triggerInputName: 'lang_assoc' - }; - // the modal element - this.options = Object.assign({}, this.options, options); - let buttons = this.el.querySelectorAll('[data-task=create_lang_version]'); - u.each(buttons, (button) => { - button.addEventListener('click', (e) => { - this.saveCurrentAndCreateLang(button); - }); - }); - buttons = this.el.querySelectorAll('[data-task=switch_lang]'); - u.each(buttons, (button) => { - button.addEventListener('click', (e) => { - this.switchLang(button); - }); - }); - } - validateForm() { - const input = document.querySelector('#' + this.options.inputId); - const form = input.form; - const validation = u.$validation.get(form); - const valid = validation.validateAll(); - if (!valid) { - alert(u.__('luna.field.locale.switch.message.form.invalid')); - throw new Error('Form invalid'); - } - return form; - } - /** - * @param {HTMLButtonElement} button - */ - saveCurrentAndCreateLang(button) { - const form = this.validateForm(); - u.form(form).post(null, { - [this.options.triggerInputName]: { - task: 'create', - type: this.options.type, - table: this.options.table, - routeName: this.options.routeName, - code: button.dataset.lang, - copy: button.dataset.copy, - langField: this.options.langField, - titleField: this.options.titleField, - currentId: this.options.currentId, - defaultId: this.options.defaultId - } - }); - } - /** - * @param {HTMLButtonElement} button - */ - switchLang(button) { - const form = this.validateForm(); - u.form(form).post(null, { - [this.options.triggerInputName]: { - task: 'switch', - table: this.options.table, - routeName: this.options.routeName, - targetId: button.dataset.targetId - } - }); - } - }; - exports_1("LocaleSwitchModal", LocaleSwitchModal); - u.directive('locale-switch-modal', { - mounted(el, { value }) { - const options = JSON.parse(value); - u.module(el, 'locale.switch', () => new LocaleSwitchModal(el, options)); - } - }); - } - }; -}); - -//# sourceMappingURL=locale-switch.js.map +System.register(["@main"],(function(t,e){"use strict";var i;e&&e.id;return{setters:[function(t){}],execute:function(){t("LocaleSwitchModal",i=class{constructor(t,e={}){this.el=t,this.options={type:"",table:"",routeName:"",currentId:"",defaultId:"",inputId:"",langField:"",titleField:"",triggerInputName:"lang_assoc"},this.options=Object.assign({},this.options,e);let i=this.el.querySelectorAll("[data-task=create_lang_version]");u.each(i,(t=>{t.addEventListener("click",(e=>{this.saveCurrentAndCreateLang(t)}))})),i=this.el.querySelectorAll("[data-task=switch_lang]"),u.each(i,(t=>{t.addEventListener("click",(e=>{this.switchLang(t)}))}))}validateForm(){const t=document.querySelector("#"+this.options.inputId).form;if(!u.$validation.get(t).validateAll())throw alert(u.__("luna.field.locale.switch.message.form.invalid")),new Error("Form invalid");return t}saveCurrentAndCreateLang(t){const e=this.validateForm();u.form(e).post(null,{[this.options.triggerInputName]:{task:"create",type:this.options.type,table:this.options.table,routeName:this.options.routeName,code:t.dataset.lang,copy:t.dataset.copy,langField:this.options.langField,titleField:this.options.titleField,currentId:this.options.currentId,defaultId:this.options.defaultId}})}switchLang(t){const e=this.validateForm();u.form(e).post(null,{[this.options.triggerInputName]:{task:"switch",table:this.options.table,routeName:this.options.routeName,targetId:t.dataset.targetId}})}}),u.directive("locale-switch-modal",{mounted(t,{value:e}){const a=JSON.parse(e);u.module(t,"locale.switch",(()=>new i(t,a)))}})}}})); \ No newline at end of file diff --git a/assets/dist/locale-switch.js.map b/assets/dist/locale-switch.js.map deleted file mode 100644 index 888a4511..00000000 --- a/assets/dist/locale-switch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["locale-switch.ts"],"names":[],"mappings":";;;;;;;;;;YAeA,oBAAA,MAAa,iBAAiB;gBAa5B,YAAmB,EAAe,EAAE,UAAwC,EAAE;oBAA3D,OAAE,GAAF,EAAE,CAAa;oBAZ3B,YAAO,GAAwB;wBACpC,IAAI,EAAE,EAAE;wBACR,KAAK,EAAE,EAAE;wBACT,SAAS,EAAE,EAAE;w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AC,KAAK;4BACzB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;4BACjC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ;yBAClC;qBACF,CACF,CAAC;gBACJ,CAAC;aACF,CAAA;;YAED,CAAC,CAAC,SAAS,CACT,qBAAqB,EACrB;gBACE,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE;oBACnB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBAElC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,EAAiB,EAAE,OAAO,CAAC,CAAC,CAAC;gBACzF,CAAC;aACF,CACF,CAAC;QAEF,CAAC","file":"locale-switch.js","sourcesContent":["\nimport '@main';\n\ninterface LocaleSwitchOptions {\n type: string;\n table: string;\n routeName: string;\n currentId: string;\n defaultId: string;\n inputId: string;\n langField: string;\n titleField: string;\n triggerInputName: string;\n}\n\nexport class LocaleSwitchModal {\n public options: LocaleSwitchOptions = {\n type: '',\n table: '',\n routeName: '',\n currentId: '',\n defaultId: '',\n inputId: '',\n langField: '',\n titleField: '',\n triggerInputName: 'lang_assoc'\n };\n\n constructor(public el: HTMLElement, options: Partial = {}) {\n // the modal element\n this.options = Object.assign({}, this.options, options);\n\n let buttons = this.el.querySelectorAll('[data-task=create_lang_version]');\n\n u.each(buttons, (button) => {\n button.addEventListener('click', (e) => {\n this.saveCurrentAndCreateLang(button);\n });\n });\n\n buttons = this.el.querySelectorAll('[data-task=switch_lang]');\n\n u.each(buttons, (button) => {\n button.addEventListener('click', (e) => {\n this.switchLang(button);\n });\n });\n }\n\n validateForm() {\n const input = document.querySelector('#' + this.options.inputId);\n\n const form = input.form;\n\n const validation = u.$validation.get(form);\n\n const valid = validation.validateAll();\n\n if (!valid) {\n alert(u.__('luna.field.locale.switch.message.form.invalid'));\n throw new Error('Form invalid');\n }\n\n return form;\n }\n\n /**\n * @param {HTMLButtonElement} button\n */\n saveCurrentAndCreateLang(button: HTMLButtonElement) {\n const form = this.validateForm();\n\n u.form(form).post(\n null,\n {\n [this.options.triggerInputName]: {\n task: 'create',\n type: this.options.type,\n table: this.options.table,\n routeName: this.options.routeName,\n code: button.dataset.lang,\n copy: button.dataset.copy,\n langField: this.options.langField,\n titleField: this.options.titleField,\n currentId: this.options.currentId,\n defaultId: this.options.defaultId\n }\n }\n );\n }\n\n /**\n * @param {HTMLButtonElement} button\n */\n switchLang(button: HTMLButtonElement) {\n const form = this.validateForm();\n\n u.form(form).post(\n null,\n {\n [this.options.triggerInputName]: {\n task: 'switch',\n table: this.options.table,\n routeName: this.options.routeName,\n targetId: button.dataset.targetId\n }\n }\n );\n }\n}\n\nu.directive(\n 'locale-switch-modal',\n {\n mounted(el, { value }) {\n const options = JSON.parse(value);\n\n u.module(el, 'locale.switch', () => new LocaleSwitchModal(el as HTMLElement, options));\n }\n }\n);\n\n"]} \ No newline at end of file diff --git a/assets/dist/page-builder.js b/assets/dist/page-builder.js index 8b11d643..77c80be3 100644 --- a/assets/dist/page-builder.js +++ b/assets/dist/page-builder.js @@ -1,3 +1,3 @@ /*! For license information please see page-builder.js.LICENSE.txt */ -(()=>{var e,t,o,n={8045:(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var n=o(1554),a=o(311);function l(e,t,o){let{emit:l}=t;return o.options=o.options||{},o.options=(0,n.Z)(e.modelValue||{},o.options),o=(0,a.reactive)(o),(0,a.onMounted)((()=>{})),(0,a.watch)((()=>o.options),(e=>{l("update:modelValue",e)}),{deep:!0}),o}l.props={modelValue:Object,addonId:String},window.lunaAddonMixin=l},7266:(e,t,o)=>{"use strict";o.d(t,{Z:()=>E});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l),i=o(1667),d=o.n(i),s=new URL(o(6270),o.b),c=new URL(o(9376),o.b),u=new URL(o(3220),o.b),p=new URL(o(1686),o.b),m=new URL(o(4859),o.b),f=new URL(o(6387),o.b),g=new URL(o(1520),o.b),A=new URL(o(8898),o.b),b=r()(a()),h=d()(s),v=d()(c),V=d()(u),N=d()(p),C=d()(m),x=d()(f),y=d()(g),w=d()(A);b.push([e.id,`.sp-container{position:absolute;top:0;left:0;display:inline-block;z-index:9999994;overflow:hidden;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;user-select:none}.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-container button{user-select:none}.sp-original-input-container{position:relative;display:inline-flex}.sp-original-input-container input{margin:0 !important}.sp-original-input-container .sp-add-on{width:40px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.sp-original-input-container .sp-add-on .sp-colorize{height:100%;width:100%;border-radius:inherit}input.spectrum.with-add-on{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.sp-colorize-container{background-image:url(${h});background-image:url(${v})}.sp-container.sp-flat{position:relative}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20px !important}.sp-hue{position:absolute;top:0;right:0;bottom:0;width:12px;height:100%;left:initial !important;background:-moz-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-ms-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-o-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-webkit-gradient(linear, left top, left bottom, from(red), color-stop(0.17, #ff0), color-stop(0.33, lime), color-stop(0.5, cyan), color-stop(0.67, blue), color-stop(0.83, #f0f), to(red));background:-webkit-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:linear-gradient(to bottom, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%)}.sp-clear-enabled .sp-hue{top:15%;height:85%}.sp-clear-enabled .sp-clear{display:block;position:absolute;top:3px;right:0;bottom:0;cursor:pointer;left:initial;height:14px;width:14px}.sp-fill{padding-top:80%}.sp-sat{position:absolute;top:0;left:0;right:0;bottom:0;background-image:linear-gradient(to right, #fff, rgba(204,154,129,0))}.sp-val{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:4px;background-image:linear-gradient(to top, #000, rgba(204,154,129,0))}.sp-alpha-enabled .sp-top{margin-bottom:28px !important}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-3px;cursor:pointer;height:16px;border-radius:50%;width:16px;margin-right:5px;left:-2px;right:0;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;user-select:none}.sp-alpha{display:none;position:absolute;bottom:-18px;right:0;left:0;height:10px;user-select:none}.sp-alpha-inner{border-radius:4px}.sp-clear{display:none;user-select:none}.sp-clear.sp-clear-display{background-position:center}.sp-replacer{user-select:none}.sp-preview{user-select:none}.sp-dragger{user-select:none;border-radius:5px;height:10px;width:10px;border:1px solid #fff;cursor:pointer;position:absolute;top:0;left:0;margin-left:3px;margin-top:3px;box-shadow:0 0 2px 1px rgba(0,0,0,0.2)}.sp-slider{user-select:none;position:absolute;top:0;cursor:pointer;height:16px;border-radius:50%;width:16px;left:-2px;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;margin-top:8px}.sp-container.sp-dragging .sp-input{user-select:none}.sp-container.sp-input-disabled .sp-input-container{display:none}.sp-container.sp-buttons-disabled .sp-button-container{display:none}.sp-container.sp-palette-buttons-disabled .sp-palette-button-container{display:none}.sp-palette-only .sp-picker-container{display:none}.sp-palette-disabled .sp-palette-container{display:none}.sp-initial-disabled .sp-initial{display:none}.sp-1{height:17%}.sp-2{height:16%}.sp-3{height:17%}.sp-4{height:17%}.sp-5{height:16%}.sp-6{height:17%}.sp-hidden{display:none !important}.sp-cf{*zoom:1}.sp-cf:before{content:"";display:table}.sp-cf:after{content:"";display:table;clear:both}@media (max-device-width: 480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-container{display:inline-flex;background-color:#fff;padding:0;border-radius:4px;color:#000;box-shadow:0 0 0 1px rgba(99,114,130,0.16),0 8px 16px rgba(27,39,51,0.08);font-size:14px;box-sizing:border-box}.sp-container button{font-size:14px;box-sizing:border-box;border-radius:3px;border:none;background:transparent;line-height:1;padding:0 .75em;height:25px;text-transform:capitalize;text-align:center;vertical-align:middle;cursor:pointer;color:#606c72;font-weight:bold}.sp-container button:hover{opacity:.8}.sp-container input{font-size:12px;box-sizing:border-box}.sp-container button.sp-choose{background-color:#3cab3b;color:#fff;margin-left:5px}.sp-container button.sp-palette-toggle{width:100%;background-color:#f3f3f3;margin:0}.sp-color{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-hue{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-clear{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-top{margin-bottom:10px}.sp-val{border-radius:3px}.sp-sat{border-radius:3px}.sp-input-container{margin-top:-5px}.sp-input-container.sp-cf{height:25px}.sp-initial.sp-thumb.sp-cf{height:25px}.sp-button-container.sp-cf{height:25px}.sp-picker-container{position:relative;padding:10px;width:200px;padding-bottom:0}.sp-picker-container .sp-cf{margin-bottom:10px}.sp-palette-row-initial>span:first-child{cursor:pointer}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{padding:0px 5px !important;margin:0;width:100%;box-shadow:none !important;height:100% !important;background:transparent;color:#3a3a3a;border-radius:2px !important;border:1px solid #e0e0e0 !important;text-align:center;font-family:monospace;font-size:inherit !important}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container{position:relative;padding:10px;border-right:solid 1px #ccc}.sp-palette-only .sp-palette-container{border:0}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer;width:16px;height:16px;margin:3px;border:none;border-radius:3px}.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-palette .sp-thumb-el.sp-thumb-active{border-color:orange}.sp-palette span:hover{border-color:#000}.sp-palette span.sp-thumb-active{border-color:#000}.sp-palette .sp-thumb-inner{border-radius:3px;background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(${V});background-image:url(${N})}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(${C});background-image:url(${x})}.sp-thumb-el{position:relative;background-image:url(${h});background-image:url(${v})}.sp-initial{float:left}.sp-initial span{width:25px;height:25px;border:none;display:block;float:left;margin:0}.sp-initial .spe-thumb-el.sp-thumb-active{border-radius:0 5px 5px 0}.sp-initial .spe-thumb-el{border-radius:5px 0 0 5px}.sp-initial .sp-clear-display{background-position:center}.sp-button-container{float:right}.sp-palette-button-container{margin-top:10px}.sp-replacer{position:relative;overflow:hidden;cursor:pointer;display:inline-block;border-radius:3px;border:1px solid #aaa;color:#666;transition:border-color .3s;vertical-align:middle;width:3rem;height:1.5rem}.sp-replacer:hover{border:1px solid #666;color:#000}.sp-replacer.sp-active{border:1px solid #666;color:#000}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{position:absolute;font-size:10px;right:0;top:0;bottom:0;padding:0 2px;line-height:1.6rem;background-color:#fff}.sp-preview{position:relative;width:100%;height:100%;float:left;z-index:0;position:relative;background-image:url(${h});background-image:url(${v})}.sp-preview-inner{transition:background-color .2s;display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-preview-inner.sp-clear-display{display:none}.sp-alpha{position:relative;background-image:url(${h});background-image:url(${v})}.sp-alpha-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(${y});background-image:url(${w})}\n`,"",{version:3,sources:["webpack://./node_modules/spectrum-vanilla/dist/spectrum.min.css"],names:[],mappings:"AAAA,cAAc,iBAAiB,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KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,kBAAkB,2BAA2B,CAAC,0BAA0B,CAAC,wDAAsnB,CAAC,wDAAwe",sourcesContent:[".sp-container{position:absolute;top:0;left:0;display:inline-block;z-index:9999994;overflow:hidden;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;user-select:none}.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-container button{user-select:none}.sp-original-input-container{position:relative;display:inline-flex}.sp-original-input-container input{margin:0 !important}.sp-original-input-container .sp-add-on{width:40px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.sp-original-input-container .sp-add-on .sp-colorize{height:100%;width:100%;border-radius:inherit}input.spectrum.with-add-on{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.sp-colorize-container{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23ccc' fill-opacity='1'%3E%3Crect x='0' y='0' width='6' height='6' /%3E%3Crect x='6' y='6' width='6' height='6' /%3E%3C/svg%3E\")}.sp-container.sp-flat{position:relative}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20px !important}.sp-hue{position:absolute;top:0;right:0;bottom:0;width:12px;height:100%;left:initial !important;background:-moz-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-ms-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-o-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-webkit-gradient(linear, left top, left bottom, from(red), color-stop(0.17, #ff0), color-stop(0.33, lime), color-stop(0.5, cyan), color-stop(0.67, blue), color-stop(0.83, #f0f), to(red));background:-webkit-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:linear-gradient(to bottom, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%)}.sp-clear-enabled .sp-hue{top:15%;height:85%}.sp-clear-enabled .sp-clear{display:block;position:absolute;top:3px;right:0;bottom:0;cursor:pointer;left:initial;height:14px;width:14px}.sp-fill{padding-top:80%}.sp-sat{position:absolute;top:0;left:0;right:0;bottom:0;background-image:linear-gradient(to right, #fff, rgba(204,154,129,0))}.sp-val{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:4px;background-image:linear-gradient(to top, #000, rgba(204,154,129,0))}.sp-alpha-enabled .sp-top{margin-bottom:28px !important}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-3px;cursor:pointer;height:16px;border-radius:50%;width:16px;margin-right:5px;left:-2px;right:0;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;user-select:none}.sp-alpha{display:none;position:absolute;bottom:-18px;right:0;left:0;height:10px;user-select:none}.sp-alpha-inner{border-radius:4px}.sp-clear{display:none;user-select:none}.sp-clear.sp-clear-display{background-position:center}.sp-replacer{user-select:none}.sp-preview{user-select:none}.sp-dragger{user-select:none;border-radius:5px;height:10px;width:10px;border:1px solid #fff;cursor:pointer;position:absolute;top:0;left:0;margin-left:3px;margin-top:3px;box-shadow:0 0 2px 1px rgba(0,0,0,0.2)}.sp-slider{user-select:none;position:absolute;top:0;cursor:pointer;height:16px;border-radius:50%;width:16px;left:-2px;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;margin-top:8px}.sp-container.sp-dragging .sp-input{user-select:none}.sp-container.sp-input-disabled .sp-input-container{display:none}.sp-container.sp-buttons-disabled .sp-button-container{display:none}.sp-container.sp-palette-buttons-disabled .sp-palette-button-container{display:none}.sp-palette-only .sp-picker-container{display:none}.sp-palette-disabled .sp-palette-container{display:none}.sp-initial-disabled .sp-initial{display:none}.sp-1{height:17%}.sp-2{height:16%}.sp-3{height:17%}.sp-4{height:17%}.sp-5{height:16%}.sp-6{height:17%}.sp-hidden{display:none !important}.sp-cf{*zoom:1}.sp-cf:before{content:\"\";display:table}.sp-cf:after{content:\"\";display:table;clear:both}@media (max-device-width: 480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-container{display:inline-flex;background-color:#fff;padding:0;border-radius:4px;color:#000;box-shadow:0 0 0 1px rgba(99,114,130,0.16),0 8px 16px rgba(27,39,51,0.08);font-size:14px;box-sizing:border-box}.sp-container button{font-size:14px;box-sizing:border-box;border-radius:3px;border:none;background:transparent;line-height:1;padding:0 .75em;height:25px;text-transform:capitalize;text-align:center;vertical-align:middle;cursor:pointer;color:#606c72;font-weight:bold}.sp-container button:hover{opacity:.8}.sp-container input{font-size:12px;box-sizing:border-box}.sp-container button.sp-choose{background-color:#3cab3b;color:#fff;margin-left:5px}.sp-container button.sp-palette-toggle{width:100%;background-color:#f3f3f3;margin:0}.sp-color{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-hue{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-clear{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-top{margin-bottom:10px}.sp-val{border-radius:3px}.sp-sat{border-radius:3px}.sp-input-container{margin-top:-5px}.sp-input-container.sp-cf{height:25px}.sp-initial.sp-thumb.sp-cf{height:25px}.sp-button-container.sp-cf{height:25px}.sp-picker-container{position:relative;padding:10px;width:200px;padding-bottom:0}.sp-picker-container .sp-cf{margin-bottom:10px}.sp-palette-row-initial>span:first-child{cursor:pointer}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{padding:0px 5px !important;margin:0;width:100%;box-shadow:none !important;height:100% !important;background:transparent;color:#3a3a3a;border-radius:2px !important;border:1px solid #e0e0e0 !important;text-align:center;font-family:monospace;font-size:inherit !important}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container{position:relative;padding:10px;border-right:solid 1px #ccc}.sp-palette-only .sp-palette-container{border:0}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer;width:16px;height:16px;margin:3px;border:none;border-radius:3px}.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-palette .sp-thumb-el.sp-thumb-active{border-color:orange}.sp-palette span:hover{border-color:#000}.sp-palette span.sp-thumb-active{border-color:#000}.sp-palette .sp-thumb-inner{border-radius:3px;background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=\");background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z' fill='%23000'%3E%3C/path%3E%3C/svg%3E\")}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=\");background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E\")}.sp-thumb-el{position:relative;background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23ccc' fill-opacity='1'%3E%3Crect x='0' y='0' width='6' height='6' /%3E%3Crect x='6' y='6' width='6' height='6' /%3E%3C/svg%3E\")}.sp-initial{float:left}.sp-initial span{width:25px;height:25px;border:none;display:block;float:left;margin:0}.sp-initial .spe-thumb-el.sp-thumb-active{border-radius:0 5px 5px 0}.sp-initial .spe-thumb-el{border-radius:5px 0 0 5px}.sp-initial .sp-clear-display{background-position:center}.sp-button-container{float:right}.sp-palette-button-container{margin-top:10px}.sp-replacer{position:relative;overflow:hidden;cursor:pointer;display:inline-block;border-radius:3px;border:1px solid #aaa;color:#666;transition:border-color .3s;vertical-align:middle;width:3rem;height:1.5rem}.sp-replacer:hover{border:1px solid #666;color:#000}.sp-replacer.sp-active{border:1px solid #666;color:#000}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{position:absolute;font-size:10px;right:0;top:0;bottom:0;padding:0 2px;line-height:1.6rem;background-color:#fff}.sp-preview{position:relative;width:100%;height:100%;float:left;z-index:0;position:relative;background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23ccc' fill-opacity='1'%3E%3Crect x='0' y='0' width='6' height='6' /%3E%3Crect x='6' y='6' width='6' height='6' /%3E%3C/svg%3E\")}.sp-preview-inner{transition:background-color .2s;display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-preview-inner.sp-clear-display{display:none}.sp-alpha{position:relative;background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23ccc' fill-opacity='1'%3E%3Crect x='0' y='0' width='6' height='6' /%3E%3Crect x='6' y='6' width='6' height='6' /%3E%3C/svg%3E\")}.sp-alpha-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABe0lEQVQokYXSsUtcQRTF4d8Jj+VhHSxkEQuLsEUKK0nhTBFTmLSSUhBCMCAWsmgIwWrBLk0akfwLCaSQKBJmtrIIISwpRFKIhViETScphGMzysMtvOVwvpm5d0bGNCuGWAOPgYdl6S8wSDn9b+bUhDHEKWAdeAFMANg+l/TV9ofcz6cjMIbYBvaBMds7QCqZ58CmpBNgPuV0DvAAIMyFGugWtJr7eTv38xEwkPRPErY7QDeG2LqFkjrAgu0dSd/KDVqSNmxvAZ8lfbS9AHRuYemnLWkv5XRVBrQMbAI/gTXgEzAJtJuwBVS2L2OIle03QA/4Lmkl5XQBXEqqbFcAVYFDYChpFngiqWf7l6TXKaezMt2Zkhk24THwG+jZriX9AFZvUAyxLbRke2D75O5zPAO+ADXwEtizjaRHwDvbTyUtppwOmicCHAJvbXcl9YA1SQDjtseA97YPRz7ATcUQp2y/kjRdevsjaTfldNrMjcDGBjXA3T96L7yvrgFzP69+0Ao/HAAAAABJRU5ErkJggg==\");background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M12 20.016q3.281 0 5.648-2.367t2.367-5.648q0-2.672-1.734-4.922l-11.203 11.203q2.25 1.734 4.922 1.734zM3.984 12q0 2.672 1.734 4.922l11.203-11.203q-2.25-1.734-4.922-1.734-3.281 0-5.648 2.367t-2.367 5.648zM12 2.016q4.125 0 7.055 2.93t2.93 7.055-2.93 7.055-7.055 2.93-7.055-2.93-2.93-7.055 2.93-7.055 7.055-2.93z' fill='%23000'%3E%3C/path%3E%3C/svg%3E\")}\n"],sourceRoot:""}]);const E=b},2955:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>i});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l)()(a());r.push([e.id,".CodeMirror{height:450px !important;font-size:15px}.form-group label:not(.btn){margin-bottom:.5rem}","",{version:3,sources:["webpack://./src/vue/app/PageBuilderApp.vue"],names:[],mappings:"AACA,YACE,uBAAA,CACA,cAAA,CAGF,4BACE,mBAAA",sourcesContent:[".CodeMirror{height:450px !important;font-size:15px}.form-group label:not(.btn){margin-bottom:.5rem}"],sourceRoot:""}]);const i=r},4481:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>i});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l)()(a());r.push([e.id,".c-addon-instance[data-v-230a3e91]{position:relative}.c-addon-instance__toolbar[data-v-230a3e91]{position:absolute;top:.5rem;right:.5rem}","",{version:3,sources:["webpack://./src/vue/components/page-builder/Addon.vue"],names:[],mappings:"AACA,mCACE,iBAAA,CAEA,4CACE,iBAAA,CACA,SAAA,CACA,WAAA",sourcesContent:[".c-addon-instance{position:relative}.c-addon-instance__toolbar{position:absolute;top:.5rem;right:.5rem}"],sourceRoot:""}]);const i=r},3311:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>i});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l)()(a());r.push([e.id,".c-template-item[data-v-58abe7f2]{transition:all .3s}.c-template-item[data-v-58abe7f2]:hover{opacity:.85}.c-template-item__preview[data-v-58abe7f2]{width:100%;padding-top:50%;background:no-repeat center center;background-size:cover}","",{version:3,sources:["webpack://./src/vue/components/page-builder/templates/TemplateManager.vue"],names:[],mappings:"AACE,kCACE,kBAAA,CACA,wCACE,WAAA,CAGF,2CACE,UAAA,CACA,eAAA,CACA,kCAAA,CACA,qBAAA",sourcesContent:[".c-template-item{transition:all .3s}.c-template-item:hover{opacity:.85}.c-template-item__preview{width:100%;padding-top:50%;background:no-repeat center center;background-size:cover}"],sourceRoot:""}]);const i=r},4593:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>s});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l),i=o(7266),d=r()(a());d.i(i.Z),d.push([e.id,"\n.sp-add-on {\n width: 40px !important;\n}\n","",{version:3,sources:["webpack://./src/vue/components/page-builder/form/ColorInput.vue"],names:[],mappings:";AAmDE;IACE,sBAAsB;AACxB",sourcesContent:['\n @import "spectrum-vanilla/dist/spectrum.min.css";\n\n .sp-add-on {\n width: 40px !important;\n }\n'],sourceRoot:""}]);const s=d},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,l){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(n)for(var i=0;i0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=l),o&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=o):c[2]=o),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},1667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},7537:e=>{"use strict";e.exports=function(e){var t=e[1],o=e[3];if(!o)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),l="/*# ".concat(a," */");return[t].concat([l]).join("\n")}return[t].join("\n")}},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o}},2120:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var n=o(311);const a=["for"],l=["id","name","value","disabled"],r=["name","id","true-value","false-value","disabled","value","checked"],i={name:"UnicornSwitcher",model:{prop:"modelValue",event:"update:modelValue"},data:()=>({idName:"",currentValue:null}),props:{id:String,classes:String,modelValue:null,name:String,disabled:Boolean,trueValue:{default:"1"},falseValue:{default:"0"},size:{type:String,default:"default"},color:{type:String,default:"primary"},shape:{type:String,default:"square"}},created(){this.idName=this.id,this.idName||(this.name?this.idName="input-"+this.getDashedName():this.idName="input-switch-"+u.uid()),this.currentValue=this.modelValue},methods:{getDashedName(){return this.name.replace(/\[/g,"-").replace(/]/,"")},changed(e){this.currentValue=e.srcElement.checked?this.trueValue:this.falseValue},click(e){this.$emit("click",e)}},watch:{currentValue(){this.$emit("update:modelValue",this.currentValue)},modelValue(){this.currentValue=this.modelValue}}},d=(0,o(3744).Z)(i,[["render",function(e,t,o,i,d,s){return(0,n.openBlock)(),(0,n.createElementBlock)("label",{class:(0,n.normalizeClass)(["unicorn-switch",[o.size?"switch-"+o.size:""]]),for:d.idName},[(0,n.createElementVNode)("input",{id:d.idName+"-unchecked",name:o.name,type:"hidden",value:o.falseValue,disabled:o.disabled},null,8,l),(0,n.createTextVNode)(),(0,n.createElementVNode)("input",{type:"checkbox",name:o.name,id:d.idName,class:(0,n.normalizeClass)(["",o.classes]),"true-value":o.trueValue,"false-value":o.falseValue,disabled:o.disabled,value:o.trueValue,checked:d.currentValue==o.trueValue,onChange:t[0]||(t[0]=function(){return s.changed&&s.changed(...arguments)}),onClick:t[1]||(t[1]=function(){return s.click&&s.click(...arguments)})},null,42,r),(0,n.createTextVNode)(),(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["switch-slider",["slider-"+o.shape,o.color?"btn-"+o.color:"btn-default"]])},null,2)],10,a)}]])},8624:(e,t,o)=>{"use strict";o.d(t,{Z:()=>b});var n=o(311);const a={class:"mb-2"},l={class:"form-row row"},r={class:"col-3"},i=["onUpdate:modelValue"],d={class:"col-3"},s=["onUpdate:modelValue"],c={class:"col-3"},u=["onUpdate:modelValue"],p={class:"col-3"},m=["onUpdate:modelValue"];var f=o(4609),g=o(5304);const A={name:"box-offset",components:{RwdGroup:f.Z},props:{modelValue:Object},setup(e,t){let{emit:o}=t;const a=(0,n.reactive)({offsets:{xs:{top:"",right:"",bottom:"",left:""},md:{top:"",right:"",bottom:"",left:""},lg:{top:"",right:"",bottom:"",left:""}},currentSize:"desktop",lock:!1});function l(e){(0,g.Z)(e,((e,t)=>{const[o,n,l,r]=e.split(",");a.offsets[t]=a.offsets[t]||{},a.offsets[t].top=o||"",a.offsets[t].right=n||"",a.offsets[t].bottom=l||"",a.offsets[t].left=r||""}))}return(0,n.onMounted)((()=>{l(e.modelValue),(0,g.Z)(a.offsets,((e,t)=>{(0,g.Z)(e,((l,r)=>{(0,n.watch)((()=>a.offsets[t][r]),(t=>{a.lock&&(e.top=t,e.right=t,e.bottom=t,e.left=t);const n=function(){const e={};return(0,g.Z)(a.offsets,((t,o)=>{e[o]=`${t.top},${t.right},${t.bottom},${t.left}`})),e}();o("update:modelValue",n)}))}))}))})),(0,n.watch)((()=>e.value),(()=>{l(value)})),{...(0,n.toRefs)(a)}}},b=(0,o(3744).Z)(A,[["render",function(e,t,o,f,g,A){const b=(0,n.resolveComponent)("rwd-group");return(0,n.openBlock)(),(0,n.createBlock)(b,{"class-name":"c-box-offset"},(0,n.createSlots)({label:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",a,[(0,n.renderSlot)(e.$slots,"label"),(0,n.createTextVNode)(),(0,n.createElementVNode)("a",{href:"javascript://",onClick:t[0]||(t[0]=t=>e.lock=!e.lock)},[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["fa",[e.lock?"fa-lock":"fa-lock-open"]])},null,2)])])])),_:2},[(0,n.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",r,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"text",class:"form-control",placeholder:"Top","onUpdate:modelValue":o=>e.offsets[t].top=o},null,8,i),[[n.vModelText,e.offsets[t].top]])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",d,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"text",class:"form-control",placeholder:"Right","onUpdate:modelValue":o=>e.offsets[t].right=o},null,8,s),[[n.vModelText,e.offsets[t].right]])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",c,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"text",class:"form-control",placeholder:"Bottom","onUpdate:modelValue":o=>e.offsets[t].bottom=o},null,8,u),[[n.vModelText,e.offsets[t].bottom]])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",p,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"text",class:"form-control",placeholder:"Left","onUpdate:modelValue":o=>e.offsets[t].left=o},null,8,m),[[n.vModelText,e.offsets[t].left]])])])]))})))]),1024)}]])},4928:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var n=o(311);const a={class:"btn-group"},l=["id","name","value","checked"],r=["for","onChange"],i={name:"ButtonRadio",components:{},props:{modelValue:{default:""},color:{type:String,default:"secondary"},size:{type:String,default:""},options:Array},setup(e,t){let{emit:o}=t;const a=(0,n.ref)("br-"+u.uid()),l=(0,n.ref)(e.modelValue);return(0,n.watch)(l,(()=>{console.log(l),o("update:modelValue",l)})),{uid:a,value:l,updateValue:function(e){l.value=e.value,console.log(l)},buttonColor:function(t){return t.color?"btn-"+t.variant+"-"+t.color:"btn-outline-"+e.color}}}},d=(0,o(3744).Z)(i,[["render",function(e,t,o,i,d,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.options,(e=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio",class:"btn-check",id:i.uid+"__"+e.value,name:i.uid,value:e.value,checked:e.value===i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),autocomplete:"off"},null,8,l),[[n.vModelRadio,i.value]]),(0,n.createTextVNode)(),(0,n.createElementVNode)("label",{class:(0,n.normalizeClass)(["btn",[i.buttonColor(e),`btn-${o.size}`]]),for:i.uid+"__"+e.value,onChange:t=>i.updateValue(e)},(0,n.toDisplayString)(e.text||e.value),43,r)],64)))),256))])}]])},6882:(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});var n=o(311);const a=["id"];var l={"./src/dom.ts":(e,t,o)=>{function n(e,t){var o;return null===(o=e.parentNode)||void 0===o||o.insertBefore(t,e.nextSibling),e}function a(e,t){return e.replaceWith(t),t.appendChild(e),e}function l(e){const t=window.getComputedStyle(e);return e.getBoundingClientRect().width+parseFloat(t.marginLeft)+parseFloat(t.marginRight)}o.d(t,{insertAfter:()=>n,outerWidthWithMargin:()=>l,wrap:()=>a})},"./src/utils.ts":(e,t,o)=>{function n(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).createElement("div");return t.innerHTML=e,t.children[0]}function a(e,t){let o,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return function(){const a=this,l=arguments;n&&clearTimeout(o),!n&&o||(o=setTimeout((function(){o=null,e.apply(a,l)}),t))}}function l(e,t){const o=t.split(" ").filter((e=>""!==e));return""!==t&&o.length&&e.classList.add(...o),e}function r(e,t){const o=t.split(" ").filter((e=>""!==e));return""!==t&&o.length&&e.classList.remove(...o),e}function i(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!=o?e.classList.toggle(t,o):!0===o?l(e,t):r(e,t),e}function d(e,t){const o=new CustomEvent(t,{cancelable:!0,bubbles:!0,detail:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}});return e.dispatchEvent(o),o}function s(e,t,o,n){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};e.addEventListener(t,(e=>{e.target.closest(o)&&(e.data=Object.assign({},e.data||{},a),n(e))}),a)}function c(e,t){let o,n,a,l,r=e.style.position,i=e,d={};"static"===r&&(e.style.position="relative");let s=u(i),c=e.style.top,p=e.style.left;if(l=("absolute"===r||"fixed"===r)&&(c+p).indexOf("auto")>-1,l?(o=function(e){const{top:t,left:o}=e.getBoundingClientRect(),{marginTop:n,marginLeft:a}=getComputedStyle(e);return{top:t-parseInt(n,10),left:o-parseInt(a,10)}}(i),n=o.top,a=o.left):(n=parseFloat(c)||0,a=parseFloat(p)||0),null!=t.top&&(d.top=t.top-s.top+n),null!=t.left&&(d.left=t.left-s.left+a),"using"in t)t.using.call(e,d);else for(const e in d)i.style[e]=d[e]+"px"}function u(e){const t=e.getBoundingClientRect(),o=document.documentElement;return{top:t.top+window.pageYOffset-o.clientTop,left:t.left+window.pageXOffset-o.clientLeft}}o.d(t,{addClass:()=>l,emit:()=>d,eventDelegate:()=>s,getElementOffset:()=>u,html:()=>n,removeClass:()=>r,setElementOffset:()=>c,throttle:()=>a,toggleClass:()=>i})},"./node_modules/tinycolor2/esm/tinycolor.js":(e,t,o)=>{o.d(t,{default:()=>l});const n=/^\s+/,a=/\s+$/;function l(e,t){if(t=t||{},(e=e||"")instanceof l)return e;if(!(this instanceof l))return new l(e,t);var o=function(e){var t,o,l,r={r:0,g:0,b:0},i=1,d=null,s=null,c=null,u=!1,p=!1;return"string"==typeof e&&(e=function(e){e=e.replace(n,"").replace(a,"").toLowerCase();var t,o=!1;if(C[e])e=C[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=O.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=O.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=O.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=O.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=O.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=O.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=O.hex8.exec(e))?{r:k(t[1]),g:k(t[2]),b:k(t[3]),a:S(t[4]),format:o?"name":"hex8"}:(t=O.hex6.exec(e))?{r:k(t[1]),g:k(t[2]),b:k(t[3]),format:o?"name":"hex"}:(t=O.hex4.exec(e))?{r:k(t[1]+""+t[1]),g:k(t[2]+""+t[2]),b:k(t[3]+""+t[3]),a:S(t[4]+""+t[4]),format:o?"name":"hex8"}:!!(t=O.hex3.exec(e))&&{r:k(t[1]+""+t[1]),g:k(t[2]+""+t[2]),b:k(t[3]+""+t[3]),format:o?"name":"hex"}}(e)),"object"==typeof e&&(z(e.r)&&z(e.g)&&z(e.b)?(t=e.r,o=e.g,l=e.b,r={r:255*w(t,255),g:255*w(o,255),b:255*w(l,255)},u=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):z(e.h)&&z(e.s)&&z(e.v)?(d=T(e.s),s=T(e.v),r=function(e,t,o){e=6*w(e,360),t=w(t,100),o=w(o,100);var n=Math.floor(e),a=e-n,l=o*(1-t),r=o*(1-a*t),i=o*(1-(1-a)*t),d=n%6;return{r:255*[o,r,l,l,i,o][d],g:255*[i,o,o,r,l,l][d],b:255*[l,l,i,o,o,r][d]}}(e.h,d,s),u=!0,p="hsv"):z(e.h)&&z(e.s)&&z(e.l)&&(d=T(e.s),c=T(e.l),r=function(e,t,o){var n,a,l;function r(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}if(e=w(e,360),t=w(t,100),o=w(o,100),0===t)n=a=l=o;else{var i=o<.5?o*(1+t):o+t-o*t,d=2*o-i;n=r(d,i,e+1/3),a=r(d,i,e),l=r(d,i,e-1/3)}return{r:255*n,g:255*a,b:255*l}}(e.h,d,c),u=!0,p="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=y(i),{ok:u,format:e.format||p,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}(e);this._originalInput=e,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||o.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function r(e,t,o){e=w(e,255),t=w(t,255),o=w(o,255);var n,a,l=Math.max(e,t,o),r=Math.min(e,t,o),i=(l+r)/2;if(l==r)n=a=0;else{var d=l-r;switch(a=i>.5?d/(2-l-r):d/(l+r),l){case e:n=(t-o)/d+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,r.push(l(n));return r}function N(e,t){t=t||6;for(var o=l(e).toHsv(),n=o.h,a=o.s,r=o.v,i=[],d=1/t;t--;)i.push(l({h:n,s:a,v:r})),r=(r+d)%1;return i}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,o,n=this.toRgb();return e=n.r/255,t=n.g/255,o=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},setAlpha:function(e){return this._a=y(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),o=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+o+"%, "+n+"%)":"hsva("+t+", "+o+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),o=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+o+"%, "+n+"%)":"hsla("+t+", "+o+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return d(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,o,n,a){var l=[B(Math.round(e).toString(16)),B(Math.round(t).toString(16)),B(Math.round(o).toString(16)),B(_(n))];return a&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*w(this._r,255))+"%",g:Math.round(100*w(this._g,255))+"%",b:Math.round(100*w(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*w(this._r,255))+"%, "+Math.round(100*w(this._g,255))+"%, "+Math.round(100*w(this._b,255))+"%)":"rgba("+Math.round(100*w(this._r,255))+"%, "+Math.round(100*w(this._g,255))+"%, "+Math.round(100*w(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),o=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=l(e);o="#"+s(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+o+")"},toString:function(e){var t=!!e;e=e||this._format;var o=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(o=this.toRgbString()),"prgb"===e&&(o=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(o=this.toHexString()),"hex3"===e&&(o=this.toHexString(!0)),"hex4"===e&&(o=this.toHex8String(!0)),"hex8"===e&&(o=this.toHex8String()),"name"===e&&(o=this.toName()),"hsl"===e&&(o=this.toHslString()),"hsv"===e&&(o=this.toHsvString()),o||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return l(this.toString())},_applyModification:function(e,t){var o=e.apply(null,[this].concat([].slice.call(t)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(f,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(u,arguments)},greyscale:function(){return this._applyModification(p,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(v,arguments)},triad:function(){return this._applyCombination(h,[3])},tetrad:function(){return this._applyCombination(h,[4])}},l.fromRatio=function(e,t){if("object"==typeof e){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]="a"===n?e[n]:T(e[n]));e=o}return l(e,t)},l.equals=function(e,t){return!(!e||!t)&&l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},l.mix=function(e,t,o){o=0===o?0:o||50;var n=l(e).toRgb(),a=l(t).toRgb(),r=o/100;return l({r:(a.r-n.r)*r+n.r,g:(a.g-n.g)*r+n.g,b:(a.b-n.b)*r+n.b,a:(a.a-n.a)*r+n.a})},l.readability=function(e,t){var o=l(e),n=l(t);return(Math.max(o.getLuminance(),n.getLuminance())+.05)/(Math.min(o.getLuminance(),n.getLuminance())+.05)},l.isReadable=function(e,t,o){var n,a,r,i,d,s=l.readability(e,t);switch(a=!1,(r=o,"AA"!==(i=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(d=(r.size||"small").toLowerCase())&&"large"!==d&&(d="small"),n={level:i,size:d}).level+n.size){case"AAsmall":case"AAAlarge":a=s>=4.5;break;case"AAlarge":a=s>=3;break;case"AAAsmall":a=s>=7}return a},l.mostReadable=function(e,t,o){var n,a,r,i,d=null,s=0;a=(o=o||{}).includeFallbackColors,r=o.level,i=o.size;for(var c=0;cs&&(s=n,d=l(t[c]));return l.isReadable(e,d,{level:r,size:i})||!a?d:(o.includeFallbackColors=!1,l.mostReadable(e,["#fff","#000"],o))};var C=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=l.hexNames=function(e){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[e[o]]=o);return t}(C);function y(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function w(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var o=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function E(e){return Math.min(1,Math.max(0,e))}function k(e){return parseInt(e,16)}function B(e){return 1==e.length?"0"+e:""+e}function T(e){return e<=1&&(e=100*e+"%"),e}function _(e){return Math.round(255*parseFloat(e)).toString(16)}function S(e){return k(e)/255}var M,U,D,O=(U="[\\s|\\(]+("+(M="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",D="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",{CSS_UNIT:new RegExp(M),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+D),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function z(e){return!!O.CSS_UNIT.exec(e)}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return l[e](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var d={};(()=>{i.d(d,{default:()=>f});var e=i("./node_modules/tinycolor2/esm/tinycolor.js"),t=i("./src/dom.ts"),o=i("./src/utils.ts");const n={beforeShow:u,move:u,change:u,show:u,hide:u,color:"",type:"component",showInput:!1,allowEmpty:!0,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!0,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:"",appendTo:"body",maxSelectionSize:8,locale:"en",cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:"name",containerClassName:"",replacerClassName:"",showAlpha:!0,theme:"sp-light",palette:[["#000000","#444444","#5b5b5b","#999999","#bcbcbc","#eeeeee","#f3f6f4","#ffffff"],["#f44336","#744700","#ce7e00","#8fce00","#2986cc","#16537e","#6a329f","#c90076"],["#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc"],["#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd"],["#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0"],["#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79"],["#990000","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47"],["#660000","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]],selectionPalette:[],disabled:!1,offset:null},a=[],l=(0,o.html)(["
","
","
","
"].join("")),r=["
","
","
","
","","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","","
","
","
","","","
","
","
"].join("");function s(t,o,n,a){const l=[];for(let n=0;n')}else l.push('')}return"
"+l.join("")+"
"}function c(i,d){let c=function(e,t){if((e=Object.assign({},e)).locale=e.locale||window.navigator.language,"string"==typeof e.locale){if(e.locale){let t=e.locale.split("-").map((e=>e.toLowerCase()));t[0]===t[1]&&(t=[t[0]]),e.locale=t.join("-")}"en"!==e.locale&&f.localization[e.locale]&&(e=Object.assign({},e,f.localization[e.locale]))}else e=Object.assign({},e,e.locale);const o=Object.assign({},n,t.dataset,e);return o.callbacks={move:p(o.move,t),change:p(o.change,t),show:p(o.show,t),hide:p(o.hide,t),beforeShow:p(o.beforeShow,t)},o}(d,i),u=c.type,g="flat"===u,A=c.showSelectionPalette,b=c.localStorageKey,h=c.theme,v=c.callbacks,V=(0,o.throttle)(Ye,10),N=!1,C=!1,x=0,y=0,w=0,E=0,k=0,B=0,T=0,_=0,S=0,M=0,U=0,D=1,O=[],z=[],R={},Z=c.selectionPalette.slice(0),I=c.maxSelectionSize,L="sp-dragging",j=!1,P=null;const q=i.ownerDocument,F=(0,o.html)(r,q);F.classList.add(h),q.body.appendChild(F),q.body;let Y,Q,W,$,H=i,G=!1,J=F.querySelector(".sp-picker-container"),K=F.querySelector(".sp-color"),X=F.querySelector(".sp-dragger"),ee=F.querySelector(".sp-hue"),te=F.querySelector(".sp-slider"),oe=F.querySelector(".sp-alpha-inner"),ne=F.querySelector(".sp-alpha"),ae=F.querySelector(".sp-alpha-handle"),le=F.querySelector(".sp-input"),re=F.querySelector(".sp-palette"),ie=F.querySelector(".sp-initial"),de=F.querySelector(".sp-cancel"),se=F.querySelector(".sp-clear"),ce=F.querySelector(".sp-choose"),ue=F.querySelector(".sp-palette-toggle"),pe="INPUT"===H.nodeName,me=pe&&"color"===H.getAttribute("type"),fe=pe&&("color"===u||me),ge=fe?((0,o.addClass)(l,h),(0,o.addClass)(l,c.replacerClassName),l):null,Ae=fe?ge:H,be=null==ge?void 0:ge.querySelector(".sp-preview-inner"),he=c.color||pe&&H.value,ve="",Ve=c.preferredFormat,Ne=!c.showButtons||c.clickoutFiresChange,Ce=!he,xe=c.allowEmpty;const ye=H.getAttribute("id")||"";function we(){if(c.showPaletteOnly&&(c.showPalette=!0),ue&&(ue.textContent=c.showPaletteOnly?c.togglePaletteMoreText:c.togglePaletteLessText),c.palette){O=c.palette.slice(0),z=Array.isArray(O[0])?O:[O],R={};for(let t=0;t1){delete e[b];for(const e of t)Be(e)}}catch(e){}try{Z=window.localStorage[b].split(";")}catch(e){}}}function Be(t){if(A){const o=(0,e.default)(t).toRgbString();if(!R[o]&&!Z.includes(o))for(Z.push(o);Z.length>I;)Z.shift();if(b)try{window.localStorage[b]=Z.join(";")}catch(e){}}}function Te(){const t=Le(),o=z.map(((e,o)=>s(e,t,"sp-palette-row sp-palette-row-"+o,c)));ke(),Z&&o.push(s(function(){var t=[];if(c.showPalette)for(var o=0;o1&&void 0!==arguments[1]&&arguments[1];var n,a;e.default.equals(t,Le())?Pe():(t&&void 0!==t||!xe?(Ce=!1,a=(n=(0,e.default)(t)).toHsv(),S=a.h%360/360,M=a.s,U=a.v,D=a.a):Ce=!0,Pe(),n&&n.isValid()&&!o&&(Ve=c.preferredFormat||n.getFormat()))}function Le(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return xe&&Ce?"":e.default.fromRatio({h:S,s:M,v:U,a:Math.round(1e3*D)/1e3},{format:t.format||Ve})}function je(){Pe();const e=(0,o.emit)(H,"move",{color:Le()});v.move(e)}function Pe(){le.classList.remove("sp-validation-error"),qe();const t=e.default.fromRatio({h:S,s:1,v:1});K.style.backgroundColor=t.toHexString();let o=Ve;D<1&&(0!==D||"name"!==o)&&("hex"!==o&&"hex3"!==o&&"hex6"!==o&&"name"!==o||(o="rgb"));let n=Le({format:o}),a="";if(be&&(be.classList.remove("sp-clear-display"),be.style.backgroundColor="transparent"),""===n)null==be||be.classList.add("sp-clear-display");else{const t=n.toHexString(),l=n.toRgbString();if(be&&(1===n.getAlpha()?be.style.backgroundColor=l:(be.style.backgroundColor="transparent",be.style.filter=n.toFilter())),c.showAlpha){const o=n.toRgb();o.a=0;const a=(0,e.default)(o).toRgbString();oe.style.background=`linear-gradient(to right, ${a}, ${t})`}a=n.toString(o)}if(c.showInput&&(le.value=a),H.value=a,"text"==c.type||"component"==c.type){const e=n;if(e&&Q){const t=e.isLight()||e.getAlpha()<.4?"black":"white";Q.style.backgroundColor=e.toRgbString(),Q.style.color=t}else Q&&(Q.style.backgroundColor=$,Q.style.color=W)}c.showPalette&&Te(),_e()}function qe(){if(xe&&Ce)ae.style.display="none",te.style.display="none",X.style.display="none";else{ae.style.display="block",te.style.display="block",X.style.display="block";let e=M*x,t=y-U*y;e=Math.max(-w,Math.min(x-w,e-w)),t=Math.max(-w,Math.min(y-w,t-w)),X.style.top=t+"px",X.style.left=e+"px";const o=D*B;ae.style.left=o-T/2+"px";const n=S*E;te.style.top=n-_+"px"}}function Fe(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Le(),a="",l=!e.default.equals(n,ve);if(n&&(n.toString(Ve),Be(n)),t&&l){j=!0;const e=(0,o.emit)(H,"change",{color:n});v.change(e)}}function Ye(){N&&(x=K.getBoundingClientRect().width,y=K.getBoundingClientRect().height,w=X.getBoundingClientRect().height,k=ee.getBoundingClientRect().width,E=ee.getBoundingClientRect().height,_=te.getBoundingClientRect().height,B=ne.getBoundingClientRect().width,T=ae.getBoundingClientRect().width,g||(F.style.position="absolute",c.offset?(0,o.setElementOffset)(F,c.offset):(0,o.setElementOffset)(F,function(e,t){const n=e.offsetWidth,a=e.offsetHeight,l=t.offsetHeight,r=e.ownerDocument.documentElement,i=r.clientWidth+window.pageXOffset,d=r.clientHeight+window.pageYOffset,s=(0,o.getElementOffset)(t);let c=s.left,u=s.top;return u+=l,c-=Math.min(c,c+n>i&&i>n?Math.abs(c+n-i):0),u-=Math.min(u,u+a>d&&d>a?Math.abs(a+l-0):0),{top:u,left:c}}(F,Ae))),qe(),c.showPalette&&Te(),(0,o.emit)(H,"reflow"))}function Qe(){Re(),G=!0,H.disabled=!0,Ae.classList.add("sp-disabled")}void 0!==ye&&ye.length>0&&document.querySelectorAll(`label[for="${ye}"]`).forEach((e=>{e.addEventListener("click",(function(e){return e.preventDefault(),De(),!1}))})),function(){var n;we();const a=window.getComputedStyle(H);if(Y=(0,o.html)(''),["margin"].forEach((function(e){Y.style[e]=a[e]||null})),"block"===a.display&&(Y.style.display="flex"),fe)(0,t.insertAfter)(H,ge),H.style.display="none";else if("text"===u)(0,o.addClass)(Y,"sp-colorize-container"),(0,o.addClass)(H,"spectrum sp-colorize"),(0,t.wrap)(H,Y);else if("component"===u){(0,o.addClass)(H,"spectrum"),(0,t.wrap)(H,Y);const e=(0,o.html)(["
","
","
"].join(""));e.style.width=H.offsetHeight+"px",e.style.borderRadius=a.borderRadius,e.style.border=a.border,H.classList.add("with-add-on"),H.before(e)}if(Q=null===(n=H.parentNode)||void 0===n?void 0:n.querySelector(".sp-colorize"),W=(null==Q?void 0:Q.style.color)||"",$=(null==Q?void 0:Q.style.backgroundColor)||"",xe||(se.style.display="none"),g)H.after(F),H.style.display="none";else{let e="parent"===c.appendTo?H.parentElement:c.appendTo;e||(e=document.body),"string"!=typeof e&&e.append(F)}function l(e){var t,o;if(e.data&&e.data.ignore){const o=e.target.closest(".sp-thumb-el");Ie((null===(t=null==o?void 0:o.dataset)||void 0===t?void 0:t.color)||""),je()}else{const t=e.target.closest(".sp-thumb-el");Ie((null===(o=null==t?void 0:t.dataset)||void 0===o?void 0:o.color)||""),je(),c.hideAfterPaletteSelect?(Fe(!0),Re()):Fe()}return!1}ke(),null==Ae||Ae.addEventListener("click",Ee),null==Ae||Ae.addEventListener("touchstart",Ee),(H.matches(":disabled")||c.disabled)&&Qe(),F.addEventListener("click",(e=>e.stopPropagation())),[le,H].forEach((function(e){"value"in e&&(e.addEventListener("change",(()=>{Ue(e.value)})),e.addEventListener("paste",(()=>{setTimeout((()=>{Ue(e.value)}),1)})),e.addEventListener("keydown",(t=>{13===t.keyCode&&(Ue(e.value),e===H&&Re())})))})),de.textContent=c.cancelText,de.addEventListener("click",(function(e){e.stopPropagation(),e.preventDefault(),Ze(),Re()})),se.setAttribute("title",c.clearText),se.addEventListener("click",(function(e){e.stopPropagation(),e.preventDefault(),Ce=!0,je(),g&&Fe(!0)})),ce.textContent=c.chooseText,ce.addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault(),le.classList.contains("sp-validation-error")||(Fe(!0),Re())})),ue.textContent=c.showPaletteOnly?c.togglePaletteMoreText:c.togglePaletteLessText,ue.addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault(),c.showPaletteOnly=!c.showPaletteOnly,c.showPaletteOnly||g||(F.style.left="-="+((0,t.outerWidthWithMargin)(J)+5)),we()})),m(ne,(function(e,t,o){D=e/B,Ce=!1,o.shiftKey&&(D=Math.round(10*D)/10),je()}),Se,Me),m(ee,(function(e,t){S=t/E,Ce=!1,c.showAlpha||(D=1),je()}),Se,Me),m(K,(function(e,t,o){if(o.shiftKey){if(!P){const o=M*x,n=y-U*y,a=Math.abs(e-o)>Math.abs(t-n);P=a?"x":"y"}}else P=null;(!P||"x"===P)&&(M=e/x),(!P||"y"===P)&&(U=(y-t)/y),Ce=!1,c.showAlpha||(D=1),je()}),Se,Me),he?(Ie(he),Pe(),Ve=(0,e.default)(he).getFormat()||c.preferredFormat,Be(he)):""===he?(Ie(he),Pe()):Pe(),g&&De();const r=["click","touchstart"];for(const e of r)(0,o.eventDelegate)(re,e,".sp-thumb-el",l),(0,o.eventDelegate)(ie,e,".sp-thumb-el:nth-child(1)",l,{ignore:!0})}();let We={id:0,show:De,hide:Re,toggle:function(){N?Re():De()},reflow:Ye,option:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return void 0===e?Object.assign({},c):void 0===t?c[e]:(c[e]=t,"preferredFormat"===e&&(Ve=c.preferredFormat),void we())},enable:function(){G=!1,H.disabled=!1,Ae.classList.remove("sp-disabled")},disable:Qe,offset:function(e){c.offset=e,Ye()},set:function(e){Ie(e),Fe()},get:Le,destroy:function(){delete H.style.display,H.classList.remove("spectrum","with-add-on","sp-colorize"),Ae.removeEventListener("click",Ee),Ae.removeEventListener("touchstart",Ee),F.remove(),null==ge||ge.remove(),Q&&(Q.style.backgroundColor=$,Q.style.color=W);const e=H.closest(".sp-original-input-container");e&&(e.after(H),e.remove()),a[We.id]=null},container:F};return We.id=a.push(We)-1,We}function u(){}function p(e,t){const o=Array.prototype.slice,n=o.call(arguments,2);return function(){return e.apply(t,n.concat(o.call(arguments)))}}function m(e,t,n,a){t=t||u,n=n||u,a=a||u;const l=document;let r=!1,i={},d=0,s=0;const c="ontouchstart"in window,p={};function m(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1}function f(o){if(r){const n="touches"in o&&o.touches[0],a=n&&n.pageX||o.pageX,l=n&&n.pageY||o.pageY,r=Math.max(0,Math.min(a-i.left,s)),u=Math.max(0,Math.min(l-i.top,d));c&&m(o),t.apply(e,[r,u,o])}}function g(t){if(!(t.which?3==t.which:2===t.button)&&!r&&!1!==n.apply(e,arguments)){r=!0,d=e.getBoundingClientRect().height,s=e.getBoundingClientRect().width,i=(0,o.getElementOffset)(e);for(const e in p)l.addEventListener(e,p[e]);l.body.classList.add("sp-dragging"),f(t),m(t)}}function A(){if(r){for(const e in p)l.removeEventListener(e,p[e]);l.body.classList.remove("sp-dragging"),setTimeout((function(){a.apply(e,arguments)}),0)}r=!1}p.selectstart=m,p.dragstart=m,p.touchmove=f,p.mousemove=f,p.touchend=A,p.mouseup=A,e.addEventListener("touchstart",g),e.addEventListener("mousedown",g)}class f{static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=this.wrap(e);if(!o){let t="Unable to find element";throw"string"==typeof e&&(t+=" - Selector: "+e),Error(t)}return new this(o,t)}static createIfExists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=this.wrap(e);return o?new this(o,t):null}static getInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=this.wrap(e);return o.__spectrum=o.__spectrum||this.createIfExists(o,t)}static hasInstance(e){return void 0!==this.wrap(e).__spectrum}static createMultiple(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=[];return this.wrapList(e).forEach((e=>{o.push(this.create(e,t))})),o}static getInstanceMultiple(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=[];return this.wrapList(e).forEach((e=>{o.push(this.getInstance(e,t))})),o}static wrap(e){return"string"==typeof e?document.querySelector(e):e.jquery?e[0]:e}static wrapList(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)):e.jquery?e.toArray():Array.from(e)}static locale(e,t){return this.localization[e]=t,this}static registerJQuery(e){A(e)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventListeners={},this.spectrum=c(e,t),this.ele=e,this.options=t}get id(){return this.spectrum.id}get container(){return this.ele.__spectrum?this.spectrum.container:this.ele}show(){return this.spectrum.show(),this}hide(){return this.spectrum.hide(),this}toggle(){return this.spectrum.toggle(),this}reflow(){return this.spectrum.reflow(),this}option(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.spectrum.option(e,t)}enable(){return this.spectrum.enable(),this}disable(){return this.spectrum.disable(),this}offset(e){return this.spectrum.offset(e),this}set(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.spectrum.set(e,t),this}get(){return this.spectrum.get()}destroy(){return this.destroyInnerObject(),delete this.ele.__spectrum,this}rebuild(e){return this.destroyInnerObject(),e&&(this.options=Object.assign({},this.options,e)),this.spectrum=c(this.ele,this.options),this}destroyInnerObject(){this.spectrum.destroy(),this.off()}listeners(e){return this.eventListeners[e]||[]}on(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this.ele.addEventListener(e,t,o),this.eventListeners[e]=this.eventListeners[e]||[],this.eventListeners[e].push(t),()=>{this.off(e,t)}}once(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const n=this.on(e,(e=>{t(e),n()}),o);return n}off(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!e||this.eventListeners[e])if(e)if(t)this.eventListeners[e]=this.eventListeners[e].filter((e=>e===t)),this.ele.removeEventListener(e,t);else{for(const t of this.eventListeners[e])this.ele.removeEventListener(e,t);this.eventListeners[e]=[]}else this.eventListeners={}}}f.defaultOptions=n,f.draggable=m,f.localization={},f.palette=[];const g=window.jQuery;function A(e){e.fn.spectrum=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;for(var o=arguments.length,n=new Array(o>1?o-1:0),a=1;a{s.getInstance(l.value,e.options||{})})),(0,n.onBeforeUnmount)((()=>{s.getInstance(l.value).destroy()})),(0,n.watch)(a,(e=>{o("update:modelValue",e)})),{value:a,input:l}}};o(7040);const u=(0,o(3744).Z)(c,[["render",function(e,t,o,l,r,i){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("input",{ref:"input",type:"text",id:o.id,class:(0,n.normalizeClass)(["form-control flex-grow-1",o.inputClass]),"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e)},null,10,a)),[[n.vModelText,l.value,void 0,{lazy:!0}]])}]])},4609:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});var n=o(311);const a={class:""},l=[(0,n.createElementVNode)("span",{class:"fa fa-fw fa-desktop"},null,-1)],r=[(0,n.createElementVNode)("span",{class:"fa fa-fw fa-tablet-screen-button"},null,-1)],i=[(0,n.createElementVNode)("span",{class:"fa fa-fw fa-mobile-screen-button"},null,-1)],d={name:"RwdGroup",props:{name:String,className:{default:"c-rwd-group",type:String}},setup(e){const t=(0,n.ref)("");return(0,n.onMounted)((()=>{setTimeout((()=>{t.value="lg"}),150)})),{currentSize:t,getClassName:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.className+t}}}},s=(0,o(3744).Z)(d,[["render",function(e,t,o,d,s,c){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["form-group mb-3",d.getClassName()])},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["d-flex",d.getClassName("__title")])},[(0,n.createElementVNode)("div",a,[(0,n.renderSlot)(e.$slots,"label")]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["ml-auto ms-auto",d.getClassName("__rwd-control")])},[(0,n.createElementVNode)("a",{href:"javascript://",class:(0,n.normalizeClass)(["lg"===d.currentSize?"active":"text-dark"]),onClick:t[0]||(t[0]=e=>d.currentSize="lg")},l,2),(0,n.createTextVNode)(),(0,n.createElementVNode)("a",{href:"javascript://",class:(0,n.normalizeClass)(["md"===d.currentSize?"active":"text-dark"]),onClick:t[1]||(t[1]=e=>d.currentSize="md")},r,2),(0,n.createTextVNode)(),(0,n.createElementVNode)("a",{href:"javascript://",class:(0,n.normalizeClass)(["xs"===d.currentSize?"active":"text-dark"]),onClick:t[2]||(t[2]=e=>d.currentSize="xs")},i,2)],2)],2),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(d.getClassName("__inputs"))},["lg"===d.currentSize?(0,n.renderSlot)(e.$slots,"lg",{key:0}):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(),"md"===d.currentSize?(0,n.renderSlot)(e.$slots,"md",{key:1}):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(),"xs"===d.currentSize?(0,n.renderSlot)(e.$slots,"xs",{key:2}):(0,n.createCommentVNode)("",!0)],2),(0,n.createTextVNode)(),(0,n.renderSlot)(e.$slots,"description")],2)}]])},9491:(e,t,o)=>{"use strict";o.d(t,{Z:()=>x});var n=o(311);const a={ref:"el",class:"c-single-image-uploader"},l={key:0,class:"form-group mb-3 c-single-image-preview text-center"},r=["src"],i={key:1,class:"c-single-image-placeholder text-center p-4 mb-3 border rounded"},d=[(0,n.createElementVNode)("small",{class:"text-muted"},"Drag Image Here",-1)],s={key:2,class:"form-group mb-3 d-flex align-items-center justify-content-center",style:{"min-height":"450px"}},c=[(0,n.createElementVNode)("div",{class:"spinner-border"},null,-1)],p={class:"form-group mb-3"},m={class:"input-group"},f=["id","disabled"],g=["disabled"],A=(0,n.createElementVNode)("i",{class:"fa fa-upload"},null,-1),b=["disabled"],h=[(0,n.createElementVNode)("span",{class:"fa fa-paste"},null,-1)],v=["disabled"],V=[(0,n.createElementVNode)("span",{class:"fa fa-times"},null,-1)],N=(0,n.createElementVNode)("small",{class:"form-text text-muted"},"\n Paste image url/file or drag and upload image here.\n ",-1),C={name:"single-image",props:{modelValue:{type:String,default:""},id:String,accepted:{type:Array,default:()=>["image/jpeg","image/png","image/gif","image/webp","image/svg","image/svg+xml"]}},setup(e,t){let{emit:o}=t;const a=(0,n.reactive)({url:"",loadingImage:u.route("loading_image"),uploading:!1}),l=(0,n.ref)(null);function r(t){if(!function(t){return!(e.accepted.indexOf(t.type)<0)||(alert("Invalid file format"),!1)}(t))return;const o=new FormData;return o.append("file",t),a.uploading=!0,u.$http.post("@file_upload",o).then((e=>{let t=e.data.data.url;0===t.indexOf(u.uri("root"))&&(t=t.substr(u.uri("root").length)),a.url=t})).catch((e=>{console.error(e.message),alert(e.message)})).finally((()=>{a.uploading=!1}))}a.url=e.modelValue,(0,n.onMounted)((()=>{l.value.addEventListener("dragover",(e=>{e.stopPropagation(),e.preventDefault(),l.value.classList.add("c-single-image-uploader--hover")})),l.value.addEventListener("dragleave",(e=>{e.stopPropagation(),e.preventDefault(),l.value.classList.remove("c-single-image-uploader--hover")})),l.value.addEventListener("drop",(e=>{e.stopPropagation(),e.preventDefault(),l.value.classList.remove("c-single-image-uploader--hover"),r((e.target.files||e.dataTransfer.files)[0])}))})),(0,n.watch)((()=>e.value),(()=>{a.url=e.modelValue})),(0,n.watch)((()=>a.url),(()=>{o("update:modelValue",a.url)}));const i=(0,n.computed)((()=>{let e=a.url;return e&&0!==e.indexOf("http")&&0!==e.indexOf("/")?u.uri("root")+"/"+e:e}));return{el:l,previewUrl:i,...(0,n.toRefs)(a),clearUrl:function(){a.url=""},chooseFile:function(){const t=document.createElement("input");t.type="file",t.accept=e.accepted.join(","),t.style.display="none",t.addEventListener("change",(e=>{r((e.target.files||e.dataTransfer.files)[0]),t.parentNode.removeChild(t)})),l.value.appendChild(t),t.click()},pasteFromButton:function(){navigator.clipboard.read().then((e=>{const t=e[0].types[1];e[0].getType(t).then((e=>{console.log(e),r(new File([e],"image.png",{type:e.type}))})).catch((e=>{console.warn("Unable to paste this data"),console.warn(e)}))}))},pasteFile:function(e){if(e.clipboardData.items[0]&&"file"===e.clipboardData.items[0].kind){e.preventDefault(),e.stopPropagation();const t=e.clipboardData.items[0];if(!t)return void console.error("No paste item");r(t.getAsFile())}}}}},x=(0,o(3744).Z)(C,[["render",function(e,t,o,u,C,x){const y=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[""===e.url||e.uploading?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",l,[(0,n.createElementVNode)("img",{src:u.previewUrl,alt:"Image",class:"img-fluid rounded",style:{"max-height":"450px"}},null,8,r)])),(0,n.createTextVNode)(),""!==e.url||e.uploading?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",i,d)),(0,n.createTextVNode)(),e.uploading?((0,n.openBlock)(),(0,n.createElementBlock)("div",s,c)):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("div",m,[(0,n.withDirectives)((0,n.createElementVNode)("input",{id:o.id,type:"text","onUpdate:modelValue":t[0]||(t[0]=t=>e.url=t),class:"form-control",disabled:e.uploading,onPaste:t[1]||(t[1]=function(){return u.pasteFile&&u.pasteFile(...arguments)})},null,40,f),[[n.vModelText,e.url]]),(0,n.createTextVNode)(),(0,n.createElementVNode)("button",{type:"button",class:"btn btn-primary",onClick:t[2]||(t[2]=e=>u.chooseFile()),disabled:e.uploading},[A,(0,n.createTextVNode)("\n Upload\n ")],8,g),(0,n.createTextVNode)(),(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("button",{type:"button",class:"btn btn-primary",onClick:t[3]||(t[3]=function(){return u.pasteFromButton&&u.pasteFromButton(...arguments)}),disabled:e.uploading,title:"Paste"},h,8,b)),[[y]]),(0,n.createTextVNode)(),""!==e.url?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:0,type:"button",class:"btn btn-primary",onClick:t[4]||(t[4]=(0,n.withModifiers)((function(){return u.clearUrl&&u.clearUrl(...arguments)}),["stop"])),disabled:e.uploading},V,8,v)):(0,n.createCommentVNode)("",!0)]),(0,n.createTextVNode)(),N])],512)}]])},8575:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(311);const a={class:"d-flex align-items-center"},l=["id","step"];o.e(540).then(o.t.bind(o,4540,23));const r={name:"SliderInput",components:{VueSlider:(0,n.defineAsyncComponent)((()=>o.e(454).then(o.t.bind(o,9454,23))))},props:{id:String,modelValue:{default:""},data:{type:Array},min:{type:Number},max:{type:Number},interval:{type:Number},inputWidth:{type:String,default:"5rem"}},setup(e,t){let{emit:o}=t;const a=(0,n.ref)(e.modelValue);return(0,n.watch)(a,(e=>{o("update:modelValue",e)})),{value:a}}},i=(0,o(3744).Z)(r,[["render",function(e,t,o,r,i,d){const s=(0,n.resolveComponent)("vue-slider");return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[(0,n.createVNode)(s,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),class:"flex-grow-1",max:o.max,min:o.min,"v-data":o.data,interval:o.interval},null,8,["modelValue","max","min","v-data","interval"]),(0,n.createTextVNode)(),(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"number",id:o.id,class:"form-control ms-2",style:(0,n.normalizeStyle)({width:o.inputWidth}),"onUpdate:modelValue":t[1]||(t[1]=e=>r.value=e),step:o.interval},null,12,l),[[n.vModelText,r.value]])])}]])},3207:(e,t,o)=>{"use strict";o.d(t,{Z:()=>M});var n=o(311);const a={class:"c-title-options"},l={class:"form-row row"},r={class:"col-6"},i={class:"form-group mb-3"},d=["for"],s=["id"],c=["value"],u={class:"col"},p={class:"form-group mb-3"},m=["for"],f={class:"form-row row"},g={class:"col-6"},A=(0,n.createElementVNode)("label",null,"\n Title Font Size\n ",-1),b={class:"col-6"},h={class:"form-group mb-3"},v=(0,n.createElementVNode)("label",null,"\n Title Font Weight\n ",-1),V={key:0,class:""},N={class:"form-row row"},C={class:"col-6"},x=(0,n.createElementVNode)("label",null,"\n Title Margin Top\n ",-1),y=["onUpdate:modelValue"],w={class:"col-6"},E=(0,n.createElementVNode)("label",null,"\n Title Margin Bottom\n ",-1),k=["onUpdate:modelValue"];var B=o(4609),T=o(6882),_=o(8575);const S={name:"TitleOptions",components:{ColorInput:T.Z,SliderInput:_.Z,RwdGroup:B.Z},props:{id:String,modelValue:Object},setup(e,t){let{emit:o}=t;const a=(0,n.reactive)({options:{},prepared:!1});return a.options=e.modelValue,(0,n.onMounted)((()=>{setTimeout((()=>{a.prepared=!0}),150)})),(0,n.watch)((()=>a.options),(()=>{o("update:modelValue",a.options)}),{deep:!0}),{...(0,n.toRefs)(a)}}},M=(0,o(3744).Z)(S,[["render",function(e,t,o,B,T,_){const S=(0,n.resolveComponent)("ColorInput"),M=(0,n.resolveComponent)("SliderInput"),U=(0,n.resolveComponent)("RwdGroup");return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",r,[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("label",{for:o.id+"title-element"},"\n Title Element\n ",8,d),(0,n.createTextVNode)(),(0,n.withDirectives)((0,n.createElementVNode)("select",{id:o.id+"title-element","onUpdate:modelValue":t[0]||(t[0]=t=>e.options.title.element=t),class:"form-select custom-select"},[((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)([1,2,3,4,5,6],(e=>(0,n.createElementVNode)("option",{value:"h"+e},"\n h"+(0,n.toDisplayString)(e),9,c))),64))],8,s),[[n.vModelSelect,e.options.title.element]])])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",u,[(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("label",{for:o.id+"title-color"},"Title Color",8,m),(0,n.createTextVNode)(),(0,n.createVNode)(S,{id:o.id+"title-color",modelValue:e.options.title.color,"onUpdate:modelValue":t[1]||(t[1]=t=>e.options.title.color=t),modelModifiers:{lazy:!0}},null,8,["id","modelValue"])])])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",f,[(0,n.createElementVNode)("div",g,[(0,n.createVNode)(U,{"class-name":"c-title-font-size"},(0,n.createSlots)({label:(0,n.withCtx)((()=>[A])),_:2},[(0,n.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,n.withCtx)((()=>[(0,n.createVNode)(M,{modelValue:e.options.title.font_size[t],"onUpdate:modelValue":o=>e.options.title.font_size[t]=o,max:500},null,8,["modelValue","onUpdate:modelValue"])]))})))]),1024)]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",b,[(0,n.createElementVNode)("div",h,[v,(0,n.createTextVNode)(),e.prepared?((0,n.openBlock)(),(0,n.createElementBlock)("div",V,[(0,n.createVNode)(M,{modelValue:e.options.title.font_weight,"onUpdate:modelValue":t[2]||(t[2]=t=>e.options.title.font_weight=t),data:["",100,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850,900,950,1e3],max:1e3},null,8,["modelValue"])])):(0,n.createCommentVNode)("",!0)])])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",N,[(0,n.createElementVNode)("div",C,[(0,n.createVNode)(U,{"class-name":"c-title-margin_top"},(0,n.createSlots)({label:(0,n.withCtx)((()=>[x])),_:2},[(0,n.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,n.withCtx)((()=>[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"number","onUpdate:modelValue":o=>e.options.title.margin_top[t]=o,class:"form-control"},null,8,y),[[n.vModelText,e.options.title.margin_top[t]]])]))})))]),1024)]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",w,[(0,n.createVNode)(U,{"class-name":"c-title-margin_bottom"},(0,n.createSlots)({label:(0,n.withCtx)((()=>[E])),_:2},[(0,n.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,n.withCtx)((()=>[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"number","onUpdate:modelValue":o=>e.options.title.margin_bottom[t]=o,class:"form-control"},null,8,k),[[n.vModelText,e.options.title.margin_bottom[t]]])]))})))]),1024)])])])}]])},75:(e,t,o)=>{var n=o(2955);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5346).Z)("a93ea620",n,!0,{})},3385:(e,t,o)=>{var n=o(4481);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5346).Z)("53f8fa69",n,!0,{})},8103:(e,t,o)=>{var n=o(3311);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5346).Z)("28f6016c",n,!0,{})},7040:(e,t,o)=>{var n=o(4593);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5346).Z)("afdf7d2c",n,!0,{})},5346:(e,t,o)=>{"use strict";function n(e,t){for(var o=[],n={},a=0;af});var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},r=a&&(document.head||document.getElementsByTagName("head")[0]),i=null,d=0,s=!1,c=function(){},u=null,p="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,o,a){s=o,u=a||{};var r=n(e,t);return g(r),function(t){for(var o=[],a=0;ao.parts.length&&(n.parts.length=o.parts.length)}else{var r=[];for(a=0;a{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABe0lEQVQokYXSsUtcQRTF4d8Jj+VhHSxkEQuLsEUKK0nhTBFTmLSSUhBCMCAWsmgIwWrBLk0akfwLCaSQKBJmtrIIISwpRFKIhViETScphGMzysMtvOVwvpm5d0bGNCuGWAOPgYdl6S8wSDn9b+bUhDHEKWAdeAFMANg+l/TV9ofcz6cjMIbYBvaBMds7QCqZ58CmpBNgPuV0DvAAIMyFGugWtJr7eTv38xEwkPRPErY7QDeG2LqFkjrAgu0dSd/KDVqSNmxvAZ8lfbS9AHRuYemnLWkv5XRVBrQMbAI/gTXgEzAJtJuwBVS2L2OIle03QA/4Lmkl5XQBXEqqbFcAVYFDYChpFngiqWf7l6TXKaezMt2Zkhk24THwG+jZriX9AFZvUAyxLbRke2D75O5zPAO+ADXwEtizjaRHwDvbTyUtppwOmicCHAJvbXcl9YA1SQDjtseA97YPRz7ATcUQp2y/kjRdevsjaTfldNrMjcDGBjXA3T96L7yvrgFzP69+0Ao/HAAAAABJRU5ErkJggg=="},6270:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg=="},4859:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII="},3220:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII="},8898:e=>{"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 width=%2714%27 height=%2714%27%3E%3Cpath d=%27M12 20.016q3.281 0 5.648-2.367t2.367-5.648q0-2.672-1.734-4.922l-11.203 11.203q2.25 1.734 4.922 1.734zM3.984 12q0 2.672 1.734 4.922l11.203-11.203q-2.25-1.734-4.922-1.734-3.281 0-5.648 2.367t-2.367 5.648zM12 2.016q4.125 0 7.055 2.93t2.93 7.055-2.93 7.055-7.055 2.93-7.055-2.93-2.93-7.055 2.93-7.055 7.055-2.93z%27 fill=%27%23000%27%3E%3C/path%3E%3C/svg%3E"},1686:e=>{"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 width=%2718%27 height=%2718%27%3E%3Cpath d=%27M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z%27 fill=%27%23000%27%3E%3C/path%3E%3C/svg%3E"},6387:e=>{"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 width=%2718%27 height=%2718%27%3E%3Cpath d=%27M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z%27 fill=%27%23fff%27%3E%3C/path%3E%3C/svg%3E"},9376:e=>{"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 fill=%27%23ccc%27 fill-opacity=%271%27%3E%3Crect x=%270%27 y=%270%27 width=%276%27 height=%276%27 /%3E%3Crect x=%276%27 y=%276%27 width=%276%27 height=%276%27 /%3E%3C/svg%3E"},311:e=>{"use strict";e.exports=Vue},7685:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=o(6092).Z.Symbol},9001:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});var n=o(4732),a=o(7771),l=o(6706),r=o(6009),i=o(9720),d=Object.prototype.hasOwnProperty;const s=function(e,t){var o=(0,a.Z)(e),s=!o&&(0,n.Z)(e),c=!o&&!s&&(0,l.Z)(e),u=!o&&!s&&!c&&(0,i.Z)(e),p=o||s||c||u,m=p?function(e,t){for(var o=-1,n=Array(e);++o{"use strict";o.d(t,{Z:()=>n});const n=function(e,t,o){for(var n=-1,a=Object(e),l=o(e),r=l.length;r--;){var i=l[++n];if(!1===t(a[i],i,a))break}return e}},3243:(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var n=o(7685),a=Object.prototype,l=a.hasOwnProperty,r=a.toString,i=n.Z?n.Z.toStringTag:void 0;var d=Object.prototype.toString;var s=n.Z?n.Z.toStringTag:void 0;const c=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?function(e){var t=l.call(e,i),o=e[i];try{e[i]=void 0;var n=!0}catch(e){}var a=r.call(e);return n&&(t?e[i]=o:delete e[i]),a}(e):function(e){return d.call(e)}(e)}},3413:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},6009:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var n=/^(?:0|[1-9]\d*)$/;const a=function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e{"use strict";o.d(t,{Z:()=>i});var n=o(9651),a=o(585),l=o(6009),r=o(7226);const i=function(e,t,o){if(!(0,r.Z)(o))return!1;var i=typeof t;return!!("number"==i?(0,a.Z)(o)&&(0,l.Z)(t,o.length):"string"==i&&t in o)&&(0,n.Z)(o[t],e)}},2764:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var n=Object.prototype;const a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},1851:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=function(e,t){return function(o){return e(t(o))}}},6092:(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var n=o(3413),a="object"==typeof self&&self&&self.Object===Object&&self;const l=n.Z||a||Function("return this")()},1554:(e,t,o)=>{"use strict";o.d(t,{Z:()=>Se});const n=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)};var a=o(9203),l=Math.max;const r=function(e){return function(){return e}};var i=o(3234),d=o(6092);const s=d.Z["__core-js_shared__"];var c,u=(c=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"";var p=o(7226),m=Function.prototype.toString;var f=/^\[object .+?Constructor\]$/,g=Function.prototype,A=Object.prototype,b=g.toString,h=A.hasOwnProperty,v=RegExp("^"+b.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(e){return!(!(0,p.Z)(e)||(t=e,u&&u in t))&&((0,i.Z)(e)?v:f).test(function(e){if(null!=e){try{return m.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t},N=function(e,t){var o=function(e,t){return null==e?void 0:e[t]}(e,t);return V(o)?o:void 0},C=function(){try{var e=N(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),x=C?function(e,t){return C(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a.Z;var y=Date.now;const w=(E=x,k=0,B=0,function(){var e=y(),t=16-(e-B);if(B=e,t>0){if(++k>=800)return arguments[0]}else k=0;return E.apply(void 0,arguments)});var E,k,B;const T=function(e,t){return w(function(e,t,o){return t=l(void 0===t?e.length-1:t,0),function(){for(var a=arguments,r=-1,i=l(a.length-t,0),d=Array(i);++r-1},U.prototype.set=function(e,t){var o=this.__data__,n=S(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this};const D=U,O=N(d.Z,"Map"),z=N(Object,"create");var R=Object.prototype.hasOwnProperty;var Z=Object.prototype.hasOwnProperty;function I(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t1?t[n-1]:void 0,l=n>2?t[2]:void 0;for(a=_e.length>3&&"function"==typeof a?(n--,a):void 0,l&&(0,Be.Z)(t[0],t[1],l)&&(a=n<3?void 0:a,n=1),e=Object(e);++o{"use strict";o.d(t,{Z:()=>n});const n=function(e,t){return e===t||e!=e&&t!=t}},5304:(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});const n=function(e,t){for(var o=-1,n=null==e?0:e.length;++o{"use strict";o.d(t,{Z:()=>n});const n=function(e){return e}},4732:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});var n=o(3243),a=o(8533);const l=function(e){return(0,a.Z)(e)&&"[object Arguments]"==(0,n.Z)(e)};var r=Object.prototype,i=r.hasOwnProperty,d=r.propertyIsEnumerable;const s=l(function(){return arguments}())?l:function(e){return(0,a.Z)(e)&&i.call(e,"callee")&&!d.call(e,"callee")}},7771:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=Array.isArray},585:(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var n=o(3234),a=o(1656);const l=function(e){return null!=e&&(0,a.Z)(e.length)&&!(0,n.Z)(e)}},6706:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(6092);var a="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=a&&"object"==typeof module&&module&&!module.nodeType&&module,r=l&&l.exports===a?n.Z.Buffer:void 0;const i=(r?r.isBuffer:void 0)||function(){return!1}},3234:(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var n=o(3243),a=o(7226);const l=function(e){if(!(0,a.Z)(e))return!1;var t=(0,n.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1656:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7226:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},8533:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=function(e){return null!=e&&"object"==typeof e}},9720:(e,t,o)=>{"use strict";o.d(t,{Z:()=>m});var n=o(3243),a=o(1656),l=o(8533),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1;var i=o(3413),d="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=d&&"object"==typeof module&&module&&!module.nodeType&&module,c=s&&s.exports===d&&i.Z.process,u=function(){try{return s&&s.require&&s.require("util").types||c&&c.binding&&c.binding("util")}catch(e){}}(),p=u&&u.isTypedArray;const m=p?(f=p,function(e){return f(e)}):function(e){return(0,l.Z)(e)&&(0,a.Z)(e.length)&&!!r[(0,n.Z)(e)]};var f},703:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var n=o(9001),a=o(2764);const l=(0,o(1851).Z)(Object.keys,Object);var r=Object.prototype.hasOwnProperty;var i=o(585);const d=function(e){return(0,i.Z)(e)?(0,n.Z)(e):function(e){if(!(0,a.Z)(e))return l(e);var t=[];for(var o in Object(e))r.call(e,o)&&"constructor"!=o&&t.push(o);return t}(e)}}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={id:e,exports:{}};return n[e].call(o.exports,o,o.exports,l),o.exports}l.m=n,l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var a=Object.create(null);l.r(a);var r={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>r[e]=()=>o[e]));return r.default=()=>o,l.d(a,r),a},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,o)=>(l.f[o](e,t),t)),[])),l.u=e=>"page/chunk-vendor."+e+".js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},l.l=(e,t,n,a)=>{if(o[e])o[e].push(t);else{var r,i;if(void 0!==n)for(var d=document.getElementsByTagName("script"),s=0;s{r.onerror=r.onload=null,clearTimeout(p);var a=o[e];if(delete o[e],r.parentNode&&r.parentNode.removeChild(r),a&&a.forEach((e=>e(n))),t)return t(n)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),i&&document.head.appendChild(r)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&!e;)e=o[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e})(),(()=>{l.b=document.baseURI||self.location.href;var e={84:0};l.f.j=(t,o)=>{var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{var a=new Promise(((o,a)=>n=e[t]=[o,a]));o.push(n[2]=a);var r=l.p+l.u(t),i=new Error;l.l(r,(o=>{if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+r+")",i.name="ChunkLoadError",i.type=a,i.request=r,n[1](i)}}),"chunk-"+t,t)}};var t=(t,o)=>{var n,a,[r,i,d]=o,s=0;if(r.some((t=>0!==e[t]))){for(n in i)l.o(i,n)&&(l.m[n]=i[n]);d&&d(l)}for(t&&t(o);s{"use strict";var e=l(311);const t={id:"page-builder",class:"page-builder card bg-light border-0",ref:"root"},o={class:"card-header page-builder__topbar d-flex"},n={class:"ms-auto"},a=(0,e.createElementVNode)("span",{class:"fab fa-css3"},null,-1),r={class:"d-inline-block"},i={class:"text-nowrap btn-group dropdown"},d=[(0,e.createElementVNode)("div",{style:{display:"inline-block","min-width":"120px"}},[(0,e.createElementVNode)("span",{class:"fa fa-file-code"}),(0,e.createTextVNode)("\n Insert Template\n ")],-1)],s=(0,e.createElementVNode)("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle dropdown-toggle-split","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"visually-hidden sr-only"},"Toggle Dropdown")],-1),c={class:"dropdown-menu dropdown-menu-end dropdown-menu-right"},p=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-save"},null,-1),m=(0,e.createElementVNode)("span",{class:"fa fa-clone"},null,-1),f={class:"card-body"},g={class:"page-builder__body body"},A={key:0,class:"page-builder__bottom-toolbar text-center"},b={class:"dropdown btn-group text-nowrap"},h=(0,e.createElementVNode)("button",{class:"btn btn-sm btn-outline-secondary dropdown-toggle dropdown-toggle-split"},[(0,e.createElementVNode)("span",{class:"visually-hidden sr-only"},"Toggle Dropdown")],-1),v={class:"dropdown-menu dropdown-menu dropdown-menu-right"},V=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-paste"},null,-1),N=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-file-code"},null,-1),C={class:"row c-addon-list"},x={class:"col-6 col-md-4 mb-2 c-addon-list__item c-addon"},y=["title","onClick"],w={class:"c-addon__icon"},E={class:"m-0"},k={class:"ml-auto ms-auto"},B=(0,e.createElementVNode)("i",{class:"fa fa-times"},null,-1),T=["disabled"],_=["id","aria-labelledby","aria-hidden","data-bs-backdrop"],M={class:"modal-content"},U={key:1,class:"modal-header"},D=["id"],O=(0,e.createElementVNode)("button",{type:"button",class:"close btn-close","data-bs-dismiss":"modal","data-dismiss":"modal","aria-label":"Close"},[(0,e.createElementVNode)("span",{"aria-hidden":"true",class:"visually-hidden"},"×")],-1),z={key:1,class:"modal-body"},R={key:2,class:"modal-footer"},Z={name:"BsModal",inheritAttrs:!1,props:{id:String,open:{type:Boolean,default:!1},size:String,title:String,backdrop:{type:[String,Boolean],default:!0}},emits:["show","shown","hide","hidden"],setup(t,o){let{emit:n,slots:a}=o;const l=(0,e.ref)(null),r=(0,e.reactive)({idName:t.id||"modal-"+u.uid(),visible:t.open});function i(){return bootstrap.Modal.VERSION.split(".").shift()>=5?bootstrap.Modal.getOrCreateInstance(l.value):bootstrap.Modal.getInstance(l.value)}return(0,e.watch)((()=>r.visible),((e,t)=>{!t&&e&&i().show(),t&&!e&&i().hide()})),(0,e.watch)((()=>t.open),(e=>{r.visible=e})),(0,e.watch)((()=>t.id),(e=>{r.idName=e})),(0,e.onMounted)((()=>{l.value.addEventListener("show.bs.modal",(e=>{n("show",e)})),l.value.addEventListener("shown.bs.modal",(e=>{n("shown",e)})),l.value.addEventListener("hide.bs.modal",(e=>{n("hide",e)})),l.value.addEventListener("hidden.bs.modal",(e=>{n("hidden",e)}))})),{...(0,e.toRefs)(r),modal:l,hasSlots:function(e){return void 0!==a[e]}}}};var I=l(3744);const L=(0,I.Z)(Z,[["render",function(t,o,n,a,l,r){return(0,e.openBlock)(),(0,e.createBlock)(e.Teleport,{to:"body"},[(0,e.createElementVNode)("div",(0,e.mergeProps)({ref:"modal",class:"modal fade",id:t.idName},t.$attrs,{tabindex:"-1",role:"dialog","aria-labelledby":t.idName+"-label","aria-hidden":t.visible?"true":"false","data-bs-backdrop":n.backdrop}),[(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["modal-dialog",n.size?"modal-"+n.size:null]),role:"document"},[(0,e.createElementVNode)("div",M,[t.visible?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[a.hasSlots("header-element")?(0,e.renderSlot)(t.$slots,"header-element",{key:0}):((0,e.openBlock)(),(0,e.createElementBlock)("div",U,[(0,e.renderSlot)(t.$slots,"header",{},(()=>[(0,e.createElementVNode)("div",{class:"modal-title",id:t.idName+"-label"},[(0,e.createElementVNode)("h4",null,(0,e.toDisplayString)(n.title),1)],8,D)])),(0,e.createTextVNode)(),O]))],64)):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),t.visible?((0,e.openBlock)(),(0,e.createElementBlock)("div",z,[(0,e.renderSlot)(t.$slots,"default")])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),t.visible&&a.hasSlots("footer")?((0,e.openBlock)(),(0,e.createElementBlock)("div",R,[(0,e.renderSlot)(t.$slots,"footer")])):(0,e.createCommentVNode)("",!0)])],2)],16,_)])}]]);var j=l(5304);const P={class:"modal-header bg-white sticky-top"},q={ref:"tab",class:"nav nav-pills border-0"},F={class:"nav-item"},Y={ref:"generalTab",class:"nav-link active","data-toggle":"tab","data-bs-toggle":"tab",href:"#addon-edit-general"},Q=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#addon-edit-layout"},"\n Layout\n ")],-1),W=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#addon-edit-animation"},"\n Animation\n ")],-1),H={class:"ml-auto ms-auto"},G=(0,e.createElementVNode)("span",{class:"fa fa-check"},null,-1),J=["disabled"],K=[(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1)],X={key:0,class:"tab-content",id:"addon-edit-tab-content"},ee={class:"tab-pane fade show active",id:"addon-edit-general",role:"tabpanel","aria-labelledby":"addon-edit-general-tab"},te={class:"form-group mb-3"},oe=(0,e.createElementVNode)("label",{for:"input-addon-edit-label"},"Label",-1),ne=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"Only show when editing page.",-1),ae={class:"form-group mb-3"},le=(0,e.createElementVNode)("label",{for:"input-addon-edit-html-class"},"CSS Class",-1),re={class:"tab-pane fade",id:"addon-edit-layout",role:"tabpanel","aria-labelledby":"addon-edit-layout-tab"},ie=(0,e.createElementVNode)("label",null,"Padding",-1),de=(0,e.createElementVNode)("label",null,"Margin",-1),se={class:"form-group mb-3"},ce=(0,e.createElementVNode)("label",{for:"input-addon-edit-text-color"},"Text Color",-1),ue={class:"form-group mb-3"},pe=(0,e.createElementVNode)("label",{for:"input-addon-edit-background"},"Background Type",-1),me={class:"mt-2"},fe={key:0,class:"form-group mb-3"},ge=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-color"},"Background Color",-1),Ae={key:0,style:{"animation-duration":".3s"}},be={class:"form-group mb-3"},he=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-image"},"Background Image",-1),ve={class:"form-row row"},Ve={class:"form-group mb-3 col-md-6"},Ne=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-overlay"},"Background Overlay",-1),Ce={class:"form-group mb-3 col-md-6"},xe=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-repeat"},"Background Repeat",-1),ye=(0,e.createElementVNode)("option",{value:"no-repeat"},"No Repeat",-1),we=(0,e.createElementVNode)("option",{value:""},"Repeat All",-1),Ee=(0,e.createElementVNode)("option",{value:"repeat-x"},"Repeat X",-1),ke=(0,e.createElementVNode)("option",{value:"repeat-y"},"Repeat Y",-1),Be=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Te={class:"form-row row"},_e={class:"form-group mb-3 col-md-6"},Se=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-attachment"},"Background Attachment",-1),Me=(0,e.createElementVNode)("option",{value:"fixed"},"Fixed",-1),Ue=(0,e.createElementVNode)("option",{value:"scroll"},"Scroll",-1),De=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Oe={class:"form-group mb-3 col-md-6"},ze=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-position"},"Background Position",-1),Re=(0,e.createElementVNode)("option",{value:"left top"},"Left Top",-1),Ze=(0,e.createElementVNode)("option",{value:"left center"},"Left Center",-1),Ie=(0,e.createElementVNode)("option",{value:"left bottom"},"Left Bottom",-1),Le=(0,e.createElementVNode)("option",{value:"center top"},"Center Top",-1),je=(0,e.createElementVNode)("option",{value:"center center"},"Center Center",-1),Pe=(0,e.createElementVNode)("option",{value:"center bottom"},"Center Bottom",-1),qe=(0,e.createElementVNode)("option",{value:"right top"},"Right Top",-1),Fe=(0,e.createElementVNode)("option",{value:"right center"},"Right Center",-1),Ye=(0,e.createElementVNode)("option",{value:"right bottom"},"Right Bottom",-1),Qe={key:0,style:{"animation-duration":".3s"}},We={class:"form-group mb-3"},$e=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-video-url"},"Video URL",-1),He=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"\n Paste mp4 video URL or Youtube / Vimeo link.\n ",-1),Ge={key:0,style:{"animation-duration":".3s"}},Je={class:"form-group mb-3"},Ke=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-overlay"},"Background Overlay",-1),Xe={class:"form-group mb-3"},et=(0,e.createElementVNode)("label",{for:"input-addon-edit-hidden-mobile"},"Parallel Scroll",-1),tt=(0,e.createElementVNode)("hr",null,null,-1),ot={class:"form-group mb-3"},nt=(0,e.createElementVNode)("label",{for:"input-addon-edit-hidden-mobile"},"Hide in Mobile",-1),at={class:"form-group mb-3"},lt=(0,e.createElementVNode)("label",{for:"input-addon-edit-hidden-tablet"},"Hide in Tablet",-1),rt={class:"form-group mb-3"},it=(0,e.createElementVNode)("label",{for:"input-addon-edit-hidden-desktop"},"Hide in Desktop",-1),dt=(0,e.createElementVNode)("hr",null,null,-1),st={class:"form-group mb-3"},ct=(0,e.createElementVNode)("label",{for:"input-addon-edit-css"},"Custom CSS (SCSS)",-1),ut={class:"text-muted small mb-3"},pt={key:0},mt={class:"tab-pane fade",id:"addon-edit-animation",role:"tabpanel","aria-labelledby":"addon-edit-animation-tab"},ft=(0,e.createElementVNode)("span",{class:"fa fa-save"},null,-1),gt=(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1),At={ref:"wrapper"},bt={ref:"editor"},ht={name:"CssEditor",props:{modelValue:String,autoFocus:{type:Boolean,default:!1}},setup(t,o){let{emit:n}=o;const a=(0,e.ref)(null),r=(0,e.ref)(null);let i=null;const d=(0,e.ref)(""),s=(0,e.ref)(!1),c=(0,e.ref)({});return(0,e.onMounted)((async()=>{const{default:e,CodeMirrorOptions:o}=await Promise.all([l.e(564),l.e(461)]).then(l.bind(l,1461));c.value=o,setTimeout((()=>{i=e(r.value,c.value),i.setValue(d.value),i.on("change",((e,t)=>{d.value=e.getValue()})),t.autoFocus&&setTimeout((()=>i.focus()),500)}),300)})),(0,e.watch)((()=>t.modelValue),(e=>{d.value=e,i&&i.getValue()!==e&&(console.log(e),i.setValue(e))}),{immediate:!0}),(0,e.watch)(d,(e=>{n("update:modelValue",e)})),{css:d,show:s,options:c,editor:r,wrapper:a}}},vt=(0,I.Z)(ht,[["render",function(t,o,n,a,l,r){return(0,e.openBlock)(),(0,e.createElementBlock)("div",At,[(0,e.createElementVNode)("div",bt,null,512),(0,e.createTextVNode)()],512)}]]);var Vt=l(1554);var Nt=l(7685);const Ct=function(e,t){for(var o=-1,n=null==e?0:e.length,a=Array(n);++o=a?n:a)),n),t=Tt(t),e.slice(o,o+t.length)==t;var n,a,l};let Lt="";function jt(){const e=document.querySelector("#input-item-content");return""!==Lt&&Lt===e.value&&console.warn("[Page] Content not change, there was an error or you didn't edit anything."),u.$http.post("@page_ajax/savePage",new FormData(document.querySelector("#admin-form"))).then((e=>(console.log("儲存完成"),e.data.data.redirect&&(location.href=e.data.data.redirect),e))).finally((()=>{Lt=e.value})).catch((e=>{console.error(e),swal(e.message,"","warning")}))}function Pt(e){"string"!=typeof e&&(e=JSON.stringify(e,null,4));const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function qt(){return navigator.clipboard.readText().catch((e=>{console.error("Failed to read clipboard contents: ",e)}))}function Ft(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=JSON.parse(JSON.stringify(e));if("row"===e.type||It(e.id,"row-")){if(t)return console.log("Cannot add row to child column."),null;o.id="row-"+u.uid(),o.type="row"}else o.id="addon-"+u.uid();return o}function Yt(){return{id:"row-"+u.uid(),disabled:!1,options:{label:"",title:{text:"",element:"h3",font_size:{lg:"",md:"",xs:""},font_weight:"",color:"",margin_top:{lg:"",md:"",xs:""},margin_bottom:{lg:"",md:"",xs:""}},subtitle:{text:"",font_size:{lg:"",md:"",xs:""}},html_id:"",html_class:"",html_css:"",title_align:"center",valign:"top",justify_content:"start",fluid_row:!1,no_gutter:!1,padding:{lg:"",md:"",xs:""},margin:{lg:"",md:"",xs:""},display:{xs:"d-block",md:"d-md-block",lg:"d-lg-block"},text_color:"",background:{type:"none",color:"",image:{url:"",overlay:"",repeat:"",position:"center center",attachment:"inherit",size:"cover"},gradient:{type:"liner",angle:"",start_color:"",start_pos:"",end_color:"",end_pos:""},video:{url:"",overlay:""},parallax:!1},animation:{name:"",duration:300,delay:0}},columns:[]}}function Qt(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{id:"col-"+u.uid(),disabled:!1,addons:[],options:{html_class:"",html_css:"",align:"",valign:"top",padding:{xs:"",md:"",lg:""},margin:{xs:"",md:"",lg:""},text_color:"",width:{xs:"",md:"",lg:e?"col-lg-6":"col-lg-3"},display:{xs:"d-block",md:"d-md-block",lg:"d-lg-block"},box_shadow:{enabled:0,color:"rgba(0, 0, 0, 1)",hoffset:0,voffset:0,blur:0,spread:0},border:{enabled:0,width:{lg:1,md:1,xs:1},color:"",style:"",radius:{lg:0,md:0,xs:0}},background:{type:"none",color:"",overlay:"",image:{url:"",repeat:"",position:"center center",attachment:"inherit",size:"cover"},gradient:{type:"liner",angle:"",start_color:"",start_pos:"",end_color:"",end_pos:""},video:""},animation:{name:"",duration:300,delay:0}}}}var Wt=l(2120),$t=l(4928),Ht=l(6882),Gt=l(4609),Jt=l(8575),Kt=l(3207),Xt=l(8624);const eo={class:"cation-selector"},to={class:"form-group mb-3"},oo=["for"],no=["id"],ao=(0,e.createElementVNode)("option",{value:""},"None",-1),lo=["value"],ro={class:"form-group mb-3"},io=["for"],so=["id"],co=(0,e.createElementVNode)("small",{class:"form-text text-muted"},'\n The duration of this animation. The unit is "ms" (1/1000 seconds)\n ',-1),uo={class:"form-group mb-3"},po=["for"],mo=["id"],fo=(0,e.createElementVNode)("small",{class:"form-text text-muted"},'\n Delay a while to start animation. The unit is "ms" (1/1000 seconds)\n ',-1),go={name:"animations",props:{value:Object,id:String},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({animation:{}});return(0,e.onMounted)((()=>{a.animation=t.value})),(0,e.watch)((()=>a.animation),(e=>{n("update:value",e)})),{...(0,e.toRefs)(a),getAnimations:Ao}}};function Ao(){return["fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","flip","flipInX","flipInY","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp"]}const bo=(0,I.Z)(go,[["render",function(t,o,n,a,l,r){return(0,e.openBlock)(),(0,e.createElementBlock)("div",eo,[(0,e.createElementVNode)("div",to,[(0,e.createElementVNode)("label",{for:n.id+"-name"},"Animation Name",8,oo),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:n.id+"-name",class:"form-select custom-select","onUpdate:modelValue":o[0]||(o[0]=e=>t.animation.name=e)},[ao,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.getAnimations(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:t},(0,e.toDisplayString)(t),9,lo)))),256))],8,no),[[e.vModelSelect,t.animation.name]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ro,[(0,e.createElementVNode)("label",{for:n.id+"-duration"},"Animation Duration",8,io),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"number",id:n.id+"-duration",class:"form-control","onUpdate:modelValue":o[1]||(o[1]=e=>t.animation.duration=e),min:"0"},null,8,so),[[e.vModelText,t.animation.duration]]),(0,e.createTextVNode)(),co]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",uo,[(0,e.createElementVNode)("label",{for:n.id+"-delay"},"Delay Time",8,po),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"number",id:n.id+"-delay",class:"form-control","onUpdate:modelValue":o[2]||(o[2]=e=>t.animation.delay=e),min:"0"},null,8,mo),[[e.vModelText,t.animation.delay]]),(0,e.createTextVNode)(),fo])])}]]);var ho=l(9491);const vo={class:"c-box-offset"},Vo={class:"form-row row"},No={class:"col-6"},Co={class:"form-group mb-3"},xo=["for"],yo=["id"],wo={class:"form-group mb-3"},Eo=["for"],ko={class:"col-6"},Bo={class:"form-group mb-3"},To=["for"],_o=["id"],So={class:"form-group mb-3"},Mo=["for"],Uo={class:"form-group mb-3"},Do=["for"],Oo=["id"],zo=(0,e.createElementVNode)("option",{value:"linear"},"Linear",-1),Ro=(0,e.createElementVNode)("option",{value:"radial"},"Radial",-1),Zo={class:"form-group mb-3"},Io=["for"],Lo={name:"gradient",components:{SliderInput:Jt.Z},props:{id:String,value:Object},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({gradient:{type:"linear",angle:"0",start_color:"",start_pos:"0",end_color:"",end_pos:"100"}});function l(){n("update.value",a.gradient)}(0,e.onMounted)((()=>{a.gradient=t.value})),(0,e.watch)((()=>a.gradient),(()=>{l()}),{deep:!0});const r=(0,e.computed)((()=>{const e=a.gradient;return"linear"===e.type?`${e.type}-gradient(${e.angle}deg, ${e.start_color} ${e.start_pos}%, ${e.end_color} ${e.end_pos}%)`:`${e.type}-gradient(${e.start_color} ${e.start_pos}%, ${e.end_color} ${e.end_pos}%)`}));return{...(0,e.toRefs)(a),backgroundImage:r,updated:l}}},jo=(0,I.Z)(Lo,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("vue-slide-bar"),d=(0,e.resolveComponent)("SliderInput"),s=(0,e.resolveDirective)("color");return(0,e.openBlock)(),(0,e.createElementBlock)("div",vo,[(0,e.createElementVNode)("div",{class:"c-gradient-preview mb-3",style:(0,e.normalizeStyle)([{height:"100px",border:"1px solid rgba(0, 0, 0, .2)"},{"background-image":a.backgroundImage}])},null,4),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Vo,[(0,e.createElementVNode)("div",No,[(0,e.createElementVNode)("div",Co,[(0,e.createElementVNode)("label",{for:n.id+"-color1"},"Color 1",8,xo),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"text",id:n.id+"-color1","onUpdate:modelValue":o[0]||(o[0]=e=>t.gradient.start_color=e),class:"form-control"},null,8,yo),[[e.vModelText,t.gradient.start_color,void 0,{lazy:!0}],[s]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",wo,[(0,e.createElementVNode)("label",{for:n.id+"-color1-pos"},"Color 1 Position",8,Eo),(0,e.createTextVNode)(),(0,e.createVNode)(i,{modelValue:t.gradient.start_pos,"onUpdate:modelValue":o[1]||(o[1]=e=>t.gradient.start_pos=e)},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ko,[(0,e.createElementVNode)("div",Bo,[(0,e.createElementVNode)("label",{for:n.id+"-color2"},"Color 2",8,To),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"text",id:n.id+"-color2","onUpdate:modelValue":o[2]||(o[2]=e=>t.gradient.end_color=e),class:"form-control"},null,8,_o),[[e.vModelText,t.gradient.end_color,void 0,{lazy:!0}],[s]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",So,[(0,e.createElementVNode)("label",{for:n.id+"-color2-pos"},"Color 2 Position",8,Mo),(0,e.createTextVNode)(),(0,e.createVNode)(i,{modelValue:t.gradient.end_pos,"onUpdate:modelValue":o[3]||(o[3]=e=>t.gradient.end_pos=e)},null,8,["modelValue"])])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Uo,[(0,e.createElementVNode)("label",{for:n.id+"-type"},"Gradient Type",8,Do),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:n.id+"-type","onUpdate:modelValue":o[4]||(o[4]=e=>t.gradient.type=e),class:"form-select custom-select"},[zo,(0,e.createTextVNode)(),Ro],8,Oo),[[e.vModelSelect,t.gradient.type,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Zo,[(0,e.createElementVNode)("label",{for:n.id+"-angle"},"Angle",8,Io),(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:n.id+"-angle",modelValue:t.gradient.angle,"onUpdate:modelValue":o[5]||(o[5]=e=>t.gradient.angle=e),max:360},null,8,["id","modelValue"])])])}]]),Po={name:"addon-edit",components:{BsModal:L,CssEditor:vt,ColorInput:Ht.Z,UnicornSwitcher:Wt.Z,SliderInput:Jt.Z,RwdGroup:Gt.Z,ButtonRadio:$t.Z,TitleOptions:Kt.Z,Animations:bo,BoxOffset:Xt.Z,SingleImage:ho.Z,Gradient:jo},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({values:{},saving:!1,modalShow:!1});(0,e.onMounted)((()=>{}));const l=(0,e.ref)(null),r=(0,e.ref)("general");function i(){r.value=l.value.querySelector("a.nav-link.active").getAttribute("href").replace("#addon-edit-","")}function d(){a.modalShow=!1,(0,e.nextTick)((()=>{a.values={},a.sticky=!1}))}function s(e){"string"==typeof e.options.background.video&&(e.options.background.video={url:e.options.background.video})}const c=(0,e.computed)((()=>a.values.options));return{...(0,e.toRefs)(a),options:c,tab:l,currentTab:r,edit:function(t){const o=JSON.parse(JSON.stringify(t));o.options=(0,Vt.Z)(o.options,{html_class:"",html_css:"",label:"",title:{text:"",element:"h3",font_size:{lg:"",md:"",xs:""},font_weight:"",color:"",margin_top:{lg:"",md:"",xs:""},margin_bottom:{lg:"",md:"",xs:""}},align:"",padding:{xs:"",md:"",lg:""},margin:{xs:"",md:"",lg:""},text_color:"",display:{xs:"d-block",md:"d-md-block",lg:"d-lg-block"},box_shadow:{enabled:0,color:"rgba(0, 0, 0, 1)",hoffset:0,voffset:0,blur:0,spread:0},border:{enabled:0,width:{lg:1,md:1,xs:1},color:"",style:"",radius:{lg:0,md:0,xs:0}},background:{type:"none",color:"",overlay:"",image:{url:"",repeat:"",position:"center center",attachment:"inherit",size:"cover"},gradient:{type:"liner",angle:"",start_color:"",start_pos:"",end_color:"",end_pos:""},video:{url:""}},animation:{name:"",duration:300,delay:0}}),o.disabled=!1,s(o),a.modalShow=!0,(0,e.nextTick)((()=>{a.values=o,l.value.addEventListener("shown.bs.tab",(()=>{i()})),i()}))},saveClose:function(){u.trigger("addon:save",JSON.parse(JSON.stringify(a.values))),d()},savePage:function(){u.trigger("addon:save",JSON.parse(JSON.stringify(a.values))),a.saving=!0,(0,e.nextTick)((()=>{jt(a.saving).finally((()=>{a.saving=!1}))}))},close:d,dataMigration:s}}},qo=(0,I.Z)(Po,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("BoxOffset"),d=(0,e.resolveComponent)("ColorInput"),s=(0,e.resolveComponent)("ButtonRadio"),c=(0,e.resolveComponent)("SingleImage"),u=(0,e.resolveComponent)("Gradient"),p=(0,e.resolveComponent)("UnicornSwitcher"),m=(0,e.resolveComponent)("CssEditor"),f=(0,e.resolveComponent)("Animations"),g=(0,e.resolveComponent)("BsModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",null,[(0,e.createVNode)(g,{open:t.modalShow,size:"lg",onHidden:o[26]||(o[26]=e=>t.modalShow=!1),backdrop:"static",class:"c-modal-addon-edit"},{"header-element":(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",P,[(0,e.createElementVNode)("ul",q,[(0,e.createElementVNode)("li",F,[(0,e.createElementVNode)("a",Y,"\n General\n ",512)]),(0,e.createTextVNode)(),Q,(0,e.createTextVNode)(),W],512),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",H,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary",onClick:o[0]||(o[0]=e=>a.saveClose())},[G,(0,e.createTextVNode)("\n Done\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[1]||(o[1]=e=>a.savePage()),disabled:t.saving},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(this.saving?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save Page\n ")],8,J),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[2]||(o[2]=e=>a.close())},K)])])])),footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[24]||(o[24]=e=>a.saveClose())},[ft,(0,e.createTextVNode)("\n Save\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[25]||(o[25]=e=>a.close())},[gt,(0,e.createTextVNode)("\n Cancel\n ")])])),default:(0,e.withCtx)((()=>[(0,e.createTextVNode)(),t.values.id?((0,e.openBlock)(),(0,e.createElementBlock)("div",X,[(0,e.createElementVNode)("div",ee,[(0,e.createElementVNode)("div",te,[oe,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-addon-edit-label",type:"text","onUpdate:modelValue":o[3]||(o[3]=e=>a.options.label=e),class:"form-control"},null,512),[[e.vModelText,a.options.label]]),(0,e.createTextVNode)(),ne]),(0,e.createTextVNode)(),t.values.componentName?((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.values.componentName),{key:0,modelValue:t.values.options,"onUpdate:modelValue":o[4]||(o[4]=e=>t.values.options=e),"addon-id":t.values.id},null,8,["modelValue","addon-id"])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ae,[le,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-addon-edit-html-class",type:"text","onUpdate:modelValue":o[5]||(o[5]=e=>a.options.html_class=e),class:"form-control"},null,512),[[e.vModelText,a.options.html_class]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",re,[(0,e.createVNode)(i,{modelValue:a.options.padding,"onUpdate:modelValue":o[6]||(o[6]=e=>a.options.padding=e)},{label:(0,e.withCtx)((()=>[ie])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createVNode)(i,{modelValue:a.options.margin,"onUpdate:modelValue":o[7]||(o[7]=e=>a.options.margin=e)},{label:(0,e.withCtx)((()=>[de])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",se,[ce,(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:"input-addon-edit-text-color",modelValue:a.options.text_color,"onUpdate:modelValue":o[8]||(o[8]=e=>a.options.text_color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ue,[pe,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",me,[(0,e.createVNode)(s,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.background.type,"onUpdate:modelValue":o[9]||(o[9]=e=>a.options.background.type=e),options:[{text:"None",value:"none"},{text:"Color",value:"color"},{text:"Image",value:"image"},{text:"Gradient",value:"gradient"},{text:"video",value:"video"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["color","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",fe,[ge,(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:"input-addon-edit-bg-color",modelValue:a.options.background.color,"onUpdate:modelValue":o[10]||(o[10]=e=>a.options.background.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",Ae,[(0,e.createElementVNode)("div",be,[he,(0,e.createTextVNode)(),(0,e.createVNode)(c,{modelValue:a.options.background.image.url,"onUpdate:modelValue":o[11]||(o[11]=e=>a.options.background.image.url=e),id:"input-addon-edit-bg-image"},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ve,[(0,e.createElementVNode)("div",Ve,[Ne,(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:"input-addon-edit-bg-overlay",modelValue:a.options.background.overlay,"onUpdate:modelValue":o[12]||(o[12]=e=>a.options.background.overlay=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ce,[xe,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-addon-edit-bg-repeat","onUpdate:modelValue":o[13]||(o[13]=e=>a.options.background.image.repeat=e),class:"form-select custom-select"},[ye,(0,e.createTextVNode)(),we,(0,e.createTextVNode)(),Ee,(0,e.createTextVNode)(),ke,(0,e.createTextVNode)(),Be],512),[[e.vModelSelect,a.options.background.image.repeat,void 0,{lazy:!0}]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Te,[(0,e.createElementVNode)("div",_e,[Se,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-addon-edit-bg-attachment","onUpdate:modelValue":o[14]||(o[14]=e=>a.options.background.image.attachment=e),class:"form-select custom-select"},[Me,(0,e.createTextVNode)(),Ue,(0,e.createTextVNode)(),De],512),[[e.vModelSelect,a.options.background.image.attachment,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Oe,[ze,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-addon-edit-bg-position","onUpdate:modelValue":o[15]||(o[15]=e=>a.options.background.image.position=e),class:"form-select custom-select"},[Re,(0,e.createTextVNode)(),Ze,(0,e.createTextVNode)(),Ie,(0,e.createTextVNode)(),Le,(0,e.createTextVNode)(),je,(0,e.createTextVNode)(),Pe,(0,e.createTextVNode)(),qe,(0,e.createTextVNode)(),Fe,(0,e.createTextVNode)(),Ye],512),[[e.vModelSelect,a.options.background.image.position,void 0,{lazy:!0}]])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>["gradient"===a.options.background.type?((0,e.openBlock)(),(0,e.createBlock)(u,{key:0,modelValue:a.options.background.gradient,"onUpdate:modelValue":o[16]||(o[16]=e=>a.options.background.gradient=e),id:"addon-edit-gradient",style:{"animation-duration":".3s"}},null,8,["modelValue"])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["video"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",Qe,[(0,e.createElementVNode)("div",We,[$e,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-addon-edit-bg-video-url",type:"text","onUpdate:modelValue":o[17]||(o[17]=e=>a.options.background.video.url=e),class:"form-control"},null,512),[[e.vModelText,a.options.background.video.url]]),(0,e.createTextVNode)(),He])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["video","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",Ge,[(0,e.createElementVNode)("div",Je,[Ke,(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:"input-addon-edit-bg-overlay",modelValue:a.options.background.overlay,"onUpdate:modelValue":o[18]||(o[18]=e=>a.options.background.overlay=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Xe,[et,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(p,{name:"addon-edit-bg-parallax",modelValue:a.options.background.parallax,"onUpdate:modelValue":o[19]||(o[19]=e=>a.options.background.parallax=e),id:"input-addon-edit-bg-parallax",shape:"circle",color:"success","true-value":!0,"false-value":!1},null,8,["modelValue"])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),tt,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ot,[nt,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(p,{name:"addon-edit-hidden-mobile",modelValue:a.options.display.xs,"onUpdate:modelValue":o[20]||(o[20]=e=>a.options.display.xs=e),id:"input-addon-edit-hidden-mobile",shape:"circle",color:"success","true-value":"d-none","false-value":"d-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",at,[lt,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(p,{name:"addon-edit-hidden-tablet",modelValue:a.options.display.md,"onUpdate:modelValue":o[21]||(o[21]=e=>a.options.display.md=e),id:"input-addon-edit-hidden-tablet",shape:"circle",color:"success","true-value":"d-md-none","false-value":"d-md-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",rt,[it,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(p,{name:"addon-edit-hidden-desktop",modelValue:a.options.display.lg,"onUpdate:modelValue":o[22]||(o[22]=e=>a.options.display.lg=e),id:"input-addon-edit-hidden-desktop",shape:"circle",color:"success","true-value":"d-lg-none","false-value":"d-lg-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),dt,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",st,[ct,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ut,[(0,e.createTextVNode)("\n Will auto prefix with: "),(0,e.createElementVNode)("code",null,(0,e.toDisplayString)(`#luna-${t.values.id}`),1),(0,e.createTextVNode)(", and only affected in this scope.\n ")]),(0,e.createTextVNode)(),"layout"===a.currentTab?((0,e.openBlock)(),(0,e.createElementBlock)("div",pt,[(0,e.createVNode)(m,{ref:"css-editor",modelValue:a.options.html_css,"onUpdate:modelValue":o[23]||(o[23]=e=>a.options.html_css=e),height:350},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",mt,[(0,e.createVNode)(f,{id:"addon-edit-anim",value:a.options.animation},null,8,["value"])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)()])),_:1},8,["open"])])}]]),Fo={class:"modal-header bg-white sticky-top"},Yo={ref:"tab",class:"nav nav-pills border-0"},Qo={class:"nav-item"},Wo={ref:"generalTab",class:"nav-link active","data-toggle":"tab","data-bs-toggle":"tab",href:"#column-edit-general"},$o=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#column-edit-layout"},"\n Layout\n ")],-1),Ho=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#column-edit-animation"},"\n Animation\n ")],-1),Go={class:"ml-auto ms-auto"},Jo=(0,e.createElementVNode)("span",{class:"fa fa-check"},null,-1),Ko=["disabled"],Xo=[(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1)],en={class:"tab-content",id:"column-edit-tab-content"},tn={class:"tab-pane fade show active",id:"column-edit-general",role:"tabpanel","aria-labelledby":"column-edit-general-tab"},on={class:"form-group mb-3"},nn=(0,e.createElementVNode)("label",{for:"input-column-edit-text-color"},"Text Color",-1),an={class:"form-group mb-3"},ln=(0,e.createElementVNode)("label",{for:"input-column-edit-background"},"Background Style",-1),rn={class:""},dn={key:0,class:"form-group mb-3",style:{"animation-duration":".3s"}},sn=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-color"},"Background Color",-1),cn={key:0,style:{"animation-duration":".3s"}},un={class:"form-group mb-3"},pn=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-image"},"Background Image",-1),mn={class:"form-row row"},fn={class:"form-group mb-3 col-md-6"},gn=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-overlay"},"Background Overlay",-1),An={class:"form-group mb-3 col-md-6"},bn=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-repeat"},"Background Repeat",-1),hn=(0,e.createElementVNode)("option",{value:"no-repeat"},"No Repeat",-1),vn=(0,e.createElementVNode)("option",{value:""},"Repeat All",-1),Vn=(0,e.createElementVNode)("option",{value:"repeat-x"},"Repeat X",-1),Nn=(0,e.createElementVNode)("option",{value:"repeat-y"},"Repeat Y",-1),Cn=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),xn={class:"form-row row"},yn={class:"form-group mb-3 col-md-6"},wn=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-attachment"},"Background Attachment",-1),En=(0,e.createElementVNode)("option",{value:"fixed"},"Fixed",-1),kn=(0,e.createElementVNode)("option",{value:"scroll"},"Scroll",-1),Bn=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Tn={class:"form-group mb-3 col-md-6"},_n=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-position"},"Background Position",-1),Sn=(0,e.createElementVNode)("option",{value:"left top"},"Left Top",-1),Mn=(0,e.createElementVNode)("option",{value:"left center"},"Left Center",-1),Un=(0,e.createElementVNode)("option",{value:"left bottom"},"Left Bottom",-1),Dn=(0,e.createElementVNode)("option",{value:"center top"},"Center Top",-1),On=(0,e.createElementVNode)("option",{value:"center center"},"Center Center",-1),zn=(0,e.createElementVNode)("option",{value:"center bottom"},"Center Bottom",-1),Rn=(0,e.createElementVNode)("option",{value:"right top"},"Right Top",-1),Zn=(0,e.createElementVNode)("option",{value:"right center"},"Right Center",-1),In=(0,e.createElementVNode)("option",{value:"right bottom"},"Right Bottom",-1),Ln={class:"form-group mb-3"},jn=(0,e.createElementVNode)("label",{for:"input-addon-edit-text-align"},"Text Alignment",-1),Pn={class:""},qn={class:"form-group mb-3"},Fn=(0,e.createElementVNode)("label",{for:"input-column-edit-valign"},"Vertical Align Middle",-1),Yn=(0,e.createElementVNode)("hr",null,null,-1),Qn=(0,e.createElementVNode)("label",null,"Padding",-1),Wn=(0,e.createElementVNode)("label",null,"Margin",-1),$n=(0,e.createElementVNode)("hr",null,null,-1),Hn={class:"form-group mb-3"},Gn=(0,e.createElementVNode)("label",{for:"input-column-edit-border-enabled"},"Border",-1),Jn={key:0},Kn=(0,e.createElementVNode)("label",null,"\n Border Width\n ",-1),Xn={class:"form-group mb-3"},ea=(0,e.createElementVNode)("label",{for:"input-column-edit-border-color"},"Border Color",-1),ta={class:"form-group mb-3"},oa=(0,e.createElementVNode)("label",{for:"input-column-edit-border-style"},"Border Style",-1),na=(0,e.createElementVNode)("option",{value:""},"None",-1),aa=(0,e.createElementVNode)("option",{value:"solid"},"Solid",-1),la=(0,e.createElementVNode)("option",{value:"dotted"},"Dotted",-1),ra=(0,e.createElementVNode)("option",{value:"dashed"},"Dashed",-1),ia=(0,e.createElementVNode)("option",{value:"double"},"Double",-1),da=(0,e.createElementVNode)("option",{value:"groove"},"Groove",-1),sa=(0,e.createElementVNode)("option",{value:"ridge"},"Ridge",-1),ca=(0,e.createElementVNode)("label",null,"\n Border Radius\n ",-1),ua=(0,e.createElementVNode)("hr",null,null,-1),pa={class:"form-group mb-3"},ma=(0,e.createElementVNode)("label",{for:"input-column-edit-box_shadow-enabled"},"Box Shadow",-1),fa={key:1},ga={class:"form-group mb-3"},Aa=(0,e.createElementVNode)("label",{for:"input-column-edit-box-shadow-color"},"Shadow Color",-1),ba={class:"form-row row"},ha={class:"col-6"},va={class:"form-group mb-3"},Va=(0,e.createElementVNode)("label",null,"\n Shadow X Offset\n ",-1),Na={class:"col-6"},Ca={class:"form-group mb-3"},xa=(0,e.createElementVNode)("label",null,"\n Shadow Y Offset\n ",-1),ya={class:"form-row row"},wa={class:"col-6"},Ea={class:"form-group mb-3"},ka=(0,e.createElementVNode)("label",null,"\n Shadow Blur\n ",-1),Ba={class:"col-6"},Ta={class:"form-group mb-3"},_a=(0,e.createElementVNode)("label",null,"\n Shadow Spread\n ",-1),Sa=(0,e.createElementVNode)("hr",null,null,-1),Ma={class:"form-group mb-3"},Ua=(0,e.createElementVNode)("label",{for:"input-column-edit-html-class"},"CSS Class",-1),Da={class:"tab-pane fade",id:"column-edit-layout",role:"tabpanel","aria-labelledby":"column-edit-layout-tab"},Oa={class:"form-group mb-3"},za=(0,e.createElementVNode)("label",{for:"input-column-edit-width-desktop"},"Desktop Width",-1),Ra=["value"],Za={class:"form-group mb-3"},Ia=(0,e.createElementVNode)("label",{for:"input-column-edit-width-tablet"},"Tablet Width",-1),La=(0,e.createElementVNode)("option",{value:""},"- None -",-1),ja=["value"],Pa={class:"form-group mb-3"},qa=(0,e.createElementVNode)("label",{for:"input-column-edit-width-mobile"},"Mobile Width",-1),Fa=(0,e.createElementVNode)("option",{value:""},"- None -",-1),Ya=["value"],Qa=(0,e.createElementVNode)("hr",null,null,-1),Wa={class:"form-group mb-3"},$a=(0,e.createElementVNode)("label",{for:"input-column-edit-hidden-mobile"},"Hide in Mobile",-1),Ha={class:"form-group mb-3"},Ga=(0,e.createElementVNode)("label",{for:"input-column-edit-hidden-tablet"},"Hide in Tablet",-1),Ja={class:"form-group mb-3"},Ka=(0,e.createElementVNode)("label",{for:"input-column-edit-hidden-desktop"},"Hide in Desktop",-1),Xa=(0,e.createElementVNode)("hr",null,null,-1),el={class:"form-group mb-3"},tl=(0,e.createElementVNode)("label",{for:"input-column-edit-css"},"Custom CSS (SCSS)",-1),ol={class:"text-muted small mb-3"},nl={key:0},al={class:"tab-pane fade",id:"column-edit-animation",role:"tabpanel","aria-labelledby":"column-edit-animation-tab"},ll=(0,e.createElementVNode)("span",{class:"fa fa-save"},null,-1),rl=[(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1)];var il=Math.ceil,dl=Math.max;var sl=l(439);const cl=function(e,t,o){return o&&"number"!=typeof o&&(0,sl.Z)(e,t,o)&&(t=o=void 0),e=Zt(e),void 0===t?(t=e,e=0):t=Zt(t),function(e,t,o,n){for(var a=-1,l=dl(il((t-e)/(o||1)),0),r=Array(l);l--;)r[n?l:++a]=e,e+=o;return r}(e,t,o=void 0===o?e{}));const r=(0,e.ref)(null),i=(0,e.ref)("general");function d(){i.value=r.value.querySelector("a.nav-link.active").getAttribute("href").replace("#column-edit-","")}function s(){a.sticky=!1,a.modalShow=!1,setTimeout((()=>{a.values={}}),300),a.sticky=!1}return{cssEditor:l,options:(0,e.computed)((()=>a.values.options)),...(0,e.toRefs)(a),tab:r,currentTab:i,edit:function(t){a.values=JSON.parse(JSON.stringify(t)),a.modalShow=!0,(0,e.nextTick)((()=>{r.value.addEventListener("shown.bs.tab",(()=>{d()})),d()}))},saveClose:function(){u.trigger("column:save",JSON.parse(JSON.stringify(a.values))),s()},savePage:function(){u.trigger("column:save",JSON.parse(JSON.stringify(a.values))),a.saving=!0,(0,e.nextTick)((()=>{jt(a.saving).finally((()=>{a.saving=!1}))}))},close:s,widthRange:function(){return cl(1,13)}}}},pl=(0,I.Z)(ul,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("ColorInput"),d=(0,e.resolveComponent)("ButtonRadio"),s=(0,e.resolveComponent)("SingleImage"),c=(0,e.resolveComponent)("Gradient"),u=(0,e.resolveComponent)("UnicornSwitcher"),p=(0,e.resolveComponent)("BoxOffset"),m=(0,e.resolveComponent)("SliderInput"),f=(0,e.resolveComponent)("RwdGroup"),g=(0,e.resolveComponent)("CssEditor"),A=(0,e.resolveComponent)("Animations"),b=(0,e.resolveComponent)("BsModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",null,[(0,e.createVNode)(b,{open:t.modalShow,size:"lg",onHidden:o[35]||(o[35]=e=>t.modalShow=!1),backdrop:"static",class:"c-modal-column-edit"},{"header-element":(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",Fo,[(0,e.createElementVNode)("ul",Yo,[(0,e.createElementVNode)("li",Qo,[(0,e.createElementVNode)("a",Wo,"\n General\n ",512)]),(0,e.createTextVNode)(),$o,(0,e.createTextVNode)(),Ho],512),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Go,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary",onClick:o[0]||(o[0]=e=>a.saveClose())},[Jo,(0,e.createTextVNode)("\n Done\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[1]||(o[1]=e=>a.savePage()),disabled:t.saving},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(t.saving?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save Page\n ")],8,Ko),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[2]||(o[2]=e=>a.close())},Xo)])])])),footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[33]||(o[33]=e=>a.saveClose())},[ll,(0,e.createTextVNode)("\n Save\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[34]||(o[34]=e=>a.close())},rl)])),default:(0,e.withCtx)((()=>[(0,e.createTextVNode)(),(0,e.createElementVNode)("div",en,[(0,e.createElementVNode)("div",tn,[(0,e.createElementVNode)("div",on,[nn,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-text-color",modelValue:a.options.text_color,"onUpdate:modelValue":o[3]||(o[3]=e=>a.options.text_color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",an,[ln,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",rn,[(0,e.createVNode)(d,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.background.type,"onUpdate:modelValue":o[4]||(o[4]=e=>a.options.background.type=e),options:[{text:"None",value:"none"},{text:"Color",value:"color"},{text:"Image",value:"image"},{text:"Gradient",value:"gradient"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["color","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",dn,[sn,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-bg-color",modelValue:a.options.background.color,"onUpdate:modelValue":o[5]||(o[5]=e=>a.options.background.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",cn,[(0,e.createElementVNode)("div",un,[pn,(0,e.createTextVNode)(),(0,e.createVNode)(s,{modelValue:a.options.background.image.url,"onUpdate:modelValue":o[6]||(o[6]=e=>a.options.background.image.url=e),id:"input-column-edit-bg-image"},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",mn,[(0,e.createElementVNode)("div",fn,[gn,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-bg-overlay",modelValue:a.options.background.overlay,"onUpdate:modelValue":o[7]||(o[7]=e=>a.options.background.overlay=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",An,[bn,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-bg-repeat","onUpdate:modelValue":o[8]||(o[8]=e=>a.options.background.image.repeat=e),class:"form-select custom-select"},[hn,(0,e.createTextVNode)(),vn,(0,e.createTextVNode)(),Vn,(0,e.createTextVNode)(),Nn,(0,e.createTextVNode)(),Cn],512),[[e.vModelSelect,a.options.background.image.repeat,void 0,{lazy:!0}]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",xn,[(0,e.createElementVNode)("div",yn,[wn,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-bg-attachment","onUpdate:modelValue":o[9]||(o[9]=e=>a.options.background.image.attachment=e),class:"form-select custom-select"},[En,(0,e.createTextVNode)(),kn,(0,e.createTextVNode)(),Bn],512),[[e.vModelSelect,a.options.background.image.attachment,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Tn,[_n,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-bg-position","onUpdate:modelValue":o[10]||(o[10]=e=>a.options.background.image.position=e),class:"form-select custom-select"},[Sn,(0,e.createTextVNode)(),Mn,(0,e.createTextVNode)(),Un,(0,e.createTextVNode)(),Dn,(0,e.createTextVNode)(),On,(0,e.createTextVNode)(),zn,(0,e.createTextVNode)(),Rn,(0,e.createTextVNode)(),Zn,(0,e.createTextVNode)(),In],512),[[e.vModelSelect,a.options.background.image.position,void 0,{lazy:!0}]])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>["gradient"===a.options.background.type?((0,e.openBlock)(),(0,e.createBlock)(c,{key:0,modelValue:a.options.background.gradient,"onUpdate:modelValue":o[11]||(o[11]=e=>a.options.background.gradient=e),id:"column-edit-gradient",style:{"animation-duration":".3s"}},null,8,["modelValue"])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ln,[jn,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Pn,[(0,e.createVNode)(d,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.align,"onUpdate:modelValue":o[12]||(o[12]=e=>a.options.align=e),options:[{text:"Default",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",qn,[Fn,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-align-middle",modelValue:a.options.valign,"onUpdate:modelValue":o[13]||(o[13]=e=>a.options.valign=e),id:"input-column-edit-valign",shape:"circle",color:"success","true-value":"middle","false-value":"top"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),Yn,(0,e.createTextVNode)(),(0,e.createVNode)(p,{modelValue:a.options.padding,"onUpdate:modelValue":o[14]||(o[14]=e=>a.options.padding=e)},{label:(0,e.withCtx)((()=>[Qn])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createVNode)(p,{modelValue:a.options.margin,"onUpdate:modelValue":o[15]||(o[15]=e=>a.options.margin=e)},{label:(0,e.withCtx)((()=>[Wn])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),$n,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Hn,[Gn,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-border-enabled",modelValue:a.options.border.enabled,"onUpdate:modelValue":o[16]||(o[16]=e=>a.options.border.enabled=e),id:"input-column-edit-border-enabled",shape:"circle",color:"success"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),1==a.options.border.enabled?((0,e.openBlock)(),(0,e.createElementBlock)("div",Jn,[(0,e.createVNode)(f,{"class-name":"c-border-width"},(0,e.createSlots)({label:(0,e.withCtx)((()=>[Kn])),_:2},[(0,e.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{modelValue:a.options.border.width[t],"onUpdate:modelValue":e=>a.options.border.width[t]=e},null,8,["modelValue","onUpdate:modelValue"])]))})))]),1024),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Xn,[ea,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-border-color",modelValue:a.options.border.color,"onUpdate:modelValue":o[17]||(o[17]=e=>a.options.border.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ta,[oa,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-border-style","onUpdate:modelValue":o[18]||(o[18]=e=>a.options.border.style=e),class:"form-select custom-select"},[na,(0,e.createTextVNode)(),aa,(0,e.createTextVNode)(),la,(0,e.createTextVNode)(),ra,(0,e.createTextVNode)(),ia,(0,e.createTextVNode)(),da,(0,e.createTextVNode)(),sa],512),[[e.vModelSelect,a.options.border.style]])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),(0,e.createVNode)(f,{"class-name":"c-border-radius"},(0,e.createSlots)({label:(0,e.withCtx)((()=>[ca])),_:2},[(0,e.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{modelValue:a.options.border.radius[t],"onUpdate:modelValue":e=>a.options.border.radius[t]=e,max:500},null,8,["modelValue","onUpdate:modelValue"])]))})))]),1024),(0,e.createTextVNode)(),ua,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",pa,[ma,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-box_shadow-enabled",modelValue:a.options.box_shadow.enabled,"onUpdate:modelValue":o[19]||(o[19]=e=>a.options.box_shadow.enabled=e),id:"input-column-edit-box_shadow-enabled",shape:"circle",color:"success"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),1==a.options.box_shadow.enabled?((0,e.openBlock)(),(0,e.createElementBlock)("div",fa,[(0,e.createElementVNode)("div",ga,[Aa,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-box-shadow-color",modelValue:a.options.box_shadow.color,"onUpdate:modelValue":o[20]||(o[20]=e=>a.options.box_shadow.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ba,[(0,e.createElementVNode)("div",ha,[(0,e.createElementVNode)("div",va,[Va,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.box_shadow.hoffset,"onUpdate:modelValue":o[21]||(o[21]=e=>a.options.box_shadow.hoffset=e)},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Na,[(0,e.createElementVNode)("div",Ca,[xa,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.box_shadow.voffset,"onUpdate:modelValue":o[22]||(o[22]=e=>a.options.box_shadow.voffset=e)},null,8,["modelValue"])])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ya,[(0,e.createElementVNode)("div",wa,[(0,e.createElementVNode)("div",Ea,[ka,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.box_shadow.blur,"onUpdate:modelValue":o[23]||(o[23]=e=>a.options.box_shadow.blur=e)},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ba,[(0,e.createElementVNode)("div",Ta,[_a,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.box_shadow.spread,"onUpdate:modelValue":o[24]||(o[24]=e=>a.options.box_shadow.spread=e)},null,8,["modelValue"])])])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),Sa,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ma,[Ua,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-column-edit-html-class",type:"text","onUpdate:modelValue":o[25]||(o[25]=e=>a.options.html_class=e),class:"form-control"},null,512),[[e.vModelText,a.options.html_class]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Da,[(0,e.createElementVNode)("div",Oa,[za,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-width-desktop","onUpdate:modelValue":o[26]||(o[26]=e=>a.options.width.lg=e),class:"form-select custom-select"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-lg-"+t},"\n col-lg-"+(0,e.toDisplayString)(t),9,Ra)))),256))],512),[[e.vModelSelect,a.options.width.lg]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Za,[Ia,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-width-tablet","onUpdate:modelValue":o[27]||(o[27]=e=>a.options.width.md=e),class:"form-select custom-select"},[La,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-md-"+t},"\n col-md-"+(0,e.toDisplayString)(t),9,ja)))),256))],512),[[e.vModelSelect,a.options.width.md]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Pa,[qa,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-width-mobile","onUpdate:modelValue":o[28]||(o[28]=e=>a.options.width.xs=e),class:"form-select custom-select"},[Fa,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-"+t},"\n col-"+(0,e.toDisplayString)(t),9,Ya)))),256))],512),[[e.vModelSelect,a.options.width.xs]])]),(0,e.createTextVNode)(),Qa,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Wa,[$a,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-hidden-mobile",modelValue:a.options.display.xs,"onUpdate:modelValue":o[29]||(o[29]=e=>a.options.display.xs=e),id:"input-column-edit-hidden-mobile",shape:"circle",color:"success","true-value":"d-none","false-value":"d-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ha,[Ga,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-hidden-tablet",modelValue:a.options.display.md,"onUpdate:modelValue":o[30]||(o[30]=e=>a.options.display.md=e),id:"input-column-edit-hidden-tablet",shape:"circle",color:"success","true-value":"d-md-none","false-value":"d-md-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ja,[Ka,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-hidden-desktop",modelValue:a.options.display.lg,"onUpdate:modelValue":o[31]||(o[31]=e=>a.options.display.lg=e),id:"input-column-edit-hidden-desktop",shape:"circle",color:"success","true-value":"d-lg-none","false-value":"d-lg-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),Xa,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",el,[tl,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ol,[(0,e.createTextVNode)("\n Will auto prefix with: "),(0,e.createElementVNode)("code",null,(0,e.toDisplayString)(`#luna-${t.values.id}`),1),(0,e.createTextVNode)(", and only affected in this scope.\n ")]),(0,e.createTextVNode)(),"layout"===a.currentTab?((0,e.openBlock)(),(0,e.createElementBlock)("div",nl,[(0,e.createVNode)(g,{ref:"cssEditor",modelValue:a.options.html_css,"onUpdate:modelValue":o[32]||(o[32]=e=>a.options.html_css=e),height:350},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",al,[(0,e.createVNode)(A,{id:"column-edit-anim",value:a.options.animation},null,8,["value"])])]),(0,e.createTextVNode)()])),_:1},8,["open"])])}]]),ml=["disabled"],fl={class:"page-row__title-bar d-flex mb-2"},gl={class:"page-row__title d-flex"},Al={class:"page-row__move-cursor"},bl={class:"badge bg-secondary me-2",style:{cursor:"move"}},hl=["is"],vl={key:0,class:"ms-3"},Vl={class:"page-row__actions ml-auto ms-auto text-nowrap"},Nl=(0,e.createElementVNode)("span",{class:"fa fa-plus"},null,-1),Cl={key:0},xl=(0,e.createElementVNode)("span",{class:"fa fa-edit"},null,-1),yl={key:0},wl={class:"dropdown"},El=(0,e.createElementVNode)("button",{href:"#",class:"btn btn-sm btn-outline-primary","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"fa fa-cog"})],-1),kl={class:"dropdown-menu dropdown-menu-right dropdown-menu-end"},Bl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-clone"},null,-1),Tl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-copy"},null,-1),_l=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-paste"},null,-1),Sl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-file-code"},null,-1),Ml=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-save"},null,-1),Ul=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-trash"},null,-1),Dl={class:"card"},Ol=[(0,e.createElementVNode)("span",{class:"fa fa-plus-square fa-3x"},null,-1)],zl={class:"page-row__bottom-toolbar mt-3 text-center"},Rl={class:"page-builder__bottom-toolbar text-center"},Zl={class:"btn-group"},Il=(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm dropdown-toggle dropdown-toggle-split","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"visually-hidden sr-only"},"Toggle Dropdown")],-1),Ll={class:"dropdown-menu dropdown-menu-end dropdown-menu-right"},jl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-paste"},null,-1),Pl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-file-code"},null,-1),ql={name:"Row",components:{},props:{value:Object,child:{type:Boolean,default:!1},moveHandle:{type:String,default:"move-handle"}},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({content:{},drag:!1});function l(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{const o=JSON.parse(e);if(Array.isArray(o))return void n("paste-page",o);if(It(o.id,"addon-"))return void alert("Unable to paste addon here.");if(It(o.id,"col-"))return void i(o,a.content.columns.length-1);if(It(o.id,"row-"))return t?void r(o):void swal({title:"You are pasting a row to a another row.",text:"Please choose an action.",buttons:{add:{text:"Merge",value:"add",className:"btn-info"},replace:{text:"Replace",value:"replace",className:"btn-warning"},append:{text:"After",value:"append",className:"btn-dark"}}}).then((e=>{switch(e){case"replace":a.content.columns=[];case"add":o.columns.forEach((e=>{i(e,a.columns.length-1)}));break;case"append":r(o)}}))}catch(e){console.error(e),alert("Invalid format.")}}function r(){n("duplicate",arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)}function i(e,t){(e=JSON.parse(JSON.stringify(e))).id="col-"+u.uid(),e.addons=d(e.addons),a.content.columns.splice(t+1,0,e)}function d(e){return e.map((e=>null===(e=Ft(e,t.child))?null:("row"!==e.type||(e.columns=e.columns.map((e=>(e.id="col-"+u.uid(),e.addons=d(e.addons),e)))),e))).filter((e=>null!==e))}a.content=t.value,a.content=(0,Vt.Z)(a.content,Yt());const s=(0,e.computed)((()=>a.content.columns)),c=(0,e.computed)((()=>a.content.options));return(0,e.watch)((()=>s),(()=>{n("columns-change",{columns:s.value})}),{deep:!0}),{...(0,e.toRefs)(a),columns:s,options:c,addNewColumn:function(){a.content.columns.push(Qt(t.child))},copy:function(){Pt(a.content)},paste:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];qt().then((t=>{l(t,e)}))},pasteData:l,duplicate:r,duplicateColumn:i,handleDuplicateAddons:d,edit:function(){u.trigger("row:edit",a.content)},toggleDisabled:function(){a.content.disabled=!a.content.disabled},remove:function(){u.confirm("Are you sure you want to delete??").then((()=>n("delete")))},getEmptyRow:function(){return Yt()},deleteColumn:function(e){s.value.splice(e,1)},openTemplates:function(){u.trigger("tmpl.open",((e,t,o)=>{l(e.content)}),"column,row",s.value.length)}}}},Fl=(0,I.Z)(ql,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("Column"),d=(0,e.resolveComponent)("draggable");return(0,e.openBlock)(),(0,e.createElementBlock)("div",{class:(0,e.normalizeClass)(["bg-light",{"p-2":n.child,rounded:n.child}]),disabled:!!t.content.disabled||null},[(0,e.createElementVNode)("div",fl,[(0,e.createElementVNode)("div",gl,[(0,e.createElementVNode)("div",Al,[(0,e.createElementVNode)("span",bl,[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(["fa fa-fw fa-arrows-alt-v",[n.moveHandle]])},null,2)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",{is:n.child?"strong":"h5"},(0,e.toDisplayString)(""===a.options.label?"ROW":a.options.label),9,hl),(0,e.createTextVNode)(),t.$debug?((0,e.openBlock)(),(0,e.createElementBlock)("small",vl,(0,e.toDisplayString)(t.content.id),1)):(0,e.createCommentVNode)("",!0)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Vl,[t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",class:"btn btn-sm btn-primary",onClick:o[0]||(o[0]=e=>a.addNewColumn())},[Nl,(0,e.createTextVNode)(),n.child?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("span",Cl,"\n New Column\n "))])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:1,type:"button",class:"btn btn-sm btn-outline-primary",onClick:o[1]||(o[1]=function(){return a.edit&&a.edit(...arguments)})},[xl,(0,e.createTextVNode)(),n.child?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("span",yl,"\n Edit\n "))])),(0,e.createTextVNode)(),(0,e.createElementVNode)("span",wl,[El,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",kl,[(0,e.createElementVNode)("a",{class:"dropdown-item",href:"#",onClick:o[2]||(o[2]=(0,e.withModifiers)((e=>a.toggleDisabled()),["prevent"]))},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(["fa fa-fw",[t.content.disabled?"fa-eye":"fa-eye-slash"]])},null,2),(0,e.createTextVNode)(" "+(0,e.toDisplayString)(t.content.disabled?"Enabled":"Disabled"),1)]),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:0,class:"dropdown-item",href:"#",onClick:o[3]||(o[3]=(0,e.withModifiers)((e=>a.duplicate()),["prevent"]))},[Bl,(0,e.createTextVNode)("\n Duplicate\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:1,class:"dropdown-item",href:"#",onClick:o[4]||(o[4]=(0,e.withModifiers)((function(){return a.copy&&a.copy(...arguments)}),["prevent"]))},[Tl,(0,e.createTextVNode)("\n Copy\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:2,class:"dropdown-item",href:"#",onClick:o[5]||(o[5]=(0,e.withModifiers)((function(){return a.paste&&a.paste(...arguments)}),["prevent"]))},[_l,(0,e.createTextVNode)("\n Paste\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:3,class:"dropdown-item",href:"#",onClick:o[6]||(o[6]=(0,e.withModifiers)((function(){return a.openTemplates&&a.openTemplates(...arguments)}),["prevent"]))},[Sl,(0,e.createTextVNode)("\n Insert Template\n ")])),(0,e.createTextVNode)(),(0,e.createElementVNode)("a",{class:"dropdown-item",href:"#",onClick:o[7]||(o[7]=(0,e.withModifiers)((e=>t.$trigger("tmpl.save",t.content,"row")),["prevent"]))},[Ml,(0,e.createTextVNode)("\n Save as Template\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("a",{class:"dropdown-item",href:"#",onClick:o[8]||(o[8]=(0,e.withModifiers)((e=>a.remove()),["prevent"]))},[Ul,(0,e.createTextVNode)("\n Delete\n ")])])])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Dl,[(0,e.createVNode)(d,(0,e.mergeProps)({class:["card-body page-row__body row",[{"p-2":n.child},`justify-content-${a.options.justify_content}`]],modelValue:t.content.columns,"onUpdate:modelValue":o[10]||(o[10]=e=>t.content.columns=e),onStart:o[11]||(o[11]=e=>t.drag=!0),onEnd:o[12]||(o[12]=e=>t.drag=!1),onAdd:o[13]||(o[13]=(0,e.withModifiers)((()=>{}),["stop"]))},{handle:".column-move-handle",group:"column",animation:300},{style:{"min-height":"50px"},"item-key":"id"}),{item:(0,e.withCtx)((t=>{let{element:o,index:l}=t;return[(0,e.createVNode)(i,{class:"page-row__column column mb-2",style:{"animation-duration":".3s"},onDelete:e=>a.deleteColumn(l),onDuplicate:e=>a.duplicateColumn(e||o,l),index:l,value:o,child:n.child},null,8,["onDelete","onDuplicate","index","value","child"])]})),footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("a",{class:"page-row__body-placeholder text-center p-4 border text-secondary col-12","commented-v-if":"addons.length === 0 && !drag",href:"#",onClick:o[9]||(o[9]=(0,e.withModifiers)((e=>a.addNewColumn()),["prevent"]))},Ol)])),_:1},16,["class","modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",zl,[(0,e.createElementVNode)("div",Rl,[(0,e.createElementVNode)("div",Zl,[(0,e.createElementVNode)("button",{type:"button",onClick:o[14]||(o[14]=e=>t.$emit("add")),class:"btn btn-sm btn-outline-secondary"},"\n Add New Row\n "),(0,e.createTextVNode)(),Il,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ll,[(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[15]||(o[15]=e=>a.paste(!0))},[jl,(0,e.createTextVNode)("\n Paste\n ")]),(0,e.createTextVNode)(),n.child?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",class:"dropdown-item",onClick:o[16]||(o[16]=e=>t.$emit("open-templates"))},[Pl,(0,e.createTextVNode)("\n Insert Template\n ")]))])])])])],10,ml)}]]),Yl={ref:"tab",class:"nav nav-pills border-0"},Ql=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link active","data-toggle":"tab","data-bs-toggle":"tab",href:"#row-edit-general"},"\n General\n ")],-1),Wl=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#row-edit-layout"},"\n Layout\n ")],-1),$l=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#row-edit-animation"},"\n Animation\n ")],-1),Hl={class:"ml-auto ms-auto"},Gl=(0,e.createElementVNode)("span",{class:"fa fa-check"},null,-1),Jl=["disabled"],Kl=[(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1)],Xl={key:0,class:"tab-content",id:"row-edit-tab-content"},er={class:"tab-pane fade show active",id:"row-edit-general",role:"tabpanel","aria-labelledby":"row-edit-general-tab"},tr={class:"form-group mb-3"},or=(0,e.createElementVNode)("label",{for:"input-row-edit-label"},"Label",-1),nr=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"This label only show in edit page.",-1),ar=(0,e.createElementVNode)("hr",null,null,-1),lr={class:"form-group mb-3"},rr=(0,e.createElementVNode)("label",{for:"input-row-edit-title-text"},"Main Title",-1),ir=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"Title of this section, keep empty to hide it.",-1),dr=(0,e.createElementVNode)("hr",null,null,-1),sr={class:"form-group mb-3"},cr=(0,e.createElementVNode)("label",{for:"input-row-edit-subtitle-text"},"Subtitle",-1),ur=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"Subtitle of this section, keep empty to hide it.",-1),pr={key:1},mr=(0,e.createElementVNode)("label",null,"\n Subtitle Font Size\n ",-1),fr={class:"form-group mb-3"},gr=(0,e.createElementVNode)("label",{for:"input-row-edit-title-align"},"Title/Subtitle Text Alignment",-1),Ar={class:"form-group mb-3"},br=(0,e.createElementVNode)("label",{for:"input-row-edit-text-color"},"Text Color",-1),hr={class:"form-group mb-3"},vr=(0,e.createElementVNode)("label",{for:"input-row-edit-html-id"},"CSS ID",-1),Vr={class:"form-group mb-3"},Nr=(0,e.createElementVNode)("label",{for:"input-row-edit-html-class"},"CSS Class",-1),Cr={class:"tab-pane fade",id:"row-edit-layout",role:"tabpanel","aria-labelledby":"row-edit-layout-tab"},xr={class:"form-group mb-3"},yr=(0,e.createElementVNode)("label",{for:"input-row-edit-background"},"Background Type",-1),wr={key:0,class:"form-group mb-3"},Er=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-color"},"Background Color",-1),kr={key:0},Br={class:"form-group mb-3"},Tr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-image"},"Background Image",-1),_r={class:"form-row row"},Sr={class:"form-group mb-3 col-md-6"},Mr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-size"},"Background Size",-1),Ur=(0,e.createElementVNode)("option",{value:""},"Default",-1),Dr=(0,e.createElementVNode)("option",{value:"cover"},"Cover",-1),Or=(0,e.createElementVNode)("option",{value:"contain"},"Contain",-1),zr=(0,e.createElementVNode)("option",{value:"auto"},"Auto",-1),Rr={class:"form-group mb-3 col-md-6"},Zr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-repeat"},"Background Repeat",-1),Ir=(0,e.createElementVNode)("option",{value:"no-repeat"},"No Repeat",-1),Lr=(0,e.createElementVNode)("option",{value:""},"Repeat All",-1),jr=(0,e.createElementVNode)("option",{value:"repeat-x"},"Repeat X",-1),Pr=(0,e.createElementVNode)("option",{value:"repeat-y"},"Repeat Y",-1),qr=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Fr={class:"form-row row"},Yr={class:"form-group mb-3 col-md-6"},Qr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-attachment"},"Background Attachment",-1),Wr=(0,e.createElementVNode)("option",{value:"fixed"},"Fixed",-1),$r=(0,e.createElementVNode)("option",{value:"scroll"},"Scroll",-1),Hr=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Gr={class:"form-group mb-3 col-md-6"},Jr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-position"},"Background Position",-1),Kr=(0,e.createElementVNode)("option",{value:"left top"},"Left Top",-1),Xr=(0,e.createElementVNode)("option",{value:"left center"},"Left Center",-1),ei=(0,e.createElementVNode)("option",{value:"left bottom"},"Left Bottom",-1),ti=(0,e.createElementVNode)("option",{value:"center top"},"Center Top",-1),oi=(0,e.createElementVNode)("option",{value:"center center"},"Center Center",-1),ni=(0,e.createElementVNode)("option",{value:"center bottom"},"Center Bottom",-1),ai=(0,e.createElementVNode)("option",{value:"right top"},"Right Top",-1),li=(0,e.createElementVNode)("option",{value:"right center"},"Right Center",-1),ri=(0,e.createElementVNode)("option",{value:"right bottom"},"Right Bottom",-1),ii={key:0},di={class:"form-group mb-3"},si=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-video-url"},"Video URL",-1),ci=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"\n Paste mp4 video URL, or Youtube / Vimeo URL.\n ",-1),ui={key:0},pi={class:"form-group mb-3"},mi=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-overlay"},"Color Overlay",-1),fi={class:"form-group mb-3"},gi=(0,e.createElementVNode)("label",{for:"input-row-edit-hidden-mobile"},"Parallax Background",-1),Ai=(0,e.createElementVNode)("hr",null,null,-1),bi={class:"form-group mb-3"},hi=(0,e.createElementVNode)("label",{for:"input-row-edit-justify-content"},"Content Justify",-1),vi={class:"form-group mb-3"},Vi=(0,e.createElementVNode)("label",{for:"input-row-edit-valign"},"Vertical Align Middle",-1),Ni={class:"form-group mb-3"},Ci=(0,e.createElementVNode)("label",{for:"input-row-edit-fluid_row"},"Fluid Row",-1),xi={class:"form-group mb-3"},yi=(0,e.createElementVNode)("label",{for:"input-row-edit-no_gutter"},"No Gutters",-1),wi=(0,e.createElementVNode)("hr",null,null,-1),Ei={class:"form-group mb-3"},ki=(0,e.createElementVNode)("label",{for:"input-row-edit-hidden-mobile"},"Hide in Mobile",-1),Bi={class:"form-group mb-3"},Ti=(0,e.createElementVNode)("label",{for:"input-row-edit-hidden-tablet"},"Hide in Tablet",-1),_i={class:"form-group mb-3"},Si=(0,e.createElementVNode)("label",{for:"input-row-edit-hidden-desktop"},"Hide in Desktop",-1),Mi=(0,e.createElementVNode)("hr",null,null,-1),Ui={class:"form-group mb-3"},Di=(0,e.createElementVNode)("label",{for:"input-row-edit-css"},"Custom CSS (SCSS)",-1),Oi={class:"text-muted small mb-3"},zi={key:0},Ri={class:"tab-pane fade",id:"row-edit-animation",role:"tabpanel","aria-labelledby":"row-edit-animation-tab"},Zi=(0,e.createElementVNode)("span",{class:"fa fa-save"},null,-1),Ii=(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1),Li={name:"RowEdit",components:{BsModal:L,CssEditor:vt,ColorInput:Ht.Z,UnicornSwitcher:Wt.Z,SliderInput:Jt.Z,RwdGroup:Gt.Z,ButtonRadio:$t.Z,TitleOptions:Kt.Z,Animations:bo,BoxOffset:Xt.Z,SingleImage:ho.Z,Gradient:jo},setup(){const t=(0,e.reactive)({values:{},sticky:!1,saving:!1,modalShow:!1}),o=(0,e.ref)(null),n=(0,e.ref)("general"),a=(0,e.ref)(null);function l(){n.value=o.value.querySelector("a.nav-link.active").getAttribute("href").replace("#row-edit-","")}function r(){t.modalShow=!1,t.sticky=!1,(0,e.nextTick)((()=>{t.values={}}))}(0,e.onMounted)((()=>{}));const i=(0,e.computed)((()=>t.values.options));return{...(0,e.toRefs)(t),options:i,tab:o,currentTab:n,cssEditor:a,edit:function(n){t.values=JSON.parse(JSON.stringify(n)),t.modalShow=!0,(0,e.nextTick)((()=>{o.value.addEventListener("shown.bs.tab",(()=>{l()})),l()}))},saveClose:function(){u.trigger("row:save",JSON.parse(JSON.stringify(t.values))),r()},savePage:function(){u.trigger("row:save",JSON.parse(JSON.stringify(t.values))),t.saving=!0,(0,e.nextTick)((()=>{jt(t.saving).finally((()=>{t.saving=!1}))}))},close:r}}},ji=(0,I.Z)(Li,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("TitleOptions"),d=(0,e.resolveComponent)("SliderInput"),s=(0,e.resolveComponent)("RwdGroup"),c=(0,e.resolveComponent)("ButtonRadio"),u=(0,e.resolveComponent)("ColorInput"),p=(0,e.resolveComponent)("BoxOffset"),m=(0,e.resolveComponent)("single-image"),f=(0,e.resolveComponent)("gradient"),g=(0,e.resolveComponent)("unicorn-switcher"),A=(0,e.resolveComponent)("UnicornSwitcher"),b=(0,e.resolveComponent)("CssEditor"),h=(0,e.resolveComponent)("Animations"),v=(0,e.resolveComponent)("BsModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",null,[(0,e.createVNode)(v,{open:t.modalShow,size:"lg",onHidden:o[34]||(o[34]=e=>t.modalShow=!1),backdrop:"static",class:"c-modal-row-edit"},{"header-element":(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["modal-header bg-white",{"sticky-top":t.sticky}])},[(0,e.createElementVNode)("ul",Yl,[Ql,(0,e.createTextVNode)(),Wl,(0,e.createTextVNode)(),$l],512),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Hl,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary btn--save",onClick:o[0]||(o[0]=e=>a.saveClose())},[Gl,(0,e.createTextVNode)("\n Done\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success btn--save-page",onClick:o[1]||(o[1]=e=>a.savePage()),disabled:t.saving},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(t.saving?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save Page\n ")],8,Jl),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary btn--close",onClick:o[2]||(o[2]=function(){return a.close&&a.close(...arguments)})},Kl)])],2)])),footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[32]||(o[32]=e=>a.saveClose())},[Zi,(0,e.createTextVNode)("\n Save\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[33]||(o[33]=e=>a.close())},[Ii,(0,e.createTextVNode)("\n Cancel\n ")])])),default:(0,e.withCtx)((()=>[(0,e.createTextVNode)(),t.values.id?((0,e.openBlock)(),(0,e.createElementBlock)("div",Xl,[(0,e.createElementVNode)("div",er,[(0,e.createElementVNode)("div",tr,[or,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-row-edit-label",type:"text","onUpdate:modelValue":o[3]||(o[3]=e=>a.options.label=e),class:"form-control"},null,512),[[e.vModelText,a.options.label]]),(0,e.createTextVNode)(),nr]),(0,e.createTextVNode)(),ar,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",lr,[rr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("textarea",{id:"input-row-edit-title-text","onUpdate:modelValue":o[4]||(o[4]=e=>a.options.title.text=e),class:"form-control"},null,512),[[e.vModelText,a.options.title.text]]),(0,e.createTextVNode)(),ir]),(0,e.createTextVNode)(),""!==a.options.title.text?((0,e.openBlock)(),(0,e.createBlock)(i,{key:0,id:"input-row-edit",modelValue:t.values.options,"onUpdate:modelValue":o[5]||(o[5]=e=>t.values.options=e)},null,8,["modelValue"])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),dr,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",sr,[cr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("textarea",{id:"input-row-edit-subtitle-text","onUpdate:modelValue":o[6]||(o[6]=e=>a.options.subtitle.text=e),class:"form-control"},null,512),[[e.vModelText,a.options.subtitle.text]]),(0,e.createTextVNode)(),ur]),(0,e.createTextVNode)(),""!==a.options.subtitle.text?((0,e.openBlock)(),(0,e.createElementBlock)("div",pr,[(0,e.createVNode)(s,{"class-name":"c-title-font-size"},(0,e.createSlots)({label:(0,e.withCtx)((()=>[mr])),_:2},[(0,e.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,e.withCtx)((()=>[(0,e.createVNode)(d,{modelValue:a.options.subtitle.font_size[t],"onUpdate:modelValue":e=>a.options.subtitle.font_size[t]=e,max:500},null,8,["modelValue","onUpdate:modelValue"])]))})))]),1024)])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",fr,[gr,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(c,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.title_align,"onUpdate:modelValue":o[7]||(o[7]=e=>a.options.title_align=e),options:[{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ar,[br,(0,e.createTextVNode)(),(0,e.createVNode)(u,{id:"input-row-edit-text-color",modelValue:a.options.text_color,"onUpdate:modelValue":o[8]||(o[8]=e=>a.options.text_color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",hr,[vr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-row-edit-html-id",type:"text","onUpdate:modelValue":o[9]||(o[9]=e=>a.options.html_id=e),class:"form-control"},null,512),[[e.vModelText,a.options.html_id]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Vr,[Nr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-row-edit-html-class",type:"text","onUpdate:modelValue":o[10]||(o[10]=e=>a.options.html_class=e),class:"form-control"},null,512),[[e.vModelText,a.options.html_class]])]),(0,e.createTextVNode)()]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Cr,[(0,e.createVNode)(p,{modelValue:a.options.padding,"onUpdate:modelValue":o[11]||(o[11]=e=>a.options.padding=e)},{label:(0,e.withCtx)((()=>[(0,e.createTextVNode)("Padding")])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createVNode)(p,{modelValue:a.options.margin,"onUpdate:modelValue":o[12]||(o[12]=e=>a.options.margin=e)},{label:(0,e.withCtx)((()=>[(0,e.createTextVNode)("Margin")])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",xr,[yr,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(c,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.background.type,"onUpdate:modelValue":o[13]||(o[13]=e=>a.options.background.type=e),options:[{value:"none",text:"None"},{value:"color",text:"Color"},{value:"image",text:"Image"},{value:"gradient",text:"Gradient"},{value:"video",text:"Video"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["color","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",wr,[Er,(0,e.createTextVNode)(),(0,e.createVNode)(u,{id:"input-row-edit-bg-color",modelValue:a.options.background.color,"onUpdate:modelValue":o[14]||(o[14]=e=>a.options.background.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",kr,[(0,e.createElementVNode)("div",Br,[Tr,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.background.image.url,"onUpdate:modelValue":o[15]||(o[15]=e=>a.options.background.image.url=e),id:"input-row-edit-bg-image"},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",_r,[(0,e.createElementVNode)("div",Sr,[Mr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-row-edit-bg-size","onUpdate:modelValue":o[16]||(o[16]=e=>a.options.background.image.size=e),class:"form-select custom-select"},[Ur,(0,e.createTextVNode)(),Dr,(0,e.createTextVNode)(),Or,(0,e.createTextVNode)(),zr],512),[[e.vModelSelect,a.options.background.image.size,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Rr,[Zr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-row-edit-bg-repeat","onUpdate:modelValue":o[17]||(o[17]=e=>a.options.background.image.repeat=e),class:"form-select custom-select"},[Ir,(0,e.createTextVNode)(),Lr,(0,e.createTextVNode)(),jr,(0,e.createTextVNode)(),Pr,(0,e.createTextVNode)(),qr],512),[[e.vModelSelect,a.options.background.image.repeat,void 0,{lazy:!0}]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Fr,[(0,e.createElementVNode)("div",Yr,[Qr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-row-edit-bg-attachment","onUpdate:modelValue":o[18]||(o[18]=e=>a.options.background.image.attachment=e),class:"form-select custom-select"},[Wr,(0,e.createTextVNode)(),$r,(0,e.createTextVNode)(),Hr],512),[[e.vModelSelect,a.options.background.image.attachment,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Gr,[Jr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-row-edit-bg-position","onUpdate:modelValue":o[19]||(o[19]=e=>a.options.background.image.position=e),class:"form-select custom-select"},[Kr,(0,e.createTextVNode)(),Xr,(0,e.createTextVNode)(),ei,(0,e.createTextVNode)(),ti,(0,e.createTextVNode)(),oi,(0,e.createTextVNode)(),ni,(0,e.createTextVNode)(),ai,(0,e.createTextVNode)(),li,(0,e.createTextVNode)(),ri],512),[[e.vModelSelect,a.options.background.image.position,void 0,{lazy:!0}]])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>["gradient"===a.options.background.type?((0,e.openBlock)(),(0,e.createBlock)(f,{key:0,modelValue:a.options.background.gradient,"onUpdate:modelValue":o[20]||(o[20]=e=>a.options.background.gradient=e)},null,8,["modelValue"])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["video"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",ii,[(0,e.createElementVNode)("div",di,[si,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-row-edit-bg-video-url",type:"text","onUpdate:modelValue":o[21]||(o[21]=e=>a.options.background.video.url=e),class:"form-control"},null,512),[[e.vModelText,a.options.background.video.url]]),(0,e.createTextVNode)(),ci])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["video","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",ui,[(0,e.createElementVNode)("div",pi,[mi,(0,e.createTextVNode)(),(0,e.createVNode)(u,{id:"input-row-edit-bg-overlay",modelValue:a.options.background.overlay,"onUpdate:modelValue":o[22]||(o[22]=e=>a.options.background.overlay=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",fi,[gi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(g,{name:"row-edit-bg-parallax",modelValue:a.options.background.parallax,"onUpdate:modelValue":o[23]||(o[23]=e=>a.options.background.parallax=e),id:"input-row-edit-bg-parallax",shape:"circle",color:"success","true-value":!0,"false-value":!1},null,8,["modelValue"])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),Ai,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",bi,[hi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(c,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.justify_content,"onUpdate:modelValue":o[24]||(o[24]=e=>a.options.justify_content=e),options:[{value:"start",text:"Start"},{value:"center",text:"Center"},{value:"end",text:"End"},{value:"around",text:"Space Around"},{value:"between",text:"Space Between"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",vi,[Vi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-valign",modelValue:a.options.valign,"onUpdate:modelValue":o[25]||(o[25]=e=>a.options.valign=e),id:"input-row-edit-valign",shape:"circle",color:"success","true-value":"middle","false-value":"top"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ni,[Ci,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-fluid_row",modelValue:a.options.fluid_row,"onUpdate:modelValue":o[26]||(o[26]=e=>a.options.fluid_row=e),id:"input-row-edit-fluid_row",shape:"circle",color:"success","true-value":!0,"false-value":!1},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",xi,[yi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-no_gutter",modelValue:a.options.no_gutter,"onUpdate:modelValue":o[27]||(o[27]=e=>a.options.no_gutter=e),id:"input-row-edit-no_gutter",shape:"circle",color:"success","true-value":!0,"false-value":!1},null,8,["modelValue"])])]),(0,e.createTextVNode)(),wi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ei,[ki,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-hidden-mobile",modelValue:a.options.display.xs,"onUpdate:modelValue":o[28]||(o[28]=e=>a.options.display.xs=e),id:"input-row-edit-hidden-mobile",shape:"circle",color:"success","true-value":"d-none","false-value":"d-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Bi,[Ti,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-hidden-tablet",modelValue:a.options.display.md,"onUpdate:modelValue":o[29]||(o[29]=e=>a.options.display.md=e),id:"input-row-edit-hidden-tablet",shape:"circle",color:"success","true-value":"d-md-none","false-value":"d-md-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",_i,[Si,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-hidden-desktop",modelValue:a.options.display.lg,"onUpdate:modelValue":o[30]||(o[30]=e=>a.options.display.lg=e),id:"input-row-edit-hidden-desktop",shape:"circle",color:"success","true-value":"d-lg-none","false-value":"d-lg-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),Mi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ui,[Di,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Oi,[(0,e.createTextVNode)("\n Will auto prefix by "),(0,e.createElementVNode)("code",null,(0,e.toDisplayString)(`#luna-${t.values.id}`),1),(0,e.createTextVNode)(", only works for this scope.\n ")]),(0,e.createTextVNode)(),"layout"===a.currentTab?((0,e.openBlock)(),(0,e.createElementBlock)("div",zi,[(0,e.createVNode)(b,{ref:"cssEditor",modelValue:a.options.html_css,"onUpdate:modelValue":o[31]||(o[31]=e=>a.options.html_css=e),height:350},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ri,[(0,e.createVNode)(h,{id:"row-edit-anim",value:a.options.animation},null,8,["value"])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)()])),_:1},8,["open"])])}]]),Pi={name:"store",setup:()=>((0,e.onMounted)((()=>{})),{})},qi=(0,I.Z)(Pi,[["render",function(e,t,o,n,a,l){return null}]]),Fi=t=>((0,e.pushScopeId)("data-v-58abe7f2"),t=t(),(0,e.popScopeId)(),t),Yi={class:"form-group mb-3 d-flex align-items-center"},Qi=Fi((()=>(0,e.createElementVNode)("span",{class:"me-2"},"\n Filter:\n ",-1))),Wi={class:"c-template-manager__items row"},$i=["data-id"],Hi=["onClick"],Gi={class:"card-footer"},Ji={class:"d-flex"},Ki={class:"mb-0 me-2"},Xi={class:"ml-auto ms-auto"},ed=["onClick"],td=Fi((()=>(0,e.createElementVNode)("span",{class:"fa fa-trash"},null,-1))),od={class:"small mt-2"},nd={key:0,class:"d-flex justify-content-center py-5 my-5"},ad=[Fi((()=>(0,e.createElementVNode)("span",{class:"spinner spinner-border"},null,-1)))],ld={class:"form-group mb-3"},rd=Fi((()=>(0,e.createElementVNode)("label",{for:"input-tmpl-title"},"Title",-1))),id={class:"form-group mb-3"},dd=Fi((()=>(0,e.createElementVNode)("label",{for:"input-tmpl-description"},"Description",-1))),sd={class:"form-group mb-3"},cd=Fi((()=>(0,e.createElementVNode)("label",{for:"input-tmpl-image"},"Cover",-1))),ud={class:"form-group mb-3"},pd=["disabled"],md={name:"TemplateManager",components:{BsModal:L,SingleImage:ho.Z,ButtonRadio:$t.Z},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({q:"",filter:{type:""},items:[],loading:!1,callback:null,type:"",i:0,save:{id:null,type:null,title:"",description:"",image:"",content:null,loading:!1}}),l=(0,e.ref)(!1),r=(0,e.ref)(!1);function i(){a.save.type=null,a.save.content=null,a.save.image="",a.save.title=""}const d=(0,e.computed)((()=>{let e=a.type?a.type.split(",").map((e=>e.trim())):[];const t=[{text:"All",value:""}];return e.forEach((e=>{t.push({text:e,value:e})})),t})),s=(0,e.computed)((()=>a.items.filter((e=>!(a.filter.type&&e.type!==a.filter.type||""!==a.q&&-1===e.title.toUpperCase().indexOf(a.q.toUpperCase())&&(!e.description||-1===e.description.toUpperCase().indexOf(a.q.toUpperCase())))))));return{...(0,e.toRefs)(a),tmplModalShow:l,saveModalShow:r,filterButtons:d,filteredItems:s,open:function(e,t,o){a.callback=e,a.type=t,a.i=o,a.filter.type="",a.loading=!0,a.items=[],u.$http.get(u.route("@page_ajax",{task:"getTemplates",type:a.type})).then((e=>{a.items=e.data.data.map((e=>(e.key=u.uid(),e)))})).catch((e=>{console.error(e)})).finally((()=>{a.loading=!1})),l.value=!0},selected:function(e){l.value=!1,a.callback(e,a.type,a.i),n("selected",e,a.type,a.i),a.callback=null,a.type=null,a.i=null},remove:function(e,t){return u.$http.post("@page_ajax/removeTemplate",{id:e.id}).then((e=>{a.items.splice(t,1)})).catch((e=>{u.alert(e.statusText,"","warning")})).finally((()=>{}))},badgeColor:function(e){switch(e){case"page":return"dark";case"row":return"primary";case"column":return"warning";case"addon":return"danger"}},saveContent:function(){return a.save.loading=!0,u.$http.post("@page_ajax/saveTemplate",function(e){const t=new FormData;return(0,j.Z)(e,((e,o)=>{t.append(o,e)})),t}({id:a.save.id,type:a.save.type,image:a.save.image,title:a.save.title,description:a.save.description,content:JSON.stringify(this.save.content)})).then((e=>{r.value=!1,i()})).catch((e=>{u.alert(e.statusText,"","warning")})).finally((()=>{a.save.loading=!1}))},openSave:function(e,t){i(),a.save.type=t,a.save.content=e,r.value=!0},resetSaveData:i}}};l(8103);const fd={name:"PageBuilderApp",components:{BsModal:L,TemplateManager:(0,I.Z)(md,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("ButtonRadio"),d=(0,e.resolveComponent)("BsModal"),s=(0,e.resolveComponent)("SingleImage");return(0,e.openBlock)(),(0,e.createElementBlock)("div",null,[(0,e.createVNode)(d,{open:a.tmplModalShow,title:"Template",size:"xl",onHidden:o[2]||(o[2]=e=>a.tmplModalShow=!1),"class-name":"c-template-manager"},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",Yi,[Qi,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-filter",color:"primary",variant:"outline",size:"sm",class:"me-2",modelValue:t.filter.type,"onUpdate:modelValue":o[0]||(o[0]=e=>t.filter.type=e),options:a.filterButtons},null,8,["modelValue","options"]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"search",placeholder:"Search","onUpdate:modelValue":o[1]||(o[1]=e=>t.q=e),class:"form-control form-control-sm"},null,512),[[e.vModelText,t.q]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Wi,[(0,e.createVNode)(e.TransitionGroup,{name:"fade"},{default:(0,e.withCtx)((()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.filteredItems,((t,o)=>((0,e.openBlock)(),(0,e.createElementBlock)("div",{class:"col-md-6",key:t.id||t.key,"data-id":t.id,style:{"animation-duration":".3s"}},[(0,e.createElementVNode)("div",{class:"c-template-item card my-3",onClick:(0,e.withModifiers)((e=>a.selected(t)),["prevent"]),style:{cursor:"pointer"}},[(0,e.createElementVNode)("div",{class:"c-template-item__preview card-img-top",style:(0,e.normalizeStyle)({"background-image":`url(${t.image})`})},null,4),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Gi,[(0,e.createElementVNode)("div",Ji,[(0,e.createElementVNode)("h5",Ki,(0,e.toDisplayString)(t.title||"No title"),1),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["badge",`bg-${a.badgeColor(t.type)}`])},(0,e.toDisplayString)(t.type),3)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Xi,[!0===t.can_delete?((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:0,href:"#",class:"text-dark",onClick:(0,e.withModifiers)((e=>a.remove(t,o)),["prevent","stop"])},[td,(0,e.createTextVNode)("\n Delete\n ")],8,ed)):(0,e.createCommentVNode)("",!0)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",od,(0,e.toDisplayString)(t.description||"No description"),1)])],8,Hi)],8,$i)))),128))])),_:1})]),(0,e.createTextVNode)(),0===t.items.length&&this.loading?((0,e.openBlock)(),(0,e.createElementBlock)("div",nd,ad)):(0,e.createCommentVNode)("",!0)])),_:1},8,["open"]),(0,e.createTextVNode)(),(0,e.createVNode)(d,{open:a.saveModalShow,onHidden:o[7]||(o[7]=e=>a.saveModalShow=!1),title:"Save as Template"},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",null,[(0,e.createTextVNode)("\n Save as: "),(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["badge",`bg-${a.badgeColor(t.save.type)}`])},(0,e.toDisplayString)(t.save.type),3)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ld,[rd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-tmpl-title",type:"text",class:"form-control","onUpdate:modelValue":o[3]||(o[3]=e=>t.save.title=e)},null,512),[[e.vModelText,t.save.title]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",id,[dd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.withDirectives)((0,e.createElementVNode)("textarea",{id:"input-tmpl-description",type:"text",class:"form-control","onUpdate:modelValue":o[4]||(o[4]=e=>t.save.description=e),rows:"3"},null,512),[[e.vModelText,t.save.description]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",sd,[cd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(s,{modelValue:t.save.image,"onUpdate:modelValue":o[5]||(o[5]=e=>t.save.image=e),id:"input-tmpl-image"},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ud,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary btn-block",disabled:t.save.loading,onClick:o[6]||(o[6]=function(){return a.saveContent&&a.saveContent(...arguments)})},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(t.save.loading?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save\n ")],8,pd)])])])),_:1},8,["open"])])}],["__scopeId","data-v-58abe7f2"]]),Store:qi,AddonEdit:qo,ColumnEdit:pl,RowEdit:ji,Row:Fl,CssEditor:vt},setup(t){const o=(0,e.ref)(null),n=(0,e.reactive)({content:u.data("builder-content")||[],drag:!1,editing:{column:{},row:{},addon:{}},addons:u.data("addons")||[],css:u.data("css")||"",saving:!1,cssModalShow:!1}),a=(0,e.inject)("app");for(const t in n.addons){const o=n.addons[t];o.componentModuleUrl&&S.import(o.componentModuleUrl).then((t=>{a.component(o.componentName,t.default(a,e))}))}u.trigger("page-builder.created",(0,e.getCurrentInstance)());const l=(0,e.ref)(null),r=(0,e.ref)(null),i=(0,e.ref)(null),d=(0,e.ref)(null),s=(0,e.ref)(null);function c(){n.cssModalShow=!0}function p(e,t){try{const o=JSON.parse(e);if(!Array.isArray(o))return void m(o,t);o.forEach((e=>{m(e,t++)}))}catch(e){console.error(e),alert("Invalid format.")}}function m(e,t){(e=JSON.parse(JSON.stringify(e))).id="row-"+u.uid(),e.columns=f(e.columns),n.content.splice(t+1,0,e)}function f(e){return e.map((e=>(e.id="col-"+u.uid(),e.addons=g(e.addons),e)))}function g(e){return e.map((e=>"row"!==e.type?(e.id="addon-"+u.uid(),e):(e.id="row-"+u.uid(),e.columns=e.columns.map((e=>(e.id="col-"+u.uid(),e.addons=g(e.addons),e))),e)))}(0,e.onMounted)((()=>{"#css"===location.hash&&c(),u.delegate(o.value,".btn-close","click",(e=>{e.preventDefault()})),function(){const e=document.querySelector("[data-task=save]");let t="";null==e||e.addEventListener("click",(()=>{const o=e.querySelector("[data-spinner]");e.disabled=!0,t=o.getAttribute("class"),o.setAttribute("class","spinner-border spinner-border-sm"),jt().then((e=>(console.log("Save Success!"),e))).finally((()=>{e.disabled=!1,o.setAttribute("class",t)}))}))}(),function(e,t){let{rowEditor:o,columnEditor:n,addonEditor:a,addonListShow:l,tmplManager:r}=t;u.on("row:edit",(t=>{e.editing.column={},e.editing.addon={},e.editing.row={},e.editing.row=t,o.value.edit(t)})),u.on("row:save",(t=>{(0,j.Z)(t,((t,o)=>{e.editing.row[o]=t}))})),u.on("column:edit",(t=>{e.editing.row={},e.editing.addon={},e.editing.column={},e.editing.column=t,n.value.edit(t)})),u.on("column:save",(t=>{(0,j.Z)(t,((t,o)=>{e.editing.column[o]=t}))})),u.on("addon:add",(t=>{e.editing.column={},e.editing.column=t,l.value=!0})),u.on("addon:edit",((t,o)=>{e.editing.row={},e.editing.column={},e.editing.addon={},e.editing.addon=t,e.editing.column=o,a.value.edit(t)})),u.on("addon:save",(t=>{0===e.editing.column.addons.filter((e=>e.id===t.id)).length&&e.editing.column.addons.push(t),(0,j.Z)(t,((t,o)=>{e.editing.addon[o]=t}))})),u.on("tmpl.open",((e,t,o)=>{r.value.open(e,t,o)})),u.on("tmpl.save",((e,t)=>{r.value.openSave(e,t)})),u.trigger("page-builder.mounted",this)}(n,{rowEditor:l,columnEditor:r,addonEditor:i,addonListShow:d,tmplManager:s})}));const A=document.querySelector("#input-item-content");(0,e.watch)((()=>n.content),(()=>{A.value=JSON.stringify(n.content)}),{immediate:!0,deep:!0});const b=document.querySelector("#input-item-css");return(0,e.watch)((()=>n.css),(()=>{b.value=n.css}),{immediate:!0,deep:!0}),{root:o,rowEditor:l,columnEditor:r,addonEditor:i,tmplManager:s,addonListShow:d,...(0,e.toRefs)(n),cssEdit:c,addNewRow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=e?n.content.splice(e+1,0,Yt()):n.content.push(Yt())},deleteRow:function(e){n.content.splice(e,1)},copy:function(){Pt(n.content)},paste:async function(){const e=await qt();try{JSON.parse(e).forEach((e=>{m(e,n.content.length)}))}catch(e){console.error(e),alert("Invalid format.")}},pasteTo:p,pastePage:async function(e,t){return p(await qt(),t)},duplicateRow:m,handleDuplicateAddons:g,handleDuplicateColumns:f,columnsChange:function(e,t){e.columns=t.columns},selectAddon:function(t){d.value=!1;const o=u.data("addons")[t];u.trigger("addon:edit",{...o,id:"addon-"+u.uid(),is:"addon"},n.editing.column),(0,e.nextTick)((()=>{u.selectAll(".bs-tooltip-auto",(e=>{e.parentElement.removeChild(e)}))}))},emptyRow:Yt,openTemplates:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;u.trigger("tmpl.open",((e,t,o)=>{p(e.content,o)}),"page,row",e)},savePage:function(){n.saving=!0,(0,e.nextTick)((()=>{jt(n.saving).finally((()=>{n.saving=!1}))}))}}}};l(75);const gd=(0,I.Z)(fd,[["render",function(l,u,_,S,M,U){const D=(0,e.resolveComponent)("Row"),O=(0,e.resolveComponent)("draggable"),z=(0,e.resolveComponent)("RowEdit"),R=(0,e.resolveComponent)("ColumnEdit"),Z=(0,e.resolveComponent)("AddonEdit"),I=(0,e.resolveComponent)("BsModal"),L=(0,e.resolveComponent)("TemplateManager"),j=(0,e.resolveComponent)("CssEditor"),P=(0,e.resolveComponent)("Store"),q=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createElementBlock)("div",t,[(0,e.createElementVNode)("div",o,[(0,e.createElementVNode)("div",n,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:u[0]||(u[0]=function(){return S.cssEdit&&S.cssEdit(...arguments)}),style:{"min-width":"150px"}},[a,(0,e.createTextVNode)("\n Edit CSS\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",r,[(0,e.createElementVNode)("div",i,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:u[1]||(u[1]=e=>S.openTemplates(l.content.length))},d),(0,e.createTextVNode)(),s,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",c,[(0,e.createElementVNode)("button",{class:"dropdown-item",onClick:u[2]||(u[2]=e=>l.$trigger("tmpl.save",l.content,"page"))},[p,(0,e.createTextVNode)("\n Save as Template\n ")])])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:u[3]||(u[3]=function(){return S.copy&&S.copy(...arguments)}),style:{"min-width":"150px"}},[m,(0,e.createTextVNode)("\n Copy page content\n ")])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",f,[(0,e.createElementVNode)("div",g,[(0,e.createVNode)(O,(0,e.mergeProps)({modelValue:l.content,"onUpdate:modelValue":u[4]||(u[4]=e=>l.content=e),onStart:u[5]||(u[5]=e=>l.drag=!0),onEnd:u[6]||(u[6]=e=>l.drag=!1)},{handle:".row-move-handle",animation:300},{"item-key":"id"}),{item:(0,e.withCtx)((t=>{let{element:o,index:n}=t;return[(0,e.createVNode)(D,{class:"body__row page-row mb-4",value:o,"move-handle":"row-move-handle",onColumnsChange:e=>S.columnsChange(o,e),onAdd:e=>S.addNewRow(n),onDuplicate:e=>S.duplicateRow(e||o,n),onPastePage:e=>S.pastePage(e,n),onOpenTemplates:e=>S.openTemplates(n),onDelete:e=>S.deleteRow(n)},null,8,["value","onColumnsChange","onAdd","onDuplicate","onPastePage","onOpenTemplates","onDelete"])]})),_:1},16,["modelValue"])]),(0,e.createTextVNode)(),0===l.content.length?((0,e.openBlock)(),(0,e.createElementBlock)("div",A,[(0,e.createElementVNode)("div",b,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:u[7]||(u[7]=e=>S.addNewRow())},"\n Add New Row\n "),(0,e.createTextVNode)(),h,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",v,[(0,e.createElementVNode)("div",{class:"dropdown-item",onClick:u[8]||(u[8]=function(){return S.paste&&S.paste(...arguments)})},[V,(0,e.createTextVNode)("\n Paste\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",{class:"dropdown-item",onClick:u[9]||(u[9]=function(){return S.paste&&S.paste(...arguments)})},[N,(0,e.createTextVNode)("\n Insert Template\n ")])])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),(0,e.createVNode)(z,{ref:"rowEditor"},null,512),(0,e.createTextVNode)(),(0,e.createVNode)(R,{ref:"columnEditor"},null,512),(0,e.createTextVNode)(),(0,e.createVNode)(Z,{ref:"addonEditor"},null,512),(0,e.createTextVNode)(),(0,e.createVNode)(I,{open:S.addonListShow,onHidden:u[10]||(u[10]=e=>S.addonListShow=!1),size:"lg",class:"c-modal-addon-select",title:"New Addon"},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",C,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(l.addons,(t=>((0,e.openBlock)(),(0,e.createElementBlock)("div",x,[(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{class:"d-inline-block p-4 c-addon__link btn btn-outline-dark w-100 text-center",href:"javascript://",title:t.description,onClick:(0,e.withModifiers)((e=>S.selectAddon(t.type)),["prevent"])},[(0,e.createElementVNode)("div",w,[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(["fa-3x",t.icon])},null,2)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("h5",E,(0,e.toDisplayString)(t.name),1)],8,y)),[[q]])])))),256))])])),_:1},8,["open"]),(0,e.createTextVNode)(),(0,e.createVNode)(L,{ref:"tmplManager"},null,512),(0,e.createTextVNode)(),(0,e.createVNode)(I,{title:"CSS Edit (Support SCSS)",size:"xl",class:"c-modal-css-edit",open:l.cssModalShow,onHidden:u[14]||(u[14]=e=>l.cssModalShow=!1),backdrop:"static"},{footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",k,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-dark",style:{"min-width":"150px"},onClick:u[12]||(u[12]=e=>l.cssModalShow=!1)},[B,(0,e.createTextVNode)("\n Close\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary",style:{"min-width":"200px"},onClick:u[13]||(u[13]=function(){return S.savePage&&S.savePage(...arguments)}),disabled:l.saving},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(l.saving?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save\n ")],8,T)])])),default:(0,e.withCtx)((()=>[(0,e.createVNode)(j,{modelValue:l.css,"onUpdate:modelValue":u[11]||(u[11]=e=>l.css=e),"auto-focus":!0},null,8,["modelValue"]),(0,e.createTextVNode)()])),_:1},8,["open"])]),(0,e.createTextVNode)(),(0,e.createVNode)(P)],512)}]]),Ad=["disabled"],bd={class:"card bg-light column__body"},hd={class:"card-body p-2"},vd={class:"column__title mb-2 d-flex align-items-center"},Vd=(0,e.createElementVNode)("div",{class:"column__move"},[(0,e.createElementVNode)("div",{class:"badge bg-secondary column-move-handle me-2",style:{cursor:"move"}},[(0,e.createElementVNode)("span",{class:"fa fa-fw fa-arrows-alt"})])],-1),Nd=(0,e.createElementVNode)("h6",{class:"m-0"},"COL",-1),Cd={key:0},xd={class:"column__actions ml-auto ms-auto text-nowrap"},yd=(0,e.createElementVNode)("span",{class:"fa fa-plus"},null,-1),wd=[(0,e.createElementVNode)("span",{class:"fa fa-edit"},null,-1)],Ed={class:"dropdown d-inline-block"},kd=(0,e.createElementVNode)("button",{type:"button",href:"#",class:"btn btn-sm px-2 py-0 btn-outline-secondary","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"fa fa-arrows-alt-h"})],-1),Bd={class:"form-group mb-3"},Td=["for"],_d=["id"],Sd=["value"],Md={class:"form-group mb-3"},Ud=["for"],Dd=["id"],Od=(0,e.createElementVNode)("option",{value:""},"- None -",-1),zd=["value"],Rd={class:"form-group mb-3"},Zd=["for"],Id=["id"],Ld=(0,e.createElementVNode)("option",{value:""},"- None -",-1),jd=["value"],Pd={class:"d-inline-block dropdown"},qd=(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm px-2 py-0","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"fa fa-cog"})],-1),Fd={class:"dropdown-menu dropdown-menu-end dropdown-menu-right"},Yd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-clone"},null,-1),Qd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-copy"},null,-1),Wd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-paste"},null,-1),$d=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-plus"},null,-1),Hd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-file-code"},null,-1),Gd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-save"},null,-1),Jd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-trash"},null,-1),Kd={class:"column__addon mb-2",style:{"animation-duration":".3s"}},Xd=[(0,e.createElementVNode)("span",{class:"fa fa-plus-circle fa-3x d-inline-block"},null,-1)];var es=l(703);const ts=function(e){return null==e?[]:function(e,t){return Ct(t,(function(t){return e[t]}))}(e,(0,es.Z)(e))},os=t=>((0,e.pushScopeId)("data-v-230a3e91"),t=t(),(0,e.popScopeId)(),t),ns=["disabled"],as={class:"card-body d-flex"},ls={class:"c-addon-instance__icon"},rs={class:"c-addon-instance__title ms-2"},is={class:"m-0"},ds={class:"text-muted"},ss={key:0,class:"small"},cs={class:"c-addon-instance__toolbar"},us=[os((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-edit"},null,-1)))],ps=[os((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-clone"},null,-1)))],ms=[os((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-copy"},null,-1)))],fs=[os((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-eye-slash"},null,-1)))],gs=[os((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-eye"},null,-1)))],As={class:"dropdown d-inline-block"},bs=os((()=>(0,e.createElementVNode)("button",{type:"button",class:"btn btn-link btn-mini p-0 d-inline-block","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"fa fa-fw fa-gear text-dark"})],-1))),hs={class:"dropdown-menu dropdown-menu-end dropdown-menu-right"},vs=os((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-save"},null,-1))),Vs=os((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-trash"},null,-1))),Ns={name:"addon",components:{},props:{content:Object,column:Object,index:Number},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({options:{}});a.options=t.content.options,(0,e.watch)((()=>t.content),(()=>{a.options=t.content.options}),{deep:!0});const l=(0,e.computed)((()=>u.isDebug()));return{...(0,e.toRefs)(a),debug:l,edit:function(){u.trigger("addon:edit",t.content,t.column)},toggleDisabled:function(e){const o=e.currentTarget;Number(bootstrap.Tooltip.VERSION.split(".").shift())<=4?$(o).tooltip("hide"):u.$ui.bootstrap.tooltip(o).hide(),o.blur(),t.content.disabled=!t.content.disabled},copy:function(){Pt(t.content)},duplicate:function(){n("duplicate")},remove:function(){u.confirm("Are you sure to delete it?").then((()=>n("delete")))}}}};l(3385);const Cs={name:"Column",components:{Row:Fl,Addon:(0,I.Z)(Ns,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createElementBlock)("div",{class:"card c-addon-instance border-2 move-handle",style:{cursor:"move"},disabled:!!n.content.disabled||null},[(0,e.createElementVNode)("div",as,[(0,e.createElementVNode)("div",ls,[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(n.content.icon)},null,2)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",rs,[(0,e.createElementVNode)("h6",is,(0,e.toDisplayString)(t.addonProp("name",n.content.type)),1),(0,e.createTextVNode)(),(0,e.createElementVNode)("small",ds,(0,e.toDisplayString)(t.options.label||t.options.title.text),1),(0,e.createTextVNode)(),a.debug?((0,e.openBlock)(),(0,e.createElementBlock)("code",ss,(0,e.toDisplayString)(n.content.id),1)):(0,e.createCommentVNode)("",!0)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",cs,[n.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:0,href:"#",class:"text-dark",title:"Edit",onClick:o[0]||(o[0]=(0,e.withModifiers)((e=>a.edit()),["prevent"]))},us)),[[i]]),(0,e.createTextVNode)(),n.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:1,href:"#",class:"text-dark",title:"Duplicate",onClick:o[1]||(o[1]=(0,e.withModifiers)((e=>a.duplicate()),["prevent"]))},ps)),[[i]]),(0,e.createTextVNode)(),n.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:2,href:"#",class:"text-dark",title:"Copy",onClick:o[2]||(o[2]=(0,e.withModifiers)((e=>a.copy()),["prevent"]))},ms)),[[i]]),(0,e.createTextVNode)(),n.content.disabled?(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:3,href:"#",class:"text-dark",title:"Enable",onClick:o[3]||(o[3]=(0,e.withModifiers)((e=>a.toggleDisabled(e)),["prevent"]))},fs)),[[i]]):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:4,href:"#",class:"text-dark",title:"Disable",onClick:o[4]||(o[4]=(0,e.withModifiers)((e=>a.toggleDisabled(e)),["prevent"]))},gs)),[[i]]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",As,[bs,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",hs,[(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[5]||(o[5]=e=>t.$trigger("tmpl.save",n.content,"addon"))},[vs,(0,e.createTextVNode)("\n Save as Template\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[6]||(o[6]=function(){return a.remove&&a.remove(...arguments)})},[Vs,(0,e.createTextVNode)("\n Delete\n ")])])])])])],8,ns)}],["__scopeId","data-v-230a3e91"]])},props:{value:Object,index:Number,child:{type:Boolean,default:!1}},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({content:{},drag:!1,widthMenuOpen:""});function l(e){try{const t=JSON.parse(e);if(!t.id)throw new Error("Invalid format");if(It(t.id,"addon-")||It(t.id,"row-"))return void i(t,a.content.addons.length-1);if(It(t.id,"col-"))return void swal({title:"You are pasting a column to another column...",text:"Please choose an action.",buttons:{add:{text:"Merge",value:"add",className:"btn-info"},replace:{text:"Replace",value:"replace",className:"btn-warning"},append:{text:"After",value:"append",className:"btn-dark"}}}).then((e=>{switch(e){case"replace":a.content.addons=[];case"add":t.addons.forEach((e=>{i(e,d.value.length-1)}));break;case"append":r(a.content)}}))}catch(e){console.error(e),alert("Invalid format.")}}function r(){n("duplicate",arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)}function i(e,o){const n=Ft(e,t.child);n&&d.value.splice(o+1,0,n)}a.content=t.value,a.content=(0,Vt.Z)(a.content,Qt());const d=(0,e.computed)((()=>a.content.addons)),s=(0,e.computed)((()=>a.content.options)),c=(0,e.computed)((()=>ts(s.value.width).join(" ")));return(0,e.watch)((()=>t.value),(()=>{a.content=t.value}),{deep:!0}),{...(0,e.toRefs)(a),addons:d,options:s,width:c,edit:function(){u.trigger("column:edit",a.content)},paste:function(){qt().then((e=>{l(e)}))},closeWidthMenu:function(){a.widthMenuOpen=!1},pasteData:l,duplicate:r,copy:function(){Pt(a.content)},toggleDisabled:function(){a.content.disabled=!a.content.disabled},remove:function(){u.confirm("Are you sure you want to delete?").then((()=>n("delete")))},duplicateThisAddon:i,addAddon:function(){u.trigger("addon:add",a.content)},addNewRow:function(){const e=Yt();e.type="row",a.content.addons.push(e)},deleteAddon:function(e){d.value.splice(e,1)},widthRange:function(){return cl(1,13)},getEmptyColumn:function(){return Qt(t.child)},openTemplates:function(){u.trigger("tmpl.open",((e,t,o)=>{l(e.content)}),"column,addon",d.value.length)}}},methods:{},watch:{},computed:{}},xs=(0,I.Z)(Cs,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("Addon"),d=(0,e.resolveComponent)("Row"),s=(0,e.resolveComponent)("draggable"),c=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createElementBlock)("div",{class:(0,e.normalizeClass)(["",a.width]),disabled:!!t.content.disabled||null},[(0,e.createElementVNode)("div",bd,[(0,e.createElementVNode)("div",hd,[(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["column__top-bar d-flex mb-2",{"p-2":n.child}])},[(0,e.createElementVNode)("div",vd,[Vd,(0,e.createTextVNode)(),Nd,(0,e.createTextVNode)(),t.$debug?((0,e.openBlock)(),(0,e.createElementBlock)("code",Cd,(0,e.toDisplayString)(t.content.id),1)):(0,e.createCommentVNode)("",!0)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",xd,[t.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",class:"btn btn-sm px-2 py-0 btn-primary",title:"New Addon",onClick:o[0]||(o[0]=e=>a.addAddon())},[yd,(0,e.createTextVNode)()])),[[c]]),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:1,type:"button",class:"btn btn-sm px-2 py-0 btn-outline-secondary",onClick:o[1]||(o[1]=e=>a.edit()),title:"Edit Column"},wd)),[[c]]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ed,[kd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["dropdown-menu dropdown-menu-right dropdown-menu-end px-3",t.widthMenuOpen])},[(0,e.createElementVNode)("div",Bd,[(0,e.createElementVNode)("label",{for:`input-column-edit-width-desktop--${t.content.id}`,class:"d-block"},"\n Desktop Width\n ",8,Td),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:`input-column-edit-width-desktop--${t.content.id}`,onClick:o[2]||(o[2]=(0,e.withModifiers)((()=>{}),["stop"])),"onUpdate:modelValue":o[3]||(o[3]=e=>t.content.options.width.lg=e),class:"form-select custom-select"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-lg-"+t},"\n col-lg-"+(0,e.toDisplayString)(t),9,Sd)))),256))],8,_d),[[e.vModelSelect,t.content.options.width.lg]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Md,[(0,e.createElementVNode)("label",{for:`input-column-edit-width-tablet--${t.content.id}`,class:"d-block"},"\n Tablet Width\n ",8,Ud),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:`input-column-edit-width-tablet--${t.content.id}`,onClick:o[4]||(o[4]=(0,e.withModifiers)((()=>{}),["stop"])),"onUpdate:modelValue":o[5]||(o[5]=e=>t.content.options.width.md=e),class:"form-select custom-select"},[Od,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-md-"+t},"\n col-md-"+(0,e.toDisplayString)(t),9,zd)))),256))],8,Dd),[[e.vModelSelect,t.content.options.width.md]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Rd,[(0,e.createElementVNode)("label",{for:`input-column-edit-width-mobile--${t.content.id}`,class:"d-block"},"\n Mobile Width\n ",8,Zd),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:`input-column-edit-width-mobile--${t.content.id}`,onClick:o[6]||(o[6]=(0,e.withModifiers)((()=>{}),["stop"])),"onUpdate:modelValue":o[7]||(o[7]=e=>t.content.options.width.xs=e),class:"form-select custom-select"},[Ld,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-"+t},"\n col-"+(0,e.toDisplayString)(t),9,jd)))),256))],8,Id),[[e.vModelSelect,t.content.options.width.xs]])])],2)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Pd,[qd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Fd,[t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",class:"dropdown-item",onClick:o[8]||(o[8]=e=>a.duplicate())},[Yd,(0,e.createTextVNode)("\n Clone\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:1,type:"button",class:"dropdown-item",onClick:o[9]||(o[9]=e=>a.copy())},[Qd,(0,e.createTextVNode)("\n Copy\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:2,type:"button",class:"dropdown-item",onClick:o[10]||(o[10]=e=>a.paste())},[Wd,(0,e.createTextVNode)("\n Paste\n ")])),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[11]||(o[11]=e=>a.toggleDisabled())},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(["fa fa-fw",[t.content.disabled?"fa-eye":"fa-eye-slash"]])},null,2),(0,e.createTextVNode)(" "+(0,e.toDisplayString)(t.content.disabled?"Enabled":"Disabled"),1)]),(0,e.createTextVNode)(),t.content.disabled||n.child?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:3,type:"button",class:"dropdown-item",onClick:o[12]||(o[12]=e=>a.addNewRow())},[$d,(0,e.createTextVNode)("\n New Row\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:4,type:"button",class:"dropdown-item",onClick:o[13]||(o[13]=function(){return a.openTemplates&&a.openTemplates(...arguments)})},[Hd,(0,e.createTextVNode)("\n Insert Template\n ")])),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[14]||(o[14]=e=>t.$trigger("tmpl.save",t.content,"column"))},[Gd,(0,e.createTextVNode)("\n Save as Template\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[15]||(o[15]=e=>a.remove())},[Jd,(0,e.createTextVNode)("\n Delete\n ")])])])])],2),(0,e.createTextVNode)(),(0,e.createVNode)(s,(0,e.mergeProps)({modelValue:t.content.addons,"onUpdate:modelValue":o[17]||(o[17]=e=>t.content.addons=e),onStart:o[18]||(o[18]=e=>t.drag=!0),onEnd:o[19]||(o[19]=e=>t.drag=!1),onAdd:o[20]||(o[20]=(0,e.withModifiers)((()=>{}),["stop"]))},{handle:".move-handle",group:"addon",animation:300},{style:{"min-height":"50px"},class:"column__draggable","item-key":"id"}),{item:(0,e.withCtx)((o=>{let{element:n,index:l}=o;return[(0,e.createElementVNode)("div",Kd,["row"!==n.type?((0,e.openBlock)(),(0,e.createBlock)(i,{onDelete:e=>a.deleteAddon(l),onDuplicate:e=>a.duplicateThisAddon(n,l),index:l,key:n.id,content:n,column:t.content},null,8,["onDelete","onDuplicate","index","content","column"])):((0,e.openBlock)(),(0,e.createBlock)(d,{index:l,key:n.id,value:n,child:!0,onDuplicate:e=>a.duplicateThisAddon(n,l),"move-handle":"move-handle","comment-columns-change":"columnsChange(addon, $event)",onDelete:e=>a.deleteAddon(l),onAdd:a.addNewRow},null,8,["index","value","onDuplicate","onDelete","onAdd"]))])]})),footer:(0,e.withCtx)((()=>[0===a.addons.length?((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:0,class:"column__addon-placeholder text-center p-3 border text-secondary bg-white d-block",style:{"text-decoration":"none"},href:"#",onClick:o[16]||(o[16]=(0,e.withModifiers)((e=>a.addAddon()),["prevent"]))},Xd)):(0,e.createCommentVNode)("",!0)])),_:1},16,["modelValue"])])])],10,Ad)}]]);l(8045);const ys={mounted(e){const t=(0,Vt.Z)({},u.data("tinymce_options")||{},{target:e,height:500,plugins:["advlist","autolink","lists","link","image","charmap","preview","anchor","pagebreak","searchreplace","wordcount","visualblocks","visualchars","code","fullscreen","insertdatetime","media","nonbreaking","save","table","directionality","emoticons","template"],toolbar:"bold italic strikethrough forecolor backcolor blockquote removeformat | styles fontsize | alignleft aligncenter alignright alignjustify bullist numlist outdent indent | link image media table code | fullscreen",toolbar_mode:"sliding",font_size_formats:"13px 14px 15px 16px 18px 20px 22px 28px 36px 48px",menubar:!1,content_css:u.data("tinymce_content_css"),document_base_url:u.uri("root"),paste_data_images:!0,remove_script_host:!0,relative_urls:!0,convert_urls:!0,entity_encoding:"raw",table_header_type:"sectionCells",table_class_list:[{title:"BS Simple",value:"table"},{title:"BS Striped",value:"table table-striped"},{title:"BS Bordered",value:"table table-bordered"},{title:"BS Striped Bordered",value:"table table-striped table-bordered"},{title:"None",value:""}],images_upload_url:u.route("@file_upload"),setup:function(t){t.on("change undo redo",(o=>{e.value=t.getContent(),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new Event("input",{bubbles:!0}))})),t.on("input",(o=>{e.value=t.getContent(),e.dispatchEvent(new Event("input",{bubbles:!0}))}))}});u.$ui.tinymce.loadTinymce().then((()=>{tinymce.remove(),u.$ui.tinymce.create(e,t)}))}};document.addEventListener("focusin",(e=>{null!==e.target.closest(".mce-window, .tox-tinymce, .tox-tinymce-aux, .moxman-window, .tam-assetmanager-root")&&e.stopImmediatePropagation()}));class ws{static install(e){e.directive("tooltip",{mounted(e,t){let{value:o}=t;u.$ui.bootstrap.tooltip(e,o||{})},updated(e,t){let{value:o}=t;u.$ui.bootstrap.tooltip(e,o||{}).update()},beforeUnmount(e){u.$ui.bootstrap.tooltip(e).dispose()}})}}l.e(737).then(l.t.bind(l,6737,23)),S.import("@main").then((()=>Promise.all([u.importSync("@sortablejs","@vuedraggable"),u.importCSS("@vue2-animate")]))).then((()=>{const t=(0,e.createApp)(gd,{name:"page-builder"});t.config.globalProperties.$debug=u.isDebug(),t.config.globalProperties.$trigger=function(){return u.trigger(...arguments)},t.config.globalProperties.addonProp=(e,t)=>u.data("addons")[t][e],t.component("draggable",vuedraggable),t.component("Row",Fl),t.component("Column",xs),t.component("addon-text",(0,e.defineAsyncComponent)((()=>l.e(154).then(l.bind(l,154))))),t.component("addon-image",(0,e.defineAsyncComponent)((()=>l.e(518).then(l.bind(l,4518))))),t.component("addon-feature",(0,e.defineAsyncComponent)((()=>l.e(298).then(l.bind(l,7298))))),t.component("addon-emptyspace",(0,e.defineAsyncComponent)((()=>l.e(228).then(l.bind(l,6228))))),t.component("addon-button",(0,e.defineAsyncComponent)((()=>l.e(804).then(l.bind(l,2804))))),t.directive("tinymce",ys),t.use(ws),u.trigger("page-builder.app.prepared",t),t.provide("app",t),u.domready((()=>{t.mount("page-builder-app")}))}))})()})(); +(()=>{var e,t,o,n={8045:(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var n=o(1554),a=o(311);function l(e,t,o){let{emit:l}=t;return o.options=o.options||{},o.options=(0,n.Z)(e.modelValue||{},o.options),o=(0,a.reactive)(o),(0,a.onMounted)((()=>{})),(0,a.watch)((()=>o.options),(e=>{l("update:modelValue",e)}),{deep:!0}),o}l.props={modelValue:Object,addonId:String},window.lunaAddonMixin=l},7266:(e,t,o)=>{"use strict";o.d(t,{Z:()=>w});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l),i=o(1667),d=o.n(i),c=new URL(o(6270),o.b),s=new URL(o(9376),o.b),u=new URL(o(3220),o.b),p=new URL(o(1686),o.b),m=new URL(o(4859),o.b),f=new URL(o(6387),o.b),g=new URL(o(1520),o.b),A=new URL(o(8898),o.b),b=r()(a()),h=d()(c),v=d()(s),V=d()(u),N=d()(p),C=d()(m),x=d()(f),y=d()(g),E=d()(A);b.push([e.id,`.sp-container{position:absolute;top:0;left:0;display:inline-block;z-index:9999994;overflow:hidden;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;user-select:none}.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-container button{user-select:none}.sp-original-input-container{position:relative;display:inline-flex}.sp-original-input-container input{margin:0 !important}.sp-original-input-container .sp-add-on{width:40px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.sp-original-input-container .sp-add-on .sp-colorize{height:100%;width:100%;border-radius:inherit}input.spectrum.with-add-on{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.sp-colorize-container{background-image:url(${h});background-image:url(${v})}.sp-container.sp-flat{position:relative}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20px !important}.sp-hue{position:absolute;top:0;right:0;bottom:0;width:12px;height:100%;left:initial !important;background:-moz-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:-ms-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:-o-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:-webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(0.17, #ffff00), color-stop(0.33, #00ff00), color-stop(0.5, #00ffff), color-stop(0.67, #0000ff), color-stop(0.83, #ff00ff), to(#ff0000));background:-webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%)}.sp-clear-enabled .sp-hue{top:15%;height:85%}.sp-clear-enabled .sp-clear{display:block;position:absolute;top:3px;right:0;bottom:0;cursor:pointer;left:initial;height:14px;width:14px}.sp-fill{padding-top:80%}.sp-sat{position:absolute;top:0;left:0;right:0;bottom:0;background-image:linear-gradient(to right, #fff, rgba(204, 154, 129, 0))}.sp-val{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:4px;background-image:linear-gradient(to top, #000, rgba(204, 154, 129, 0))}.sp-alpha-enabled .sp-top{margin-bottom:28px !important}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-3px;cursor:pointer;height:16px;border-radius:50%;width:16px;margin-right:5px;left:-2px;right:0;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;user-select:none}.sp-alpha{display:none;position:absolute;bottom:-18px;right:0;left:0;height:10px;user-select:none}.sp-alpha-inner{border-radius:4px}.sp-clear{display:none;user-select:none}.sp-clear.sp-clear-display{background-position:center}.sp-replacer{user-select:none}.sp-preview{user-select:none}.sp-dragger{user-select:none;border-radius:5px;height:10px;width:10px;border:1px solid #fff;cursor:pointer;position:absolute;top:0;left:0;margin-left:3px;margin-top:3px;box-shadow:0 0 2px 1px rgba(0,0,0,.2)}.sp-slider{user-select:none;position:absolute;top:0;cursor:pointer;height:16px;border-radius:50%;width:16px;left:-2px;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;margin-top:8px}.sp-container.sp-dragging .sp-input{user-select:none}.sp-container.sp-input-disabled .sp-input-container{display:none}.sp-container.sp-buttons-disabled .sp-button-container{display:none}.sp-container.sp-palette-buttons-disabled .sp-palette-button-container{display:none}.sp-palette-only .sp-picker-container{display:none}.sp-palette-disabled .sp-palette-container{display:none}.sp-initial-disabled .sp-initial{display:none}.sp-1{height:17%}.sp-2{height:16%}.sp-3{height:17%}.sp-4{height:17%}.sp-5{height:16%}.sp-6{height:17%}.sp-hidden{display:none !important}.sp-cf{*zoom:1}.sp-cf:before{content:"";display:table}.sp-cf:after{content:"";display:table;clear:both}@media(max-device-width: 480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-container{display:inline-flex;background-color:#fff;padding:0;border-radius:4px;color:#000;box-shadow:0 0 0 1px rgba(99,114,130,.16),0 8px 16px rgba(27,39,51,.08);font-size:14px;box-sizing:border-box}.sp-container button{font-size:14px;box-sizing:border-box;border-radius:3px;border:none;background:rgba(0,0,0,0);line-height:1;padding:0 .75em;height:25px;text-transform:capitalize;text-align:center;vertical-align:middle;cursor:pointer;color:#606c72;font-weight:bold}.sp-container button:hover{opacity:.8}.sp-container input{font-size:12px;box-sizing:border-box}.sp-container button.sp-choose{background-color:#3cab3b;color:#fff;margin-left:5px}.sp-container button.sp-palette-toggle{width:100%;background-color:#f3f3f3;margin:0}.sp-color{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-hue{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-clear{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-top{margin-bottom:10px}.sp-val{border-radius:3px}.sp-sat{border-radius:3px}.sp-input-container{margin-top:-5px}.sp-input-container.sp-cf{height:25px}.sp-initial.sp-thumb.sp-cf{height:25px}.sp-button-container.sp-cf{height:25px}.sp-picker-container{position:relative;padding:10px;width:200px;padding-bottom:0}.sp-picker-container .sp-cf{margin-bottom:10px}.sp-palette-row-initial>span:first-child{cursor:pointer}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{padding:0px 5px !important;margin:0;width:100%;box-shadow:none !important;height:100% !important;background:rgba(0,0,0,0);color:#3a3a3a;border-radius:2px !important;border:1px solid #e0e0e0 !important;text-align:center;font-family:monospace;font-size:inherit !important}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container{position:relative;padding:10px;border-right:solid 1px #ccc}.sp-palette-only .sp-palette-container{border:0}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer;width:16px;height:16px;margin:3px;border:none;border-radius:3px}.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-palette .sp-thumb-el.sp-thumb-active{border-color:orange}.sp-palette span:hover{border-color:#000}.sp-palette span.sp-thumb-active{border-color:#000}.sp-palette .sp-thumb-inner{border-radius:3px;background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(${V});background-image:url(${N})}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(${C});background-image:url(${x})}.sp-thumb-el{position:relative;background-image:url(${h});background-image:url(${v})}.sp-initial{float:left}.sp-initial span{width:25px;height:25px;border:none;display:block;float:left;margin:0}.sp-initial .spe-thumb-el.sp-thumb-active{border-radius:0 5px 5px 0}.sp-initial .spe-thumb-el{border-radius:5px 0 0 5px}.sp-initial .sp-clear-display{background-position:center}.sp-button-container{float:right}.sp-palette-button-container{margin-top:10px}.sp-replacer{position:relative;overflow:hidden;cursor:pointer;display:inline-block;border-radius:3px;border:1px solid #aaa;color:#666;transition:border-color .3s;vertical-align:middle;width:3rem;height:1.5rem}.sp-replacer:hover{border:1px solid #666;color:#000}.sp-replacer.sp-active{border:1px solid #666;color:#000}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{position:absolute;font-size:10px;right:0;top:0;bottom:0;padding:0 2px;line-height:1.6rem;background-color:#fff}.sp-preview{position:relative;width:100%;height:100%;float:left;z-index:0;position:relative;background-image:url(${h});background-image:url(${v})}.sp-preview-inner{transition:background-color .2s;display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-preview-inner.sp-clear-display{display:none}.sp-alpha{position:relative;background-image:url(${h});background-image:url(${v})}.sp-alpha-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(${y});background-image:url(${E})}/*# sourceMappingURL=spectrum.min.css.map */\n`,"",{version:3,sources:["webpack://./node_modules/spectrum-vanilla/src/main.scss","webpack://./node_modules/spectrum-vanilla/src/spectrum.scss"],names:[],mappings:"AACA,cACE,iBAAA,CACA,KAAA,CACA,MAAA,CACA,oBAAA,CACA,eAAA,CACA,eAAA,CACA,8BAAA,CACA,2BAAA,CACA,sBAAA,CACA,gBAAA,CAEA,gBACE,8BAAA,CACA,2BAAA,CACA,sBAAA,CAGF,qBACE,gBAAA,CAIJ,6BACE,iBAAA,CACA,mBAAA,CAEA,mCACE,mBAAA,CAGF,wCACE,UAAA,CACA,oCAAA,CACA,uCAAA,CAEA,qDACE,WAAA,CACA,UAAA,CACA,qBAAA,CAKN,2BACE,wBAAA,CACA,2BAAA,CACA,aAAA,CAGF,uBACE,wDAAA,CACA,wDAAA,CAGF,sBACE,iBAAA,CAGF,QACE,iBAAA,CACA,UAAA,CACA,oBAAA,CAGF,cACE,iBAAA,CACA,KAAA,CACA,MAAA,CACA,QAAA,CACA,OAAA,CAGF,UACE,iBAAA,CACA,KAAA,CACA,MAAA,CACA,QAAA,CACA,qBAAA,CAGF,QACE,iBAAA,CACA,K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CACA,QAAA,CACA,OAAA,CAGF,gBACE,aAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,QAAA,CACA,OAAA,CAGF,kBACE,2BAAA,CACA,0BAAA,CACA,wDAAA,CACA,wDAAA,CAAA,2CAAA",sourceRoot:""}]);const w=b},2955:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>i});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l)()(a());r.push([e.id,".CodeMirror{height:450px !important;font-size:15px}.form-group label:not(.btn){margin-bottom:.5rem}","",{version:3,sources:["webpack://./src/vue/app/PageBuilderApp.vue"],names:[],mappings:"AACA,YACE,uBAAA,CACA,cAAA,CAGF,4BACE,mBAAA",sourcesContent:[".CodeMirror{height:450px !important;font-size:15px}.form-group label:not(.btn){margin-bottom:.5rem}"],sourceRoot:""}]);const i=r},4481:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>i});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l)()(a());r.push([e.id,".c-addon-instance[data-v-230a3e91]{position:relative}.c-addon-instance__toolbar[data-v-230a3e91]{position:absolute;top:.5rem;right:.5rem}","",{version:3,sources:["webpack://./src/vue/components/page-builder/Addon.vue"],names:[],mappings:"AACA,mCACE,iBAAA,CAEA,4CACE,iBAAA,CACA,SAAA,CACA,WAAA",sourcesContent:[".c-addon-instance{position:relative}.c-addon-instance__toolbar{position:absolute;top:.5rem;right:.5rem}"],sourceRoot:""}]);const i=r},3311:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>i});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l)()(a());r.push([e.id,".c-template-item[data-v-58abe7f2]{transition:all .3s}.c-template-item[data-v-58abe7f2]:hover{opacity:.85}.c-template-item__preview[data-v-58abe7f2]{width:100%;padding-top:50%;background:no-repeat center center;background-size:cover}","",{version:3,sources:["webpack://./src/vue/components/page-builder/templates/TemplateManager.vue"],names:[],mappings:"AACE,kCACE,kBAAA,CACA,wCACE,WAAA,CAGF,2CACE,UAAA,CACA,eAAA,CACA,kCAAA,CACA,qBAAA",sourcesContent:[".c-template-item{transition:all .3s}.c-template-item:hover{opacity:.85}.c-template-item__preview{width:100%;padding-top:50%;background:no-repeat center center;background-size:cover}"],sourceRoot:""}]);const i=r},4593:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>c});var n=o(7537),a=o.n(n),l=o(3645),r=o.n(l),i=o(7266),d=r()(a());d.i(i.Z),d.push([e.id,"\n.sp-add-on {\n width: 40px !important;\n}\n","",{version:3,sources:["webpack://./src/vue/components/page-builder/form/ColorInput.vue"],names:[],mappings:";AAmDE;IACE,sBAAsB;AACxB",sourcesContent:['\n @import "spectrum-vanilla/dist/spectrum.min.css";\n\n .sp-add-on {\n width: 40px !important;\n }\n'],sourceRoot:""}]);const c=d},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,l){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(n)for(var i=0;i0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=l),o&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=o):s[2]=o),a&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=a):s[4]="".concat(a)),t.push(s))}},t}},1667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},7537:e=>{"use strict";e.exports=function(e){var t=e[1],o=e[3];if(!o)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),l="/*# ".concat(a," */");return[t].concat([l]).join("\n")}return[t].join("\n")}},4277:function(e){e.exports=function(){"use strict";const e=/^\s+/,t=/\s+$/;function o(n,a){if(a=a||{},(n=n||"")instanceof o)return n;if(!(this instanceof o))return new o(n,a);var l=function(o){var n={r:0,g:0,b:0},a=1,l=null,r=null,i=null,d=!1,c=!1;return"string"==typeof o&&(o=function(o){o=o.replace(e,"").replace(t,"").toLowerCase();var n,a=!1;if(v[o])o=v[o],a=!0;else if("transparent"==o)return{r:0,g:0,b:0,a:0,format:"name"};return(n=M.rgb.exec(o))?{r:n[1],g:n[2],b:n[3]}:(n=M.rgba.exec(o))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=M.hsl.exec(o))?{h:n[1],s:n[2],l:n[3]}:(n=M.hsla.exec(o))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=M.hsv.exec(o))?{h:n[1],s:n[2],v:n[3]}:(n=M.hsva.exec(o))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=M.hex8.exec(o))?{r:y(n[1]),g:y(n[2]),b:y(n[3]),a:T(n[4]),format:a?"name":"hex8"}:(n=M.hex6.exec(o))?{r:y(n[1]),g:y(n[2]),b:y(n[3]),format:a?"name":"hex"}:(n=M.hex4.exec(o))?{r:y(n[1]+""+n[1]),g:y(n[2]+""+n[2]),b:y(n[3]+""+n[3]),a:T(n[4]+""+n[4]),format:a?"name":"hex8"}:!!(n=M.hex3.exec(o))&&{r:y(n[1]+""+n[1]),g:y(n[2]+""+n[2]),b:y(n[3]+""+n[3]),format:a?"name":"hex"}}(o)),"object"==typeof o&&(U(o.r)&&U(o.g)&&U(o.b)?(s=o.r,u=o.g,p=o.b,n={r:255*C(s,255),g:255*C(u,255),b:255*C(p,255)},d=!0,c="%"===String(o.r).substr(-1)?"prgb":"rgb"):U(o.h)&&U(o.s)&&U(o.v)?(l=w(o.s),r=w(o.v),n=function(e,t,o){e=6*C(e,360),t=C(t,100),o=C(o,100);var n=Math.floor(e),a=e-n,l=o*(1-t),r=o*(1-a*t),i=o*(1-(1-a)*t),d=n%6;return{r:255*[o,r,l,l,i,o][d],g:255*[i,o,o,r,l,l][d],b:255*[l,l,i,o,o,r][d]}}(o.h,l,r),d=!0,c="hsv"):U(o.h)&&U(o.s)&&U(o.l)&&(l=w(o.s),i=w(o.l),n=function(e,t,o){var n,a,l;function r(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}if(e=C(e,360),t=C(t,100),o=C(o,100),0===t)n=a=l=o;else{var i=o<.5?o*(1+t):o+t-o*t,d=2*o-i;n=r(d,i,e+1/3),a=r(d,i,e),l=r(d,i,e-1/3)}return{r:255*n,g:255*a,b:255*l}}(o.h,l,i),d=!0,c="hsl"),o.hasOwnProperty("a")&&(a=o.a)),a=N(a),{ok:d,format:o.format||c,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a};var s,u,p}(n);this._originalInput=n,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=a.format||l.format,this._gradientType=a.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}function n(e,t,o){e=C(e,255),t=C(t,255),o=C(o,255);var n,a,l=Math.max(e,t,o),r=Math.min(e,t,o),i=(l+r)/2;if(l==r)n=a=0;else{var d=l-r;switch(a=i>.5?d/(2-l-r):d/(l+r),l){case e:n=(t-o)/d+(t>1)+720)%360;--t;)a.h=(a.h+l)%360,r.push(o(a));return r}function h(e,t){t=t||6;for(var n=o(e).toHsv(),a=n.h,l=n.s,r=n.v,i=[],d=1/t;t--;)i.push(o({h:a,s:l,v:r})),r=(r+d)%1;return i}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,o,n=this.toRgb();return e=n.r/255,t=n.g/255,o=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=a(this._r,this._g,this._b),t=Math.round(360*e.h),o=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+o+"%, "+n+"%)":"hsva("+t+", "+o+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=n(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=n(this._r,this._g,this._b),t=Math.round(360*e.h),o=Math.round(100*e.s),a=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+o+"%, "+a+"%)":"hsla("+t+", "+o+"%, "+a+"%, "+this._roundA+")"},toHex:function(e){return l(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,o,n,a){var l=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(o).toString(16)),E(k(n))];return a&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*C(this._r,255))+"%",g:Math.round(100*C(this._g,255))+"%",b:Math.round(100*C(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*C(this._r,255))+"%, "+Math.round(100*C(this._g,255))+"%, "+Math.round(100*C(this._b,255))+"%)":"rgba("+Math.round(100*C(this._r,255))+"%, "+Math.round(100*C(this._g,255))+"%, "+Math.round(100*C(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(V[l(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+r(this._r,this._g,this._b,this._a),n=t,a=this._gradientType?"GradientType = 1, ":"";if(e){var l=o(e);n="#"+r(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var o=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(o=this.toRgbString()),"prgb"===e&&(o=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(o=this.toHexString()),"hex3"===e&&(o=this.toHexString(!0)),"hex4"===e&&(o=this.toHex8String(!0)),"hex8"===e&&(o=this.toHex8String()),"name"===e&&(o=this.toName()),"hsl"===e&&(o=this.toHslString()),"hsv"===e&&(o=this.toHsvString()),o||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return o(this.toString())},_applyModification:function(e,t){var o=e.apply(null,[this].concat([].slice.call(t)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(s,arguments)},brighten:function(){return this._applyModification(u,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(i,arguments)},saturate:function(){return this._applyModification(d,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(m,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(f,arguments)},monochromatic:function(){return this._applyCombination(h,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},o.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]="a"===a?e[a]:w(e[a]));e=n}return o(e,t)},o.equals=function(e,t){return!(!e||!t)&&o(e).toRgbString()==o(t).toRgbString()},o.random=function(){return o.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},o.mix=function(e,t,n){n=0===n?0:n||50;var a=o(e).toRgb(),l=o(t).toRgb(),r=n/100;return o({r:(l.r-a.r)*r+a.r,g:(l.g-a.g)*r+a.g,b:(l.b-a.b)*r+a.b,a:(l.a-a.a)*r+a.a})},o.readability=function(e,t){var n=o(e),a=o(t);return(Math.max(n.getLuminance(),a.getLuminance())+.05)/(Math.min(n.getLuminance(),a.getLuminance())+.05)},o.isReadable=function(e,t,n){var a,l,r,i,d,c=o.readability(e,t);switch(l=!1,(r=n,"AA"!==(i=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(d=(r.size||"small").toLowerCase())&&"large"!==d&&(d="small"),a={level:i,size:d}).level+a.size){case"AAsmall":case"AAAlarge":l=c>=4.5;break;case"AAlarge":l=c>=3;break;case"AAAsmall":l=c>=7}return l},o.mostReadable=function(e,t,n){var a,l,r,i,d=null,c=0;l=(n=n||{}).includeFallbackColors,r=n.level,i=n.size;for(var s=0;sc&&(c=a,d=o(t[s]));return o.isReadable(e,d,{level:r,size:i})||!l?d:(n.includeFallbackColors=!1,o.mostReadable(e,["#fff","#000"],n))};var v=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},V=o.hexNames=function(e){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[e[o]]=o);return t}(v);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function C(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var o=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function x(e){return Math.min(1,Math.max(0,e))}function y(e){return parseInt(e,16)}function E(e){return 1==e.length?"0"+e:""+e}function w(e){return e<=1&&(e=100*e+"%"),e}function k(e){return Math.round(255*parseFloat(e)).toString(16)}function T(e){return y(e)/255}var B,_,S,M=(_="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",S="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+_),rgba:new RegExp("rgba"+S),hsl:new RegExp("hsl"+_),hsla:new RegExp("hsla"+S),hsv:new RegExp("hsv"+_),hsva:new RegExp("hsva"+S),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!M.CSS_UNIT.exec(e)}function D(e,t){return e.replaceWith(t),t.appendChild(e),e}function R(e,t=document){const o=t.createElement("div");return o.innerHTML=e,o.children[0]}function O(e,t){const o=t.split(" ").filter((e=>""!==e));return""!==t&&o.length&&e.classList.add(...o),e}function z(e,t){const o=t.split(" ").filter((e=>""!==e));return""!==t&&o.length&&e.classList.remove(...o),e}function Z(e,t,o=void 0){return null!=o?e.classList.toggle(t,o):!0===o?O(e,t):z(e,t),e}function I(e,t,o={}){const n=new CustomEvent(t,{cancelable:!0,bubbles:!0,detail:o});return e.dispatchEvent(n),n}function L(e,t,o,n,a={}){e.addEventListener(t,(e=>{e.target.closest(o)&&(e.data=Object.assign({},e.data||{},a),n(e))}),a)}function F(e,t){let o,n,a,l,r=e.style.position,i=e,d={};"static"===r&&(e.style.position="relative");let c=j(i),s=e.style.top,u=e.style.left;if(l=("absolute"===r||"fixed"===r)&&(s+u).indexOf("auto")>-1,l?(o=function(e){const{top:t,left:o}=e.getBoundingClientRect(),{marginTop:n,marginLeft:a}=getComputedStyle(e);return{top:t-parseInt(n,10),left:o-parseInt(a,10)}}(i),n=o.top,a=o.left):(n=parseFloat(s)||0,a=parseFloat(u)||0),null!=t.top&&(d.top=t.top-c.top+n),null!=t.left&&(d.left=t.left-c.left+a),"using"in t)t.using.call(e,d);else for(const e in d)i.style.setProperty(e,d[e]+"px")}function j(e){const t=e.getBoundingClientRect(),o=document.documentElement;return{top:t.top+window.pageYOffset-o.clientTop,left:t.left+window.pageXOffset-o.clientLeft}}const P={beforeShow:Y,move:Y,change:Y,show:Y,hide:Y,color:"",type:"component",showInput:!1,allowEmpty:!0,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!0,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:"",appendTo:"body",maxSelectionSize:8,locale:"en",cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:"name",containerClassName:"",replacerClassName:"",showAlpha:!0,theme:"sp-light",palette:[["#000000","#444444","#5b5b5b","#999999","#bcbcbc","#eeeeee","#f3f6f4","#ffffff"],["#f44336","#744700","#ce7e00","#8fce00","#2986cc","#16537e","#6a329f","#c90076"],["#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc"],["#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd"],["#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0"],["#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79"],["#990000","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47"],["#660000","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]],selectionPalette:[],disabled:!1,offset:null},G=[],$=R(["
","
","
","
"].join("")),q=["
","
","
","
","","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","","
","
","
","","","
","
","
"].join("");function H(e,t,n,a){const l=[];for(let n=0;n')}else l.push('')}return"
"+l.join("")+"
"}function J(e,t){let n=function(e,t){if((e=Object.assign({},e)).locale=e.locale||window.navigator.language,"string"==typeof e.locale){if(e.locale){let t=e.locale.split("-").map((e=>e.toLowerCase()));t[0]===t[1]&&(t=[t[0]]),e.locale=t.join("-")}"en"!==e.locale&&K.localization[e.locale]&&(e=Object.assign({},e,K.localization[e.locale]))}else e=Object.assign({},e,e.locale);const o=Object.assign({},P,t.dataset,e);return o.callbacks={move:W(o.move,t),change:W(o.change,t),show:W(o.show,t),hide:W(o.hide,t),beforeShow:W(o.beforeShow,t)},o}(t,e),a=n.type,l="flat"===a,r=n.showSelectionPalette,i=n.localStorageKey,d=n.theme,c=n.callbacks,s=function(e,t,o){let n;return function(){const a=this,l=arguments;o&&clearTimeout(n),!o&&n||(n=setTimeout((function(){n=null,e.apply(a,l)}),t))}}(Qe,10),u=!1,p=!1,m=0,f=0,g=0,A=0,b=0,h=0,v=0,V=0,N=0,C=0,x=1,y=[],E=[],w={},k=n.selectionPalette.slice(0),T=n.maxSelectionSize,B="sp-dragging",_=!1,S=null;const M=e.ownerDocument,U=R(q,M);U.classList.add(d),M.body.appendChild(U),M.body;let J,Y,X,ee,te=e,oe=!1,ne=U.querySelector(".sp-picker-container"),ae=U.querySelector(".sp-color"),le=U.querySelector(".sp-dragger"),re=U.querySelector(".sp-hue"),ie=U.querySelector(".sp-slider"),de=U.querySelector(".sp-alpha-inner"),ce=U.querySelector(".sp-alpha"),se=U.querySelector(".sp-alpha-handle"),ue=U.querySelector(".sp-input"),pe=U.querySelector(".sp-palette"),me=U.querySelector(".sp-initial"),fe=U.querySelector(".sp-cancel"),ge=U.querySelector(".sp-clear"),Ae=U.querySelector(".sp-choose"),be=U.querySelector(".sp-palette-toggle"),he="INPUT"===te.nodeName,ve=he&&"color"===te.getAttribute("type"),Ve=he&&("color"===a||ve),Ne=Ve?(O($,d),O($,n.replacerClassName),$):null,Ce=Ve?Ne:te,xe=null==Ne?void 0:Ne.querySelector(".sp-preview-inner"),ye=n.color||he&&te.value,Ee="",we=n.preferredFormat,ke=!n.showButtons||n.clickoutFiresChange,Te=!ye,Be=n.allowEmpty;const _e=te.getAttribute("id")||"";function Se(){if(n.showPaletteOnly&&(n.showPalette=!0),be&&(be.textContent=n.showPaletteOnly?n.togglePaletteMoreText:n.togglePaletteLessText),n.palette){y=n.palette.slice(0),E=Array.isArray(y[0])?y:[y],w={};for(let e=0;e1){delete e[i];for(const e of t)De(e)}}catch(e){}try{k=window.localStorage[i].split(";")}catch(e){}}}function De(e){if(r){const t=o(e).toRgbString();if(!w[t]&&!k.includes(t))for(k.push(t);k.length>T;)k.shift();if(i)try{window.localStorage[i]=k.join(";")}catch(e){}}}function Re(){const e=qe(),t=E.map(((t,o)=>H(t,e,"sp-palette-row sp-palette-row-"+o,n)));Ue(),k&&t.push(H(function(){var e=[];if(n.showPalette)for(var t=0;ti&&i>n?Math.abs(s+n-i):0),u-=Math.min(u,u+a>d&&d>a?Math.abs(a+l-o):o),{top:u,left:s}}(U,Ce))),Ye(),n.showPalette&&Re(),I(te,"reflow"))}function Ke(){Pe(),oe=!0,te.disabled=!0,Ce.classList.add("sp-disabled")}void 0!==_e&&_e.length>0&&document.querySelectorAll(`label[for="${_e}"]`).forEach((e=>{e.addEventListener("click",(function(e){return e.preventDefault(),Le(),!1}))})),function(){var e;Se();const t=window.getComputedStyle(te);if(J=R(''),["margin"].forEach((e=>{J.style,J.style.setProperty(e,t.getPropertyValue(e))})),"block"===t.display&&(J.style.display="flex"),te.style.display="",Ve)(function(e,t){var o;null===(o=e.parentNode)||void 0===o||o.insertBefore(t,e.nextSibling)})(te,Ne),te.style.display="none";else if("text"===a)O(J,"sp-colorize-container"),O(te,"spectrum sp-colorize"),D(te,J);else if("component"===a){O(te,"spectrum"),D(te,J);const e=R(["
","
","
"].join(""));e.style.width=te.offsetHeight+"px",e.style.borderRadius=t.borderRadius,e.style.border=t.border,te.classList.add("with-add-on"),te.before(e)}if(Y=null===(e=te.parentNode)||void 0===e?void 0:e.querySelector(".sp-colorize"),X=(null==Y?void 0:Y.style.color)||"",ee=(null==Y?void 0:Y.style.backgroundColor)||"",Be||(ge.style.display="none"),l)te.after(U),te.style.display="none";else{let e="parent"===n.appendTo?te.parentElement:n.appendTo;e||(e=document.body),"string"!=typeof e&&e.append(U)}function r(e){var t,o;if(e.data&&e.data.ignore){const o=e.target.closest(".sp-thumb-el");$e((null===(t=null==o?void 0:o.dataset)||void 0===t?void 0:t.color)||""),He()}else{const t=e.target.closest(".sp-thumb-el");$e((null===(o=null==t?void 0:t.dataset)||void 0===o?void 0:o.color)||""),He(),n.hideAfterPaletteSelect?(We(!0),Pe()):We()}return!1}Ue(),null==Ce||Ce.addEventListener("click",Me),null==Ce||Ce.addEventListener("touchstart",Me),(te.matches(":disabled")||n.disabled)&&Ke(),U.addEventListener("click",(e=>e.stopPropagation())),[ue,te].forEach((function(e){"value"in e&&(e.addEventListener("change",(()=>{Ie(e.value)})),e.addEventListener("paste",(()=>{setTimeout((()=>{Ie(e.value)}),1)})),e.addEventListener("keydown",(t=>{13===t.keyCode&&(Ie(e.value),e===te&&Pe())})))})),fe.textContent=n.cancelText,fe.addEventListener("click",(function(e){e.stopPropagation(),e.preventDefault(),Ge(),Pe()})),ge.setAttribute("title",n.clearText),ge.addEventListener("click",(function(e){e.stopPropagation(),e.preventDefault(),Te=!0,He(),l&&We(!0)})),Ae.textContent=n.chooseText,Ae.addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault(),!ue.classList.contains("sp-validation-error")&&(We(!0),Pe())})),be.textContent=n.showPaletteOnly?n.togglePaletteMoreText:n.togglePaletteLessText,be.addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault(),n.showPaletteOnly=!n.showPaletteOnly,n.showPaletteOnly||l||(U.style.left="-="+(function(e){const t=window.getComputedStyle(e);return e.getBoundingClientRect().width+parseFloat(t.marginLeft)+parseFloat(t.marginRight)}(ne)+5)),Se()})),Q(ce,(function(e,t,o){x=e/b,Te=!1,o.shiftKey&&(x=Math.round(10*x)/10),He()}),ze,Ze),Q(re,(function(e,t){V=t/A,Te=!1,n.showAlpha||(x=1),He()}),ze,Ze),Q(ae,(function(e,t,o){if(o.shiftKey){if(!S){const o=N*m,n=f-C*f,a=Math.abs(e-o)>Math.abs(t-n);S=a?"x":"y"}}else S=null;(!S||"x"===S)&&(N=e/m),(!S||"y"===S)&&(C=(f-t)/f),Te=!1,n.showAlpha||(x=1),He()}),ze,Ze),ye?($e(ye),Je(),we=o(ye).getFormat()||n.preferredFormat,De(ye)):""===ye?($e(ye),Je()):Je(),l&&Le();const i=["click","touchstart"];for(const e of i)L(pe,e,".sp-thumb-el",r),L(me,e,".sp-thumb-el:nth-child(1)",r,{ignore:!0})}();let Xe={id:0,show:Le,hide:Pe,toggle:function(){u?Pe():Le()},reflow:Qe,option:function(e=void 0,t=void 0){return void 0===e?Object.assign({},n):void 0===t?n[e]:(n[e]=t,"preferredFormat"===e&&(we=n.preferredFormat),void Se())},enable:function(){oe=!1,te.disabled=!1,Ce.classList.remove("sp-disabled")},disable:Ke,offset:function(e){n.offset=e,Qe()},set:function(e){$e(e),We()},get:qe,destroy:function(){te.style.display="",te.classList.remove("spectrum","with-add-on","sp-colorize"),Ce.removeEventListener("click",Me),Ce.removeEventListener("touchstart",Me),U.remove(),null==Ne||Ne.remove(),Y&&(Y.style.backgroundColor=ee,Y.style.color=X);const e=te.closest(".sp-original-input-container");e&&(e.after(te),e.remove()),G[Xe.id]=null},container:U};return Xe.id=G.push(Xe)-1,Xe}function Y(){}function W(e,t){const o=Array.prototype.slice,n=o.call(arguments,2);return function(){return e.apply(t,n.concat(o.call(arguments)))}}function Q(e,t,o,n){t=t||Y,o=o||Y,n=n||Y;const a=document;let l=!1,r={},i=0,d=0;const c="ontouchstart"in window,s={};function u(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1}function p(o){if(l){const n="touches"in o&&o.touches[0],a=n&&n.pageX||o.pageX,l=n&&n.pageY||o.pageY,s=Math.max(0,Math.min(a-r.left,d)),p=Math.max(0,Math.min(l-r.top,i));c&&u(o),t.apply(e,[s,p,o])}}function m(t){if(!(t.which?3==t.which:2===t.button)&&!l&&!1!==o.apply(e,arguments)){l=!0,i=e.getBoundingClientRect().height,d=e.getBoundingClientRect().width,r=j(e);for(const e in s)a.addEventListener(e,s[e]);a.body.classList.add("sp-dragging"),p(t),u(t)}}function f(){if(l){for(const e in s)a.removeEventListener(e,s[e]);a.body.classList.remove("sp-dragging"),setTimeout((function(){n.apply(e,arguments)}),0)}l=!1}s.selectstart=u,s.dragstart=u,s.touchmove=p,s.mousemove=p,s.touchend=f,s.mouseup=f,e.addEventListener("touchstart",m),e.addEventListener("mousedown",m)}class K{static create(e,t={}){const o=this.wrap(e);if(!o){let t="Unable to find element";throw"string"==typeof e&&(t+=" - Selector: "+e),Error(t)}return new this(o,t)}static createIfExists(e,t={}){const o=this.wrap(e);return o?new this(o,t):null}static getInstance(e,t={}){const o=this.wrap(e);return o.__spectrum=o.__spectrum||this.createIfExists(o,t)}static hasInstance(e){return void 0!==this.wrap(e).__spectrum}static createMultiple(e,t={}){const o=[];return this.wrapList(e).forEach((e=>{o.push(this.create(e,t))})),o}static getInstanceMultiple(e,t={}){const o=[];return this.wrapList(e).forEach((e=>{o.push(this.getInstance(e,t))})),o}static wrap(e){return"string"==typeof e?document.querySelector(e):e.jquery?e[0]:e}static wrapList(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)):e.jquery?e.toArray():Array.from(e)}static locale(e,t){return this.localization[e]=t,this}static registerJQuery(e){ee(e)}constructor(e,t={}){this.eventListeners={},this.spectrum=J(e,t),this.ele=e,this.options=t}get id(){return this.spectrum.id}get container(){return this.ele.__spectrum?this.spectrum.container:this.ele}show(){return this.spectrum.show(),this}hide(){return this.spectrum.hide(),this}toggle(){return this.spectrum.toggle(),this}reflow(){return this.spectrum.reflow(),this}option(e,t){return this.spectrum.option(e,t)}enable(){return this.spectrum.enable(),this}disable(){return this.spectrum.disable(),this}offset(e){return this.spectrum.offset(e),this}set(e,t=!1){return this.spectrum.set(e,t),this}get(){return this.spectrum.get()}destroy(){return this.destroyInnerObject(),delete this.ele.__spectrum,this}rebuild(e){return this.destroyInnerObject(),e&&(this.options=Object.assign({},this.options,e)),this.spectrum=J(this.ele,this.options),this}destroyInnerObject(){this.spectrum.destroy(),this.off()}listeners(e){return this.eventListeners[e]||[]}on(e,t,o=void 0){return this.ele.addEventListener(e,t,o),this.eventListeners[e]=this.eventListeners[e]||[],this.eventListeners[e].push(t),()=>{this.off(e,t)}}once(e,t,o=void 0){const n=this.on(e,(e=>{t(e),n()}),o);return n}off(e=void 0,t=void 0){if(!e||this.eventListeners[e])if(e)if(t)this.eventListeners[e]=this.eventListeners[e].filter((e=>e===t)),this.ele.removeEventListener(e,t);else{for(const t of this.eventListeners[e])this.ele.removeEventListener(e,t);this.eventListeners[e]=[]}else this.eventListeners={}}}K.defaultOptions=P,K.draggable=Q,K.localization={},K.palette=[];const X=window.jQuery;function ee(e){e.fn.spectrum=function(t=void 0,...o){if("string"==typeof t){let n=this;return this.each((function(){const a=this.__spectrum;if(a){if(!a[t])throw new Error("Spectrum: no such method: '"+t+"'");"get"===t?n=a.get():"container"===t?n=e(a.container):"option"===t?n=a.option.apply(a,o):"destroy"===t?a.destroy():a[t](...o)}})),n}return this.each((function(){const o=e.extend({},e(this).data(),t);if(e(this).is("input")?"flat"==o.type?o.type="flat":"color"==e(this).attr("type")?o.type="color":o.type=o.type||"component":o.type="color",K.hasInstance(this)){const e=K.getInstance(this);e.options=o,e.rebuild()}else K.getInstance(this,o)}))},e.fn.spectrum.load=!0,e.fn.spectrum.loadOpts={},e.fn.spectrum.draggable=Q,e.fn.spectrum.defaults=P,e.fn.spectrum.localization=K.localization,e.fn.spectrum.palette=[],e.fn.spectrum.processNativeColorInputs=function(){const t=e("input[type=color]");t.length&&t.spectrum({preferredFormat:"hex6"})}}return X&&ee(X),K}()},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o}},2120:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var n=o(311);const a=["for"],l=["id","name","value","disabled"],r=["name","id","true-value","false-value","disabled","value","checked"],i={name:"UnicornSwitcher",model:{prop:"modelValue",event:"update:modelValue"},data:()=>({idName:"",currentValue:null}),props:{id:String,classes:String,modelValue:null,name:String,disabled:Boolean,trueValue:{default:"1"},falseValue:{default:"0"},size:{type:String,default:"default"},color:{type:String,default:"primary"},shape:{type:String,default:"square"}},created(){this.idName=this.id,this.idName||(this.name?this.idName="input-"+this.getDashedName():this.idName="input-switch-"+u.uid()),this.currentValue=this.modelValue},methods:{getDashedName(){return this.name.replace(/\[/g,"-").replace(/]/,"")},changed(e){this.currentValue=e.srcElement.checked?this.trueValue:this.falseValue},click(e){this.$emit("click",e)}},watch:{currentValue(){this.$emit("update:modelValue",this.currentValue)},modelValue(){this.currentValue=this.modelValue}}},d=(0,o(3744).Z)(i,[["render",function(e,t,o,i,d,c){return(0,n.openBlock)(),(0,n.createElementBlock)("label",{class:(0,n.normalizeClass)(["unicorn-switch",[o.size?"switch-"+o.size:""]]),for:d.idName},[(0,n.createElementVNode)("input",{id:d.idName+"-unchecked",name:o.name,type:"hidden",value:o.falseValue,disabled:o.disabled},null,8,l),(0,n.createTextVNode)(),(0,n.createElementVNode)("input",{type:"checkbox",name:o.name,id:d.idName,class:(0,n.normalizeClass)(["",o.classes]),"true-value":o.trueValue,"false-value":o.falseValue,disabled:o.disabled,value:o.trueValue,checked:d.currentValue==o.trueValue,onChange:t[0]||(t[0]=function(){return c.changed&&c.changed(...arguments)}),onClick:t[1]||(t[1]=function(){return c.click&&c.click(...arguments)})},null,42,r),(0,n.createTextVNode)(),(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["switch-slider",["slider-"+o.shape,o.color?"btn-"+o.color:"btn-default"]])},null,2)],10,a)}]])},8624:(e,t,o)=>{"use strict";o.d(t,{Z:()=>b});var n=o(311);const a={class:"mb-2"},l={class:"form-row row"},r={class:"col-3"},i=["onUpdate:modelValue"],d={class:"col-3"},c=["onUpdate:modelValue"],s={class:"col-3"},u=["onUpdate:modelValue"],p={class:"col-3"},m=["onUpdate:modelValue"];var f=o(4609),g=o(5304);const A={name:"box-offset",components:{RwdGroup:f.Z},props:{modelValue:Object},setup(e,t){let{emit:o}=t;const a=(0,n.reactive)({offsets:{xs:{top:"",right:"",bottom:"",left:""},md:{top:"",right:"",bottom:"",left:""},lg:{top:"",right:"",bottom:"",left:""}},currentSize:"desktop",lock:!1});function l(e){(0,g.Z)(e,((e,t)=>{const[o,n,l,r]=e.split(",");a.offsets[t]=a.offsets[t]||{},a.offsets[t].top=o||"",a.offsets[t].right=n||"",a.offsets[t].bottom=l||"",a.offsets[t].left=r||""}))}return(0,n.onMounted)((()=>{l(e.modelValue),(0,g.Z)(a.offsets,((e,t)=>{(0,g.Z)(e,((l,r)=>{(0,n.watch)((()=>a.offsets[t][r]),(t=>{a.lock&&(e.top=t,e.right=t,e.bottom=t,e.left=t);const n=function(){const e={};return(0,g.Z)(a.offsets,((t,o)=>{e[o]=`${t.top},${t.right},${t.bottom},${t.left}`})),e}();o("update:modelValue",n)}))}))}))})),(0,n.watch)((()=>e.value),(()=>{l(value)})),{...(0,n.toRefs)(a)}}},b=(0,o(3744).Z)(A,[["render",function(e,t,o,f,g,A){const b=(0,n.resolveComponent)("rwd-group");return(0,n.openBlock)(),(0,n.createBlock)(b,{"class-name":"c-box-offset"},(0,n.createSlots)({label:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",a,[(0,n.renderSlot)(e.$slots,"label"),(0,n.createTextVNode)(),(0,n.createElementVNode)("a",{href:"javascript://",onClick:t[0]||(t[0]=t=>e.lock=!e.lock)},[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["fa",[e.lock?"fa-lock":"fa-lock-open"]])},null,2)])])])),_:2},[(0,n.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",r,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"text",class:"form-control",placeholder:"Top","onUpdate:modelValue":o=>e.offsets[t].top=o},null,8,i),[[n.vModelText,e.offsets[t].top]])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",d,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"text",class:"form-control",placeholder:"Right","onUpdate:modelValue":o=>e.offsets[t].right=o},null,8,c),[[n.vModelText,e.offsets[t].right]])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",s,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"text",class:"form-control",placeholder:"Bottom","onUpdate:modelValue":o=>e.offsets[t].bottom=o},null,8,u),[[n.vModelText,e.offsets[t].bottom]])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",p,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"text",class:"form-control",placeholder:"Left","onUpdate:modelValue":o=>e.offsets[t].left=o},null,8,m),[[n.vModelText,e.offsets[t].left]])])])]))})))]),1024)}]])},4928:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var n=o(311);const a={class:"btn-group"},l=["id","name","value","checked"],r=["for","onChange"],i={name:"ButtonRadio",components:{},props:{modelValue:{default:""},color:{type:String,default:"secondary"},size:{type:String,default:""},options:Array},setup(e,t){let{emit:o}=t;const a=(0,n.ref)("br-"+u.uid()),l=(0,n.ref)(e.modelValue);return(0,n.watch)(l,(()=>{console.log(l),o("update:modelValue",l)})),{uid:a,value:l,updateValue:function(e){l.value=e.value,console.log(l)},buttonColor:function(t){return t.color?"btn-"+t.variant+"-"+t.color:"btn-outline-"+e.color}}}},d=(0,o(3744).Z)(i,[["render",function(e,t,o,i,d,c){return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.options,(e=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio",class:"btn-check",id:i.uid+"__"+e.value,name:i.uid,value:e.value,checked:e.value===i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),autocomplete:"off"},null,8,l),[[n.vModelRadio,i.value]]),(0,n.createTextVNode)(),(0,n.createElementVNode)("label",{class:(0,n.normalizeClass)(["btn",[i.buttonColor(e),`btn-${o.size}`]]),for:i.uid+"__"+e.value,onChange:t=>i.updateValue(e)},(0,n.toDisplayString)(e.text||e.value),43,r)],64)))),256))])}]])},7724:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var n=o(311);const a=["id"];var l=o(4277),r=o.n(l);const i={name:"ColorInput",props:{modelValue:{default:""},id:String,inputClass:String,options:Object},setup(e,t){let{emit:o}=t;const a=(0,n.ref)(e.modelValue),l=(0,n.ref)(null);return(0,n.onMounted)((()=>{r().getInstance(l.value,e.options||{})})),(0,n.onBeforeUnmount)((()=>{r().getInstance(l.value).destroy()})),(0,n.watch)(a,(e=>{o("update:modelValue",e)})),{value:a,input:l}}};o(7040);const d=(0,o(3744).Z)(i,[["render",function(e,t,o,l,r,i){return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("input",{ref:"input",type:"text",id:o.id,class:(0,n.normalizeClass)(["form-control flex-grow-1",o.inputClass]),"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e)},null,10,a)),[[n.vModelText,l.value,void 0,{lazy:!0}]])}]])},4609:(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var n=o(311);const a={class:""},l=[(0,n.createElementVNode)("span",{class:"fa fa-fw fa-desktop"},null,-1)],r=[(0,n.createElementVNode)("span",{class:"fa fa-fw fa-tablet-screen-button"},null,-1)],i=[(0,n.createElementVNode)("span",{class:"fa fa-fw fa-mobile-screen-button"},null,-1)],d={name:"RwdGroup",props:{name:String,className:{default:"c-rwd-group",type:String}},setup(e){const t=(0,n.ref)("");return(0,n.onMounted)((()=>{setTimeout((()=>{t.value="lg"}),150)})),{currentSize:t,getClassName:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.className+t}}}},c=(0,o(3744).Z)(d,[["render",function(e,t,o,d,c,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["form-group mb-3",d.getClassName()])},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["d-flex",d.getClassName("__title")])},[(0,n.createElementVNode)("div",a,[(0,n.renderSlot)(e.$slots,"label")]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["ml-auto ms-auto",d.getClassName("__rwd-control")])},[(0,n.createElementVNode)("a",{href:"javascript://",class:(0,n.normalizeClass)(["lg"===d.currentSize?"active":"text-dark"]),onClick:t[0]||(t[0]=e=>d.currentSize="lg")},l,2),(0,n.createTextVNode)(),(0,n.createElementVNode)("a",{href:"javascript://",class:(0,n.normalizeClass)(["md"===d.currentSize?"active":"text-dark"]),onClick:t[1]||(t[1]=e=>d.currentSize="md")},r,2),(0,n.createTextVNode)(),(0,n.createElementVNode)("a",{href:"javascript://",class:(0,n.normalizeClass)(["xs"===d.currentSize?"active":"text-dark"]),onClick:t[2]||(t[2]=e=>d.currentSize="xs")},i,2)],2)],2),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(d.getClassName("__inputs"))},["lg"===d.currentSize?(0,n.renderSlot)(e.$slots,"lg",{key:0}):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(),"md"===d.currentSize?(0,n.renderSlot)(e.$slots,"md",{key:1}):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(),"xs"===d.currentSize?(0,n.renderSlot)(e.$slots,"xs",{key:2}):(0,n.createCommentVNode)("",!0)],2),(0,n.createTextVNode)(),(0,n.renderSlot)(e.$slots,"description")],2)}]])},9491:(e,t,o)=>{"use strict";o.d(t,{Z:()=>x});var n=o(311);const a={ref:"el",class:"c-single-image-uploader"},l={key:0,class:"form-group mb-3 c-single-image-preview text-center"},r=["src"],i={key:1,class:"c-single-image-placeholder text-center p-4 mb-3 border rounded"},d=[(0,n.createElementVNode)("small",{class:"text-muted"},"Drag Image Here",-1)],c={key:2,class:"form-group mb-3 d-flex align-items-center justify-content-center",style:{"min-height":"450px"}},s=[(0,n.createElementVNode)("div",{class:"spinner-border"},null,-1)],p={class:"form-group mb-3"},m={class:"input-group"},f=["id","disabled"],g=["disabled"],A=(0,n.createElementVNode)("i",{class:"fa fa-upload"},null,-1),b=["disabled"],h=[(0,n.createElementVNode)("span",{class:"fa fa-paste"},null,-1)],v=["disabled"],V=[(0,n.createElementVNode)("span",{class:"fa fa-times"},null,-1)],N=(0,n.createElementVNode)("small",{class:"form-text text-muted"},"\n Paste image url/file or drag and upload image here.\n ",-1),C={name:"single-image",props:{modelValue:{type:String,default:""},id:String,accepted:{type:Array,default:()=>["image/jpeg","image/png","image/gif","image/webp","image/svg","image/svg+xml"]}},setup(e,t){let{emit:o}=t;const a=(0,n.reactive)({url:"",loadingImage:u.route("loading_image"),uploading:!1}),l=(0,n.ref)(null);function r(t){if(!function(t){return!(e.accepted.indexOf(t.type)<0)||(alert("Invalid file format"),!1)}(t))return;const o=new FormData;return o.append("file",t),a.uploading=!0,u.$http.post("@file_upload",o).then((e=>{let t=e.data.data.url;0===t.indexOf(u.uri("root"))&&(t=t.substr(u.uri("root").length)),a.url=t})).catch((e=>{console.error(e.message),alert(e.message)})).finally((()=>{a.uploading=!1}))}a.url=e.modelValue,(0,n.onMounted)((()=>{l.value.addEventListener("dragover",(e=>{e.stopPropagation(),e.preventDefault(),l.value.classList.add("c-single-image-uploader--hover")})),l.value.addEventListener("dragleave",(e=>{e.stopPropagation(),e.preventDefault(),l.value.classList.remove("c-single-image-uploader--hover")})),l.value.addEventListener("drop",(e=>{e.stopPropagation(),e.preventDefault(),l.value.classList.remove("c-single-image-uploader--hover"),r((e.target.files||e.dataTransfer.files)[0])}))})),(0,n.watch)((()=>e.value),(()=>{a.url=e.modelValue})),(0,n.watch)((()=>a.url),(()=>{o("update:modelValue",a.url)}));const i=(0,n.computed)((()=>{let e=a.url;return e&&0!==e.indexOf("http")&&0!==e.indexOf("/")?u.uri("root")+"/"+e:e}));return{el:l,previewUrl:i,...(0,n.toRefs)(a),clearUrl:function(){a.url=""},chooseFile:function(){const t=document.createElement("input");t.type="file",t.accept=e.accepted.join(","),t.style.display="none",t.addEventListener("change",(e=>{r((e.target.files||e.dataTransfer.files)[0]),t.parentNode.removeChild(t)})),l.value.appendChild(t),t.click()},pasteFromButton:function(){navigator.clipboard.read().then((e=>{const t=e[0].types[1];e[0].getType(t).then((e=>{console.log(e),r(new File([e],"image.png",{type:e.type}))})).catch((e=>{console.warn("Unable to paste this data"),console.warn(e)}))}))},pasteFile:function(e){if(e.clipboardData.items[0]&&"file"===e.clipboardData.items[0].kind){e.preventDefault(),e.stopPropagation();const t=e.clipboardData.items[0];if(!t)return void console.error("No paste item");r(t.getAsFile())}}}}},x=(0,o(3744).Z)(C,[["render",function(e,t,o,u,C,x){const y=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[""===e.url||e.uploading?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",l,[(0,n.createElementVNode)("img",{src:u.previewUrl,alt:"Image",class:"img-fluid rounded",style:{"max-height":"450px"}},null,8,r)])),(0,n.createTextVNode)(),""!==e.url||e.uploading?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",i,d)),(0,n.createTextVNode)(),e.uploading?((0,n.openBlock)(),(0,n.createElementBlock)("div",c,s)):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("div",m,[(0,n.withDirectives)((0,n.createElementVNode)("input",{id:o.id,type:"text","onUpdate:modelValue":t[0]||(t[0]=t=>e.url=t),class:"form-control",disabled:e.uploading,onPaste:t[1]||(t[1]=function(){return u.pasteFile&&u.pasteFile(...arguments)})},null,40,f),[[n.vModelText,e.url]]),(0,n.createTextVNode)(),(0,n.createElementVNode)("button",{type:"button",class:"btn btn-primary",onClick:t[2]||(t[2]=e=>u.chooseFile()),disabled:e.uploading},[A,(0,n.createTextVNode)("\n Upload\n ")],8,g),(0,n.createTextVNode)(),(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("button",{type:"button",class:"btn btn-primary",onClick:t[3]||(t[3]=function(){return u.pasteFromButton&&u.pasteFromButton(...arguments)}),disabled:e.uploading,title:"Paste"},h,8,b)),[[y]]),(0,n.createTextVNode)(),""!==e.url?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:0,type:"button",class:"btn btn-primary",onClick:t[4]||(t[4]=(0,n.withModifiers)((function(){return u.clearUrl&&u.clearUrl(...arguments)}),["stop"])),disabled:e.uploading},V,8,v)):(0,n.createCommentVNode)("",!0)]),(0,n.createTextVNode)(),N])],512)}]])},8575:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(311);const a={class:"d-flex align-items-center"},l=["id","step"];o.e(540).then(o.t.bind(o,4540,23));const r={name:"SliderInput",components:{VueSlider:(0,n.defineAsyncComponent)((()=>o.e(454).then(o.t.bind(o,9454,23))))},props:{id:String,modelValue:{default:""},data:{type:Array},min:{type:Number},max:{type:Number},interval:{type:Number},inputWidth:{type:String,default:"5rem"}},setup(e,t){let{emit:o}=t;const a=(0,n.ref)(e.modelValue);return(0,n.watch)(a,(e=>{o("update:modelValue",e)})),{value:a}}},i=(0,o(3744).Z)(r,[["render",function(e,t,o,r,i,d){const c=(0,n.resolveComponent)("vue-slider");return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[(0,n.createVNode)(c,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),class:"flex-grow-1",max:o.max,min:o.min,"v-data":o.data,interval:o.interval},null,8,["modelValue","max","min","v-data","interval"]),(0,n.createTextVNode)(),(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"number",id:o.id,class:"form-control ms-2",style:(0,n.normalizeStyle)({width:o.inputWidth}),"onUpdate:modelValue":t[1]||(t[1]=e=>r.value=e),step:o.interval},null,12,l),[[n.vModelText,r.value]])])}]])},3207:(e,t,o)=>{"use strict";o.d(t,{Z:()=>M});var n=o(311);const a={class:"c-title-options"},l={class:"form-row row"},r={class:"col-6"},i={class:"form-group mb-3"},d=["for"],c=["id"],s=["value"],u={class:"col"},p={class:"form-group mb-3"},m=["for"],f={class:"form-row row"},g={class:"col-6"},A=(0,n.createElementVNode)("label",null,"\n Title Font Size\n ",-1),b={class:"col-6"},h={class:"form-group mb-3"},v=(0,n.createElementVNode)("label",null,"\n Title Font Weight\n ",-1),V={key:0,class:""},N={class:"form-row row"},C={class:"col-6"},x=(0,n.createElementVNode)("label",null,"\n Title Margin Top\n ",-1),y=["onUpdate:modelValue"],E={class:"col-6"},w=(0,n.createElementVNode)("label",null,"\n Title Margin Bottom\n ",-1),k=["onUpdate:modelValue"];var T=o(4609),B=o(7724),_=o(8575);const S={name:"TitleOptions",components:{ColorInput:B.Z,SliderInput:_.Z,RwdGroup:T.Z},props:{id:String,modelValue:Object},setup(e,t){let{emit:o}=t;const a=(0,n.reactive)({options:{},prepared:!1});return a.options=e.modelValue,(0,n.onMounted)((()=>{setTimeout((()=>{a.prepared=!0}),150)})),(0,n.watch)((()=>a.options),(()=>{o("update:modelValue",a.options)}),{deep:!0}),{...(0,n.toRefs)(a)}}},M=(0,o(3744).Z)(S,[["render",function(e,t,o,T,B,_){const S=(0,n.resolveComponent)("ColorInput"),M=(0,n.resolveComponent)("SliderInput"),U=(0,n.resolveComponent)("RwdGroup");return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",r,[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("label",{for:o.id+"title-element"},"\n Title Element\n ",8,d),(0,n.createTextVNode)(),(0,n.withDirectives)((0,n.createElementVNode)("select",{id:o.id+"title-element","onUpdate:modelValue":t[0]||(t[0]=t=>e.options.title.element=t),class:"form-select custom-select"},[((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)([1,2,3,4,5,6],(e=>(0,n.createElementVNode)("option",{value:"h"+e},"\n h"+(0,n.toDisplayString)(e),9,s))),64))],8,c),[[n.vModelSelect,e.options.title.element]])])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",u,[(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("label",{for:o.id+"title-color"},"Title Color",8,m),(0,n.createTextVNode)(),(0,n.createVNode)(S,{id:o.id+"title-color",modelValue:e.options.title.color,"onUpdate:modelValue":t[1]||(t[1]=t=>e.options.title.color=t),modelModifiers:{lazy:!0}},null,8,["id","modelValue"])])])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",f,[(0,n.createElementVNode)("div",g,[(0,n.createVNode)(U,{"class-name":"c-title-font-size"},(0,n.createSlots)({label:(0,n.withCtx)((()=>[A])),_:2},[(0,n.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,n.withCtx)((()=>[(0,n.createVNode)(M,{modelValue:e.options.title.font_size[t],"onUpdate:modelValue":o=>e.options.title.font_size[t]=o,max:500},null,8,["modelValue","onUpdate:modelValue"])]))})))]),1024)]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",b,[(0,n.createElementVNode)("div",h,[v,(0,n.createTextVNode)(),e.prepared?((0,n.openBlock)(),(0,n.createElementBlock)("div",V,[(0,n.createVNode)(M,{modelValue:e.options.title.font_weight,"onUpdate:modelValue":t[2]||(t[2]=t=>e.options.title.font_weight=t),data:["",100,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850,900,950,1e3],max:1e3},null,8,["modelValue"])])):(0,n.createCommentVNode)("",!0)])])]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",N,[(0,n.createElementVNode)("div",C,[(0,n.createVNode)(U,{"class-name":"c-title-margin_top"},(0,n.createSlots)({label:(0,n.withCtx)((()=>[x])),_:2},[(0,n.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,n.withCtx)((()=>[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"number","onUpdate:modelValue":o=>e.options.title.margin_top[t]=o,class:"form-control"},null,8,y),[[n.vModelText,e.options.title.margin_top[t]]])]))})))]),1024)]),(0,n.createTextVNode)(),(0,n.createElementVNode)("div",E,[(0,n.createVNode)(U,{"class-name":"c-title-margin_bottom"},(0,n.createSlots)({label:(0,n.withCtx)((()=>[w])),_:2},[(0,n.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,n.withCtx)((()=>[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"number","onUpdate:modelValue":o=>e.options.title.margin_bottom[t]=o,class:"form-control"},null,8,k),[[n.vModelText,e.options.title.margin_bottom[t]]])]))})))]),1024)])])])}]])},75:(e,t,o)=>{var n=o(2955);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5346).Z)("a93ea620",n,!0,{})},3385:(e,t,o)=>{var n=o(4481);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5346).Z)("53f8fa69",n,!0,{})},8103:(e,t,o)=>{var n=o(3311);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5346).Z)("28f6016c",n,!0,{})},7040:(e,t,o)=>{var n=o(4593);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5346).Z)("afdf7d2c",n,!0,{})},5346:(e,t,o)=>{"use strict";function n(e,t){for(var o=[],n={},a=0;af});var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},r=a&&(document.head||document.getElementsByTagName("head")[0]),i=null,d=0,c=!1,s=function(){},u=null,p="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,o,a){c=o,u=a||{};var r=n(e,t);return g(r),function(t){for(var o=[],a=0;ao.parts.length&&(n.parts.length=o.parts.length)}else{var r=[];for(a=0;a{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABe0lEQVQokYXSsUtcQRTF4d8Jj+VhHSxkEQuLsEUKK0nhTBFTmLSSUhBCMCAWsmgIwWrBLk0akfwLCaSQKBJmtrIIISwpRFKIhViETScphGMzysMtvOVwvpm5d0bGNCuGWAOPgYdl6S8wSDn9b+bUhDHEKWAdeAFMANg+l/TV9ofcz6cjMIbYBvaBMds7QCqZ58CmpBNgPuV0DvAAIMyFGugWtJr7eTv38xEwkPRPErY7QDeG2LqFkjrAgu0dSd/KDVqSNmxvAZ8lfbS9AHRuYemnLWkv5XRVBrQMbAI/gTXgEzAJtJuwBVS2L2OIle03QA/4Lmkl5XQBXEqqbFcAVYFDYChpFngiqWf7l6TXKaezMt2Zkhk24THwG+jZriX9AFZvUAyxLbRke2D75O5zPAO+ADXwEtizjaRHwDvbTyUtppwOmicCHAJvbXcl9YA1SQDjtseA97YPRz7ATcUQp2y/kjRdevsjaTfldNrMjcDGBjXA3T96L7yvrgFzP69+0Ao/HAAAAABJRU5ErkJggg=="},6270:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg=="},4859:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII="},3220:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII="},8898:e=>{"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 width=%2714%27 height=%2714%27%3E%3Cpath d=%27M12 20.016q3.281 0 5.648-2.367t2.367-5.648q0-2.672-1.734-4.922l-11.203 11.203q2.25 1.734 4.922 1.734zM3.984 12q0 2.672 1.734 4.922l11.203-11.203q-2.25-1.734-4.922-1.734-3.281 0-5.648 2.367t-2.367 5.648zM12 2.016q4.125 0 7.055 2.93t2.93 7.055-2.93 7.055-7.055 2.93-7.055-2.93-2.93-7.055 2.93-7.055 7.055-2.93z%27 fill=%27%23000%27%3E%3C/path%3E%3C/svg%3E"},1686:e=>{"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 width=%2718%27 height=%2718%27%3E%3Cpath d=%27M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z%27 fill=%27%23000%27%3E%3C/path%3E%3C/svg%3E"},6387:e=>{"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 width=%2718%27 height=%2718%27%3E%3Cpath d=%27M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z%27 fill=%27%23fff%27%3E%3C/path%3E%3C/svg%3E"},9376:e=>{"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 fill=%27%23ccc%27 fill-opacity=%271%27%3E%3Crect x=%270%27 y=%270%27 width=%276%27 height=%276%27 /%3E%3Crect x=%276%27 y=%276%27 width=%276%27 height=%276%27 /%3E%3C/svg%3E"},311:e=>{"use strict";e.exports=Vue},7685:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=o(6092).Z.Symbol},9001:(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var n=o(4732),a=o(7771),l=o(6706),r=o(6009),i=o(9720),d=Object.prototype.hasOwnProperty;const c=function(e,t){var o=(0,a.Z)(e),c=!o&&(0,n.Z)(e),s=!o&&!c&&(0,l.Z)(e),u=!o&&!c&&!s&&(0,i.Z)(e),p=o||c||s||u,m=p?function(e,t){for(var o=-1,n=Array(e);++o{"use strict";o.d(t,{Z:()=>n});const n=function(e,t,o){for(var n=-1,a=Object(e),l=o(e),r=l.length;r--;){var i=l[++n];if(!1===t(a[i],i,a))break}return e}},3243:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});var n=o(7685),a=Object.prototype,l=a.hasOwnProperty,r=a.toString,i=n.Z?n.Z.toStringTag:void 0;var d=Object.prototype.toString;var c=n.Z?n.Z.toStringTag:void 0;const s=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=l.call(e,i),o=e[i];try{e[i]=void 0;var n=!0}catch(e){}var a=r.call(e);return n&&(t?e[i]=o:delete e[i]),a}(e):function(e){return d.call(e)}(e)}},3413:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},6009:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var n=/^(?:0|[1-9]\d*)$/;const a=function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e{"use strict";o.d(t,{Z:()=>i});var n=o(9651),a=o(585),l=o(6009),r=o(7226);const i=function(e,t,o){if(!(0,r.Z)(o))return!1;var i=typeof t;return!!("number"==i?(0,a.Z)(o)&&(0,l.Z)(t,o.length):"string"==i&&t in o)&&(0,n.Z)(o[t],e)}},2764:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var n=Object.prototype;const a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},1851:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=function(e,t){return function(o){return e(t(o))}}},6092:(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var n=o(3413),a="object"==typeof self&&self&&self.Object===Object&&self;const l=n.Z||a||Function("return this")()},1554:(e,t,o)=>{"use strict";o.d(t,{Z:()=>Se});const n=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)};var a=o(9203),l=Math.max;const r=function(e){return function(){return e}};var i=o(3234),d=o(6092);const c=d.Z["__core-js_shared__"];var s,u=(s=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";var p=o(7226),m=Function.prototype.toString;var f=/^\[object .+?Constructor\]$/,g=Function.prototype,A=Object.prototype,b=g.toString,h=A.hasOwnProperty,v=RegExp("^"+b.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(e){return!(!(0,p.Z)(e)||(t=e,u&&u in t))&&((0,i.Z)(e)?v:f).test(function(e){if(null!=e){try{return m.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t},N=function(e,t){var o=function(e,t){return null==e?void 0:e[t]}(e,t);return V(o)?o:void 0},C=function(){try{var e=N(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),x=C?function(e,t){return C(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a.Z;var y=Date.now;const E=(w=x,k=0,T=0,function(){var e=y(),t=16-(e-T);if(T=e,t>0){if(++k>=800)return arguments[0]}else k=0;return w.apply(void 0,arguments)});var w,k,T;const B=function(e,t){return E(function(e,t,o){return t=l(void 0===t?e.length-1:t,0),function(){for(var a=arguments,r=-1,i=l(a.length-t,0),d=Array(i);++r-1},U.prototype.set=function(e,t){var o=this.__data__,n=S(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this};const D=U,R=N(d.Z,"Map"),O=N(Object,"create");var z=Object.prototype.hasOwnProperty;var Z=Object.prototype.hasOwnProperty;function I(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t1?t[n-1]:void 0,l=n>2?t[2]:void 0;for(a=_e.length>3&&"function"==typeof a?(n--,a):void 0,l&&(0,Te.Z)(t[0],t[1],l)&&(a=n<3?void 0:a,n=1),e=Object(e);++o{"use strict";o.d(t,{Z:()=>n});const n=function(e,t){return e===t||e!=e&&t!=t}},5304:(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});const n=function(e,t){for(var o=-1,n=null==e?0:e.length;++o{"use strict";o.d(t,{Z:()=>n});const n=function(e){return e}},4732:(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var n=o(3243),a=o(8533);const l=function(e){return(0,a.Z)(e)&&"[object Arguments]"==(0,n.Z)(e)};var r=Object.prototype,i=r.hasOwnProperty,d=r.propertyIsEnumerable;const c=l(function(){return arguments}())?l:function(e){return(0,a.Z)(e)&&i.call(e,"callee")&&!d.call(e,"callee")}},7771:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=Array.isArray},585:(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var n=o(3234),a=o(1656);const l=function(e){return null!=e&&(0,a.Z)(e.length)&&!(0,n.Z)(e)}},6706:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(6092);var a="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=a&&"object"==typeof module&&module&&!module.nodeType&&module,r=l&&l.exports===a?n.Z.Buffer:void 0;const i=(r?r.isBuffer:void 0)||function(){return!1}},3234:(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var n=o(3243),a=o(7226);const l=function(e){if(!(0,a.Z)(e))return!1;var t=(0,n.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1656:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7226:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},8533:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n=function(e){return null!=e&&"object"==typeof e}},9720:(e,t,o)=>{"use strict";o.d(t,{Z:()=>m});var n=o(3243),a=o(1656),l=o(8533),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1;var i=o(3413),d="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=d&&"object"==typeof module&&module&&!module.nodeType&&module,s=c&&c.exports===d&&i.Z.process,u=function(){try{return c&&c.require&&c.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}(),p=u&&u.isTypedArray;const m=p?(f=p,function(e){return f(e)}):function(e){return(0,l.Z)(e)&&(0,a.Z)(e.length)&&!!r[(0,n.Z)(e)]};var f},703:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var n=o(9001),a=o(2764);const l=(0,o(1851).Z)(Object.keys,Object);var r=Object.prototype.hasOwnProperty;var i=o(585);const d=function(e){return(0,i.Z)(e)?(0,n.Z)(e):function(e){if(!(0,a.Z)(e))return l(e);var t=[];for(var o in Object(e))r.call(e,o)&&"constructor"!=o&&t.push(o);return t}(e)}}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={id:e,exports:{}};return n[e].call(o.exports,o,o.exports,l),o.exports}l.m=n,l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var a=Object.create(null);l.r(a);var r={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>r[e]=()=>o[e]));return r.default=()=>o,l.d(a,r),a},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,o)=>(l.f[o](e,t),t)),[])),l.u=e=>"page/chunk-vendor."+e+".js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},l.l=(e,t,n,a)=>{if(o[e])o[e].push(t);else{var r,i;if(void 0!==n)for(var d=document.getElementsByTagName("script"),c=0;c{r.onerror=r.onload=null,clearTimeout(p);var a=o[e];if(delete o[e],r.parentNode&&r.parentNode.removeChild(r),a&&a.forEach((e=>e(n))),t)return t(n)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),i&&document.head.appendChild(r)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&!e;)e=o[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e})(),(()=>{l.b=document.baseURI||self.location.href;var e={84:0};l.f.j=(t,o)=>{var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{var a=new Promise(((o,a)=>n=e[t]=[o,a]));o.push(n[2]=a);var r=l.p+l.u(t),i=new Error;l.l(r,(o=>{if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+r+")",i.name="ChunkLoadError",i.type=a,i.request=r,n[1](i)}}),"chunk-"+t,t)}};var t=(t,o)=>{var n,a,[r,i,d]=o,c=0;if(r.some((t=>0!==e[t]))){for(n in i)l.o(i,n)&&(l.m[n]=i[n]);d&&d(l)}for(t&&t(o);c{"use strict";var e=l(311);const t={id:"page-builder",class:"page-builder card bg-light border-0",ref:"root"},o={class:"card-header page-builder__topbar d-flex"},n={class:"ms-auto"},a=(0,e.createElementVNode)("span",{class:"fab fa-css3"},null,-1),r={class:"d-inline-block"},i={class:"text-nowrap btn-group dropdown"},d=[(0,e.createElementVNode)("div",{style:{display:"inline-block","min-width":"120px"}},[(0,e.createElementVNode)("span",{class:"fa fa-file-code"}),(0,e.createTextVNode)("\n Insert Template\n ")],-1)],c=(0,e.createElementVNode)("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle dropdown-toggle-split","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"visually-hidden sr-only"},"Toggle Dropdown")],-1),s={class:"dropdown-menu dropdown-menu-end dropdown-menu-right"},p=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-save"},null,-1),m=(0,e.createElementVNode)("span",{class:"fa fa-clone"},null,-1),f={class:"card-body"},g={class:"page-builder__body body"},A={key:0,class:"page-builder__bottom-toolbar text-center"},b={class:"dropdown btn-group text-nowrap"},h=(0,e.createElementVNode)("button",{class:"btn btn-sm btn-outline-secondary dropdown-toggle dropdown-toggle-split"},[(0,e.createElementVNode)("span",{class:"visually-hidden sr-only"},"Toggle Dropdown")],-1),v={class:"dropdown-menu dropdown-menu dropdown-menu-right"},V=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-paste"},null,-1),N=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-file-code"},null,-1),C={class:"row c-addon-list"},x={class:"col-6 col-md-4 mb-2 c-addon-list__item c-addon"},y=["title","onClick"],E={class:"c-addon__icon"},w={class:"m-0"},k={class:"ml-auto ms-auto"},T=(0,e.createElementVNode)("i",{class:"fa fa-times"},null,-1),B=["disabled"],_=["id","aria-labelledby","aria-hidden","data-bs-backdrop"],M={class:"modal-content"},U={key:1,class:"modal-header"},D=["id"],R=(0,e.createElementVNode)("button",{type:"button",class:"close btn-close","data-bs-dismiss":"modal","data-dismiss":"modal","aria-label":"Close"},[(0,e.createElementVNode)("span",{"aria-hidden":"true",class:"visually-hidden"},"×")],-1),O={key:1,class:"modal-body"},z={key:2,class:"modal-footer"},Z={name:"BsModal",inheritAttrs:!1,props:{id:String,open:{type:Boolean,default:!1},size:String,title:String,backdrop:{type:[String,Boolean],default:!0}},emits:["show","shown","hide","hidden"],setup(t,o){let{emit:n,slots:a}=o;const l=(0,e.ref)(null),r=(0,e.reactive)({idName:t.id||"modal-"+u.uid(),visible:t.open});function i(){return bootstrap.Modal.VERSION.split(".").shift()>=5?bootstrap.Modal.getOrCreateInstance(l.value):bootstrap.Modal.getInstance(l.value)}return(0,e.watch)((()=>r.visible),((e,t)=>{!t&&e&&i().show(),t&&!e&&i().hide()})),(0,e.watch)((()=>t.open),(e=>{r.visible=e})),(0,e.watch)((()=>t.id),(e=>{r.idName=e})),(0,e.onMounted)((()=>{l.value.addEventListener("show.bs.modal",(e=>{n("show",e)})),l.value.addEventListener("shown.bs.modal",(e=>{n("shown",e)})),l.value.addEventListener("hide.bs.modal",(e=>{n("hide",e)})),l.value.addEventListener("hidden.bs.modal",(e=>{n("hidden",e)}))})),{...(0,e.toRefs)(r),modal:l,hasSlots:function(e){return void 0!==a[e]}}}};var I=l(3744);const L=(0,I.Z)(Z,[["render",function(t,o,n,a,l,r){return(0,e.openBlock)(),(0,e.createBlock)(e.Teleport,{to:"body"},[(0,e.createElementVNode)("div",(0,e.mergeProps)({ref:"modal",class:"modal fade",id:t.idName},t.$attrs,{tabindex:"-1",role:"dialog","aria-labelledby":t.idName+"-label","aria-hidden":t.visible?"true":"false","data-bs-backdrop":n.backdrop}),[(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["modal-dialog",n.size?"modal-"+n.size:null]),role:"document"},[(0,e.createElementVNode)("div",M,[t.visible?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[a.hasSlots("header-element")?(0,e.renderSlot)(t.$slots,"header-element",{key:0}):((0,e.openBlock)(),(0,e.createElementBlock)("div",U,[(0,e.renderSlot)(t.$slots,"header",{},(()=>[(0,e.createElementVNode)("div",{class:"modal-title",id:t.idName+"-label"},[(0,e.createElementVNode)("h4",null,(0,e.toDisplayString)(n.title),1)],8,D)])),(0,e.createTextVNode)(),R]))],64)):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),t.visible?((0,e.openBlock)(),(0,e.createElementBlock)("div",O,[(0,e.renderSlot)(t.$slots,"default")])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),t.visible&&a.hasSlots("footer")?((0,e.openBlock)(),(0,e.createElementBlock)("div",z,[(0,e.renderSlot)(t.$slots,"footer")])):(0,e.createCommentVNode)("",!0)])],2)],16,_)])}]]);var F=l(5304);const j={class:"modal-header bg-white sticky-top"},P={ref:"tab",class:"nav nav-pills border-0"},G={class:"nav-item"},q={ref:"generalTab",class:"nav-link active","data-toggle":"tab","data-bs-toggle":"tab",href:"#addon-edit-general"},H=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#addon-edit-layout"},"\n Layout\n ")],-1),J=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#addon-edit-animation"},"\n Animation\n ")],-1),Y={class:"ml-auto ms-auto"},W=(0,e.createElementVNode)("span",{class:"fa fa-check"},null,-1),Q=["disabled"],K=[(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1)],X={key:0,class:"tab-content",id:"addon-edit-tab-content"},ee={class:"tab-pane fade show active",id:"addon-edit-general",role:"tabpanel","aria-labelledby":"addon-edit-general-tab"},te={class:"form-group mb-3"},oe=(0,e.createElementVNode)("label",{for:"input-addon-edit-label"},"Label",-1),ne=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"Only show when editing page.",-1),ae={class:"form-group mb-3"},le=(0,e.createElementVNode)("label",{for:"input-addon-edit-html-class"},"CSS Class",-1),re={class:"tab-pane fade",id:"addon-edit-layout",role:"tabpanel","aria-labelledby":"addon-edit-layout-tab"},ie=(0,e.createElementVNode)("label",null,"Padding",-1),de=(0,e.createElementVNode)("label",null,"Margin",-1),ce={class:"form-group mb-3"},se=(0,e.createElementVNode)("label",{for:"input-addon-edit-text-color"},"Text Color",-1),ue={class:"form-group mb-3"},pe=(0,e.createElementVNode)("label",{for:"input-addon-edit-background"},"Background Type",-1),me={class:"mt-2"},fe={key:0,class:"form-group mb-3"},ge=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-color"},"Background Color",-1),Ae={key:0,style:{"animation-duration":".3s"}},be={class:"form-group mb-3"},he=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-image"},"Background Image",-1),ve={class:"form-row row"},Ve={class:"form-group mb-3 col-md-6"},Ne=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-overlay"},"Background Overlay",-1),Ce={class:"form-group mb-3 col-md-6"},xe=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-repeat"},"Background Repeat",-1),ye=(0,e.createElementVNode)("option",{value:"no-repeat"},"No Repeat",-1),Ee=(0,e.createElementVNode)("option",{value:""},"Repeat All",-1),we=(0,e.createElementVNode)("option",{value:"repeat-x"},"Repeat X",-1),ke=(0,e.createElementVNode)("option",{value:"repeat-y"},"Repeat Y",-1),Te=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Be={class:"form-row row"},_e={class:"form-group mb-3 col-md-6"},Se=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-attachment"},"Background Attachment",-1),Me=(0,e.createElementVNode)("option",{value:"fixed"},"Fixed",-1),Ue=(0,e.createElementVNode)("option",{value:"scroll"},"Scroll",-1),De=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Re={class:"form-group mb-3 col-md-6"},Oe=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-position"},"Background Position",-1),ze=(0,e.createElementVNode)("option",{value:"left top"},"Left Top",-1),Ze=(0,e.createElementVNode)("option",{value:"left center"},"Left Center",-1),Ie=(0,e.createElementVNode)("option",{value:"left bottom"},"Left Bottom",-1),Le=(0,e.createElementVNode)("option",{value:"center top"},"Center Top",-1),Fe=(0,e.createElementVNode)("option",{value:"center center"},"Center Center",-1),je=(0,e.createElementVNode)("option",{value:"center bottom"},"Center Bottom",-1),Pe=(0,e.createElementVNode)("option",{value:"right top"},"Right Top",-1),Ge=(0,e.createElementVNode)("option",{value:"right center"},"Right Center",-1),$e=(0,e.createElementVNode)("option",{value:"right bottom"},"Right Bottom",-1),qe={key:0,style:{"animation-duration":".3s"}},He={class:"form-group mb-3"},Je=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-video-url"},"Video URL",-1),Ye=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"\n Paste mp4 video URL or Youtube / Vimeo link.\n ",-1),We={key:0,style:{"animation-duration":".3s"}},Qe={class:"form-group mb-3"},Ke=(0,e.createElementVNode)("label",{for:"input-addon-edit-bg-overlay"},"Background Overlay",-1),Xe={class:"form-group mb-3"},et=(0,e.createElementVNode)("label",{for:"input-addon-edit-hidden-mobile"},"Parallel Scroll",-1),tt=(0,e.createElementVNode)("hr",null,null,-1),ot={class:"form-group mb-3"},nt=(0,e.createElementVNode)("label",{for:"input-addon-edit-hidden-mobile"},"Hide in Mobile",-1),at={class:"form-group mb-3"},lt=(0,e.createElementVNode)("label",{for:"input-addon-edit-hidden-tablet"},"Hide in Tablet",-1),rt={class:"form-group mb-3"},it=(0,e.createElementVNode)("label",{for:"input-addon-edit-hidden-desktop"},"Hide in Desktop",-1),dt=(0,e.createElementVNode)("hr",null,null,-1),ct={class:"form-group mb-3"},st=(0,e.createElementVNode)("label",{for:"input-addon-edit-css"},"Custom CSS (SCSS)",-1),ut={class:"text-muted small mb-3"},pt={key:0},mt={class:"tab-pane fade",id:"addon-edit-animation",role:"tabpanel","aria-labelledby":"addon-edit-animation-tab"},ft=(0,e.createElementVNode)("span",{class:"fa fa-save"},null,-1),gt=(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1),At={ref:"wrapper"},bt={ref:"editor"},ht={name:"CssEditor",props:{modelValue:String,autoFocus:{type:Boolean,default:!1}},setup(t,o){let{emit:n}=o;const a=(0,e.ref)(null),r=(0,e.ref)(null);let i=null;const d=(0,e.ref)(""),c=(0,e.ref)(!1),s=(0,e.ref)({});return(0,e.onMounted)((async()=>{const{default:e,CodeMirrorOptions:o}=await Promise.all([l.e(564),l.e(461)]).then(l.bind(l,1461));s.value=o,setTimeout((()=>{i=e(r.value,s.value),i.setValue(d.value),i.on("change",((e,t)=>{d.value=e.getValue()})),t.autoFocus&&setTimeout((()=>i.focus()),500)}),300)})),(0,e.watch)((()=>t.modelValue),(e=>{d.value=e,i&&i.getValue()!==e&&(console.log(e),i.setValue(e))}),{immediate:!0}),(0,e.watch)(d,(e=>{n("update:modelValue",e)})),{css:d,show:c,options:s,editor:r,wrapper:a}}},vt=(0,I.Z)(ht,[["render",function(t,o,n,a,l,r){return(0,e.openBlock)(),(0,e.createElementBlock)("div",At,[(0,e.createElementVNode)("div",bt,null,512),(0,e.createTextVNode)()],512)}]]);var Vt=l(1554);var Nt=l(7685);const Ct=function(e,t){for(var o=-1,n=null==e?0:e.length,a=Array(n);++o=a?n:a)),n),t=Bt(t),e.slice(o,o+t.length)==t;var n,a,l};let Lt="";function Ft(){const e=document.querySelector("#input-item-content");return""!==Lt&&Lt===e.value&&console.warn("[Page] Content not change, there was an error or you didn't edit anything."),u.$http.post("@page_ajax/savePage",new FormData(document.querySelector("#admin-form"))).then((e=>(console.log("儲存完成"),e.data.data.redirect&&(location.href=e.data.data.redirect),e))).finally((()=>{Lt=e.value})).catch((e=>{console.error(e),swal(e.message,"","warning")}))}function jt(e){"string"!=typeof e&&(e=JSON.stringify(e,null,4));const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function Pt(){return navigator.clipboard.readText().catch((e=>{console.error("Failed to read clipboard contents: ",e)}))}function Gt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=JSON.parse(JSON.stringify(e));if("row"===e.type||It(e.id,"row-")){if(t)return console.log("Cannot add row to child column."),null;o.id="row-"+u.uid(),o.type="row"}else o.id="addon-"+u.uid();return o}function $t(){return{id:"row-"+u.uid(),disabled:!1,options:{label:"",title:{text:"",element:"h3",font_size:{lg:"",md:"",xs:""},font_weight:"",color:"",margin_top:{lg:"",md:"",xs:""},margin_bottom:{lg:"",md:"",xs:""}},subtitle:{text:"",font_size:{lg:"",md:"",xs:""}},html_id:"",html_class:"",html_css:"",title_align:"center",valign:"top",justify_content:"start",fluid_row:!1,no_gutter:!1,padding:{lg:"",md:"",xs:""},margin:{lg:"",md:"",xs:""},display:{xs:"d-block",md:"d-md-block",lg:"d-lg-block"},text_color:"",background:{type:"none",color:"",image:{url:"",overlay:"",repeat:"",position:"center center",attachment:"inherit",size:"cover"},gradient:{type:"liner",angle:"",start_color:"",start_pos:"",end_color:"",end_pos:""},video:{url:"",overlay:""},parallax:!1},animation:{name:"",duration:300,delay:0}},columns:[]}}function qt(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{id:"col-"+u.uid(),disabled:!1,addons:[],options:{html_class:"",html_css:"",align:"",valign:"top",padding:{xs:"",md:"",lg:""},margin:{xs:"",md:"",lg:""},text_color:"",width:{xs:"",md:"",lg:e?"col-lg-6":"col-lg-3"},display:{xs:"d-block",md:"d-md-block",lg:"d-lg-block"},box_shadow:{enabled:0,color:"rgba(0, 0, 0, 1)",hoffset:0,voffset:0,blur:0,spread:0},border:{enabled:0,width:{lg:1,md:1,xs:1},color:"",style:"",radius:{lg:0,md:0,xs:0}},background:{type:"none",color:"",overlay:"",image:{url:"",repeat:"",position:"center center",attachment:"inherit",size:"cover"},gradient:{type:"liner",angle:"",start_color:"",start_pos:"",end_color:"",end_pos:""},video:""},animation:{name:"",duration:300,delay:0}}}}var Ht=l(2120),Jt=l(4928),Yt=l(7724),Wt=l(4609),Qt=l(8575),Kt=l(3207),Xt=l(8624);const eo={class:"cation-selector"},to={class:"form-group mb-3"},oo=["for"],no=["id"],ao=(0,e.createElementVNode)("option",{value:""},"None",-1),lo=["value"],ro={class:"form-group mb-3"},io=["for"],co=["id"],so=(0,e.createElementVNode)("small",{class:"form-text text-muted"},'\n The duration of this animation. The unit is "ms" (1/1000 seconds)\n ',-1),uo={class:"form-group mb-3"},po=["for"],mo=["id"],fo=(0,e.createElementVNode)("small",{class:"form-text text-muted"},'\n Delay a while to start animation. The unit is "ms" (1/1000 seconds)\n ',-1),go={name:"animations",props:{value:Object,id:String},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({animation:{}});return(0,e.onMounted)((()=>{a.animation=t.value})),(0,e.watch)((()=>a.animation),(e=>{n("update:value",e)})),{...(0,e.toRefs)(a),getAnimations:Ao}}};function Ao(){return["fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","flip","flipInX","flipInY","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp"]}const bo=(0,I.Z)(go,[["render",function(t,o,n,a,l,r){return(0,e.openBlock)(),(0,e.createElementBlock)("div",eo,[(0,e.createElementVNode)("div",to,[(0,e.createElementVNode)("label",{for:n.id+"-name"},"Animation Name",8,oo),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:n.id+"-name",class:"form-select custom-select","onUpdate:modelValue":o[0]||(o[0]=e=>t.animation.name=e)},[ao,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.getAnimations(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:t},(0,e.toDisplayString)(t),9,lo)))),256))],8,no),[[e.vModelSelect,t.animation.name]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ro,[(0,e.createElementVNode)("label",{for:n.id+"-duration"},"Animation Duration",8,io),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"number",id:n.id+"-duration",class:"form-control","onUpdate:modelValue":o[1]||(o[1]=e=>t.animation.duration=e),min:"0"},null,8,co),[[e.vModelText,t.animation.duration]]),(0,e.createTextVNode)(),so]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",uo,[(0,e.createElementVNode)("label",{for:n.id+"-delay"},"Delay Time",8,po),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"number",id:n.id+"-delay",class:"form-control","onUpdate:modelValue":o[2]||(o[2]=e=>t.animation.delay=e),min:"0"},null,8,mo),[[e.vModelText,t.animation.delay]]),(0,e.createTextVNode)(),fo])])}]]);var ho=l(9491);const vo={class:"c-box-offset"},Vo={class:"form-row row"},No={class:"col-6"},Co={class:"form-group mb-3"},xo=["for"],yo=["id"],Eo={class:"form-group mb-3"},wo=["for"],ko={class:"col-6"},To={class:"form-group mb-3"},Bo=["for"],_o=["id"],So={class:"form-group mb-3"},Mo=["for"],Uo={class:"form-group mb-3"},Do=["for"],Ro=["id"],Oo=(0,e.createElementVNode)("option",{value:"linear"},"Linear",-1),zo=(0,e.createElementVNode)("option",{value:"radial"},"Radial",-1),Zo={class:"form-group mb-3"},Io=["for"],Lo={name:"gradient",components:{SliderInput:Qt.Z},props:{id:String,value:Object},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({gradient:{type:"linear",angle:"0",start_color:"",start_pos:"0",end_color:"",end_pos:"100"}});function l(){n("update.value",a.gradient)}(0,e.onMounted)((()=>{a.gradient=t.value})),(0,e.watch)((()=>a.gradient),(()=>{l()}),{deep:!0});const r=(0,e.computed)((()=>{const e=a.gradient;return"linear"===e.type?`${e.type}-gradient(${e.angle}deg, ${e.start_color} ${e.start_pos}%, ${e.end_color} ${e.end_pos}%)`:`${e.type}-gradient(${e.start_color} ${e.start_pos}%, ${e.end_color} ${e.end_pos}%)`}));return{...(0,e.toRefs)(a),backgroundImage:r,updated:l}}},Fo=(0,I.Z)(Lo,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("vue-slide-bar"),d=(0,e.resolveComponent)("SliderInput"),c=(0,e.resolveDirective)("color");return(0,e.openBlock)(),(0,e.createElementBlock)("div",vo,[(0,e.createElementVNode)("div",{class:"c-gradient-preview mb-3",style:(0,e.normalizeStyle)([{height:"100px",border:"1px solid rgba(0, 0, 0, .2)"},{"background-image":a.backgroundImage}])},null,4),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Vo,[(0,e.createElementVNode)("div",No,[(0,e.createElementVNode)("div",Co,[(0,e.createElementVNode)("label",{for:n.id+"-color1"},"Color 1",8,xo),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"text",id:n.id+"-color1","onUpdate:modelValue":o[0]||(o[0]=e=>t.gradient.start_color=e),class:"form-control"},null,8,yo),[[e.vModelText,t.gradient.start_color,void 0,{lazy:!0}],[c]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Eo,[(0,e.createElementVNode)("label",{for:n.id+"-color1-pos"},"Color 1 Position",8,wo),(0,e.createTextVNode)(),(0,e.createVNode)(i,{modelValue:t.gradient.start_pos,"onUpdate:modelValue":o[1]||(o[1]=e=>t.gradient.start_pos=e)},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ko,[(0,e.createElementVNode)("div",To,[(0,e.createElementVNode)("label",{for:n.id+"-color2"},"Color 2",8,Bo),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"text",id:n.id+"-color2","onUpdate:modelValue":o[2]||(o[2]=e=>t.gradient.end_color=e),class:"form-control"},null,8,_o),[[e.vModelText,t.gradient.end_color,void 0,{lazy:!0}],[c]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",So,[(0,e.createElementVNode)("label",{for:n.id+"-color2-pos"},"Color 2 Position",8,Mo),(0,e.createTextVNode)(),(0,e.createVNode)(i,{modelValue:t.gradient.end_pos,"onUpdate:modelValue":o[3]||(o[3]=e=>t.gradient.end_pos=e)},null,8,["modelValue"])])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Uo,[(0,e.createElementVNode)("label",{for:n.id+"-type"},"Gradient Type",8,Do),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:n.id+"-type","onUpdate:modelValue":o[4]||(o[4]=e=>t.gradient.type=e),class:"form-select custom-select"},[Oo,(0,e.createTextVNode)(),zo],8,Ro),[[e.vModelSelect,t.gradient.type,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Zo,[(0,e.createElementVNode)("label",{for:n.id+"-angle"},"Angle",8,Io),(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:n.id+"-angle",modelValue:t.gradient.angle,"onUpdate:modelValue":o[5]||(o[5]=e=>t.gradient.angle=e),max:360},null,8,["id","modelValue"])])])}]]),jo={name:"addon-edit",components:{BsModal:L,CssEditor:vt,ColorInput:Yt.Z,UnicornSwitcher:Ht.Z,SliderInput:Qt.Z,RwdGroup:Wt.Z,ButtonRadio:Jt.Z,TitleOptions:Kt.Z,Animations:bo,BoxOffset:Xt.Z,SingleImage:ho.Z,Gradient:Fo},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({values:{},saving:!1,modalShow:!1});(0,e.onMounted)((()=>{}));const l=(0,e.ref)(null),r=(0,e.ref)("general");function i(){r.value=l.value.querySelector("a.nav-link.active").getAttribute("href").replace("#addon-edit-","")}function d(){a.modalShow=!1,(0,e.nextTick)((()=>{a.values={},a.sticky=!1}))}function c(e){"string"==typeof e.options.background.video&&(e.options.background.video={url:e.options.background.video})}const s=(0,e.computed)((()=>a.values.options));return{...(0,e.toRefs)(a),options:s,tab:l,currentTab:r,edit:function(t){const o=JSON.parse(JSON.stringify(t));o.options=(0,Vt.Z)(o.options,{html_class:"",html_css:"",label:"",title:{text:"",element:"h3",font_size:{lg:"",md:"",xs:""},font_weight:"",color:"",margin_top:{lg:"",md:"",xs:""},margin_bottom:{lg:"",md:"",xs:""}},align:"",padding:{xs:"",md:"",lg:""},margin:{xs:"",md:"",lg:""},text_color:"",display:{xs:"d-block",md:"d-md-block",lg:"d-lg-block"},box_shadow:{enabled:0,color:"rgba(0, 0, 0, 1)",hoffset:0,voffset:0,blur:0,spread:0},border:{enabled:0,width:{lg:1,md:1,xs:1},color:"",style:"",radius:{lg:0,md:0,xs:0}},background:{type:"none",color:"",overlay:"",image:{url:"",repeat:"",position:"center center",attachment:"inherit",size:"cover"},gradient:{type:"liner",angle:"",start_color:"",start_pos:"",end_color:"",end_pos:""},video:{url:""}},animation:{name:"",duration:300,delay:0}}),o.disabled=!1,c(o),a.modalShow=!0,(0,e.nextTick)((()=>{a.values=o,l.value.addEventListener("shown.bs.tab",(()=>{i()})),i()}))},saveClose:function(){u.trigger("addon:save",JSON.parse(JSON.stringify(a.values))),d()},savePage:function(){u.trigger("addon:save",JSON.parse(JSON.stringify(a.values))),a.saving=!0,(0,e.nextTick)((()=>{Ft(a.saving).finally((()=>{a.saving=!1}))}))},close:d,dataMigration:c}}},Po=(0,I.Z)(jo,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("BoxOffset"),d=(0,e.resolveComponent)("ColorInput"),c=(0,e.resolveComponent)("ButtonRadio"),s=(0,e.resolveComponent)("SingleImage"),u=(0,e.resolveComponent)("Gradient"),p=(0,e.resolveComponent)("UnicornSwitcher"),m=(0,e.resolveComponent)("CssEditor"),f=(0,e.resolveComponent)("Animations"),g=(0,e.resolveComponent)("BsModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",null,[(0,e.createVNode)(g,{open:t.modalShow,size:"lg",onHidden:o[26]||(o[26]=e=>t.modalShow=!1),backdrop:"static",class:"c-modal-addon-edit"},{"header-element":(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",j,[(0,e.createElementVNode)("ul",P,[(0,e.createElementVNode)("li",G,[(0,e.createElementVNode)("a",q,"\n General\n ",512)]),(0,e.createTextVNode)(),H,(0,e.createTextVNode)(),J],512),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Y,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary",onClick:o[0]||(o[0]=e=>a.saveClose())},[W,(0,e.createTextVNode)("\n Done\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[1]||(o[1]=e=>a.savePage()),disabled:t.saving},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(this.saving?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save Page\n ")],8,Q),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[2]||(o[2]=e=>a.close())},K)])])])),footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[24]||(o[24]=e=>a.saveClose())},[ft,(0,e.createTextVNode)("\n Save\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[25]||(o[25]=e=>a.close())},[gt,(0,e.createTextVNode)("\n Cancel\n ")])])),default:(0,e.withCtx)((()=>[(0,e.createTextVNode)(),t.values.id?((0,e.openBlock)(),(0,e.createElementBlock)("div",X,[(0,e.createElementVNode)("div",ee,[(0,e.createElementVNode)("div",te,[oe,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-addon-edit-label",type:"text","onUpdate:modelValue":o[3]||(o[3]=e=>a.options.label=e),class:"form-control"},null,512),[[e.vModelText,a.options.label]]),(0,e.createTextVNode)(),ne]),(0,e.createTextVNode)(),t.values.componentName?((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.values.componentName),{key:0,modelValue:t.values.options,"onUpdate:modelValue":o[4]||(o[4]=e=>t.values.options=e),"addon-id":t.values.id},null,8,["modelValue","addon-id"])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ae,[le,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-addon-edit-html-class",type:"text","onUpdate:modelValue":o[5]||(o[5]=e=>a.options.html_class=e),class:"form-control"},null,512),[[e.vModelText,a.options.html_class]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",re,[(0,e.createVNode)(i,{modelValue:a.options.padding,"onUpdate:modelValue":o[6]||(o[6]=e=>a.options.padding=e)},{label:(0,e.withCtx)((()=>[ie])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createVNode)(i,{modelValue:a.options.margin,"onUpdate:modelValue":o[7]||(o[7]=e=>a.options.margin=e)},{label:(0,e.withCtx)((()=>[de])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ce,[se,(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:"input-addon-edit-text-color",modelValue:a.options.text_color,"onUpdate:modelValue":o[8]||(o[8]=e=>a.options.text_color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ue,[pe,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",me,[(0,e.createVNode)(c,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.background.type,"onUpdate:modelValue":o[9]||(o[9]=e=>a.options.background.type=e),options:[{text:"None",value:"none"},{text:"Color",value:"color"},{text:"Image",value:"image"},{text:"Gradient",value:"gradient"},{text:"video",value:"video"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["color","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",fe,[ge,(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:"input-addon-edit-bg-color",modelValue:a.options.background.color,"onUpdate:modelValue":o[10]||(o[10]=e=>a.options.background.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",Ae,[(0,e.createElementVNode)("div",be,[he,(0,e.createTextVNode)(),(0,e.createVNode)(s,{modelValue:a.options.background.image.url,"onUpdate:modelValue":o[11]||(o[11]=e=>a.options.background.image.url=e),id:"input-addon-edit-bg-image"},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ve,[(0,e.createElementVNode)("div",Ve,[Ne,(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:"input-addon-edit-bg-overlay",modelValue:a.options.background.overlay,"onUpdate:modelValue":o[12]||(o[12]=e=>a.options.background.overlay=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ce,[xe,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-addon-edit-bg-repeat","onUpdate:modelValue":o[13]||(o[13]=e=>a.options.background.image.repeat=e),class:"form-select custom-select"},[ye,(0,e.createTextVNode)(),Ee,(0,e.createTextVNode)(),we,(0,e.createTextVNode)(),ke,(0,e.createTextVNode)(),Te],512),[[e.vModelSelect,a.options.background.image.repeat,void 0,{lazy:!0}]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Be,[(0,e.createElementVNode)("div",_e,[Se,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-addon-edit-bg-attachment","onUpdate:modelValue":o[14]||(o[14]=e=>a.options.background.image.attachment=e),class:"form-select custom-select"},[Me,(0,e.createTextVNode)(),Ue,(0,e.createTextVNode)(),De],512),[[e.vModelSelect,a.options.background.image.attachment,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Re,[Oe,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-addon-edit-bg-position","onUpdate:modelValue":o[15]||(o[15]=e=>a.options.background.image.position=e),class:"form-select custom-select"},[ze,(0,e.createTextVNode)(),Ze,(0,e.createTextVNode)(),Ie,(0,e.createTextVNode)(),Le,(0,e.createTextVNode)(),Fe,(0,e.createTextVNode)(),je,(0,e.createTextVNode)(),Pe,(0,e.createTextVNode)(),Ge,(0,e.createTextVNode)(),$e],512),[[e.vModelSelect,a.options.background.image.position,void 0,{lazy:!0}]])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>["gradient"===a.options.background.type?((0,e.openBlock)(),(0,e.createBlock)(u,{key:0,modelValue:a.options.background.gradient,"onUpdate:modelValue":o[16]||(o[16]=e=>a.options.background.gradient=e),id:"addon-edit-gradient",style:{"animation-duration":".3s"}},null,8,["modelValue"])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["video"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",qe,[(0,e.createElementVNode)("div",He,[Je,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-addon-edit-bg-video-url",type:"text","onUpdate:modelValue":o[17]||(o[17]=e=>a.options.background.video.url=e),class:"form-control"},null,512),[[e.vModelText,a.options.background.video.url]]),(0,e.createTextVNode)(),Ye])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["video","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",We,[(0,e.createElementVNode)("div",Qe,[Ke,(0,e.createTextVNode)(),(0,e.createVNode)(d,{id:"input-addon-edit-bg-overlay",modelValue:a.options.background.overlay,"onUpdate:modelValue":o[18]||(o[18]=e=>a.options.background.overlay=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Xe,[et,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(p,{name:"addon-edit-bg-parallax",modelValue:a.options.background.parallax,"onUpdate:modelValue":o[19]||(o[19]=e=>a.options.background.parallax=e),id:"input-addon-edit-bg-parallax",shape:"circle",color:"success","true-value":!0,"false-value":!1},null,8,["modelValue"])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),tt,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ot,[nt,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(p,{name:"addon-edit-hidden-mobile",modelValue:a.options.display.xs,"onUpdate:modelValue":o[20]||(o[20]=e=>a.options.display.xs=e),id:"input-addon-edit-hidden-mobile",shape:"circle",color:"success","true-value":"d-none","false-value":"d-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",at,[lt,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(p,{name:"addon-edit-hidden-tablet",modelValue:a.options.display.md,"onUpdate:modelValue":o[21]||(o[21]=e=>a.options.display.md=e),id:"input-addon-edit-hidden-tablet",shape:"circle",color:"success","true-value":"d-md-none","false-value":"d-md-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",rt,[it,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(p,{name:"addon-edit-hidden-desktop",modelValue:a.options.display.lg,"onUpdate:modelValue":o[22]||(o[22]=e=>a.options.display.lg=e),id:"input-addon-edit-hidden-desktop",shape:"circle",color:"success","true-value":"d-lg-none","false-value":"d-lg-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),dt,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ct,[st,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ut,[(0,e.createTextVNode)("\n Will auto prefix with: "),(0,e.createElementVNode)("code",null,(0,e.toDisplayString)(`#luna-${t.values.id}`),1),(0,e.createTextVNode)(", and only affected in this scope.\n ")]),(0,e.createTextVNode)(),"layout"===a.currentTab?((0,e.openBlock)(),(0,e.createElementBlock)("div",pt,[(0,e.createVNode)(m,{ref:"css-editor",modelValue:a.options.html_css,"onUpdate:modelValue":o[23]||(o[23]=e=>a.options.html_css=e),height:350},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",mt,[(0,e.createVNode)(f,{id:"addon-edit-anim",value:a.options.animation},null,8,["value"])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)()])),_:1},8,["open"])])}]]),Go={class:"modal-header bg-white sticky-top"},$o={ref:"tab",class:"nav nav-pills border-0"},qo={class:"nav-item"},Ho={ref:"generalTab",class:"nav-link active","data-toggle":"tab","data-bs-toggle":"tab",href:"#column-edit-general"},Jo=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#column-edit-layout"},"\n Layout\n ")],-1),Yo=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#column-edit-animation"},"\n Animation\n ")],-1),Wo={class:"ml-auto ms-auto"},Qo=(0,e.createElementVNode)("span",{class:"fa fa-check"},null,-1),Ko=["disabled"],Xo=[(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1)],en={class:"tab-content",id:"column-edit-tab-content"},tn={class:"tab-pane fade show active",id:"column-edit-general",role:"tabpanel","aria-labelledby":"column-edit-general-tab"},on={class:"form-group mb-3"},nn=(0,e.createElementVNode)("label",{for:"input-column-edit-text-color"},"Text Color",-1),an={class:"form-group mb-3"},ln=(0,e.createElementVNode)("label",{for:"input-column-edit-background"},"Background Style",-1),rn={class:""},dn={key:0,class:"form-group mb-3",style:{"animation-duration":".3s"}},cn=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-color"},"Background Color",-1),sn={key:0,style:{"animation-duration":".3s"}},un={class:"form-group mb-3"},pn=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-image"},"Background Image",-1),mn={class:"form-row row"},fn={class:"form-group mb-3 col-md-6"},gn=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-overlay"},"Background Overlay",-1),An={class:"form-group mb-3 col-md-6"},bn=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-repeat"},"Background Repeat",-1),hn=(0,e.createElementVNode)("option",{value:"no-repeat"},"No Repeat",-1),vn=(0,e.createElementVNode)("option",{value:""},"Repeat All",-1),Vn=(0,e.createElementVNode)("option",{value:"repeat-x"},"Repeat X",-1),Nn=(0,e.createElementVNode)("option",{value:"repeat-y"},"Repeat Y",-1),Cn=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),xn={class:"form-row row"},yn={class:"form-group mb-3 col-md-6"},En=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-attachment"},"Background Attachment",-1),wn=(0,e.createElementVNode)("option",{value:"fixed"},"Fixed",-1),kn=(0,e.createElementVNode)("option",{value:"scroll"},"Scroll",-1),Tn=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Bn={class:"form-group mb-3 col-md-6"},_n=(0,e.createElementVNode)("label",{for:"input-column-edit-bg-position"},"Background Position",-1),Sn=(0,e.createElementVNode)("option",{value:"left top"},"Left Top",-1),Mn=(0,e.createElementVNode)("option",{value:"left center"},"Left Center",-1),Un=(0,e.createElementVNode)("option",{value:"left bottom"},"Left Bottom",-1),Dn=(0,e.createElementVNode)("option",{value:"center top"},"Center Top",-1),Rn=(0,e.createElementVNode)("option",{value:"center center"},"Center Center",-1),On=(0,e.createElementVNode)("option",{value:"center bottom"},"Center Bottom",-1),zn=(0,e.createElementVNode)("option",{value:"right top"},"Right Top",-1),Zn=(0,e.createElementVNode)("option",{value:"right center"},"Right Center",-1),In=(0,e.createElementVNode)("option",{value:"right bottom"},"Right Bottom",-1),Ln={class:"form-group mb-3"},Fn=(0,e.createElementVNode)("label",{for:"input-addon-edit-text-align"},"Text Alignment",-1),jn={class:""},Pn={class:"form-group mb-3"},Gn=(0,e.createElementVNode)("label",{for:"input-column-edit-valign"},"Vertical Align Middle",-1),$n=(0,e.createElementVNode)("hr",null,null,-1),qn=(0,e.createElementVNode)("label",null,"Padding",-1),Hn=(0,e.createElementVNode)("label",null,"Margin",-1),Jn=(0,e.createElementVNode)("hr",null,null,-1),Yn={class:"form-group mb-3"},Wn=(0,e.createElementVNode)("label",{for:"input-column-edit-border-enabled"},"Border",-1),Qn={key:0},Kn=(0,e.createElementVNode)("label",null,"\n Border Width\n ",-1),Xn={class:"form-group mb-3"},ea=(0,e.createElementVNode)("label",{for:"input-column-edit-border-color"},"Border Color",-1),ta={class:"form-group mb-3"},oa=(0,e.createElementVNode)("label",{for:"input-column-edit-border-style"},"Border Style",-1),na=(0,e.createElementVNode)("option",{value:""},"None",-1),aa=(0,e.createElementVNode)("option",{value:"solid"},"Solid",-1),la=(0,e.createElementVNode)("option",{value:"dotted"},"Dotted",-1),ra=(0,e.createElementVNode)("option",{value:"dashed"},"Dashed",-1),ia=(0,e.createElementVNode)("option",{value:"double"},"Double",-1),da=(0,e.createElementVNode)("option",{value:"groove"},"Groove",-1),ca=(0,e.createElementVNode)("option",{value:"ridge"},"Ridge",-1),sa=(0,e.createElementVNode)("label",null,"\n Border Radius\n ",-1),ua=(0,e.createElementVNode)("hr",null,null,-1),pa={class:"form-group mb-3"},ma=(0,e.createElementVNode)("label",{for:"input-column-edit-box_shadow-enabled"},"Box Shadow",-1),fa={key:1},ga={class:"form-group mb-3"},Aa=(0,e.createElementVNode)("label",{for:"input-column-edit-box-shadow-color"},"Shadow Color",-1),ba={class:"form-row row"},ha={class:"col-6"},va={class:"form-group mb-3"},Va=(0,e.createElementVNode)("label",null,"\n Shadow X Offset\n ",-1),Na={class:"col-6"},Ca={class:"form-group mb-3"},xa=(0,e.createElementVNode)("label",null,"\n Shadow Y Offset\n ",-1),ya={class:"form-row row"},Ea={class:"col-6"},wa={class:"form-group mb-3"},ka=(0,e.createElementVNode)("label",null,"\n Shadow Blur\n ",-1),Ta={class:"col-6"},Ba={class:"form-group mb-3"},_a=(0,e.createElementVNode)("label",null,"\n Shadow Spread\n ",-1),Sa=(0,e.createElementVNode)("hr",null,null,-1),Ma={class:"form-group mb-3"},Ua=(0,e.createElementVNode)("label",{for:"input-column-edit-html-class"},"CSS Class",-1),Da={class:"tab-pane fade",id:"column-edit-layout",role:"tabpanel","aria-labelledby":"column-edit-layout-tab"},Ra={class:"form-group mb-3"},Oa=(0,e.createElementVNode)("label",{for:"input-column-edit-width-desktop"},"Desktop Width",-1),za=["value"],Za={class:"form-group mb-3"},Ia=(0,e.createElementVNode)("label",{for:"input-column-edit-width-tablet"},"Tablet Width",-1),La=(0,e.createElementVNode)("option",{value:""},"- None -",-1),Fa=["value"],ja={class:"form-group mb-3"},Pa=(0,e.createElementVNode)("label",{for:"input-column-edit-width-mobile"},"Mobile Width",-1),Ga=(0,e.createElementVNode)("option",{value:""},"- None -",-1),$a=["value"],qa=(0,e.createElementVNode)("hr",null,null,-1),Ha={class:"form-group mb-3"},Ja=(0,e.createElementVNode)("label",{for:"input-column-edit-hidden-mobile"},"Hide in Mobile",-1),Ya={class:"form-group mb-3"},Wa=(0,e.createElementVNode)("label",{for:"input-column-edit-hidden-tablet"},"Hide in Tablet",-1),Qa={class:"form-group mb-3"},Ka=(0,e.createElementVNode)("label",{for:"input-column-edit-hidden-desktop"},"Hide in Desktop",-1),Xa=(0,e.createElementVNode)("hr",null,null,-1),el={class:"form-group mb-3"},tl=(0,e.createElementVNode)("label",{for:"input-column-edit-css"},"Custom CSS (SCSS)",-1),ol={class:"text-muted small mb-3"},nl={key:0},al={class:"tab-pane fade",id:"column-edit-animation",role:"tabpanel","aria-labelledby":"column-edit-animation-tab"},ll=(0,e.createElementVNode)("span",{class:"fa fa-save"},null,-1),rl=[(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1)];var il=Math.ceil,dl=Math.max;var cl=l(439);const sl=function(e,t,o){return o&&"number"!=typeof o&&(0,cl.Z)(e,t,o)&&(t=o=void 0),e=Zt(e),void 0===t?(t=e,e=0):t=Zt(t),function(e,t,o,n){for(var a=-1,l=dl(il((t-e)/(o||1)),0),r=Array(l);l--;)r[n?l:++a]=e,e+=o;return r}(e,t,o=void 0===o?e{}));const r=(0,e.ref)(null),i=(0,e.ref)("general");function d(){i.value=r.value.querySelector("a.nav-link.active").getAttribute("href").replace("#column-edit-","")}function c(){a.sticky=!1,a.modalShow=!1,setTimeout((()=>{a.values={}}),300),a.sticky=!1}return{cssEditor:l,options:(0,e.computed)((()=>a.values.options)),...(0,e.toRefs)(a),tab:r,currentTab:i,edit:function(t){a.values=JSON.parse(JSON.stringify(t)),a.modalShow=!0,(0,e.nextTick)((()=>{r.value.addEventListener("shown.bs.tab",(()=>{d()})),d()}))},saveClose:function(){u.trigger("column:save",JSON.parse(JSON.stringify(a.values))),c()},savePage:function(){u.trigger("column:save",JSON.parse(JSON.stringify(a.values))),a.saving=!0,(0,e.nextTick)((()=>{Ft(a.saving).finally((()=>{a.saving=!1}))}))},close:c,widthRange:function(){return sl(1,13)}}}},pl=(0,I.Z)(ul,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("ColorInput"),d=(0,e.resolveComponent)("ButtonRadio"),c=(0,e.resolveComponent)("SingleImage"),s=(0,e.resolveComponent)("Gradient"),u=(0,e.resolveComponent)("UnicornSwitcher"),p=(0,e.resolveComponent)("BoxOffset"),m=(0,e.resolveComponent)("SliderInput"),f=(0,e.resolveComponent)("RwdGroup"),g=(0,e.resolveComponent)("CssEditor"),A=(0,e.resolveComponent)("Animations"),b=(0,e.resolveComponent)("BsModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",null,[(0,e.createVNode)(b,{open:t.modalShow,size:"lg",onHidden:o[35]||(o[35]=e=>t.modalShow=!1),backdrop:"static",class:"c-modal-column-edit"},{"header-element":(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",Go,[(0,e.createElementVNode)("ul",$o,[(0,e.createElementVNode)("li",qo,[(0,e.createElementVNode)("a",Ho,"\n General\n ",512)]),(0,e.createTextVNode)(),Jo,(0,e.createTextVNode)(),Yo],512),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Wo,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary",onClick:o[0]||(o[0]=e=>a.saveClose())},[Qo,(0,e.createTextVNode)("\n Done\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[1]||(o[1]=e=>a.savePage()),disabled:t.saving},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(t.saving?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save Page\n ")],8,Ko),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[2]||(o[2]=e=>a.close())},Xo)])])])),footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[33]||(o[33]=e=>a.saveClose())},[ll,(0,e.createTextVNode)("\n Save\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[34]||(o[34]=e=>a.close())},rl)])),default:(0,e.withCtx)((()=>[(0,e.createTextVNode)(),(0,e.createElementVNode)("div",en,[(0,e.createElementVNode)("div",tn,[(0,e.createElementVNode)("div",on,[nn,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-text-color",modelValue:a.options.text_color,"onUpdate:modelValue":o[3]||(o[3]=e=>a.options.text_color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",an,[ln,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",rn,[(0,e.createVNode)(d,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.background.type,"onUpdate:modelValue":o[4]||(o[4]=e=>a.options.background.type=e),options:[{text:"None",value:"none"},{text:"Color",value:"color"},{text:"Image",value:"image"},{text:"Gradient",value:"gradient"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["color","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",dn,[cn,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-bg-color",modelValue:a.options.background.color,"onUpdate:modelValue":o[5]||(o[5]=e=>a.options.background.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>[-1!==["image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",sn,[(0,e.createElementVNode)("div",un,[pn,(0,e.createTextVNode)(),(0,e.createVNode)(c,{modelValue:a.options.background.image.url,"onUpdate:modelValue":o[6]||(o[6]=e=>a.options.background.image.url=e),id:"input-column-edit-bg-image"},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",mn,[(0,e.createElementVNode)("div",fn,[gn,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-bg-overlay",modelValue:a.options.background.overlay,"onUpdate:modelValue":o[7]||(o[7]=e=>a.options.background.overlay=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",An,[bn,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-bg-repeat","onUpdate:modelValue":o[8]||(o[8]=e=>a.options.background.image.repeat=e),class:"form-select custom-select"},[hn,(0,e.createTextVNode)(),vn,(0,e.createTextVNode)(),Vn,(0,e.createTextVNode)(),Nn,(0,e.createTextVNode)(),Cn],512),[[e.vModelSelect,a.options.background.image.repeat,void 0,{lazy:!0}]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",xn,[(0,e.createElementVNode)("div",yn,[En,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-bg-attachment","onUpdate:modelValue":o[9]||(o[9]=e=>a.options.background.image.attachment=e),class:"form-select custom-select"},[wn,(0,e.createTextVNode)(),kn,(0,e.createTextVNode)(),Tn],512),[[e.vModelSelect,a.options.background.image.attachment,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Bn,[_n,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-bg-position","onUpdate:modelValue":o[10]||(o[10]=e=>a.options.background.image.position=e),class:"form-select custom-select"},[Sn,(0,e.createTextVNode)(),Mn,(0,e.createTextVNode)(),Un,(0,e.createTextVNode)(),Dn,(0,e.createTextVNode)(),Rn,(0,e.createTextVNode)(),On,(0,e.createTextVNode)(),zn,(0,e.createTextVNode)(),Zn,(0,e.createTextVNode)(),In],512),[[e.vModelSelect,a.options.background.image.position,void 0,{lazy:!0}]])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade",mode:"out-in"},{default:(0,e.withCtx)((()=>["gradient"===a.options.background.type?((0,e.openBlock)(),(0,e.createBlock)(s,{key:0,modelValue:a.options.background.gradient,"onUpdate:modelValue":o[11]||(o[11]=e=>a.options.background.gradient=e),id:"column-edit-gradient",style:{"animation-duration":".3s"}},null,8,["modelValue"])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ln,[Fn,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",jn,[(0,e.createVNode)(d,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.align,"onUpdate:modelValue":o[12]||(o[12]=e=>a.options.align=e),options:[{text:"Default",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Pn,[Gn,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-align-middle",modelValue:a.options.valign,"onUpdate:modelValue":o[13]||(o[13]=e=>a.options.valign=e),id:"input-column-edit-valign",shape:"circle",color:"success","true-value":"middle","false-value":"top"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),$n,(0,e.createTextVNode)(),(0,e.createVNode)(p,{modelValue:a.options.padding,"onUpdate:modelValue":o[14]||(o[14]=e=>a.options.padding=e)},{label:(0,e.withCtx)((()=>[qn])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createVNode)(p,{modelValue:a.options.margin,"onUpdate:modelValue":o[15]||(o[15]=e=>a.options.margin=e)},{label:(0,e.withCtx)((()=>[Hn])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),Jn,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Yn,[Wn,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-border-enabled",modelValue:a.options.border.enabled,"onUpdate:modelValue":o[16]||(o[16]=e=>a.options.border.enabled=e),id:"input-column-edit-border-enabled",shape:"circle",color:"success"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),1==a.options.border.enabled?((0,e.openBlock)(),(0,e.createElementBlock)("div",Qn,[(0,e.createVNode)(f,{"class-name":"c-border-width"},(0,e.createSlots)({label:(0,e.withCtx)((()=>[Kn])),_:2},[(0,e.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{modelValue:a.options.border.width[t],"onUpdate:modelValue":e=>a.options.border.width[t]=e},null,8,["modelValue","onUpdate:modelValue"])]))})))]),1024),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Xn,[ea,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-border-color",modelValue:a.options.border.color,"onUpdate:modelValue":o[17]||(o[17]=e=>a.options.border.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ta,[oa,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-border-style","onUpdate:modelValue":o[18]||(o[18]=e=>a.options.border.style=e),class:"form-select custom-select"},[na,(0,e.createTextVNode)(),aa,(0,e.createTextVNode)(),la,(0,e.createTextVNode)(),ra,(0,e.createTextVNode)(),ia,(0,e.createTextVNode)(),da,(0,e.createTextVNode)(),ca],512),[[e.vModelSelect,a.options.border.style]])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),(0,e.createVNode)(f,{"class-name":"c-border-radius"},(0,e.createSlots)({label:(0,e.withCtx)((()=>[sa])),_:2},[(0,e.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{modelValue:a.options.border.radius[t],"onUpdate:modelValue":e=>a.options.border.radius[t]=e,max:500},null,8,["modelValue","onUpdate:modelValue"])]))})))]),1024),(0,e.createTextVNode)(),ua,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",pa,[ma,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-box_shadow-enabled",modelValue:a.options.box_shadow.enabled,"onUpdate:modelValue":o[19]||(o[19]=e=>a.options.box_shadow.enabled=e),id:"input-column-edit-box_shadow-enabled",shape:"circle",color:"success"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),1==a.options.box_shadow.enabled?((0,e.openBlock)(),(0,e.createElementBlock)("div",fa,[(0,e.createElementVNode)("div",ga,[Aa,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-column-edit-box-shadow-color",modelValue:a.options.box_shadow.color,"onUpdate:modelValue":o[20]||(o[20]=e=>a.options.box_shadow.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ba,[(0,e.createElementVNode)("div",ha,[(0,e.createElementVNode)("div",va,[Va,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.box_shadow.hoffset,"onUpdate:modelValue":o[21]||(o[21]=e=>a.options.box_shadow.hoffset=e)},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Na,[(0,e.createElementVNode)("div",Ca,[xa,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.box_shadow.voffset,"onUpdate:modelValue":o[22]||(o[22]=e=>a.options.box_shadow.voffset=e)},null,8,["modelValue"])])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ya,[(0,e.createElementVNode)("div",Ea,[(0,e.createElementVNode)("div",wa,[ka,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.box_shadow.blur,"onUpdate:modelValue":o[23]||(o[23]=e=>a.options.box_shadow.blur=e)},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ta,[(0,e.createElementVNode)("div",Ba,[_a,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.box_shadow.spread,"onUpdate:modelValue":o[24]||(o[24]=e=>a.options.box_shadow.spread=e)},null,8,["modelValue"])])])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),Sa,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ma,[Ua,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-column-edit-html-class",type:"text","onUpdate:modelValue":o[25]||(o[25]=e=>a.options.html_class=e),class:"form-control"},null,512),[[e.vModelText,a.options.html_class]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Da,[(0,e.createElementVNode)("div",Ra,[Oa,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-width-desktop","onUpdate:modelValue":o[26]||(o[26]=e=>a.options.width.lg=e),class:"form-select custom-select"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-lg-"+t},"\n col-lg-"+(0,e.toDisplayString)(t),9,za)))),256))],512),[[e.vModelSelect,a.options.width.lg]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Za,[Ia,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-width-tablet","onUpdate:modelValue":o[27]||(o[27]=e=>a.options.width.md=e),class:"form-select custom-select"},[La,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-md-"+t},"\n col-md-"+(0,e.toDisplayString)(t),9,Fa)))),256))],512),[[e.vModelSelect,a.options.width.md]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ja,[Pa,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-column-edit-width-mobile","onUpdate:modelValue":o[28]||(o[28]=e=>a.options.width.xs=e),class:"form-select custom-select"},[Ga,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-"+t},"\n col-"+(0,e.toDisplayString)(t),9,$a)))),256))],512),[[e.vModelSelect,a.options.width.xs]])]),(0,e.createTextVNode)(),qa,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ha,[Ja,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-hidden-mobile",modelValue:a.options.display.xs,"onUpdate:modelValue":o[29]||(o[29]=e=>a.options.display.xs=e),id:"input-column-edit-hidden-mobile",shape:"circle",color:"success","true-value":"d-none","false-value":"d-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ya,[Wa,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-hidden-tablet",modelValue:a.options.display.md,"onUpdate:modelValue":o[30]||(o[30]=e=>a.options.display.md=e),id:"input-column-edit-hidden-tablet",shape:"circle",color:"success","true-value":"d-md-none","false-value":"d-md-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Qa,[Ka,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(u,{name:"column-edit-hidden-desktop",modelValue:a.options.display.lg,"onUpdate:modelValue":o[31]||(o[31]=e=>a.options.display.lg=e),id:"input-column-edit-hidden-desktop",shape:"circle",color:"success","true-value":"d-lg-none","false-value":"d-lg-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),Xa,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",el,[tl,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ol,[(0,e.createTextVNode)("\n Will auto prefix with: "),(0,e.createElementVNode)("code",null,(0,e.toDisplayString)(`#luna-${t.values.id}`),1),(0,e.createTextVNode)(", and only affected in this scope.\n ")]),(0,e.createTextVNode)(),"layout"===a.currentTab?((0,e.openBlock)(),(0,e.createElementBlock)("div",nl,[(0,e.createVNode)(g,{ref:"cssEditor",modelValue:a.options.html_css,"onUpdate:modelValue":o[32]||(o[32]=e=>a.options.html_css=e),height:350},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",al,[(0,e.createVNode)(A,{id:"column-edit-anim",value:a.options.animation},null,8,["value"])])]),(0,e.createTextVNode)()])),_:1},8,["open"])])}]]),ml=["disabled"],fl={class:"page-row__title-bar d-flex mb-2"},gl={class:"page-row__title d-flex"},Al={class:"page-row__move-cursor"},bl={class:"badge bg-secondary me-2",style:{cursor:"move"}},hl=["is"],vl={key:0,class:"ms-3"},Vl={class:"page-row__actions ml-auto ms-auto text-nowrap"},Nl=(0,e.createElementVNode)("span",{class:"fa fa-plus"},null,-1),Cl={key:0},xl=(0,e.createElementVNode)("span",{class:"fa fa-edit"},null,-1),yl={key:0},El={class:"dropdown"},wl=(0,e.createElementVNode)("button",{href:"#",class:"btn btn-sm btn-outline-primary","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"fa fa-cog"})],-1),kl={class:"dropdown-menu dropdown-menu-right dropdown-menu-end"},Tl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-clone"},null,-1),Bl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-copy"},null,-1),_l=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-paste"},null,-1),Sl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-file-code"},null,-1),Ml=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-save"},null,-1),Ul=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-trash"},null,-1),Dl={class:"card"},Rl=[(0,e.createElementVNode)("span",{class:"fa fa-plus-square fa-3x"},null,-1)],Ol={class:"page-row__bottom-toolbar mt-3 text-center"},zl={class:"page-builder__bottom-toolbar text-center"},Zl={class:"btn-group"},Il=(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm dropdown-toggle dropdown-toggle-split","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"visually-hidden sr-only"},"Toggle Dropdown")],-1),Ll={class:"dropdown-menu dropdown-menu-end dropdown-menu-right"},Fl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-paste"},null,-1),jl=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-file-code"},null,-1),Pl={name:"Row",components:{},props:{value:Object,child:{type:Boolean,default:!1},moveHandle:{type:String,default:"move-handle"}},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({content:{},drag:!1});function l(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{const o=JSON.parse(e);if(Array.isArray(o))return void n("paste-page",o);if(It(o.id,"addon-"))return void alert("Unable to paste addon here.");if(It(o.id,"col-"))return void i(o,a.content.columns.length-1);if(It(o.id,"row-"))return t?void r(o):void swal({title:"You are pasting a row to a another row.",text:"Please choose an action.",buttons:{add:{text:"Merge",value:"add",className:"btn-info"},replace:{text:"Replace",value:"replace",className:"btn-warning"},append:{text:"After",value:"append",className:"btn-dark"}}}).then((e=>{switch(e){case"replace":a.content.columns=[];case"add":o.columns.forEach((e=>{i(e,a.columns.length-1)}));break;case"append":r(o)}}))}catch(e){console.error(e),alert("Invalid format.")}}function r(){n("duplicate",arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)}function i(e,t){(e=JSON.parse(JSON.stringify(e))).id="col-"+u.uid(),e.addons=d(e.addons),a.content.columns.splice(t+1,0,e)}function d(e){return e.map((e=>null===(e=Gt(e,t.child))?null:("row"!==e.type||(e.columns=e.columns.map((e=>(e.id="col-"+u.uid(),e.addons=d(e.addons),e)))),e))).filter((e=>null!==e))}a.content=t.value,a.content=(0,Vt.Z)(a.content,$t());const c=(0,e.computed)((()=>a.content.columns)),s=(0,e.computed)((()=>a.content.options));return(0,e.watch)((()=>c),(()=>{n("columns-change",{columns:c.value})}),{deep:!0}),{...(0,e.toRefs)(a),columns:c,options:s,addNewColumn:function(){a.content.columns.push(qt(t.child))},copy:function(){jt(a.content)},paste:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Pt().then((t=>{l(t,e)}))},pasteData:l,duplicate:r,duplicateColumn:i,handleDuplicateAddons:d,edit:function(){u.trigger("row:edit",a.content)},toggleDisabled:function(){a.content.disabled=!a.content.disabled},remove:function(){u.confirm("Are you sure you want to delete??").then((()=>n("delete")))},getEmptyRow:function(){return $t()},deleteColumn:function(e){c.value.splice(e,1)},openTemplates:function(){u.trigger("tmpl.open",((e,t,o)=>{l(e.content)}),"column,row",c.value.length)}}}},Gl=(0,I.Z)(Pl,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("Column"),d=(0,e.resolveComponent)("draggable");return(0,e.openBlock)(),(0,e.createElementBlock)("div",{class:(0,e.normalizeClass)(["bg-light",{"p-2":n.child,rounded:n.child}]),disabled:!!t.content.disabled||null},[(0,e.createElementVNode)("div",fl,[(0,e.createElementVNode)("div",gl,[(0,e.createElementVNode)("div",Al,[(0,e.createElementVNode)("span",bl,[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(["fa fa-fw fa-arrows-alt-v",[n.moveHandle]])},null,2)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",{is:n.child?"strong":"h5"},(0,e.toDisplayString)(""===a.options.label?"ROW":a.options.label),9,hl),(0,e.createTextVNode)(),t.$debug?((0,e.openBlock)(),(0,e.createElementBlock)("small",vl,(0,e.toDisplayString)(t.content.id),1)):(0,e.createCommentVNode)("",!0)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Vl,[t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",class:"btn btn-sm btn-primary",onClick:o[0]||(o[0]=e=>a.addNewColumn())},[Nl,(0,e.createTextVNode)(),n.child?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("span",Cl,"\n New Column\n "))])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:1,type:"button",class:"btn btn-sm btn-outline-primary",onClick:o[1]||(o[1]=function(){return a.edit&&a.edit(...arguments)})},[xl,(0,e.createTextVNode)(),n.child?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("span",yl,"\n Edit\n "))])),(0,e.createTextVNode)(),(0,e.createElementVNode)("span",El,[wl,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",kl,[(0,e.createElementVNode)("a",{class:"dropdown-item",href:"#",onClick:o[2]||(o[2]=(0,e.withModifiers)((e=>a.toggleDisabled()),["prevent"]))},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(["fa fa-fw",[t.content.disabled?"fa-eye":"fa-eye-slash"]])},null,2),(0,e.createTextVNode)(" "+(0,e.toDisplayString)(t.content.disabled?"Enabled":"Disabled"),1)]),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:0,class:"dropdown-item",href:"#",onClick:o[3]||(o[3]=(0,e.withModifiers)((e=>a.duplicate()),["prevent"]))},[Tl,(0,e.createTextVNode)("\n Duplicate\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:1,class:"dropdown-item",href:"#",onClick:o[4]||(o[4]=(0,e.withModifiers)((function(){return a.copy&&a.copy(...arguments)}),["prevent"]))},[Bl,(0,e.createTextVNode)("\n Copy\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:2,class:"dropdown-item",href:"#",onClick:o[5]||(o[5]=(0,e.withModifiers)((function(){return a.paste&&a.paste(...arguments)}),["prevent"]))},[_l,(0,e.createTextVNode)("\n Paste\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:3,class:"dropdown-item",href:"#",onClick:o[6]||(o[6]=(0,e.withModifiers)((function(){return a.openTemplates&&a.openTemplates(...arguments)}),["prevent"]))},[Sl,(0,e.createTextVNode)("\n Insert Template\n ")])),(0,e.createTextVNode)(),(0,e.createElementVNode)("a",{class:"dropdown-item",href:"#",onClick:o[7]||(o[7]=(0,e.withModifiers)((e=>t.$trigger("tmpl.save",t.content,"row")),["prevent"]))},[Ml,(0,e.createTextVNode)("\n Save as Template\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("a",{class:"dropdown-item",href:"#",onClick:o[8]||(o[8]=(0,e.withModifiers)((e=>a.remove()),["prevent"]))},[Ul,(0,e.createTextVNode)("\n Delete\n ")])])])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Dl,[(0,e.createVNode)(d,(0,e.mergeProps)({class:["card-body page-row__body row",[{"p-2":n.child},`justify-content-${a.options.justify_content}`]],modelValue:t.content.columns,"onUpdate:modelValue":o[10]||(o[10]=e=>t.content.columns=e),onStart:o[11]||(o[11]=e=>t.drag=!0),onEnd:o[12]||(o[12]=e=>t.drag=!1),onAdd:o[13]||(o[13]=(0,e.withModifiers)((()=>{}),["stop"]))},{handle:".column-move-handle",group:"column",animation:300},{style:{"min-height":"50px"},"item-key":"id"}),{item:(0,e.withCtx)((t=>{let{element:o,index:l}=t;return[(0,e.createVNode)(i,{class:"page-row__column column mb-2",style:{"animation-duration":".3s"},onDelete:e=>a.deleteColumn(l),onDuplicate:e=>a.duplicateColumn(e||o,l),index:l,value:o,child:n.child},null,8,["onDelete","onDuplicate","index","value","child"])]})),footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("a",{class:"page-row__body-placeholder text-center p-4 border text-secondary col-12","commented-v-if":"addons.length === 0 && !drag",href:"#",onClick:o[9]||(o[9]=(0,e.withModifiers)((e=>a.addNewColumn()),["prevent"]))},Rl)])),_:1},16,["class","modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ol,[(0,e.createElementVNode)("div",zl,[(0,e.createElementVNode)("div",Zl,[(0,e.createElementVNode)("button",{type:"button",onClick:o[14]||(o[14]=e=>t.$emit("add")),class:"btn btn-sm btn-outline-secondary"},"\n Add New Row\n "),(0,e.createTextVNode)(),Il,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ll,[(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[15]||(o[15]=e=>a.paste(!0))},[Fl,(0,e.createTextVNode)("\n Paste\n ")]),(0,e.createTextVNode)(),n.child?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",class:"dropdown-item",onClick:o[16]||(o[16]=e=>t.$emit("open-templates"))},[jl,(0,e.createTextVNode)("\n Insert Template\n ")]))])])])])],10,ml)}]]),$l={ref:"tab",class:"nav nav-pills border-0"},ql=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link active","data-toggle":"tab","data-bs-toggle":"tab",href:"#row-edit-general"},"\n General\n ")],-1),Hl=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#row-edit-layout"},"\n Layout\n ")],-1),Jl=(0,e.createElementVNode)("li",{class:"nav-item"},[(0,e.createElementVNode)("a",{class:"nav-link","data-toggle":"tab","data-bs-toggle":"tab",href:"#row-edit-animation"},"\n Animation\n ")],-1),Yl={class:"ml-auto ms-auto"},Wl=(0,e.createElementVNode)("span",{class:"fa fa-check"},null,-1),Ql=["disabled"],Kl=[(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1)],Xl={key:0,class:"tab-content",id:"row-edit-tab-content"},er={class:"tab-pane fade show active",id:"row-edit-general",role:"tabpanel","aria-labelledby":"row-edit-general-tab"},tr={class:"form-group mb-3"},or=(0,e.createElementVNode)("label",{for:"input-row-edit-label"},"Label",-1),nr=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"This label only show in edit page.",-1),ar=(0,e.createElementVNode)("hr",null,null,-1),lr={class:"form-group mb-3"},rr=(0,e.createElementVNode)("label",{for:"input-row-edit-title-text"},"Main Title",-1),ir=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"Title of this section, keep empty to hide it.",-1),dr=(0,e.createElementVNode)("hr",null,null,-1),cr={class:"form-group mb-3"},sr=(0,e.createElementVNode)("label",{for:"input-row-edit-subtitle-text"},"Subtitle",-1),ur=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"Subtitle of this section, keep empty to hide it.",-1),pr={key:1},mr=(0,e.createElementVNode)("label",null,"\n Subtitle Font Size\n ",-1),fr={class:"form-group mb-3"},gr=(0,e.createElementVNode)("label",{for:"input-row-edit-title-align"},"Title/Subtitle Text Alignment",-1),Ar={class:"form-group mb-3"},br=(0,e.createElementVNode)("label",{for:"input-row-edit-text-color"},"Text Color",-1),hr={class:"form-group mb-3"},vr=(0,e.createElementVNode)("label",{for:"input-row-edit-html-id"},"CSS ID",-1),Vr={class:"form-group mb-3"},Nr=(0,e.createElementVNode)("label",{for:"input-row-edit-html-class"},"CSS Class",-1),Cr={class:"tab-pane fade",id:"row-edit-layout",role:"tabpanel","aria-labelledby":"row-edit-layout-tab"},xr={class:"form-group mb-3"},yr=(0,e.createElementVNode)("label",{for:"input-row-edit-background"},"Background Type",-1),Er={key:0,class:"form-group mb-3"},wr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-color"},"Background Color",-1),kr={key:0},Tr={class:"form-group mb-3"},Br=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-image"},"Background Image",-1),_r={class:"form-row row"},Sr={class:"form-group mb-3 col-md-6"},Mr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-size"},"Background Size",-1),Ur=(0,e.createElementVNode)("option",{value:""},"Default",-1),Dr=(0,e.createElementVNode)("option",{value:"cover"},"Cover",-1),Rr=(0,e.createElementVNode)("option",{value:"contain"},"Contain",-1),Or=(0,e.createElementVNode)("option",{value:"auto"},"Auto",-1),zr={class:"form-group mb-3 col-md-6"},Zr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-repeat"},"Background Repeat",-1),Ir=(0,e.createElementVNode)("option",{value:"no-repeat"},"No Repeat",-1),Lr=(0,e.createElementVNode)("option",{value:""},"Repeat All",-1),Fr=(0,e.createElementVNode)("option",{value:"repeat-x"},"Repeat X",-1),jr=(0,e.createElementVNode)("option",{value:"repeat-y"},"Repeat Y",-1),Pr=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Gr={class:"form-row row"},$r={class:"form-group mb-3 col-md-6"},qr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-attachment"},"Background Attachment",-1),Hr=(0,e.createElementVNode)("option",{value:"fixed"},"Fixed",-1),Jr=(0,e.createElementVNode)("option",{value:"scroll"},"Scroll",-1),Yr=(0,e.createElementVNode)("option",{value:"inherit"},"Inherit",-1),Wr={class:"form-group mb-3 col-md-6"},Qr=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-position"},"Background Position",-1),Kr=(0,e.createElementVNode)("option",{value:"left top"},"Left Top",-1),Xr=(0,e.createElementVNode)("option",{value:"left center"},"Left Center",-1),ei=(0,e.createElementVNode)("option",{value:"left bottom"},"Left Bottom",-1),ti=(0,e.createElementVNode)("option",{value:"center top"},"Center Top",-1),oi=(0,e.createElementVNode)("option",{value:"center center"},"Center Center",-1),ni=(0,e.createElementVNode)("option",{value:"center bottom"},"Center Bottom",-1),ai=(0,e.createElementVNode)("option",{value:"right top"},"Right Top",-1),li=(0,e.createElementVNode)("option",{value:"right center"},"Right Center",-1),ri=(0,e.createElementVNode)("option",{value:"right bottom"},"Right Bottom",-1),ii={key:0},di={class:"form-group mb-3"},ci=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-video-url"},"Video URL",-1),si=(0,e.createElementVNode)("small",{class:"form-text text-muted"},"\n Paste mp4 video URL, or Youtube / Vimeo URL.\n ",-1),ui={key:0},pi={class:"form-group mb-3"},mi=(0,e.createElementVNode)("label",{for:"input-row-edit-bg-overlay"},"Color Overlay",-1),fi={class:"form-group mb-3"},gi=(0,e.createElementVNode)("label",{for:"input-row-edit-hidden-mobile"},"Parallax Background",-1),Ai=(0,e.createElementVNode)("hr",null,null,-1),bi={class:"form-group mb-3"},hi=(0,e.createElementVNode)("label",{for:"input-row-edit-justify-content"},"Content Justify",-1),vi={class:"form-group mb-3"},Vi=(0,e.createElementVNode)("label",{for:"input-row-edit-valign"},"Vertical Align Middle",-1),Ni={class:"form-group mb-3"},Ci=(0,e.createElementVNode)("label",{for:"input-row-edit-fluid_row"},"Fluid Row",-1),xi={class:"form-group mb-3"},yi=(0,e.createElementVNode)("label",{for:"input-row-edit-no_gutter"},"No Gutters",-1),Ei=(0,e.createElementVNode)("hr",null,null,-1),wi={class:"form-group mb-3"},ki=(0,e.createElementVNode)("label",{for:"input-row-edit-hidden-mobile"},"Hide in Mobile",-1),Ti={class:"form-group mb-3"},Bi=(0,e.createElementVNode)("label",{for:"input-row-edit-hidden-tablet"},"Hide in Tablet",-1),_i={class:"form-group mb-3"},Si=(0,e.createElementVNode)("label",{for:"input-row-edit-hidden-desktop"},"Hide in Desktop",-1),Mi=(0,e.createElementVNode)("hr",null,null,-1),Ui={class:"form-group mb-3"},Di=(0,e.createElementVNode)("label",{for:"input-row-edit-css"},"Custom CSS (SCSS)",-1),Ri={class:"text-muted small mb-3"},Oi={key:0},zi={class:"tab-pane fade",id:"row-edit-animation",role:"tabpanel","aria-labelledby":"row-edit-animation-tab"},Zi=(0,e.createElementVNode)("span",{class:"fa fa-save"},null,-1),Ii=(0,e.createElementVNode)("span",{class:"fa fa-times"},null,-1),Li={name:"RowEdit",components:{BsModal:L,CssEditor:vt,ColorInput:Yt.Z,UnicornSwitcher:Ht.Z,SliderInput:Qt.Z,RwdGroup:Wt.Z,ButtonRadio:Jt.Z,TitleOptions:Kt.Z,Animations:bo,BoxOffset:Xt.Z,SingleImage:ho.Z,Gradient:Fo},setup(){const t=(0,e.reactive)({values:{},sticky:!1,saving:!1,modalShow:!1}),o=(0,e.ref)(null),n=(0,e.ref)("general"),a=(0,e.ref)(null);function l(){n.value=o.value.querySelector("a.nav-link.active").getAttribute("href").replace("#row-edit-","")}function r(){t.modalShow=!1,t.sticky=!1,(0,e.nextTick)((()=>{t.values={}}))}(0,e.onMounted)((()=>{}));const i=(0,e.computed)((()=>t.values.options));return{...(0,e.toRefs)(t),options:i,tab:o,currentTab:n,cssEditor:a,edit:function(n){t.values=JSON.parse(JSON.stringify(n)),t.modalShow=!0,(0,e.nextTick)((()=>{o.value.addEventListener("shown.bs.tab",(()=>{l()})),l()}))},saveClose:function(){u.trigger("row:save",JSON.parse(JSON.stringify(t.values))),r()},savePage:function(){u.trigger("row:save",JSON.parse(JSON.stringify(t.values))),t.saving=!0,(0,e.nextTick)((()=>{Ft(t.saving).finally((()=>{t.saving=!1}))}))},close:r}}},Fi=(0,I.Z)(Li,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("TitleOptions"),d=(0,e.resolveComponent)("SliderInput"),c=(0,e.resolveComponent)("RwdGroup"),s=(0,e.resolveComponent)("ButtonRadio"),u=(0,e.resolveComponent)("ColorInput"),p=(0,e.resolveComponent)("BoxOffset"),m=(0,e.resolveComponent)("single-image"),f=(0,e.resolveComponent)("gradient"),g=(0,e.resolveComponent)("unicorn-switcher"),A=(0,e.resolveComponent)("UnicornSwitcher"),b=(0,e.resolveComponent)("CssEditor"),h=(0,e.resolveComponent)("Animations"),v=(0,e.resolveComponent)("BsModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",null,[(0,e.createVNode)(v,{open:t.modalShow,size:"lg",onHidden:o[34]||(o[34]=e=>t.modalShow=!1),backdrop:"static",class:"c-modal-row-edit"},{"header-element":(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["modal-header bg-white",{"sticky-top":t.sticky}])},[(0,e.createElementVNode)("ul",$l,[ql,(0,e.createTextVNode)(),Hl,(0,e.createTextVNode)(),Jl],512),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Yl,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary btn--save",onClick:o[0]||(o[0]=e=>a.saveClose())},[Wl,(0,e.createTextVNode)("\n Done\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success btn--save-page",onClick:o[1]||(o[1]=e=>a.savePage()),disabled:t.saving},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(t.saving?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save Page\n ")],8,Ql),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary btn--close",onClick:o[2]||(o[2]=function(){return a.close&&a.close(...arguments)})},Kl)])],2)])),footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-success",onClick:o[32]||(o[32]=e=>a.saveClose())},[Zi,(0,e.createTextVNode)("\n Save\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:o[33]||(o[33]=e=>a.close())},[Ii,(0,e.createTextVNode)("\n Cancel\n ")])])),default:(0,e.withCtx)((()=>[(0,e.createTextVNode)(),t.values.id?((0,e.openBlock)(),(0,e.createElementBlock)("div",Xl,[(0,e.createElementVNode)("div",er,[(0,e.createElementVNode)("div",tr,[or,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-row-edit-label",type:"text","onUpdate:modelValue":o[3]||(o[3]=e=>a.options.label=e),class:"form-control"},null,512),[[e.vModelText,a.options.label]]),(0,e.createTextVNode)(),nr]),(0,e.createTextVNode)(),ar,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",lr,[rr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("textarea",{id:"input-row-edit-title-text","onUpdate:modelValue":o[4]||(o[4]=e=>a.options.title.text=e),class:"form-control"},null,512),[[e.vModelText,a.options.title.text]]),(0,e.createTextVNode)(),ir]),(0,e.createTextVNode)(),""!==a.options.title.text?((0,e.openBlock)(),(0,e.createBlock)(i,{key:0,id:"input-row-edit",modelValue:t.values.options,"onUpdate:modelValue":o[5]||(o[5]=e=>t.values.options=e)},null,8,["modelValue"])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),dr,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",cr,[sr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("textarea",{id:"input-row-edit-subtitle-text","onUpdate:modelValue":o[6]||(o[6]=e=>a.options.subtitle.text=e),class:"form-control"},null,512),[[e.vModelText,a.options.subtitle.text]]),(0,e.createTextVNode)(),ur]),(0,e.createTextVNode)(),""!==a.options.subtitle.text?((0,e.openBlock)(),(0,e.createElementBlock)("div",pr,[(0,e.createVNode)(c,{"class-name":"c-title-font-size"},(0,e.createSlots)({label:(0,e.withCtx)((()=>[mr])),_:2},[(0,e.renderList)(["lg","md","xs"],(t=>({name:t,fn:(0,e.withCtx)((()=>[(0,e.createVNode)(d,{modelValue:a.options.subtitle.font_size[t],"onUpdate:modelValue":e=>a.options.subtitle.font_size[t]=e,max:500},null,8,["modelValue","onUpdate:modelValue"])]))})))]),1024)])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",fr,[gr,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(s,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.title_align,"onUpdate:modelValue":o[7]||(o[7]=e=>a.options.title_align=e),options:[{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ar,[br,(0,e.createTextVNode)(),(0,e.createVNode)(u,{id:"input-row-edit-text-color",modelValue:a.options.text_color,"onUpdate:modelValue":o[8]||(o[8]=e=>a.options.text_color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",hr,[vr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-row-edit-html-id",type:"text","onUpdate:modelValue":o[9]||(o[9]=e=>a.options.html_id=e),class:"form-control"},null,512),[[e.vModelText,a.options.html_id]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Vr,[Nr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-row-edit-html-class",type:"text","onUpdate:modelValue":o[10]||(o[10]=e=>a.options.html_class=e),class:"form-control"},null,512),[[e.vModelText,a.options.html_class]])]),(0,e.createTextVNode)()]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Cr,[(0,e.createVNode)(p,{modelValue:a.options.padding,"onUpdate:modelValue":o[11]||(o[11]=e=>a.options.padding=e)},{label:(0,e.withCtx)((()=>[(0,e.createTextVNode)("Padding")])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createVNode)(p,{modelValue:a.options.margin,"onUpdate:modelValue":o[12]||(o[12]=e=>a.options.margin=e)},{label:(0,e.withCtx)((()=>[(0,e.createTextVNode)("Margin")])),_:1},8,["modelValue"]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",xr,[yr,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(s,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.background.type,"onUpdate:modelValue":o[13]||(o[13]=e=>a.options.background.type=e),options:[{value:"none",text:"None"},{value:"color",text:"Color"},{value:"image",text:"Image"},{value:"gradient",text:"Gradient"},{value:"video",text:"Video"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["color","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",Er,[wr,(0,e.createTextVNode)(),(0,e.createVNode)(u,{id:"input-row-edit-bg-color",modelValue:a.options.background.color,"onUpdate:modelValue":o[14]||(o[14]=e=>a.options.background.color=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",kr,[(0,e.createElementVNode)("div",Tr,[Br,(0,e.createTextVNode)(),(0,e.createVNode)(m,{modelValue:a.options.background.image.url,"onUpdate:modelValue":o[15]||(o[15]=e=>a.options.background.image.url=e),id:"input-row-edit-bg-image"},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",_r,[(0,e.createElementVNode)("div",Sr,[Mr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-row-edit-bg-size","onUpdate:modelValue":o[16]||(o[16]=e=>a.options.background.image.size=e),class:"form-select custom-select"},[Ur,(0,e.createTextVNode)(),Dr,(0,e.createTextVNode)(),Rr,(0,e.createTextVNode)(),Or],512),[[e.vModelSelect,a.options.background.image.size,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",zr,[Zr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-row-edit-bg-repeat","onUpdate:modelValue":o[17]||(o[17]=e=>a.options.background.image.repeat=e),class:"form-select custom-select"},[Ir,(0,e.createTextVNode)(),Lr,(0,e.createTextVNode)(),Fr,(0,e.createTextVNode)(),jr,(0,e.createTextVNode)(),Pr],512),[[e.vModelSelect,a.options.background.image.repeat,void 0,{lazy:!0}]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Gr,[(0,e.createElementVNode)("div",$r,[qr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-row-edit-bg-attachment","onUpdate:modelValue":o[18]||(o[18]=e=>a.options.background.image.attachment=e),class:"form-select custom-select"},[Hr,(0,e.createTextVNode)(),Jr,(0,e.createTextVNode)(),Yr],512),[[e.vModelSelect,a.options.background.image.attachment,void 0,{lazy:!0}]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Wr,[Qr,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:"input-row-edit-bg-position","onUpdate:modelValue":o[19]||(o[19]=e=>a.options.background.image.position=e),class:"form-select custom-select"},[Kr,(0,e.createTextVNode)(),Xr,(0,e.createTextVNode)(),ei,(0,e.createTextVNode)(),ti,(0,e.createTextVNode)(),oi,(0,e.createTextVNode)(),ni,(0,e.createTextVNode)(),ai,(0,e.createTextVNode)(),li,(0,e.createTextVNode)(),ri],512),[[e.vModelSelect,a.options.background.image.position,void 0,{lazy:!0}]])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>["gradient"===a.options.background.type?((0,e.openBlock)(),(0,e.createBlock)(f,{key:0,modelValue:a.options.background.gradient,"onUpdate:modelValue":o[20]||(o[20]=e=>a.options.background.gradient=e)},null,8,["modelValue"])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["video"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",ii,[(0,e.createElementVNode)("div",di,[ci,(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-row-edit-bg-video-url",type:"text","onUpdate:modelValue":o[21]||(o[21]=e=>a.options.background.video.url=e),class:"form-control"},null,512),[[e.vModelText,a.options.background.video.url]]),(0,e.createTextVNode)(),si])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),(0,e.createVNode)(e.Transition,{name:"fade"},{default:(0,e.withCtx)((()=>[-1!==["video","image"].indexOf(a.options.background.type)?((0,e.openBlock)(),(0,e.createElementBlock)("div",ui,[(0,e.createElementVNode)("div",pi,[mi,(0,e.createTextVNode)(),(0,e.createVNode)(u,{id:"input-row-edit-bg-overlay",modelValue:a.options.background.overlay,"onUpdate:modelValue":o[22]||(o[22]=e=>a.options.background.overlay=e),modelModifiers:{lazy:!0}},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",fi,[gi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(g,{name:"row-edit-bg-parallax",modelValue:a.options.background.parallax,"onUpdate:modelValue":o[23]||(o[23]=e=>a.options.background.parallax=e),id:"input-row-edit-bg-parallax",shape:"circle",color:"success","true-value":!0,"false-value":!1},null,8,["modelValue"])])])])):(0,e.createCommentVNode)("",!0)])),_:1}),(0,e.createTextVNode)(),Ai,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",bi,[hi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(s,{color:"primary",variant:"outline",class:"w-100",modelValue:a.options.justify_content,"onUpdate:modelValue":o[24]||(o[24]=e=>a.options.justify_content=e),options:[{value:"start",text:"Start"},{value:"center",text:"Center"},{value:"end",text:"End"},{value:"around",text:"Space Around"},{value:"between",text:"Space Between"}]},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",vi,[Vi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-valign",modelValue:a.options.valign,"onUpdate:modelValue":o[25]||(o[25]=e=>a.options.valign=e),id:"input-row-edit-valign",shape:"circle",color:"success","true-value":"middle","false-value":"top"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ni,[Ci,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-fluid_row",modelValue:a.options.fluid_row,"onUpdate:modelValue":o[26]||(o[26]=e=>a.options.fluid_row=e),id:"input-row-edit-fluid_row",shape:"circle",color:"success","true-value":!0,"false-value":!1},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",xi,[yi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-no_gutter",modelValue:a.options.no_gutter,"onUpdate:modelValue":o[27]||(o[27]=e=>a.options.no_gutter=e),id:"input-row-edit-no_gutter",shape:"circle",color:"success","true-value":!0,"false-value":!1},null,8,["modelValue"])])]),(0,e.createTextVNode)(),Ei,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",wi,[ki,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-hidden-mobile",modelValue:a.options.display.xs,"onUpdate:modelValue":o[28]||(o[28]=e=>a.options.display.xs=e),id:"input-row-edit-hidden-mobile",shape:"circle",color:"success","true-value":"d-none","false-value":"d-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ti,[Bi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-hidden-tablet",modelValue:a.options.display.md,"onUpdate:modelValue":o[29]||(o[29]=e=>a.options.display.md=e),id:"input-row-edit-hidden-tablet",shape:"circle",color:"success","true-value":"d-md-none","false-value":"d-md-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",_i,[Si,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(A,{name:"row-edit-hidden-desktop",modelValue:a.options.display.lg,"onUpdate:modelValue":o[30]||(o[30]=e=>a.options.display.lg=e),id:"input-row-edit-hidden-desktop",shape:"circle",color:"success","true-value":"d-lg-none","false-value":"d-lg-block"},null,8,["modelValue"])])]),(0,e.createTextVNode)(),Mi,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ui,[Di,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ri,[(0,e.createTextVNode)("\n Will auto prefix by "),(0,e.createElementVNode)("code",null,(0,e.toDisplayString)(`#luna-${t.values.id}`),1),(0,e.createTextVNode)(", only works for this scope.\n ")]),(0,e.createTextVNode)(),"layout"===a.currentTab?((0,e.openBlock)(),(0,e.createElementBlock)("div",Oi,[(0,e.createVNode)(b,{ref:"cssEditor",modelValue:a.options.html_css,"onUpdate:modelValue":o[31]||(o[31]=e=>a.options.html_css=e),height:350},null,8,["modelValue"])])):(0,e.createCommentVNode)("",!0)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",zi,[(0,e.createVNode)(h,{id:"row-edit-anim",value:a.options.animation},null,8,["value"])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)()])),_:1},8,["open"])])}]]),ji={name:"store",setup:()=>((0,e.onMounted)((()=>{})),{})},Pi=(0,I.Z)(ji,[["render",function(e,t,o,n,a,l){return null}]]),Gi=t=>((0,e.pushScopeId)("data-v-58abe7f2"),t=t(),(0,e.popScopeId)(),t),$i={class:"form-group mb-3 d-flex align-items-center"},qi=Gi((()=>(0,e.createElementVNode)("span",{class:"me-2"},"\n Filter:\n ",-1))),Hi={class:"c-template-manager__items row"},Ji=["data-id"],Yi=["onClick"],Wi={class:"card-footer"},Qi={class:"d-flex"},Ki={class:"mb-0 me-2"},Xi={class:"ml-auto ms-auto"},ed=["onClick"],td=Gi((()=>(0,e.createElementVNode)("span",{class:"fa fa-trash"},null,-1))),od={class:"small mt-2"},nd={key:0,class:"d-flex justify-content-center py-5 my-5"},ad=[Gi((()=>(0,e.createElementVNode)("span",{class:"spinner spinner-border"},null,-1)))],ld={class:"form-group mb-3"},rd=Gi((()=>(0,e.createElementVNode)("label",{for:"input-tmpl-title"},"Title",-1))),id={class:"form-group mb-3"},dd=Gi((()=>(0,e.createElementVNode)("label",{for:"input-tmpl-description"},"Description",-1))),cd={class:"form-group mb-3"},sd=Gi((()=>(0,e.createElementVNode)("label",{for:"input-tmpl-image"},"Cover",-1))),ud={class:"form-group mb-3"},pd=["disabled"],md={name:"TemplateManager",components:{BsModal:L,SingleImage:ho.Z,ButtonRadio:Jt.Z},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({q:"",filter:{type:""},items:[],loading:!1,callback:null,type:"",i:0,save:{id:null,type:null,title:"",description:"",image:"",content:null,loading:!1}}),l=(0,e.ref)(!1),r=(0,e.ref)(!1);function i(){a.save.type=null,a.save.content=null,a.save.image="",a.save.title=""}const d=(0,e.computed)((()=>{let e=a.type?a.type.split(",").map((e=>e.trim())):[];const t=[{text:"All",value:""}];return e.forEach((e=>{t.push({text:e,value:e})})),t})),c=(0,e.computed)((()=>a.items.filter((e=>!(a.filter.type&&e.type!==a.filter.type||""!==a.q&&-1===e.title.toUpperCase().indexOf(a.q.toUpperCase())&&(!e.description||-1===e.description.toUpperCase().indexOf(a.q.toUpperCase())))))));return{...(0,e.toRefs)(a),tmplModalShow:l,saveModalShow:r,filterButtons:d,filteredItems:c,open:function(e,t,o){a.callback=e,a.type=t,a.i=o,a.filter.type="",a.loading=!0,a.items=[],u.$http.get(u.route("@page_ajax",{task:"getTemplates",type:a.type})).then((e=>{a.items=e.data.data.map((e=>(e.key=u.uid(),e)))})).catch((e=>{console.error(e)})).finally((()=>{a.loading=!1})),l.value=!0},selected:function(e){l.value=!1,a.callback(e,a.type,a.i),n("selected",e,a.type,a.i),a.callback=null,a.type=null,a.i=null},remove:function(e,t){return u.$http.post("@page_ajax/removeTemplate",{id:e.id}).then((e=>{a.items.splice(t,1)})).catch((e=>{u.alert(e.statusText,"","warning")})).finally((()=>{}))},badgeColor:function(e){switch(e){case"page":return"dark";case"row":return"primary";case"column":return"warning";case"addon":return"danger"}},saveContent:function(){return a.save.loading=!0,u.$http.post("@page_ajax/saveTemplate",function(e){const t=new FormData;return(0,F.Z)(e,((e,o)=>{t.append(o,e)})),t}({id:a.save.id,type:a.save.type,image:a.save.image,title:a.save.title,description:a.save.description,content:JSON.stringify(this.save.content)})).then((e=>{r.value=!1,i()})).catch((e=>{u.alert(e.statusText,"","warning")})).finally((()=>{a.save.loading=!1}))},openSave:function(e,t){i(),a.save.type=t,a.save.content=e,r.value=!0},resetSaveData:i}}};l(8103);const fd={name:"PageBuilderApp",components:{BsModal:L,TemplateManager:(0,I.Z)(md,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("ButtonRadio"),d=(0,e.resolveComponent)("BsModal"),c=(0,e.resolveComponent)("SingleImage");return(0,e.openBlock)(),(0,e.createElementBlock)("div",null,[(0,e.createVNode)(d,{open:a.tmplModalShow,title:"Template",size:"xl",onHidden:o[2]||(o[2]=e=>a.tmplModalShow=!1),"class-name":"c-template-manager"},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",$i,[qi,(0,e.createTextVNode)(),(0,e.createVNode)(i,{id:"input-filter",color:"primary",variant:"outline",size:"sm",class:"me-2",modelValue:t.filter.type,"onUpdate:modelValue":o[0]||(o[0]=e=>t.filter.type=e),options:a.filterButtons},null,8,["modelValue","options"]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.withDirectives)((0,e.createElementVNode)("input",{type:"search",placeholder:"Search","onUpdate:modelValue":o[1]||(o[1]=e=>t.q=e),class:"form-control form-control-sm"},null,512),[[e.vModelText,t.q]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Hi,[(0,e.createVNode)(e.TransitionGroup,{name:"fade"},{default:(0,e.withCtx)((()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.filteredItems,((t,o)=>((0,e.openBlock)(),(0,e.createElementBlock)("div",{class:"col-md-6",key:t.id||t.key,"data-id":t.id,style:{"animation-duration":".3s"}},[(0,e.createElementVNode)("div",{class:"c-template-item card my-3",onClick:(0,e.withModifiers)((e=>a.selected(t)),["prevent"]),style:{cursor:"pointer"}},[(0,e.createElementVNode)("div",{class:"c-template-item__preview card-img-top",style:(0,e.normalizeStyle)({"background-image":`url(${t.image})`})},null,4),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Wi,[(0,e.createElementVNode)("div",Qi,[(0,e.createElementVNode)("h5",Ki,(0,e.toDisplayString)(t.title||"No title"),1),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["badge",`bg-${a.badgeColor(t.type)}`])},(0,e.toDisplayString)(t.type),3)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Xi,[!0===t.can_delete?((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:0,href:"#",class:"text-dark",onClick:(0,e.withModifiers)((e=>a.remove(t,o)),["prevent","stop"])},[td,(0,e.createTextVNode)("\n Delete\n ")],8,ed)):(0,e.createCommentVNode)("",!0)])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",od,(0,e.toDisplayString)(t.description||"No description"),1)])],8,Yi)],8,Ji)))),128))])),_:1})]),(0,e.createTextVNode)(),0===t.items.length&&this.loading?((0,e.openBlock)(),(0,e.createElementBlock)("div",nd,ad)):(0,e.createCommentVNode)("",!0)])),_:1},8,["open"]),(0,e.createTextVNode)(),(0,e.createVNode)(d,{open:a.saveModalShow,onHidden:o[7]||(o[7]=e=>a.saveModalShow=!1),title:"Save as Template"},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",null,[(0,e.createTextVNode)("\n Save as: "),(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["badge",`bg-${a.badgeColor(t.save.type)}`])},(0,e.toDisplayString)(t.save.type),3)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ld,[rd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"input-tmpl-title",type:"text",class:"form-control","onUpdate:modelValue":o[3]||(o[3]=e=>t.save.title=e)},null,512),[[e.vModelText,t.save.title]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",id,[dd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.withDirectives)((0,e.createElementVNode)("textarea",{id:"input-tmpl-description",type:"text",class:"form-control","onUpdate:modelValue":o[4]||(o[4]=e=>t.save.description=e),rows:"3"},null,512),[[e.vModelText,t.save.description]])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",cd,[sd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",null,[(0,e.createVNode)(c,{modelValue:t.save.image,"onUpdate:modelValue":o[5]||(o[5]=e=>t.save.image=e),id:"input-tmpl-image"},null,8,["modelValue"])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",ud,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary btn-block",disabled:t.save.loading,onClick:o[6]||(o[6]=function(){return a.saveContent&&a.saveContent(...arguments)})},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(t.save.loading?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save\n ")],8,pd)])])])),_:1},8,["open"])])}],["__scopeId","data-v-58abe7f2"]]),Store:Pi,AddonEdit:Po,ColumnEdit:pl,RowEdit:Fi,Row:Gl,CssEditor:vt},setup(t){const o=(0,e.ref)(null),n=(0,e.reactive)({content:u.data("builder-content")||[],drag:!1,editing:{column:{},row:{},addon:{}},addons:u.data("addons")||[],css:u.data("css")||"",saving:!1,cssModalShow:!1}),a=(0,e.inject)("app");for(const t in n.addons){const o=n.addons[t];o.componentModuleUrl&&S.import(o.componentModuleUrl).then((t=>{a.component(o.componentName,t.default(a,e))}))}u.trigger("page-builder.created",(0,e.getCurrentInstance)());const l=(0,e.ref)(null),r=(0,e.ref)(null),i=(0,e.ref)(null),d=(0,e.ref)(null),c=(0,e.ref)(null);function s(){n.cssModalShow=!0}function p(e,t){try{const o=JSON.parse(e);if(!Array.isArray(o))return void m(o,t);o.forEach((e=>{m(e,t++)}))}catch(e){console.error(e),alert("Invalid format.")}}function m(e,t){(e=JSON.parse(JSON.stringify(e))).id="row-"+u.uid(),e.columns=f(e.columns),n.content.splice(t+1,0,e)}function f(e){return e.map((e=>(e.id="col-"+u.uid(),e.addons=g(e.addons),e)))}function g(e){return e.map((e=>"row"!==e.type?(e.id="addon-"+u.uid(),e):(e.id="row-"+u.uid(),e.columns=e.columns.map((e=>(e.id="col-"+u.uid(),e.addons=g(e.addons),e))),e)))}(0,e.onMounted)((()=>{"#css"===location.hash&&s(),u.delegate(o.value,".btn-close","click",(e=>{e.preventDefault()})),function(){const e=document.querySelector("[data-task=save]");let t="";null==e||e.addEventListener("click",(()=>{const o=e.querySelector("[data-spinner]");e.disabled=!0,t=o.getAttribute("class"),o.setAttribute("class","spinner-border spinner-border-sm"),Ft().then((e=>(console.log("Save Success!"),e))).finally((()=>{e.disabled=!1,o.setAttribute("class",t)}))}))}(),function(e,t){let{rowEditor:o,columnEditor:n,addonEditor:a,addonListShow:l,tmplManager:r}=t;u.on("row:edit",(t=>{e.editing.column={},e.editing.addon={},e.editing.row={},e.editing.row=t,o.value.edit(t)})),u.on("row:save",(t=>{(0,F.Z)(t,((t,o)=>{e.editing.row[o]=t}))})),u.on("column:edit",(t=>{e.editing.row={},e.editing.addon={},e.editing.column={},e.editing.column=t,n.value.edit(t)})),u.on("column:save",(t=>{(0,F.Z)(t,((t,o)=>{e.editing.column[o]=t}))})),u.on("addon:add",(t=>{e.editing.column={},e.editing.column=t,l.value=!0})),u.on("addon:edit",((t,o)=>{e.editing.row={},e.editing.column={},e.editing.addon={},e.editing.addon=t,e.editing.column=o,a.value.edit(t)})),u.on("addon:save",(t=>{0===e.editing.column.addons.filter((e=>e.id===t.id)).length&&e.editing.column.addons.push(t),(0,F.Z)(t,((t,o)=>{e.editing.addon[o]=t}))})),u.on("tmpl.open",((e,t,o)=>{r.value.open(e,t,o)})),u.on("tmpl.save",((e,t)=>{r.value.openSave(e,t)})),u.trigger("page-builder.mounted",this)}(n,{rowEditor:l,columnEditor:r,addonEditor:i,addonListShow:d,tmplManager:c})}));const A=document.querySelector("#input-item-content");(0,e.watch)((()=>n.content),(()=>{A.value=JSON.stringify(n.content)}),{immediate:!0,deep:!0});const b=document.querySelector("#input-item-css");return(0,e.watch)((()=>n.css),(()=>{b.value=n.css}),{immediate:!0,deep:!0}),{root:o,rowEditor:l,columnEditor:r,addonEditor:i,tmplManager:c,addonListShow:d,...(0,e.toRefs)(n),cssEdit:s,addNewRow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=e?n.content.splice(e+1,0,$t()):n.content.push($t())},deleteRow:function(e){n.content.splice(e,1)},copy:function(){jt(n.content)},paste:async function(){const e=await Pt();try{JSON.parse(e).forEach((e=>{m(e,n.content.length)}))}catch(e){console.error(e),alert("Invalid format.")}},pasteTo:p,pastePage:async function(e,t){return p(await Pt(),t)},duplicateRow:m,handleDuplicateAddons:g,handleDuplicateColumns:f,columnsChange:function(e,t){e.columns=t.columns},selectAddon:function(t){d.value=!1;const o=u.data("addons")[t];u.trigger("addon:edit",{...o,id:"addon-"+u.uid(),is:"addon"},n.editing.column),(0,e.nextTick)((()=>{u.selectAll(".bs-tooltip-auto",(e=>{e.parentElement.removeChild(e)}))}))},emptyRow:$t,openTemplates:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;u.trigger("tmpl.open",((e,t,o)=>{p(e.content,o)}),"page,row",e)},savePage:function(){n.saving=!0,(0,e.nextTick)((()=>{Ft(n.saving).finally((()=>{n.saving=!1}))}))}}}};l(75);const gd=(0,I.Z)(fd,[["render",function(l,u,_,S,M,U){const D=(0,e.resolveComponent)("Row"),R=(0,e.resolveComponent)("draggable"),O=(0,e.resolveComponent)("RowEdit"),z=(0,e.resolveComponent)("ColumnEdit"),Z=(0,e.resolveComponent)("AddonEdit"),I=(0,e.resolveComponent)("BsModal"),L=(0,e.resolveComponent)("TemplateManager"),F=(0,e.resolveComponent)("CssEditor"),j=(0,e.resolveComponent)("Store"),P=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createElementBlock)("div",t,[(0,e.createElementVNode)("div",o,[(0,e.createElementVNode)("div",n,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:u[0]||(u[0]=function(){return S.cssEdit&&S.cssEdit(...arguments)}),style:{"min-width":"150px"}},[a,(0,e.createTextVNode)("\n Edit CSS\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",r,[(0,e.createElementVNode)("div",i,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:u[1]||(u[1]=e=>S.openTemplates(l.content.length))},d),(0,e.createTextVNode)(),c,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",s,[(0,e.createElementVNode)("button",{class:"dropdown-item",onClick:u[2]||(u[2]=e=>l.$trigger("tmpl.save",l.content,"page"))},[p,(0,e.createTextVNode)("\n Save as Template\n ")])])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:u[3]||(u[3]=function(){return S.copy&&S.copy(...arguments)}),style:{"min-width":"150px"}},[m,(0,e.createTextVNode)("\n Copy page content\n ")])])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",f,[(0,e.createElementVNode)("div",g,[(0,e.createVNode)(R,(0,e.mergeProps)({modelValue:l.content,"onUpdate:modelValue":u[4]||(u[4]=e=>l.content=e),onStart:u[5]||(u[5]=e=>l.drag=!0),onEnd:u[6]||(u[6]=e=>l.drag=!1)},{handle:".row-move-handle",animation:300},{"item-key":"id"}),{item:(0,e.withCtx)((t=>{let{element:o,index:n}=t;return[(0,e.createVNode)(D,{class:"body__row page-row mb-4",value:o,"move-handle":"row-move-handle",onColumnsChange:e=>S.columnsChange(o,e),onAdd:e=>S.addNewRow(n),onDuplicate:e=>S.duplicateRow(e||o,n),onPastePage:e=>S.pastePage(e,n),onOpenTemplates:e=>S.openTemplates(n),onDelete:e=>S.deleteRow(n)},null,8,["value","onColumnsChange","onAdd","onDuplicate","onPastePage","onOpenTemplates","onDelete"])]})),_:1},16,["modelValue"])]),(0,e.createTextVNode)(),0===l.content.length?((0,e.openBlock)(),(0,e.createElementBlock)("div",A,[(0,e.createElementVNode)("div",b,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm",onClick:u[7]||(u[7]=e=>S.addNewRow())},"\n Add New Row\n "),(0,e.createTextVNode)(),h,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",v,[(0,e.createElementVNode)("div",{class:"dropdown-item",onClick:u[8]||(u[8]=function(){return S.paste&&S.paste(...arguments)})},[V,(0,e.createTextVNode)("\n Paste\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",{class:"dropdown-item",onClick:u[9]||(u[9]=function(){return S.paste&&S.paste(...arguments)})},[N,(0,e.createTextVNode)("\n Insert Template\n ")])])])])):(0,e.createCommentVNode)("",!0),(0,e.createTextVNode)(),(0,e.createVNode)(O,{ref:"rowEditor"},null,512),(0,e.createTextVNode)(),(0,e.createVNode)(z,{ref:"columnEditor"},null,512),(0,e.createTextVNode)(),(0,e.createVNode)(Z,{ref:"addonEditor"},null,512),(0,e.createTextVNode)(),(0,e.createVNode)(I,{open:S.addonListShow,onHidden:u[10]||(u[10]=e=>S.addonListShow=!1),size:"lg",class:"c-modal-addon-select",title:"New Addon"},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",C,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(l.addons,(t=>((0,e.openBlock)(),(0,e.createElementBlock)("div",x,[(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{class:"d-inline-block p-4 c-addon__link btn btn-outline-dark w-100 text-center",href:"javascript://",title:t.description,onClick:(0,e.withModifiers)((e=>S.selectAddon(t.type)),["prevent"])},[(0,e.createElementVNode)("div",E,[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(["fa-3x",t.icon])},null,2)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("h5",w,(0,e.toDisplayString)(t.name),1)],8,y)),[[P]])])))),256))])])),_:1},8,["open"]),(0,e.createTextVNode)(),(0,e.createVNode)(L,{ref:"tmplManager"},null,512),(0,e.createTextVNode)(),(0,e.createVNode)(I,{title:"CSS Edit (Support SCSS)",size:"xl",class:"c-modal-css-edit",open:l.cssModalShow,onHidden:u[14]||(u[14]=e=>l.cssModalShow=!1),backdrop:"static"},{footer:(0,e.withCtx)((()=>[(0,e.createElementVNode)("div",k,[(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-dark",style:{"min-width":"150px"},onClick:u[12]||(u[12]=e=>l.cssModalShow=!1)},[T,(0,e.createTextVNode)("\n Close\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"btn btn-primary",style:{"min-width":"200px"},onClick:u[13]||(u[13]=function(){return S.savePage&&S.savePage(...arguments)}),disabled:l.saving},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(l.saving?"spinner-border spinner-border-sm":"fa fa-save")},null,2),(0,e.createTextVNode)("\n Save\n ")],8,B)])])),default:(0,e.withCtx)((()=>[(0,e.createVNode)(F,{modelValue:l.css,"onUpdate:modelValue":u[11]||(u[11]=e=>l.css=e),"auto-focus":!0},null,8,["modelValue"]),(0,e.createTextVNode)()])),_:1},8,["open"])]),(0,e.createTextVNode)(),(0,e.createVNode)(j)],512)}]]),Ad=["disabled"],bd={class:"card bg-light column__body"},hd={class:"card-body p-2"},vd={class:"column__title mb-2 d-flex align-items-center"},Vd=(0,e.createElementVNode)("div",{class:"column__move"},[(0,e.createElementVNode)("div",{class:"badge bg-secondary column-move-handle me-2",style:{cursor:"move"}},[(0,e.createElementVNode)("span",{class:"fa fa-fw fa-arrows-alt"})])],-1),Nd=(0,e.createElementVNode)("h6",{class:"m-0"},"COL",-1),Cd={key:0},xd={class:"column__actions ml-auto ms-auto text-nowrap"},yd=(0,e.createElementVNode)("span",{class:"fa fa-plus"},null,-1),Ed=[(0,e.createElementVNode)("span",{class:"fa fa-edit"},null,-1)],wd={class:"dropdown d-inline-block"},kd=(0,e.createElementVNode)("button",{type:"button",href:"#",class:"btn btn-sm px-2 py-0 btn-outline-secondary","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"fa fa-arrows-alt-h"})],-1),Td={class:"form-group mb-3"},Bd=["for"],_d=["id"],Sd=["value"],Md={class:"form-group mb-3"},Ud=["for"],Dd=["id"],Rd=(0,e.createElementVNode)("option",{value:""},"- None -",-1),Od=["value"],zd={class:"form-group mb-3"},Zd=["for"],Id=["id"],Ld=(0,e.createElementVNode)("option",{value:""},"- None -",-1),Fd=["value"],jd={class:"d-inline-block dropdown"},Pd=(0,e.createElementVNode)("button",{type:"button",class:"btn btn-outline-secondary btn-sm px-2 py-0","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"fa fa-cog"})],-1),Gd={class:"dropdown-menu dropdown-menu-end dropdown-menu-right"},$d=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-clone"},null,-1),qd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-copy"},null,-1),Hd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-paste"},null,-1),Jd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-plus"},null,-1),Yd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-file-code"},null,-1),Wd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-save"},null,-1),Qd=(0,e.createElementVNode)("span",{class:"fa fa-fw fa-trash"},null,-1),Kd={class:"column__addon mb-2",style:{"animation-duration":".3s"}},Xd=[(0,e.createElementVNode)("span",{class:"fa fa-plus-circle fa-3x d-inline-block"},null,-1)];var ec=l(703);const tc=function(e){return null==e?[]:function(e,t){return Ct(t,(function(t){return e[t]}))}(e,(0,ec.Z)(e))},oc=t=>((0,e.pushScopeId)("data-v-230a3e91"),t=t(),(0,e.popScopeId)(),t),nc=["disabled"],ac={class:"card-body d-flex"},lc={class:"c-addon-instance__icon"},rc={class:"c-addon-instance__title ms-2"},ic={class:"m-0"},dc={class:"text-muted"},cc={key:0,class:"small"},sc={class:"c-addon-instance__toolbar"},uc=[oc((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-edit"},null,-1)))],pc=[oc((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-clone"},null,-1)))],mc=[oc((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-copy"},null,-1)))],fc=[oc((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-eye-slash"},null,-1)))],gc=[oc((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-eye"},null,-1)))],Ac={class:"dropdown d-inline-block"},bc=oc((()=>(0,e.createElementVNode)("button",{type:"button",class:"btn btn-link btn-mini p-0 d-inline-block","data-toggle":"dropdown","data-bs-toggle":"dropdown"},[(0,e.createElementVNode)("span",{class:"fa fa-fw fa-gear text-dark"})],-1))),hc={class:"dropdown-menu dropdown-menu-end dropdown-menu-right"},vc=oc((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-save"},null,-1))),Vc=oc((()=>(0,e.createElementVNode)("span",{class:"fa fa-fw fa-trash"},null,-1))),Nc={name:"addon",components:{},props:{content:Object,column:Object,index:Number},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({options:{}});a.options=t.content.options,(0,e.watch)((()=>t.content),(()=>{a.options=t.content.options}),{deep:!0});const l=(0,e.computed)((()=>u.isDebug()));return{...(0,e.toRefs)(a),debug:l,edit:function(){u.trigger("addon:edit",t.content,t.column)},toggleDisabled:function(e){const o=e.currentTarget;Number(bootstrap.Tooltip.VERSION.split(".").shift())<=4?$(o).tooltip("hide"):u.$ui.bootstrap.tooltip(o).hide(),o.blur(),t.content.disabled=!t.content.disabled},copy:function(){jt(t.content)},duplicate:function(){n("duplicate")},remove:function(){u.confirm("Are you sure to delete it?").then((()=>n("delete")))}}}};l(3385);const Cc={name:"Column",components:{Row:Gl,Addon:(0,I.Z)(Nc,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createElementBlock)("div",{class:"card c-addon-instance border-2 move-handle",style:{cursor:"move"},disabled:!!n.content.disabled||null},[(0,e.createElementVNode)("div",ac,[(0,e.createElementVNode)("div",lc,[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(n.content.icon)},null,2)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",rc,[(0,e.createElementVNode)("h6",ic,(0,e.toDisplayString)(t.addonProp("name",n.content.type)),1),(0,e.createTextVNode)(),(0,e.createElementVNode)("small",dc,(0,e.toDisplayString)(t.options.label||t.options.title.text),1),(0,e.createTextVNode)(),a.debug?((0,e.openBlock)(),(0,e.createElementBlock)("code",cc,(0,e.toDisplayString)(n.content.id),1)):(0,e.createCommentVNode)("",!0)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",sc,[n.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:0,href:"#",class:"text-dark",title:"Edit",onClick:o[0]||(o[0]=(0,e.withModifiers)((e=>a.edit()),["prevent"]))},uc)),[[i]]),(0,e.createTextVNode)(),n.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:1,href:"#",class:"text-dark",title:"Duplicate",onClick:o[1]||(o[1]=(0,e.withModifiers)((e=>a.duplicate()),["prevent"]))},pc)),[[i]]),(0,e.createTextVNode)(),n.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:2,href:"#",class:"text-dark",title:"Copy",onClick:o[2]||(o[2]=(0,e.withModifiers)((e=>a.copy()),["prevent"]))},mc)),[[i]]),(0,e.createTextVNode)(),n.content.disabled?(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:3,href:"#",class:"text-dark",title:"Enable",onClick:o[3]||(o[3]=(0,e.withModifiers)((e=>a.toggleDisabled(e)),["prevent"]))},fc)),[[i]]):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:4,href:"#",class:"text-dark",title:"Disable",onClick:o[4]||(o[4]=(0,e.withModifiers)((e=>a.toggleDisabled(e)),["prevent"]))},gc)),[[i]]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Ac,[bc,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",hc,[(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[5]||(o[5]=e=>t.$trigger("tmpl.save",n.content,"addon"))},[vc,(0,e.createTextVNode)("\n Save as Template\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[6]||(o[6]=function(){return a.remove&&a.remove(...arguments)})},[Vc,(0,e.createTextVNode)("\n Delete\n ")])])])])])],8,nc)}],["__scopeId","data-v-230a3e91"]])},props:{value:Object,index:Number,child:{type:Boolean,default:!1}},setup(t,o){let{emit:n}=o;const a=(0,e.reactive)({content:{},drag:!1,widthMenuOpen:""});function l(e){try{const t=JSON.parse(e);if(!t.id)throw new Error("Invalid format");if(It(t.id,"addon-")||It(t.id,"row-"))return void i(t,a.content.addons.length-1);if(It(t.id,"col-"))return void swal({title:"You are pasting a column to another column...",text:"Please choose an action.",buttons:{add:{text:"Merge",value:"add",className:"btn-info"},replace:{text:"Replace",value:"replace",className:"btn-warning"},append:{text:"After",value:"append",className:"btn-dark"}}}).then((e=>{switch(e){case"replace":a.content.addons=[];case"add":t.addons.forEach((e=>{i(e,d.value.length-1)}));break;case"append":r(a.content)}}))}catch(e){console.error(e),alert("Invalid format.")}}function r(){n("duplicate",arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)}function i(e,o){const n=Gt(e,t.child);n&&d.value.splice(o+1,0,n)}a.content=t.value,a.content=(0,Vt.Z)(a.content,qt());const d=(0,e.computed)((()=>a.content.addons)),c=(0,e.computed)((()=>a.content.options)),s=(0,e.computed)((()=>tc(c.value.width).join(" ")));return(0,e.watch)((()=>t.value),(()=>{a.content=t.value}),{deep:!0}),{...(0,e.toRefs)(a),addons:d,options:c,width:s,edit:function(){u.trigger("column:edit",a.content)},paste:function(){Pt().then((e=>{l(e)}))},closeWidthMenu:function(){a.widthMenuOpen=!1},pasteData:l,duplicate:r,copy:function(){jt(a.content)},toggleDisabled:function(){a.content.disabled=!a.content.disabled},remove:function(){u.confirm("Are you sure you want to delete?").then((()=>n("delete")))},duplicateThisAddon:i,addAddon:function(){u.trigger("addon:add",a.content)},addNewRow:function(){const e=$t();e.type="row",a.content.addons.push(e)},deleteAddon:function(e){d.value.splice(e,1)},widthRange:function(){return sl(1,13)},getEmptyColumn:function(){return qt(t.child)},openTemplates:function(){u.trigger("tmpl.open",((e,t,o)=>{l(e.content)}),"column,addon",d.value.length)}}},methods:{},watch:{},computed:{}},xc=(0,I.Z)(Cc,[["render",function(t,o,n,a,l,r){const i=(0,e.resolveComponent)("Addon"),d=(0,e.resolveComponent)("Row"),c=(0,e.resolveComponent)("draggable"),s=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createElementBlock)("div",{class:(0,e.normalizeClass)(["",a.width]),disabled:!!t.content.disabled||null},[(0,e.createElementVNode)("div",bd,[(0,e.createElementVNode)("div",hd,[(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["column__top-bar d-flex mb-2",{"p-2":n.child}])},[(0,e.createElementVNode)("div",vd,[Vd,(0,e.createTextVNode)(),Nd,(0,e.createTextVNode)(),t.$debug?((0,e.openBlock)(),(0,e.createElementBlock)("code",Cd,(0,e.toDisplayString)(t.content.id),1)):(0,e.createCommentVNode)("",!0)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",xd,[t.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",class:"btn btn-sm px-2 py-0 btn-primary",title:"New Addon",onClick:o[0]||(o[0]=e=>a.addAddon())},[yd,(0,e.createTextVNode)()])),[[s]]),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:1,type:"button",class:"btn btn-sm px-2 py-0 btn-outline-secondary",onClick:o[1]||(o[1]=e=>a.edit()),title:"Edit Column"},Ed)),[[s]]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",wd,[kd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",{class:(0,e.normalizeClass)(["dropdown-menu dropdown-menu-right dropdown-menu-end px-3",t.widthMenuOpen])},[(0,e.createElementVNode)("div",Td,[(0,e.createElementVNode)("label",{for:`input-column-edit-width-desktop--${t.content.id}`,class:"d-block"},"\n Desktop Width\n ",8,Bd),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:`input-column-edit-width-desktop--${t.content.id}`,onClick:o[2]||(o[2]=(0,e.withModifiers)((()=>{}),["stop"])),"onUpdate:modelValue":o[3]||(o[3]=e=>t.content.options.width.lg=e),class:"form-select custom-select"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-lg-"+t},"\n col-lg-"+(0,e.toDisplayString)(t),9,Sd)))),256))],8,_d),[[e.vModelSelect,t.content.options.width.lg]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Md,[(0,e.createElementVNode)("label",{for:`input-column-edit-width-tablet--${t.content.id}`,class:"d-block"},"\n Tablet Width\n ",8,Ud),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:`input-column-edit-width-tablet--${t.content.id}`,onClick:o[4]||(o[4]=(0,e.withModifiers)((()=>{}),["stop"])),"onUpdate:modelValue":o[5]||(o[5]=e=>t.content.options.width.md=e),class:"form-select custom-select"},[Rd,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-md-"+t},"\n col-md-"+(0,e.toDisplayString)(t),9,Od)))),256))],8,Dd),[[e.vModelSelect,t.content.options.width.md]])]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",zd,[(0,e.createElementVNode)("label",{for:`input-column-edit-width-mobile--${t.content.id}`,class:"d-block"},"\n Mobile Width\n ",8,Zd),(0,e.createTextVNode)(),(0,e.withDirectives)((0,e.createElementVNode)("select",{id:`input-column-edit-width-mobile--${t.content.id}`,onClick:o[6]||(o[6]=(0,e.withModifiers)((()=>{}),["stop"])),"onUpdate:modelValue":o[7]||(o[7]=e=>t.content.options.width.xs=e),class:"form-select custom-select"},[Ld,(0,e.createTextVNode)(),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.widthRange(),(t=>((0,e.openBlock)(),(0,e.createElementBlock)("option",{value:"col-"+t},"\n col-"+(0,e.toDisplayString)(t),9,Fd)))),256))],8,Id),[[e.vModelSelect,t.content.options.width.xs]])])],2)]),(0,e.createTextVNode)(),(0,e.createElementVNode)("div",jd,[Pd,(0,e.createTextVNode)(),(0,e.createElementVNode)("div",Gd,[t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",class:"dropdown-item",onClick:o[8]||(o[8]=e=>a.duplicate())},[$d,(0,e.createTextVNode)("\n Clone\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:1,type:"button",class:"dropdown-item",onClick:o[9]||(o[9]=e=>a.copy())},[qd,(0,e.createTextVNode)("\n Copy\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:2,type:"button",class:"dropdown-item",onClick:o[10]||(o[10]=e=>a.paste())},[Hd,(0,e.createTextVNode)("\n Paste\n ")])),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[11]||(o[11]=e=>a.toggleDisabled())},[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(["fa fa-fw",[t.content.disabled?"fa-eye":"fa-eye-slash"]])},null,2),(0,e.createTextVNode)(" "+(0,e.toDisplayString)(t.content.disabled?"Enabled":"Disabled"),1)]),(0,e.createTextVNode)(),t.content.disabled||n.child?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:3,type:"button",class:"dropdown-item",onClick:o[12]||(o[12]=e=>a.addNewRow())},[Jd,(0,e.createTextVNode)("\n New Row\n ")])),(0,e.createTextVNode)(),t.content.disabled?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:4,type:"button",class:"dropdown-item",onClick:o[13]||(o[13]=function(){return a.openTemplates&&a.openTemplates(...arguments)})},[Yd,(0,e.createTextVNode)("\n Insert Template\n ")])),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[14]||(o[14]=e=>t.$trigger("tmpl.save",t.content,"column"))},[Wd,(0,e.createTextVNode)("\n Save as Template\n ")]),(0,e.createTextVNode)(),(0,e.createElementVNode)("button",{type:"button",class:"dropdown-item",onClick:o[15]||(o[15]=e=>a.remove())},[Qd,(0,e.createTextVNode)("\n Delete\n ")])])])])],2),(0,e.createTextVNode)(),(0,e.createVNode)(c,(0,e.mergeProps)({modelValue:t.content.addons,"onUpdate:modelValue":o[17]||(o[17]=e=>t.content.addons=e),onStart:o[18]||(o[18]=e=>t.drag=!0),onEnd:o[19]||(o[19]=e=>t.drag=!1),onAdd:o[20]||(o[20]=(0,e.withModifiers)((()=>{}),["stop"]))},{handle:".move-handle",group:"addon",animation:300},{style:{"min-height":"50px"},class:"column__draggable","item-key":"id"}),{item:(0,e.withCtx)((o=>{let{element:n,index:l}=o;return[(0,e.createElementVNode)("div",Kd,["row"!==n.type?((0,e.openBlock)(),(0,e.createBlock)(i,{onDelete:e=>a.deleteAddon(l),onDuplicate:e=>a.duplicateThisAddon(n,l),index:l,key:n.id,content:n,column:t.content},null,8,["onDelete","onDuplicate","index","content","column"])):((0,e.openBlock)(),(0,e.createBlock)(d,{index:l,key:n.id,value:n,child:!0,onDuplicate:e=>a.duplicateThisAddon(n,l),"move-handle":"move-handle","comment-columns-change":"columnsChange(addon, $event)",onDelete:e=>a.deleteAddon(l),onAdd:a.addNewRow},null,8,["index","value","onDuplicate","onDelete","onAdd"]))])]})),footer:(0,e.withCtx)((()=>[0===a.addons.length?((0,e.openBlock)(),(0,e.createElementBlock)("a",{key:0,class:"column__addon-placeholder text-center p-3 border text-secondary bg-white d-block",style:{"text-decoration":"none"},href:"#",onClick:o[16]||(o[16]=(0,e.withModifiers)((e=>a.addAddon()),["prevent"]))},Xd)):(0,e.createCommentVNode)("",!0)])),_:1},16,["modelValue"])])])],10,Ad)}]]);l(8045);const yc={mounted(e){const t=(0,Vt.Z)({},u.data("tinymce_options")||{},{target:e,height:500,plugins:["advlist","autolink","lists","link","image","charmap","preview","anchor","pagebreak","searchreplace","wordcount","visualblocks","visualchars","code","fullscreen","insertdatetime","media","nonbreaking","save","table","directionality","emoticons","template"],toolbar:"bold italic strikethrough forecolor backcolor blockquote removeformat | styles fontsize | alignleft aligncenter alignright alignjustify bullist numlist outdent indent | link image media table code | fullscreen",toolbar_mode:"sliding",font_size_formats:"13px 14px 15px 16px 18px 20px 22px 28px 36px 48px",menubar:!1,content_css:u.data("tinymce_content_css"),document_base_url:u.uri("root"),paste_data_images:!0,remove_script_host:!0,relative_urls:!0,convert_urls:!0,entity_encoding:"raw",table_header_type:"sectionCells",table_class_list:[{title:"BS Simple",value:"table"},{title:"BS Striped",value:"table table-striped"},{title:"BS Bordered",value:"table table-bordered"},{title:"BS Striped Bordered",value:"table table-striped table-bordered"},{title:"None",value:""}],images_upload_url:u.route("@file_upload"),setup:function(t){t.on("change undo redo",(o=>{e.value=t.getContent(),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new Event("input",{bubbles:!0}))})),t.on("input",(o=>{e.value=t.getContent(),e.dispatchEvent(new Event("input",{bubbles:!0}))}))}});u.$ui.tinymce.loadTinymce().then((()=>{tinymce.remove(),u.$ui.tinymce.create(e,t)}))}};document.addEventListener("focusin",(e=>{null!==e.target.closest(".mce-window, .tox-tinymce, .tox-tinymce-aux, .moxman-window, .tam-assetmanager-root")&&e.stopImmediatePropagation()}));class Ec{static install(e){e.directive("tooltip",{mounted(e,t){let{value:o}=t;u.$ui.bootstrap.tooltip(e,o||{})},updated(e,t){let{value:o}=t;u.$ui.bootstrap.tooltip(e,o||{}).update()},beforeUnmount(e){u.$ui.bootstrap.tooltip(e).dispose()}})}}l.e(737).then(l.t.bind(l,6737,23)),S.import("@main").then((()=>Promise.all([u.importSync("@sortablejs","@vuedraggable"),u.importCSS("@vue2-animate")]))).then((()=>{const t=(0,e.createApp)(gd,{name:"page-builder"});t.config.globalProperties.$debug=u.isDebug(),t.config.globalProperties.$trigger=function(){return u.trigger(...arguments)},t.config.globalProperties.addonProp=(e,t)=>u.data("addons")[t][e],t.component("draggable",vuedraggable),t.component("Row",Gl),t.component("Column",xc),t.component("addon-text",(0,e.defineAsyncComponent)((()=>l.e(154).then(l.bind(l,154))))),t.component("addon-image",(0,e.defineAsyncComponent)((()=>l.e(518).then(l.bind(l,4518))))),t.component("addon-feature",(0,e.defineAsyncComponent)((()=>l.e(298).then(l.bind(l,7298))))),t.component("addon-emptyspace",(0,e.defineAsyncComponent)((()=>l.e(228).then(l.bind(l,6228))))),t.component("addon-button",(0,e.defineAsyncComponent)((()=>l.e(804).then(l.bind(l,2804))))),t.directive("tinymce",yc),t.use(Ec),u.trigger("page-builder.app.prepared",t),t.provide("app",t),u.domready((()=>{t.mount("page-builder-app")}))}))})()})(); //# sourceMappingURL=page-builder.js.map \ No newline at end of file diff --git a/assets/dist/page-builder.js.LICENSE.txt b/assets/dist/page-builder.js.LICENSE.txt index d52587fb..35744830 100644 --- a/assets/dist/page-builder.js.LICENSE.txt +++ b/assets/dist/page-builder.js.LICENSE.txt @@ -1,24 +1,9 @@ -/*! ./dom */ - -/*! ./utils */ - -/*! tinycolor2 */ - -/*!********************!*\ - !*** ./src/dom.ts ***! - \********************/ - -/*!**********************!*\ - !*** ./src/index.ts ***! - \**********************/ - -/*!**********************!*\ - !*** ./src/utils.ts ***! - \**********************/ - -/*!**************************************************!*\ - !*** ./node_modules/tinycolor2/esm/tinycolor.js ***! - \**************************************************/ +/** + * spectrum-vanilla.js + * + * @copyright Copyright (C) 2023. + * @license MIT + */ /** * Part of earth project. @@ -33,17 +18,3 @@ * @copyright Copyright (C) 2021 __ORGANIZATION__. * @license __LICENSE__ */ - -/** - * Part of earth project. - * - * @copyright Copyright (C) 2022 __ORGANIZATION__. - * @license __LICENSE__ - */ - -/** - * Part of spectrum-vanilla project. - * - * @copyright Copyright (C) 2023 __ORGANIZATION__. - * @license __LICENSE__ - */ diff --git a/assets/dist/page-builder.js.map b/assets/dist/page-builder.js.map index c3ecab7c..e585926a 100644 --- a/assets/dist/page-builder.js.map +++ b/assets/dist/page-builder.js.map @@ -1 +1 @@ -{"version":3,"file":"page-builder.js","mappings":";UACIA,EADAC,ECAAC,yECUW,SAASC,EAA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AU,UAAWY,IAGzBxF,EAAIyF,IAAId,IAER95C,EAAEypC,QAAQ,4BAA6B0L,GAEvCA,EAAI0F,QAAQ,MAAO1F,GAEnBn1C,EAAE86C,UAAS,KACT3F,EAAI4F,MAAM,mBAAmB,GAC7B","sources":["webpack:///webpack/runtime/create fake namespace object","webpack:///webpack/runtime/load script","webpack:///./src/vue/services/page-builder/addon-mixin.js","webpack:///./node_modules/spectrum-vanilla/dist/spectrum.min.css","webpack:///./src/vue/app/PageBuilderApp.vue?dc0f","webpack:///./src/vue/components/page-builder/Addon.vue?5f08","webpack:///./src/vue/components/page-builder/templates/TemplateManager.vue?ed12","webpack:///./src/vue/components/page-builder/form/ColorInput.vue?b2d9","webpack:///./node_modules/css-loader/dist/runtime/api.js","webpack:///./node_modules/css-loader/dist/runtime/getUrl.js","webpack:///./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack:///./node_modules/vue-loader/dist/exportHelper.js","webpack:///./src/vue/components/form/UnicornSwitcher.vue","webpack:///./src/vue/components/form/UnicornSwitcher.vue?a814","webpack:///./src/vue/components/page-builder/form/BoxOffset.vue","webpack:///./src/vue/components/page-builder/form/BoxOffset.vue?b2f5","webpack:///./src/vue/components/page-builder/form/ButtonRadio.vue","webpack:///./src/vue/components/page-builder/form/ButtonRadio.vue?953f","webpack:///./node_modules/spectrum-vanilla/dist/spectrum.es.js","webpack:///./src/vue/components/page-builder/form/ColorInput.vue","webpack:///./src/vue/components/page-builder/form/ColorInput.vue?5cfd","webpack:///./src/vue/components/page-builder/form/RwdGroup.vue","webpack:///./src/vue/components/page-builder/form/RwdGroup.vue?4aa3","webpack:///./src/vue/components/page-builder/form/SingleImage.vue","webpack:///./src/vue/components/page-builder/form/SingleImage.vue?013f","webpack:///./src/vue/components/page-builder/form/SliderInput.vue","webpack:///./src/vue/components/page-builder/form/SliderInput.vue?582a","webpack:///./src/vue/components/page-builder/form/TitleOptions.vue","webpack:///./src/vue/components/page-builder/form/TitleOptions.vue?acf0","webpack:///./src/vue/app/PageBuilderApp.vue?837c","webpack:///./src/vue/components/page-builder/Addon.vue?0ccb","webpack:///./src/vue/components/page-builder/templates/TemplateManager.vue?f0aa","webpack:///./src/vue/components/page-builder/form/ColorInput.vue?d3d5","webpack:///./node_modules/vue-style-loader/lib/listToStyles.js","webpack:///./node_modules/vue-style-loader/lib/addStylesClient.js","webpack:///external var \"Vue\"","webpack:///./node_modules/lodash-es/_Symbol.js","webpack:///./node_modules/lodash-es/_arrayLikeKeys.js","webpack:///./node_modules/lodash-es/_baseTimes.js","webpack:///./node_modules/lodash-es/_baseFor.js","webpack:///./node_modules/lodash-es/_createBaseFor.js","webpack:///./node_modules/lodash-es/_getRawTag.js","webpack:///./node_modules/lodash-es/_objectToString.js","webpack:///./node_modules/lodash-es/_baseGetTag.js","webpack:///./node_modules/lodash-es/_freeGlobal.js","webpack:///./node_modules/lodash-es/_isIndex.js","webpack:///./node_modules/lodash-es/_isIterateeCall.js","webpack:///./node_modules/lodash-es/_isPrototype.js","webpack:///./node_modules/lodash-es/_overArg.js","webpack:///./node_modules/lodash-es/_root.js","webpack:///./node_modules/lodash-es/_apply.js","webpack:///./node_modules/lodash-es/_overRest.js","webpack:///./node_modules/lodash-es/constant.js","webpack:///./node_modules/lodash-es/_coreJsData.js","webpack:///./node_modules/lodash-es/_isMasked.js","webpack:///./node_modules/lodash-es/_toSource.js","webpack:///./node_modules/lodash-es/_baseIsNative.js","webpack:///./node_modules/lodash-es/_getNative.js","webpack:///./node_modules/lodash-es/_getValue.js","webpack:///./node_modules/lodash-es/_defineProperty.js","webpack:///./node_modules/lodash-es/_baseSetToString.js","webpack:///./node_modules/lodash-es/_shortOut.js","webpack:///./node_modules/lodash-es/_setToString.js","webpack:///./node_modules/lodash-es/_baseRest.js","webpack:///./node_modules/lodash-es/_assocIndexOf.js","webpack:///./node_modules/lodash-es/_listCacheDelete.js","webpack:///./node_modules/lodash-es/_ListCache.js","webpack:///./node_modules/lodash-es/_listCacheClear.js","webpack:///./node_modules/lodash-es/_listCacheGet.js","webpack:///./node_modules/lodash-es/_listCacheHas.js","webpack:///./node_modules/lodash-es/_listCacheSet.js","webpack:///./node_modules/lodash-es/_Map.js","webpack:///./node_modules/lodash-es/_nativeCreate.js","webpack:///./node_modules/lodash-es/_hashGet.js","webpack:///./node_modules/lodash-es/_hashHas.js","webpack:///./node_modules/lodash-es/_Hash.js","webpack:///./node_modules/lodash-es/_hashClear.js","webpack:///./node_modules/lodash-es/_hashDelete.js","webpack:///./node_modules/lodash-es/_hashSet.js","webpack:///./node_modules/lodash-es/_getMapData.js","webpack:///./node_modules/lodash-es/_isKeyable.js","webpack:///./node_modules/lodash-es/_MapCache.js","webpack:///./node_modules/lodash-es/_mapCacheClear.js","webpack:///./node_modules/lodash-es/_mapCacheDelete.js","webpack:///./node_modules/lodash-es/_mapCacheGet.js","webpack:///./node_modules/lodash-es/_mapCacheHas.js","webpack:///./node_modules/lodash-es/_mapCacheSet.js","webpack:///./node_modules/lodash-es/_Stack.js","webpack:///./node_modules/lodash-es/_stackClear.js","webpack:///./node_modules/lodash-es/_stackDelete.js","webpack:///./node_modules/lodash-es/_stackGet.js","webpack:///./node_modules/lodash-es/_stackHas.js","webpack:///./node_modules/lodash-es/_stackSet.js","webpack:///./node_modules/lodash-es/_baseAssignValue.js","webpack:///./node_modules/lodash-es/_assignMergeValue.js","webpack:///./node_modules/lodash-es/_cloneBuffer.js","webpack:///./node_modules/lodash-es/_Uint8Array.js","webpack:///./node_modules/lodash-es/_cloneTypedArray.js","webpack:///./node_modules/lodash-es/_cloneArrayBuffer.js","webpack:///./node_modules/lodash-es/_baseCreate.js","webpack:///./node_modules/lodash-es/_getPrototype.js","webpack:///./node_modules/lodash-es/isPlainObject.js","webpack:///./node_modules/lodash-es/_safeGet.js","webpack:///./node_modules/lodash-es/_assignValue.js","webpack:///./node_modules/lodash-es/_baseKeysIn.js","webpack:///./node_modules/lodash-es/_nativeKeysIn.js","webpack:///./node_modules/lodash-es/keysIn.js","webpack:///./node_modules/lodash-es/toPlainObject.js","webpack:///./node_modules/lodash-es/_copyObject.js","webpack:///./node_modules/lodash-es/_baseMergeDeep.js","webpack:///./node_modules/lodash-es/isArrayLikeObject.js","webpack:///./node_modules/lodash-es/_copyArray.js","webpack:///./node_modules/lodash-es/_initCloneObject.js","webpack:///./node_modules/lodash-es/_baseMerge.js","webpack:///./node_modules/lodash-es/_customDefaultsMerge.js","webpack:///./node_modules/lodash-es/mergeWith.js","webpack:///./node_modules/lodash-es/_createAssigner.js","webpack:///./node_modules/lodash-es/defaultsDeep.js","webpack:///./node_modules/lodash-es/eq.js","webpack:///./node_modules/lodash-es/_arrayEach.js","webpack:///./node_modules/lodash-es/_baseEach.js","webpack:///./node_modules/lodash-es/_createBaseEach.js","webpack:///./node_modules/lodash-es/_baseForOwn.js","webpack:///./node_modules/lodash-es/forEach.js","webpack:///./node_modules/lodash-es/_castFunction.js","webpack:///./node_modules/lodash-es/identity.js","webpack:///./node_modules/lodash-es/_baseIsArguments.js","webpack:///./node_modules/lodash-es/isArguments.js","webpack:///./node_modules/lodash-es/isArray.js","webpack:///./node_modules/lodash-es/isArrayLike.js","webpack:///./node_modules/lodash-es/isBuffer.js","webpack:///./node_modules/lodash-es/stubFalse.js","webpack:///./node_modules/lodash-es/isFunction.js","webpack:///./node_modules/lodash-es/isLength.js","webpack:///./node_modules/lodash-es/isObject.js","webpack:///./node_modules/lodash-es/isObjectLike.js","webpack:///./node_modules/lodash-es/_baseIsTypedArray.js","webpack:///./node_modules/lodash-es/_nodeUtil.js","webpack:///./node_modules/lodash-es/isTypedArray.js","webpack:///./node_modules/lodash-es/_baseUnary.js","webpack:///./node_modules/lodash-es/_nativeKeys.js","webpack:///./node_modules/lodash-es/_baseKeys.js","webpack:///./node_modules/lodash-es/keys.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/ensure chunk","webpack:///webpack/runtime/get javascript chunk filename","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/publicPath","webpack:///webpack/runtime/jsonp chunk loading","webpack:///./src/vue/app/PageBuilderApp.vue","webpack:///./src/vue/components/page-builder/bootstrap/BsModal.vue","webpack:///./src/vue/components/page-builder/bootstrap/BsModal.vue?3d8e","webpack:///./src/vue/components/page-builder/AddonEdit.vue","webpack:///./src/vue/components/page-builder/CssEditor.vue","webpack:///./src/vue/components/page-builder/CssEditor.vue?a7ca","webpack:///./node_modules/lodash-es/_arrayMap.js","webpack:///./node_modules/lodash-es/isSymbol.js","webpack:///./node_modules/lodash-es/_baseToString.js","webpack:///./node_modules/lodash-es/_trimmedEndIndex.js","webpack:///./node_modules/lodash-es/_baseTrim.js","webpack:///./node_modules/lodash-es/toNumber.js","webpack:///./node_modules/lodash-es/toFinite.js","webpack:///./node_modules/lodash-es/startsWith.js","webpack:///./node_modules/lodash-es/toString.js","webpack:///./node_modules/lodash-es/_baseClamp.js","webpack:///./node_modules/lodash-es/toInteger.js","webpack:///./src/vue/services/page-builder/page-builder.service.js","webpack:///./src/vue/components/page-builder/form/Animations.vue","webpack:///./src/vue/components/page-builder/form/Animations.vue?9386","webpack:///./src/vue/components/page-builder/form/Gradient.vue","webpack:///./src/vue/components/page-builder/form/Gradient.vue?592a","webpack:///./src/vue/components/page-builder/AddonEdit.vue?8d8c","webpack:///./src/vue/components/page-builder/ColumnEdit.vue","webpack:///./node_modules/lodash-es/_baseRange.js","webpack:///./node_modules/lodash-es/range.js","webpack:///./node_modules/lodash-es/_createRange.js","webpack:///./src/vue/components/page-builder/ColumnEdit.vue?fac8","webpack:///./src/vue/components/page-builder/Row.vue","webpack:///./src/vue/components/page-builder/Row.vue?3b2b","webpack:///./src/vue/components/page-builder/RowEdit.vue","webpack:///./src/vue/components/page-builder/RowEdit.vue?b7e4","webpack:///./src/vue/components/page-builder/Store.vue","webpack:///./src/vue/components/page-builder/Store.vue?c996","webpack:///./src/vue/components/page-builder/templates/TemplateManager.vue","webpack:///./src/vue/components/page-builder/templates/TemplateManager.vue?69ff","webpack:///./src/vue/app/PageBuilderApp.vue?9692","webpack:///./src/vue/components/page-builder/Column.vue","webpack:///./node_modules/lodash-es/values.js","webpack:///./node_modules/lodash-es/_baseValues.js","webpack:///./src/vue/components/page-builder/Addon.vue","webpack:///./src/vue/components/page-builder/Addon.vue?5d27","webpack:///./src/vue/components/page-builder/Column.vue?964c","webpack:///./src/vue/services/page-builder/directives/tinymce.js","webpack:///./src/vue/services/page-builder/directives/tooltip.js","webpack:///./src/vue/entries/page-builder.js"],"sourcesContent":["var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var inProgress = {};\n// data-webpack is not used as build has no uniqueName\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/**\n * Part of earth project.\n *\n * @copyright Copyright (C) 2018 ${ORGANIZATION}.\n * @license __LICENSE__\n */\n\nimport { defaultsDeep } from 'lodash-es';\nimport { onMounted, reactive, watch } from 'vue';\n\nexport default function lunaAddonMixin(props, { emit }, state) {\n state.options = state.options || {};\n state.options = defaultsDeep(props.modelValue || {}, state.options);\n state = reactive(state);\n\n onMounted(() => {\n // Fix slider bug\n // setTimeout(() => {\n // this.prepared = true;\n // }, 150);\n });\n\n watch(() => state.options, (v) => {\n emit('update:modelValue', v);\n }, { deep: true });\n\n return state;\n};\n\nlunaAddonMixin.props = {\n modelValue: Object,\n addonId: String\n};\n\n\nwindow.lunaAddonMixin = lunaAddonMixin;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_1___ = new URL(\"data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 fill=%27%23ccc%27 fill-opacity=%271%27%3E%3Crect x=%270%27 y=%270%27 width=%276%27 height=%276%27 /%3E%3Crect x=%276%27 y=%276%27 width=%276%27 height=%276%27 /%3E%3C/svg%3E\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_2___ = new URL(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_3___ = new URL(\"data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 width=%2718%27 height=%2718%27%3E%3Cpath d=%27M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z%27 fill=%27%23000%27%3E%3C/path%3E%3C/svg%3E\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_4___ = new URL(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_5___ = new URL(\"data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 width=%2718%27 height=%2718%27%3E%3Cpath d=%27M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z%27 fill=%27%23fff%27%3E%3C/path%3E%3C/svg%3E\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_6___ = new URL(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABe0lEQVQokYXSsUtcQRTF4d8Jj+VhHSxkEQuLsEUKK0nhTBFTmLSSUhBCMCAWsmgIwWrBLk0akfwLCaSQKBJmtrIIISwpRFKIhViETScphGMzysMtvOVwvpm5d0bGNCuGWAOPgYdl6S8wSDn9b+bUhDHEKWAdeAFMANg+l/TV9ofcz6cjMIbYBvaBMds7QCqZ58CmpBNgPuV0DvAAIMyFGugWtJr7eTv38xEwkPRPErY7QDeG2LqFkjrAgu0dSd/KDVqSNmxvAZ8lfbS9AHRuYemnLWkv5XRVBrQMbAI/gTXgEzAJtJuwBVS2L2OIle03QA/4Lmkl5XQBXEqqbFcAVYFDYChpFngiqWf7l6TXKaezMt2Zkhk24THwG+jZriX9AFZvUAyxLbRke2D75O5zPAO+ADXwEtizjaRHwDvbTyUtppwOmicCHAJvbXcl9YA1SQDjtseA97YPRz7ATcUQp2y/kjRdevsjaTfldNrMjcDGBjXA3T96L7yvrgFzP69+0Ao/HAAAAABJRU5ErkJggg==\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_7___ = new URL(\"data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 width=%2714%27 height=%2714%27%3E%3Cpath d=%27M12 20.016q3.281 0 5.648-2.367t2.367-5.648q0-2.672-1.734-4.922l-11.203 11.203q2.25 1.734 4.922 1.734zM3.984 12q0 2.672 1.734 4.922l11.203-11.203q-2.25-1.734-4.922-1.734-3.281 0-5.648 2.367t-2.367 5.648zM12 2.016q4.125 0 7.055 2.93t2.93 7.055-2.93 7.055-7.055 2.93-7.055-2.93-2.93-7.055 2.93-7.055 7.055-2.93z%27 fill=%27%23000%27%3E%3C/path%3E%3C/svg%3E\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\nvar ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);\nvar ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);\nvar ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);\nvar ___CSS_LOADER_URL_REPLACEMENT_4___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_4___);\nvar ___CSS_LOADER_URL_REPLACEMENT_5___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_5___);\nvar ___CSS_LOADER_URL_REPLACEMENT_6___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_6___);\nvar ___CSS_LOADER_URL_REPLACEMENT_7___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_7___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.sp-container{position:absolute;top:0;left:0;display:inline-block;z-index:9999994;overflow:hidden;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;user-select:none}.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-container button{user-select:none}.sp-original-input-container{position:relative;display:inline-flex}.sp-original-input-container input{margin:0 !important}.sp-original-input-container .sp-add-on{width:40px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.sp-original-input-container .sp-add-on .sp-colorize{height:100%;width:100%;border-radius:inherit}input.spectrum.with-add-on{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.sp-colorize-container{background-image:url(${___CSS_LOADER_URL_REPLACEMENT_0___});background-image:url(${___CSS_LOADER_URL_REPLACEMENT_1___})}.sp-container.sp-flat{position:relative}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20px !important}.sp-hue{position:absolute;top:0;right:0;bottom:0;width:12px;height:100%;left:initial !important;background:-moz-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-ms-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-o-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-webkit-gradient(linear, left top, left bottom, from(red), color-stop(0.17, #ff0), color-stop(0.33, lime), color-stop(0.5, cyan), color-stop(0.67, blue), color-stop(0.83, #f0f), to(red));background:-webkit-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:linear-gradient(to bottom, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%)}.sp-clear-enabled .sp-hue{top:15%;height:85%}.sp-clear-enabled .sp-clear{display:block;position:absolute;top:3px;right:0;bottom:0;cursor:pointer;left:initial;height:14px;width:14px}.sp-fill{padding-top:80%}.sp-sat{position:absolute;top:0;left:0;right:0;bottom:0;background-image:linear-gradient(to right, #fff, rgba(204,154,129,0))}.sp-val{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:4px;background-image:linear-gradient(to top, #000, rgba(204,154,129,0))}.sp-alpha-enabled .sp-top{margin-bottom:28px !important}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-3px;cursor:pointer;height:16px;border-radius:50%;width:16px;margin-right:5px;left:-2px;right:0;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;user-select:none}.sp-alpha{display:none;position:absolute;bottom:-18px;right:0;left:0;height:10px;user-select:none}.sp-alpha-inner{border-radius:4px}.sp-clear{display:none;user-select:none}.sp-clear.sp-clear-display{background-position:center}.sp-replacer{user-select:none}.sp-preview{user-select:none}.sp-dragger{user-select:none;border-radius:5px;height:10px;width:10px;border:1px solid #fff;cursor:pointer;position:absolute;top:0;left:0;margin-left:3px;margin-top:3px;box-shadow:0 0 2px 1px rgba(0,0,0,0.2)}.sp-slider{user-select:none;position:absolute;top:0;cursor:pointer;height:16px;border-radius:50%;width:16px;left:-2px;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;margin-top:8px}.sp-container.sp-dragging .sp-input{user-select:none}.sp-container.sp-input-disabled .sp-input-container{display:none}.sp-container.sp-buttons-disabled .sp-button-container{display:none}.sp-container.sp-palette-buttons-disabled .sp-palette-button-container{display:none}.sp-palette-only .sp-picker-container{display:none}.sp-palette-disabled .sp-palette-container{display:none}.sp-initial-disabled .sp-initial{display:none}.sp-1{height:17%}.sp-2{height:16%}.sp-3{height:17%}.sp-4{height:17%}.sp-5{height:16%}.sp-6{height:17%}.sp-hidden{display:none !important}.sp-cf{*zoom:1}.sp-cf:before{content:\"\";display:table}.sp-cf:after{content:\"\";display:table;clear:both}@media (max-device-width: 480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-container{display:inline-flex;background-color:#fff;padding:0;border-radius:4px;color:#000;box-shadow:0 0 0 1px rgba(99,114,130,0.16),0 8px 16px rgba(27,39,51,0.08);font-size:14px;box-sizing:border-box}.sp-container button{font-size:14px;box-sizing:border-box;border-radius:3px;border:none;background:transparent;line-height:1;padding:0 .75em;height:25px;text-transform:capitalize;text-align:center;vertical-align:middle;cursor:pointer;color:#606c72;font-weight:bold}.sp-container button:hover{opacity:.8}.sp-container input{font-size:12px;box-sizing:border-box}.sp-container button.sp-choose{background-color:#3cab3b;color:#fff;margin-left:5px}.sp-container button.sp-palette-toggle{width:100%;background-color:#f3f3f3;margin:0}.sp-color{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-hue{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-clear{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-top{margin-bottom:10px}.sp-val{border-radius:3px}.sp-sat{border-radius:3px}.sp-input-container{margin-top:-5px}.sp-input-container.sp-cf{height:25px}.sp-initial.sp-thumb.sp-cf{height:25px}.sp-button-container.sp-cf{height:25px}.sp-picker-container{position:relative;padding:10px;width:200px;padding-bottom:0}.sp-picker-container .sp-cf{margin-bottom:10px}.sp-palette-row-initial>span:first-child{cursor:pointer}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{padding:0px 5px !important;margin:0;width:100%;box-shadow:none !important;height:100% !important;background:transparent;color:#3a3a3a;border-radius:2px !important;border:1px solid #e0e0e0 !important;text-align:center;font-family:monospace;font-size:inherit !important}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container{position:relative;padding:10px;border-right:solid 1px #ccc}.sp-palette-only .sp-palette-container{border:0}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer;width:16px;height:16px;margin:3px;border:none;border-radius:3px}.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-palette .sp-thumb-el.sp-thumb-active{border-color:orange}.sp-palette span:hover{border-color:#000}.sp-palette span.sp-thumb-active{border-color:#000}.sp-palette .sp-thumb-inner{border-radius:3px;background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(${___CSS_LOADER_URL_REPLACEMENT_2___});background-image:url(${___CSS_LOADER_URL_REPLACEMENT_3___})}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(${___CSS_LOADER_URL_REPLACEMENT_4___});background-image:url(${___CSS_LOADER_URL_REPLACEMENT_5___})}.sp-thumb-el{position:relative;background-image:url(${___CSS_LOADER_URL_REPLACEMENT_0___});background-image:url(${___CSS_LOADER_URL_REPLACEMENT_1___})}.sp-initial{float:left}.sp-initial span{width:25px;height:25px;border:none;display:block;float:left;margin:0}.sp-initial .spe-thumb-el.sp-thumb-active{border-radius:0 5px 5px 0}.sp-initial .spe-thumb-el{border-radius:5px 0 0 5px}.sp-initial .sp-clear-display{background-position:center}.sp-button-container{float:right}.sp-palette-button-container{margin-top:10px}.sp-replacer{position:relative;overflow:hidden;cursor:pointer;display:inline-block;border-radius:3px;border:1px solid #aaa;color:#666;transition:border-color .3s;vertical-align:middle;width:3rem;height:1.5rem}.sp-replacer:hover{border:1px solid #666;color:#000}.sp-replacer.sp-active{border:1px solid #666;color:#000}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{position:absolute;font-size:10px;right:0;top:0;bottom:0;padding:0 2px;line-height:1.6rem;background-color:#fff}.sp-preview{position:relative;width:100%;height:100%;float:left;z-index:0;position:relative;background-image:url(${___CSS_LOADER_URL_REPLACEMENT_0___});background-image:url(${___CSS_LOADER_URL_REPLACEMENT_1___})}.sp-preview-inner{transition:background-color .2s;display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-preview-inner.sp-clear-display{display:none}.sp-alpha{position:relative;background-image:url(${___CSS_LOADER_URL_REPLACEMENT_0___});background-image:url(${___CSS_LOADER_URL_REPLACEMENT_1___})}.sp-alpha-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(${___CSS_LOADER_URL_REPLACEMENT_6___});background-image:url(${___CSS_LOADER_URL_REPLACEMENT_7___})}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/spectrum-vanilla/dist/spectrum.min.css\"],\"names\":[],\"mappings\":\"AAAA,cAAc,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC,eAAe,CAAC,eAAe,CAAC,8BAA8B,CAAC,2BAA2B,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,gBAAgB,8BAA8B,CAAC,2BAA2B,CAAC,sBAAsB,CAAC,qBAAqB,gBAAgB,CAAC,6BAA6B,iBAAiB,CAAC,mBAAmB,CAAC,mCAAmC,mBAAmB,CAAC,wCAAwC,UAAU,CAAC,oCAAoC,CAAC,uCAAuC,CAAC,qDAAqD,WAAW,CAAC,UAAU,CAAC,qBAAqB,CAAC,2BAA2B,wBAAwB,CAAC,2BAA2B,CAAC,aAAa,CAAC,uBAAuB,wDAA8J,CAAC,wDAAqQ,CAAC,sBAAsB,iBAAiB,CAAC,QAAQ,iBAAiB,CAAC,UAAU,CAAC,oBAAoB,CAAC,cAAc,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ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BAAqB,CAAC,UAAU,CAAC,aAAa,CAAC,mBAAmB,qBAAqB,CAAC,UAAU,CAAC,uBAAuB,qBAAqB,CAAC,UAAU,CAAC,yBAAyB,cAAc,CAAC,mBAAmB,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,YAAY,iBAAiB,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,iBAAiB,CAAC,wDAA8J,CAAC,wDAAqQ,CAAC,kBAAkB,+BAA+B,CAAC,aAAa,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,mCAAmC,YAAY,CAAC,UAAU,iBAAiB,CAAC,wDAA8J,CAAC,wDAAqQ,CAAC,gBAAgB,aAAa,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,aAAa,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,kBAAkB,2BAA2B,CAAC,0BAA0B,CAAC,wDAAsnB,CAAC,wDAAwe\",\"sourcesContent\":[\".sp-container{position:absolute;top:0;left:0;display:inline-block;z-index:9999994;overflow:hidden;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;user-select:none}.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-container button{user-select:none}.sp-original-input-container{position:relative;display:inline-flex}.sp-original-input-container input{margin:0 !important}.sp-original-input-container .sp-add-on{width:40px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.sp-original-input-container .sp-add-on .sp-colorize{height:100%;width:100%;border-radius:inherit}input.spectrum.with-add-on{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.sp-colorize-container{background-image:url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\\\");background-image:url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23ccc' fill-opacity='1'%3E%3Crect x='0' y='0' width='6' height='6' /%3E%3Crect x='6' y='6' width='6' height='6' /%3E%3C/svg%3E\\\")}.sp-container.sp-flat{position:relative}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20px !important}.sp-hue{position:absolute;top:0;right:0;bottom:0;width:12px;height:100%;left:initial !important;background:-moz-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-ms-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-o-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-webkit-gradient(linear, left top, left bottom, from(red), color-stop(0.17, #ff0), color-stop(0.33, lime), color-stop(0.5, cyan), color-stop(0.67, blue), color-stop(0.83, #f0f), to(red));background:-webkit-linear-gradient(top, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:linear-gradient(to bottom, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%)}.sp-clear-enabled .sp-hue{top:15%;height:85%}.sp-clear-enabled .sp-clear{display:block;position:absolute;top:3px;right:0;bottom:0;cursor:pointer;left:initial;height:14px;width:14px}.sp-fill{padding-top:80%}.sp-sat{position:absolute;top:0;left:0;right:0;bottom:0;background-image:linear-gradient(to right, #fff, rgba(204,154,129,0))}.sp-val{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:4px;background-image:linear-gradient(to top, #000, rgba(204,154,129,0))}.sp-alpha-enabled .sp-top{margin-bottom:28px !important}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-3px;cursor:pointer;height:16px;border-radius:50%;width:16px;margin-right:5px;left:-2px;right:0;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;user-select:none}.sp-alpha{display:none;position:absolute;bottom:-18px;right:0;left:0;height:10px;user-select:none}.sp-alpha-inner{border-radius:4px}.sp-clear{display:none;user-select:none}.sp-clear.sp-clear-display{background-position:center}.sp-replacer{user-select:none}.sp-preview{user-select:none}.sp-dragger{user-select:none;border-radius:5px;height:10px;width:10px;border:1px solid #fff;cursor:pointer;position:absolute;top:0;left:0;margin-left:3px;margin-top:3px;box-shadow:0 0 2px 1px rgba(0,0,0,0.2)}.sp-slider{user-select:none;position:absolute;top:0;cursor:pointer;height:16px;border-radius:50%;width:16px;left:-2px;background:#f9f9f9;box-shadow:0 0 2px 0px #3a3a3a;margin-top:8px}.sp-container.sp-dragging .sp-input{user-select:none}.sp-container.sp-input-disabled .sp-input-container{display:none}.sp-container.sp-buttons-disabled .sp-button-container{display:none}.sp-container.sp-palette-buttons-disabled .sp-palette-button-container{display:none}.sp-palette-only .sp-picker-container{display:none}.sp-palette-disabled .sp-palette-container{display:none}.sp-initial-disabled .sp-initial{display:none}.sp-1{height:17%}.sp-2{height:16%}.sp-3{height:17%}.sp-4{height:17%}.sp-5{height:16%}.sp-6{height:17%}.sp-hidden{display:none !important}.sp-cf{*zoom:1}.sp-cf:before{content:\\\"\\\";display:table}.sp-cf:after{content:\\\"\\\";display:table;clear:both}@media (max-device-width: 480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-container{display:inline-flex;background-color:#fff;padding:0;border-radius:4px;color:#000;box-shadow:0 0 0 1px rgba(99,114,130,0.16),0 8px 16px rgba(27,39,51,0.08);font-size:14px;box-sizing:border-box}.sp-container button{font-size:14px;box-sizing:border-box;border-radius:3px;border:none;background:transparent;line-height:1;padding:0 .75em;height:25px;text-transform:capitalize;text-align:center;vertical-align:middle;cursor:pointer;color:#606c72;font-weight:bold}.sp-container button:hover{opacity:.8}.sp-container input{font-size:12px;box-sizing:border-box}.sp-container button.sp-choose{background-color:#3cab3b;color:#fff;margin-left:5px}.sp-container button.sp-palette-toggle{width:100%;background-color:#f3f3f3;margin:0}.sp-color{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-hue{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-clear{font-size:12px;box-sizing:border-box;border-radius:3px}.sp-top{margin-bottom:10px}.sp-val{border-radius:3px}.sp-sat{border-radius:3px}.sp-input-container{margin-top:-5px}.sp-input-container.sp-cf{height:25px}.sp-initial.sp-thumb.sp-cf{height:25px}.sp-button-container.sp-cf{height:25px}.sp-picker-container{position:relative;padding:10px;width:200px;padding-bottom:0}.sp-picker-container .sp-cf{margin-bottom:10px}.sp-palette-row-initial>span:first-child{cursor:pointer}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{padding:0px 5px !important;margin:0;width:100%;box-shadow:none !important;height:100% !important;background:transparent;color:#3a3a3a;border-radius:2px !important;border:1px solid #e0e0e0 !important;text-align:center;font-family:monospace;font-size:inherit !important}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container{position:relative;padding:10px;border-right:solid 1px #ccc}.sp-palette-only .sp-palette-container{border:0}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer;width:16px;height:16px;margin:3px;border:none;border-radius:3px}.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-palette .sp-thumb-el.sp-thumb-active{border-color:orange}.sp-palette span:hover{border-color:#000}.sp-palette span.sp-thumb-active{border-color:#000}.sp-palette .sp-thumb-inner{border-radius:3px;background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=\\\");background-image:url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z' fill='%23000'%3E%3C/path%3E%3C/svg%3E\\\")}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=\\\");background-image:url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M9 16.172l10.594-10.594 1.406 1.406-12 12-5.578-5.578 1.406-1.406z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E\\\")}.sp-thumb-el{position:relative;background-image:url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\\\");background-image:url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23ccc' fill-opacity='1'%3E%3Crect x='0' y='0' width='6' height='6' /%3E%3Crect x='6' y='6' width='6' height='6' /%3E%3C/svg%3E\\\")}.sp-initial{float:left}.sp-initial span{width:25px;height:25px;border:none;display:block;float:left;margin:0}.sp-initial .spe-thumb-el.sp-thumb-active{border-radius:0 5px 5px 0}.sp-initial .spe-thumb-el{border-radius:5px 0 0 5px}.sp-initial .sp-clear-display{background-position:center}.sp-button-container{float:right}.sp-palette-button-container{margin-top:10px}.sp-replacer{position:relative;overflow:hidden;cursor:pointer;display:inline-block;border-radius:3px;border:1px solid #aaa;color:#666;transition:border-color .3s;vertical-align:middle;width:3rem;height:1.5rem}.sp-replacer:hover{border:1px solid #666;color:#000}.sp-replacer.sp-active{border:1px solid #666;color:#000}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{position:absolute;font-size:10px;right:0;top:0;bottom:0;padding:0 2px;line-height:1.6rem;background-color:#fff}.sp-preview{position:relative;width:100%;height:100%;float:left;z-index:0;position:relative;background-image:url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\\\");background-image:url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23ccc' fill-opacity='1'%3E%3Crect x='0' y='0' width='6' height='6' /%3E%3Crect x='6' y='6' width='6' height='6' /%3E%3C/svg%3E\\\")}.sp-preview-inner{transition:background-color .2s;display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-preview-inner.sp-clear-display{display:none}.sp-alpha{position:relative;background-image:url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\\\");background-image:url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23ccc' fill-opacity='1'%3E%3Crect x='0' y='0' width='6' height='6' /%3E%3Crect x='6' y='6' width='6' height='6' /%3E%3C/svg%3E\\\")}.sp-alpha-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABe0lEQVQokYXSsUtcQRTF4d8Jj+VhHSxkEQuLsEUKK0nhTBFTmLSSUhBCMCAWsmgIwWrBLk0akfwLCaSQKBJmtrIIISwpRFKIhViETScphGMzysMtvOVwvpm5d0bGNCuGWAOPgYdl6S8wSDn9b+bUhDHEKWAdeAFMANg+l/TV9ofcz6cjMIbYBvaBMds7QCqZ58CmpBNgPuV0DvAAIMyFGugWtJr7eTv38xEwkPRPErY7QDeG2LqFkjrAgu0dSd/KDVqSNmxvAZ8lfbS9AHRuYemnLWkv5XRVBrQMbAI/gTXgEzAJtJuwBVS2L2OIle03QA/4Lmkl5XQBXEqqbFcAVYFDYChpFngiqWf7l6TXKaezMt2Zkhk24THwG+jZriX9AFZvUAyxLbRke2D75O5zPAO+ADXwEtizjaRHwDvbTyUtppwOmicCHAJvbXcl9YA1SQDjtseA97YPRz7ATcUQp2y/kjRdevsjaTfldNrMjcDGBjXA3T96L7yvrgFzP69+0Ao/HAAAAABJRU5ErkJggg==\\\");background-image:url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M12 20.016q3.281 0 5.648-2.367t2.367-5.648q0-2.672-1.734-4.922l-11.203 11.203q2.25 1.734 4.922 1.734zM3.984 12q0 2.672 1.734 4.922l11.203-11.203q-2.25-1.734-4.922-1.734-3.281 0-5.648 2.367t-2.367 5.648zM12 2.016q4.125 0 7.055 2.93t2.93 7.055-2.93 7.055-7.055 2.93-7.055-2.93-2.93-7.055 2.93-7.055 7.055-2.93z' fill='%23000'%3E%3C/path%3E%3C/svg%3E\\\")}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.CodeMirror{height:450px !important;font-size:15px}.form-group label:not(.btn){margin-bottom:.5rem}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/vue/app/PageBuilderApp.vue\"],\"names\":[],\"mappings\":\"AACA,YACE,uBAAA,CACA,cAAA,CAGF,4BACE,mBAAA\",\"sourcesContent\":[\".CodeMirror{height:450px !important;font-size:15px}.form-group label:not(.btn){margin-bottom:.5rem}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.c-addon-instance[data-v-230a3e91]{position:relative}.c-addon-instance__toolbar[data-v-230a3e91]{position:absolute;top:.5rem;right:.5rem}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/vue/components/page-builder/Addon.vue\"],\"names\":[],\"mappings\":\"AACA,mCACE,iBAAA,CAEA,4CACE,iBAAA,CACA,SAAA,CACA,WAAA\",\"sourcesContent\":[\".c-addon-instance{position:relative}.c-addon-instance__toolbar{position:absolute;top:.5rem;right:.5rem}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.c-template-item[data-v-58abe7f2]{transition:all .3s}.c-template-item[data-v-58abe7f2]:hover{opacity:.85}.c-template-item__preview[data-v-58abe7f2]{width:100%;padding-top:50%;background:no-repeat center center;background-size:cover}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/vue/components/page-builder/templates/TemplateManager.vue\"],\"names\":[],\"mappings\":\"AACE,kCACE,kBAAA,CACA,wCACE,WAAA,CAGF,2CACE,UAAA,CACA,eAAA,CACA,kCAAA,CACA,qBAAA\",\"sourcesContent\":[\".c-template-item{transition:all .3s}.c-template-item:hover{opacity:.85}.c-template-item__preview{width:100%;padding-top:50%;background:no-repeat center center;background-size:cover}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_AT_RULE_IMPORT_0___ from \"-!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/spectrum-vanilla/dist/spectrum.min.css\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\n.sp-add-on {\n width: 40px !important;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/vue/components/page-builder/form/ColorInput.vue\"],\"names\":[],\"mappings\":\";AAmDE;IACE,sBAAsB;AACxB\",\"sourcesContent\":[\"\\n @import \\\"spectrum-vanilla/dist/spectrum.min.css\\\";\\n\\n .sp-add-on {\\n width: 40px !important;\\n }\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n options = {};\n }\n if (!url) {\n return url;\n }\n url = String(url.__esModule ? url.default : url);\n\n // If url is already wrapped in quotes, remove them\n if (/^['\"].*['\"]$/.test(url)) {\n url = url.slice(1, -1);\n }\n if (options.hash) {\n url += options.hash;\n }\n\n // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n if (/[\"'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, \"\\\\n\"), \"\\\"\");\n }\n return url;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// runtime helper for setting properties on components\n// in a tree-shakable way\nexports.default = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\n","\n\n\n\n\n","import { render } from \"./UnicornSwitcher.vue?vue&type=template&id=9a85c5e8\"\nimport script from \"./UnicornSwitcher.vue?vue&type=script&lang=js\"\nexport * from \"./UnicornSwitcher.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./BoxOffset.vue?vue&type=template&id=1e89935f\"\nimport script from \"./BoxOffset.vue?vue&type=script&lang=js\"\nexport * from \"./BoxOffset.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ButtonRadio.vue?vue&type=template&id=4ace2794\"\nimport script from \"./ButtonRadio.vue?vue&type=script&lang=js\"\nexport * from \"./ButtonRadio.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/******/ var __webpack_modules__ = ({\n\n/***/ \"./src/dom.ts\":\n/*!********************!*\\\n !*** ./src/dom.ts ***!\n \\********************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"insertAfter\": () => (/* binding */ insertAfter),\n/* harmony export */ \"outerWidthWithMargin\": () => (/* binding */ outerWidthWithMargin),\n/* harmony export */ \"wrap\": () => (/* binding */ wrap)\n/* harmony export */ });\n/* unused harmony export insertBefore */\n/**\n * Part of spectrum-vanilla project.\n *\n * @copyright Copyright (C) 2023 __ORGANIZATION__.\n * @license __LICENSE__\n */\nfunction insertAfter(existingNode, newNode) {\n var _a;\n (_a = existingNode.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(newNode, existingNode.nextSibling);\n return existingNode;\n}\nfunction insertBefore(existingNode, newNode) {\n var _a;\n (_a = existingNode.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(newNode, existingNode);\n return existingNode;\n}\nfunction wrap(ele, wrapper) {\n ele.replaceWith(wrapper);\n wrapper.appendChild(ele);\n return ele;\n}\nfunction outerWidthWithMargin(ele) {\n const style = window.getComputedStyle(ele);\n return ele.getBoundingClientRect().width + parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n}\n\n/***/ }),\n\n/***/ \"./src/utils.ts\":\n/*!**********************!*\\\n !*** ./src/utils.ts ***!\n \\**********************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"addClass\": () => (/* binding */ addClass),\n/* harmony export */ \"emit\": () => (/* binding */ emit),\n/* harmony export */ \"eventDelegate\": () => (/* binding */ eventDelegate),\n/* harmony export */ \"getElementOffset\": () => (/* binding */ getElementOffset),\n/* harmony export */ \"html\": () => (/* binding */ html),\n/* harmony export */ \"removeClass\": () => (/* binding */ removeClass),\n/* harmony export */ \"setElementOffset\": () => (/* binding */ setElementOffset),\n/* harmony export */ \"throttle\": () => (/* binding */ throttle),\n/* harmony export */ \"toggleClass\": () => (/* binding */ toggleClass)\n/* harmony export */ });\n/* unused harmony exports camelize, getElementPosition */\n/**\n * Part of spectrum-vanilla project.\n *\n * @copyright Copyright (C) 2023 __ORGANIZATION__.\n * @license __LICENSE__\n */\nfunction html(html) {\n let doc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;\n const div = doc.createElement('div');\n div.innerHTML = html;\n return div.children[0];\n}\nfunction camelize(str) {\n return str.replace(/(?:^\\w|[A-Z]|\\b\\w)/g, function (word, index) {\n return index === 0 ? word.toLowerCase() : word.toUpperCase();\n }).replace(/\\s+/g, '');\n}\nfunction throttle(func, wait) {\n let debounce = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n let timeout;\n return function () {\n // @ts-ignore\n const context = this,\n args = arguments;\n const throttler = function () {\n timeout = null;\n func.apply(context, args);\n };\n if (debounce) clearTimeout(timeout);\n if (debounce || !timeout) {\n timeout = setTimeout(throttler, wait);\n }\n };\n}\nfunction addClass(ele, className) {\n const classes = className.split(' ').filter(c => c !== '');\n if (className !== '' && classes.length) {\n ele.classList.add(...classes);\n }\n return ele;\n}\nfunction removeClass(ele, className) {\n const classes = className.split(' ').filter(c => c !== '');\n if (className !== '' && classes.length) {\n ele.classList.remove(...classes);\n }\n return ele;\n}\nfunction toggleClass(ele, className) {\n let state = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n if (state != undefined) {\n ele.classList.toggle(className, state);\n } else if (state === true) {\n addClass(ele, className);\n } else {\n removeClass(ele, className);\n }\n return ele;\n}\nfunction emit(ele, eventName) {\n let detail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n const event = new CustomEvent(eventName, {\n cancelable: true,\n bubbles: true,\n detail\n });\n ele.dispatchEvent(event);\n return event;\n}\nfunction eventDelegate(ele, eventName, selector, listener) {\n let payload = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};\n ele.addEventListener(eventName, e => {\n if (e.target.closest(selector)) {\n // @ts-ignore\n e.data = Object.assign({}, e.data || {}, payload);\n listener(e);\n }\n }, payload);\n}\nfunction setElementOffset(elem, options) {\n let curPosition;\n let curTop;\n let curLeft;\n let calculatePosition;\n let position = elem.style.position;\n let curElem = elem;\n let props = {};\n // Set position first, in-case top/left are set even on static elem\n if (position === \"static\") {\n elem.style.position = \"relative\";\n }\n let curOffset = getElementOffset(curElem);\n let curCSSTop = elem.style.top;\n let curCSSLeft = elem.style.left;\n calculatePosition = (position === \"absolute\" || position === \"fixed\") && (curCSSTop + curCSSLeft).indexOf(\"auto\") > -1;\n // Need to be able to calculate position if either\n // top or left is auto and position is either absolute or fixed\n if (calculatePosition) {\n curPosition = getElementPosition(curElem);\n curTop = curPosition.top;\n curLeft = curPosition.left;\n } else {\n curTop = parseFloat(curCSSTop) || 0;\n curLeft = parseFloat(curCSSLeft) || 0;\n }\n // if (typeof options === 'function') {\n // options = options.call(elem, Object.assign({}, curOffset)) as OffsetCSSOptions;\n // }\n if (options.top != null) {\n props.top = options.top - curOffset.top + curTop;\n }\n if (options.left != null) {\n props.left = options.left - curOffset.left + curLeft;\n }\n if (\"using\" in options) {\n options.using.call(elem, props);\n } else {\n for (const k in props) {\n curElem.style[k] = props[k] + 'px';\n }\n }\n}\nfunction getElementOffset(el) {\n const box = el.getBoundingClientRect();\n const docElem = document.documentElement;\n return {\n top: box.top + window.pageYOffset - docElem.clientTop,\n left: box.left + window.pageXOffset - docElem.clientLeft\n };\n}\nfunction getElementPosition(el) {\n const {\n top,\n left\n } = el.getBoundingClientRect();\n const {\n marginTop,\n marginLeft\n } = getComputedStyle(el);\n return {\n top: top - parseInt(marginTop, 10),\n left: left - parseInt(marginLeft, 10)\n };\n}\n\n/***/ }),\n\n/***/ \"./node_modules/tinycolor2/esm/tinycolor.js\":\n/*!**************************************************!*\\\n !*** ./node_modules/tinycolor2/esm/tinycolor.js ***!\n \\**************************************************/\n/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ tinycolor)\n/* harmony export */ });\n// This file is autogenerated. It's used to publish ESM to npm.\n// https://github.com/bgrins/TinyColor\n// Brian Grinstead, MIT License\n\nconst trimLeft = /^\\s+/;\nconst trimRight = /\\s+$/;\n\nfunction tinycolor(color, opts) {\n color = color ? color : \"\";\n opts = opts || {};\n\n // If input is already a tinycolor, return itself\n if (color instanceof tinycolor) {\n return color;\n }\n // If we are called as a function, call using new instead\n if (!(this instanceof tinycolor)) {\n return new tinycolor(color, opts);\n }\n\n var rgb = inputToRGB(color);\n (this._originalInput = color),\n (this._r = rgb.r),\n (this._g = rgb.g),\n (this._b = rgb.b),\n (this._a = rgb.a),\n (this._roundA = Math.round(100 * this._a) / 100),\n (this._format = opts.format || rgb.format);\n this._gradientType = opts.gradientType;\n\n // Don't let the range of [0,255] come back in [0,1].\n // Potentially lose a little bit of precision here, but will fix issues where\n // .5 gets interpreted as half of the total, instead of half of 1\n // If it was supposed to be 128, this was already taken care of by `inputToRgb`\n if (this._r < 1) this._r = Math.round(this._r);\n if (this._g < 1) this._g = Math.round(this._g);\n if (this._b < 1) this._b = Math.round(this._b);\n\n this._ok = rgb.ok;\n}\n\ntinycolor.prototype = {\n isDark: function () {\n return this.getBrightness() < 128;\n },\n isLight: function () {\n return !this.isDark();\n },\n isValid: function () {\n return this._ok;\n },\n getOriginalInput: function () {\n return this._originalInput;\n },\n getFormat: function () {\n return this._format;\n },\n getAlpha: function () {\n return this._a;\n },\n getBrightness: function () {\n //http://www.w3.org/TR/AERT#color-contrast\n var rgb = this.toRgb();\n return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;\n },\n getLuminance: function () {\n //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n var rgb = this.toRgb();\n var RsRGB, GsRGB, BsRGB, R, G, B;\n RsRGB = rgb.r / 255;\n GsRGB = rgb.g / 255;\n BsRGB = rgb.b / 255;\n\n if (RsRGB <= 0.03928) R = RsRGB / 12.92;\n else R = Math.pow((RsRGB + 0.055) / 1.055, 2.4);\n if (GsRGB <= 0.03928) G = GsRGB / 12.92;\n else G = Math.pow((GsRGB + 0.055) / 1.055, 2.4);\n if (BsRGB <= 0.03928) B = BsRGB / 12.92;\n else B = Math.pow((BsRGB + 0.055) / 1.055, 2.4);\n return 0.2126 * R + 0.7152 * G + 0.0722 * B;\n },\n setAlpha: function (value) {\n this._a = boundAlpha(value);\n this._roundA = Math.round(100 * this._a) / 100;\n return this;\n },\n toHsv: function () {\n var hsv = rgbToHsv(this._r, this._g, this._b);\n return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };\n },\n toHsvString: function () {\n var hsv = rgbToHsv(this._r, this._g, this._b);\n var h = Math.round(hsv.h * 360),\n s = Math.round(hsv.s * 100),\n v = Math.round(hsv.v * 100);\n return this._a == 1\n ? \"hsv(\" + h + \", \" + s + \"%, \" + v + \"%)\"\n : \"hsva(\" + h + \", \" + s + \"%, \" + v + \"%, \" + this._roundA + \")\";\n },\n toHsl: function () {\n var hsl = rgbToHsl(this._r, this._g, this._b);\n return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };\n },\n toHslString: function () {\n var hsl = rgbToHsl(this._r, this._g, this._b);\n var h = Math.round(hsl.h * 360),\n s = Math.round(hsl.s * 100),\n l = Math.round(hsl.l * 100);\n return this._a == 1\n ? \"hsl(\" + h + \", \" + s + \"%, \" + l + \"%)\"\n : \"hsla(\" + h + \", \" + s + \"%, \" + l + \"%, \" + this._roundA + \")\";\n },\n toHex: function (allow3Char) {\n return rgbToHex(this._r, this._g, this._b, allow3Char);\n },\n toHexString: function (allow3Char) {\n return \"#\" + this.toHex(allow3Char);\n },\n toHex8: function (allow4Char) {\n return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);\n },\n toHex8String: function (allow4Char) {\n return \"#\" + this.toHex8(allow4Char);\n },\n toRgb: function () {\n return {\n r: Math.round(this._r),\n g: Math.round(this._g),\n b: Math.round(this._b),\n a: this._a,\n };\n },\n toRgbString: function () {\n return this._a == 1\n ? \"rgb(\" +\n Math.round(this._r) +\n \", \" +\n Math.round(this._g) +\n \", \" +\n Math.round(this._b) +\n \")\"\n : \"rgba(\" +\n Math.round(this._r) +\n \", \" +\n Math.round(this._g) +\n \", \" +\n Math.round(this._b) +\n \", \" +\n this._roundA +\n \")\";\n },\n toPercentageRgb: function () {\n return {\n r: Math.round(bound01(this._r, 255) * 100) + \"%\",\n g: Math.round(bound01(this._g, 255) * 100) + \"%\",\n b: Math.round(bound01(this._b, 255) * 100) + \"%\",\n a: this._a,\n };\n },\n toPercentageRgbString: function () {\n return this._a == 1\n ? \"rgb(\" +\n Math.round(bound01(this._r, 255) * 100) +\n \"%, \" +\n Math.round(bound01(this._g, 255) * 100) +\n \"%, \" +\n Math.round(bound01(this._b, 255) * 100) +\n \"%)\"\n : \"rgba(\" +\n Math.round(bound01(this._r, 255) * 100) +\n \"%, \" +\n Math.round(bound01(this._g, 255) * 100) +\n \"%, \" +\n Math.round(bound01(this._b, 255) * 100) +\n \"%, \" +\n this._roundA +\n \")\";\n },\n toName: function () {\n if (this._a === 0) {\n return \"transparent\";\n }\n\n if (this._a < 1) {\n return false;\n }\n\n return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;\n },\n toFilter: function (secondColor) {\n var hex8String = \"#\" + rgbaToArgbHex(this._r, this._g, this._b, this._a);\n var secondHex8String = hex8String;\n var gradientType = this._gradientType ? \"GradientType = 1, \" : \"\";\n\n if (secondColor) {\n var s = tinycolor(secondColor);\n secondHex8String = \"#\" + rgbaToArgbHex(s._r, s._g, s._b, s._a);\n }\n\n return (\n \"progid:DXImageTransform.Microsoft.gradient(\" +\n gradientType +\n \"startColorstr=\" +\n hex8String +\n \",endColorstr=\" +\n secondHex8String +\n \")\"\n );\n },\n toString: function (format) {\n var formatSet = !!format;\n format = format || this._format;\n\n var formattedString = false;\n var hasAlpha = this._a < 1 && this._a >= 0;\n var needsAlphaFormat =\n !formatSet &&\n hasAlpha &&\n (format === \"hex\" ||\n format === \"hex6\" ||\n format === \"hex3\" ||\n format === \"hex4\" ||\n format === \"hex8\" ||\n format === \"name\");\n\n if (needsAlphaFormat) {\n // Special case for \"transparent\", all other non-alpha formats\n // will return rgba when there is transparency.\n if (format === \"name\" && this._a === 0) {\n return this.toName();\n }\n return this.toRgbString();\n }\n if (format === \"rgb\") {\n formattedString = this.toRgbString();\n }\n if (format === \"prgb\") {\n formattedString = this.toPercentageRgbString();\n }\n if (format === \"hex\" || format === \"hex6\") {\n formattedString = this.toHexString();\n }\n if (format === \"hex3\") {\n formattedString = this.toHexString(true);\n }\n if (format === \"hex4\") {\n formattedString = this.toHex8String(true);\n }\n if (format === \"hex8\") {\n formattedString = this.toHex8String();\n }\n if (format === \"name\") {\n formattedString = this.toName();\n }\n if (format === \"hsl\") {\n formattedString = this.toHslString();\n }\n if (format === \"hsv\") {\n formattedString = this.toHsvString();\n }\n\n return formattedString || this.toHexString();\n },\n clone: function () {\n return tinycolor(this.toString());\n },\n\n _applyModification: function (fn, args) {\n var color = fn.apply(null, [this].concat([].slice.call(args)));\n this._r = color._r;\n this._g = color._g;\n this._b = color._b;\n this.setAlpha(color._a);\n return this;\n },\n lighten: function () {\n return this._applyModification(lighten, arguments);\n },\n brighten: function () {\n return this._applyModification(brighten, arguments);\n },\n darken: function () {\n return this._applyModification(darken, arguments);\n },\n desaturate: function () {\n return this._applyModification(desaturate, arguments);\n },\n saturate: function () {\n return this._applyModification(saturate, arguments);\n },\n greyscale: function () {\n return this._applyModification(greyscale, arguments);\n },\n spin: function () {\n return this._applyModification(spin, arguments);\n },\n\n _applyCombination: function (fn, args) {\n return fn.apply(null, [this].concat([].slice.call(args)));\n },\n analogous: function () {\n return this._applyCombination(analogous, arguments);\n },\n complement: function () {\n return this._applyCombination(complement, arguments);\n },\n monochromatic: function () {\n return this._applyCombination(monochromatic, arguments);\n },\n splitcomplement: function () {\n return this._applyCombination(splitcomplement, arguments);\n },\n // Disabled until https://github.com/bgrins/TinyColor/issues/254\n // polyad: function (number) {\n // return this._applyCombination(polyad, [number]);\n // },\n triad: function () {\n return this._applyCombination(polyad, [3]);\n },\n tetrad: function () {\n return this._applyCombination(polyad, [4]);\n },\n};\n\n// If input is an object, force 1 into \"1.0\" to handle ratios properly\n// String input requires \"1.0\" as input, so 1 will be treated as 1\ntinycolor.fromRatio = function (color, opts) {\n if (typeof color == \"object\") {\n var newColor = {};\n for (var i in color) {\n if (color.hasOwnProperty(i)) {\n if (i === \"a\") {\n newColor[i] = color[i];\n } else {\n newColor[i] = convertToPercentage(color[i]);\n }\n }\n }\n color = newColor;\n }\n\n return tinycolor(color, opts);\n};\n\n// Given a string or object, convert that input to RGB\n// Possible string inputs:\n//\n// \"red\"\n// \"#f00\" or \"f00\"\n// \"#ff0000\" or \"ff0000\"\n// \"#ff000000\" or \"ff000000\"\n// \"rgb 255 0 0\" or \"rgb (255, 0, 0)\"\n// \"rgb 1.0 0 0\" or \"rgb (1, 0, 0)\"\n// \"rgba (255, 0, 0, 1)\" or \"rgba 255, 0, 0, 1\"\n// \"rgba (1.0, 0, 0, 1)\" or \"rgba 1.0, 0, 0, 1\"\n// \"hsl(0, 100%, 50%)\" or \"hsl 0 100% 50%\"\n// \"hsla(0, 100%, 50%, 1)\" or \"hsla 0 100% 50%, 1\"\n// \"hsv(0, 100%, 100%)\" or \"hsv 0 100% 100%\"\n//\nfunction inputToRGB(color) {\n var rgb = { r: 0, g: 0, b: 0 };\n var a = 1;\n var s = null;\n var v = null;\n var l = null;\n var ok = false;\n var format = false;\n\n if (typeof color == \"string\") {\n color = stringInputToObject(color);\n }\n\n if (typeof color == \"object\") {\n if (\n isValidCSSUnit(color.r) &&\n isValidCSSUnit(color.g) &&\n isValidCSSUnit(color.b)\n ) {\n rgb = rgbToRgb(color.r, color.g, color.b);\n ok = true;\n format = String(color.r).substr(-1) === \"%\" ? \"prgb\" : \"rgb\";\n } else if (\n isValidCSSUnit(color.h) &&\n isValidCSSUnit(color.s) &&\n isValidCSSUnit(color.v)\n ) {\n s = convertToPercentage(color.s);\n v = convertToPercentage(color.v);\n rgb = hsvToRgb(color.h, s, v);\n ok = true;\n format = \"hsv\";\n } else if (\n isValidCSSUnit(color.h) &&\n isValidCSSUnit(color.s) &&\n isValidCSSUnit(color.l)\n ) {\n s = convertToPercentage(color.s);\n l = convertToPercentage(color.l);\n rgb = hslToRgb(color.h, s, l);\n ok = true;\n format = \"hsl\";\n }\n\n if (color.hasOwnProperty(\"a\")) {\n a = color.a;\n }\n }\n\n a = boundAlpha(a);\n\n return {\n ok: ok,\n format: color.format || format,\n r: Math.min(255, Math.max(rgb.r, 0)),\n g: Math.min(255, Math.max(rgb.g, 0)),\n b: Math.min(255, Math.max(rgb.b, 0)),\n a: a,\n };\n}\n\n// Conversion Functions\n// --------------------\n\n// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:\n// \n\n// `rgbToRgb`\n// Handle bounds / percentage checking to conform to CSS color spec\n// \n// *Assumes:* r, g, b in [0, 255] or [0, 1]\n// *Returns:* { r, g, b } in [0, 255]\nfunction rgbToRgb(r, g, b) {\n return {\n r: bound01(r, 255) * 255,\n g: bound01(g, 255) * 255,\n b: bound01(b, 255) * 255,\n };\n}\n\n// `rgbToHsl`\n// Converts an RGB color value to HSL.\n// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]\n// *Returns:* { h, s, l } in [0,1]\nfunction rgbToHsl(r, g, b) {\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n\n var max = Math.max(r, g, b),\n min = Math.min(r, g, b);\n var h,\n s,\n l = (max + min) / 2;\n\n if (max == min) {\n h = s = 0; // achromatic\n } else {\n var d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n }\n\n h /= 6;\n }\n\n return { h: h, s: s, l: l };\n}\n\n// `hslToRgb`\n// Converts an HSL color value to RGB.\n// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]\n// *Returns:* { r, g, b } in the set [0, 255]\nfunction hslToRgb(h, s, l) {\n var r, g, b;\n\n h = bound01(h, 360);\n s = bound01(s, 100);\n l = bound01(l, 100);\n\n function hue2rgb(p, q, t) {\n if (t < 0) t += 1;\n if (t > 1) t -= 1;\n if (t < 1 / 6) return p + (q - p) * 6 * t;\n if (t < 1 / 2) return q;\n if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n }\n\n if (s === 0) {\n r = g = b = l; // achromatic\n } else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1 / 3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1 / 3);\n }\n\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n\n// `rgbToHsv`\n// Converts an RGB color value to HSV\n// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]\n// *Returns:* { h, s, v } in [0,1]\nfunction rgbToHsv(r, g, b) {\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n\n var max = Math.max(r, g, b),\n min = Math.min(r, g, b);\n var h,\n s,\n v = max;\n\n var d = max - min;\n s = max === 0 ? 0 : d / max;\n\n if (max == min) {\n h = 0; // achromatic\n } else {\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n }\n h /= 6;\n }\n return { h: h, s: s, v: v };\n}\n\n// `hsvToRgb`\n// Converts an HSV color value to RGB.\n// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]\n// *Returns:* { r, g, b } in the set [0, 255]\nfunction hsvToRgb(h, s, v) {\n h = bound01(h, 360) * 6;\n s = bound01(s, 100);\n v = bound01(v, 100);\n\n var i = Math.floor(h),\n f = h - i,\n p = v * (1 - s),\n q = v * (1 - f * s),\n t = v * (1 - (1 - f) * s),\n mod = i % 6,\n r = [v, q, p, p, t, v][mod],\n g = [t, v, v, q, p, p][mod],\n b = [p, p, t, v, v, q][mod];\n\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n\n// `rgbToHex`\n// Converts an RGB color to hex\n// Assumes r, g, and b are contained in the set [0, 255]\n// Returns a 3 or 6 character hex\nfunction rgbToHex(r, g, b, allow3Char) {\n var hex = [\n pad2(Math.round(r).toString(16)),\n pad2(Math.round(g).toString(16)),\n pad2(Math.round(b).toString(16)),\n ];\n\n // Return a 3 character hex if possible\n if (\n allow3Char &&\n hex[0].charAt(0) == hex[0].charAt(1) &&\n hex[1].charAt(0) == hex[1].charAt(1) &&\n hex[2].charAt(0) == hex[2].charAt(1)\n ) {\n return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);\n }\n\n return hex.join(\"\");\n}\n\n// `rgbaToHex`\n// Converts an RGBA color plus alpha transparency to hex\n// Assumes r, g, b are contained in the set [0, 255] and\n// a in [0, 1]. Returns a 4 or 8 character rgba hex\nfunction rgbaToHex(r, g, b, a, allow4Char) {\n var hex = [\n pad2(Math.round(r).toString(16)),\n pad2(Math.round(g).toString(16)),\n pad2(Math.round(b).toString(16)),\n pad2(convertDecimalToHex(a)),\n ];\n\n // Return a 4 character hex if possible\n if (\n allow4Char &&\n hex[0].charAt(0) == hex[0].charAt(1) &&\n hex[1].charAt(0) == hex[1].charAt(1) &&\n hex[2].charAt(0) == hex[2].charAt(1) &&\n hex[3].charAt(0) == hex[3].charAt(1)\n ) {\n return (\n hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0)\n );\n }\n\n return hex.join(\"\");\n}\n\n// `rgbaToArgbHex`\n// Converts an RGBA color to an ARGB Hex8 string\n// Rarely used, but required for \"toFilter()\"\nfunction rgbaToArgbHex(r, g, b, a) {\n var hex = [\n pad2(convertDecimalToHex(a)),\n pad2(Math.round(r).toString(16)),\n pad2(Math.round(g).toString(16)),\n pad2(Math.round(b).toString(16)),\n ];\n\n return hex.join(\"\");\n}\n\n// `equals`\n// Can be called with any tinycolor input\ntinycolor.equals = function (color1, color2) {\n if (!color1 || !color2) return false;\n return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();\n};\n\ntinycolor.random = function () {\n return tinycolor.fromRatio({\n r: Math.random(),\n g: Math.random(),\n b: Math.random(),\n });\n};\n\n// Modification Functions\n// ----------------------\n// Thanks to less.js for some of the basics here\n// \n\nfunction desaturate(color, amount) {\n amount = amount === 0 ? 0 : amount || 10;\n var hsl = tinycolor(color).toHsl();\n hsl.s -= amount / 100;\n hsl.s = clamp01(hsl.s);\n return tinycolor(hsl);\n}\n\nfunction saturate(color, amount) {\n amount = amount === 0 ? 0 : amount || 10;\n var hsl = tinycolor(color).toHsl();\n hsl.s += amount / 100;\n hsl.s = clamp01(hsl.s);\n return tinycolor(hsl);\n}\n\nfunction greyscale(color) {\n return tinycolor(color).desaturate(100);\n}\n\nfunction lighten(color, amount) {\n amount = amount === 0 ? 0 : amount || 10;\n var hsl = tinycolor(color).toHsl();\n hsl.l += amount / 100;\n hsl.l = clamp01(hsl.l);\n return tinycolor(hsl);\n}\n\nfunction brighten(color, amount) {\n amount = amount === 0 ? 0 : amount || 10;\n var rgb = tinycolor(color).toRgb();\n rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));\n rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));\n rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));\n return tinycolor(rgb);\n}\n\nfunction darken(color, amount) {\n amount = amount === 0 ? 0 : amount || 10;\n var hsl = tinycolor(color).toHsl();\n hsl.l -= amount / 100;\n hsl.l = clamp01(hsl.l);\n return tinycolor(hsl);\n}\n\n// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.\n// Values outside of this range will be wrapped into this range.\nfunction spin(color, amount) {\n var hsl = tinycolor(color).toHsl();\n var hue = (hsl.h + amount) % 360;\n hsl.h = hue < 0 ? 360 + hue : hue;\n return tinycolor(hsl);\n}\n\n// Combination Functions\n// ---------------------\n// Thanks to jQuery xColor for some of the ideas behind these\n// \n\nfunction complement(color) {\n var hsl = tinycolor(color).toHsl();\n hsl.h = (hsl.h + 180) % 360;\n return tinycolor(hsl);\n}\n\nfunction polyad(color, number) {\n if (isNaN(number) || number <= 0) {\n throw new Error(\"Argument to polyad must be a positive number\");\n }\n var hsl = tinycolor(color).toHsl();\n var result = [tinycolor(color)];\n var step = 360 / number;\n for (var i = 1; i < number; i++) {\n result.push(tinycolor({ h: (hsl.h + i * step) % 360, s: hsl.s, l: hsl.l }));\n }\n\n return result;\n}\n\nfunction splitcomplement(color) {\n var hsl = tinycolor(color).toHsl();\n var h = hsl.h;\n return [\n tinycolor(color),\n tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l }),\n tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l }),\n ];\n}\n\nfunction analogous(color, results, slices) {\n results = results || 6;\n slices = slices || 30;\n\n var hsl = tinycolor(color).toHsl();\n var part = 360 / slices;\n var ret = [tinycolor(color)];\n\n for (hsl.h = (hsl.h - ((part * results) >> 1) + 720) % 360; --results; ) {\n hsl.h = (hsl.h + part) % 360;\n ret.push(tinycolor(hsl));\n }\n return ret;\n}\n\nfunction monochromatic(color, results) {\n results = results || 6;\n var hsv = tinycolor(color).toHsv();\n var h = hsv.h,\n s = hsv.s,\n v = hsv.v;\n var ret = [];\n var modification = 1 / results;\n\n while (results--) {\n ret.push(tinycolor({ h: h, s: s, v: v }));\n v = (v + modification) % 1;\n }\n\n return ret;\n}\n\n// Utility Functions\n// ---------------------\n\ntinycolor.mix = function (color1, color2, amount) {\n amount = amount === 0 ? 0 : amount || 50;\n\n var rgb1 = tinycolor(color1).toRgb();\n var rgb2 = tinycolor(color2).toRgb();\n\n var p = amount / 100;\n\n var rgba = {\n r: (rgb2.r - rgb1.r) * p + rgb1.r,\n g: (rgb2.g - rgb1.g) * p + rgb1.g,\n b: (rgb2.b - rgb1.b) * p + rgb1.b,\n a: (rgb2.a - rgb1.a) * p + rgb1.a,\n };\n\n return tinycolor(rgba);\n};\n\n// Readability Functions\n// ---------------------\n// false\n// tinycolor.isReadable(\"#000\", \"#111\",{level:\"AA\",size:\"large\"}) => false\ntinycolor.isReadable = function (color1, color2, wcag2) {\n var readability = tinycolor.readability(color1, color2);\n var wcag2Parms, out;\n\n out = false;\n\n wcag2Parms = validateWCAG2Parms(wcag2);\n switch (wcag2Parms.level + wcag2Parms.size) {\n case \"AAsmall\":\n case \"AAAlarge\":\n out = readability >= 4.5;\n break;\n case \"AAlarge\":\n out = readability >= 3;\n break;\n case \"AAAsmall\":\n out = readability >= 7;\n break;\n }\n return out;\n};\n\n// `mostReadable`\n// Given a base color and a list of possible foreground or background\n// colors for that base, returns the most readable color.\n// Optionally returns Black or White if the most readable color is unreadable.\n// *Example*\n// tinycolor.mostReadable(tinycolor.mostReadable(\"#123\", [\"#124\", \"#125\"],{includeFallbackColors:false}).toHexString(); // \"#112255\"\n// tinycolor.mostReadable(tinycolor.mostReadable(\"#123\", [\"#124\", \"#125\"],{includeFallbackColors:true}).toHexString(); // \"#ffffff\"\n// tinycolor.mostReadable(\"#a8015a\", [\"#faf3f3\"],{includeFallbackColors:true,level:\"AAA\",size:\"large\"}).toHexString(); // \"#faf3f3\"\n// tinycolor.mostReadable(\"#a8015a\", [\"#faf3f3\"],{includeFallbackColors:true,level:\"AAA\",size:\"small\"}).toHexString(); // \"#ffffff\"\ntinycolor.mostReadable = function (baseColor, colorList, args) {\n var bestColor = null;\n var bestScore = 0;\n var readability;\n var includeFallbackColors, level, size;\n args = args || {};\n includeFallbackColors = args.includeFallbackColors;\n level = args.level;\n size = args.size;\n\n for (var i = 0; i < colorList.length; i++) {\n readability = tinycolor.readability(baseColor, colorList[i]);\n if (readability > bestScore) {\n bestScore = readability;\n bestColor = tinycolor(colorList[i]);\n }\n }\n\n if (\n tinycolor.isReadable(baseColor, bestColor, {\n level: level,\n size: size,\n }) ||\n !includeFallbackColors\n ) {\n return bestColor;\n } else {\n args.includeFallbackColors = false;\n return tinycolor.mostReadable(baseColor, [\"#fff\", \"#000\"], args);\n }\n};\n\n// Big List of Colors\n// ------------------\n// \nvar names = (tinycolor.names = {\n aliceblue: \"f0f8ff\",\n antiquewhite: \"faebd7\",\n aqua: \"0ff\",\n aquamarine: \"7fffd4\",\n azure: \"f0ffff\",\n beige: \"f5f5dc\",\n bisque: \"ffe4c4\",\n black: \"000\",\n blanchedalmond: \"ffebcd\",\n blue: \"00f\",\n blueviolet: \"8a2be2\",\n brown: \"a52a2a\",\n burlywood: \"deb887\",\n burntsienna: \"ea7e5d\",\n cadetblue: \"5f9ea0\",\n chartreuse: \"7fff00\",\n chocolate: \"d2691e\",\n coral: \"ff7f50\",\n cornflowerblue: \"6495ed\",\n cornsilk: \"fff8dc\",\n crimson: \"dc143c\",\n cyan: \"0ff\",\n darkblue: \"00008b\",\n darkcyan: \"008b8b\",\n darkgoldenrod: \"b8860b\",\n darkgray: \"a9a9a9\",\n darkgreen: \"006400\",\n darkgrey: \"a9a9a9\",\n darkkhaki: \"bdb76b\",\n darkmagenta: \"8b008b\",\n darkolivegreen: \"556b2f\",\n darkorange: \"ff8c00\",\n darkorchid: \"9932cc\",\n darkred: \"8b0000\",\n darksalmon: \"e9967a\",\n darkseagreen: \"8fbc8f\",\n darkslateblue: \"483d8b\",\n darkslategray: \"2f4f4f\",\n darkslategrey: \"2f4f4f\",\n darkturquoise: \"00ced1\",\n darkviolet: \"9400d3\",\n deeppink: \"ff1493\",\n deepskyblue: \"00bfff\",\n dimgray: \"696969\",\n dimgrey: \"696969\",\n dodgerblue: \"1e90ff\",\n firebrick: \"b22222\",\n floralwhite: \"fffaf0\",\n forestgreen: \"228b22\",\n fuchsia: \"f0f\",\n gainsboro: \"dcdcdc\",\n ghostwhite: \"f8f8ff\",\n gold: \"ffd700\",\n goldenrod: \"daa520\",\n gray: \"808080\",\n green: \"008000\",\n greenyellow: \"adff2f\",\n grey: \"808080\",\n honeydew: \"f0fff0\",\n hotpink: \"ff69b4\",\n indianred: \"cd5c5c\",\n indigo: \"4b0082\",\n ivory: \"fffff0\",\n khaki: \"f0e68c\",\n lavender: \"e6e6fa\",\n lavenderblush: \"fff0f5\",\n lawngreen: \"7cfc00\",\n lemonchiffon: \"fffacd\",\n lightblue: \"add8e6\",\n lightcoral: \"f08080\",\n lightcyan: \"e0ffff\",\n lightgoldenrodyellow: \"fafad2\",\n lightgray: \"d3d3d3\",\n lightgreen: \"90ee90\",\n lightgrey: \"d3d3d3\",\n lightpink: \"ffb6c1\",\n lightsalmon: \"ffa07a\",\n lightseagreen: \"20b2aa\",\n lightskyblue: \"87cefa\",\n lightslategray: \"789\",\n lightslategrey: \"789\",\n lightsteelblue: \"b0c4de\",\n lightyellow: \"ffffe0\",\n lime: \"0f0\",\n limegreen: \"32cd32\",\n linen: \"faf0e6\",\n magenta: \"f0f\",\n maroon: \"800000\",\n mediumaquamarine: \"66cdaa\",\n mediumblue: \"0000cd\",\n mediumorchid: \"ba55d3\",\n mediumpurple: \"9370db\",\n mediumseagreen: \"3cb371\",\n mediumslateblue: \"7b68ee\",\n mediumspringgreen: \"00fa9a\",\n mediumturquoise: \"48d1cc\",\n mediumvioletred: \"c71585\",\n midnightblue: \"191970\",\n mintcream: \"f5fffa\",\n mistyrose: \"ffe4e1\",\n moccasin: \"ffe4b5\",\n navajowhite: \"ffdead\",\n navy: \"000080\",\n oldlace: \"fdf5e6\",\n olive: \"808000\",\n olivedrab: \"6b8e23\",\n orange: \"ffa500\",\n orangered: \"ff4500\",\n orchid: \"da70d6\",\n palegoldenrod: \"eee8aa\",\n palegreen: \"98fb98\",\n paleturquoise: \"afeeee\",\n palevioletred: \"db7093\",\n papayawhip: \"ffefd5\",\n peachpuff: \"ffdab9\",\n peru: \"cd853f\",\n pink: \"ffc0cb\",\n plum: \"dda0dd\",\n powderblue: \"b0e0e6\",\n purple: \"800080\",\n rebeccapurple: \"663399\",\n red: \"f00\",\n rosybrown: \"bc8f8f\",\n royalblue: \"4169e1\",\n saddlebrown: \"8b4513\",\n salmon: \"fa8072\",\n sandybrown: \"f4a460\",\n seagreen: \"2e8b57\",\n seashell: \"fff5ee\",\n sienna: \"a0522d\",\n silver: \"c0c0c0\",\n skyblue: \"87ceeb\",\n slateblue: \"6a5acd\",\n slategray: \"708090\",\n slategrey: \"708090\",\n snow: \"fffafa\",\n springgreen: \"00ff7f\",\n steelblue: \"4682b4\",\n tan: \"d2b48c\",\n teal: \"008080\",\n thistle: \"d8bfd8\",\n tomato: \"ff6347\",\n turquoise: \"40e0d0\",\n violet: \"ee82ee\",\n wheat: \"f5deb3\",\n white: \"fff\",\n whitesmoke: \"f5f5f5\",\n yellow: \"ff0\",\n yellowgreen: \"9acd32\",\n});\n\n// Make it easy to access colors via `hexNames[hex]`\nvar hexNames = (tinycolor.hexNames = flip(names));\n\n// Utilities\n// ---------\n\n// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`\nfunction flip(o) {\n var flipped = {};\n for (var i in o) {\n if (o.hasOwnProperty(i)) {\n flipped[o[i]] = i;\n }\n }\n return flipped;\n}\n\n// Return a valid alpha value [0,1] with all invalid values being set to 1\nfunction boundAlpha(a) {\n a = parseFloat(a);\n\n if (isNaN(a) || a < 0 || a > 1) {\n a = 1;\n }\n\n return a;\n}\n\n// Take input from [0, n] and return it as [0, 1]\nfunction bound01(n, max) {\n if (isOnePointZero(n)) n = \"100%\";\n\n var processPercent = isPercentage(n);\n n = Math.min(max, Math.max(0, parseFloat(n)));\n\n // Automatically convert percentage into number\n if (processPercent) {\n n = parseInt(n * max, 10) / 100;\n }\n\n // Handle floating point rounding errors\n if (Math.abs(n - max) < 0.000001) {\n return 1;\n }\n\n // Convert into [0, 1] range if it isn't already\n return (n % max) / parseFloat(max);\n}\n\n// Force a number between 0 and 1\nfunction clamp01(val) {\n return Math.min(1, Math.max(0, val));\n}\n\n// Parse a base-16 hex value into a base-10 integer\nfunction parseIntFromHex(val) {\n return parseInt(val, 16);\n}\n\n// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1\n// \nfunction isOnePointZero(n) {\n return typeof n == \"string\" && n.indexOf(\".\") != -1 && parseFloat(n) === 1;\n}\n\n// Check to see if string passed in is a percentage\nfunction isPercentage(n) {\n return typeof n === \"string\" && n.indexOf(\"%\") != -1;\n}\n\n// Force a hex value to have 2 characters\nfunction pad2(c) {\n return c.length == 1 ? \"0\" + c : \"\" + c;\n}\n\n// Replace a decimal with it's percentage value\nfunction convertToPercentage(n) {\n if (n <= 1) {\n n = n * 100 + \"%\";\n }\n\n return n;\n}\n\n// Converts a decimal to a hex value\nfunction convertDecimalToHex(d) {\n return Math.round(parseFloat(d) * 255).toString(16);\n}\n// Converts a hex value to a decimal\nfunction convertHexToDecimal(h) {\n return parseIntFromHex(h) / 255;\n}\n\nvar matchers = (function () {\n // \n var CSS_INTEGER = \"[-\\\\+]?\\\\d+%?\";\n\n // \n var CSS_NUMBER = \"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\";\n\n // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.\n var CSS_UNIT = \"(?:\" + CSS_NUMBER + \")|(?:\" + CSS_INTEGER + \")\";\n\n // Actual matching.\n // Parentheses and commas are optional, but not required.\n // Whitespace can take the place of commas or opening paren\n var PERMISSIVE_MATCH3 =\n \"[\\\\s|\\\\(]+(\" +\n CSS_UNIT +\n \")[,|\\\\s]+(\" +\n CSS_UNIT +\n \")[,|\\\\s]+(\" +\n CSS_UNIT +\n \")\\\\s*\\\\)?\";\n var PERMISSIVE_MATCH4 =\n \"[\\\\s|\\\\(]+(\" +\n CSS_UNIT +\n \")[,|\\\\s]+(\" +\n CSS_UNIT +\n \")[,|\\\\s]+(\" +\n CSS_UNIT +\n \")[,|\\\\s]+(\" +\n CSS_UNIT +\n \")\\\\s*\\\\)?\";\n\n return {\n CSS_UNIT: new RegExp(CSS_UNIT),\n rgb: new RegExp(\"rgb\" + PERMISSIVE_MATCH3),\n rgba: new RegExp(\"rgba\" + PERMISSIVE_MATCH4),\n hsl: new RegExp(\"hsl\" + PERMISSIVE_MATCH3),\n hsla: new RegExp(\"hsla\" + PERMISSIVE_MATCH4),\n hsv: new RegExp(\"hsv\" + PERMISSIVE_MATCH3),\n hsva: new RegExp(\"hsva\" + PERMISSIVE_MATCH4),\n hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n };\n})();\n\n// `isValidCSSUnit`\n// Take in a single string / number and check to see if it looks like a CSS unit\n// (see `matchers` above for definition).\nfunction isValidCSSUnit(color) {\n return !!matchers.CSS_UNIT.exec(color);\n}\n\n// `stringInputToObject`\n// Permissive string parsing. Take in a number of formats, and output an object\n// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`\nfunction stringInputToObject(color) {\n color = color.replace(trimLeft, \"\").replace(trimRight, \"\").toLowerCase();\n var named = false;\n if (names[color]) {\n color = names[color];\n named = true;\n } else if (color == \"transparent\") {\n return { r: 0, g: 0, b: 0, a: 0, format: \"name\" };\n }\n\n // Try to match string input using regular expressions.\n // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]\n // Just return an object and let the conversion functions handle that.\n // This way the result will be the same whether the tinycolor is initialized with string or object.\n var match;\n if ((match = matchers.rgb.exec(color))) {\n return { r: match[1], g: match[2], b: match[3] };\n }\n if ((match = matchers.rgba.exec(color))) {\n return { r: match[1], g: match[2], b: match[3], a: match[4] };\n }\n if ((match = matchers.hsl.exec(color))) {\n return { h: match[1], s: match[2], l: match[3] };\n }\n if ((match = matchers.hsla.exec(color))) {\n return { h: match[1], s: match[2], l: match[3], a: match[4] };\n }\n if ((match = matchers.hsv.exec(color))) {\n return { h: match[1], s: match[2], v: match[3] };\n }\n if ((match = matchers.hsva.exec(color))) {\n return { h: match[1], s: match[2], v: match[3], a: match[4] };\n }\n if ((match = matchers.hex8.exec(color))) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n a: convertHexToDecimal(match[4]),\n format: named ? \"name\" : \"hex8\",\n };\n }\n if ((match = matchers.hex6.exec(color))) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n format: named ? \"name\" : \"hex\",\n };\n }\n if ((match = matchers.hex4.exec(color))) {\n return {\n r: parseIntFromHex(match[1] + \"\" + match[1]),\n g: parseIntFromHex(match[2] + \"\" + match[2]),\n b: parseIntFromHex(match[3] + \"\" + match[3]),\n a: convertHexToDecimal(match[4] + \"\" + match[4]),\n format: named ? \"name\" : \"hex8\",\n };\n }\n if ((match = matchers.hex3.exec(color))) {\n return {\n r: parseIntFromHex(match[1] + \"\" + match[1]),\n g: parseIntFromHex(match[2] + \"\" + match[2]),\n b: parseIntFromHex(match[3] + \"\" + match[3]),\n format: named ? \"name\" : \"hex\",\n };\n }\n\n return false;\n}\n\nfunction validateWCAG2Parms(parms) {\n // return valid WCAG2 parms for isReadable.\n // If input parms are invalid, return {\"level\":\"AA\", \"size\":\"small\"}\n var level, size;\n parms = parms || { level: \"AA\", size: \"small\" };\n level = (parms.level || \"AA\").toUpperCase();\n size = (parms.size || \"small\").toLowerCase();\n if (level !== \"AA\" && level !== \"AAA\") {\n level = \"AA\";\n }\n if (size !== \"small\" && size !== \"large\") {\n size = \"small\";\n }\n return { level: level, size: size };\n}\n\n\n\n\n/***/ })\n\n/******/ });\n/************************************************************************/\n/******/ // The module cache\n/******/ var __webpack_module_cache__ = {};\n/******/ \n/******/ // The require function\n/******/ function __webpack_require__(moduleId) {\n/******/ \t// Check if module is in cache\n/******/ \tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \tif (cachedModule !== undefined) {\n/******/ \t\treturn cachedModule.exports;\n/******/ \t}\n/******/ \t// Create a new module (and put it into the cache)\n/******/ \tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t// no module.id needed\n/******/ \t\t// no module.loaded needed\n/******/ \t\texports: {}\n/******/ \t};\n/******/ \n/******/ \t// Execute the module function\n/******/ \t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \n/******/ \t// Return the exports of the module\n/******/ \treturn module.exports;\n/******/ }\n/******/ \n/************************************************************************/\n/******/ /* webpack/runtime/define property getters */\n/******/ (() => {\n/******/ \t// define getter functions for harmony exports\n/******/ \t__webpack_require__.d = (exports, definition) => {\n/******/ \t\tfor(var key in definition) {\n/******/ \t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/hasOwnProperty shorthand */\n/******/ (() => {\n/******/ \t__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\n/******/ })();\n/******/ \n/************************************************************************/\nvar __webpack_exports__ = {};\n// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.\n(() => {\n/*!**********************!*\\\n !*** ./src/index.ts ***!\n \\**********************/\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Spectrum)\n/* harmony export */ });\n/* harmony import */ var tinycolor2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tinycolor2 */ \"./node_modules/tinycolor2/esm/tinycolor.js\");\n/* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dom */ \"./src/dom.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \"./src/utils.ts\");\n\n\n\nconst defaultOpts = {\n // Callbacks\n beforeShow: noop,\n move: noop,\n change: noop,\n show: noop,\n hide: noop,\n // Options\n color: '',\n type: 'component',\n showInput: false,\n allowEmpty: true,\n showButtons: true,\n clickoutFiresChange: true,\n showInitial: false,\n showPalette: true,\n showPaletteOnly: false,\n hideAfterPaletteSelect: false,\n togglePaletteOnly: false,\n showSelectionPalette: true,\n localStorageKey: '',\n appendTo: 'body',\n maxSelectionSize: 8,\n locale: 'en',\n cancelText: 'cancel',\n chooseText: 'choose',\n togglePaletteMoreText: 'more',\n togglePaletteLessText: 'less',\n clearText: 'Clear Color Selection',\n noColorSelectedText: 'No Color Selected',\n preferredFormat: 'name',\n containerClassName: '',\n replacerClassName: '',\n showAlpha: true,\n theme: 'sp-light',\n palette: [['#000000', '#444444', '#5b5b5b', '#999999', '#bcbcbc', '#eeeeee', '#f3f6f4', '#ffffff'], ['#f44336', '#744700', '#ce7e00', '#8fce00', '#2986cc', '#16537e', '#6a329f', '#c90076'], ['#f4cccc', '#fce5cd', '#fff2cc', '#d9ead3', '#d0e0e3', '#cfe2f3', '#d9d2e9', '#ead1dc'], ['#ea9999', '#f9cb9c', '#ffe599', '#b6d7a8', '#a2c4c9', '#9fc5e8', '#b4a7d6', '#d5a6bd'], ['#e06666', '#f6b26b', '#ffd966', '#93c47d', '#76a5af', '#6fa8dc', '#8e7cc3', '#c27ba0'], ['#cc0000', '#e69138', '#f1c232', '#6aa84f', '#45818e', '#3d85c6', '#674ea7', '#a64d79'], ['#990000', '#b45f06', '#bf9000', '#38761d', '#134f5c', '#0b5394', '#351c75', '#741b47'], ['#660000', '#783f04', '#7f6000', '#274e13', '#0c343d', '#073763', '#20124d', '#4c1130']],\n selectionPalette: [],\n disabled: false,\n offset: null\n },\n spectrums = [],\n replaceInput = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.html)(['
', '
', '
', '
'].join('')),\n markup = function () {\n return ['
', '
', '
', '
', '', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '
', '', '
', '
', '
', '', '', '
', '
', '
'].join('');\n }();\nfunction paletteTemplate(p, color, className, opts) {\n const html = [];\n for (let i = 0; i < p.length; i++) {\n const current = p[i];\n if (current) {\n const tiny = (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(current);\n let c = tiny.toHsl().l < 0.5 ? 'sp-thumb-el sp-thumb-dark' : 'sp-thumb-el sp-thumb-light';\n c += tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"].equals(color, current) ? ' sp-thumb-active' : '';\n const formattedString = tiny.toString(opts.preferredFormat || 'rgb');\n const swatchStyle = 'background-color:' + tiny.toRgbString();\n html.push('');\n } else {\n html.push('');\n }\n }\n return '
' + html.join('') + '
';\n}\nfunction hideAll() {\n for (let i = 0; i < spectrums.length; i++) {\n if (spectrums[i]) {\n spectrums[i].hide();\n }\n }\n}\nfunction instanceOptions(options, element) {\n // Clone first\n options = Object.assign({}, options);\n options.locale = options.locale || window.navigator.language;\n if (typeof options.locale === 'string') {\n if (options.locale) {\n // handle locale like \"zh-TW\" to \"zh-tw\"\n // handle locale like \"fr-FR\" to \"fr\"\n let parts = options.locale.split('-').map(p => p.toLowerCase());\n if (parts[0] === parts[1]) {\n parts = [parts[0]];\n }\n options.locale = parts.join('-');\n }\n if (options.locale !== 'en' && Spectrum.localization[options.locale]) {\n options = Object.assign({}, options, Spectrum.localization[options.locale]);\n }\n } else {\n options = Object.assign({}, options, options.locale);\n }\n const opts = Object.assign({}, defaultOpts, element.dataset, options);\n opts.callbacks = {\n 'move': bind(opts.move, element),\n 'change': bind(opts.change, element),\n 'show': bind(opts.show, element),\n 'hide': bind(opts.hide, element),\n 'beforeShow': bind(opts.beforeShow, element)\n };\n return opts;\n}\nfunction spectrum(element, options) {\n let opts = instanceOptions(options, element),\n type = opts.type,\n flat = type === 'flat',\n showSelectionPalette = opts.showSelectionPalette,\n localStorageKey = opts.localStorageKey,\n theme = opts.theme,\n callbacks = opts.callbacks,\n resize = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.throttle)(reflow, 10),\n visible = false,\n isDragging = false,\n dragWidth = 0,\n dragHeight = 0,\n dragHelperHeight = 0,\n slideHeight = 0,\n slideWidth = 0,\n alphaWidth = 0,\n alphaSlideHelperWidth = 0,\n slideHelperHeight = 0,\n currentHue = 0,\n currentSaturation = 0,\n currentValue = 0,\n currentAlpha = 1,\n palette = [],\n paletteArray = [],\n paletteLookup = {},\n selectionPalette = opts.selectionPalette.slice(0),\n maxSelectionSize = opts.maxSelectionSize,\n draggingClass = 'sp-dragging',\n abortNextInputChange = false,\n shiftMovementDirection = null;\n const doc = element.ownerDocument;\n const container = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.html)(markup, doc);\n container.classList.add(theme);\n doc.body.appendChild(container);\n let body = doc.body,\n boundElement = element,\n disabled = false,\n pickerContainer = container.querySelector('.sp-picker-container'),\n dragger = container.querySelector('.sp-color'),\n dragHelper = container.querySelector('.sp-dragger'),\n slider = container.querySelector('.sp-hue'),\n slideHelper = container.querySelector('.sp-slider'),\n alphaSliderInner = container.querySelector('.sp-alpha-inner'),\n alphaSlider = container.querySelector('.sp-alpha'),\n alphaSlideHelper = container.querySelector('.sp-alpha-handle'),\n textInput = container.querySelector('.sp-input'),\n paletteContainer = container.querySelector('.sp-palette'),\n initialColorContainer = container.querySelector('.sp-initial'),\n cancelButton = container.querySelector('.sp-cancel'),\n clearButton = container.querySelector('.sp-clear'),\n chooseButton = container.querySelector('.sp-choose'),\n toggleButton = container.querySelector('.sp-palette-toggle'),\n isInput = boundElement.nodeName === 'INPUT',\n isInputTypeColor = isInput && boundElement.getAttribute('type') === 'color',\n shouldReplace = isInput && (type === 'color' || isInputTypeColor),\n replacer = shouldReplace ? (() => {\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.addClass)(replaceInput, theme);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.addClass)(replaceInput, opts.replacerClassName);\n return replaceInput;\n })() : null,\n offsetElement = shouldReplace ? replacer : boundElement,\n previewElement = replacer === null || replacer === void 0 ? void 0 : replacer.querySelector('.sp-preview-inner'),\n initialColor = opts.color || isInput && boundElement.value,\n colorOnShow = '',\n currentPreferredFormat = opts.preferredFormat,\n clickoutFiresChange = !opts.showButtons || opts.clickoutFiresChange,\n isEmpty = !initialColor,\n allowEmpty = opts.allowEmpty;\n // Element to be updated with the input color. Populated in initialize method\n let originalInputContainer;\n let colorizeElement;\n let colorizeElementInitialColor;\n let colorizeElementInitialBackground;\n //If there is a label for this element, when clicked on, show the colour picker\n const thisId = boundElement.getAttribute('id') || '';\n if (thisId !== undefined && thisId.length > 0) {\n const labels = document.querySelectorAll(`label[for=\"${thisId}\"]`);\n labels.forEach(label => {\n label.addEventListener('click', function (e) {\n e.preventDefault();\n show();\n return false;\n });\n });\n }\n function applyOptions() {\n if (opts.showPaletteOnly) {\n opts.showPalette = true;\n }\n if (toggleButton) {\n toggleButton.textContent = opts.showPaletteOnly ? opts.togglePaletteMoreText : opts.togglePaletteLessText;\n }\n if (opts.palette) {\n palette = opts.palette.slice(0);\n paletteArray = Array.isArray(palette[0]) ? palette : [palette];\n paletteLookup = {};\n for (let i = 0; i < paletteArray.length; i++) {\n for (let j = 0; j < paletteArray[i].length; j++) {\n const rgb = (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(paletteArray[i][j]).toRgbString();\n paletteLookup[rgb] = true;\n }\n }\n // if showPaletteOnly and didn't set initialcolor\n // set initialcolor to first palette\n if (opts.showPaletteOnly && !initialColor) {\n initialColor = palette[0][0] === '' ? palette[0][0] : Object.keys(paletteLookup)[0];\n }\n }\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toggleClass)(container, 'sp-flat', flat);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toggleClass)(container, 'sp-input-disabled', !opts.showInput);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toggleClass)(container, 'sp-alpha-enabled', opts.showAlpha);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toggleClass)(container, 'sp-clear-enabled', allowEmpty);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toggleClass)(container, 'sp-buttons-disabled', !opts.showButtons);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toggleClass)(container, 'sp-palette-buttons-disabled', !opts.togglePaletteOnly);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toggleClass)(container, 'sp-palette-disabled', !opts.showPalette);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toggleClass)(container, 'sp-palette-only', opts.showPaletteOnly);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toggleClass)(container, 'sp-initial-disabled', !opts.showInitial);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.addClass)(container, opts.containerClassName);\n reflow();\n }\n function offsetElementStart(e) {\n if (!disabled) {\n show();\n }\n e.stopPropagation();\n const target = e.target;\n if (!target.matches('input')) {\n e.preventDefault();\n }\n }\n function initialize() {\n var _a;\n applyOptions();\n const inputStyle = window.getComputedStyle(boundElement);\n originalInputContainer = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.html)('');\n ['margin'].forEach(function (cssProp) {\n originalInputContainer.style[cssProp] = inputStyle[cssProp] || null;\n });\n // inline-flex by default, switching to flex if needed\n if (inputStyle.display === 'block') {\n originalInputContainer.style.display = 'flex';\n }\n if (shouldReplace) {\n (0,_dom__WEBPACK_IMPORTED_MODULE_2__.insertAfter)(boundElement, replacer);\n boundElement.style.display = 'none';\n } else if (type === 'text') {\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.addClass)(originalInputContainer, 'sp-colorize-container');\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.addClass)(boundElement, 'spectrum sp-colorize');\n (0,_dom__WEBPACK_IMPORTED_MODULE_2__.wrap)(boundElement, originalInputContainer);\n } else if (type === 'component') {\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.addClass)(boundElement, 'spectrum');\n (0,_dom__WEBPACK_IMPORTED_MODULE_2__.wrap)(boundElement, originalInputContainer);\n const addOn = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.html)(['
', '
', '
'].join(''));\n addOn.style.width = boundElement.offsetHeight + 'px';\n addOn.style.borderRadius = inputStyle.borderRadius;\n addOn.style.border = inputStyle.border;\n boundElement.classList.add('with-add-on');\n boundElement.before(addOn);\n }\n colorizeElement = (_a = boundElement.parentNode) === null || _a === void 0 ? void 0 : _a.querySelector('.sp-colorize');\n colorizeElementInitialColor = (colorizeElement === null || colorizeElement === void 0 ? void 0 : colorizeElement.style.color) || '';\n colorizeElementInitialBackground = (colorizeElement === null || colorizeElement === void 0 ? void 0 : colorizeElement.style.backgroundColor) || '';\n if (!allowEmpty) {\n clearButton.style.display = 'none';\n }\n if (flat) {\n boundElement.after(container);\n boundElement.style.display = 'none';\n } else {\n let appendTo = opts.appendTo === 'parent' ? boundElement.parentElement : opts.appendTo;\n if (!appendTo) {\n appendTo = document.body;\n }\n if (typeof appendTo !== 'string') {\n appendTo.append(container);\n }\n }\n updateSelectionPaletteFromStorage();\n offsetElement === null || offsetElement === void 0 ? void 0 : offsetElement.addEventListener('click', offsetElementStart);\n offsetElement === null || offsetElement === void 0 ? void 0 : offsetElement.addEventListener('touchstart', offsetElementStart);\n if (boundElement.matches(':disabled') || opts.disabled) {\n disable();\n }\n // Prevent clicks from bubbling up to document. This would cause it to be hidden.\n container.addEventListener('click', e => e.stopPropagation());\n // Handle user typed input\n [textInput, boundElement].forEach(function (input) {\n if (!('value' in input)) {\n return;\n }\n input.addEventListener('change', () => {\n setFromTextInput(input.value);\n });\n input.addEventListener('paste', () => {\n setTimeout(() => {\n setFromTextInput(input.value);\n }, 1);\n });\n input.addEventListener('keydown', e => {\n if (e.keyCode === 13) {\n setFromTextInput(input.value);\n if (input === boundElement) {\n hide();\n }\n }\n });\n });\n cancelButton.textContent = opts.cancelText;\n cancelButton.addEventListener('click', function (e) {\n e.stopPropagation();\n e.preventDefault();\n revert();\n hide();\n });\n clearButton.setAttribute('title', opts.clearText);\n clearButton.addEventListener('click', function (e) {\n e.stopPropagation();\n e.preventDefault();\n isEmpty = true;\n move();\n if (flat) {\n //for the flat style, this is a change event\n updateOriginalInput(true);\n }\n });\n chooseButton.textContent = opts.chooseText;\n chooseButton.addEventListener('click', e => {\n e.stopPropagation();\n e.preventDefault();\n // if (IE && textInput.matches(':focus')) {\n // textInput.dispatchEvent(new CustomEvent('change'));\n // }\n if (isValid()) {\n updateOriginalInput(true);\n hide();\n }\n });\n toggleButton.textContent = opts.showPaletteOnly ? opts.togglePaletteMoreText : opts.togglePaletteLessText;\n toggleButton.addEventListener('click', e => {\n e.stopPropagation();\n e.preventDefault();\n opts.showPaletteOnly = !opts.showPaletteOnly;\n // To make sure the Picker area is drawn on the right, next to the\n // Palette area (and not below the palette), first move the Palette\n // to the left to make space for the picker, plus 5px extra.\n // The 'applyOptions' function puts the whole container back into place\n // and takes care of the button-text and the sp-palette-only CSS class.\n if (!opts.showPaletteOnly && !flat) {\n container.style.left = '-=' + ((0,_dom__WEBPACK_IMPORTED_MODULE_2__.outerWidthWithMargin)(pickerContainer) + 5);\n }\n applyOptions();\n });\n draggable(alphaSlider, function (dragX, dragY, e) {\n currentAlpha = dragX / alphaWidth;\n isEmpty = false;\n if (e.shiftKey) {\n currentAlpha = Math.round(currentAlpha * 10) / 10;\n }\n move();\n }, dragStart, dragStop);\n draggable(slider, function (dragX, dragY) {\n currentHue = dragY / slideHeight;\n isEmpty = false;\n if (!opts.showAlpha) {\n currentAlpha = 1;\n }\n move();\n }, dragStart, dragStop);\n draggable(dragger, function (dragX, dragY, e) {\n // shift+drag should snap the movement to either the x or y axis.\n if (!e.shiftKey) {\n shiftMovementDirection = null;\n } else if (!shiftMovementDirection) {\n const oldDragX = currentSaturation * dragWidth;\n const oldDragY = dragHeight - currentValue * dragHeight;\n const furtherFromX = Math.abs(dragX - oldDragX) > Math.abs(dragY - oldDragY);\n shiftMovementDirection = furtherFromX ? 'x' : 'y';\n }\n const setSaturation = !shiftMovementDirection || shiftMovementDirection === 'x';\n const setValue = !shiftMovementDirection || shiftMovementDirection === 'y';\n if (setSaturation) {\n currentSaturation = dragX / dragWidth;\n }\n if (setValue) {\n currentValue = (dragHeight - dragY) / dragHeight;\n }\n isEmpty = false;\n if (!opts.showAlpha) {\n currentAlpha = 1;\n }\n move();\n }, dragStart, dragStop);\n if (!!initialColor) {\n set(initialColor);\n // In case color was black - update the preview UI and set the format\n // since the set function will not run (default color is black).\n updateUI();\n currentPreferredFormat = (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(initialColor).getFormat() || opts.preferredFormat;\n addColorToSelectionPalette(initialColor);\n } else if (initialColor === '') {\n set(initialColor);\n updateUI();\n } else {\n updateUI();\n }\n if (flat) {\n show();\n }\n function paletteElementClick(e) {\n var _a, _b;\n // @ts-ignore\n if (e.data && e.data.ignore) {\n const el = e.target.closest('.sp-thumb-el');\n set(((_a = el === null || el === void 0 ? void 0 : el.dataset) === null || _a === void 0 ? void 0 : _a.color) || '');\n move();\n } else {\n const el = e.target.closest('.sp-thumb-el');\n set(((_b = el === null || el === void 0 ? void 0 : el.dataset) === null || _b === void 0 ? void 0 : _b.color) || '');\n move();\n // If the picker is going to close immediately, a palette selection\n // is a change. Otherwise, it's a move only.\n if (opts.hideAfterPaletteSelect) {\n updateOriginalInput(true);\n hide();\n } else {\n updateOriginalInput();\n }\n }\n return false;\n }\n const paletteEvents = ['click', 'touchstart'];\n for (const paletteEvent of paletteEvents) {\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.eventDelegate)(paletteContainer, paletteEvent, '.sp-thumb-el', paletteElementClick);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.eventDelegate)(initialColorContainer, paletteEvent, '.sp-thumb-el:nth-child(1)', paletteElementClick, {\n ignore: true\n });\n }\n }\n function updateSelectionPaletteFromStorage() {\n if (localStorageKey) {\n // Migrate old palettes over to new format. May want to remove this eventually.\n try {\n const localStorage = window.localStorage;\n const oldPalette = localStorage[localStorageKey].split(',#');\n if (oldPalette.length > 1) {\n delete localStorage[localStorageKey];\n for (const c of oldPalette) {\n addColorToSelectionPalette(c);\n }\n }\n } catch (e) {}\n try {\n selectionPalette = window.localStorage[localStorageKey].split(';');\n } catch (e) {}\n }\n }\n function addColorToSelectionPalette(color) {\n if (showSelectionPalette) {\n const rgb = (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(color).toRgbString();\n if (!paletteLookup[rgb] && !selectionPalette.includes(rgb)) {\n selectionPalette.push(rgb);\n while (selectionPalette.length > maxSelectionSize) {\n selectionPalette.shift();\n }\n }\n if (localStorageKey) {\n try {\n window.localStorage[localStorageKey] = selectionPalette.join(';');\n } catch (e) {}\n }\n }\n }\n function getUniqueSelectionPalette() {\n var unique = [];\n if (opts.showPalette) {\n for (var i = 0; i < selectionPalette.length; i++) {\n var rgb = (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(selectionPalette[i]).toRgbString();\n if (!paletteLookup[rgb]) {\n unique.push(selectionPalette[i]);\n }\n }\n }\n return unique.reverse().slice(0, opts.maxSelectionSize);\n }\n function drawPalette() {\n const currentColor = get();\n const html = paletteArray.map((palette, i) => {\n return paletteTemplate(palette, currentColor, 'sp-palette-row sp-palette-row-' + i, opts);\n });\n updateSelectionPaletteFromStorage();\n if (selectionPalette) {\n html.push(paletteTemplate(getUniqueSelectionPalette(), currentColor, 'sp-palette-row sp-palette-row-selection', opts));\n }\n paletteContainer.innerHTML = html.join('');\n }\n function drawInitial() {\n if (opts.showInitial) {\n const initial = colorOnShow;\n const current = get();\n initialColorContainer.innerHTML = paletteTemplate([initial, current], current, 'sp-palette-row-initial', opts);\n }\n }\n function dragStart() {\n if (dragHeight <= 0 || dragWidth <= 0 || slideHeight <= 0) {\n reflow();\n }\n isDragging = true;\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.addClass)(container, draggingClass);\n shiftMovementDirection = null;\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.emit)(boundElement, 'dragstart', {\n color: get()\n });\n }\n function dragStop() {\n isDragging = false;\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.removeClass)(container, draggingClass);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.emit)(boundElement, 'dragstop', {\n color: get()\n });\n }\n function setFromTextInput(value) {\n if (abortNextInputChange) {\n abortNextInputChange = false;\n return;\n }\n if ((value === null || value === '') && allowEmpty) {\n set('');\n move();\n updateOriginalInput();\n } else {\n const tiny = (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(value);\n if (tiny.isValid()) {\n set(tiny);\n move();\n updateOriginalInput();\n } else {\n textInput.classList.add('sp-validation-error');\n }\n }\n }\n function toggle() {\n if (visible) {\n hide();\n } else {\n show();\n }\n }\n function show() {\n if (visible) {\n reflow();\n return;\n }\n const event = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.emit)(boundElement, 'beforeShow', {\n color: get()\n });\n if (callbacks.beforeShow(event) === false || event.defaultPrevented) {\n return;\n }\n hideAll();\n visible = true;\n doc.addEventListener('keydown', onkeydown);\n doc.addEventListener('click', clickout);\n window.addEventListener('resize', resize);\n replacer === null || replacer === void 0 ? void 0 : replacer.classList.add('sp-active');\n container.classList.remove('sp-hidden');\n reflow();\n updateUI();\n colorOnShow = get();\n drawInitial();\n const e = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.emit)(boundElement, 'show', {\n color: colorOnShow\n });\n callbacks.show(e);\n }\n function onkeydown(e) {\n // Close on ESC\n if (e.keyCode === 27) {\n hide();\n }\n }\n function clickout(e) {\n // Return on right click.\n if (e.button == 2) {\n return;\n }\n // If a drag event was happening during the mouseup, don't hide\n // on click.\n if (isDragging) {\n return;\n }\n if (clickoutFiresChange) {\n updateOriginalInput(true);\n } else {\n revert();\n }\n hide();\n }\n function hide() {\n // Return if hiding is unnecessary\n if (!visible || flat) {\n return;\n }\n visible = false;\n doc.removeEventListener('keydown', onkeydown);\n doc.removeEventListener('click', clickout);\n window.removeEventListener('resize', resize);\n replacer === null || replacer === void 0 ? void 0 : replacer.classList.remove('sp-active');\n container.classList.add('sp-hidden');\n const event = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.emit)(boundElement, 'hide', {\n color: get()\n });\n callbacks.hide(event);\n }\n function revert() {\n set(colorOnShow, true);\n updateOriginalInput(true);\n }\n function set(color) {\n let ignoreFormatChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"].equals(color, get())) {\n // Update UI just in case a validation error needs\n // to be cleared.\n updateUI();\n return;\n }\n var newColor, newHsv;\n if ((!color || color === undefined) && allowEmpty) {\n isEmpty = true;\n } else {\n isEmpty = false;\n newColor = (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(color);\n newHsv = newColor.toHsv();\n currentHue = newHsv.h % 360 / 360;\n currentSaturation = newHsv.s;\n currentValue = newHsv.v;\n currentAlpha = newHsv.a;\n }\n updateUI();\n if (newColor && newColor.isValid() && !ignoreFormatChange) {\n currentPreferredFormat = opts.preferredFormat || newColor.getFormat();\n }\n }\n function get() {\n let opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (allowEmpty && isEmpty) {\n return '';\n }\n return tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"].fromRatio({\n h: currentHue,\n s: currentSaturation,\n v: currentValue,\n a: Math.round(currentAlpha * 1000) / 1000\n // @ts-ignore\n }, {\n format: opts.format || currentPreferredFormat\n });\n }\n function isValid() {\n return !textInput.classList.contains('sp-validation-error');\n }\n function move() {\n updateUI();\n const event = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.emit)(boundElement, 'move', {\n color: get()\n });\n callbacks.move(event);\n }\n function updateUI() {\n textInput.classList.remove('sp-validation-error');\n updateHelperLocations();\n // Update dragger background color (gradients take care of saturation and value).\n const flatColor = tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"].fromRatio({\n h: currentHue,\n s: 1,\n v: 1\n });\n dragger.style.backgroundColor = flatColor.toHexString();\n // Get a format that alpha will be included in (hex and names ignore alpha)\n let format = currentPreferredFormat;\n if (currentAlpha < 1 && !(currentAlpha === 0 && format === 'name')) {\n if (format === 'hex' || format === 'hex3' || format === 'hex6' || format === 'name') {\n format = 'rgb';\n }\n }\n let realColor = get({\n format\n }),\n displayColor = '';\n //reset background info for preview element\n if (previewElement) {\n previewElement.classList.remove('sp-clear-display');\n previewElement.style.backgroundColor = 'transparent';\n }\n if (realColor === '') {\n // Update the replaced elements background with icon indicating no color selection\n previewElement === null || previewElement === void 0 ? void 0 : previewElement.classList.add('sp-clear-display');\n } else {\n const realHex = realColor.toHexString();\n const realRgb = realColor.toRgbString();\n if (previewElement) {\n // Update the replaced elements background color (with actual selected color)\n if (realColor.getAlpha() === 1) {\n previewElement.style.backgroundColor = realRgb;\n } else {\n previewElement.style.backgroundColor = 'transparent';\n previewElement.style.filter = realColor.toFilter();\n }\n }\n if (opts.showAlpha) {\n const rgb = realColor.toRgb();\n rgb.a = 0;\n const realAlpha = (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(rgb).toRgbString();\n alphaSliderInner.style.background = `linear-gradient(to right, ${realAlpha}, ${realHex})`;\n }\n displayColor = realColor.toString(format);\n }\n // Update the text entry input as it changes happen\n if (opts.showInput) {\n textInput.value = displayColor;\n }\n boundElement.value = displayColor;\n if (opts.type == 'text' || opts.type == 'component') {\n const color = realColor;\n if (color && colorizeElement) {\n const textColor = color.isLight() || color.getAlpha() < 0.4 ? 'black' : 'white';\n colorizeElement.style.backgroundColor = color.toRgbString();\n colorizeElement.style.color = textColor;\n } else if (colorizeElement) {\n colorizeElement.style.backgroundColor = colorizeElementInitialBackground;\n colorizeElement.style.color = colorizeElementInitialColor;\n }\n }\n if (opts.showPalette) {\n drawPalette();\n }\n drawInitial();\n }\n function updateHelperLocations() {\n if (allowEmpty && isEmpty) {\n //if selected color is empty, hide the helpers\n alphaSlideHelper.style.display = 'none';\n slideHelper.style.display = 'none';\n dragHelper.style.display = 'none';\n } else {\n //make sure helpers are visible\n alphaSlideHelper.style.display = 'block';\n slideHelper.style.display = 'block';\n dragHelper.style.display = 'block';\n // Where to show the little circle in that displays your current selected color\n let dragX = currentSaturation * dragWidth;\n let dragY = dragHeight - currentValue * dragHeight;\n dragX = Math.max(-dragHelperHeight, Math.min(dragWidth - dragHelperHeight, dragX - dragHelperHeight));\n dragY = Math.max(-dragHelperHeight, Math.min(dragHeight - dragHelperHeight, dragY - dragHelperHeight));\n dragHelper.style.top = dragY + 'px';\n dragHelper.style.left = dragX + 'px';\n const alphaX = currentAlpha * alphaWidth;\n alphaSlideHelper.style.left = alphaX - alphaSlideHelperWidth / 2 + 'px';\n // Where to show the bar that displays your current selected hue\n const slideY = currentHue * slideHeight;\n slideHelper.style.top = slideY - slideHelperHeight + 'px';\n }\n }\n function updateOriginalInput() {\n let fireCallback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n let color = get(),\n displayColor = '',\n hasChanged = !tinycolor2__WEBPACK_IMPORTED_MODULE_0__[\"default\"].equals(color, colorOnShow);\n if (color) {\n displayColor = color.toString(currentPreferredFormat);\n // Update the selection palette with the current color\n addColorToSelectionPalette(color);\n }\n if (fireCallback && hasChanged) {\n // we trigger the change event or input, but the input change event is also binded\n // to some spectrum processing, that we do no need\n abortNextInputChange = true;\n const event = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.emit)(boundElement, 'change', {\n color\n });\n callbacks.change(event);\n }\n }\n function reflow() {\n if (!visible) {\n return; // Calculations would be useless and wouldn't be reliable anyways\n }\n\n dragWidth = dragger.getBoundingClientRect().width;\n dragHeight = dragger.getBoundingClientRect().height;\n dragHelperHeight = dragHelper.getBoundingClientRect().height;\n slideWidth = slider.getBoundingClientRect().width;\n slideHeight = slider.getBoundingClientRect().height;\n slideHelperHeight = slideHelper.getBoundingClientRect().height;\n alphaWidth = alphaSlider.getBoundingClientRect().width;\n alphaSlideHelperWidth = alphaSlideHelper.getBoundingClientRect().width;\n if (!flat) {\n container.style.position = 'absolute';\n if (opts.offset) {\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.setElementOffset)(container, opts.offset);\n } else {\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.setElementOffset)(container, getOffset(container, offsetElement));\n }\n }\n updateHelperLocations();\n if (opts.showPalette) {\n drawPalette();\n }\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.emit)(boundElement, 'reflow');\n }\n function destroy() {\n delete boundElement.style.display;\n boundElement.classList.remove('spectrum', 'with-add-on', 'sp-colorize');\n offsetElement.removeEventListener('click', offsetElementStart);\n offsetElement.removeEventListener('touchstart', offsetElementStart);\n container.remove();\n replacer === null || replacer === void 0 ? void 0 : replacer.remove();\n if (colorizeElement) {\n colorizeElement.style.backgroundColor = colorizeElementInitialBackground;\n colorizeElement.style.color = colorizeElementInitialColor;\n }\n const originalInputContainer = boundElement.closest('.sp-original-input-container');\n if (originalInputContainer) {\n originalInputContainer.after(boundElement);\n originalInputContainer.remove();\n }\n spectrums[spect.id] = null;\n }\n function option() {\n let optionName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n let optionValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n if (optionName === undefined) {\n return Object.assign({}, opts);\n }\n if (optionValue === undefined) {\n return opts[optionName];\n }\n opts[optionName] = optionValue;\n if (optionName === 'preferredFormat') {\n currentPreferredFormat = opts.preferredFormat;\n }\n applyOptions();\n }\n function enable() {\n disabled = false;\n boundElement.disabled = false;\n offsetElement.classList.remove('sp-disabled');\n }\n function disable() {\n hide();\n disabled = true;\n boundElement.disabled = true;\n offsetElement.classList.add('sp-disabled');\n }\n function setOffset(coord) {\n opts.offset = coord;\n reflow();\n }\n initialize();\n let spect = {\n id: 0,\n show: show,\n hide: hide,\n toggle: toggle,\n reflow: reflow,\n option: option,\n enable: enable,\n disable: disable,\n offset: setOffset,\n set: function (c) {\n set(c);\n updateOriginalInput();\n },\n get: get,\n destroy: destroy,\n container: container\n };\n spect.id = spectrums.push(spect) - 1;\n return spect;\n}\n/**\n * checkOffset - get the offset below/above and left/right element depending on screen position\n * Thanks https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.datepicker.js\n */\nfunction getOffset(picker, input) {\n const extraY = 0;\n const dpWidth = picker.offsetWidth;\n const dpHeight = picker.offsetHeight;\n const inputHeight = input.offsetHeight;\n const doc = picker.ownerDocument;\n const docElem = doc.documentElement;\n const viewWidth = docElem.clientWidth + window.pageXOffset;\n const viewHeight = docElem.clientHeight + window.pageYOffset;\n const offset = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.getElementOffset)(input);\n let offsetLeft = offset.left;\n let offsetTop = offset.top;\n offsetTop += inputHeight;\n offsetLeft -= Math.min(offsetLeft, offsetLeft + dpWidth > viewWidth && viewWidth > dpWidth ? Math.abs(offsetLeft + dpWidth - viewWidth) : 0);\n offsetTop -= Math.min(offsetTop, offsetTop + dpHeight > viewHeight && viewHeight > dpHeight ? Math.abs(dpHeight + inputHeight - extraY) : extraY);\n return {\n top: offsetTop,\n // bottom: offset.bottom,\n left: offsetLeft\n // right: offset.right,\n // width: offset.width,\n // height: offset.height\n };\n}\n/**\n * noop - do nothing\n */\nfunction noop() {}\n/**\n * Create a function bound to a given object\n * Thanks to underscore.js\n */\nfunction bind(func, obj) {\n const slice = Array.prototype.slice;\n const args = slice.call(arguments, 2);\n return function () {\n return func.apply(obj, args.concat(slice.call(arguments)));\n };\n}\n/**\n * Lightweight drag helper. Handles containment within the element, so that\n * when dragging, the x is within [0,element.width] and y is within [0,element.height]\n */\nfunction draggable(element, onmove, onstart, onstop) {\n onmove = onmove || noop;\n onstart = onstart || noop;\n onstop = onstop || noop;\n const doc = document;\n let dragging = false;\n let offset = {};\n let maxHeight = 0;\n let maxWidth = 0;\n const hasTouch = ('ontouchstart' in window);\n const duringDragEvents = {};\n duringDragEvents['selectstart'] = prevent;\n duringDragEvents['dragstart'] = prevent;\n duringDragEvents['touchmove'] = move;\n duringDragEvents['mousemove'] = move;\n duringDragEvents['touchend'] = stop;\n duringDragEvents['mouseup'] = stop;\n function prevent(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n }\n if (e.preventDefault) {\n e.preventDefault();\n }\n e.returnValue = false;\n }\n function move(e) {\n if (dragging) {\n const t0 = 'touches' in e && e.touches[0];\n const pageX = t0 && t0.pageX || e.pageX;\n const pageY = t0 && t0.pageY || e.pageY;\n const dragX = Math.max(0, Math.min(pageX - offset.left, maxWidth));\n const dragY = Math.max(0, Math.min(pageY - offset.top, maxHeight));\n if (hasTouch) {\n // Stop scrolling in iOS\n prevent(e);\n }\n onmove.apply(element, [dragX, dragY, e]);\n }\n }\n function start(e) {\n const rightclick = e.which ? e.which == 3 : e.button === 2;\n if (!rightclick && !dragging) {\n if (onstart.apply(element, arguments) !== false) {\n dragging = true;\n maxHeight = element.getBoundingClientRect().height;\n maxWidth = element.getBoundingClientRect().width;\n offset = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.getElementOffset)(element);\n for (const eventName in duringDragEvents) {\n doc.addEventListener(eventName, duringDragEvents[eventName]);\n }\n doc.body.classList.add('sp-dragging');\n move(e);\n prevent(e);\n }\n }\n }\n function stop() {\n if (dragging) {\n for (const eventName in duringDragEvents) {\n doc.removeEventListener(eventName, duringDragEvents[eventName]);\n }\n doc.body.classList.remove('sp-dragging');\n // Wait a tick before notifying observers to allow the click event\n // to fire in Chrome.\n setTimeout(function () {\n onstop.apply(element, arguments);\n }, 0);\n }\n dragging = false;\n }\n element.addEventListener('touchstart', start);\n element.addEventListener('mousedown', start);\n}\nclass Spectrum {\n static create(selector) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const ele = this.wrap(selector);\n if (!ele) {\n let msg = 'Unable to find element';\n if (typeof selector === 'string') {\n msg += ' - Selector: ' + selector;\n }\n throw Error(msg);\n }\n return new this(ele, options);\n }\n static createIfExists(selector) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const ele = this.wrap(selector);\n if (!ele) {\n return null;\n }\n return new this(ele, options);\n }\n static getInstance(selector) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const ele = this.wrap(selector);\n // @ts-ignore\n return ele.__spectrum = ele.__spectrum || this.createIfExists(ele, options);\n }\n static hasInstance(selector) {\n const ele = this.wrap(selector);\n // @ts-ignore\n return ele.__spectrum !== undefined;\n }\n static createMultiple(selector) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const instances = [];\n this.wrapList(selector).forEach(ele => {\n instances.push(this.create(ele, options));\n });\n return instances;\n }\n static getInstanceMultiple(selector) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const instances = [];\n this.wrapList(selector).forEach(ele => {\n instances.push(this.getInstance(ele, options));\n });\n return instances;\n }\n static wrap(selector) {\n if (typeof selector === 'string') {\n return document.querySelector(selector);\n } else if (selector.jquery) {\n return selector[0];\n } else {\n return selector;\n }\n }\n static wrapList(selector) {\n if (typeof selector === 'string') {\n return Array.from(document.querySelectorAll(selector));\n } else if (selector.jquery) {\n return selector.toArray();\n } else {\n return Array.from(selector);\n }\n }\n static locale(locale, localization) {\n this.localization[locale] = localization;\n return this;\n }\n static registerJQuery($) {\n registerJQueryPlugin($);\n }\n constructor(ele) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n this.eventListeners = {};\n this.spectrum = spectrum(ele, options);\n this.ele = ele;\n this.options = options;\n }\n get id() {\n return this.spectrum.id;\n }\n get container() {\n // @ts-ignore\n if (!this.ele.__spectrum) {\n return this.ele;\n }\n return this.spectrum.container;\n }\n show() {\n this.spectrum.show();\n return this;\n }\n hide() {\n this.spectrum.hide();\n return this;\n }\n toggle() {\n this.spectrum.toggle();\n return this;\n }\n reflow() {\n this.spectrum.reflow();\n return this;\n }\n option() {\n let optionName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n let optionValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n return this.spectrum.option(optionName, optionValue);\n }\n enable() {\n this.spectrum.enable();\n return this;\n }\n disable() {\n this.spectrum.disable();\n return this;\n }\n offset(coord) {\n this.spectrum.offset(coord);\n return this;\n }\n set(color) {\n let ignoreFormatChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n this.spectrum.set(color, ignoreFormatChange);\n return this;\n }\n get() {\n return this.spectrum.get();\n }\n destroy() {\n this.destroyInnerObject();\n // @ts-ignore\n delete this.ele.__spectrum;\n return this;\n }\n rebuild(options) {\n this.destroyInnerObject();\n if (options) {\n this.options = Object.assign({}, this.options, options);\n }\n this.spectrum = spectrum(this.ele, this.options);\n return this;\n }\n destroyInnerObject() {\n this.spectrum.destroy();\n this.off();\n }\n listeners(eventName) {\n return this.eventListeners[eventName] || [];\n }\n on(eventName, listener) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n this.ele.addEventListener(eventName, listener, options);\n this.eventListeners[eventName] = this.eventListeners[eventName] || [];\n this.eventListeners[eventName].push(listener);\n return () => {\n this.off(eventName, listener);\n };\n }\n once(eventName, listener) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n const cancel = this.on(eventName, e => {\n listener(e);\n cancel();\n }, options);\n return cancel;\n }\n off() {\n let eventName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n let listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n if (eventName && !this.eventListeners[eventName]) {\n return;\n }\n if (!eventName) {\n this.eventListeners = {};\n return;\n }\n if (listener) {\n this.eventListeners[eventName] = this.eventListeners[eventName].filter(l => l === listener);\n this.ele.removeEventListener(eventName, listener);\n } else {\n for (const listener of this.eventListeners[eventName]) {\n this.ele.removeEventListener(eventName, listener);\n }\n this.eventListeners[eventName] = [];\n }\n }\n}\nSpectrum.defaultOptions = defaultOpts;\nSpectrum.draggable = draggable;\nSpectrum.localization = {};\nSpectrum.palette = [];\n// @ts-ignore\nconst jQuery = window.jQuery;\nif (jQuery) {\n registerJQueryPlugin(jQuery);\n}\nfunction registerJQueryPlugin($) {\n // @ts-ignore\n $.fn.spectrum = function () {\n let action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n if (typeof action === \"string\") {\n let returnValue = this;\n this.each(function () {\n const spect = this.__spectrum;\n if (spect) {\n const method = spect[action];\n if (!method) {\n throw new Error(\"Spectrum: no such method: '\" + action + \"'\");\n }\n if (action === \"get\") {\n returnValue = spect.get();\n } else if (action === \"container\") {\n returnValue = $(spect.container);\n } else if (action === \"option\") {\n returnValue = spect.option.apply(spect, args);\n } else if (action === \"destroy\") {\n spect.destroy();\n } else {\n spect[action](...args);\n }\n }\n });\n return returnValue;\n }\n // Initializing a new instance of spectrum\n return this.each(function () {\n const options = $.extend({}, $(this).data(), action);\n // Infer default type from input params and deprecated options\n if (!$(this).is('input')) {\n options.type = 'color';\n } else if (options.type == \"flat\") {\n options.type = 'flat';\n } else if ($(this).attr('type') == 'color') {\n options.type = 'color';\n } else {\n options.type = options.type || 'component';\n }\n if (Spectrum.hasInstance(this)) {\n const sp = Spectrum.getInstance(this);\n sp.options = options;\n sp.rebuild();\n } else {\n Spectrum.getInstance(this, options);\n }\n });\n };\n $.fn.spectrum.load = true;\n $.fn.spectrum.loadOpts = {};\n $.fn.spectrum.draggable = draggable;\n $.fn.spectrum.defaults = defaultOpts;\n $.fn.spectrum.localization = Spectrum.localization;\n $.fn.spectrum.palette = [];\n $.fn.spectrum.processNativeColorInputs = function () {\n const colorInputs = $(\"input[type=color]\");\n if (colorInputs.length) {\n colorInputs.spectrum({\n preferredFormat: \"hex6\"\n });\n }\n };\n}\n})();\n\nvar __webpack_exports__default = __webpack_exports__[\"default\"];\nexport { __webpack_exports__default as default };\n\n//# sourceMappingURL=spectrum.es.js.map","\n\n\n\n\n","import { render } from \"./ColorInput.vue?vue&type=template&id=15ce10b7\"\nimport script from \"./ColorInput.vue?vue&type=script&lang=js\"\nexport * from \"./ColorInput.vue?vue&type=script&lang=js\"\n\nimport \"./ColorInput.vue?vue&type=style&index=0&id=15ce10b7&lang=css\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./RwdGroup.vue?vue&type=template&id=03baa07e\"\nimport script from \"./RwdGroup.vue?vue&type=script&lang=js\"\nexport * from \"./RwdGroup.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SingleImage.vue?vue&type=template&id=7eef6952\"\nimport script from \"./SingleImage.vue?vue&type=script&lang=js\"\nexport * from \"./SingleImage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SliderInput.vue?vue&type=template&id=2e650534\"\nimport script from \"./SliderInput.vue?vue&type=script&lang=js\"\nexport * from \"./SliderInput.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TitleOptions.vue?vue&type=template&id=6b3dad3e\"\nimport script from \"./TitleOptions.vue?vue&type=script&lang=js\"\nexport * from \"./TitleOptions.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","// style-loader: Adds some css to the DOM by adding a \n\n\n","\n\n\n\n\n","import { render } from \"./BsModal.vue?vue&type=template&id=17a30b42\"\nimport script from \"./BsModal.vue?vue&type=script&lang=js\"\nexport * from \"./BsModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./CssEditor.vue?vue&type=template&id=21640638\"\nimport script from \"./CssEditor.vue?vue&type=script&lang=js\"\nexport * from \"./CssEditor.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nexport default arrayMap;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nexport default isSymbol;\n","import Symbol from './_Symbol.js';\nimport arrayMap from './_arrayMap.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default baseToString;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nexport default trimmedEndIndex;\n","import trimmedEndIndex from './_trimmedEndIndex.js';\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nexport default baseTrim;\n","import baseTrim from './_baseTrim.js';\nimport isObject from './isObject.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nexport default toNumber;\n","import toNumber from './toNumber.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nexport default toFinite;\n","import baseClamp from './_baseClamp.js';\nimport baseToString from './_baseToString.js';\nimport toInteger from './toInteger.js';\nimport toString from './toString.js';\n\n/**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\nfunction startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n}\n\nexport default startsWith;\n","import baseToString from './_baseToString.js';\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nexport default toString;\n","/**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\nfunction baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n}\n\nexport default baseClamp;\n","import toFinite from './toFinite.js';\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nexport default toInteger;\n","/**\n * Part of earth project.\n *\n * @copyright Copyright (C) 2021 __ORGANIZATION__.\n * @license __LICENSE__\n */\n\nimport { startsWith, each } from 'lodash-es';\n\nexport function bindSaveButton() {\n const $btn = document.querySelector('[data-task=save]');\n\n let className = '';\n $btn?.addEventListener('click', () => {\n const $icon = $btn.querySelector('[data-spinner]');\n\n $btn.disabled = true;\n className = $icon.getAttribute('class');\n $icon.setAttribute('class', 'spinner-border spinner-border-sm');\n\n savePage()\n .then((res) => {\n console.log('Save Success!');\n return res;\n })\n .finally(() => {\n $btn.disabled = false;\n $icon.setAttribute('class', className);\n });\n });\n}\n\nlet previousContent = '';\n\nexport function savePage() {\n const contentInput = document.querySelector('#input-item-content');\n\n if (previousContent !== '' && previousContent === contentInput.value) {\n console.warn('[Page] Content not change, there was an error or you didn\\'t edit anything.');\n }\n\n return u.$http.post(\n '@page_ajax/savePage',\n new FormData(document.querySelector('#admin-form'))\n )\n .then((res) => {\n console.log('儲存完成');\n\n if (res.data.data.redirect) {\n location.href = res.data.data.redirect;\n }\n\n return res;\n })\n .finally(() => {\n previousContent = contentInput.value;\n })\n .catch((e) => {\n console.error(e);\n swal(e.message, '', 'warning');\n });\n}\n\nexport function addTextToClipboard(text) {\n if (typeof text !== 'string') {\n text = JSON.stringify(text, null, 4);\n }\n\n const el = document.createElement('textarea');\n el.value = text;\n\n document.body.appendChild(el);\n\n el.select();\n\n document.execCommand('copy');\n\n document.body.removeChild(el);\n}\n\n/**\n * @returns {Promise}\n */\nexport function readClipboard() {\n return navigator.clipboard.readText()\n .catch(err => {\n console.error('Failed to read clipboard contents: ', err);\n });\n}\n\nexport function duplicateAddon(item, child = false) {\n const newItem = JSON.parse(JSON.stringify(item));\n\n if (item.type === 'row' || startsWith(item.id, 'row-')) {\n if (child) {\n console.log('Cannot add row to child column.');\n return null;\n }\n\n newItem.id = 'row-' + u.uid();\n newItem.type = 'row';\n } else {\n newItem.id = 'addon-' + u.uid();\n }\n\n return newItem;\n}\n\nexport function toFormData(data) {\n const form = new FormData();\n\n each(data, (v, k) => {\n form.append(k, v);\n });\n\n return form;\n}\n\nexport function emptyRow() {\n return {\n id: 'row-' + u.uid(),\n disabled: false,\n options: {\n label: '',\n title: {\n text: '',\n element: 'h3',\n font_size: {\n lg: '',\n md: '',\n xs: ''\n },\n font_weight: '',\n color: '',\n margin_top: {\n lg: '',\n md: '',\n xs: ''\n },\n margin_bottom: {\n lg: '',\n md: '',\n xs: ''\n }\n },\n subtitle: {\n text: '',\n font_size: {\n lg: '',\n md: '',\n xs: ''\n }\n },\n html_id: '',\n html_class: '',\n html_css: '',\n title_align: 'center',\n valign: 'top',\n justify_content: 'start',\n fluid_row: false,\n no_gutter: false,\n padding: {\n lg: '',\n md: '',\n xs: ''\n },\n margin: {\n lg: '',\n md: '',\n xs: ''\n },\n display: {\n xs: 'd-block',\n md: 'd-md-block',\n lg: 'd-lg-block'\n },\n text_color: '',\n background: {\n type: 'none',\n color: '',\n image: {\n url: '',\n overlay: '',\n repeat: '',\n position: 'center center',\n attachment: 'inherit',\n size: 'cover'\n },\n gradient: {\n type: 'liner',\n angle: '',\n start_color: '',\n start_pos: '',\n end_color: '',\n end_pos: ''\n },\n video: {\n url: '',\n overlay: ''\n },\n parallax: false\n },\n animation: {\n name: '',\n duration: 300,\n delay: 0\n }\n },\n columns: [],\n };\n}\n\nexport function emptyColumn(child = false) {\n return {\n id: 'col-' + u.uid(),\n disabled: false,\n addons: [],\n options: {\n html_class: '',\n html_css: '',\n align: '',\n valign: 'top',\n padding: {\n xs: '',\n md: '',\n lg: '',\n },\n margin: {\n xs: '',\n md: '',\n lg: '',\n },\n text_color: '',\n width: {\n xs: '',\n md: '',\n lg: child ? 'col-lg-6' : 'col-lg-3',\n },\n display: {\n xs: 'd-block',\n md: 'd-md-block',\n lg: 'd-lg-block'\n },\n box_shadow: {\n enabled: 0,\n color: 'rgba(0, 0, 0, 1)',\n hoffset: 0,\n voffset: 0,\n blur: 0,\n spread: 0\n },\n border: {\n enabled: 0,\n width: {\n lg: 1,\n md: 1,\n xs: 1,\n },\n color: '',\n style: '',\n radius: {\n lg: 0,\n md: 0,\n xs: 0,\n }\n },\n background: {\n type: 'none',\n color: '',\n overlay: '',\n image: {\n url: '',\n repeat: '',\n position: 'center center',\n attachment: 'inherit',\n size: 'cover'\n },\n gradient: {\n type: 'liner',\n angle: '',\n start_color: '',\n start_pos: '',\n end_color: '',\n end_pos: ''\n },\n video: ''\n },\n animation: {\n name: '',\n duration: 300,\n delay: 0\n }\n }\n };\n}\n\nexport function addonBasicOptions() {\n return {\n html_class: '',\n html_css: '',\n label: '',\n title: {\n text: '',\n element: 'h3',\n font_size: {\n lg: '',\n md: '',\n xs: ''\n },\n font_weight: '',\n color: '',\n margin_top: {\n lg: '',\n md: '',\n xs: ''\n },\n margin_bottom: {\n lg: '',\n md: '',\n xs: ''\n }\n },\n align: '',\n // valign: 'top',\n padding: {\n xs: '',\n md: '',\n lg: '',\n },\n margin: {\n xs: '',\n md: '',\n lg: '',\n },\n text_color: '',\n display: {\n xs: 'd-block',\n md: 'd-md-block',\n lg: 'd-lg-block'\n },\n box_shadow: {\n enabled: 0,\n color: 'rgba(0, 0, 0, 1)',\n hoffset: 0,\n voffset: 0,\n blur: 0,\n spread: 0\n },\n border: {\n enabled: 0,\n width: {\n lg: 1,\n md: 1,\n xs: 1,\n },\n color: '',\n style: '',\n radius: {\n lg: 0,\n md: 0,\n xs: 0,\n }\n },\n background: {\n type: 'none',\n color: '',\n overlay: '',\n image: {\n url: '',\n repeat: '',\n position: 'center center',\n attachment: 'inherit',\n size: 'cover'\n },\n gradient: {\n type: 'liner',\n angle: '',\n start_color: '',\n start_pos: '',\n end_color: '',\n end_pos: ''\n },\n video: {\n url: ''\n }\n },\n animation: {\n name: '',\n duration: 300,\n delay: 0\n }\n };\n}\n","\n\n\n\n\n","import { render } from \"./Animations.vue?vue&type=template&id=3e5571c6\"\nimport script from \"./Animations.vue?vue&type=script&lang=js\"\nexport * from \"./Animations.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Gradient.vue?vue&type=template&id=397c98dd\"\nimport script from \"./Gradient.vue?vue&type=script&lang=js\"\nexport * from \"./Gradient.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./AddonEdit.vue?vue&type=template&id=26e87fc6\"\nimport script from \"./AddonEdit.vue?vue&type=script&lang=js\"\nexport * from \"./AddonEdit.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\nexport default baseRange;\n","import createRange from './_createRange.js';\n\n/**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\nvar range = createRange();\n\nexport default range;\n","import baseRange from './_baseRange.js';\nimport isIterateeCall from './_isIterateeCall.js';\nimport toFinite from './toFinite.js';\n\n/**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\nfunction createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n}\n\nexport default createRange;\n","import { render } from \"./ColumnEdit.vue?vue&type=template&id=cdb2ddec\"\nimport script from \"./ColumnEdit.vue?vue&type=script&lang=js\"\nexport * from \"./ColumnEdit.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Row.vue?vue&type=template&id=056210b5\"\nimport script from \"./Row.vue?vue&type=script&lang=js\"\nexport * from \"./Row.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./RowEdit.vue?vue&type=template&id=768d9065\"\nimport script from \"./RowEdit.vue?vue&type=script&lang=js\"\nexport * from \"./RowEdit.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Store.vue?vue&type=template&id=0180151e\"\nimport script from \"./Store.vue?vue&type=script&lang=js\"\nexport * from \"./Store.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./RowEdit.vue?vue&type=template&id=768d9065\"\nimport script from \"./RowEdit.vue?vue&type=script&lang=js\"\nexport * from \"./RowEdit.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Store.vue?vue&type=template&id=0180151e\"\nimport script from \"./Store.vue?vue&type=script&lang=js\"\nexport * from \"./Store.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Applications/XAMPP/xamppfiles/htdocs/earth/vendor/lyrasoft/luna/assets/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","