From acc8cb70f5203ecb239b721b91398bf946368071 Mon Sep 17 00:00:00 2001
From: James Richie You have been invited to '.$h($club).'. Sign in and open Invitations. If you do not have an account, use invited member signup with this email and verify it. Accepting the invitation grants access to this club. This invitation expires in seven days. Add dues for '.self::h($name).'. Add a season from the club page before recording dues. '.self::money($amount).' Amounts are in USD. Totals include all seasons and exclude reversed payments. '.$h($events[$event]).' Account: '.$h($account['user_email']).' If you did not authorize this activity, contact your site administrator immediately and secure your account. Your security action succeeded, but its notification email could not be sent. Please contact support.'.$label.'
Season dues
';
+ foreach($dues as $due){
+ $balance=(int)$due['amount_cents']-(int)$due['paid_cents'];
+ $html.='Season Dues Paid Balance '.($manage&&$active?'Actions ':'').' ';
+ }
+ if(!$dues)$html.=''.self::h($due['season_name']).' '.self::money((int)$due['amount_cents']).' '.self::money((int)$due['paid_cents']).' '.self::money($balance).' ';
+ if($manage&&$active){
+ $html.='';
+ if($balance>0)$html.=$this->form('payment',$club,$membership).''.self::field('amount','Payment (USD)').self::field('paid_on','Received on','date',date('Y-m-d')).'';
+ $html.=' ';
+ }
+ $html.=' ';
+ $html.='No dues recorded for this membership. Payment history
';
+ foreach($history['payments'] as $payment){
+ $status=$payment['reversal_serial']?'Reversed: '.$payment['reversal_reason'].' ('.$payment['reversed_at'].' UTC)':'Received';
+ $html.='Payment Date Amount Method / reference Status ';
+ }
+ if(!$history['payments'])$html.='#'.(int)$payment['payment_serial'].' · Dues #'.(int)$payment['due_serial'].' '.self::h($payment['paid_on']).' '.self::money((int)$payment['amount_cents']).' '.self::h($payment['payment_method'].' / '.$payment['payment_reference']).' '.self::h($status).' ';
+ $html.='No payments recorded for this membership. Dues correction history
';
+ foreach($history['adjustments'] as $adjustment)$html.='Date (UTC) Adjustment Corrected total Reason ';
+ if(!$history['adjustments'])$html.=''.self::h($adjustment['created_at']).' '.self::money((int)$adjustment['amount_cents']).' '.self::money((int)$adjustment['corrected_amount_cents']).' '.self::h($adjustment['reason']).' ';
+ $html.='No dues corrections recorded for this membership.
Time (UTC): '.$h(gmdate('Y-m-d H:i:s')).'
").replace(/\r?\n/g,"
").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ");if(t.includes("
")||t.includes("
")){t=`
${t}
`}return t}function N_(t){return t.replace(/(\s+)<\/span>/g,((t,e)=>{if(e.length==1){return" "}return e}))}const B_=["figcaption","li"];function P_(t){let e="";if(t.is("$text")||t.is("$textProxy")){e=t.data}else if(t.is("element","img")&&t.hasAttribute("alt")){e=t.getAttribute("alt")}else if(t.is("element","br")){e="\n"}else{let n=null;for(const o of t.getChildren()){const t=P_(o);if(n&&(n.is("containerElement")||o.is("containerElement"))){if(B_.includes(n.name)||B_.includes(o.name)){e+="\n"}else{e+="\n\n"}}e+=t;n=o}}return e}class z_ extends nC{static get pluginName(){return"Clipboard"}static get requires(){return[S_]}init(){const t=this.editor;const e=t.model.document;const n=t.editing.view;const o=n.document;this._htmlDataProcessor=new Jp(o);n.addObserver(M_);this.listenTo(o,"clipboardInput",(e=>{if(t.isReadOnly){e.stop()}}),{priority:"highest"});this.listenTo(o,"clipboardInput",((t,e)=>{const o=e.dataTransfer;let i="";if(o.getData("text/html")){i=N_(o.getData("text/html"))}else if(o.getData("text/plain")){i=I_(o.getData("text/plain"))}i=this._htmlDataProcessor.toView(i);const r=new ts(this,"inputTransformation");this.fire(r,{content:i,dataTransfer:o,asPlainText:e.asPlainText});if(r.stop.called){t.stop()}n.scrollToTheSelection()}),{priority:"low"});this.listenTo(this,"inputTransformation",((t,e)=>{if(!e.content.isEmpty){const n=this.editor.data;const o=this.editor.model;const i=n.toModel(e.content,"$clipboardHolder");if(i.childCount==0){return}o.change((t=>{const n=o.document.selection;if(e.asPlainText||L_(i,o.schema)){const e=Array.from(n.getAttributes()).filter((([t])=>o.schema.getAttributeProperties(t).isFormatting));if(!n.isCollapsed){o.deleteContent(n,{doNotAutoparagraph:true})}e.push(...n.getAttributes());const r=t.createRangeIn(i);for(const n of r.getItems()){if(n.is("$text")||n.is("$textProxy")){t.setAttributes(e,n)}}}o.insertContent(i)}));t.stop()}}),{priority:"low"});function i(n,i){const r=i.dataTransfer;i.preventDefault();const s=t.data.toView(t.model.getSelectedContent(e.selection));o.fire("clipboardOutput",{dataTransfer:r,content:s,method:n.name})}this.listenTo(o,"copy",i,{priority:"low"});this.listenTo(o,"cut",((e,n)=>{if(t.isReadOnly){n.preventDefault()}else{i(e,n)}}),{priority:"low"});this.listenTo(o,"clipboardOutput",((n,o)=>{if(!o.content.isEmpty){o.dataTransfer.setData("text/html",this._htmlDataProcessor.toData(o.content));o.dataTransfer.setData("text/plain",P_(o.content))}if(o.method=="cut"){t.model.deleteContent(e.selection)}}),{priority:"low"})}}function L_(t,e){if(t.childCount>1){return false}const n=t.getChild(0);if(e.isObject(n)){return false}return[...n.getAttributeKeys()].length==0}class O_{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){if(Array.isArray(t)){t.forEach((t=>this._definitions.add(t)))}else{this._definitions.add(t)}}getDispatcher(){return t=>{t.on("attribute:linkHref",((t,e,n)=>{if(!n.consumable.test(e.item,"attribute:linkHref")){return}const o=n.writer;const i=o.document.selection;for(const t of this._definitions){const r=o.createAttributeElement("a",t.attributes,{priority:5});o.setCustomProperty("link",true,r);if(t.callback(e.attributeNewValue)){if(e.item.is("selection")){o.wrap(i.getFirstRange(),r)}else{o.wrap(n.mapper.toViewRange(e.range),r)}}else{o.unwrap(n.mapper.toViewRange(e.range),r)}}}),{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:image",((t,e,n)=>{const o=n.mapper.toViewElement(e.item);const i=Array.from(o.getChildren()).find((t=>t.name==="a"));for(const t of this._definitions){const o=Gs(t.attributes);if(t.callback(e.attributeNewValue)){for(const[t,e]of o){if(t==="class"){n.writer.addClass(e,i)}else{n.writer.setAttribute(t,e,i)}}}else{for(const[t,e]of o){if(t==="class"){n.writer.removeClass(e,i)}else{n.writer.removeAttribute(t,i)}}}}}))}}}function R_(t,e,n){var o=t.length;n=n===undefined?o:n;return!e&&n>=o?t:Ba(t,e,n)}var j_=R_;var F_="\\ud800-\\udfff",V_="\\u0300-\\u036f",U_="\\ufe20-\\ufe2f",H_="\\u20d0-\\u20ff",G_=V_+U_+H_,K_="\\ufe0e\\ufe0f";var W_="\\u200d";var q_=RegExp("["+W_+F_+G_+K_+"]");function Y_(t){return q_.test(t)}var Q_=Y_;function $_(t){return t.split("")}var J_=$_;var Z_="\\ud800-\\udfff",X_="\\u0300-\\u036f",tv="\\ufe20-\\ufe2f",ev="\\u20d0-\\u20ff",nv=X_+tv+ev,ov="\\ufe0e\\ufe0f";var iv="["+Z_+"]",rv="["+nv+"]",sv="\\ud83c[\\udffb-\\udfff]",av="(?:"+rv+"|"+sv+")",cv="[^"+Z_+"]",lv="(?:\\ud83c[\\udde6-\\uddff]){2}",dv="[\\ud800-\\udbff][\\udc00-\\udfff]",uv="\\u200d";var hv=av+"?",fv="["+ov+"]?",mv="(?:"+uv+"(?:"+[cv,lv,dv].join("|")+")"+fv+hv+")*",gv=fv+hv+mv,pv="(?:"+[cv+rv+"?",rv,lv,dv,iv].join("|")+")";var kv=RegExp(sv+"(?="+sv+")|"+pv+gv,"g");function bv(t){return t.match(kv)||[]}var wv=bv;function Cv(t){return Q_(t)?wv(t):J_(t)}var Av=Cv;function _v(t){return function(e){e=_a(e);var n=Q_(e)?Av(e):undefined;var o=n?n[0]:e.charAt(0);var i=n?j_(n,1).join(""):e.slice(1);return o[t]()+i}}var vv=_v;var yv=vv("toUpperCase");var xv=yv;const Dv=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g;const Ev=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;const Mv=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i;const Tv=/^((\w+:(\/{2,})?)|(\W))/i;const Sv="Ctrl+K";function Iv(t){return t.is("attributeElement")&&!!t.getCustomProperty("link")}function Nv(t,{writer:e}){const n=e.createAttributeElement("a",{href:t},{priority:5});e.setCustomProperty("link",true,n);return n}function Bv(t){t=String(t);return Pv(t)?t:"#"}function Pv(t){const e=t.replace(Dv,"");return e.match(Ev)}function zv(t,e){const n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};e.forEach((t=>{if(t.label&&n[t.label]){t.label=n[t.label]}return t}));return e}function Lv(t){const e=[];if(t){for(const[n,o]of Object.entries(t)){const t=Object.assign({},o,{id:`link${xv(n)}`});e.push(t)}}return e}function Ov(t,e){if(!t){return false}return t.is("element","image")&&e.checkAttribute("image","linkHref")}function Rv(t){return Mv.test(t)}function jv(t,e){const n=Rv(t)?"mailto:":e;const o=!!n&&!Tv.test(t);return t&&o?n+t:t}class Fv extends iC{constructor(t){super(t);this.manualDecorators=new vs;this.automaticDecorators=new O_}restoreManualDecoratorStates(){for(const t of this.manualDecorators){t.value=this._getDecoratorStateFromModel(t.id)}}refresh(){const t=this.editor.model;const e=t.document;const n=sC(e.selection.getSelectedBlocks());if(Ov(n,t.schema)){this.value=n.getAttribute("linkHref");this.isEnabled=t.schema.checkAttribute(n,"linkHref")}else{this.value=e.selection.getAttribute("linkHref");this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"linkHref")}for(const t of this.manualDecorators){t.value=this._getDecoratorStateFromModel(t.id)}}execute(t,e={}){const n=this.editor.model;const o=n.document.selection;const i=[];const r=[];for(const t in e){if(e[t]){i.push(t)}else{r.push(t)}}n.change((e=>{if(o.isCollapsed){const s=o.getFirstPosition();if(o.hasAttribute("linkHref")){const a=c_(s,"linkHref",o.getAttribute("linkHref"),n);e.setAttribute("linkHref",t,a);i.forEach((t=>{e.setAttribute(t,true,a)}));r.forEach((t=>{e.removeAttribute(t,a)}));e.setSelection(e.createPositionAfter(a.end.nodeBefore))}else if(t!==""){const r=Gs(o.getAttributes());r.set("linkHref",t);i.forEach((t=>{r.set(t,true)}));const{end:a}=n.insertContent(e.createText(t,r),s);e.setSelection(a)}["linkHref",...i,...r].forEach((t=>{e.removeSelectionAttribute(t)}))}else{const s=n.schema.getValidRanges(o.getRanges(),"linkHref");const a=[];for(const t of o.getSelectedBlocks()){if(n.schema.checkAttribute(t,"linkHref")){a.push(e.createRangeOn(t))}}const c=a.slice();for(const t of s){if(this._isRangeToUpdate(t,a)){c.push(t)}}for(const n of c){e.setAttribute("linkHref",t,n);i.forEach((t=>{e.setAttribute(t,true,n)}));r.forEach((t=>{e.removeAttribute(t,n)}))}}}))}_getDecoratorStateFromModel(t){const e=this.editor.model;const n=e.document;const o=sC(n.selection.getSelectedBlocks());if(Ov(o,e.schema)){return o.getAttribute(t)}return n.selection.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e){if(n.containsRange(t)){return false}}return true}}class Vv extends iC{refresh(){const t=this.editor.model;const e=t.document;const n=sC(e.selection.getSelectedBlocks());if(Ov(n,t.schema)){this.isEnabled=t.schema.checkAttribute(n,"linkHref")}else{this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"linkHref")}}execute(){const t=this.editor;const e=this.editor.model;const n=e.document.selection;const o=t.commands.get("link");e.change((t=>{const i=n.isCollapsed?[c_(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const e of i){t.removeAttribute("linkHref",e);if(o){for(const n of o.manualDecorators){t.removeAttribute(n.id,e)}}}}))}}class Uv{constructor({id:t,label:e,attributes:n,defaultValue:o}){this.id=t;this.set("value");this.defaultValue=o;this.label=e;this.attributes=n}}_s(Uv,Jc);var Hv=n(29);var Gv={injectType:"singletonStyleTag",attributes:{"data-cke":true}};Gv.insert="head";Gv.singleton=true;var Kv=rk()(Hv["a"],Gv);var Wv=Hv["a"].locals||{};const qv="ck-link_selected";const Yv="automatic";const Qv="manual";const $v=/^(https?:)?\/\//;class Jv extends nC{static get pluginName(){return"LinkEditing"}static get requires(){return[n_,x_,z_]}constructor(t){super(t);t.config.define("link",{addTargetToExternalLinks:false})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"});t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Nv});t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(t,e)=>Nv(Bv(t),e)});t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:true}},model:{key:"linkHref",value:t=>t.getAttribute("href")}});t.commands.add("link",new Fv(t));t.commands.add("unlink",new Vv(t));const e=zv(t.t,Lv(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter((t=>t.mode===Yv)));this._enableManualDecorators(e.filter((t=>t.mode===Qv)));const n=t.plugins.get(n_);n.registerAttribute("linkHref");d_(t,"linkHref","a",qv);this._enableInsertContentSelectionAttributesFixer();this._enableClickingAfterLink();this._enableTypingOverLink();this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(t){const e=this.editor;const n=e.commands.get("link");const o=n.automaticDecorators;if(e.config.get("link.addTargetToExternalLinks")){o.add({id:"linkIsExternal",mode:Yv,callback:t=>$v.test(t),attributes:{target:"_blank",rel:"noopener noreferrer"}})}o.add(t);if(o.length){e.conversion.for("downcast").add(o.getDispatcher())}}_enableManualDecorators(t){if(!t.length){return}const e=this.editor;const n=e.commands.get("link");const o=n.manualDecorators;t.forEach((t=>{e.model.schema.extend("$text",{allowAttributes:t.id});o.add(new Uv(t));e.conversion.for("downcast").attributeToElement({model:t.id,view:(e,{writer:n})=>{if(e){const e=o.get(t.id).attributes;const i=n.createAttributeElement("a",e,{priority:5});n.setCustomProperty("link",true,i);return i}}});e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:o.get(t.id).attributes},model:{key:t.id}})}))}_enableInsertContentSelectionAttributesFixer(){const t=this.editor;const e=t.model;const n=e.document.selection;const o=t.commands.get("link");this.listenTo(e,"insertContent",(()=>{const t=n.anchor.nodeBefore;const i=n.anchor.nodeAfter;if(!n.hasAttribute("linkHref")){return}if(!t){return}if(!t.hasAttribute("linkHref")){return}if(i&&i.hasAttribute("linkHref")){return}e.change((t=>{Zv(t,o.manualDecorators)}))}),{priority:"low"})}_enableClickingAfterLink(){const t=this.editor;const e=t.commands.get("link");t.editing.view.addObserver(e_);let n=false;this.listenTo(t.editing.view.document,"mousedown",(()=>{n=true}));this.listenTo(t.editing.view.document,"selectionChange",(()=>{if(!n){return}n=false;const o=t.model.document.selection;if(!o.isCollapsed){return}if(!o.hasAttribute("linkHref")){return}const i=o.getFirstPosition();const r=c_(i,"linkHref",o.getAttribute("linkHref"),t.model);if(i.isTouching(r.start)||i.isTouching(r.end)){t.model.change((t=>{Zv(t,e.manualDecorators)}))}}))}_enableTypingOverLink(){const t=this.editor;const e=t.editing.view;let n;let o;this.listenTo(e.document,"delete",(()=>{o=true}),{priority:"high"});this.listenTo(t.model,"deleteContent",(()=>{const e=t.model.document.selection;if(e.isCollapsed){return}if(o){o=false;return}if(!ty(t)){return}if(Xv(t.model)){n=e.getAttributes()}}),{priority:"high"});this.listenTo(t.model,"insertContent",((e,[i])=>{o=false;if(!ty(t)){return}if(!n){return}t.model.change((t=>{for(const[e,o]of n){t.setAttribute(e,o,i)}}));n=null}),{priority:"high"})}_handleDeleteContentAfterLink(){const t=this.editor;const e=t.model;const n=e.document.selection;const o=t.editing.view;const i=t.commands.get("link");let r=false;let s=false;this.listenTo(o.document,"delete",((t,e)=>{s=e.domEvent.keyCode===Ll.backspace}),{priority:"high"});this.listenTo(e,"deleteContent",(()=>{r=false;const t=n.getFirstPosition();const o=n.getAttribute("linkHref");if(!o){return}const i=c_(t,"linkHref",o,e);r=i.containsPosition(t)||i.end.isEqual(t)}),{priority:"high"});this.listenTo(e,"deleteContent",(()=>{if(!s){return}s=false;if(r){return}t.model.enqueueChange((t=>{Zv(t,i.manualDecorators)}))}),{priority:"low"})}}function Zv(t,e){t.removeSelectionAttribute("linkHref");for(const n of e){t.removeSelectionAttribute(n.id)}}function Xv(t){const e=t.document.selection;const n=e.getFirstPosition();const o=e.getLastPosition();const i=n.nodeAfter;if(!i){return false}if(!i.is("$text")){return false}if(!i.hasAttribute("linkHref")){return false}const r=o.textNode||o.nodeBefore;if(i===r){return true}const s=c_(n,"linkHref",i.getAttribute("linkHref"),t);return s.containsRange(t.createRange(n,o),true)}function ty(t){const e=t.plugins.get("Input");return e.isInput(t.model.change((t=>t.batch)))}class ey extends TC{static get pluginName(){return"Notification"}init(){this.on("show:warning",((t,e)=>{window.alert(e.message)}),{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=`show:${t.type}`+(t.namespace?`:${t.namespace}`:"");this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class ny extends iC{constructor(t){super(t);this.stopListening(this.editor.model.document,"change");this.listenTo(this.editor.model.document,"change",(()=>this.refresh()),{priority:"low"})}refresh(){const t=this.editor.commands.get("imageInsert");const e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}execute(){const t=this.editor;const e=this.editor.config.get("ckfinder.openerMethod")||"modal";if(e!="popup"&&e!="modal"){throw new ss["a"]("ckfinder-unknown-openermethod",t)}const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=true;const o=n.onInit;if(!n.language){n.language=t.locale.uiLanguage}n.onInit=e=>{if(o){o(e)}e.on("files:choose",(n=>{const o=n.data.files.toArray();const i=o.filter((t=>!t.isImage()));const r=o.filter((t=>t.isImage()));for(const e of i){t.execute("link",e.getUrl())}const s=[];for(const t of r){const n=t.getUrl();s.push(n?n:e.request("file:getProxyUrl",{file:t}))}if(s.length){oy(t,s)}}));e.on("file:choose:resizedImage",(e=>{const n=e.data.resizedUrl;if(!n){const e=t.plugins.get("Notification");const n=t.locale.t;e.showWarning(n("Could not obtain resized image URL."),{title:n("Selecting resized image failed"),namespace:"ckfinder"});return}oy(t,[n])}))};window.CKFinder[e](n)}}function oy(t,e){const n=t.commands.get("imageInsert");if(!n.isEnabled){const e=t.plugins.get("Notification");const n=t.locale.t;e.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"});return}t.execute("imageInsert",{source:e})}class iy extends nC{static get pluginName(){return"CKFinderEditing"}static get requires(){return[ey,XA,Jv]}init(){const t=this.editor;t.commands.add("ckfinder",new ny(t))}}const ry="ckCsrfToken";const sy=40;const ay="abcdefghijklmnopqrstuvwxyz0123456789";function cy(){let t=ly(ry);if(!t||t.length!=sy){t=uy(sy);dy(ry,t)}return t}function ly(t){t=t.toLowerCase();const e=document.cookie.split(";");for(const n of e){const e=n.split("=");const o=decodeURIComponent(e[0].trim().toLowerCase());if(o===t){return decodeURIComponent(e[1])}}return null}function dy(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path=/"}function uy(t){let e="";const n=new Uint8Array(t);window.crypto.getRandomValues(n);for(let t=0;t1||o>1)for(let e=1;e"+sh("td",this.#I.logical_cellCnt)+" ":(Pe.utils.removeItem(this.#I.figureElement),this.#rd._closeTableSelectInfo()))}}if(this.#I.ref){const t=this.#I.tdElement,s=this.#I.selectedCells;if(i)if(e)this.#rd.setCellInfo("up"===e?s[0]:s.at(-1),!0),this.editRow(e,null,t);else{let t=s[0].parentNode;const i=[s[0]];for(let e,n=1,o=s.length;n0?this.#I.selectedCell:e;this.#rd._setController(s)}#Nd(){if(this.#I.ref){this.#hi(),this.#rd._editorEnable(!0),this.focusCellEdge(this.#I.fixedCell);const t=this.#I.selectedCells?.length>0?this.#I.selectedCell:this.#I.fixedCell;this.#rd._setController(t)}else this.#rd._closeController()}#Bd(){this.#rd.resetInfo()}#hi(){this.#J.ui.disableBackWrapper();const t=this.#it;for(const e in t)t[e]&&=this.#J.eventManager.removeGlobalEvent(t[e])}init(){this.#hi()}},{_w:gh}=Oe;const mh=class{#rd;#I;#J;constructor(t,{pluginOptions:e,controller_table:s}){this.#rd=t,this.#I=t.state,this.#J=t.$,this.sliderType="",this.resizeButton=s.querySelector("._se_table_resize"),this.resizeText=s.querySelector("._se_table_resize > span > span"),this.columnFixedButton=s.querySelector("._se_table_fixed_column"),this.headerButton=s.querySelector("._se_table_header"),this.captionButton=s.querySelector("._se_table_caption");const i=function({lang:t,icons:e,options:s}){const i=s.get("_rtl")?["right","center","left","justify"]:["left","center","right","justify"];let n="";for(let s,o,r=0;r"+sh("th",this.#I.logical_cellCnt)+" ",s.insertBefore(t,s.querySelector("tbody"))}Pe.utils.toggleClass(t,"active"),/TH/i.test(this.#I.tdElement.nodeName)?this.#rd._closeController():this.#rd._setCellControllerPosition(this.#I.tdElement,!1)}toggleCaption(){const t=this.captionButton,e=Pe.utils.hasClass(t,"active"),s=this.#rd._element;if(e)Pe.utils.removeItem(s.querySelector("caption"));else{const t=Pe.utils.createElement("CAPTION",{class:`se-table-caption-${this.#rd.captionPosition}`});t.innerHTML="new Array(r-o+1).fill(0))),a=o;n-=e,e-=e,r-=o,o-=o;let h=t;for(let t,i,c,d,u,p=0,g=0,m=s.length,y=0;p`)}const o=Pe.utils.createElement("colgroup",null,n.join(""));t.insertBefore(o,t.firstElementChild);for(let t=0;t${sh("td",s)} `.repeat(i)}`,r=`